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 * + - 0, COALESCE ( + 93, 62, COUNT( * ) ) col2
----
0
93

skipif mysql # not compatible
query II rowsort label-5009
SELECT ALL - + 53 * + - 0, COALESCE ( + 93, 62, COUNT ( * ) ) col2
----
0
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT DISTINCT - + 14 / - COUNT( * ) * - 6 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - + 14 / - COUNT ( * ) * - 6 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT - 24 DIV 60 + 38 * - - 38 AS col0
----
1444

skipif mysql # not compatible
query I rowsort label-5012
SELECT - 24 / 60 + 38 * - - 38 AS col0
----
1444

query I rowsort
SELECT ALL + 27 + + 54 col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT - COUNT( * ) * - 38 * COUNT( * ) + - + 74
----
-36

skipif mysql # not compatible
query I rowsort label-5014
SELECT - COUNT ( * ) * - 38 * COUNT ( * ) + - + 74
----
-36

query II rowsort
SELECT ALL - 52 + + + 36 + - - 52 + + 72 AS col2, - 5
----
108
-5

query I rowsort
SELECT - 99 * + 23 AS col1
----
-2277

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5019
SELECT + ( CASE - - 77 WHEN + NULLIF ( - COALESCE ( - 13, - 49 * + + 12 + + 91 + - - 31 + + - 47 * - 72 * + 95 + - - 53 - 83 + + CASE + 88 WHEN - - 99 THEN 84 END * - + 24 / - 73, - 60 ), - 52 / + COALESCE ( - + 83, - COUNT( * ), 8 - + 13 ) ) * CAST( - + CASE - 15 WHEN COUNT( * ) + - + 66 THEN NULL WHEN ( - 18 ) THEN - - 0 * - CASE - + 42 WHEN 12 THEN - - 21 WHEN MAX( ALL 38 ) THEN NULL END * + 14 ELSE NULL END AS DECIMAL ) * + SUM( 36 + - 66 ) + + 44 THEN + 21 * + 57 WHEN - ( AVG ( 96 ) ) THEN NULL END ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT + ( CASE - - 77 WHEN + NULLIF ( - COALESCE ( - 13, - 49 * + + 12 + + 91 + - - 31 + + - 47 * - 72 * + 95 + - - 53 - 83 + + CASE + 88 WHEN - - 99 THEN 84 END * - + 24 / - 73, - 60 ), - 52 / + COALESCE ( - + 83, - COUNT ( * ), 8 - + 13 ) ) * CAST ( - + CASE - 15 WHEN COUNT ( * ) + - + 66 THEN NULL WHEN ( - 18 ) THEN - - 0 * - CASE - + 42 WHEN 12 THEN - - 21 WHEN MAX ( ALL 38 ) THEN NULL END * + 14 ELSE NULL END AS REAL ) * + SUM ( 36 + - 66 ) + + 44 THEN + 21 * + 57 WHEN - ( AVG ( 96 ) ) THEN NULL END ) * - 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5020
SELECT - 27 DIV + COUNT( * ) + + + 32 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5020
SELECT - 27 / + COUNT ( * ) + + + 32 AS col2
----
5

query I rowsort
SELECT ALL + - 52 - + - 2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5022
SELECT 47 DIV - MIN( - + 10 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5022
SELECT 47 / - MIN ( - + 10 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT 46 - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5023
SELECT 46 - - COUNT ( * )
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-5024
SELECT ALL + 35 DIV + 86 AS col1, + 19 DIV 33
----
0
0

skipif mysql # not compatible
query II rowsort label-5024
SELECT ALL + 35 / + 86 AS col1, + 19 / 33
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5025
SELECT 56 - - COUNT( * ) AS col2, + 22 + - COUNT( * ) * + - 98 DIV - 49 * - + COUNT( * )
----
57
24

skipif mysql # not compatible
query II rowsort label-5025
SELECT 56 - - COUNT ( * ) AS col2, + 22 + - COUNT ( * ) * + - 98 / - 49 * - + COUNT ( * )
----
57
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5026
SELECT 62 DIV - COUNT( * ) AS col2, 13
----
-62
13

skipif mysql # not compatible
query II rowsort label-5026
SELECT 62 / - COUNT ( * ) AS col2, 13
----
-62
13

query I rowsort
SELECT DISTINCT + 17 * - ( + 83 ) * + 73 * - - 64 * + 89
----
-586705088

onlyif mysql # aggregate syntax: 
query III rowsort label-5028
SELECT 71 * - 91 * 35 AS col0, - 7 - - - 12 - + COUNT( * ) + - 34 + + 65 + + + 20 * - - 6 AS col2, COALESCE ( - 48, 70 ) col2
----
-226135
131
-48

skipif mysql # not compatible
query III rowsort label-5028
SELECT 71 * - 91 * 35 AS col0, - 7 - - - 12 - + COUNT ( * ) + - 34 + + 65 + + + 20 * - - 6 AS col2, COALESCE ( - 48, 70 ) col2
----
-226135
131
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT 90 - - SUM( DISTINCT 19 ) * + COUNT( * ) * + 36 AS col2
----
774

skipif mysql # not compatible
query I rowsort label-5029
SELECT 90 - - SUM ( DISTINCT 19 ) * + COUNT ( * ) * + 36 AS col2
----
774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5030
SELECT ALL - 63 * + + COUNT( 22 ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL - 63 * + + COUNT ( 22 ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 61 * - + 42
----
-2562

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT 97 + - 82 DIV 99 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5032
SELECT 97 + - 82 / 99 AS col0
----
97

query I rowsort
SELECT ALL + 0 + + + 55 AS col0
----
55

query I rowsort
SELECT DISTINCT - 45 * - 72 AS col0
----
3240

query I rowsort
SELECT DISTINCT + + 64 + + 2 * 43 + 90 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + COUNT( * ) * + + 43 * 6 + + 59 + - 45 AS col2
----
272

skipif mysql # not compatible
query I rowsort label-5036
SELECT + COUNT ( * ) * + + 43 * 6 + + 59 + - 45 AS col2
----
272

query II rowsort
SELECT DISTINCT + 16 + 14 col0, 99 * 58 AS col0
----
30
5742

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5038
SELECT DISTINCT - 56 + - CAST( NULL AS DECIMAL ) / - - 2 + + 37 * 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT - 56 + - CAST ( NULL AS REAL ) / - - 2 + + 37 * 65 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT ALL + 98 DIV - ( - 12 )
----
8

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + 98 / - ( - 12 )
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-5040
SELECT ALL - ( - - 35 ) AS col0, 21 DIV + 53
----
-35
0

skipif mysql # not compatible
query II rowsort label-5040
SELECT ALL - ( - - 35 ) AS col0, 21 / + 53
----
-35
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5041
SELECT DISTINCT - - COUNT( DISTINCT + 69 ), MAX( ALL 44 ) * - 37 * - 83 AS col0
----
1
135124

skipif mysql # not compatible
query II rowsort label-5041
SELECT DISTINCT - - COUNT ( DISTINCT + 69 ), MAX ( ALL 44 ) * - 37 * - 83 AS col0
----
1
135124

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

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

query I rowsort
SELECT 40 * 35 - - AVG ( DISTINCT + + 76 ) + + - ( - 37 ) * + 10 + 66 + + 23 + + 82 / + + CASE - + 90 WHEN + 69 THEN 25 * - - ( - - AVG ( ALL 48 ) ) / + 37 * 91 END + 43 / 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5044
SELECT 28 DIV + + CAST( - 72 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5044
SELECT 28 / + + CAST ( - 72 AS INTEGER )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - + 74 * + COUNT( * ) + - 26 + 89 + 13 + 90 + - ( 59 )
----
33

skipif mysql # not compatible
query I rowsort label-5046
SELECT - + 74 * + COUNT ( * ) + - 26 + 89 + 13 + 90 + - ( 59 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5047
SELECT 50 * - NULLIF ( - COUNT( * ), - + CAST( - 40 AS DECIMAL ) )
----
50

skipif mysql # not compatible
query I rowsort label-5047
SELECT 50 * - NULLIF ( - COUNT ( * ), - + CAST ( - 40 AS REAL ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT 21 + - 2 - - - COUNT( * ) * - 98 * + 1 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-5048
SELECT 21 + - 2 - - - COUNT ( * ) * - 98 * + 1 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT COUNT( * ) * + 90 - MAX( + 8 )
----
82

skipif mysql # not compatible
query I rowsort label-5049
SELECT COUNT ( * ) * + 90 - MAX ( + 8 )
----
82

query I rowsort
SELECT NULLIF ( 82, 42 ) + 15
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT CAST( - + 3 AS SIGNED ) + 18
----
15

skipif mysql # not compatible
query I rowsort label-5051
SELECT CAST ( - + 3 AS INTEGER ) + 18
----
15

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT 56 + + COALESCE ( - MIN( ALL + + 79 ), 13 + + NULLIF ( - COUNT( * ), - COALESCE ( + 58, + MIN( DISTINCT 75 ) + + MIN( 35 ) ) * + 40 * COUNT( CAST( + + 14 AS SIGNED ) ) + - - 5 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-5054
SELECT 56 + + COALESCE ( - MIN ( ALL + + 79 ), 13 + + NULLIF ( - COUNT ( * ), - COALESCE ( + 58, + MIN ( DISTINCT 75 ) + + MIN ( 35 ) ) * + 40 * COUNT ( CAST ( + + 14 AS INTEGER ) ) + - - 5 ) )
----
-23

query I rowsort
SELECT DISTINCT 38 + - 95
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT 75 + - + 95 + - NULLIF ( + - SUM( + 29 ), - + 7 ) + - 90
----
-81

skipif mysql # not compatible
query I rowsort label-5056
SELECT 75 + - + 95 + - NULLIF ( + - SUM ( + 29 ), - + 7 ) + - 90
----
-81

query I rowsort
SELECT ALL 73 + 7 AS col2
----
80

query I rowsort
SELECT 52 + - 10 * 75 + 18
----
-680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5059
SELECT DISTINCT 26 + - 11 - + CAST( - + 91 AS SIGNED ) + - 56 + - 43 * - 25 DIV - NULLIF ( - COUNT( * ), - - 63 + + 14 ) col2
----
1125

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT 26 + - 11 - + CAST ( - + 91 AS INTEGER ) + - 56 + - 43 * - 25 / - NULLIF ( - COUNT ( * ), - - 63 + + 14 ) col2
----
1125

query I rowsort
SELECT ALL - 59 + + + 86 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5061
SELECT ALL + 4 + + + ( + + 97 ) + + COALESCE ( + 29, COUNT( * ) * + ( - NULLIF ( - + 49, + 12 ) ) + + CAST( + 77 AS SIGNED ) * COUNT( * ) ) AS col2, + 16
----
130
16

skipif mysql # not compatible
query II rowsort label-5061
SELECT ALL + 4 + + + ( + + 97 ) + + COALESCE ( + 29, COUNT ( * ) * + ( - NULLIF ( - + 49, + 12 ) ) + + CAST ( + 77 AS INTEGER ) * COUNT ( * ) ) AS col2, + 16
----
130
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5062
SELECT DISTINCT + - 28 + - - SUM( DISTINCT 34 ) * - COUNT( * ) + 90 + - 71 DIV + 86
----
28

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + - 28 + - - SUM ( DISTINCT 34 ) * - COUNT ( * ) + 90 + - 71 / + 86
----
28

query I rowsort
SELECT ALL - 51 + - - 14
----
-37

query I rowsort
SELECT + + 87 * - 32 + 16 AS col0
----
-2768

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT - + CASE - 65 WHEN + COUNT( * ) THEN + CASE - CASE - - 67 WHEN - 29 THEN NULL ELSE COUNT( * ) END WHEN + 53 THEN + - 28 WHEN AVG ( ALL - 9 ) * + 11 + + 40 + COALESCE ( + + 57, - 84 ) * 20 * + ( 49 ) THEN + - 54 ELSE NULL END END * MAX( DISTINCT 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT - + CASE - 65 WHEN + COUNT ( * ) THEN + CASE - CASE - - 67 WHEN - 29 THEN NULL ELSE COUNT ( * ) END WHEN + 53 THEN + - 28 WHEN AVG ( ALL - 9 ) * + 11 + + 40 + COALESCE ( + + 57, - 84 ) * 20 * + ( 49 ) THEN + - 54 ELSE NULL END END * MAX ( DISTINCT 52 ) AS col2
----
NULL

query I rowsort
SELECT + - 13 - + - 71 AS col1
----
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT ALL - 43 * - 3 * ( - CAST( NULL AS SIGNED ) ) - + 3 * + + 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - 43 * - 3 * ( - CAST ( NULL AS INTEGER ) ) - + 3 * + + 66 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - MIN( ALL + 98 ) * 96 + 26 AS col0
----
-9382

skipif mysql # not compatible
query I rowsort label-5069
SELECT - MIN ( ALL + 98 ) * 96 + 26 AS col0
----
-9382

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT - + 30 + SUM( ALL + 75 ) * + 10 + 42
----
762

skipif mysql # not compatible
query I rowsort label-5071
SELECT - + 30 + SUM ( ALL + 75 ) * + 10 + 42
----
762

query II rowsort
SELECT ALL + - 56 col1, + 14 AS col0
----
-56
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT - - CAST( NULL AS SIGNED ) / 69 + - 15 + 91 * + 48 * - 29 + - 22 / + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT - - CAST ( NULL AS INTEGER ) / 69 + - 15 + 91 * + 48 * - 29 + - 22 / + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT ALL + - ( + ( + + 55 ) ) * COUNT( * ) AS col0, - 70
----
-55
-70

skipif mysql # not compatible
query II rowsort label-5075
SELECT ALL + - ( + ( + + 55 ) ) * COUNT ( * ) AS col0, - 70
----
-55
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5076
SELECT 99, SUM( ALL 48 ) AS col1
----
99
48

skipif mysql # not compatible
query II rowsort label-5076
SELECT 99, SUM ( ALL 48 ) AS col1
----
99
48

query I rowsort
SELECT - 75 * - 33
----
2475

query I rowsort
SELECT - 45 + - 20 col1
----
-65

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL + 35 * CAST( + 99 AS SIGNED )
----
3465

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + 35 * CAST ( + 99 AS INTEGER )
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL 27 * + + COALESCE ( + 87, + COUNT( * ) ) * + + COUNT( * )
----
2349

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL 27 * + + COALESCE ( + 87, + COUNT ( * ) ) * + + COUNT ( * )
----
2349

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT - 3 - + 42 DIV + + 87 + 11
----
8

skipif mysql # not compatible
query I rowsort label-5083
SELECT - 3 - + 42 / + + 87 + 11
----
8

query II rowsort
SELECT - 79 - + 2 AS col2, + 10 + - ( + + 70 ) + + 63 AS col1
----
-81
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5085
SELECT MIN( DISTINCT - 55 ) AS col1, - 90 * 45 * - 14
----
-55
56700

skipif mysql # not compatible
query II rowsort label-5085
SELECT MIN ( DISTINCT - 55 ) AS col1, - 90 * 45 * - 14
----
-55
56700

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

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + 63 * COUNT ( * ) AS col1
----
63

query I rowsort
SELECT - 56 + + + 65 AS col1
----
9

query I rowsort
SELECT ALL + 72 + + - 46
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT DISTINCT - 18 + - 51 + - COUNT( * ) * - + ( - ( + - COUNT( * ) ) ) * - - SUM( - 61 ) - + - COUNT( * ) AS col0, - COUNT( * )
----
-129
-1

skipif mysql # not compatible
query II rowsort label-5089
SELECT DISTINCT - 18 + - 51 + - COUNT ( * ) * - + ( - ( + - COUNT ( * ) ) ) * - - SUM ( - 61 ) - + - COUNT ( * ) AS col0, - COUNT ( * )
----
-129
-1

query I rowsort
SELECT + 26 - + 61 AS col2
----
-35

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

query I rowsort
SELECT DISTINCT ( CASE - 12 WHEN 23 THEN + - 96 + 29 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT + CAST( NULL AS SIGNED ) - - - 59 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT + CAST ( NULL AS INTEGER ) - - - 59 + 64
----
NULL

query I rowsort
SELECT ALL NULLIF ( ( + 67 ), - 72 ) * + 43 + + 73 col1
----
2954

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL - 22 - - 65 + + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - 22 - - 65 + + - COUNT ( * )
----
42

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

skipif mysql # not compatible
query I rowsort label-5096
SELECT + 21 + - + CAST ( NULL AS INTEGER ) + + + 25
----
NULL

query II rowsort
SELECT + 34 + + + ( 88 ) * - - 48, ( - 97 ) - - 23 AS col1
----
4258
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5098
SELECT + 4 - 36 * + - 80 * - CAST( NULL AS SIGNED ), CASE - + 32 WHEN - ( - 3 ) THEN NULL ELSE + SUM( ALL - 11 ) END AS col0
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-5098
SELECT + 4 - 36 * + - 80 * - CAST ( NULL AS INTEGER ), CASE - + 32 WHEN - ( - 3 ) THEN NULL ELSE + SUM ( ALL - 11 ) END AS col0
----
NULL
-11

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

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT COUNT ( ALL + + 20 ) * 29 AS col1
----
29

query II rowsort
SELECT ALL NULLIF ( - ( + 86 ), - - 18 ) AS col0, + 69
----
-86
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5101
SELECT ALL - 15 DIV - 65 col1, MAX( 13 )
----
0
13

skipif mysql # not compatible
query II rowsort label-5101
SELECT ALL - 15 / - 65 col1, MAX ( 13 )
----
0
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5102
SELECT + 93 * CASE - 48 WHEN + 79 THEN + COUNT( 62 ) DIV - 7 ELSE - 16 + + + COALESCE ( + + 58, 34 + ( - 65 ) ) * + 15 END + - 75 + + 61 * 49 DIV 99
----
79377

skipif mysql # not compatible
query I rowsort label-5102
SELECT + 93 * CASE - 48 WHEN + 79 THEN + COUNT ( 62 ) / - 7 ELSE - 16 + + + COALESCE ( + + 58, 34 + ( - 65 ) ) * + 15 END + - 75 + + 61 * 49 / 99
----
79377

query I rowsort
SELECT ALL + COALESCE ( 65, - - 62 )
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-5104
SELECT + 59 + - 70 AS col0, - NULLIF ( + 18, + 24 + 65 ) + 21 DIV - - 55 * - + ( 47 )
----
-11
-18

skipif mysql # not compatible
query II rowsort label-5104
SELECT + 59 + - 70 AS col0, - NULLIF ( + 18, + 24 + 65 ) + 21 / - - 55 * - + ( 47 )
----
-11
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT + + MAX( - 26 ) AS col2, 44
----
-26
44

skipif mysql # not compatible
query II rowsort label-5105
SELECT + + MAX ( - 26 ) AS col2, 44
----
-26
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT + 73 * + + CASE + 4 WHEN - + COUNT( * ) THEN - 32 * - + 58 * + COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN - - 0 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT + 73 * + + CASE + 4 WHEN - + COUNT ( * ) THEN - 32 * - + 58 * + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN - - 0 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT ALL + 63 * - + 89 DIV + + COUNT( * )
----
-5607

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + 63 * - + 89 / + + COUNT ( * )
----
-5607

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5109
SELECT ALL 76 DIV - COUNT( * ) + - + 21, - 24 AS col2
----
-97
-24

skipif mysql # not compatible
query II rowsort label-5109
SELECT ALL 76 / - COUNT ( * ) + - + 21, - 24 AS col2
----
-97
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5110
SELECT ALL CAST( NULL AS DECIMAL ) * - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL CAST ( NULL AS REAL ) * - 97 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 40 * + 53 + - 96
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5112
SELECT ALL + CAST( NULL AS SIGNED ), 0 * 90 * + 21 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5112
SELECT ALL + CAST ( NULL AS INTEGER ), 0 * 90 * + 21 AS col1
----
NULL
0

query I rowsort
SELECT ALL 13 * 2 + + + 20 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT COALESCE ( + 7, + MIN( ALL 26 ) )
----
7

skipif mysql # not compatible
query I rowsort label-5114
SELECT COALESCE ( + 7, + MIN ( ALL 26 ) )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT - MIN( 42 ) + COUNT( * ) DIV + + 66 - - - 98 AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-5115
SELECT - MIN ( 42 ) + COUNT ( * ) / + + 66 - - - 98 AS col0
----
-140

query I rowsort
SELECT - 32 + + 79 * 92 * - - 41 AS col1
----
297956

query II rowsort
SELECT ALL 68 * + - 25 + - + 72 AS col1, + 22 col2
----
-1772
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5118
SELECT - 50 * + + CASE - + CASE + 14 WHEN - 93 + + CAST( + 87 AS DECIMAL ) * + 96 THEN NULL ELSE 71 END WHEN + - ( 97 ) THEN - 85 - - 15 ELSE - 58 - - ( ( - + 36 ) ) + + 77 END
----
850

skipif mysql # not compatible
query I rowsort label-5118
SELECT - 50 * + + CASE - + CASE + 14 WHEN - 93 + + CAST ( + 87 AS REAL ) * + 96 THEN NULL ELSE 71 END WHEN + - ( 97 ) THEN - 85 - - 15 ELSE - 58 - - ( ( - + 36 ) ) + + 77 END
----
850

query I rowsort
SELECT ALL NULLIF ( + 77, + 86 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5120
SELECT + 87 * + + 70 * - 73 * + CAST( NULL AS SIGNED ) / + - 39 + + - 96 + + - 57 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT + 87 * + + 70 * - 73 * + CAST ( NULL AS INTEGER ) / + - 39 + + - 96 + + - 57 * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT ALL - 14 DIV + + NULLIF ( - 91, - 53 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - 14 / + + NULLIF ( - 91, - 53 ) AS col1
----
0

query I rowsort
SELECT 96 * 64
----
6144

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT ALL + COUNT( * ) - - + CASE + - 53 WHEN 89 * + - COUNT( * ) + - 91 THEN 82 - - 97 WHEN + 95 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL + COUNT ( * ) - - + CASE + - 53 WHEN 89 * + - COUNT ( * ) + - 91 THEN 82 - - 97 WHEN + 95 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5124
SELECT 71 * - 94 * - COUNT( * ) AS col2, + 75 AS col0
----
6674
75

skipif mysql # not compatible
query II rowsort label-5124
SELECT 71 * - 94 * - COUNT ( * ) AS col2, + 75 AS col0
----
6674
75

query I rowsort
SELECT 9 + 96
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT 86 DIV 6
----
14

skipif mysql # not compatible
query I rowsort label-5126
SELECT 86 / 6
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT COUNT( * ) + - - 85 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5127
SELECT COUNT ( * ) + - - 85 AS col2
----
86

query I rowsort
SELECT - - 6 col2
----
6

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

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

query I rowsort
SELECT ALL ( - - NULLIF ( - 14, 6 ) )
----
-14

query I rowsort
SELECT 55 * - 94 AS col2
----
-5170

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT MAX( 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT MAX ( 43 ) AS col0
----
43

query II rowsort
SELECT ALL 84 AS col0, + 70
----
84
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT MAX( ALL - 82 ) + + 87 - + + 36 * COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5134
SELECT MAX ( ALL - 82 ) + + 87 - + + 36 * COUNT ( * )
----
-31

query I rowsort
SELECT DISTINCT 78 + + 48 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT ALL + CASE 0 WHEN - ( 59 ) THEN - - 77 * + 12 + + - 45 ELSE + 5 - + 23 / + + CAST( NULL AS SIGNED ) - 98 + + 27 + - 20 * + NULLIF ( COALESCE ( - - 37, - - 17 + - SUM( 75 ) ), - 69 ) * 90 * + + 59 END + 95 + + + COALESCE ( - 21, + COUNT( ALL - 4 ) + AVG ( ALL + 58 ) + - 7 * - - 38 ) * 50 - COUNT( * ) / - + MAX( + 8 ) - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + CASE 0 WHEN - ( 59 ) THEN - - 77 * + 12 + + - 45 ELSE + 5 - + 23 / + + CAST ( NULL AS INTEGER ) - 98 + + 27 + - 20 * + NULLIF ( COALESCE ( - - 37, - - 17 + - SUM ( 75 ) ), - 69 ) * 90 * + + 59 END + 95 + + + COALESCE ( - 21, + COUNT ( ALL - 4 ) + AVG ( ALL + 58 ) + - 7 * - - 38 ) * 50 - COUNT ( * ) / - + MAX ( + 8 ) - 81
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 10 + - 1 AS col0
----
9

query I rowsort
SELECT 71 * 1 * + 35 + + 73 AS col1
----
2558

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT ALL - COALESCE ( + + CASE + 85 WHEN + 0 + + COUNT( * ) - + AVG ( 20 ) + 35 * + ( - 38 ) THEN + 43 * COUNT( * ) DIV + 46 WHEN + + 4 THEN NULL ELSE NULL END, + + 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - COALESCE ( + + CASE + 85 WHEN + 0 + + COUNT ( * ) - + AVG ( 20 ) + 35 * + ( - 38 ) THEN + 43 * COUNT ( * ) / + 46 WHEN + + 4 THEN NULL ELSE NULL END, + + 32 ) AS col0
----
-32

query II rowsort
SELECT 58 AS col1, 44 AS col1
----
58
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5145
SELECT COUNT( * ) DIV + - 7 * COALESCE ( CAST( NULL AS SIGNED ), 74 + COUNT( * ) + + - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT COUNT ( * ) / + - 7 * COALESCE ( CAST ( NULL AS INTEGER ), 74 + COUNT ( * ) + + - 85 )
----
0

query I rowsort
SELECT 81 + - 38
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5147
SELECT 55 * - COUNT( * ) col2, 36 AS col2
----
-55
36

skipif mysql # not compatible
query II rowsort label-5147
SELECT 55 * - COUNT ( * ) col2, 36 AS col2
----
-55
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT 91 + COUNT( * ) + - COUNT( * ) * + 62 * 35 + COUNT( * ) * - 38 + + 19 * - 79 * - + 31
----
44415

skipif mysql # not compatible
query I rowsort label-5148
SELECT 91 + COUNT ( * ) + - COUNT ( * ) * + 62 * 35 + COUNT ( * ) * - 38 + + 19 * - 79 * - + 31
----
44415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT ALL + 72 + 86 * 57 * - 66 + 53 * COALESCE ( - NULLIF ( 66, COUNT( * ) ), + + 40, - + 41 ) * CAST( NULL AS SIGNED ) + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + 72 + 86 * 57 * - 66 + 53 * COALESCE ( - NULLIF ( 66, COUNT ( * ) ), + + 40, - + 41 ) * CAST ( NULL AS INTEGER ) + + 18
----
NULL

query I rowsort
SELECT 81 * 89 AS col2
----
7209

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT - 0 * CASE COUNT( * ) WHEN + 95 * - + 70 THEN - 57 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - 0 * CASE COUNT ( * ) WHEN + 95 * - + 70 THEN - 57 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5153
SELECT + 21, - CASE - + 0 WHEN + COUNT( DISTINCT - 93 ) + - - 52 * 1 THEN NULL ELSE CAST( NULL AS SIGNED ) END * + - 47 col1
----
21
NULL

skipif mysql # not compatible
query II rowsort label-5153
SELECT + 21, - CASE - + 0 WHEN + COUNT ( DISTINCT - 93 ) + - - 52 * 1 THEN NULL ELSE CAST ( NULL AS INTEGER ) END * + - 47 col1
----
21
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5154
SELECT 71 - + COUNT( * ) + - 69 * 27, + COUNT( * ) AS col0
----
-1793
1

skipif mysql # not compatible
query II rowsort label-5154
SELECT 71 - + COUNT ( * ) + - 69 * 27, + COUNT ( * ) AS col0
----
-1793
1

query I rowsort
SELECT 6 * - + 74
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ( + 70 ) - - COUNT( * ) + + CASE - + 34 WHEN + - 40 + 44 THEN COUNT( * ) END - - AVG ( + 22 ) * 95 * 45 / - MIN( + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT ( + 70 ) - - COUNT ( * ) + + CASE - + 34 WHEN + - 40 + 44 THEN COUNT ( * ) END - - AVG ( + 22 ) * 95 * 45 / - MIN ( + 89 )
----
NULL

query II rowsort
SELECT 25 AS col2, 3 + + 56 + 39
----
25
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT COUNT( * ) * - 55 + - 74 * - 87
----
6383

skipif mysql # not compatible
query I rowsort label-5158
SELECT COUNT ( * ) * - 55 + - 74 * - 87
----
6383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5159
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - MAX( - 45 ) * 55
----
NULL
2475

skipif mysql # not compatible
query II rowsort label-5159
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - MAX ( - 45 ) * 55
----
NULL
2475

query I rowsort
SELECT 24 - + + 68
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT ALL - - MIN( NULLIF ( ( CAST( NULL AS SIGNED ) ), + 81 ) ) * CAST( - CASE + COUNT( * ) WHEN 65 * ( - 0 ) + - 49 THEN + 1 * + 45 * + 1 / 29 * 71 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL - - MIN ( NULLIF ( ( CAST ( NULL AS INTEGER ) ), + 81 ) ) * CAST ( - CASE + COUNT ( * ) WHEN 65 * ( - 0 ) + - 49 THEN + 1 * + 45 * + 1 / 29 * 71 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT 54 * 59
----
3186

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT DISTINCT - 37 DIV - - 69 - 22
----
-22

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT - 37 / - - 69 - 22
----
-22

query II rowsort
SELECT ALL - 13, 35 AS col0
----
-13
35

query II rowsort
SELECT 56 AS col2, 98 + - - 19 - - 46 AS col0
----
56
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT - 66 + MAX( + 87 )
----
21

skipif mysql # not compatible
query I rowsort label-5166
SELECT - 66 + MAX ( + 87 )
----
21

query II rowsort
SELECT 50 AS col2, 70 + - 44
----
50
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5168
SELECT + 75 DIV + - 58 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5168
SELECT + 75 / + - 58 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL + SUM( - - 18 ) * + 62 * 23 col1
----
25668

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + SUM ( - - 18 ) * + 62 * 23 col1
----
25668

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5172
SELECT - - 23 AS col2, 32 + - COALESCE ( 13, - - 77 + + 3 ) - 76 DIV + 20 + - + 34 AS col0
----
23
-18

skipif mysql # not compatible
query II rowsort label-5172
SELECT - - 23 AS col2, 32 + - COALESCE ( 13, - - 77 + + 3 ) - 76 / + 20 + - + 34 AS col0
----
23
-18

query I rowsort
SELECT DISTINCT - + ( 93 ) + + 87
----
-6

query I rowsort
SELECT ALL + 63 + - - 4
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5175
SELECT - 74 AS col0, 98 / 87 * + CASE + - NULLIF ( - 7, + 47 ) WHEN + ( + 55 ) * + + COUNT( 70 ) + - 81 + - COUNT( * ) + - 99 * 54 THEN + MAX( - 58 ) + + - 61 ELSE NULL END AS col0
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-5175
SELECT - 74 AS col0, 98 / 87 * + CASE + - NULLIF ( - 7, + 47 ) WHEN + ( + 55 ) * + + COUNT ( 70 ) + - 81 + - COUNT ( * ) + - 99 * 54 THEN + MAX ( - 58 ) + + - 61 ELSE NULL END AS col0
----
-74
NULL

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

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

query I rowsort
SELECT DISTINCT + 94 + - 40 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5178
SELECT ALL - 8 AS col1, + 95 * - - NULLIF ( - - NULLIF ( - 79, - COALESCE ( 68, 57 * + - COUNT( * ) ) / 52 * - - 64 ), + 84 ) AS col2
----
-8
-7505

skipif mysql # not compatible
query II rowsort label-5178
SELECT ALL - 8 AS col1, + 95 * - - NULLIF ( - - NULLIF ( - 79, - COALESCE ( 68, 57 * + - COUNT ( * ) ) / 52 * - - 64 ), + 84 ) AS col2
----
-8
-7505

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5180
SELECT 3 / - 8 / + 4 * + CAST( NULL AS DECIMAL ) + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT 3 / - 8 / + 4 * + CAST ( NULL AS REAL ) + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5181
SELECT MIN( ALL 86 ) col1, + 24 AS col0
----
86
24

skipif mysql # not compatible
query II rowsort label-5181
SELECT MIN ( ALL 86 ) col1, + 24 AS col0
----
86
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5182
SELECT SUM( - 53 ) DIV 40 * 98 * - MAX( 6 ) AS col0
----
588

skipif mysql # not compatible
query I rowsort label-5182
SELECT SUM ( - 53 ) / 40 * 98 * - MAX ( 6 ) AS col0
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL 17 * + SUM( ALL 77 ) + - COUNT( * ) AS col1
----
1308

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL 17 * + SUM ( ALL 77 ) + - COUNT ( * ) AS col1
----
1308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5184
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 33 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 33 / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT COUNT( * ) * - 59 - - ( + - MAX( + 91 ) ) - 68
----
-218

skipif mysql # not compatible
query I rowsort label-5185
SELECT COUNT ( * ) * - 59 - - ( + - MAX ( + 91 ) ) - 68
----
-218

query I rowsort
SELECT ALL + 13 * 68 * + + 38
----
33592

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT + 3 + 63 * - - ( - - 27 ) + - ( + ( + 46 ) ) - - 93 DIV 34
----
1660

skipif mysql # not compatible
query I rowsort label-5187
SELECT + 3 + 63 * - - ( - - 27 ) + - ( + ( + 46 ) ) - - 93 / 34
----
1660

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - MIN( - 62 ) * + - 46 * 50 + ( + 97 ) + ( + + COUNT( * ) ) AS col2
----
-142502

skipif mysql # not compatible
query I rowsort label-5188
SELECT - MIN ( - 62 ) * + - 46 * 50 + ( + 97 ) + ( + + COUNT ( * ) ) AS col2
----
-142502

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

skipif mysql # not compatible
query I rowsort label-5189
SELECT + 67 + - - 16 * - - COUNT ( * ) + + 29 AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT + ( + 16 ) + + 94 - - + 12 * + ( 37 ) + + + 7 + + CAST( + 88 AS SIGNED )
----
649

skipif mysql # not compatible
query I rowsort label-5190
SELECT + ( + 16 ) + + 94 - - + 12 * + ( 37 ) + + + 7 + + CAST ( + 88 AS INTEGER )
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL + MIN( - 11 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + MIN ( - 11 ) col2
----
-11

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

skipif mysql # not compatible
query I rowsort label-5192
SELECT SUM ( DISTINCT CAST ( - + 3 AS INTEGER ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT + ( - NULLIF ( + + 97, 71 - + - COUNT( ALL + 57 ) ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + ( - NULLIF ( + + 97, 71 - + - COUNT ( ALL + 57 ) ) ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5194
SELECT DISTINCT - - 14 * - + CAST( - - COALESCE ( + 6, + + COUNT( * ) + + 12 ) AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - - 14 * - + CAST ( - - COALESCE ( + 6, + + COUNT ( * ) + + 12 ) AS INTEGER )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - - COUNT( * ) * - 65 + - 18 * + 7 * 69
----
-8759

skipif mysql # not compatible
query I rowsort label-5195
SELECT - - COUNT ( * ) * - 65 + - 18 * + 7 * 69
----
-8759

query I rowsort
SELECT + 37 + + - ( 27 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - - MAX( - 98 ) * - 54 + 27
----
5319

skipif mysql # not compatible
query I rowsort label-5197
SELECT - - MAX ( - 98 ) * - 54 + 27
----
5319

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT - - COALESCE ( - 46, - - 18 ) + - 0 * 90 DIV + 35 + - 39
----
-85

skipif mysql # not compatible
query I rowsort label-5198
SELECT - - COALESCE ( - 46, - - 18 ) + - 0 * 90 / + 35 + - 39
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT - + COUNT( - + 13 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5199
SELECT - + COUNT ( - + 13 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT MIN( 49 ) col2
----
49

skipif mysql # not compatible
query I rowsort label-5200
SELECT MIN ( 49 ) col2
----
49

query I rowsort
SELECT ALL + 58 + - 78 - - 85 + + + 35 + + 24
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT DISTINCT + - 22 + - 61 + - + 66 DIV 23
----
-85

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT + - 22 + - 61 + - + 66 / 23
----
-85

query I rowsort
SELECT ALL + - ( - + 58 ) + - - CASE + - 30 WHEN 7 THEN NULL WHEN ( + 11 ) THEN NULL ELSE 35 END
----
93

query I rowsort
SELECT DISTINCT + 64 + - + 71
----
-7

query I rowsort
SELECT - 66 * + 6 + 82 + - 86 col1
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5206
SELECT ALL + 31 + - + 9 + - - 83 + - NULLIF ( 16, - CAST( - - 62 AS SIGNED ) * + 61 / - + 84 + - 65 / - SUM( + 28 ) )
----
89

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + 31 + - + 9 + - - 83 + - NULLIF ( 16, - CAST ( - - 62 AS INTEGER ) * + 61 / - + 84 + - 65 / - SUM ( + 28 ) )
----
89

query I rowsort
SELECT ALL - 44 * - 59
----
2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5208
SELECT - CAST( NULL AS SIGNED ) * + ( + ( + - COUNT( * ) ) ) / NULLIF ( + 26, + + 36 - - 13 * - - 68 ), - 99 + + 78 AS col2
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-5208
SELECT - CAST ( NULL AS INTEGER ) * + ( + ( + - COUNT ( * ) ) ) / NULLIF ( + 26, + + 36 - - 13 * - - 68 ), - 99 + + 78 AS col2
----
NULL
-21

query II rowsort
SELECT - 87 AS col0, 93 * + 27 + ( 97 ) col2
----
-87
2608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT - CAST( + + 45 AS SIGNED ) + + 24 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5210
SELECT - CAST ( + + 45 AS INTEGER ) + + 24 AS col2
----
-21

query I rowsort
SELECT DISTINCT + COALESCE ( - 17, - 49, - + 85 ) AS col2
----
-17

query I rowsort
SELECT DISTINCT - 27 * CASE + 27 WHEN + 34 + 29 THEN NULL ELSE 55 + + 97 END col0
----
-4104

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

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

query II rowsort
SELECT ALL - 94 * - + 94 - + 11 AS col0, ( 7 ) + 82 AS col2
----
8825
89

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

query I rowsort
SELECT ( - - 78 )
----
78

query I rowsort
SELECT + 55 * - 32 AS col1
----
-1760

query I rowsort
SELECT ALL + 82 * + 20
----
1640

onlyif mysql # aggregate syntax: 
query II rowsort label-5219
SELECT + 64 AS col0, - COUNT( * ) + - 79
----
64
-80

skipif mysql # not compatible
query II rowsort label-5219
SELECT + 64 AS col0, - COUNT ( * ) + - 79
----
64
-80

query I rowsort
SELECT + 73 + + 32 AS col2
----
105

query I rowsort
SELECT + NULLIF ( ( 0 ), 46 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT 46 * + COUNT( - 34 ) + + COUNT( COALESCE ( - 86, - + 24 ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5222
SELECT 46 * + COUNT ( - 34 ) + + COUNT ( COALESCE ( - 86, - + 24 ) ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT + COUNT( * ) AS col1, - 73 + 86
----
1
13

skipif mysql # not compatible
query II rowsort label-5223
SELECT + COUNT ( * ) AS col1, - 73 + 86
----
1
13

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

skipif mysql # not compatible
query I rowsort label-5224
SELECT - CAST ( NULL AS INTEGER ) * + 36
----
NULL

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

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

query II rowsort
SELECT CASE + 7 WHEN + + 86 * - 52 THEN + - 82 * + 62 ELSE + 40 * 69 END col0, 32 AS col2
----
2760
32

query I rowsort
SELECT - 74 - - 73
----
-1

query I rowsort
SELECT - 37 * 72 + + ( + 87 ) + 20 - - 13 AS col2
----
-2544

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL ( MIN( + 23 ) ) col0
----
23

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL ( MIN ( + 23 ) ) col0
----
23

query I rowsort
SELECT + - 41 - 59
----
-100

query I rowsort
SELECT + + 66 - 41
----
25

query I rowsort
SELECT DISTINCT - 2 * - - 54
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT - CAST( NULL AS SIGNED ) - - 30 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT - CAST ( NULL AS INTEGER ) - - 30 * 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5234
SELECT ALL CASE 86 WHEN - + 9 THEN NULL WHEN + - 56 + - 41 THEN CAST( NULL AS SIGNED ) + + 65 ELSE NULL END, - 76 AS col0
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-5234
SELECT ALL CASE 86 WHEN - + 9 THEN NULL WHEN + - 56 + - 41 THEN CAST ( NULL AS INTEGER ) + + 65 ELSE NULL END, - 76 AS col0
----
NULL
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT 84 + + 7 + 61 + ( - + COUNT( * ) ) col1
----
151

skipif mysql # not compatible
query I rowsort label-5236
SELECT 84 + + 7 + 61 + ( - + COUNT ( * ) ) col1
----
151

query I rowsort
SELECT DISTINCT + 41 * 38 AS col1
----
1558

query I rowsort
SELECT DISTINCT - 68 * + - 30
----
2040

onlyif mysql # DIV for integer division: 
query II rowsort label-5239
SELECT 9 DIV + + 10 AS col0, - 80
----
0
-80

skipif mysql # not compatible
query II rowsort label-5239
SELECT 9 / + + 10 AS col0, - 80
----
0
-80

query II rowsort
SELECT 80 + + 41, 12 AS col2
----
121
12

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

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

query I rowsort
SELECT + 45 * - 87 + - + 39 AS col1
----
-3954

query I rowsort
SELECT 87 * + - 39 + 61
----
-3332

query I rowsort
SELECT ALL 26 + + 40 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT DISTINCT + MAX( ALL - 74 ) * SUM( + 44 ) AS col0
----
-3256

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT + MAX ( ALL - 74 ) * SUM ( + 44 ) AS col0
----
-3256

query I rowsort
SELECT 9 * - - CASE + 1 WHEN 51 / 77 + - - 97 THEN 10 - - 72 ELSE NULL END / + + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL - CASE - COALESCE ( + + SUM( - 5 ), + + 6 + 86 * + 50 * - 12 ) WHEN + - 61 + + COUNT( * ) + + 65 + + - 89 * - + 47 * 29 THEN 49 WHEN + 35 * + + 12 THEN NULL ELSE + - 76 END
----
76

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - CASE - COALESCE ( + + SUM ( - 5 ), + + 6 + 86 * + 50 * - 12 ) WHEN + - 61 + + COUNT ( * ) + + 65 + + - 89 * - + 47 * 29 THEN 49 WHEN + 35 * + + 12 THEN NULL ELSE + - 76 END
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT 25 + - SUM( ALL + 93 ) + - 94 + - COUNT( * ) * + - ( + + 9 ) * + - 47 AS col1
----
-585

skipif mysql # not compatible
query I rowsort label-5248
SELECT 25 + - SUM ( ALL + 93 ) + - 94 + - COUNT ( * ) * + - ( + + 9 ) * + - 47 AS col1
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT - MIN( DISTINCT - 90 ) + + + 59 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT - MIN ( DISTINCT - 90 ) + + + 59 AS col2
----
149

query I rowsort
SELECT ALL + ( + 87 ) + + + 87
----
174

query II rowsort
SELECT ( - 32 ) AS col2, 77 * ( - 37 ) AS col2
----
-32
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT COUNT( * ) * - - 17 * - 21 + - 58 + - - 90 - - 30 AS col2
----
-295

skipif mysql # not compatible
query I rowsort label-5252
SELECT COUNT ( * ) * - - 17 * - 21 + - 58 + - - 90 - - 30 AS col2
----
-295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT - 85 * - SUM( ALL - - CAST( NULL AS SIGNED ) ) + + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT - 85 * - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) + + 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + MAX( DISTINCT + 57 ) + - 14 * - 57
----
855

skipif mysql # not compatible
query I rowsort label-5254
SELECT + MAX ( DISTINCT + 57 ) + - 14 * - 57
----
855

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT DISTINCT 33 + - 99 AS col0, SUM( 21 ) AS col0
----
-66
21

skipif mysql # not compatible
query II rowsort label-5255
SELECT DISTINCT 33 + - 99 AS col0, SUM ( 21 ) AS col0
----
-66
21

query I rowsort
SELECT DISTINCT - 98 + + 49 - 8 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL - ( - - 24 ) * 11 + - AVG ( DISTINCT + - 67 ) * CAST( NULL AS SIGNED ) * 30 + 48 / - 87 + 65 + AVG ( ALL + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - ( - - 24 ) * 11 + - AVG ( DISTINCT + - 67 ) * CAST ( NULL AS INTEGER ) * 30 + 48 / - 87 + 65 + AVG ( ALL + 94 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5258
SELECT + COUNT( * ) + + - CAST( 11 AS SIGNED ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5258
SELECT + COUNT ( * ) + + - CAST ( 11 AS INTEGER ) AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT - 88 DIV - ( + 91 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT - 88 / - ( + 91 ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5260
SELECT 47 * - + NULLIF ( 40, + 43 * + 41 ) - + 82 + + + 10 - + 76 * + 67 * + MIN( - - 27 ) * + COUNT( * ) AS col2, + 16 * + - 5 + - 85 + - 8
----
-139436
-173

skipif mysql # not compatible
query II rowsort label-5260
SELECT 47 * - + NULLIF ( 40, + 43 * + 41 ) - + 82 + + + 10 - + 76 * + 67 * + MIN ( - - 27 ) * + COUNT ( * ) AS col2, + 16 * + - 5 + - 85 + - 8
----
-139436
-173

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

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

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

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - NULLIF ( + 67, COUNT ( * ) )
----
-67

query I rowsort
SELECT + 84 + - 80 AS col2
----
4

query I rowsort
SELECT DISTINCT 57 - - - 66 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT COALESCE ( + COUNT( * ), + 58 * - - 59 ) * - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 58 * - - 59 ) * - 67 AS col1
----
-67

query I rowsort
SELECT DISTINCT 51 * 28
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT CASE + ( + - 86 ) WHEN + 36 THEN - 3 + - + 79 * - MIN( + - 97 ) END * - COUNT( * ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT CASE + ( + - 86 ) WHEN + 36 THEN - 3 + - + 79 * - MIN ( + - 97 ) END * - COUNT ( * ) + + 59
----
NULL

query II rowsort
SELECT - 49 AS col0, 56 AS col0
----
-49
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5270
SELECT + COUNT( * ), CAST( NULL AS SIGNED ) + COALESCE ( 97, + + 75 * - - 35 / - SUM( DISTINCT - 27 ), 0 * + - 58 * + 84 ) * + 44 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5270
SELECT + COUNT ( * ), CAST ( NULL AS INTEGER ) + COALESCE ( 97, + + 75 * - - 35 / - SUM ( DISTINCT - 27 ), 0 * + - 58 * + 84 ) * + 44 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT 15 * 38 DIV + COUNT( * ) AS col0
----
570

skipif mysql # not compatible
query I rowsort label-5271
SELECT 15 * 38 / + COUNT ( * ) AS col0
----
570

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT MAX( DISTINCT 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5273
SELECT MAX ( DISTINCT 78 ) AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT 34 DIV + 26
----
1

skipif mysql # not compatible
query I rowsort label-5274
SELECT 34 / + 26
----
1

query I rowsort
SELECT ALL 72 + - 2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT 5 * + 8 * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5276
SELECT 5 * + 8 * COUNT ( * )
----
40

query I rowsort
SELECT 41 * - 93
----
-3813

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

skipif mysql # not compatible
query I rowsort label-5278
SELECT CAST ( NULL AS INTEGER ) * + 40
----
NULL

query I rowsort
SELECT 50 + - 49 * + 38
----
-1812

query I rowsort
SELECT ALL + COALESCE ( + 56, - 92 ) * 81
----
4536

query I rowsort
SELECT 20 * - 60 + + 12 col2
----
-1188

query I rowsort
SELECT DISTINCT ( 6 ) + 82
----
88

query I rowsort
SELECT ALL + 21 + 53 AS col0
----
74

query I rowsort
SELECT 40 * 98
----
3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL CAST( NULL AS SIGNED ) * CASE - 73 * - 56 WHEN COUNT( * ) THEN NULL ELSE COALESCE ( AVG ( DISTINCT - 33 ), 99, 96 ) / 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL CAST ( NULL AS INTEGER ) * CASE - 73 * - 56 WHEN COUNT ( * ) THEN NULL ELSE COALESCE ( AVG ( DISTINCT - 33 ), 99, 96 ) / 43 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 3 - 20 * 14
----
-283

query I rowsort
SELECT 30 * + 26 AS col2
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT ALL - COALESCE ( SUM( + COALESCE ( 66, - 82 DIV - 53 ) ), - COUNT( * ) DIV 36 )
----
-66

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - COALESCE ( SUM ( + COALESCE ( 66, - 82 / - 53 ) ), - COUNT ( * ) / 36 )
----
-66

query I rowsort
SELECT 49 + - 64 AS col1
----
-15

query I rowsort
SELECT 85 * 32 AS col2
----
2720

query I rowsort
SELECT ALL - 85 * - 53 AS col2
----
4505

query I rowsort
SELECT 55 * - 49 AS col0
----
-2695

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT - 10 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-5293
SELECT - 10 / 41
----
0

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

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

query I rowsort
SELECT - ( 82 ) - 45 AS col0
----
-127

query I rowsort
SELECT DISTINCT - 68 * 9 AS col1
----
-612

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5298
SELECT + 80 DIV + ( + CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5298
SELECT + 80 / + ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
80

query I rowsort
SELECT - ( ( 50 ) ) + 60 * 26
----
1510

query I rowsort
SELECT + 56 * 10 col2
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT - COUNT( * ) + 46 * 91 col0
----
4185

skipif mysql # not compatible
query I rowsort label-5301
SELECT - COUNT ( * ) + 46 * 91 col0
----
4185

onlyif mysql # DIV for integer division: 
query I rowsort label-5302
SELECT - COALESCE ( + 7, - 17, + 59 * + 10 - 17 ) DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT - COALESCE ( + 7, - 17, + 59 * + 10 - 17 ) / + 23
----
0

query I rowsort
SELECT + 50 * - 94 AS col1
----
-4700

query I rowsort
SELECT ALL - 96 + 14 AS col0
----
-82

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

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL 32 + + ( COUNT ( * ) ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT - COUNT( 49 ) + 44 * - 24 col0
----
-1057

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT - COUNT ( 49 ) + 44 * - 24 col0
----
-1057

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT + 73 + + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5307
SELECT + 73 + + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT + 90 * + 74
----
6660

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5309
SELECT ALL 96 + 24 * CAST( + NULLIF ( 45, CAST( 35 AS DECIMAL ) ) AS SIGNED )
----
1176

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL 96 + 24 * CAST ( + NULLIF ( 45, CAST ( 35 AS REAL ) ) AS INTEGER )
----
1176

query I rowsort
SELECT - 2 + 19 AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5311
SELECT - SUM( + 9 ) DIV ( - NULLIF ( + 59, ( 76 ) ) ) + - 90 * + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-5311
SELECT - SUM ( + 9 ) / ( - NULLIF ( + 59, ( 76 ) ) ) + - 90 * + COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT + 54 + 52 / CASE + COUNT( * ) + - MIN( - 50 ) / 59 WHEN - 87 THEN AVG ( + 17 ) WHEN 11 THEN NULL WHEN - 15 * - 15 THEN NULL WHEN - 79 + 58 THEN MIN( ALL - 82 ) + - 26 / 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT + 54 + 52 / CASE + COUNT ( * ) + - MIN ( - 50 ) / 59 WHEN - 87 THEN AVG ( + 17 ) WHEN 11 THEN NULL WHEN - 15 * - 15 THEN NULL WHEN - 79 + 58 THEN MIN ( ALL - 82 ) + - 26 / 70 END AS col2
----
NULL

query I rowsort
SELECT + 60 * - 10 col0
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL - 87 * COUNT( * ) + MIN( ( 82 ) ) * - 87 AS col1
----
-7221

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL - 87 * COUNT ( * ) + MIN ( ( 82 ) ) * - 87 AS col1
----
-7221

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT ALL - 23 * 64 - CAST( + 20 AS SIGNED ) AS col0
----
-1492

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - 23 * 64 - CAST ( + 20 AS INTEGER ) AS col0
----
-1492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5317
SELECT - 5 * + SUM( ALL 50 ) + 3 DIV COUNT( * )
----
-247

skipif mysql # not compatible
query I rowsort label-5317
SELECT - 5 * + SUM ( ALL 50 ) + 3 / COUNT ( * )
----
-247

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT + + 58 DIV + 47 + + 81 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5319
SELECT + + 58 / + 47 + + 81 AS col2
----
82

query I rowsort
SELECT ALL - 59 * 12 AS col1
----
-708

query I rowsort
SELECT + + 53 + 69
----
122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT DISTINCT 71 * - 73 - COUNT( * ) AS col2
----
-5184

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT 71 * - 73 - COUNT ( * ) AS col2
----
-5184

query I rowsort
SELECT - + 4 * - 85 AS col2
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT + COUNT( * ) * + ( NULLIF ( + 94, - COUNT( + 31 ) ) + COUNT( DISTINCT 24 ) * - COUNT( * ) ) + ( + 20 + + 46 ) * 30
----
2073

skipif mysql # not compatible
query I rowsort label-5325
SELECT + COUNT ( * ) * + ( NULLIF ( + 94, - COUNT ( + 31 ) ) + COUNT ( DISTINCT 24 ) * - COUNT ( * ) ) + ( + 20 + + 46 ) * 30
----
2073

query I rowsort
SELECT + 79 * - 25
----
-1975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL 62 * - MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL 62 * - MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 37 * 6 + 3
----
225

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

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

query I rowsort
SELECT - + 35 * 38 AS col2
----
-1330

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5331
SELECT ALL CASE + - 32 WHEN + 5 * 79 + + 81 THEN NULL ELSE CASE COUNT( * ) WHEN 93 + 81 THEN NULL WHEN + SUM( DISTINCT CASE 60 WHEN + 34 THEN ( - 92 ) * - 4 ELSE 67 END ) + - CAST( NULL AS DECIMAL ) * 27 THEN 20 END * + 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL CASE + - 32 WHEN + 5 * 79 + + 81 THEN NULL ELSE CASE COUNT ( * ) WHEN 93 + 81 THEN NULL WHEN + SUM ( DISTINCT CASE 60 WHEN + 34 THEN ( - 92 ) * - 4 ELSE 67 END ) + - CAST ( NULL AS REAL ) * 27 THEN 20 END * + 77 END
----
NULL

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

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

query I rowsort
SELECT ALL ( - 42 ) AS col0
----
-42

query I rowsort
SELECT - 33 + 37 AS col0
----
4

query I rowsort
SELECT DISTINCT - COALESCE ( + NULLIF ( 76, - 36 / + 91 ), 42 ) + 42
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT + MIN( DISTINCT + 12 ) + 94 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT + MIN ( DISTINCT + 12 ) + 94 AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT DISTINCT CASE - + 25 WHEN - 93 * + ( - CAST( - 11 AS SIGNED ) ) THEN 12 * - MAX( ALL 38 ) WHEN 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT CASE - + 25 WHEN - 93 * + ( - CAST ( - 11 AS INTEGER ) ) THEN 12 * - MAX ( ALL 38 ) WHEN 40 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 55 + + 62 AS col0
----
7

query I rowsort
SELECT ALL - ( + 99 ) + 17
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT + COUNT( * ) + - - 93 - COALESCE ( + 36, 50 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT + COUNT ( * ) + - - 93 - COALESCE ( + 36, 50 ) col1
----
58

query I rowsort
SELECT DISTINCT - 83 + - + 22 col2
----
-105

query I rowsort
SELECT - 90 + + 58 * - 81
----
-4788

query I rowsort
SELECT ALL + ( - + ( 44 ) ) + - ( ( 96 ) + 84 * 5 )
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL - SUM( ALL + + 19 ) + - 26
----
-45

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - SUM ( ALL + + 19 ) + - 26
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT - 37 * + + MIN( 94 )
----
-3478

skipif mysql # not compatible
query I rowsort label-5346
SELECT - 37 * + + MIN ( 94 )
----
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + COUNT( * ) * 14 * + 99
----
1386

skipif mysql # not compatible
query I rowsort label-5347
SELECT + COUNT ( * ) * 14 * + 99
----
1386

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + MAX( + ( 60 ) ) + 90 AS col0
----
150

skipif mysql # not compatible
query I rowsort label-5349
SELECT + MAX ( + ( 60 ) ) + 90 AS col0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT DISTINCT ( + 49 ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT ( + 49 ) / 55
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5351
SELECT ALL 42 - - 35 - + COUNT( * ) DIV - 58 col2
----
77

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL 42 - - 35 - + COUNT ( * ) / - 58 col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5352
SELECT DISTINCT + CASE 82 WHEN - 84 * COUNT( 42 * CAST( NULL AS SIGNED ) ) THEN 85 - 91 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT + CASE 82 WHEN - 84 * COUNT ( 42 * CAST ( NULL AS INTEGER ) ) THEN 85 - 91 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT ALL + + 82 DIV 40 * + ( COALESCE ( 47, 76 ) * + COALESCE ( 58 * + 51 + + 53, + 5, + 40 * - 90 ) ) AS col2
----
283034

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + + 82 / 40 * + ( COALESCE ( 47, 76 ) * + COALESCE ( 58 * + 51 + + 53, + 5, + 40 * - 90 ) ) AS col2
----
283034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT ALL - COUNT( * ) DIV 85 - 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL - COUNT ( * ) / 85 - 16 AS col0
----
-16

query I rowsort
SELECT + + 76 col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT - 27 - + SUM( DISTINCT ( + 25 ) ) * - 87
----
2148

skipif mysql # not compatible
query I rowsort label-5356
SELECT - 27 - + SUM ( DISTINCT ( + 25 ) ) * - 87
----
2148

query I rowsort
SELECT DISTINCT 80 * + + 1 + 21
----
101

query I rowsort
SELECT + 67 * 68
----
4556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT + - 31 DIV + MIN( ALL + 79 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT + - 31 / + MIN ( ALL + 79 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT - COUNT( * ) * - 23 * - 60 + ( 43 ) col1
----
-1337

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT - COUNT ( * ) * - 23 * - 60 + ( 43 ) col1
----
-1337

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

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

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

query I rowsort
SELECT + 31 * - 10 col2
----
-310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) * - 15 * - COALESCE ( - 73, - SUM( - ( 4 ) ) ) + + ( + 19 + MIN( ALL 64 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) * - 15 * - COALESCE ( - 73, - SUM ( - ( 4 ) ) ) + + ( + 19 + MIN ( ALL 64 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT ( 46 ) DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5365
SELECT ( 46 ) / - 63 AS col2
----
0

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

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

query I rowsort
SELECT ALL + 96 + - - 98
----
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5368
SELECT ALL COUNT( * ) * 3 * - - CASE + 0 WHEN - 95 / NULLIF ( - 23, 16 ) THEN CAST( NULL AS SIGNED ) * NULLIF ( 43, - 46 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL COUNT ( * ) * 3 * - - CASE + 0 WHEN - 95 / NULLIF ( - 23, 16 ) THEN CAST ( NULL AS INTEGER ) * NULLIF ( 43, - 46 ) END col1
----
NULL

query I rowsort
SELECT ALL 85 + 18 - + ( + 49 ) - - 90 AS col2
----
144

query I rowsort
SELECT 15 * 80 AS col0
----
1200

query I rowsort
SELECT DISTINCT 20 + - - ( + 37 ) + + 85 col1
----
142

query II rowsort
SELECT ALL 1 col2, + COALESCE ( - - 80, 88 * 65 ) AS col2
----
1
80

query I rowsort
SELECT 28 + - - 2 * - 78
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL + COUNT( * ) + - 9 + 53 * 60 * 96
----
305272

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + COUNT ( * ) + - 9 + 53 * 60 * 96
----
305272

query I rowsort
SELECT 8 + 62 - + 71 + - 1
----
-2

query I rowsort
SELECT 18 + - 59
----
-41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5378
SELECT DISTINCT + NULLIF ( - COUNT( * ), NULLIF ( 12, - 15 ) + 15 ) DIV ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT + NULLIF ( - COUNT ( * ), NULLIF ( 12, - 15 ) + 15 ) / ( 82 )
----
0

query I rowsort
SELECT 43 * - 20 * - COALESCE ( + 96, 3 * + 83 ) AS col1
----
82560

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL + CASE + 1 WHEN + 68 THEN COUNT( * ) WHEN ( COUNT( * ) ) / + COUNT( * ) THEN NULL ELSE - 54 * MAX( DISTINCT 13 ) END * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + CASE + 1 WHEN + 68 THEN COUNT ( * ) WHEN ( COUNT ( * ) ) / + COUNT ( * ) THEN NULL ELSE - 54 * MAX ( DISTINCT 13 ) END * 14
----
NULL

query I rowsort
SELECT ALL + 81 * 8
----
648

query I rowsort
SELECT - + NULLIF ( + 25, 86 )
----
-25

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

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

query I rowsort
SELECT 47 * 36 * + 38 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT + 37 * - 55 - + MIN( ALL - 36 ) + + NULLIF ( + COUNT( * ), - COUNT( * ) ) * - 11 AS col1
----
-2010

skipif mysql # not compatible
query I rowsort label-5385
SELECT + 37 * - 55 - + MIN ( ALL - 36 ) + + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) * - 11 AS col1
----
-2010

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

skipif mysql # not compatible
query II rowsort label-5386
SELECT - 67, 14 * - COUNT ( * ) AS col1
----
-67
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-5387
SELECT ALL + CASE WHEN ( - NULLIF ( - 64, 82 * + ( 55 * 13 ) ) ) NOT IN ( + 76 + 6 ) THEN + 76 END DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL + CASE WHEN ( - NULLIF ( - 64, 82 * + ( 55 * 13 ) ) ) NOT IN ( + 76 + 6 ) THEN + 76 END / - 78 AS col1
----
0

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

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

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT - COUNT ( * ) / 84 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5391
SELECT ALL - 37 AS col1, + CASE - 19 WHEN + ( 44 ) + + CASE - 67 WHEN - 21 THEN NULLIF ( + 41, 14 ) ELSE - COUNT( * ) + + AVG ( DISTINCT - 58 - 22 * 62 ) / + CAST( NULL AS SIGNED ) END * 96 THEN NULL ELSE 65 END + - 23
----
-37
42

skipif mysql # not compatible
query II rowsort label-5391
SELECT ALL - 37 AS col1, + CASE - 19 WHEN + ( 44 ) + + CASE - 67 WHEN - 21 THEN NULLIF ( + 41, 14 ) ELSE - COUNT ( * ) + + AVG ( DISTINCT - 58 - 22 * 62 ) / + CAST ( NULL AS INTEGER ) END * 96 THEN NULL ELSE 65 END + - 23
----
-37
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT 96 * - 57 + + CAST( - 37 AS SIGNED ) * 43 AS col2
----
-7063

skipif mysql # not compatible
query I rowsort label-5392
SELECT 96 * - 57 + + CAST ( - 37 AS INTEGER ) * 43 AS col2
----
-7063

query I rowsort
SELECT 39 + - + 34 - - - 54 AS col1
----
-49

query I rowsort
SELECT DISTINCT - CASE WHEN 88 < ( NULL ) THEN - 80 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT DISTINCT + 13 + + - ( + + 93 ) + 4 DIV 45 * - 85 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + 13 + + - ( + + 93 ) + 4 / 45 * - 85 AS col1
----
-80

query I rowsort
SELECT ALL 85 + + - 14 * - + 8 col1
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT + + MIN( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-5397
SELECT + + MIN ( - 94 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT ALL 98 + + + 77 DIV 88 * 29 col1
----
98

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL 98 + + + 77 / 88 * 29 col1
----
98

query I rowsort
SELECT - 57 * + - 33 + + ( 33 ) * + 23 AS col2
----
2640

query I rowsort
SELECT DISTINCT + 55 * + - 2
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL 15 + + NULLIF ( - 55, - CAST( NULL AS SIGNED ) ) - 85 * 96
----
-8200

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL 15 + + NULLIF ( - 55, - CAST ( NULL AS INTEGER ) ) - 85 * 96
----
-8200

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

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

query I rowsort
SELECT DISTINCT 45 + + + ( + - ( - 63 ) ) + ( - ( 36 ) ) * - ( - 4 + 89 * - 98 )
----
-314028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL CAST( NULL AS SIGNED ) / - 89 / - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL CAST ( NULL AS INTEGER ) / - 89 / - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT ALL MAX( ALL + 84 ) + - 69 - + 80 + - NULLIF ( 3 - + 82, 18 ) * 17
----
1278

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL MAX ( ALL + 84 ) + - 69 - + 80 + - NULLIF ( 3 - + 82, 18 ) * 17
----
1278

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT 34 * - 17 AS col1, - COUNT( * ) * - 3 * - COUNT( * )
----
-578
-3

skipif mysql # not compatible
query II rowsort label-5407
SELECT 34 * - 17 AS col1, - COUNT ( * ) * - 3 * - COUNT ( * )
----
-578
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL COUNT( * ) - 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL COUNT ( * ) - 34 AS col1
----
-33

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

skipif mysql # not compatible
query I rowsort label-5409
SELECT - MIN ( - - CAST ( + - 13 AS INTEGER ) ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT COUNT( * ) + + - 40 + 63 * - 0 + 59 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5410
SELECT COUNT ( * ) + + - 40 + 63 * - 0 + 59 AS col1
----
20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT ALL 37 DIV + + 67 * 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL 37 / + + 67 * 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT 72 * + COUNT( * ) * 77 AS col1
----
5544

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT 72 * + COUNT ( * ) * 77 AS col1
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT DISTINCT NULLIF ( - COUNT( * ), 82 ) - + 53 * + ( - 94 ) col1
----
4981

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT NULLIF ( - COUNT ( * ), 82 ) - + 53 * + ( - 94 ) col1
----
4981

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5415
SELECT ALL - 30 DIV COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - 30 / COUNT ( * ) AS col2
----
-30

query I rowsort
SELECT 50 + - 38 + + 25 col2
----
37

query I rowsort
SELECT ALL ( - ( + 66 ) ) * + - 95 AS col2
----
6270

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT COALESCE ( + 84, 28 + - + 11 + 97, COUNT( * ) * - SUM( DISTINCT 61 * ( 41 ) ), + COUNT( + 25 ) ) * + 96
----
8064

skipif mysql # not compatible
query I rowsort label-5418
SELECT COALESCE ( + 84, 28 + - + 11 + 97, COUNT ( * ) * - SUM ( DISTINCT 61 * ( 41 ) ), + COUNT ( + 25 ) ) * + 96
----
8064

query I rowsort
SELECT 13 + - 35 + + - 54 * - 3 + 29
----
169

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

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

query II rowsort
SELECT + 92 + 97 AS col1, - 68 col0
----
189
-68

query I rowsort
SELECT ALL - 0 + 55
----
55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5424
SELECT ALL 39 * CASE 43 WHEN COUNT( * ) THEN ( ( CAST( 57 AS SIGNED ) ) ) + 88 END + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL 39 * CASE 43 WHEN COUNT ( * ) THEN ( ( CAST ( 57 AS INTEGER ) ) ) + 88 END + 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT - ( 48 ) * - 27 + - COUNT( * ) AS col1
----
1295

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - ( 48 ) * - 27 + - COUNT ( * ) AS col1
----
1295

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT + COALESCE ( - 85, - - 80 * - 76 + 85 * - 43 ) DIV + 3
----
-28

skipif mysql # not compatible
query I rowsort label-5426
SELECT + COALESCE ( - 85, - - 80 * - 76 + 85 * - 43 ) / + 3
----
-28

query I rowsort
SELECT - 86 * - ( + ( - 89 ) ) * - 32
----
244928

query I rowsort
SELECT - - 53 - - 73 AS col0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT - - COALESCE ( + 71, + 16 + - - ( + 89 ) ) DIV 17
----
4

skipif mysql # not compatible
query I rowsort label-5429
SELECT - - COALESCE ( + 71, + 16 + - - ( + 89 ) ) / 17
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT + - 98 * 94 + - + COUNT( * )
----
-9213

skipif mysql # not compatible
query I rowsort label-5430
SELECT + - 98 * 94 + - + COUNT ( * )
----
-9213

query I rowsort
SELECT ALL - 65 * + - 5 + + 74 + + - 34 + 55
----
420

query II rowsort
SELECT DISTINCT 65 * 74 + - 19 AS col2, 95
----
4791
95

query I rowsort
SELECT ALL - 96 / CASE + 19 WHEN + 32 THEN + 46 END col2
----
NULL

query I rowsort
SELECT - 74 * - - 24 AS col2
----
-1776

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

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL + 98 * + 11 * + + 14 * COUNT ( * ) / - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT DISTINCT + MAX( ALL + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT + MAX ( ALL + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT - COUNT( * ) + + COALESCE ( 52, - - COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-5437
SELECT - COUNT ( * ) + + COALESCE ( 52, - - COUNT ( * ) )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT + COUNT( * ), 99 * - 69 AS col0
----
1
-6831

skipif mysql # not compatible
query II rowsort label-5438
SELECT + COUNT ( * ), 99 * - 69 AS col0
----
1
-6831

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL + CASE 48 WHEN - COUNT( * ) THEN NULL ELSE + 98 END AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + CASE 48 WHEN - COUNT ( * ) THEN NULL ELSE + 98 END AS col1
----
98

query I rowsort
SELECT ALL + 6 * + + 67 AS col0
----
402

onlyif mysql # aggregate syntax: 
query II rowsort label-5441
SELECT - 38 + - + 94 * + COUNT( * ), + 11 + + 71 col1
----
-132
82

skipif mysql # not compatible
query II rowsort label-5441
SELECT - 38 + - + 94 * + COUNT ( * ), + 11 + + 71 col1
----
-132
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT + NULLIF ( + + 32, - 91 * - + 27 ) * + - AVG ( ALL CAST( NULL AS SIGNED ) ) * 69 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT + NULLIF ( + + 32, - 91 * - + 27 ) * + - AVG ( ALL CAST ( NULL AS INTEGER ) ) * 69 + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT + COUNT( * ) - - - 95 * - 17 col0
----
1616

skipif mysql # not compatible
query I rowsort label-5443
SELECT + COUNT ( * ) - - - 95 * - 17 col0
----
1616

query II rowsort
SELECT ALL 55 AS col2, 82 + 17 AS col0
----
55
99

query I rowsort
SELECT ALL - ( + 77 ) * 37 - 4 + 55 + 6 col2
----
-2792

query I rowsort
SELECT + 8 * 21 AS col1
----
168

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

query I rowsort
SELECT ALL ( - 27 ) AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT DISTINCT 54 DIV - 24 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT 54 / - 24 AS col0
----
-2

query I rowsort
SELECT + 60 + 86 AS col2
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5451
SELECT ALL 20 AS col1, + CAST( NULL AS SIGNED ) + 17 + + COUNT( * ) col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-5451
SELECT ALL 20 AS col1, + CAST ( NULL AS INTEGER ) + 17 + + COUNT ( * ) col1
----
20
NULL

query I rowsort
SELECT - 72 * + 26
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + 7 * MAX( ALL 13 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-5453
SELECT + 7 * MAX ( ALL 13 ) col0
----
91

query I rowsort
SELECT + 76 * 88 + 75
----
6763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5455
SELECT DISTINCT - MIN( ALL + 99 ) DIV + ( + 10 )
----
-9

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - MIN ( ALL + 99 ) / + ( + 10 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT + ( - ( - COUNT( * ) ) ) + - - 40 * - + COUNT( * ) + + 71 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT + ( - ( - COUNT ( * ) ) ) + - - 40 * - + COUNT ( * ) + + 71 AS col0
----
32

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

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

query I rowsort
SELECT ALL 17 * - 1
----
-17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5460
SELECT ALL - 88 + + + 96 * - 43 + COALESCE ( CAST( NULL AS SIGNED ), 78 + 11 DIV NULLIF ( 41, CAST( + MIN( 37 ) AS SIGNED ) ), - 58 + 30, + COUNT( * ) ) + - 37 * - 39 AS col2
----
-2695

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - 88 + + + 96 * - 43 + COALESCE ( CAST ( NULL AS INTEGER ), 78 + 11 / NULLIF ( 41, CAST ( + MIN ( 37 ) AS INTEGER ) ), - 58 + 30, + COUNT ( * ) ) + - 37 * - 39 AS col2
----
-2695

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT + - 8 + + - ( + 16 ) DIV + 49
----
-8

skipif mysql # not compatible
query I rowsort label-5461
SELECT + - 8 + + - ( + 16 ) / + 49
----
-8

query I rowsort
SELECT COALESCE ( - + NULLIF ( - 83, + COALESCE ( + 99, - 33 ) ), ( ( + 59 ) ) ) * - 62 - 6
----
-5152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5463
SELECT ALL - - ( - 95 ) DIV + COUNT( * ) + + 19 DIV - + 44 + - 41
----
-136

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL - - ( - 95 ) / + COUNT ( * ) + + 19 / - + 44 + - 41
----
-136

query I rowsort
SELECT 58 * + 68 + - + 22
----
3922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5465
SELECT ALL + 46 DIV MIN( DISTINCT + - 16 ) + + COUNT( * ) + + 36 * 76 - 93 AS col2
----
2642

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + 46 / MIN ( DISTINCT + - 16 ) + + COUNT ( * ) + + 36 * 76 - 93 AS col2
----
2642

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT - + 89 DIV - 3 + - + 19 * - ( - 58 )
----
-1073

skipif mysql # not compatible
query I rowsort label-5466
SELECT - + 89 / - 3 + - + 19 * - ( - 58 )
----
-1073

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5468
SELECT ALL 63 * COUNT( * ) AS col2, 36 + 29 * 89
----
63
2617

skipif mysql # not compatible
query II rowsort label-5468
SELECT ALL 63 * COUNT ( * ) AS col2, 36 + 29 * 89
----
63
2617

query I rowsort
SELECT - 74 + + 64
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + SUM( DISTINCT - + 79 ) * + 32
----
-2528

skipif mysql # not compatible
query I rowsort label-5470
SELECT + SUM ( DISTINCT - + 79 ) * + 32
----
-2528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5471
SELECT ALL + CASE 24 WHEN - - 14 + + 12 * 97 THEN + 41 WHEN + 56 THEN + COUNT( * ) * COALESCE ( + CAST( NULL AS SIGNED ), + 43, + CAST( NULL AS DECIMAL ) + COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + CASE 24 WHEN - - 14 + + 12 * 97 THEN + 41 WHEN + 56 THEN + COUNT ( * ) * COALESCE ( + CAST ( NULL AS INTEGER ), + 43, + CAST ( NULL AS REAL ) + COUNT ( * ) ) END AS col0
----
NULL

query I rowsort
SELECT 10 * - + 69 + + COALESCE ( 13, + ( COALESCE ( 62, + 43 ) ) + 1, + 84, 9 ) AS col1
----
-677

query II rowsort
SELECT ALL + 73, + 15 AS col2
----
73
15

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

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

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

query I rowsort
SELECT - 56 * 42 AS col1
----
-2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5477
SELECT ( - NULLIF ( 36, - - CAST( NULL AS SIGNED ) - - 36 * ( 99 ) ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5477
SELECT ( - NULLIF ( 36, - - CAST ( NULL AS INTEGER ) - - 36 * ( 99 ) ) )
----
-36

query I rowsort
SELECT + 10 * + 24 + - 59
----
181

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

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

query I rowsort
SELECT DISTINCT + 94 * + 36 * 90 - - + 55 + 73 AS col2
----
304688

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT ALL + 29 DIV - - ( - - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL + 29 / - - ( - - 47 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT DISTINCT + MAX( DISTINCT + 43 ), + 63 col1
----
43
63

skipif mysql # not compatible
query II rowsort label-5482
SELECT DISTINCT + MAX ( DISTINCT + 43 ), + 63 col1
----
43
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5483
SELECT DISTINCT + COUNT( * ) DIV + 16 AS col2, 41 AS col0
----
0
41

skipif mysql # not compatible
query II rowsort label-5483
SELECT DISTINCT + COUNT ( * ) / + 16 AS col2, 41 AS col0
----
0
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT - 72 DIV 24
----
-3

skipif mysql # not compatible
query I rowsort label-5484
SELECT - 72 / 24
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5486
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 35 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5486
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 35 AS col2
----
NULL
35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5488
SELECT - COUNT( * ) - + 66 DIV + 20
----
-4

skipif mysql # not compatible
query I rowsort label-5488
SELECT - COUNT ( * ) - + 66 / + 20
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5489
SELECT 76 * CAST( NULL AS SIGNED ) * + 10 * ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT 76 * CAST ( NULL AS INTEGER ) * + 10 * ( + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT ALL + 0 + CAST( - + 79 AS SIGNED ) + - - 52 * - 52
----
-2783

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL + 0 + CAST ( - + 79 AS INTEGER ) + - - 52 * - 52
----
-2783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5491
SELECT ALL + 78 + + + NULLIF ( CAST( NULL AS SIGNED ), ( + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL + 78 + + + NULLIF ( CAST ( NULL AS INTEGER ), ( + COUNT ( * ) ) ) AS col2
----
NULL

query I rowsort
SELECT ( - + 39 ) + - 17
----
-56

query I rowsort
SELECT DISTINCT + 50 + 72 - 16 AS col2
----
106

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

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

query I rowsort
SELECT ALL 24 + + + 84
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5496
SELECT ALL - 59 + + - COUNT( * ) * 30 DIV - COUNT( * ) + + + 27 * + 16 AS col0
----
403

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL - 59 + + - COUNT ( * ) * 30 / - COUNT ( * ) + + + 27 * + 16 AS col0
----
403

query II rowsort
SELECT - ( 11 ), 10 AS col2
----
-11
10

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

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

query I rowsort
SELECT - 90 + - 11 * - + 64 AS col1
----
614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5500
SELECT ALL 64 * + 82 * 8 + MAX( 41 ) + COUNT( * ) DIV - 17 AS col1
----
42025

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL 64 * + 82 * 8 + MAX ( 41 ) + COUNT ( * ) / - 17 AS col1
----
42025

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT ALL + - 76 DIV - - 33 + - 7
----
-9

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + - 76 / - - 33 + - 7
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT DISTINCT - 65 * + 88 * ( - CASE - CAST( 73 AS SIGNED ) WHEN + 89 THEN NULL ELSE 39 END )
----
223080

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT - 65 * + 88 * ( - CASE - CAST ( 73 AS INTEGER ) WHEN + 89 THEN NULL ELSE 39 END )
----
223080

query I rowsort
SELECT + 57 * + 72
----
4104

query I rowsort
SELECT DISTINCT 35 * - 45
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT 99 - - 66 * + - 72 * + COUNT( * ) AS col2
----
-4653

skipif mysql # not compatible
query I rowsort label-5505
SELECT 99 - - 66 * + - 72 * + COUNT ( * ) AS col2
----
-4653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5506
SELECT COUNT( * ) * - CAST( + 75 AS SIGNED ) * COUNT( * ) * - - 95 * 68 * + 83
----
-40213500

skipif mysql # not compatible
query I rowsort label-5506
SELECT COUNT ( * ) * - CAST ( + 75 AS INTEGER ) * COUNT ( * ) * - - 95 * 68 * + 83
----
-40213500

query I rowsort
SELECT - 19 * 40 * + 49 - + 11 * + + 87 AS col2
----
-38197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT ALL - MIN( + + CAST( + 80 AS SIGNED ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL - MIN ( + + CAST ( + 80 AS INTEGER ) ) AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5509
SELECT DISTINCT - CASE - 58 WHEN - 25 + - 29 + - ( - COUNT( * ) ) THEN NULL WHEN - + 65 THEN + 97 WHEN - 47 * - 44 THEN NULL ELSE + 54 - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - CASE - 58 WHEN - 25 + - 29 + - ( - COUNT ( * ) ) THEN NULL WHEN - + 65 THEN + 97 WHEN - 47 * - 44 THEN NULL ELSE + 54 - - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - CASE - 45 WHEN + + 83 + 38 * 71 * - 76 THEN NULL ELSE 9 END AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5511
SELECT DISTINCT COALESCE ( + + 60, + COUNT( * ), CAST( 21 AS SIGNED ), - + 40 * - 26 ) * 76 AS col1
----
4560

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT COALESCE ( + + 60, + COUNT ( * ), CAST ( 21 AS INTEGER ), - + 40 * - 26 ) * 76 AS col1
----
4560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5512
SELECT DISTINCT 84 + CAST( + - 11 AS SIGNED ) + 50 * + - 31, + CAST( NULL AS SIGNED ) AS col1
----
-1477
NULL

skipif mysql # not compatible
query II rowsort label-5512
SELECT DISTINCT 84 + CAST ( + - 11 AS INTEGER ) + 50 * + - 31, + CAST ( NULL AS INTEGER ) AS col1
----
-1477
NULL

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

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + COUNT ( * ) + + MAX ( + - 41 ) AS col1
----
-40

query I rowsort
SELECT DISTINCT + 17 + - 5 AS col1
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5515
SELECT + 24 * + CAST( NULL AS DECIMAL ) + + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT + 24 * + CAST ( NULL AS REAL ) + + 9 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL ( - 8 ) + + COUNT ( * ) AS col1
----
-7

query II rowsort
SELECT ALL ( - 44 ), 38 * + + 37 AS col1
----
-44
1406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT ALL + + COUNT( * ) DIV - 36 * + - MIN( + 17 ) * + 86 + - - 16
----
16

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + + COUNT ( * ) / - 36 * + - MIN ( + 17 ) * + 86 + - - 16
----
16

query I rowsort
SELECT DISTINCT + 21 + + - 11 + - - 37 + - 24
----
23

query I rowsort
SELECT ALL - + 15 + - + 94 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT ALL + + 53 + - + 82 AS col2, - MAX( DISTINCT - 60 ) AS col2
----
-29
60

skipif mysql # not compatible
query II rowsort label-5521
SELECT ALL + + 53 + - + 82 AS col2, - MAX ( DISTINCT - 60 ) AS col2
----
-29
60

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

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

query I rowsort
SELECT - 96 * - 28 AS col0
----
2688

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT - COUNT( - 14 ) AS col1, + 71 + - - 57
----
-1
128

skipif mysql # not compatible
query II rowsort label-5524
SELECT - COUNT ( - 14 ) AS col1, + 71 + - - 57
----
-1
128

onlyif mysql # DIV for integer division: 
query I rowsort label-5525
SELECT ALL - + 61 - + - 53 DIV + 39 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - + 61 - + - 53 / + 39 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + - 48 * + MIN( + 97 ) col0
----
-4656

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + - 48 * + MIN ( + 97 ) col0
----
-4656

query I rowsort
SELECT DISTINCT COALESCE ( - 61, 28 )
----
-61

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT DISTINCT - 70 AS col1, - COUNT( * ) + 18 AS col0
----
-70
17

skipif mysql # not compatible
query II rowsort label-5529
SELECT DISTINCT - 70 AS col1, - COUNT ( * ) + 18 AS col0
----
-70
17

query I rowsort
SELECT 9 + - 26 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ( COUNT( * ) ) * - - 98 * - 59 AS col2
----
-5782

skipif mysql # not compatible
query I rowsort label-5531
SELECT ( COUNT ( * ) ) * - - 98 * - 59 AS col2
----
-5782

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

skipif mysql # not compatible
query I rowsort label-5532
SELECT - 53 * 11 + + 87 + - COUNT ( * ) AS col2
----
-497

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT - COUNT( - 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT - COUNT ( - 21 )
----
-1

query II rowsort
SELECT + 38, 97 AS col1
----
38
97

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

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

query I rowsort
SELECT 38 * - + 83 + + 44 * - + NULLIF ( + 71, + - 85 ) + + NULLIF ( + - 44, + 11 + + 57 )
----
-6322

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL ( - COUNT( * ) ) * + + 32 - - + 16 + + 63 * 84 - - 69
----
5345

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL ( - COUNT ( * ) ) * + + 32 - - + 16 + + 63 * 84 - - 69
----
5345

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT - ( + COALESCE ( + 12, 88, 24 DIV AVG ( + - 53 ) - - 51 ) ) DIV + 7 + 2 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5539
SELECT - ( + COALESCE ( + 12, 88, 24 / AVG ( + - 53 ) - - 51 ) ) / + 7 + 2 AS col1
----
1

query I rowsort
SELECT DISTINCT - 7 * - + 50 + - 68 * - 71 AS col0
----
5178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT CASE + + 93 WHEN 10 * 29 + - ( + CASE + 58 WHEN - 47 THEN COUNT( * ) + 56 WHEN - 90 THEN NULL ELSE - NULLIF ( + 99, 41 ) * - COALESCE ( - 54, 78 + + 95, CAST( COUNT( * ) AS SIGNED ) * - 98 ) + + COUNT( ALL ( + 17 ) + 66 ) END ) THEN + 11 WHEN 87 THEN NULLIF ( 72, - NULLIF ( - 82, - 14 * COUNT( * ) ) * + CASE 91 * CAST( NULL AS SIGNED ) WHEN 19 * 11 + - 19 THEN - CASE 60 WHEN - 84 * 45 THEN NULL ELSE NULLIF ( + 24, - CAST( NULLIF ( + ( + 86 ), 65 ) AS SIGNED ) * 95 ) END END ) ELSE 50 END * - 58
----
-2900

skipif mysql # not compatible
query I rowsort label-5541
SELECT CASE + + 93 WHEN 10 * 29 + - ( + CASE + 58 WHEN - 47 THEN COUNT ( * ) + 56 WHEN - 90 THEN NULL ELSE - NULLIF ( + 99, 41 ) * - COALESCE ( - 54, 78 + + 95, CAST ( COUNT ( * ) AS INTEGER ) * - 98 ) + + COUNT ( ALL ( + 17 ) + 66 ) END ) THEN + 11 WHEN 87 THEN NULLIF ( 72, - NULLIF ( - 82, - 14 * COUNT ( * ) ) * + CASE 91 * CAST ( NULL AS INTEGER ) WHEN 19 * 11 + - 19 THEN - CASE 60 WHEN - 84 * 45 THEN NULL ELSE NULLIF ( + 24, - CAST ( NULLIF ( + ( + 86 ), 65 ) AS INTEGER ) * 95 ) END END ) ELSE 50 END * - 58
----
-2900

query I rowsort
SELECT ALL - 74 * - 72 * 42 * - + 64 + 33 AS col0
----
-14321631

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

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

skipif mysql # not compatible
query I rowsort label-5544
SELECT + 58 * + 95 + + COUNT ( * ) + + 40 AS col0
----
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT + MIN( + - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-5545
SELECT + MIN ( + - 33 )
----
-33

query I rowsort
SELECT ALL 7 + - - 91 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL + COUNT( * ) + + + 55 + - - 50 + MIN( - 71 ) * - 94 col2
----
6780

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL + COUNT ( * ) + + + 55 + - - 50 + MIN ( - 71 ) * - 94 col2
----
6780

onlyif mysql # aggregate syntax: 
query II rowsort label-5548
SELECT DISTINCT + 83 + - 15 + - + 91, COUNT( * ) AS col1
----
-23
1

skipif mysql # not compatible
query II rowsort label-5548
SELECT DISTINCT + 83 + - 15 + - + 91, COUNT ( * ) AS col1
----
-23
1

query I rowsort
SELECT - 72 * 62 + + 3 + 39 col1
----
-4422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT ALL CAST( - AVG ( DISTINCT 86 ) AS SIGNED ) + 37
----
-49

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL CAST ( - AVG ( DISTINCT 86 ) AS INTEGER ) + 37
----
-49

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

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL 97 - + COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5552
SELECT DISTINCT - 59 * - - 91 * + - 99 + COUNT( * ) DIV + - 5 AS col1
----
531531

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT - 59 * - - 91 * + - 99 + COUNT ( * ) / + - 5 AS col1
----
531531

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + + 95 + - - ( - 21 ) + - 0 - - 82 - + MIN( DISTINCT - + 24 ) * 74
----
1932

skipif mysql # not compatible
query I rowsort label-5553
SELECT + + 95 + - - ( - 21 ) + - 0 - - 82 - + MIN ( DISTINCT - + 24 ) * 74
----
1932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5554
SELECT - - COUNT( * ) * + 9 DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT - - COUNT ( * ) * + 9 / + 49 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( 99, - 17 ), + 61 + + - 21 * + 9 + - 77 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5556
SELECT DISTINCT + 9 - 72 DIV - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT + 9 - 72 / - COUNT ( * )
----
81

query I rowsort
SELECT DISTINCT 68 * + ( + 26 ) + + 70 AS col1
----
1838

onlyif mysql # aggregate syntax: 
query II rowsort label-5558
SELECT ALL - 76 - - 85 + - 57 AS col2, COUNT( * ) * - + CASE 30 WHEN - + COUNT( * ) THEN COUNT( * ) * 16 ELSE NULL END
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-5558
SELECT ALL - 76 - - 85 + - 57 AS col2, COUNT ( * ) * - + CASE 30 WHEN - + COUNT ( * ) THEN COUNT ( * ) * 16 ELSE NULL END
----
-48
NULL

query I rowsort
SELECT - - 71 * + 35 - + + 15
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT - COALESCE ( - COUNT( * ), - COUNT( * ) ) + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-5560
SELECT - COALESCE ( - COUNT ( * ), - COUNT ( * ) ) + - 62
----
-61

query II rowsort
SELECT - + 96 * 97 - 26 col2, 25
----
-9338
25

query II rowsort
SELECT ALL + 87 AS col2, 29 * - + 34 AS col0
----
87
-986

query II rowsort
SELECT ALL - 74, 50 * - 24 AS col2
----
-74
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT ALL - 16 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - 16 / 62
----
0

query I rowsort
SELECT - 96 * + 33 * - + 16 * - - 59
----
2990592

query I rowsort
SELECT ALL COALESCE ( + 24, 11 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT - - COUNT( * ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-5567
SELECT - - COUNT ( * ) + - 96
----
-95

query I rowsort
SELECT ALL COALESCE ( 81, + 72 - 22, - 23 + - 57 )
----
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT - 92 * - COUNT( ALL + 74 )
----
92

skipif mysql # not compatible
query I rowsort label-5570
SELECT - 92 * - COUNT ( ALL + 74 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5571
SELECT ALL + 96 DIV - - 62 + + 92 DIV 28 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL + 96 / - - 62 + + 92 / 28 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5572
SELECT - CASE - - 36 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 97 THEN NULL WHEN - COUNT( * ) THEN - 8 * - + 64 * + + 92 - + 20 + 70 * 39 END * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT - CASE - - 36 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 97 THEN NULL WHEN - COUNT ( * ) THEN - 8 * - + 64 * + + 92 - + 20 + 70 * 39 END * 98
----
NULL

query I rowsort
SELECT ALL + 79 * - + 95 + + 44 AS col2
----
-7461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5574
SELECT DISTINCT 23 * + CAST( NULL AS SIGNED ) * - + 95 * COALESCE ( + 45, + COUNT( * ) * 83 * - + AVG ( - 22 ), 19 ) / + 92 + + CASE - ( 62 ) WHEN - 22 THEN NULL WHEN - 93 + 33 THEN + 43 * + 23 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT 23 * + CAST ( NULL AS INTEGER ) * - + 95 * COALESCE ( + 45, + COUNT ( * ) * 83 * - + AVG ( - 22 ), 19 ) / + 92 + + CASE - ( 62 ) WHEN - 22 THEN NULL WHEN - 93 + 33 THEN + 43 * + 23 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5575
SELECT DISTINCT + COALESCE ( - 58, - + ( 74 ) DIV - 21 * + COALESCE ( NULLIF ( + CAST( - 89 AS SIGNED ), + AVG ( DISTINCT - 32 ) ), 12 + 66, 56, ( 6 ) ) * 78 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT + COALESCE ( - 58, - + ( 74 ) / - 21 * + COALESCE ( NULLIF ( + CAST ( - 89 AS INTEGER ), + AVG ( DISTINCT - 32 ) ), 12 + 66, 56, ( 6 ) ) * 78 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT ALL 60 * + MIN( - - 12 ) + + 54 AS col1, 16 + - COUNT( * ) AS col0
----
774
15

skipif mysql # not compatible
query II rowsort label-5576
SELECT ALL 60 * + MIN ( - - 12 ) + + 54 AS col1, 16 + - COUNT ( * ) AS col0
----
774
15

query I rowsort
SELECT + 31 * 84
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL 4 * - + 16 + + - COUNT( * ) - - 3
----
-62

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL 4 * - + 16 + + - COUNT ( * ) - - 3
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5579
SELECT ALL CAST( NULL AS SIGNED ) * - 8 + 59 - 19 AS col1, 12 AS col2
----
NULL
12

skipif mysql # not compatible
query II rowsort label-5579
SELECT ALL CAST ( NULL AS INTEGER ) * - 8 + 59 - 19 AS col1, 12 AS col2
----
NULL
12

query I rowsort
SELECT ALL - 8 * 25 AS col1
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT 72 * - 6 + - - 54 + - COUNT( * ) * + MAX( 66 ) AS col0
----
-444

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT 72 * - 6 + - - 54 + - COUNT ( * ) * + MAX ( 66 ) AS col0
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT - MAX( + 98 ) * + + COUNT( * ) + SUM( DISTINCT - 94 )
----
-192

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT - MAX ( + 98 ) * + + COUNT ( * ) + SUM ( DISTINCT - 94 )
----
-192

query I rowsort
SELECT - - 16 * - 4 col2
----
-64

query I rowsort
SELECT + + 10 * 43
----
430

query I rowsort
SELECT + - 66 + ( - - 31 )
----
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL - ( MAX( ALL + 86 ) ) * + 67 + 95 + - 55 + - 23 * + COUNT( * ) * - - 35 - 26
----
-6553

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL - ( MAX ( ALL + 86 ) ) * + 67 + 95 + - 55 + - 23 * + COUNT ( * ) * - - 35 - 26
----
-6553

query I rowsort
SELECT + 87 * + - 33 AS col1
----
-2871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5589
SELECT ALL - SUM( DISTINCT - - CASE 87 WHEN - COALESCE ( - CAST( + 21 AS SIGNED ), + 91, + + 40 ) THEN - + 56 DIV + 43 ELSE + 85 END ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL - SUM ( DISTINCT - - CASE 87 WHEN - COALESCE ( - CAST ( + 21 AS INTEGER ), + 91, + + 40 ) THEN - + 56 / + 43 ELSE + 85 END ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), COALESCE ( + 81, COALESCE ( - + CAST( NULL AS SIGNED ), MAX( ALL 21 ) ) ) / 36 + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), COALESCE ( + 81, COALESCE ( - + CAST ( NULL AS INTEGER ), MAX ( ALL 21 ) ) ) / 36 + + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + - 23 + + - 71
----
-94

query II rowsort
SELECT ALL + 53 * + 72 * - 39 - - 33 col0, 90 * + 60
----
-148791
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT + 3 + + - COUNT( * ) * + 5
----
-2

skipif mysql # not compatible
query I rowsort label-5593
SELECT + 3 + + - COUNT ( * ) * + 5
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL COALESCE ( COUNT( * ), + CASE COUNT( * ) WHEN - - 3 - 39 THEN NULL WHEN - 99 * - 7 - SUM( + 84 ) + 96 + 57 THEN - 63 ELSE NULL END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL COALESCE ( COUNT ( * ), + CASE COUNT ( * ) WHEN - - 3 - 39 THEN NULL WHEN - 99 * - 7 - SUM ( + 84 ) + 96 + 57 THEN - 63 ELSE NULL END ) AS col1
----
1

query I rowsort
SELECT ALL 98 + + 88
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5596
SELECT - 9 - + 48 + + + COALESCE ( 29, + 93, + COALESCE ( - 83, - 76 + - 41 DIV - ( COALESCE ( + 92, - 45 * 13 ) ), CASE + 77 WHEN 65 THEN + 77 DIV - MIN( ALL + ( 72 ) * 85 ) - 60 END + 37 ) ) * 87
----
2466

skipif mysql # not compatible
query I rowsort label-5596
SELECT - 9 - + 48 + + + COALESCE ( 29, + 93, + COALESCE ( - 83, - 76 + - 41 / - ( COALESCE ( + 92, - 45 * 13 ) ), CASE + 77 WHEN 65 THEN + 77 / - MIN ( ALL + ( 72 ) * 85 ) - 60 END + 37 ) ) * 87
----
2466

query I rowsort
SELECT ALL + 48 + 41 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT + 56 / + NULLIF ( - NULLIF ( + + CASE + 14 WHEN 15 * - 92 - - - 36 - + 76 / + ( MAX( + 72 ) ) THEN NULL WHEN + ( 8 ) THEN COUNT( * ) ELSE NULL END, 26 ), - 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT + 56 / + NULLIF ( - NULLIF ( + + CASE + 14 WHEN 15 * - 92 - - - 36 - + 76 / + ( MAX ( + 72 ) ) THEN NULL WHEN + ( 8 ) THEN COUNT ( * ) ELSE NULL END, 26 ), - 30 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5599
SELECT - 62 + - 28 + + 7, SUM( DISTINCT + - 72 ) AS col2
----
-83
-72

skipif mysql # not compatible
query II rowsort label-5599
SELECT - 62 + - 28 + + 7, SUM ( DISTINCT + - 72 ) AS col2
----
-83
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT + 73 + - + 70 / + - 16 + - 8 - + COUNT( * ) * + CASE + COUNT( + ( + 94 ) ) WHEN - - 72 THEN - COUNT( * ) + 12 END + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT + 73 + - + 70 / + - 16 + - 8 - + COUNT ( * ) * + CASE + COUNT ( + ( + 94 ) ) WHEN - - 72 THEN - COUNT ( * ) + 12 END + - 71 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5601
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - + NULLIF ( 19, + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - + NULLIF ( 19, + - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT ALL 87 DIV - 99 + 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL 87 / - 99 + 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT - COALESCE ( 92, + - 26 * + + 85 + 42 * - COUNT( * ) * - CASE + - 34 WHEN - + 32 THEN + - 48 ELSE + NULLIF ( + COUNT( * ), AVG ( DISTINCT + 95 ) * - 43 ) END, - COUNT( * ) * 61 )
----
-92

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - COALESCE ( 92, + - 26 * + + 85 + 42 * - COUNT ( * ) * - CASE + - 34 WHEN - + 32 THEN + - 48 ELSE + NULLIF ( + COUNT ( * ), AVG ( DISTINCT + 95 ) * - 43 ) END, - COUNT ( * ) * 61 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5604
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + 60 col2
----
61

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + 60 col2
----
61

query I rowsort
SELECT + 49 * + - 15 + - 66 * 83 AS col1
----
-6213

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT COALESCE ( + 47, 93 ) DIV 10 + COUNT( ALL + 17 ) - + 90 * - 1 * - 97
----
-8725

skipif mysql # not compatible
query I rowsort label-5607
SELECT COALESCE ( + 47, 93 ) / 10 + COUNT ( ALL + 17 ) - + 90 * - 1 * - 97
----
-8725

query I rowsort
SELECT ALL - 13 * - + 60 AS col2
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT 22 * - COALESCE ( - - 55, + CASE + - 89 WHEN - 45 THEN + 74 WHEN 96 + COUNT( * ) + - AVG ( ALL 68 ) THEN ( + CAST( + 51 AS SIGNED ) ) / 92 ELSE NULL END ) * - 69 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT 22 * - COALESCE ( - - 55, + CASE + - 89 WHEN - 45 THEN + 74 WHEN 96 + COUNT ( * ) + - AVG ( ALL 68 ) THEN ( + CAST ( + 51 AS INTEGER ) ) / 92 ELSE NULL END ) * - 69 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 66 * + 43 AS col2
----
2838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) DIV SUM( DISTINCT 78 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) / SUM ( DISTINCT 78 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT - SUM( - 17 ) + 83 * 23
----
1926

skipif mysql # not compatible
query I rowsort label-5612
SELECT - SUM ( - 17 ) + 83 * 23
----
1926

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT - COUNT( DISTINCT 75 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT - COUNT ( DISTINCT 75 ) AS col0
----
-1

query I rowsort
SELECT ALL 1 * + 40 AS col2
----
40

query I rowsort
SELECT DISTINCT 20 * + + 69
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL - MAX( DISTINCT - - 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL - MAX ( DISTINCT - - 94 ) AS col1
----
-94

query I rowsort
SELECT + + COALESCE ( + - 20, + - 42 * 82 ) AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5618
SELECT 24 DIV COUNT( ALL - 11 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5618
SELECT 24 / COUNT ( ALL - 11 ) AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT 38 * - 73 + + 28 + CASE ( - 49 ) WHEN - ( - 78 ) * - 39 DIV 8 THEN NULL ELSE 65 DIV - 65 END + + 33
----
-2714

skipif mysql # not compatible
query I rowsort label-5619
SELECT 38 * - 73 + + 28 + CASE ( - 49 ) WHEN - ( - 78 ) * - 39 / 8 THEN NULL ELSE 65 / - 65 END + + 33
----
-2714

query I rowsort
SELECT ALL + 74 * - - 35 AS col2
----
2590

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT - 34 DIV + + 34 col0
----
-1

skipif mysql # not compatible
query I rowsort label-5621
SELECT - 34 / + + 34 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5622
SELECT - 74 * - + 0 DIV - 59 - + 20 + - + COUNT( * ) * - 4
----
-16

skipif mysql # not compatible
query I rowsort label-5622
SELECT - 74 * - + 0 / - 59 - + 20 + - + COUNT ( * ) * - 4
----
-16

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

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

query I rowsort
SELECT ALL - 91 + + - 88
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT ALL + ( + NULLIF ( + COUNT( * ), + CASE - ( + COUNT( * ) ) WHEN 19 THEN NULL WHEN 40 + 19 / + 10 THEN 19 ELSE - CASE ( + 12 ) WHEN ( 23 ) THEN - 95 * NULLIF ( SUM( DISTINCT + 71 ), 14 ) ELSE AVG ( ALL CAST( 60 AS SIGNED ) ) END * + 77 END ) ) + + MAX( ALL + 99 )
----
100

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL + ( + NULLIF ( + COUNT ( * ), + CASE - ( + COUNT ( * ) ) WHEN 19 THEN NULL WHEN 40 + 19 / + 10 THEN 19 ELSE - CASE ( + 12 ) WHEN ( 23 ) THEN - 95 * NULLIF ( SUM ( DISTINCT + 71 ), 14 ) ELSE AVG ( ALL CAST ( 60 AS INTEGER ) ) END * + 77 END ) ) + + MAX ( ALL + 99 )
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT DISTINCT CAST( - 7 AS SIGNED ) + 48 + 67 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT CAST ( - 7 AS INTEGER ) + 48 + 67 AS col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT - + CASE 90 WHEN + 54 / - 22 THEN NULL WHEN 53 / 60 * + - NULLIF ( 53, + + 14 + - - 61 + 45 ) * + ( 86 ) + 53 + - 73 THEN ( 95 ) + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT - + CASE 90 WHEN + 54 / - 22 THEN NULL WHEN 53 / 60 * + - NULLIF ( 53, + + 14 + - - 61 + 45 ) * + ( 86 ) + 53 + - 73 THEN ( 95 ) + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5628
SELECT 51 AS col1, - COUNT( * ) / - 16 * - 62 + + 60 * + 59 * - ( CAST( NULL AS SIGNED ) ) AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-5628
SELECT 51 AS col1, - COUNT ( * ) / - 16 * - 62 + + 60 * + 59 * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5629
SELECT ( - - CAST( + 28 AS SIGNED ) ) + + COUNT( * ) * 47
----
75

skipif mysql # not compatible
query I rowsort label-5629
SELECT ( - - CAST ( + 28 AS INTEGER ) ) + + COUNT ( * ) * 47
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT - 34, + NULLIF ( 30, + 4 * + - 11 + + 12 * + 64 * + + 22 ) + - + COUNT( * ) col0
----
-34
29

skipif mysql # not compatible
query II rowsort label-5630
SELECT - 34, + NULLIF ( 30, + 4 * + - 11 + + 12 * + 64 * + + 22 ) + - + COUNT ( * ) col0
----
-34
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT ALL COUNT( * ) + 44 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL COUNT ( * ) + 44 AS col1
----
45

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5633
SELECT DISTINCT 79 + 77 DIV 80 + COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT 79 + 77 / 80 + COUNT ( * ) col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5634
SELECT CASE + 87 WHEN - 52 * 69 - - 40 + + 41 + - 1 * + 71 - CAST( NULL AS SIGNED ) * 91 + 54 THEN - 70 + - 10 * 60 END * + CASE + 91 WHEN 25 THEN NULL ELSE 99 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT CASE + 87 WHEN - 52 * 69 - - 40 + + 41 + - 1 * + 71 - CAST ( NULL AS INTEGER ) * 91 + 54 THEN - 70 + - 10 * 60 END * + CASE + 91 WHEN 25 THEN NULL ELSE 99 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5635
SELECT ALL + SUM( DISTINCT + ( - CAST( + 8 AS SIGNED ) ) ) DIV + - ( + SUM( ALL 82 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL + SUM ( DISTINCT + ( - CAST ( + 8 AS INTEGER ) ) ) / + - ( + SUM ( ALL 82 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT 78 DIV - + 19
----
-4

skipif mysql # not compatible
query I rowsort label-5636
SELECT 78 / - + 19
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT COALESCE ( + NULLIF ( + 29, 55 ), + + MAX( ALL - 11 ) ) * + 84 + + 45
----
2481

skipif mysql # not compatible
query I rowsort label-5637
SELECT COALESCE ( + NULLIF ( + 29, 55 ), + + MAX ( ALL - 11 ) ) * + 84 + + 45
----
2481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5638
SELECT 59 * + + MIN( - CAST( 23 AS SIGNED ) )
----
-1357

skipif mysql # not compatible
query I rowsort label-5638
SELECT 59 * + + MIN ( - CAST ( 23 AS INTEGER ) )
----
-1357

query II rowsort
SELECT + 16 AS col0, 16 + + 18 + + 5 AS col1
----
16
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5640
SELECT COUNT( * ) AS col2, NULLIF ( - 26, - - 46 + 49 + - 47 * - + 70 ) col1
----
1
-26

skipif mysql # not compatible
query II rowsort label-5640
SELECT COUNT ( * ) AS col2, NULLIF ( - 26, - - 46 + 49 + - 47 * - + 70 ) col1
----
1
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT ALL + 54 DIV + 6 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL + 54 / + 6 AS col1
----
9

query I rowsort
SELECT ( - - 76 ) - + 68 * + 54 - - 86
----
-3510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5643
SELECT - 98 * 82 * + 41 + + MIN( - 55 ) + 81 DIV 36 * 2 * + 76 + + 28 * + + SUM( - CAST( + 98 AS SIGNED ) ) + + 48 col2
----
-331923

skipif mysql # not compatible
query I rowsort label-5643
SELECT - 98 * 82 * + 41 + + MIN ( - 55 ) + 81 / 36 * 2 * + 76 + + 28 * + + SUM ( - CAST ( + 98 AS INTEGER ) ) + + 48 col2
----
-331923

onlyif mysql # aggregate syntax: 
query II rowsort label-5644
SELECT 38 AS col0, - 11 * + COUNT( + - 7 )
----
38
-11

skipif mysql # not compatible
query II rowsort label-5644
SELECT 38 AS col0, - 11 * + COUNT ( + - 7 )
----
38
-11

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

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL - - 81 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 26 ) * - 38
----
-988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5647
SELECT - 46 + 61 + + 95 * 86 - - ( + - 17 ) DIV - 14 * - COUNT( * ) AS col1
----
8184

skipif mysql # not compatible
query I rowsort label-5647
SELECT - 46 + 61 + + 95 * 86 - - ( + - 17 ) / - 14 * - COUNT ( * ) AS col1
----
8184

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

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 76
----
NULL

query II rowsort
SELECT + 61, 67 - 9 AS col0
----
61
58

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

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

query III rowsort
SELECT 75 AS col1, + 9 AS col1, + 40 * - 4
----
75
9
-160

query I rowsort
SELECT DISTINCT - 36 * - - 60 AS col2
----
-2160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5653
SELECT + 23 * + 62 * - 24 * + - 86 * + - 53 + - CAST( NULL AS DECIMAL ) - - COUNT( * ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT + 23 * + 62 * - 24 * + - 86 * + - 53 + - CAST ( NULL AS REAL ) - - COUNT ( * ) + + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5654
SELECT ALL - 86 + - 80 DIV 49
----
-87

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL - 86 + - 80 / 49
----
-87

query I rowsort
SELECT ALL - - 27 + + + 68
----
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT DISTINCT + CAST( 32 AS SIGNED ) + - 48 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + CAST ( 32 AS INTEGER ) + - 48 AS col1
----
-16

query I rowsort
SELECT - 32 - 5
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5659
SELECT ALL + 37 / CASE + - ( - - 36 ) WHEN - 57 * ( 16 ) THEN 39 - - MIN( - 65 ) + + 47 - 90 WHEN - 63 THEN NULL ELSE - CAST( NULL AS SIGNED ) * 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + 37 / CASE + - ( - - 36 ) WHEN - 57 * ( 16 ) THEN 39 - - MIN ( - 65 ) + + 47 - 90 WHEN - 63 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * 77 END
----
NULL

query I rowsort
SELECT ALL + - 97 + - 50 + + 16
----
-131

query I rowsort
SELECT ALL + CASE - + ( - 40 ) WHEN 90 + 94 * 72 THEN 77 WHEN + 55 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 20 * 8 * - 51 AS col1
----
-8160

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT - COALESCE ( - 90, 6 ) + + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT - COALESCE ( - 90, 6 ) + + + COUNT ( * )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT 85 DIV 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5664
SELECT 85 / 65 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5665
SELECT DISTINCT + 72, + 86 - - COUNT( * ) AS col0
----
72
87

skipif mysql # not compatible
query II rowsort label-5665
SELECT DISTINCT + 72, + 86 - - COUNT ( * ) AS col0
----
72
87

query I rowsort
SELECT DISTINCT + 2 * - 54
----
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5667
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 41 / - + MIN( ALL 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT - CAST ( NULL AS REAL ) * 41 / - + MIN ( ALL 99 )
----
NULL

query I rowsort
SELECT 34 + 80 AS col1
----
114

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

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

query I rowsort
SELECT DISTINCT 38 + + 7
----
45

query I rowsort
SELECT DISTINCT NULLIF ( + 30, - 57 )
----
30

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

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

query I rowsort
SELECT ALL 78 - - 65 AS col2
----
143

query I rowsort
SELECT + NULLIF ( + - 0, + 12 ) + 54 + - 28
----
26

query I rowsort
SELECT DISTINCT 72 * + ( - + 8 ) col1
----
-576

query I rowsort
SELECT + 37 + 88 * 75 * - + 32 col0
----
-211163

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT - NULLIF ( - + COUNT( * ), 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5677
SELECT - NULLIF ( - + COUNT ( * ), 40 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5678
SELECT - 66 DIV 41 - 32 col2
----
-33

skipif mysql # not compatible
query I rowsort label-5678
SELECT - 66 / 41 - 32 col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT CAST( + COUNT( * ) AS SIGNED ) * 40 * + 47 + 38 + + + 23 + 51 AS col1
----
1992

skipif mysql # not compatible
query I rowsort label-5679
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * 40 * + 47 + 38 + + + 23 + 51 AS col1
----
1992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5680
SELECT + - COALESCE ( 97, CASE + 81 WHEN COUNT( + + CASE 29 WHEN 36 THEN + 40 WHEN + 72 THEN NULL END ) DIV + 66 + - 46 + 64 THEN 88 + + 46 END DIV 85 ) * 30
----
-2910

skipif mysql # not compatible
query I rowsort label-5680
SELECT + - COALESCE ( 97, CASE + 81 WHEN COUNT ( + + CASE 29 WHEN 36 THEN + 40 WHEN + 72 THEN NULL END ) / + 66 + - 46 + 64 THEN 88 + + 46 END / 85 ) * 30
----
-2910

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

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + COUNT ( DISTINCT 22 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL + - COALESCE ( 13, - - CAST ( NULL AS INTEGER ) )
----
-13

query I rowsort
SELECT + 67 + + ( 55 ) col2
----
122

query I rowsort
SELECT + 6 * + 8 * - + ( 73 ) * - 13 + - 8 * - + 67 AS col2
----
46088

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

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

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

skipif mysql # not compatible
query I rowsort label-5686
SELECT - 80 + + COUNT ( * ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL + - 43 * COUNT( * ) + - + 7 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL + - 43 * COUNT ( * ) + - + 7 AS col1
----
-50

query I rowsort
SELECT ALL - + 77 * 62 * + + 42 + + 11 + - 93
----
-200590

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT DISTINCT 68 / - CASE 60 WHEN 64 * - COUNT( * ) THEN 15 / - 19 + 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT 68 / - CASE 60 WHEN 64 * - COUNT ( * ) THEN 15 / - 19 + 49 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT ALL - + ( 43 ) * + CAST( - 82 AS SIGNED ) * - 80 / - + 39 * - - 66 - - CASE - 46 WHEN - + 24 THEN 76 ELSE NULL END - + - COUNT( DISTINCT - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - + ( 43 ) * + CAST ( - 82 AS INTEGER ) * - 80 / - + 39 * - - 66 - - CASE - 46 WHEN - + 24 THEN 76 ELSE NULL END - + - COUNT ( DISTINCT - 1 )
----
NULL

query I rowsort
SELECT DISTINCT + - 79 * 62 + + 9 col2
----
-4889

query I rowsort
SELECT + - 2 * + 48
----
-96

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

skipif mysql # not compatible
query II rowsort label-5693
SELECT CAST ( - 94 AS INTEGER ) AS col1, 71 - + CAST ( COUNT ( * ) AS INTEGER )
----
-94
70

query II rowsort
SELECT ALL - NULLIF ( - 9, + 1 ) * - - 28 + 31 AS col1, 89 AS col1
----
283
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL - 9 * + MAX( + 6 ) * + + 27 * + 17 + + 15 col1
----
-24771

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - 9 * + MAX ( + 6 ) * + + 27 * + 17 + + 15 col1
----
-24771

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5696
SELECT - 92 + 67 * 48 * - 12 * - NULLIF ( + COALESCE ( - + 17, - 53 DIV + 90 ), + 44 DIV - - 84 - + 89 + CAST( NULL AS SIGNED ) DIV - 55 * 76 ) AS col1
----
-656156

skipif mysql # not compatible
query I rowsort label-5696
SELECT - 92 + 67 * 48 * - 12 * - NULLIF ( + COALESCE ( - + 17, - 53 / + 90 ), + 44 / - - 84 - + 89 + CAST ( NULL AS INTEGER ) / - 55 * 76 ) AS col1
----
-656156

query I rowsort
SELECT COALESCE ( - 16, + NULLIF ( 27, + 67 ) + - + 47 )
----
-16

query II rowsort
SELECT + 78 * - 14 + 2 AS col2, 25
----
-1090
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL + - 94 * - COUNT( * ) + + NULLIF ( + 69, + + 16 * + + COALESCE ( - 11, - COUNT( * ), + - 78 ) + COUNT( * ) + + - 84 ) * + ( 39 )
----
2785

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + - 94 * - COUNT ( * ) + + NULLIF ( + 69, + + 16 * + + COALESCE ( - 11, - COUNT ( * ), + - 78 ) + COUNT ( * ) + + - 84 ) * + ( 39 )
----
2785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5700
SELECT ALL COALESCE ( - 86, + 91 * - 87 * 84 DIV + MIN( ALL - 66 ) * + COUNT( * ) - - 89 + 89 )
----
-86

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL COALESCE ( - 86, + 91 * - 87 * 84 / + MIN ( ALL - 66 ) * + COUNT ( * ) - - 89 + 89 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5701
SELECT - 45 * - COUNT( * ) - - 33 DIV 32 col0
----
46

skipif mysql # not compatible
query I rowsort label-5701
SELECT - 45 * - COUNT ( * ) - - 33 / 32 col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT + 80 - - 64 + MIN( DISTINCT - 58 )
----
86

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT + 80 - - 64 + MIN ( DISTINCT - 58 )
----
86

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT DISTINCT + 71 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT + 71 / 99 AS col2
----
0

query I rowsort
SELECT ALL + ( - 56 ) - + - 69
----
13

query I rowsort
SELECT - ( - 63 ) + + 83
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT DISTINCT + 81 DIV 16 DIV + 53 col2
----
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + 81 / 16 / + 53 col2
----
0

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

skipif mysql # not compatible
query I rowsort label-5708
SELECT - CAST ( NULL AS INTEGER ) - + 10 AS col0
----
NULL

query I rowsort
SELECT - 49 * - 79 AS col2
----
3871

query I rowsort
SELECT ALL - 54 * + - 21
----
1134

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT 19, 21 + NULLIF ( + COUNT( * ), + COUNT( * ) / + COUNT( * ) ) AS col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-5711
SELECT 19, 21 + NULLIF ( + COUNT ( * ), + COUNT ( * ) / + COUNT ( * ) ) AS col0
----
19
NULL

query I rowsort
SELECT - 13 * + 22
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT + 19 + + 76 * + 45 * + 20 + + 26 + - COUNT( * ) * COUNT( * ) * - 62 * + 83
----
73591

skipif mysql # not compatible
query I rowsort label-5713
SELECT + 19 + + 76 * + 45 * + 20 + + 26 + - COUNT ( * ) * COUNT ( * ) * - 62 * + 83
----
73591

query I rowsort
SELECT ALL + 91 * - - 80 AS col1
----
7280

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT ALL 22 col0, COUNT( * )
----
22
1

skipif mysql # not compatible
query II rowsort label-5716
SELECT ALL 22 col0, COUNT ( * )
----
22
1

query II rowsort
SELECT + - COALESCE ( 65, + + 15 ), + 11 AS col0
----
-65
11

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

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

query I rowsort
SELECT + 78 * + + 20
----
1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5720
SELECT ALL - COUNT( * ) DIV 31 * + 60 + + + 83 + + ( + CAST( - 72 AS SIGNED ) )
----
11

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - COUNT ( * ) / 31 * + 60 + + + 83 + + ( + CAST ( - 72 AS INTEGER ) )
----
11

query I rowsort
SELECT - 39 * + - 32 + - 2 + ( - - 31 ) - - 19 col2
----
1296

query I rowsort
SELECT ALL - 70 * 79 + ( - 52 ) AS col0
----
-5582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT 6 * + NULLIF ( - COALESCE ( + + 1, - + COUNT( * ) ), 42 * 47 DIV - 74 ) - + ( + - NULLIF ( COALESCE ( - 16, + - 57 ), + 79 ) ) DIV 28 + - ( - COALESCE ( + 60, - 45 * + 8 ) )
----
54

skipif mysql # not compatible
query I rowsort label-5723
SELECT 6 * + NULLIF ( - COALESCE ( + + 1, - + COUNT ( * ) ), 42 * 47 / - 74 ) - + ( + - NULLIF ( COALESCE ( - 16, + - 57 ), + 79 ) ) / 28 + - ( - COALESCE ( + 60, - 45 * + 8 ) )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5724
SELECT ALL + - COUNT( - CAST( - + 97 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + - COUNT ( - CAST ( - + 97 AS INTEGER ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT ALL + 20 DIV + - 40 - - 55 + 5 + - 47 + + 62 * 15
----
943

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + 20 / + - 40 - - 55 + 5 + - 47 + + 62 * 15
----
943

query II rowsort
SELECT DISTINCT + + 19 col0, ( 4 ) * + - 48 * 89 + - 5
----
19
-17093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5727
SELECT ALL CASE 86 WHEN + 63 * - + 86 * - 56 * + 62 + + CAST( NULL AS SIGNED ) + + 27 + - 68 / + COUNT( ALL + - 7 ) + - - 71 THEN - + ( + 86 ) END / + 90 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL CASE 86 WHEN + 63 * - + 86 * - 56 * + 62 + + CAST ( NULL AS INTEGER ) + + 27 + - 68 / + COUNT ( ALL + - 7 ) + - - 71 THEN - + ( + 86 ) END / + 90 + - 78
----
NULL

query I rowsort
SELECT + - 54 * 38
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT COUNT( ALL + 10 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5729
SELECT COUNT ( ALL + 10 ) AS col1
----
1

query II rowsort
SELECT ALL - ( - 82 ) - + 73 + - 0 * + 19 * - 75 AS col0, - 48 * - 42 AS col2
----
9
2016

query I rowsort
SELECT 17 + + + 29 AS col0
----
46

query I rowsort
SELECT ALL + 94 * - - 99 AS col1
----
9306

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT - ( + 87 ) * - 57 * - - CASE 22 WHEN + - 35 + 15 THEN - 20 WHEN 89 THEN NULL END + + 42 * + COUNT( * ) * + COUNT( * ) * - 92 + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT - ( + 87 ) * - 57 * - - CASE 22 WHEN + - 35 + 15 THEN - 20 WHEN 89 THEN NULL END + + 42 * + COUNT ( * ) * + COUNT ( * ) * - 92 + 68
----
NULL

query I rowsort
SELECT DISTINCT + 85 * ( - 31 )
----
-2635

query I rowsort
SELECT ALL + 67 * - 56 AS col2
----
-3752

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL 61 * - 70 * COUNT( * ) AS col0
----
-4270

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL 61 * - 70 * COUNT ( * ) AS col0
----
-4270

query I rowsort
SELECT DISTINCT + 76 * 24 col2
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT SUM( DISTINCT + + 45 ) + - NULLIF ( 20, + 39 ) + + 42 col2
----
67

skipif mysql # not compatible
query I rowsort label-5738
SELECT SUM ( DISTINCT + + 45 ) + - NULLIF ( 20, + 39 ) + + 42 col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT 97 * CAST( - ( - ( + 73 ) ) AS SIGNED ) col1
----
7081

skipif mysql # not compatible
query I rowsort label-5739
SELECT 97 * CAST ( - ( - ( + 73 ) ) AS INTEGER ) col1
----
7081

query I rowsort
SELECT 78 + + 92
----
170

query II rowsort
SELECT ALL - 23 * - 37 AS col1, + 42
----
851
42

query I rowsort
SELECT 3 + + - 36
----
-33

query I rowsort
SELECT DISTINCT + 78 + + 66
----
144

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

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

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

skipif mysql # not compatible
query I rowsort label-5745
SELECT + COUNT ( * ) + - 91 AS col0
----
-90

query I rowsort
SELECT ALL + - 95 + + + 13
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5747
SELECT CAST( NULL AS DECIMAL ) + - - 68 + - + 61 * 94 * + AVG ( DISTINCT ( + + 66 ) ) * - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT CAST ( NULL AS REAL ) + - - 68 + - + 61 * 94 * + AVG ( DISTINCT ( + + 66 ) ) * - + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT + 57 + + - COALESCE ( MIN( + 52 ), 31 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT + 57 + + - COALESCE ( MIN ( + 52 ), 31 ) AS col2
----
5

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

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL + + 20 + - 44 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5750
SELECT - COUNT( * ) + 50, + 77 * - + 78 * - 11 col1
----
49
66066

skipif mysql # not compatible
query II rowsort label-5750
SELECT - COUNT ( * ) + 50, + 77 * - + 78 * - 11 col1
----
49
66066

query I rowsort
SELECT ALL + + 3 + 24 + - 78 * + 64 + - + 7 AS col1
----
-4972

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL MIN( NULLIF ( - 60, + + 41 + - 17 ) ) + + + 33
----
-27

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL MIN ( NULLIF ( - 60, + + 41 + - 17 ) ) + + + 33
----
-27

query I rowsort
SELECT ALL - + NULLIF ( 63, + 24 ) AS col0
----
-63

query I rowsort
SELECT ALL 82 + 69 AS col1
----
151

query II rowsort
SELECT DISTINCT - - 78 - 92 AS col1, + 44 AS col0
----
-14
44

query I rowsort
SELECT + 18 * 52 AS col2
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT DISTINCT + SUM( - 2 ) - 97 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT + SUM ( - 2 ) - 97 AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT - 7 * CAST( + + 21 AS SIGNED ) + 54 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5759
SELECT - 7 * CAST ( + + 21 AS INTEGER ) + 54 AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5760
SELECT ALL - + 36 - - - CASE - 58 WHEN - + NULLIF ( - + MAX( ALL 29 ), - 92 ) * + + 17 - 30 THEN + - COALESCE ( + CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + - 84 + 93 ELSE 16 END, 67 ) END + - ( + 68 + - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - + 36 - - - CASE - 58 WHEN - + NULLIF ( - + MAX ( ALL 29 ), - 92 ) * + + 17 - 30 THEN + - COALESCE ( + CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + - 84 + 93 ELSE 16 END, 67 ) END + - ( + 68 + - 68 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT 72 DIV + 76 * - - 77
----
0

skipif mysql # not compatible
query I rowsort label-5761
SELECT 72 / + 76 * - - 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT + 98 * - 26 + 94 DIV - 58 - - 82
----
-2467

skipif mysql # not compatible
query I rowsort label-5762
SELECT + 98 * - 26 + 94 / - 58 - - 82
----
-2467

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT 62 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT 62 / 85
----
0

query I rowsort
SELECT DISTINCT 67 + + 82 AS col2
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT ALL 78 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL 78 / + 48
----
1

query I rowsort
SELECT ALL + 91 + - + NULLIF ( - 45, + 0 ) + + + 40 * - + 40 col1
----
-1464

onlyif mysql # DIV for integer division: 
query II rowsort label-5767
SELECT 90, + 3 DIV - + 38 AS col0
----
90
0

skipif mysql # not compatible
query II rowsort label-5767
SELECT 90, + 3 / - + 38 AS col0
----
90
0

query I rowsort
SELECT DISTINCT + 73 + - 16
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL + SUM( ALL - 93 ) + 37 - + 99
----
-155

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + SUM ( ALL - 93 ) + 37 - + 99
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-5770
SELECT ALL COUNT( - ( + + 52 ) ) + 94 * 62, - 89 + - - COUNT( * ) AS col0
----
5829
-88

skipif mysql # not compatible
query II rowsort label-5770
SELECT ALL COUNT ( - ( + + 52 ) ) + 94 * 62, - 89 + - - COUNT ( * ) AS col0
----
5829
-88

query I rowsort
SELECT 22 * 5 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT - MAX( DISTINCT - 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5772
SELECT - MAX ( DISTINCT - 49 ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5773
SELECT 3 AS col1, CAST( NULL AS SIGNED ) - + + 99 * - 62 * + 46 + 18 * + NULLIF ( + + 84, - - MAX( ALL + + 75 ) * + ( 63 ) + - - 58 ) + - 42 AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5773
SELECT 3 AS col1, CAST ( NULL AS INTEGER ) - + + 99 * - 62 * + 46 + 18 * + NULLIF ( + + 84, - - MAX ( ALL + + 75 ) * + ( 63 ) + - - 58 ) + - 42 AS col2
----
3
NULL

query II rowsort
SELECT ALL - 62, 76 col0
----
-62
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL 69 + ( + 96 ) + MAX( + 68 ) - - 85 * + 68 AS col0
----
6013

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL 69 + ( + 96 ) + MAX ( + 68 ) - - 85 * + 68 AS col0
----
6013

query II rowsort
SELECT 40 AS col2, 22 AS col2
----
40
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5778
SELECT DISTINCT - COUNT( * ) * 42 DIV - 51 * 10
----
0

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT - COUNT ( * ) * 42 / - 51 * 10
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5780
SELECT ALL - - ( + COALESCE ( + ( - + COUNT( * ) ), + 9 DIV 50, + ( - 63 ) * + 85 + NULLIF ( - COALESCE ( 73, + COUNT( * ) ), - - 82 + + COALESCE ( - COUNT( ALL + 87 ), - ( - 60 ), ( NULLIF ( CAST( 56 AS SIGNED ), + ( - 23 ) ) ) * + 52 ) + 53 * 63 ) - 93 ) ) * 91 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - - ( + COALESCE ( + ( - + COUNT ( * ) ), + 9 / 50, + ( - 63 ) * + 85 + NULLIF ( - COALESCE ( 73, + COUNT ( * ) ), - - 82 + + COALESCE ( - COUNT ( ALL + 87 ), - ( - 60 ), ( NULLIF ( CAST ( 56 AS INTEGER ), + ( - 23 ) ) ) * + 52 ) + 53 * 63 ) - 93 ) ) * 91 AS col0
----
-91

query I rowsort
SELECT 31 + - + 79
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + ( - CASE + - COUNT( * ) WHEN + 31 THEN + 37 + - 72 * + 70 + - 48 * + - NULLIF ( - 33, + - 14 ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT + ( - CASE + - COUNT ( * ) WHEN + 31 THEN + 37 + - 72 * + 70 + - 48 * + - NULLIF ( - 33, + - 14 ) ELSE NULL END ) AS col1
----
NULL

query II rowsort
SELECT + + 62 AS col2, 18 AS col0
----
62
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT - 72 * - 2 * + COUNT( * ) col0
----
144

skipif mysql # not compatible
query I rowsort label-5785
SELECT - 72 * - 2 * + COUNT ( * ) col0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5786
SELECT - ( + CAST( 6 AS SIGNED ) ) * + 22 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-5786
SELECT - ( + CAST ( 6 AS INTEGER ) ) * + 22 AS col1
----
-132

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT - 4 / ( + ( - - 76 ) ) - + + CAST( NULL AS SIGNED ) + + MAX( DISTINCT + 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT - 4 / ( + ( - - 76 ) ) - + + CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT + 69 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 24 * 93 AS col0
----
-2232

query I rowsort
SELECT - 43 + 50 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT - + COUNT( DISTINCT - ( + 12 ) ) * - + 25 col2
----
25

skipif mysql # not compatible
query I rowsort label-5791
SELECT - + COUNT ( DISTINCT - ( + 12 ) ) * - + 25 col2
----
25

query I rowsort
SELECT - 27 + - - 3 AS col0
----
-24

query I rowsort
SELECT - 44 * 36
----
-1584

query I rowsort
SELECT + 50 * - + 42
----
-2100

query I rowsort
SELECT + 94 * 37 + 20
----
3498

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT DISTINCT + COUNT( * ) AS col1, + 27 + COUNT( * )
----
1
28

skipif mysql # not compatible
query II rowsort label-5796
SELECT DISTINCT + COUNT ( * ) AS col1, + 27 + COUNT ( * )
----
1
28

query I rowsort
SELECT ALL 8 * - 90
----
-720

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

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

query I rowsort
SELECT DISTINCT - 50 * - 93
----
4650

query I rowsort
SELECT ALL ( - 33 ) + + 21 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT MIN( DISTINCT 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5801
SELECT MIN ( DISTINCT 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL + 32 + - 89 * - 61 * + COUNT( * ) col0
----
5461

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL + 32 + - 89 * - 61 * + COUNT ( * ) col0
----
5461

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT DISTINCT - 77 + + - 88 * - MIN( - 1 ) + - COUNT( * )
----
-166

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT - 77 + + - 88 * - MIN ( - 1 ) + - COUNT ( * )
----
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT DISTINCT 56 col1, - 58 * - - 68 + - 6 * - + 94 - + 34 * - - MIN( 31 )
----
56
-4434

skipif mysql # not compatible
query II rowsort label-5804
SELECT DISTINCT 56 col1, - 58 * - - 68 + - 6 * - + 94 - + 34 * - - MIN ( 31 )
----
56
-4434

query I rowsort
SELECT - 54 + 89 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT ALL 66 + CASE - 28 WHEN 95 + - COUNT( * ) THEN NULL ELSE - + 27 END - + CAST( + + 71 AS SIGNED ) * 33
----
-2304

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL 66 + CASE - 28 WHEN 95 + - COUNT ( * ) THEN NULL ELSE - + 27 END - + CAST ( + + 71 AS INTEGER ) * 33
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT - COUNT( - 72 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5807
SELECT - COUNT ( - 72 ) col0
----
-1

query I rowsort
SELECT + ( - - 27 ) + - 7 col0
----
20

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

query II rowsort
SELECT ALL 18 AS col1, 22 AS col2
----
18
22

query I rowsort
SELECT + 24 + + 46 * 76 AS col2
----
3520

query II rowsort
SELECT + 30 - + 71 * - 95 - + + 8 AS col1, - ( + 80 ) * - - 40 AS col1
----
6767
-3200

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT ALL 14 DIV - + 93 + + COALESCE ( 35, 28 )
----
35

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL 14 / - + 93 + + COALESCE ( 35, 28 )
----
35

query I rowsort
SELECT ALL + 8 - - 52 + + 56 col1
----
116

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

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

query I rowsort
SELECT + + 44 * - 94 col0
----
-4136

query I rowsort
SELECT DISTINCT - 80 - + 55 AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT + COUNT( * ) + + ( + + 27 )
----
28

skipif mysql # not compatible
query I rowsort label-5819
SELECT + COUNT ( * ) + + ( + + 27 )
----
28

query I rowsort
SELECT + 73 * 8
----
584

query II rowsort
SELECT - 21, + 97 AS col2
----
-21
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT - COUNT( * ) + - 92 + + ( + COUNT( * ) ) * COUNT( * ) * + MAX( ALL - 61 ) AS col2
----
-154

skipif mysql # not compatible
query I rowsort label-5822
SELECT - COUNT ( * ) + - 92 + + ( + COUNT ( * ) ) * COUNT ( * ) * + MAX ( ALL - 61 ) AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT - MAX( DISTINCT - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5823
SELECT - MAX ( DISTINCT - 30 ) AS col2
----
30

query II rowsort
SELECT DISTINCT 77 AS col0, - 73 + - 20 AS col0
----
77
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL SUM( - - ( + + 49 ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL SUM ( - - ( + + 49 ) ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT - - CASE - + ( + - 58 ) WHEN - + COUNT( * ) * 13 + + 84 * 94 THEN 19 * COALESCE ( + CASE - 90 WHEN + 33 * + - COUNT( * ) + - 86 THEN + + 5 ELSE NULL END, COUNT( * ) ) ELSE NULL END + + NULLIF ( ( SUM( ALL 36 ) ), - ( MAX( DISTINCT - 43 ) ) * + 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT - - CASE - + ( + - 58 ) WHEN - + COUNT ( * ) * 13 + + 84 * 94 THEN 19 * COALESCE ( + CASE - 90 WHEN + 33 * + - COUNT ( * ) + - 86 THEN + + 5 ELSE NULL END, COUNT ( * ) ) ELSE NULL END + + NULLIF ( ( SUM ( ALL 36 ) ), - ( MAX ( DISTINCT - 43 ) ) * + 32 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5827
SELECT DISTINCT + 44 AS col1, 91 + 1 + 23 + + + CAST( NULL AS SIGNED ) - - 63 * CASE - 32 WHEN COUNT( * ) * - + 49 THEN - COUNT( + + CAST( NULL AS SIGNED ) ) ELSE NULL END AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-5827
SELECT DISTINCT + 44 AS col1, 91 + 1 + 23 + + + CAST ( NULL AS INTEGER ) - - 63 * CASE - 32 WHEN COUNT ( * ) * - + 49 THEN - COUNT ( + + CAST ( NULL AS INTEGER ) ) ELSE NULL END AS col0
----
44
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT - 36 DIV - 55 * + + 38
----
0

skipif mysql # not compatible
query I rowsort label-5828
SELECT - 36 / - 55 * + + 38
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT DISTINCT + - 35 * + + 64 AS col1, + 28 + - COUNT( * )
----
-2240
27

skipif mysql # not compatible
query II rowsort label-5829
SELECT DISTINCT + - 35 * + + 64 AS col1, + 28 + - COUNT ( * )
----
-2240
27

query II rowsort
SELECT ALL + - 89, 70 AS col0
----
-89
70

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

skipif mysql # not compatible
query I rowsort label-5831
SELECT + COUNT ( * ) * + 30 / - 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT - ( + 40 ) + - + 78 DIV + 56 + 40 + - + 34 * + 85 * + 87 AS col2
----
-251431

skipif mysql # not compatible
query I rowsort label-5832
SELECT - ( + 40 ) + - + 78 / + 56 + 40 + - + 34 * + 85 * + 87 AS col2
----
-251431

onlyif mysql # aggregate syntax: 
query II rowsort label-5833
SELECT ALL + 35 * - MAX( DISTINCT 98 ) AS col0, 90
----
-3430
90

skipif mysql # not compatible
query II rowsort label-5833
SELECT ALL + 35 * - MAX ( DISTINCT 98 ) AS col0, 90
----
-3430
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT - ( + 14 ) / - COUNT( * ) * + ( - 81 ) + CAST( NULL AS SIGNED ) * + 69 * + + 50 + + - 43 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT - ( + 14 ) / - COUNT ( * ) * + ( - 81 ) + CAST ( NULL AS INTEGER ) * + 69 * + + 50 + + - 43 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5835
SELECT ( + CAST( NULL AS SIGNED ) ), - 80 col1
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-5835
SELECT ( + CAST ( NULL AS INTEGER ) ), - 80 col1
----
NULL
-80

query I rowsort
SELECT ALL 40 * + + 37 + 3 * + 6
----
1498

query II rowsort
SELECT ( - + 89 ) AS col2, + 35 * 86
----
-89
3010

query I rowsort
SELECT ALL ( - 5 ) * - + 21 + - - 95 + ( 97 ) AS col1
----
297

query I rowsort
SELECT ALL + ( + 91 ) * + 11 + + - 34 AS col0
----
967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT DISTINCT + CASE + 22 WHEN - 20 THEN - CAST( + - 13 AS SIGNED ) WHEN - 69 THEN + 28 * 89 * + 4 * 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT + CASE + 22 WHEN - 20 THEN - CAST ( + - 13 AS INTEGER ) WHEN - 69 THEN + 28 * 89 * + 4 * 20 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5841
SELECT ALL + 19 * - 38 * - COUNT( * ) + - 63 * - + NULLIF ( 81, ( + ( CAST( NULL AS SIGNED ) ) ) ) - + 19 AS col0
----
5806

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + 19 * - 38 * - COUNT ( * ) + - 63 * - + NULLIF ( 81, ( + ( CAST ( NULL AS INTEGER ) ) ) ) - + 19 AS col0
----
5806

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT COALESCE ( - + 11, - 94 DIV + + 41 + + - 99 )
----
-11

skipif mysql # not compatible
query I rowsort label-5842
SELECT COALESCE ( - + 11, - 94 / + + 41 + + - 99 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT - COUNT( * ) * - - 88 + 65 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5843
SELECT - COUNT ( * ) * - - 88 + 65 AS col1
----
-23

query I rowsort
SELECT NULLIF ( 48, - ( + 52 ) ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT NULLIF ( NULLIF ( + COUNT( * ), 22 ), + 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5845
SELECT NULLIF ( NULLIF ( + COUNT ( * ), 22 ), + 68 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5846
SELECT NULLIF ( - + COALESCE ( + 11, 33, 13, - - CAST( NULL AS SIGNED ) ), + COUNT( * ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5846
SELECT NULLIF ( - + COALESCE ( + 11, 33, 13, - - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) ) AS col2
----
-11

query I rowsort
SELECT - 24 * + + 59 * - 42 * + ( - COALESCE ( 78, 94 * + ( - + 0 ) * ( + 87 ) ) )
----
-4638816

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + 91 * + CASE + 27 WHEN + - NULLIF ( - 47, - 32 ) * - - 98 THEN NULL ELSE COUNT( * ) * 66 + - 26 END - + 62 AS col0
----
3578

skipif mysql # not compatible
query I rowsort label-5848
SELECT + 91 * + CASE + 27 WHEN + - NULLIF ( - 47, - 32 ) * - - 98 THEN NULL ELSE COUNT ( * ) * 66 + - 26 END - + 62 AS col0
----
3578

onlyif mysql # DIV for integer division: 
query II rowsort label-5849
SELECT DISTINCT AVG ( - CASE - 3 WHEN + 0 THEN - + 45 END ) AS col2, + 13 - + - 65 DIV - 43
----
NULL
12

skipif mysql # not compatible
query II rowsort label-5849
SELECT DISTINCT AVG ( - CASE - 3 WHEN + 0 THEN - + 45 END ) AS col2, + 13 - + - 65 / - 43
----
NULL
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT DISTINCT + + 46 * - - 89 AS col1, + 0 * + 31 - - 7 + - + COUNT( * )
----
4094
6

skipif mysql # not compatible
query II rowsort label-5850
SELECT DISTINCT + + 46 * - - 89 AS col1, + 0 * + 31 - - 7 + - + COUNT ( * )
----
4094
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - - MAX( - + 53 ) - COUNT( * ) + - - 96
----
42

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - - MAX ( - + 53 ) - COUNT ( * ) + - - 96
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5852
SELECT + 71 - - COUNT( 62 ) AS col2, MAX( ALL + 23 ) * + 11 + 80 AS col2
----
72
333

skipif mysql # not compatible
query II rowsort label-5852
SELECT + 71 - - COUNT ( 62 ) AS col2, MAX ( ALL + 23 ) * + 11 + 80 AS col2
----
72
333

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5853
SELECT 61 * - 12 AS col0, + 51 * + - CAST( NULL AS SIGNED )
----
-732
NULL

skipif mysql # not compatible
query II rowsort label-5853
SELECT 61 * - 12 AS col0, + 51 * + - CAST ( NULL AS INTEGER )
----
-732
NULL

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

query I rowsort
SELECT DISTINCT 32 * + 95 + + - COALESCE ( 96, - 8 + - 46 * + 51 ) * - + ( + + 39 )
----
6784

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT DISTINCT - COALESCE ( - - 60, - 37 * + + 68 * - 40 ) * 93 * 57 DIV - 23 + - 98 col2
----
13730

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - COALESCE ( - - 60, - 37 * + + 68 * - 40 ) * 93 * 57 / - 23 + - 98 col2
----
13730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5857
SELECT ALL 64 * - + 72 AS col2, COUNT( * ) * CAST( NULL AS SIGNED )
----
-4608
NULL

skipif mysql # not compatible
query II rowsort label-5857
SELECT ALL 64 * - + 72 AS col2, COUNT ( * ) * CAST ( NULL AS INTEGER )
----
-4608
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT - CASE COUNT( * ) WHEN 31 THEN 84 * - ( - 40 ) + - 88 ELSE - - 59 END + - 46
----
-105

skipif mysql # not compatible
query I rowsort label-5858
SELECT - CASE COUNT ( * ) WHEN 31 THEN 84 * - ( - 40 ) + - 88 ELSE - - 59 END + - 46
----
-105

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

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

query II rowsort
SELECT + 72 AS col2, 49 * + 11
----
72
539

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ( - COUNT( * ) ) * 72 * - 69 * + 56 + - - 26 AS col2
----
278234

skipif mysql # not compatible
query I rowsort label-5861
SELECT ( - COUNT ( * ) ) * 72 * - 69 * + 56 + - - 26 AS col2
----
278234

query I rowsort
SELECT DISTINCT 62 * 89 * - 92 AS col0
----
-507656

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL 55 + ( - + COUNT( * ) ) col2
----
54

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL 55 + ( - + COUNT ( * ) ) col2
----
54

query II rowsort
SELECT 98, - 94 * - - 58 AS col1
----
98
-5452

query II rowsort
SELECT ALL - 68 AS col2, 81 * + 56
----
-68
4536

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5866
SELECT ALL + 77 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL + 77 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 7 + - 9 AS col0
----
-2

query II rowsort
SELECT + 49 AS col2, + 34 AS col1
----
49
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT 96 * MAX( ALL 79 )
----
7584

skipif mysql # not compatible
query I rowsort label-5869
SELECT 96 * MAX ( ALL 79 )
----
7584

query I rowsort
SELECT 32 * - 24
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT - ( + NULLIF ( + 19, + 89 ) ) * 18 * 74 - 75 + + 51 + - COUNT( * ) * - ( - ( + 41 ) ) * + + 48 * 95 + + COUNT( * ) - 62 - - 99 AS col1
----
-212254

skipif mysql # not compatible
query I rowsort label-5871
SELECT - ( + NULLIF ( + 19, + 89 ) ) * 18 * 74 - 75 + + 51 + - COUNT ( * ) * - ( - ( + 41 ) ) * + + 48 * 95 + + COUNT ( * ) - 62 - - 99 AS col1
----
-212254

query I rowsort
SELECT DISTINCT 48 * + COALESCE ( ( - 9 ), - 90 )
----
-432

query I rowsort
SELECT 22 * - 1 * 43 * 50
----
-47300

query I rowsort
SELECT DISTINCT + 15 * - 26 AS col2
----
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-5875
SELECT DISTINCT - 49 DIV 28
----
-1

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT - 49 / 28
----
-1

query II rowsort
SELECT ALL + 91, 49 * - 3 AS col2
----
91
-147

query II rowsort
SELECT ALL 72 AS col2, - 59 col0
----
72
-59

query I rowsort
SELECT NULLIF ( COALESCE ( - - 37, - 42, + ( + 70 ) ), + ( + 68 ) ) + + 90
----
127

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

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

query I rowsort
SELECT 83 * - 96 + - 11 * + 56
----
-8584

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT CAST( + - AVG ( ALL + 41 ) AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-5882
SELECT CAST ( + - AVG ( ALL + 41 ) AS INTEGER )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT - - CAST( - 18 AS SIGNED ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5883
SELECT - - CAST ( - 18 AS INTEGER ) AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT 4 - - + CAST( NULL AS SIGNED ) + - NULLIF ( - 27, - 6 ) + + 31 * - 25 * + 2 + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT 4 - - + CAST ( NULL AS INTEGER ) + - NULLIF ( - 27, - 6 ) + + 31 * - 25 * + 2 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 6 + - - 1 + + 33 + + 99 + - + 42 + 55 * + - 72 * - + 0 - 98 + - 40 + + - 89 * + 27 * - 37
----
88870

query I rowsort
SELECT 53 + + 24 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5887
SELECT ALL - ( - - 70 ) + + 35 + - - 41 + - - 0 DIV - COALESCE ( - + 4, - - 5 - COUNT( 49 ) * + 57, CAST( - + 72 AS SIGNED ), - ( MIN( DISTINCT + 77 ) ) + + 53 + + + 46 + 48 ) * 71
----
6

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - ( - - 70 ) + + 35 + - - 41 + - - 0 / - COALESCE ( - + 4, - - 5 - COUNT ( 49 ) * + 57, CAST ( - + 72 AS INTEGER ), - ( MIN ( DISTINCT + 77 ) ) + + 53 + + + 46 + 48 ) * 71
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-5888
SELECT - ( 54 ) DIV - 10 AS col1, - 19
----
5
-19

skipif mysql # not compatible
query II rowsort label-5888
SELECT - ( 54 ) / - 10 AS col1, - 19
----
5
-19

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

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

query I rowsort
SELECT + 18 + - + 25
----
-7

query I rowsort
SELECT ALL - ( + + 65 ) * 81 AS col0
----
-5265

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT MAX( - 8 ) + + 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5892
SELECT MAX ( - 8 ) + + 4 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT - SUM( ALL - 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5893
SELECT - SUM ( ALL - 34 ) AS col2
----
34

query I rowsort
SELECT 22 + - 53 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT ALL - 54 + COUNT( + CAST( 58 AS SIGNED ) )
----
-53

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL - 54 + COUNT ( + CAST ( 58 AS INTEGER ) )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5896
SELECT DISTINCT 50 + 56 * + MIN( + 80 ) * + - 8 / - - 14 + - CASE + COUNT( * ) WHEN AVG ( DISTINCT - 47 ) * 18 THEN NULL WHEN + 98 * - 80 THEN + 45 ELSE - 62 / - - 62 END + + COUNT( + - 93 ) * + - ( - 33 ) + - 33 * COUNT( * ) + + CAST( NULL AS DECIMAL ) / 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT 50 + 56 * + MIN ( + 80 ) * + - 8 / - - 14 + - CASE + COUNT ( * ) WHEN AVG ( DISTINCT - 47 ) * 18 THEN NULL WHEN + 98 * - 80 THEN + 45 ELSE - 62 / - - 62 END + + COUNT ( + - 93 ) * + - ( - 33 ) + - 33 * COUNT ( * ) + + CAST ( NULL AS REAL ) / 32
----
NULL

query I rowsort
SELECT DISTINCT 1 * + 55 * + + 82 + - + 25
----
4485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5898
SELECT ALL - 48 * + 71 + - + SUM( ALL + CAST( NULL AS SIGNED ) ) - + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL - 48 * + 71 + - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) - + - 57 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT 7 DIV 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT 7 / 67 AS col0
----
0

query I rowsort
SELECT ALL 49 * + 72
----
3528

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT COUNT( - + 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5904
SELECT COUNT ( - + 83 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL - SUM( 65 ) * + - 59 * 78 + - - 82 - + + COUNT( * )
----
299211

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - SUM ( 65 ) * + - 59 * 78 + - - 82 - + + COUNT ( * )
----
299211

query I rowsort
SELECT - 37 * - 9 + 99 col1
----
432

query II rowsort
SELECT 6 * - - 50, 78 * 21 * - 20 AS col2
----
300
-32760

query I rowsort
SELECT ALL 7 * - 20
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT MIN( - - 67 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-5909
SELECT MIN ( - - 67 ) col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT ALL - COUNT( NULLIF ( + 76, + 77 ) ) AS col1, - 78
----
-1
-78

skipif mysql # not compatible
query II rowsort label-5910
SELECT ALL - COUNT ( NULLIF ( + 76, + 77 ) ) AS col1, - 78
----
-1
-78

query II rowsort
SELECT 31 * - 76 * - 76 * 8, + 81 * 27 * + ( - 57 ) AS col2
----
1432448
-124659

query I rowsort
SELECT ALL - 38 * + 37 AS col2
----
-1406

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

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

query I rowsort
SELECT - 62 * 62 - - COALESCE ( - 28, - 7 + 18, - 64 )
----
-3872

onlyif mysql # aggregate syntax: 
query II rowsort label-5915
SELECT MAX( - 62 ) AS col1, 75 * + 65 + + 75 AS col0
----
-62
4950

skipif mysql # not compatible
query II rowsort label-5915
SELECT MAX ( - 62 ) AS col1, 75 * + 65 + + 75 AS col0
----
-62
4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5916
SELECT - COUNT( * ) * + 70 + - 73 + 99 DIV - MIN( + 1 ) + - 66, 53 AS col2
----
-308
53

skipif mysql # not compatible
query II rowsort label-5916
SELECT - COUNT ( * ) * + 70 + - 73 + 99 / - MIN ( + 1 ) + - 66, 53 AS col2
----
-308
53

query I rowsort
SELECT - 0 * - + 49 + 22
----
22

query II rowsort
SELECT ALL 69 * - - 45 AS col1, 52 AS col1
----
3105
52

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

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

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

query I rowsort
SELECT - 80 * - 53
----
4240

query I rowsort
SELECT ALL + - 41 + - + COALESCE ( + - ( - ( + 23 ) ), + + 21 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT DISTINCT - NULLIF ( ( - 98 ), 82 + - 49 ) * CAST( - + CASE + + COUNT( * ) WHEN - + 81 * 67 + - 86 THEN NULL WHEN 7 + - - 40 THEN + + 63 + + COUNT( * ) * + NULLIF ( + 53, MIN( DISTINCT - + CASE 30 WHEN 51 THEN 35 END ) ) + SUM( DISTINCT 67 ) * 10 ELSE 60 END AS SIGNED ) + MAX( ALL 93 - - 22 ) * 79 AS col2
----
3205

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT - NULLIF ( ( - 98 ), 82 + - 49 ) * CAST ( - + CASE + + COUNT ( * ) WHEN - + 81 * 67 + - 86 THEN NULL WHEN 7 + - - 40 THEN + + 63 + + COUNT ( * ) * + NULLIF ( + 53, MIN ( DISTINCT - + CASE 30 WHEN 51 THEN 35 END ) ) + SUM ( DISTINCT 67 ) * 10 ELSE 60 END AS INTEGER ) + MAX ( ALL 93 - - 22 ) * 79 AS col2
----
3205

query I rowsort
SELECT ALL - 44 + + - 25 - + 35 AS col2
----
-104

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5926
SELECT + + 69 * + 28 * - ( + 28 ) + + - 68 DIV + 41 + NULLIF ( + + 95, CAST( NULL AS SIGNED ) * 52 * + + COALESCE ( - 43, - - ( - 11 ) ) ) * - 5 AS col2
----
-54572

skipif mysql # not compatible
query I rowsort label-5926
SELECT + + 69 * + 28 * - ( + 28 ) + + - 68 / + 41 + NULLIF ( + + 95, CAST ( NULL AS INTEGER ) * 52 * + + COALESCE ( - 43, - - ( - 11 ) ) ) * - 5 AS col2
----
-54572

query I rowsort
SELECT - - 64 * - 64
----
-4096

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5929
SELECT NULLIF ( - 79, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, - NULLIF ( 60, - MAX( ALL 24 ) )
----
-79
-60

skipif mysql # not compatible
query II rowsort label-5929
SELECT NULLIF ( - 79, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, - NULLIF ( 60, - MAX ( ALL 24 ) )
----
-79
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - 82 * SUM( DISTINCT - + 17 )
----
1394

skipif mysql # not compatible
query I rowsort label-5930
SELECT - 82 * SUM ( DISTINCT - + 17 )
----
1394

query I rowsort
SELECT ALL - - 49 * - 31
----
-1519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5932
SELECT - - COUNT( + - CAST( NULL AS SIGNED ) ), 87 * + 88 * - COUNT( * ) AS col2
----
0
-7656

skipif mysql # not compatible
query II rowsort label-5932
SELECT - - COUNT ( + - CAST ( NULL AS INTEGER ) ), 87 * + 88 * - COUNT ( * ) AS col2
----
0
-7656

query I rowsort
SELECT ALL + 77 + + 75 * - - 74 AS col1
----
5627

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL 62 + MIN( ALL - 20 ) * 27
----
-478

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL 62 + MIN ( ALL - 20 ) * 27
----
-478

query I rowsort
SELECT - 68 * 99 AS col0
----
-6732

query I rowsort
SELECT ALL - 4 * + + 52 AS col1
----
-208

query I rowsort
SELECT DISTINCT - 87 * - 15 AS col0
----
1305

query I rowsort
SELECT + 38 * ( - 40 ) * - - 92
----
-139840

query I rowsort
SELECT - 2 * 49
----
-98

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

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

query II rowsort
SELECT DISTINCT + 93 AS col2, 35
----
93
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5942
SELECT ALL NULLIF ( - 30, - COALESCE ( - - 68, - + ( 3 ) ) * - - 26 ) * + 11 * + 39 * + 82 AS col2, + 43 * + 32 + - COUNT( * )
----
-1055340
1375

skipif mysql # not compatible
query II rowsort label-5942
SELECT ALL NULLIF ( - 30, - COALESCE ( - - 68, - + ( 3 ) ) * - - 26 ) * + 11 * + 39 * + 82 AS col2, + 43 * + 32 + - COUNT ( * )
----
-1055340
1375

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT + 54 DIV + + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT + 54 / + + 67 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL + COUNT ( * ) / - ( + - 13 ) * - 78 * - 33
----
0

query I rowsort
SELECT DISTINCT 53 * - + 72
----
-3816

query I rowsort
SELECT + 98 * 10 AS col2
----
980

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5948
SELECT ALL + 18 * + CASE + - 68 WHEN + - 5 * - CAST( NULL AS SIGNED ) + + - COUNT( * ) * - + 5 + + - 16 THEN - + 24 * + - MIN( - + COALESCE ( - 45, 28 DIV + 89 * - - 11, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) WHEN - COUNT( * ) DIV COUNT( * ) * - 3 + NULLIF ( 13, - 7 + - 58 ) THEN + 40 + + ( 88 ) ELSE COUNT( * ) END - 65 + + 55 * 16 AS col0
----
833

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL + 18 * + CASE + - 68 WHEN + - 5 * - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * - + 5 + + - 16 THEN - + 24 * + - MIN ( - + COALESCE ( - 45, 28 / + 89 * - - 11, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) WHEN - COUNT ( * ) / COUNT ( * ) * - 3 + NULLIF ( 13, - 7 + - 58 ) THEN + 40 + + ( 88 ) ELSE COUNT ( * ) END - 65 + + 55 * 16 AS col0
----
833

query II rowsort
SELECT ALL - 70 * 71 * 88 AS col1, 32 * - 1
----
-437360
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT + - ( 61 ) * - COUNT( * ) - + - 6 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5950
SELECT + - ( 61 ) * - COUNT ( * ) - + - 6 AS col0
----
67

query II rowsort
SELECT ALL - 54 * - 30 + + + 38 AS col0, 46 * 85 + - 11 AS col2
----
1658
3899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5952
SELECT ALL CAST( + - 56 AS SIGNED ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL CAST ( + - 56 AS INTEGER ) AS col2
----
-56

query I rowsort
SELECT + 86 - + 79 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT - COALESCE ( 29, + 80, - COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-5954
SELECT - COALESCE ( 29, + 80, - COUNT ( * ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL + 25 * + COUNT( * ) * + - NULLIF ( 60, - - MAX( ALL 8 ) ) + + COUNT( * )
----
-1499

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + 25 * + COUNT ( * ) * + - NULLIF ( 60, - - MAX ( ALL 8 ) ) + + COUNT ( * )
----
-1499

query I rowsort
SELECT + + 82 + - 14 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5957
SELECT - 14 AS col0, 36 + - 0 * - 4 DIV 49 DIV + SUM( - 8 )
----
-14
36

skipif mysql # not compatible
query II rowsort label-5957
SELECT - 14 AS col0, 36 + - 0 * - 4 / 49 / + SUM ( - 8 )
----
-14
36

query I rowsort
SELECT 7 * + 94 + - 32
----
626

query I rowsort
SELECT - COALESCE ( 77, + 28, 12 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT DISTINCT MAX( DISTINCT - ( + 37 ) ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT MAX ( DISTINCT - ( + 37 ) ) col1
----
-37

query I rowsort
SELECT + + ( + 67 ) + - 99
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT + - MAX( 94 ) + - 86 * - ( - ( - + ( - ( + 44 ) ) ) ) + 16
----
-3862

skipif mysql # not compatible
query I rowsort label-5962
SELECT + - MAX ( 94 ) + - 86 * - ( - ( - + ( - ( + 44 ) ) ) ) + 16
----
-3862

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

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL + 71 - - 79 + COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + 71 - - 79 + COUNT ( * )
----
151

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

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

query I rowsort
SELECT ALL 32 * - 6 * 0
----
0

query I rowsort
SELECT - 44 + + COALESCE ( 67, - 49 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5968
SELECT - CAST( + - COALESCE ( + 64, 27 ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-5968
SELECT - CAST ( + - COALESCE ( + 64, 27 ) AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT - 20 + - CASE + COUNT( * ) WHEN COUNT( * ) + - ( + 54 ) THEN + - 89 WHEN + COUNT( DISTINCT - + 13 ) * + 16 / + COALESCE ( 77, - ( - MAX( 3 ) ) ) + - 86 THEN + 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT - 20 + - CASE + COUNT ( * ) WHEN COUNT ( * ) + - ( + 54 ) THEN + - 89 WHEN + COUNT ( DISTINCT - + 13 ) * + 16 / + COALESCE ( 77, - ( - MAX ( 3 ) ) ) + - 86 THEN + 18 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL + 46 - + ( - MIN ( DISTINCT - 93 ) ) AS col1
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - COUNT( * ) * 11 * 45 AS col0
----
-495

skipif mysql # not compatible
query I rowsort label-5972
SELECT - COUNT ( * ) * 11 * 45 AS col0
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT - 14 * + COUNT( * ) * + MAX( ALL 40 ) AS col1
----
-560

skipif mysql # not compatible
query I rowsort label-5973
SELECT - 14 * + COUNT ( * ) * + MAX ( ALL 40 ) AS col1
----
-560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5974
SELECT 8 AS col2, ( - - NULLIF ( + CAST( NULL AS SIGNED ), 94 ) )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5974
SELECT 8 AS col2, ( - - NULLIF ( + CAST ( NULL AS INTEGER ), 94 ) )
----
8
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5976
SELECT DISTINCT + 56 * - CAST( - MAX( + + 64 ) AS SIGNED ) AS col1
----
3584

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT + 56 * - CAST ( - MAX ( + + 64 ) AS INTEGER ) AS col1
----
3584

query I rowsort
SELECT 12 * - 53 AS col1
----
-636

query I rowsort
SELECT 47 * 23 * 23 AS col2
----
24863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5979
SELECT DISTINCT + COALESCE ( + SUM( 66 ), CAST( 12 AS SIGNED ), - 29 ) * ( - - 29 ) * 92 + + + 72 AS col1
----
176160

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT + COALESCE ( + SUM ( 66 ), CAST ( 12 AS INTEGER ), - 29 ) * ( - - 29 ) * 92 + + + 72 AS col1
----
176160

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT ALL - 86, + 95 * - COUNT( * ) col0
----
-86
-95

skipif mysql # not compatible
query II rowsort label-5980
SELECT ALL - 86, + 95 * - COUNT ( * ) col0
----
-86
-95

query II rowsort
SELECT + 67 AS col1, 68
----
67
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5982
SELECT - - 29 * 13 + 73 + + COUNT( * ) + + 49 + + COUNT( * ) * + CAST( NULL AS DECIMAL ) col1, + COALESCE ( + + 46, 86 ) col0
----
NULL
46

skipif mysql # not compatible
query II rowsort label-5982
SELECT - - 29 * 13 + 73 + + COUNT ( * ) + + 49 + + COUNT ( * ) * + CAST ( NULL AS REAL ) col1, + COALESCE ( + + 46, 86 ) col0
----
NULL
46

query I rowsort
SELECT DISTINCT - ( - 22 ) + 59 * 39 col0
----
2323

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT ( + COUNT( * ) ) + + 47
----
48

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT ( + COUNT ( * ) ) + + 47
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT ALL - COALESCE ( COUNT( - 94 ), + 66, - - COUNT( * ) ) + SUM( ALL 7 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL - COALESCE ( COUNT ( - 94 ), + 66, - - COUNT ( * ) ) + SUM ( ALL 7 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5987
SELECT DISTINCT - CAST( 49 AS SIGNED ) * - + CAST( - 23 AS SIGNED ) - + + ( - 8 ) * + + 99
----
-335

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT - CAST ( 49 AS INTEGER ) * - + CAST ( - 23 AS INTEGER ) - + + ( - 8 ) * + + 99
----
-335

query I rowsort
SELECT DISTINCT + + 20 + 50
----
70

query I rowsort
SELECT + + 99 * + 64 - + ( 50 )
----
6286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT DISTINCT 77 * + COUNT( * ) + CAST( - 19 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT 77 * + COUNT ( * ) + CAST ( - 19 AS INTEGER )
----
58

query II rowsort
SELECT ALL - 17 col1, - 42 + - 36
----
-17
-78

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5993
SELECT ALL - - 78 - + CAST( NULL AS DECIMAL ) + COALESCE ( + + 69, + + CAST( NULL AS SIGNED ) * 21 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - - 78 - + CAST ( NULL AS REAL ) + COALESCE ( + + 69, + + CAST ( NULL AS INTEGER ) * 21 ) AS col1
----
NULL

query I rowsort
SELECT ALL 4 - + ( + - ( 96 ) ) * - 96 * + 79 + - + 92 * 42
----
-731924

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT COUNT( * ) * + 92 col2
----
92

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT COUNT ( * ) * + 92 col2
----
92

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5997
SELECT CAST( NULL AS DECIMAL ) * - - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT CAST ( NULL AS REAL ) * - - 15 AS col1
----
NULL

query I rowsort
SELECT CASE 40 WHEN + + 53 + 16 THEN - 10 * + - 35 * 26 + + ( + 16 ) ELSE NULL END - - + ( 47 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5999
SELECT 32 / NULLIF ( - + ( - COUNT ( * ) ), - 82 ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6000
SELECT ALL NULLIF ( + CASE + 88 WHEN - COUNT( * ) THEN NULL ELSE + 30 * + 54 END, - CAST( NULL AS DECIMAL ) ) * - 26 AS col2
----
-42120

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL NULLIF ( + CASE + 88 WHEN - COUNT ( * ) THEN NULL ELSE + 30 * + 54 END, - CAST ( NULL AS REAL ) ) * - 26 AS col2
----
-42120

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

skipif mysql # not compatible
query I rowsort label-6001
SELECT CAST ( NULL AS REAL ) * + - ( + 11 )
----
NULL

query I rowsort
SELECT COALESCE ( 72, + - NULLIF ( - 61, - 62 ) ) - + 76 * - 68 col2
----
5240

query I rowsort
SELECT ( + 14 ) + + + 47
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT 47 DIV 4 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6004
SELECT 47 / 4 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6005
SELECT ALL + 25 + - CAST( 29 AS SIGNED ) + - 62 - + - COUNT( * ) * CAST( NULL AS SIGNED ) + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL + 25 + - CAST ( 29 AS INTEGER ) + - 62 - + - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 55
----
NULL

query I rowsort
SELECT 96 + - - 89 + + 10 - 38 * - 30 + - 36 AS col0
----
1299

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT DISTINCT - 79 + - ( - ( + 17 ) ) * MAX( 73 ) AS col0
----
1162

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT - 79 + - ( - ( + 17 ) ) * MAX ( 73 ) AS col0
----
1162

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT DISTINCT + 20 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT + 20 + - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL + 87 + + 90 + + + COALESCE ( + - 55, + - ( 25 ), + + NULLIF ( + - 27, 54 / - - 99 + + 48 ) * - 5 * COALESCE ( COUNT( * ), 87 + 82 ) + - - COUNT( * ) + 13 + 96 + - COUNT( * ) + + 99 ) + 96 + COUNT( * ) * - COUNT( ALL 59 ) * 96 * + 99 AS col1
----
-9286

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + 87 + + 90 + + + COALESCE ( + - 55, + - ( 25 ), + + NULLIF ( + - 27, 54 / - - 99 + + 48 ) * - 5 * COALESCE ( COUNT ( * ), 87 + 82 ) + - - COUNT ( * ) + 13 + 96 + - COUNT ( * ) + + 99 ) + 96 + COUNT ( * ) * - COUNT ( ALL 59 ) * 96 * + 99 AS col1
----
-9286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT + - 52 * - + CAST( NULL AS SIGNED ) + - - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT + - 52 * - + CAST ( NULL AS INTEGER ) + - - 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT CASE + + ( NULLIF ( 80, + 36 ) ) WHEN + 54 THEN + 33 + + COUNT( * ) WHEN - 59 THEN - 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT CASE + + ( NULLIF ( 80, + 36 ) ) WHEN + 54 THEN + 33 + + COUNT ( * ) WHEN - 59 THEN - 43 END AS col0
----
NULL

query I rowsort
SELECT ALL - 85 - + 32 * 73
----
-2421

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL CASE + ( - ( - - 33 ) ) WHEN - COUNT( * ) THEN + CASE - 43 WHEN - 82 / + ( - 72 ) THEN NULL WHEN 96 - - COUNT( * ) THEN COUNT( * ) WHEN - - 7 THEN - + COUNT( * ) ELSE + NULLIF ( - - 14, + + 18 ) END * - 97 WHEN + 85 THEN NULL ELSE NULL END - 12 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL CASE + ( - ( - - 33 ) ) WHEN - COUNT ( * ) THEN + CASE - 43 WHEN - 82 / + ( - 72 ) THEN NULL WHEN 96 - - COUNT ( * ) THEN COUNT ( * ) WHEN - - 7 THEN - + COUNT ( * ) ELSE + NULLIF ( - - 14, + + 18 ) END * - 97 WHEN + 85 THEN NULL ELSE NULL END - 12 + - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT ALL - - ( SUM( DISTINCT - NULLIF ( + CAST( - 77 AS SIGNED ), + 9 ) ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - - ( SUM ( DISTINCT - NULLIF ( + CAST ( - 77 AS INTEGER ), + 9 ) ) ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - SUM( ALL - 88 ) * + 94
----
8272

skipif mysql # not compatible
query I rowsort label-6015
SELECT - SUM ( ALL - 88 ) * + 94
----
8272

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT CASE - 84 WHEN COUNT( * ) THEN NULL WHEN - 17 THEN NULL ELSE + ( 96 ) + + ( - + 96 ) END + + 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6016
SELECT CASE - 84 WHEN COUNT ( * ) THEN NULL WHEN - 17 THEN NULL ELSE + ( 96 ) + + ( - + 96 ) END + + 43 AS col2
----
43

query I rowsort
SELECT 87 + - 7 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT 26 * + MAX( 97 )
----
2522

skipif mysql # not compatible
query I rowsort label-6018
SELECT 26 * + MAX ( 97 )
----
2522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT 82 * COALESCE ( - - 21, + 13 + 30 - - + 80 * 92 ) * CAST( NULL AS SIGNED ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT 82 * COALESCE ( - - 21, + 13 + 30 - - + 80 * 92 ) * CAST ( NULL AS INTEGER ) + - 19
----
NULL

query I rowsort
SELECT 32 - + 22
----
10

query I rowsort
SELECT ( - 11 ) * - + 83 AS col0
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL CASE + 3 WHEN - SUM( + 28 ) - 6 THEN + 30 * - 82 - + 5 ELSE NULL END * + - 37 * - 46 + + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL CASE + 3 WHEN - SUM ( + 28 ) - 6 THEN + 30 * - 82 - + 5 ELSE NULL END * + - 37 * - 46 + + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT COUNT( * ) + - SUM( + - 38 )
----
39

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( * ) + - SUM ( + - 38 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT + 74 * - CAST( - 67 AS SIGNED ) * 21
----
104118

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + 74 * - CAST ( - 67 AS INTEGER ) * 21
----
104118

query II rowsort
SELECT DISTINCT 84 AS col0, 32
----
84
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL + 56 + + - MAX( ALL - 66 ) + + - COUNT( + 11 ) * 8 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL + 56 + + - MAX ( ALL - 66 ) + + - COUNT ( + 11 ) * 8 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ( SUM( - + 67 ) ) + + 21 + - CASE ( + 6 ) WHEN + SUM( ALL + + 98 ) THEN 12 * 20 WHEN - 53 + - 32 THEN NULL END / + - COUNT( - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT ( SUM ( - + 67 ) ) + + 21 + - CASE ( + 6 ) WHEN + SUM ( ALL + + 98 ) THEN 12 * 20 WHEN - 53 + - 32 THEN NULL END / + - COUNT ( - 58 )
----
NULL

query I rowsort
SELECT - 1 * + 14 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT + COALESCE ( - 94, + - SUM( + 92 ), + 95 ) + - + MAX( ALL + - 24 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6029
SELECT + COALESCE ( - 94, + - SUM ( + 92 ), + 95 ) + - + MAX ( ALL + - 24 ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6030
SELECT - MAX( + - CAST( - CAST( + + 60 AS SIGNED ) AS SIGNED ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6030
SELECT - MAX ( + - CAST ( - CAST ( + + 60 AS INTEGER ) AS INTEGER ) ) AS col1
----
-60

query I rowsort
SELECT DISTINCT 31 + + 85 AS col0
----
116

query I rowsort
SELECT - CASE - ( - + 64 ) WHEN + + 62 THEN - 80 * 3 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 66 + 9 AS col0
----
75

query I rowsort
SELECT + 71 * - 89 * - 44
----
278036

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL 77 + + COUNT( * ) + + 23 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL 77 + + COUNT ( * ) + + 23 AS col0
----
101

query II rowsort
SELECT 76, - 29 col2
----
76
-29

query I rowsort
SELECT DISTINCT 95 + + + NULLIF ( - 79, + - 84 * + 31 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6038
SELECT CASE 42 WHEN + + CAST( - 32 AS SIGNED ) THEN NULL WHEN + 16 THEN NULL ELSE COUNT( * ) END AS col1, + 6 DIV + 47 * + 66 - + 75
----
1
-75

skipif mysql # not compatible
query II rowsort label-6038
SELECT CASE 42 WHEN + + CAST ( - 32 AS INTEGER ) THEN NULL WHEN + 16 THEN NULL ELSE COUNT ( * ) END AS col1, + 6 / + 47 * + 66 - + 75
----
1
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6039
SELECT ALL + 92 AS col0, + 76 * ( - COUNT( * ) ) AS col2
----
92
-76

skipif mysql # not compatible
query II rowsort label-6039
SELECT ALL + 92 AS col0, + 76 * ( - COUNT ( * ) ) AS col2
----
92
-76

query I rowsort
SELECT ALL - + 93 * - 18 - - + 84 + - 26 * 17 * + 17 + - - 4
----
-5752

onlyif mysql # aggregate syntax: 
query II rowsort label-6041
SELECT + - 71 * COUNT( * ) - COUNT( * ) AS col1, - 60
----
-72
-60

skipif mysql # not compatible
query II rowsort label-6041
SELECT + - 71 * COUNT ( * ) - COUNT ( * ) AS col1, - 60
----
-72
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + + COUNT( * ) * 27 + + 1
----
28

skipif mysql # not compatible
query I rowsort label-6042
SELECT + + COUNT ( * ) * 27 + + 1
----
28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT ALL 36 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL 36 / - 98
----
0

query I rowsort
SELECT + 24 - + 30 col2
----
-6

query I rowsort
SELECT ALL + - CASE - 0 WHEN + ( ( 67 ) ) THEN - 20 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6047
SELECT + NULLIF ( + COUNT( * ), + 41 * ( - 88 ) * + - COUNT( * ) ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-6047
SELECT + NULLIF ( + COUNT ( * ), + 41 * ( - 88 ) * + - COUNT ( * ) ), + COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - + MAX( ALL - - 2 ) * - 84 - + 77 + + + 66 * - 4 AS col0
----
-173

skipif mysql # not compatible
query I rowsort label-6048
SELECT - + MAX ( ALL - - 2 ) * - 84 - + 77 + + + 66 * - 4 AS col0
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6049
SELECT - + ( - NULLIF ( + + CAST( NULL AS SIGNED ), + 78 * + 5 / - - ( + COALESCE ( - COUNT( ALL - - 33 ), + 33 ) ) ) ) - 48 AS col2, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6049
SELECT - + ( - NULLIF ( + + CAST ( NULL AS INTEGER ), + 78 * + 5 / - - ( + COALESCE ( - COUNT ( ALL - - 33 ), + 33 ) ) ) ) - 48 AS col2, 90
----
NULL
90

query I rowsort
SELECT + + 9 * + 28
----
252

query II rowsort
SELECT DISTINCT + 88 col1, ( - - 74 ) * 79 AS col1
----
88
5846

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

skipif mysql # not compatible
query I rowsort label-6052
SELECT - ( 4 ) + - CAST ( NULL AS INTEGER ) + + 42 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT - 74 DIV - + 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6053
SELECT - 74 / - + 8 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT - 85 * - COALESCE ( - 78, COUNT( * ) )
----
-6630

skipif mysql # not compatible
query I rowsort label-6054
SELECT - 85 * - COALESCE ( - 78, COUNT ( * ) )
----
-6630

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6056
SELECT ALL - MIN( + 9 ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL - MIN ( + 9 ) / + 50
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6057
SELECT ALL - 24 + + 68 + 2 * + COUNT( * ) AS col2, - 75
----
46
-75

skipif mysql # not compatible
query II rowsort label-6057
SELECT ALL - 24 + + 68 + 2 * + COUNT ( * ) AS col2, - 75
----
46
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT - MIN( 48 ) AS col1, 48 AS col2
----
-48
48

skipif mysql # not compatible
query II rowsort label-6058
SELECT - MIN ( 48 ) AS col1, 48 AS col2
----
-48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT ALL - CAST( + + 38 AS SIGNED ) * - 51 * 20 + + 40
----
38800

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL - CAST ( + + 38 AS INTEGER ) * - 51 * 20 + + 40
----
38800

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

skipif mysql # not compatible
query I rowsort label-6060
SELECT + 8 / COUNT ( * ) col2
----
8

query I rowsort
SELECT - 72 + + CASE ( 14 ) WHEN - 54 THEN NULL ELSE + + 8 * 82 END + 72 + 76 col0
----
732

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6063
SELECT ALL - COALESCE ( - + 40, - - 60 - - 48 ) + 99 AS col1, CASE - - COALESCE ( + + 68, 8 ) WHEN MIN( DISTINCT + 91 ) * + - 16 DIV 31 THEN - 55 * + 97 * + 79 + + 16 + + COUNT( * ) + 82 + - ( - 92 ) + - 18 * - COUNT( * ) + COUNT( * ) DIV + 15 * COUNT( * ) WHEN + NULLIF ( - ( 33 ), - MIN( - 86 ) ) * - 22 THEN 40 WHEN 51 DIV 60 THEN 10 ELSE + 46 * - 55 END * + 75 + CASE - ( + 51 ) WHEN - 92 THEN 15 * + 93 ELSE + 87 END
----
139
-189663

skipif mysql # not compatible
query II rowsort label-6063
SELECT ALL - COALESCE ( - + 40, - - 60 - - 48 ) + 99 AS col1, CASE - - COALESCE ( + + 68, 8 ) WHEN MIN ( DISTINCT + 91 ) * + - 16 / 31 THEN - 55 * + 97 * + 79 + + 16 + + COUNT ( * ) + 82 + - ( - 92 ) + - 18 * - COUNT ( * ) + COUNT ( * ) / + 15 * COUNT ( * ) WHEN + NULLIF ( - ( 33 ), - MIN ( - 86 ) ) * - 22 THEN 40 WHEN 51 / 60 THEN 10 ELSE + 46 * - 55 END * + 75 + CASE - ( + 51 ) WHEN - 92 THEN 15 * + 93 ELSE + 87 END
----
139
-189663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6064
SELECT - COALESCE ( 6, + + 35 * - 15 * 27 DIV - 6 + - - 95 + - COUNT( * ) - + 13 * + 22 * + - 50 )
----
-6

skipif mysql # not compatible
query I rowsort label-6064
SELECT - COALESCE ( 6, + + 35 * - 15 * 27 / - 6 + - - 95 + - COUNT ( * ) - + 13 * + 22 * + - 50 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT ALL CAST( 98 AS SIGNED ) col1
----
98

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL CAST ( 98 AS INTEGER ) col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT + + 26 - - 25 + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-6066
SELECT + + 26 - - 25 + COUNT ( * )
----
52

query I rowsort
SELECT + 42 - - 27 * - - 1
----
69

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

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL ( + COUNT ( * ) ) * - 36 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT - ( - - 32 ) * - 3 - - CAST( 54 AS SIGNED ) + - - 53 AS col1
----
203

skipif mysql # not compatible
query I rowsort label-6069
SELECT - ( - - 32 ) * - 3 - - CAST ( 54 AS INTEGER ) + - - 53 AS col1
----
203

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT + - 1 DIV + - 18 + 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6071
SELECT + - 1 / + - 18 + 32 AS col0
----
32

query I rowsort
SELECT ALL + ( - 28 ) AS col1
----
-28

query I rowsort
SELECT ALL + ( 13 ) * - 97 + - ( - + 18 ) - - + 51 + 93 * - 37 AS col2
----
-4633

query I rowsort
SELECT DISTINCT 9 * + + 5 * - + 5 * + 92
----
-20700

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

skipif mysql # not compatible
query I rowsort label-6075
SELECT + + 0 * 55 + + ( - - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT COUNT( * ) * - 61 + + - COUNT( * ) + + + 51 * - 87
----
-4499

skipif mysql # not compatible
query I rowsort label-6076
SELECT COUNT ( * ) * - 61 + + - COUNT ( * ) + + + 51 * - 87
----
-4499

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT + 97 DIV + 96
----
1

skipif mysql # not compatible
query I rowsort label-6077
SELECT + 97 / + 96
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT + MAX( ALL - 80 ) * 13 AS col1
----
-1040

skipif mysql # not compatible
query I rowsort label-6078
SELECT + MAX ( ALL - 80 ) * 13 AS col1
----
-1040

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

skipif mysql # not compatible
query I rowsort label-6079
SELECT + CAST ( NULL AS INTEGER ) * - 20
----
NULL

query I rowsort
SELECT - 80 * - 96
----
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT NULLIF ( + 17, CASE - COUNT( * ) WHEN + 85 THEN 12 * - 72 * 99 * + 50 + + CASE + - COUNT( * ) WHEN + COUNT( * ) * + - 2 / - 76 THEN - ( - 82 ) ELSE 92 END ELSE NULL END )
----
17

skipif mysql # not compatible
query I rowsort label-6081
SELECT NULLIF ( + 17, CASE - COUNT ( * ) WHEN + 85 THEN 12 * - 72 * 99 * + 50 + + CASE + - COUNT ( * ) WHEN + COUNT ( * ) * + - 2 / - 76 THEN - ( - 82 ) ELSE 92 END ELSE NULL END )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT DISTINCT + 85 * + 9 + + 13 * + NULLIF ( - - 79, + 43 * + CAST( NULL AS SIGNED ) + + + 17 ) + + NULLIF ( - + COUNT( * ), CAST( + 47 AS SIGNED ) * + 65 )
----
1791

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT + 85 * + 9 + + 13 * + NULLIF ( - - 79, + 43 * + CAST ( NULL AS INTEGER ) + + + 17 ) + + NULLIF ( - + COUNT ( * ), CAST ( + 47 AS INTEGER ) * + 65 )
----
1791

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

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT - 46 * - + CAST ( NULL AS INTEGER ) + - + COUNT ( 30 ) - + + 0 * - 73
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 89 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6085
SELECT 6 + + 6 + 47 / - 78 + - COUNT( * ) / + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT 6 + + 6 + 47 / - 78 + - COUNT ( * ) / + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 41 + 35
----
76

query II rowsort
SELECT ALL 82 col0, 17 AS col2
----
82
17

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

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

query I rowsort
SELECT 31 + 74 + - - ( ( 70 ) ) * 66 AS col1
----
4725

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT COUNT( * ) + - 45 col0
----
-44

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT COUNT ( * ) + - 45 col0
----
-44

query I rowsort
SELECT 50 + + - 48 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT DISTINCT - 39 + + - 99 + - SUM( ALL - 60 )
----
-78

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - 39 + + - 99 + - SUM ( ALL - 60 )
----
-78

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

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

query I rowsort
SELECT ALL - 94 - 1 AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6096
SELECT 66 + CAST( NULL AS SIGNED ) + + + COUNT( * ) - - - CAST( 15 AS SIGNED ) + 80 + + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT 66 + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) - - - CAST ( 15 AS INTEGER ) + 80 + + 66 AS col0
----
NULL

query I rowsort
SELECT 76 + 95 AS col2
----
171

query I rowsort
SELECT 47 * - 96
----
-4512

query I rowsort
SELECT - 39 + - ( + + ( - + 97 ) )
----
58

query I rowsort
SELECT ALL + 0 * - - 49 * + - 84 col2
----
0

query I rowsort
SELECT ALL + 89 * - 85 - - 1 * 31 + - 89
----
-7623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6102
SELECT + 88 + + CAST( - - 85 AS SIGNED ) + + CAST( + 71 AS SIGNED ) - CASE + 69 WHEN - COUNT( * ) THEN NULL WHEN - ( + COUNT( * ) ) * - 46 THEN + + CAST( NULL AS SIGNED ) ELSE + - COALESCE ( 6, MIN( ALL - - 63 ), + 23 * 21 - - - 85 * + CAST( NULL AS SIGNED ) + - 63 ) END DIV - 49 + - - 46
----
290

skipif mysql # not compatible
query I rowsort label-6102
SELECT + 88 + + CAST ( - - 85 AS INTEGER ) + + CAST ( + 71 AS INTEGER ) - CASE + 69 WHEN - COUNT ( * ) THEN NULL WHEN - ( + COUNT ( * ) ) * - 46 THEN + + CAST ( NULL AS INTEGER ) ELSE + - COALESCE ( 6, MIN ( ALL - - 63 ), + 23 * 21 - - - 85 * + CAST ( NULL AS INTEGER ) + - 63 ) END / - 49 + - - 46
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT 81 * COUNT( * ) * SUM( DISTINCT 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT 81 * COUNT ( * ) * SUM ( DISTINCT 0 ) AS col2
----
0

query I rowsort
SELECT ALL - 97 * 61
----
-5917

query I rowsort
SELECT DISTINCT - + ( - 53 ) * + - 6 * - 39
----
12402

query II rowsort
SELECT ALL - 30 AS col0, 17 * - ( + 20 ) AS col0
----
-30
-340

onlyif mysql # DIV for integer division: 
query II rowsort label-6107
SELECT 61 * - 30 * - - 87, 24 DIV 24 AS col0
----
-159210
1

skipif mysql # not compatible
query II rowsort label-6107
SELECT 61 * - 30 * - - 87, 24 / 24 AS col0
----
-159210
1

query I rowsort
SELECT - 40 * - + CASE + 90 WHEN - 70 THEN + + 11 * + 0 - 45 ELSE 68 END + + 87 + + ( + + 84 ) col1
----
2891

query I rowsort
SELECT 50 + + - 58 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6110
SELECT ALL - + 78, 6 - - CAST( NULL AS SIGNED ) AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-6110
SELECT ALL - + 78, 6 - - CAST ( NULL AS INTEGER ) AS col0
----
-78
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT DISTINCT + CASE + 15 WHEN 6 + 43 * + ( + 85 ) THEN + 77 + - 17 ELSE + 49 END + + 61 AS col0, + COALESCE ( + 41, - + 97, - + MIN( + COALESCE ( - ( 52 ), + - 12 ) ) ) * - + NULLIF ( 62, - - 71 + 50 * 56 / - 73 ) + - COUNT( * ) - + 69 col0
----
110
-2612

skipif mysql # not compatible
query II rowsort label-6111
SELECT DISTINCT + CASE + 15 WHEN 6 + 43 * + ( + 85 ) THEN + 77 + - 17 ELSE + 49 END + + 61 AS col0, + COALESCE ( + 41, - + 97, - + MIN ( + COALESCE ( - ( 52 ), + - 12 ) ) ) * - + NULLIF ( 62, - - 71 + 50 * 56 / - 73 ) + - COUNT ( * ) - + 69 col0
----
110
-2612

query I rowsort
SELECT ALL + 32 * - 10 AS col1
----
-320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL 50 + COUNT( DISTINCT - 11 )
----
51

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL 50 + COUNT ( DISTINCT - 11 )
----
51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT ALL COALESCE ( + 29, CAST( - + 79 AS SIGNED ) ) * - - 62
----
1798

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL COALESCE ( + 29, CAST ( - + 79 AS INTEGER ) ) * - - 62
----
1798

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

skipif mysql # not compatible
query I rowsort label-6117
SELECT COUNT ( * ) / - 64 * 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT - 53 * COUNT( * ) * - + 22 + + 38
----
1204

skipif mysql # not compatible
query I rowsort label-6118
SELECT - 53 * COUNT ( * ) * - + 22 + + 38
----
1204

query II rowsort
SELECT DISTINCT - 83 AS col1, NULLIF ( - - 17, + - 6 )
----
-83
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT COALESCE ( 59, - AVG ( DISTINCT - 96 ) + COUNT( * ) + + 46 + 54 ) * + 30 * - 9 + CASE 89 WHEN - 76 THEN + - 3 / COUNT( * ) END - + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT COALESCE ( 59, - AVG ( DISTINCT - 96 ) + COUNT ( * ) + + 46 + 54 ) * + 30 * - 9 + CASE 89 WHEN - 76 THEN + - 3 / COUNT ( * ) END - + 65 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT ( - - 32 ) DIV - - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6121
SELECT ( - - 32 ) / - - 90 AS col0
----
0

query I rowsort
SELECT 67 + + 55
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT DISTINCT 8 / - CAST( NULL AS SIGNED ) * + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT 8 / - CAST ( NULL AS INTEGER ) * + 38 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 88 AS col1, 30
----
88
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL MAX( + 99 ) - - 41 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL MAX ( + 99 ) - - 41 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT COUNT( * ) - - - 3 col0
----
-2

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT COUNT ( * ) - - - 3 col0
----
-2

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

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

query I rowsort
SELECT 40 + NULLIF ( 89, + - 50 )
----
129

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6130
SELECT - COUNT( * ), 4 * + + 95 AS col1
----
-1
380

skipif mysql # not compatible
query II rowsort label-6130
SELECT - COUNT ( * ), 4 * + + 95 AS col1
----
-1
380

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

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

query I rowsort
SELECT 92 * + 32 * 22 * + - 69 AS col0
----
-4468992

query I rowsort
SELECT DISTINCT - 60 * 82 AS col1
----
-4920

query I rowsort
SELECT + 77 + - - 68 AS col2
----
145

query I rowsort
SELECT DISTINCT - NULLIF ( + 32, + 31 ) AS col2
----
-32

query II rowsort
SELECT DISTINCT - 24 AS col2, 15
----
-24
15

query II rowsort
SELECT ALL + 40 AS col1, - 58
----
40
-58

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT ALL + + ( 67 ) DIV 19 * - 2 + - 27 + + 15 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL + + ( 67 ) / 19 * - 2 + - 27 + + 15 AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6141
SELECT + 52 DIV - 25 + - 29 * COUNT( * ) + + - 95 * + 36
----
-3451

skipif mysql # not compatible
query I rowsort label-6141
SELECT + 52 / - 25 + - 29 * COUNT ( * ) + + - 95 * + 36
----
-3451

query I rowsort
SELECT 45 + + 15 AS col1
----
60

query II rowsort
SELECT - 45 col0, + 35 + - 8
----
-45
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT DISTINCT - + 4 + + + 2 * + + COUNT( + 8 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT - + 4 + + + 2 * + + COUNT ( + 8 ) AS col1
----
-2

query I rowsort
SELECT ALL + + 41 * - 6
----
-246

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6147
SELECT + CASE - + NULLIF ( - 82, 15 * + ( 62 ) ) WHEN CAST( NULL AS DECIMAL ) * - - 59 / + COUNT( * ) THEN - 52 + - + COUNT( * ) - 11 + - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT + CASE - + NULLIF ( - 82, 15 * + ( 62 ) ) WHEN CAST ( NULL AS REAL ) * - - 59 / + COUNT ( * ) THEN - 52 + - + COUNT ( * ) - 11 + - 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT ( + COUNT( DISTINCT + - 69 ) ) * + 89 + 70 + - 21
----
138

skipif mysql # not compatible
query I rowsort label-6148
SELECT ( + COUNT ( DISTINCT + - 69 ) ) * + 89 + 70 + - 21
----
138

query I rowsort
SELECT ALL - + 29 * + 43 AS col0
----
-1247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6150
SELECT - CAST( NULL AS SIGNED ) * - - COUNT( * ) / + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / + 4
----
NULL

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

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

query II rowsort
SELECT DISTINCT + + 94, 90 AS col1
----
94
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT 29 * + 33 * + 73 * + CAST( NULL AS SIGNED ) + + 34 + + CAST( NULL AS SIGNED ) + + 86 / 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT 29 * + 33 * + 73 * + CAST ( NULL AS INTEGER ) + + 34 + + CAST ( NULL AS INTEGER ) + + 86 / 65
----
NULL

query II rowsort
SELECT - 96 + - - 65 col2, 77
----
-31
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL + MAX( + + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL + MAX ( + + 62 ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6157
SELECT 66 * - NULLIF ( + COUNT( * ), 7 ) * COUNT( + 18 ) + + CAST( - SUM( + 4 ) AS SIGNED ) + + CAST( + 28 AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6157
SELECT 66 * - NULLIF ( + COUNT ( * ), 7 ) * COUNT ( + 18 ) + + CAST ( - SUM ( + 4 ) AS INTEGER ) + + CAST ( + 28 AS INTEGER ) AS col1
----
-42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6159
SELECT ALL 7 * CAST( - 82 AS SIGNED ) AS col2
----
-574

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL 7 * CAST ( - 82 AS INTEGER ) AS col2
----
-574

query I rowsort
SELECT DISTINCT 66 * - 10 * + 45
----
-29700

query I rowsort
SELECT + 89 * 76 AS col1
----
6764

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

skipif mysql # not compatible
query I rowsort label-6162
SELECT + 12 / - + 22
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT + MAX( COALESCE ( 88, 73 ) ) + + 10 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6164
SELECT + MAX ( COALESCE ( 88, 73 ) ) + + 10 AS col2
----
98

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT - + 37 + + AVG ( ALL + 62 ) - - CASE + 91 WHEN - + 61 + + 81 THEN NULL WHEN - COUNT( * ) THEN + + 80 * 13 + 56 + 22 - + 89 ELSE NULL END * 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT - + 37 + + AVG ( ALL + 62 ) - - CASE + 91 WHEN - + 61 + + 81 THEN NULL WHEN - COUNT ( * ) THEN + + 80 * 13 + 56 + 22 - + 89 ELSE NULL END * 68 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT ALL + 31 * + - CASE + 88 WHEN 28 THEN + ( + 30 ) DIV + 34 WHEN + ( + 83 ) THEN NULL ELSE + 82 END col2
----
-2542

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL + 31 * + - CASE + 88 WHEN 28 THEN + ( + 30 ) / + 34 WHEN + ( + 83 ) THEN NULL ELSE + 82 END col2
----
-2542

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT - 19 * 64 DIV 67 + - 72 col1
----
-90

skipif mysql # not compatible
query I rowsort label-6170
SELECT - 19 * 64 / 67 + - 72 col1
----
-90

query I rowsort
SELECT - - 62 + 56 AS col0
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6172
SELECT DISTINCT + 29 + - ( - ( COUNT( * ) ) ) + - MIN( DISTINCT + 7 ) - + + 16 * - CASE - + 35 WHEN - + 61 THEN NULL WHEN - 98 THEN + 90 + - - CASE WHEN NOT 57 NOT BETWEEN - 42 AND CAST( NULL AS SIGNED ) * 56 THEN NULL WHEN 27 >= NULL THEN NULL ELSE + 41 END * - 64 WHEN COUNT( * ) THEN - 48 WHEN - 62 + 64 * CASE 15 WHEN - 25 + 52 THEN NULL WHEN + CAST( CAST( - CASE - 58 WHEN 70 THEN - 86 END AS SIGNED ) AS SIGNED ) * - COUNT( * ) - - 88 THEN 14 * + 26 END THEN + 86 * 73 END * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT + 29 + - ( - ( COUNT ( * ) ) ) + - MIN ( DISTINCT + 7 ) - + + 16 * - CASE - + 35 WHEN - + 61 THEN NULL WHEN - 98 THEN + 90 + - - CASE WHEN NOT 57 NOT BETWEEN - 42 AND CAST ( NULL AS INTEGER ) * 56 THEN NULL WHEN 27 >= NULL THEN NULL ELSE + 41 END * - 64 WHEN COUNT ( * ) THEN - 48 WHEN - 62 + 64 * CASE 15 WHEN - 25 + 52 THEN NULL WHEN + CAST ( CAST ( - CASE - 58 WHEN 70 THEN - 86 END AS INTEGER ) AS INTEGER ) * - COUNT ( * ) - - 88 THEN 14 * + 26 END THEN + 86 * 73 END * 17 AS col1
----
NULL

query I rowsort
SELECT + - ( ( - 52 ) ) + + - ( 29 ) * + 99 AS col2
----
-2819

query II rowsort
SELECT DISTINCT - 54 + + 53 * 31 * + 81 * + - 73, 20 col0
----
-9715113
20

onlyif mysql # aggregate syntax: 
query III rowsort label-6175
SELECT ALL 60 + + COUNT( ALL + 28 ) col0, - MIN( DISTINCT + CASE - 44 WHEN 18 THEN NULL WHEN + - 96 THEN - 81 * - 94 END ) * + 8 - + MAX( - - 42 ) * + SUM( - 57 ), ( - 62 ) AS col1
----
61
NULL
-62

skipif mysql # not compatible
query III rowsort label-6175
SELECT ALL 60 + + COUNT ( ALL + 28 ) col0, - MIN ( DISTINCT + CASE - 44 WHEN 18 THEN NULL WHEN + - 96 THEN - 81 * - 94 END ) * + 8 - + MAX ( - - 42 ) * + SUM ( - 57 ), ( - 62 ) AS col1
----
61
NULL
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT MAX( - 62 ) * - 80 AS col1
----
4960

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT MAX ( - 62 ) * - 80 AS col1
----
4960

query I rowsort
SELECT DISTINCT + 74 + - 9 - + 23 AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT ALL - 16 + + MAX( ALL - ( + 39 ) ) + 44 + - + 47 DIV 87 - + 34 - 68 + + 62 + + 59
----
8

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - 16 + + MAX ( ALL - ( + 39 ) ) + 44 + - + 47 / 87 - + 34 - 68 + + 62 + + 59
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT DISTINCT - - 89 DIV 96 + + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT - - 89 / 96 + + - 19
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + CASE - 52 WHEN - 52 THEN COUNT( * ) ELSE - CASE - 29 WHEN + COUNT( * ) - 73 THEN NULL WHEN + 91 / 79 THEN - COUNT( * ) END END
----
1

skipif mysql # not compatible
query I rowsort label-6181
SELECT + CASE - 52 WHEN - 52 THEN COUNT ( * ) ELSE - CASE - 29 WHEN + COUNT ( * ) - 73 THEN NULL WHEN + 91 / 79 THEN - COUNT ( * ) END END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT DISTINCT - 71 DIV - 6
----
11

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT - 71 / - 6
----
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6183
SELECT ALL - 55 DIV + CAST( + + 96 AS SIGNED ) + - - 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL - 55 / + CAST ( + + 96 AS INTEGER ) + - - 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT + 79 * ( - - SUM( DISTINCT 38 ) ) AS col2
----
3002

skipif mysql # not compatible
query I rowsort label-6184
SELECT + 79 * ( - - SUM ( DISTINCT 38 ) ) AS col2
----
3002

query II rowsort
SELECT + 71, 6 AS col0
----
71
6

query I rowsort
SELECT ALL - ( - 12 ) * + 0 + - 10 * - 57 AS col1
----
570

query I rowsort
SELECT ALL - 21 * 55 - 98 - + 64
----
-1317

query II rowsort
SELECT DISTINCT + 83 AS col1, ( + 57 ) + 0 - - - 56 * - 75 * - 62
----
83
-260343

query I rowsort
SELECT - ( + 87 ) * + 33
----
-2871

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

skipif mysql # not compatible
query I rowsort label-6190
SELECT COALESCE ( + - COUNT ( * ), - - 68 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT + SUM( 60 ) col0
----
60

skipif mysql # not compatible
query I rowsort label-6191
SELECT + SUM ( 60 ) col0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT ALL + COUNT( * ) AS col0, - 96 * 40
----
1
-3840

skipif mysql # not compatible
query II rowsort label-6192
SELECT ALL + COUNT ( * ) AS col0, - 96 * 40
----
1
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT NULLIF ( + 23, + - NULLIF ( + - COUNT( * ), - + 52 * 28 * + + 34 + - 88 ) * + COALESCE ( - + COUNT( * ), 85 ) )
----
23

skipif mysql # not compatible
query I rowsort label-6193
SELECT NULLIF ( + 23, + - NULLIF ( + - COUNT ( * ), - + 52 * 28 * + + 34 + - 88 ) * + COALESCE ( - + COUNT ( * ), 85 ) )
----
23

query II rowsort
SELECT NULLIF ( - + 69, - 9 ) col2, COALESCE ( + 44, + - 54 ) AS col0
----
-69
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT - 35 * + + COALESCE ( 24, 33 * - COUNT( * ) + - - 4 * + + 51 )
----
-840

skipif mysql # not compatible
query I rowsort label-6195
SELECT - 35 * + + COALESCE ( 24, 33 * - COUNT ( * ) + - - 4 * + + 51 )
----
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-6196
SELECT ALL - COUNT( * ) * + + 5 + + COUNT( * ) col1, 21
----
-4
21

skipif mysql # not compatible
query II rowsort label-6196
SELECT ALL - COUNT ( * ) * + + 5 + + COUNT ( * ) col1, 21
----
-4
21

query I rowsort
SELECT - + 46 + + 64
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT - - 71 + ( - - COUNT( + 10 ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6198
SELECT - - 71 + ( - - COUNT ( + 10 ) ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT + 95 * + 9 * + MIN( - 31 ) * - 34 + - + ( + - 40 )
----
901210

skipif mysql # not compatible
query I rowsort label-6199
SELECT + 95 * + 9 * + MIN ( - 31 ) * - 34 + - + ( + - 40 )
----
901210

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT - CASE 91 WHEN + + 79 + + + 20 + 13 * + COUNT( * ) + - - 0 THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - CASE 91 WHEN + + 79 + + + 20 + 13 * + COUNT ( * ) + - - 0 THEN - - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT - + 97 * - + COUNT( * ) col2
----
97

skipif mysql # not compatible
query I rowsort label-6202
SELECT - + 97 * - + COUNT ( * ) col2
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-6203
SELECT ALL 30, 42 DIV 20 + 23 AS col0
----
30
25

skipif mysql # not compatible
query II rowsort label-6203
SELECT ALL 30, 42 / 20 + 23 AS col0
----
30
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT DISTINCT + - 20 + + - COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT + - 20 + + - COUNT ( * ) AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6205
SELECT ALL - - 58 + 14 + 24 * NULLIF ( - 69, 52 * + - 45 * + - 88 + + 10 + 31 * + 65 ) + + CASE - 92 WHEN CAST( NULL AS SIGNED ) THEN + CAST( + + ( + + 89 ) AS DECIMAL ) + 76 WHEN + 94 * 85 + 5 + + 14 + 35 + - AVG ( ALL + + ( 53 ) ) + + 35 / 57 * 87 - 16 THEN + 59 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL - - 58 + 14 + 24 * NULLIF ( - 69, 52 * + - 45 * + - 88 + + 10 + 31 * + 65 ) + + CASE - 92 WHEN CAST ( NULL AS INTEGER ) THEN + CAST ( + + ( + + 89 ) AS REAL ) + 76 WHEN + 94 * 85 + 5 + + 14 + 35 + - AVG ( ALL + + ( 53 ) ) + + 35 / 57 * 87 - 16 THEN + 59 + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6206
SELECT - - CAST( NULL AS DECIMAL ), 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-6206
SELECT - - CAST ( NULL AS REAL ), 24 AS col1
----
NULL
24

query I rowsort
SELECT + 75 + - + 60 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6208
SELECT ALL - COUNT( * ) + - 77 DIV COUNT( * ) * + - 61
----
4696

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - COUNT ( * ) + - 77 / COUNT ( * ) * + - 61
----
4696

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT - + COUNT( - 62 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6209
SELECT - + COUNT ( - 62 ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6210
SELECT 91 AS col1, - 18 - + NULLIF ( COALESCE ( - - ( + COUNT( * ) ), COUNT( * ) * - CAST( - + 86 AS SIGNED ) - CASE COALESCE ( + 97, - CAST( NULL AS SIGNED ) / + ( - - CAST( + + COUNT( * ) AS SIGNED ) ) ) WHEN + 62 THEN + CAST( 97 AS SIGNED ) ELSE 99 END ), 45 )
----
91
-19

skipif mysql # not compatible
query II rowsort label-6210
SELECT 91 AS col1, - 18 - + NULLIF ( COALESCE ( - - ( + COUNT ( * ) ), COUNT ( * ) * - CAST ( - + 86 AS INTEGER ) - CASE COALESCE ( + 97, - CAST ( NULL AS INTEGER ) / + ( - - CAST ( + + COUNT ( * ) AS INTEGER ) ) ) WHEN + 62 THEN + CAST ( 97 AS INTEGER ) ELSE 99 END ), 45 )
----
91
-19

query II rowsort
SELECT - 64 AS col1, 1 AS col2
----
-64
1

query II rowsort
SELECT 35 AS col1, 15
----
35
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT DISTINCT MIN( + 80 ) - + - 6 * 73 DIV + + 82 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT MIN ( + 80 ) - + - 6 * 73 / + + 82 AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 32 * - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 32 * - + 70
----
NULL

query I rowsort
SELECT 66 + + 57 + + 41 + - + 35 col0
----
129

query I rowsort
SELECT 54 * - 93 + 71 * - - 5 + 49
----
-4618

query I rowsort
SELECT ALL 91 * + - 66 AS col0
----
-6006

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

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT 3 - + COUNT ( * ) / - + 50 AS col0
----
3

query I rowsort
SELECT ALL 38 - - 76 * + 34
----
2622

query I rowsort
SELECT ALL + 75 - + 55 col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT DISTINCT - 21 DIV ( + 19 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT - 21 / ( + 19 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT ( 13 ) + 77 + + 28 * - - CAST( NULL AS SIGNED ) * + 95 - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT ( 13 ) + 77 + + 28 * - - CAST ( NULL AS INTEGER ) * + 95 - 80 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT 69 DIV 38
----
1

skipif mysql # not compatible
query I rowsort label-6223
SELECT 69 / 38
----
1

query I rowsort
SELECT 76 * ( - - 7 )
----
532

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6225
SELECT ALL - 30 DIV - CAST( - 27 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - 30 / - CAST ( - 27 AS INTEGER )
----
-1

query I rowsort
SELECT ALL - COALESCE ( - 73, - 22 * + 35 + 41, 12 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT DISTINCT - 21 DIV + COALESCE ( - 57, - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT - 21 / + COALESCE ( - 57, - 76 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6228
SELECT + 65 * 70 / - COALESCE ( - 46, - + 7 * - 78 + + COUNT( - - 35 ) ) * 66 / CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT + 65 * 70 / - COALESCE ( - 46, - + 7 * - 78 + + COUNT ( - - 35 ) ) * 66 / CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 3 * - - 72 AS col2
----
-216

query I rowsort
SELECT 75 + - NULLIF ( + + 0, - 4 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL - COUNT( * ) * - ( SUM( 51 ) )
----
51

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL - COUNT ( * ) * - ( SUM ( 51 ) )
----
51

query I rowsort
SELECT + 83 * + + 93 + - 48 AS col0
----
7671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6233
SELECT ALL + 4 + - 8 + CAST( NULL AS SIGNED ) * 27 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL + 4 + - 8 + CAST ( NULL AS INTEGER ) * 27 * 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6234
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ), 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6234
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ), 6 AS col1
----
NULL
6

query I rowsort
SELECT 65 * + 71 AS col2
----
4615

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT 68 * + 51 * + 10 * - - COALESCE ( 45, + 86, - 14 ) * 92 + - 76 - + 1 * + 76 * ( 45 ) + + NULLIF ( - 26, - COUNT( * ) ) * - 60 col1
----
143573264

skipif mysql # not compatible
query I rowsort label-6236
SELECT 68 * + 51 * + 10 * - - COALESCE ( 45, + 86, - 14 ) * 92 + - 76 - + 1 * + 76 * ( 45 ) + + NULLIF ( - 26, - COUNT ( * ) ) * - 60 col1
----
143573264

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL - + 97 * - - COUNT( * ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL - + 97 * - - COUNT ( * ) col1
----
-97

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

skipif mysql # not compatible
query I rowsort label-6238
SELECT SUM ( ALL - 41 ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 90 + - 18
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT DISTINCT + COUNT( + COALESCE ( 2, + + 90 ) ) + - 83 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT + COUNT ( + COALESCE ( 2, + + 90 ) ) + - 83 AS col2
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL + 40 + - - 41 - + ( + 53 ) * + - COUNT( * ) AS col0
----
134

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL + 40 + - - 41 - + ( + 53 ) * + - COUNT ( * ) AS col0
----
134

query I rowsort
SELECT 74 + + 37 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL + 29 + + 50 + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL + 29 + + 50 + + COUNT ( * )
----
80

query I rowsort
SELECT ALL 98 + - - 8
----
106

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

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT - COUNT ( * ) / 2 - + 54
----
-54

query I rowsort
SELECT DISTINCT + 16 * - - 42 AS col0
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT DISTINCT + MAX( ALL - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT + MAX ( ALL - 28 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6249
SELECT 99 DIV MAX( ALL - 78 ) + 40 * 75
----
2999

skipif mysql # not compatible
query I rowsort label-6249
SELECT 99 / MAX ( ALL - 78 ) + 40 * 75
----
2999

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT 43 + 82 DIV - - 43 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6250
SELECT 43 + 82 / - - 43 AS col0
----
44

query I rowsort
SELECT 30 * - 70 AS col2
----
-2100

query I rowsort
SELECT ALL - - 42 - + - 80
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6253
SELECT DISTINCT CAST( + + 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT CAST ( + + 31 AS INTEGER )
----
31

query I rowsort
SELECT + 31 * 14
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT COUNT( * ) - - 42 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT COUNT ( * ) - - 42 AS col1
----
43

query I rowsort
SELECT 41 + 74 AS col0
----
115

query II rowsort
SELECT DISTINCT 15, - 11 col0
----
15
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6258
SELECT ALL + NULLIF ( - COUNT( * ), - 2 ) DIV + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + NULLIF ( - COUNT ( * ), - 2 ) / + 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT MIN( 75 ) * - + ( - + 23 ) * 50 * - 62 + - - 92 + MAX( + - 96 ) AS col1
----
-5347504

skipif mysql # not compatible
query I rowsort label-6259
SELECT MIN ( 75 ) * - + ( - + 23 ) * 50 * - 62 + - - 92 + MAX ( + - 96 ) AS col1
----
-5347504

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT + 61 DIV + 69 + + 90 + - 76 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6260
SELECT + 61 / + 69 + + 90 + - 76 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT MAX( DISTINCT 62 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-6261
SELECT MAX ( DISTINCT 62 ) col0
----
62

query I rowsort
SELECT ALL 84 * 55 AS col2
----
4620

query I rowsort
SELECT 50 * - - 21 * - - 46
----
48300

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT COUNT( DISTINCT 61 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT COUNT ( DISTINCT 61 ) + - COUNT ( * )
----
0

query I rowsort
SELECT ALL 2 * 22 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6266
SELECT COUNT( * ) col0, - 85 DIV + 85 + 34 AS col1
----
1
33

skipif mysql # not compatible
query II rowsort label-6266
SELECT COUNT ( * ) col0, - 85 / + 85 + 34 AS col1
----
1
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL 48 * + SUM( + - 27 ) AS col0
----
-1296

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL 48 * + SUM ( + - 27 ) AS col0
----
-1296

query I rowsort
SELECT DISTINCT 7 + - + 33 * - 95
----
3142

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL - MAX( DISTINCT + 93 ) + 43 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - MAX ( DISTINCT + 93 ) + 43 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL - NULLIF ( + + 32, + - 13 * + COALESCE ( + 77, - 8 + COUNT( * ) ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL - NULLIF ( + + 32, + - 13 * + COALESCE ( + 77, - 8 + COUNT ( * ) ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT COUNT( ALL + + 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6272
SELECT COUNT ( ALL + + 61 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6273
SELECT ALL 42 + COUNT( * ) - + + 3 + + COUNT( DISTINCT ( + 35 ) ) * ( SUM( DISTINCT - - 31 ) ) * - CAST( NULL AS DECIMAL ) / - 98, + ( + - 93 ) AS col1
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-6273
SELECT ALL 42 + COUNT ( * ) - + + 3 + + COUNT ( DISTINCT ( + 35 ) ) * ( SUM ( DISTINCT - - 31 ) ) * - CAST ( NULL AS REAL ) / - 98, + ( + - 93 ) AS col1
----
NULL
-93

query I rowsort
SELECT DISTINCT 1 + - 31
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6275
SELECT MAX( ALL + 11 ) * + 70, ( CAST( NULL AS SIGNED ) ) AS col1
----
770
NULL

skipif mysql # not compatible
query II rowsort label-6275
SELECT MAX ( ALL + 11 ) * + 70, ( CAST ( NULL AS INTEGER ) ) AS col1
----
770
NULL

query I rowsort
SELECT 1 * + ( + 17 )
----
17

query I rowsort
SELECT ALL 36 + 24
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6278
SELECT ALL 37 DIV - MAX( DISTINCT + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL 37 / - MAX ( DISTINCT + 74 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT + - CASE - 45 WHEN 29 / - 49 + + - 28 * + COUNT( * ) THEN - - 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT + - CASE - 45 WHEN 29 / - 49 + + - 28 * + COUNT ( * ) THEN - - 26 ELSE NULL END
----
NULL

query II rowsort
SELECT 66 AS col1, NULLIF ( + 24, - 48 )
----
66
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT 40 * - - SUM( + 90 )
----
3600

skipif mysql # not compatible
query I rowsort label-6281
SELECT 40 * - - SUM ( + 90 )
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT + COUNT( * ) * + 52 * - - 90 * 67 * 81 + - ( + 49 ) + - - 93 AS col0
----
25398404

skipif mysql # not compatible
query I rowsort label-6282
SELECT + COUNT ( * ) * + 52 * - - 90 * 67 * 81 + - ( + 49 ) + - - 93 AS col0
----
25398404

query I rowsort
SELECT ALL + ( - - 21 ) + - 67
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT - 52 * + + COALESCE ( 93, + 98 ) / CASE MIN( DISTINCT - + 97 ) WHEN + 65 THEN 98 + COUNT( - 56 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT - 52 * + + COALESCE ( 93, + 98 ) / CASE MIN ( DISTINCT - + 97 ) WHEN + 65 THEN 98 + COUNT ( - 56 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 67 * - + 37 AS col1
----
-2479

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

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL ( - ( + 9 ) ) * - COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - - 17 * - 56 + 6 + - - MAX( - 76 )
----
-1022

skipif mysql # not compatible
query I rowsort label-6287
SELECT - - 17 * - 56 + 6 + - - MAX ( - 76 )
----
-1022

query I rowsort
SELECT + 23 + - 15 AS col2
----
8

query I rowsort
SELECT - - 31 * + 25 AS col0
----
775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6290
SELECT ALL - COALESCE ( + + 71, + 33 DIV - 22 * + 41 * + + 83 * - 42 DIV COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL - COALESCE ( + + 71, + 33 / - 22 * + 41 * + + 83 * - 42 / COUNT ( * ) )
----
-71

query I rowsort
SELECT - - 87 + - 35 + - 28 + + 78 + + - 11 AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT ALL + 82 - NULLIF ( + - 66, - + CAST( - 76 AS SIGNED ) )
----
148

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL + 82 - NULLIF ( + - 66, - + CAST ( - 76 AS INTEGER ) )
----
148

query I rowsort
SELECT ALL + 76 * 68
----
5168

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT ALL + 48 DIV 25 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + 48 / 25 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT DISTINCT COALESCE ( + + 42, 36 DIV + 57 )
----
42

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT COALESCE ( + + 42, 36 / + 57 )
----
42

query I rowsort
SELECT - 38 * 64 AS col1
----
-2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT - 97 + + CAST( + - AVG ( DISTINCT - + 76 ) AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6299
SELECT - 97 + + CAST ( + - AVG ( DISTINCT - + 76 ) AS INTEGER ) AS col2
----
-21

query I rowsort
SELECT - 2 - COALESCE ( 46, - - 1 + - + 49 ) AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT DISTINCT + 21 * 21 DIV + + 75 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT + 21 * 21 / + + 75 AS col1
----
5

query I rowsort
SELECT + ( - 20 ) + 85 + + 97 * - + 63
----
-6046

query II rowsort
SELECT 28 AS col2, 14 AS col2
----
28
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT + ( + 93 ) DIV + 66 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6304
SELECT + ( + 93 ) / + 66 AS col0
----
1

query I rowsort
SELECT ALL + 3 + 25
----
28

query I rowsort
SELECT ALL 61 + - 75 + - + 74 * + 77 AS col1
----
-5712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6307
SELECT 36, - MAX( - CAST( + 97 AS SIGNED ) ) * 75 * - - 87 + - 79 AS col2
----
36
632846

skipif mysql # not compatible
query II rowsort label-6307
SELECT 36, - MAX ( - CAST ( + 97 AS INTEGER ) ) * 75 * - - 87 + - 79 AS col2
----
36
632846

query II rowsort
SELECT ( 8 ), - ( 45 ) col2
----
8
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT + 94 / - 89 * - 48 * - 48 * - COALESCE ( - 32, + - 57, - ( - - 28 ) * + + 10 + 72 + - NULLIF ( - 22, + + 67 ) ) + + CASE - 18 WHEN 77 - AVG ( - 28 ) + + 41 THEN - 55 * - 33 * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT + 94 / - 89 * - 48 * - 48 * - COALESCE ( - 32, + - 57, - ( - - 28 ) * + + 10 + 72 + - NULLIF ( - 22, + + 67 ) ) + + CASE - 18 WHEN 77 - AVG ( - 28 ) + + 41 THEN - 55 * - 33 * - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT - ( + 62 ) DIV + - 14 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6310
SELECT - ( + 62 ) / + - 14 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL 44 * - NULLIF ( 69, - + 89 + - 33 / COUNT( * ) * - + 15 ) + 56
----
-2980

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL 44 * - NULLIF ( 69, - + 89 + - 33 / COUNT ( * ) * - + 15 ) + 56
----
-2980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6312
SELECT DISTINCT + CASE - 12 WHEN - - 69 + - 6 + - - 11 * + - CAST( NULL AS SIGNED ) * + 25 THEN NULL WHEN ( + + MAX( DISTINCT 96 ) ) + 90 * 1 THEN 48 / - 49 * 64 * 32 / + 21 / 86 END * + + NULLIF ( + - 91, CAST( NULL AS SIGNED ) / - 25 ) * - 64 * + - COUNT( * ) + - MAX( - 79 ) + - NULLIF ( - 81, + 91 * - - CAST( - 41 AS SIGNED ) ) * 91 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + CASE - 12 WHEN - - 69 + - 6 + - - 11 * + - CAST ( NULL AS INTEGER ) * + 25 THEN NULL WHEN ( + + MAX ( DISTINCT 96 ) ) + 90 * 1 THEN 48 / - 49 * 64 * 32 / + 21 / 86 END * + + NULLIF ( + - 91, CAST ( NULL AS INTEGER ) / - 25 ) * - 64 * + - COUNT ( * ) + - MAX ( - 79 ) + - NULLIF ( - 81, + 91 * - - CAST ( - 41 AS INTEGER ) ) * 91 col1
----
NULL

query I rowsort
SELECT DISTINCT 19 * + + 73 + - 78 col1
----
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT + 68 * - COUNT( * ) + + 78 col2
----
10

skipif mysql # not compatible
query I rowsort label-6314
SELECT + 68 * - COUNT ( * ) + + 78 col2
----
10

query I rowsort
SELECT DISTINCT 93 * - + 39 + 89
----
-3538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6316
SELECT + 75 * + CAST( 36 AS SIGNED ) * 48 * - 47 + - + COUNT( * ) AS col1, 65 AS col2
----
-6091201
65

skipif mysql # not compatible
query II rowsort label-6316
SELECT + 75 * + CAST ( 36 AS INTEGER ) * 48 * - 47 + - + COUNT ( * ) AS col1, 65 AS col2
----
-6091201
65

query I rowsort
SELECT + 6 * - 26 AS col0
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6318
SELECT CASE + 50 WHEN - NULLIF ( - - 28, - 50 ) + + 56 * - 58 THEN NULL ELSE + + 56 * 95 DIV - 46 * + COUNT( * ) END
----
-115

skipif mysql # not compatible
query I rowsort label-6318
SELECT CASE + 50 WHEN - NULLIF ( - - 28, - 50 ) + + 56 * - 58 THEN NULL ELSE + + 56 * 95 / - 46 * + COUNT ( * ) END
----
-115

query II rowsort
SELECT ALL 11 * 10 * - 7 * - + 56, - 37 AS col0
----
43120
-37

query I rowsort
SELECT DISTINCT + 92 * 23 + - 24 - 94 AS col0
----
1998

query I rowsort
SELECT DISTINCT + + NULLIF ( + 88, 88 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6322
SELECT 67 AS col1, - ( + CAST( NULL AS SIGNED ) ) AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-6322
SELECT 67 AS col1, - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6323
SELECT ALL - 49 * ( CAST( NULL AS DECIMAL ) ) * - COUNT( * ) / + + 66 * - + 91 + + - CAST( + CAST( + 76 AS SIGNED ) AS DECIMAL ) + + - 29 - + + 48 - + 12 / + 32 * + + 36 * 59 + - 23 - - 23 + + SUM( DISTINCT - 1 ) + + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - 49 * ( CAST ( NULL AS REAL ) ) * - COUNT ( * ) / + + 66 * - + 91 + + - CAST ( + CAST ( + 76 AS INTEGER ) AS REAL ) + + - 29 - + + 48 - + 12 / + 32 * + + 36 * 59 + - 23 - - 23 + + SUM ( DISTINCT - 1 ) + + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6324
SELECT ALL + + 38 AS col2, + 34 * + + COUNT( * ) col0
----
38
34

skipif mysql # not compatible
query II rowsort label-6324
SELECT ALL + + 38 AS col2, + 34 * + + COUNT ( * ) col0
----
38
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT + 16 DIV + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6325
SELECT + 16 / + 98 AS col2
----
0

query I rowsort
SELECT - CASE + - 62 WHEN + 90 * - - 66 + - 14 THEN - 19 + - 5 ELSE NULL END * - 75 AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT ALL + 27 DIV + 66 + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL + 27 / + 66 + 65 AS col1
----
65

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

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

query I rowsort
SELECT + - 0 * + - 25 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6331
SELECT DISTINCT - 94 DIV - 8 + - + COUNT( * ) - - + COUNT( * ) + 81 DIV 2 + NULLIF ( - + 22, CAST( - 16 AS SIGNED ) ) DIV + 85 col1, 46 AS col2
----
51
46

skipif mysql # not compatible
query II rowsort label-6331
SELECT DISTINCT - 94 / - 8 + - + COUNT ( * ) - - + COUNT ( * ) + 81 / 2 + NULLIF ( - + 22, CAST ( - 16 AS INTEGER ) ) / + 85 col1, 46 AS col2
----
51
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6332
SELECT - + COALESCE ( + 40, - MAX( - - 41 ) ) * - 70 * - 69 / + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6332
SELECT - + COALESCE ( + 40, - MAX ( - - 41 ) ) * - 70 * - 69 / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6333
SELECT - CAST( COUNT( * ) AS SIGNED ) * - - NULLIF ( 31, - - 25 * + + 56 - + 38 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6333
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - - NULLIF ( 31, - - 25 * + + 56 - + 38 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT DISTINCT 45 * + CAST( + + 96 AS SIGNED )
----
4320

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT 45 * + CAST ( + + 96 AS INTEGER )
----
4320

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

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

query II rowsort
SELECT - ( + 61 ) AS col0, 76 col1
----
-61
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ALL + 43 * + COUNT( * ) * 75 AS col0
----
3225

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + 43 * + COUNT ( * ) * 75 AS col0
----
3225

query I rowsort
SELECT DISTINCT + 34 + 16 + - 36 * + - 29 + 11 AS col1
----
1105

onlyif mysql # DIV for integer division: 
query I rowsort label-6339
SELECT ALL - 71 + + 21 + - - NULLIF ( 95, 77 ) DIV 50 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - 71 + + 21 + - - NULLIF ( 95, 77 ) / 50 AS col1
----
-49

query I rowsort
SELECT ALL + 17 + 78 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT DISTINCT ( - 29 ) AS col1, 53 + - CASE - 43 WHEN COUNT( * ) * - ( COALESCE ( - + COALESCE ( ( + - 58 ), + 71 * - 48, 72 ), + 85, 18 ) ) THEN NULL WHEN - ( - 26 ) THEN 3 END AS col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-6341
SELECT DISTINCT ( - 29 ) AS col1, 53 + - CASE - 43 WHEN COUNT ( * ) * - ( COALESCE ( - + COALESCE ( ( + - 58 ), + 71 * - 48, 72 ), + 85, 18 ) ) THEN NULL WHEN - ( - 26 ) THEN 3 END AS col2
----
-29
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6342
SELECT DISTINCT + SUM( 34 ) + 81 + 20 * - CAST( - AVG ( DISTINCT - 88 ) AS DECIMAL ) * - + CASE - SUM( - + 88 ) WHEN + 33 THEN NULLIF ( ( + 35 ), 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT + SUM ( 34 ) + 81 + 20 * - CAST ( - AVG ( DISTINCT - 88 ) AS REAL ) * - + CASE - SUM ( - + 88 ) WHEN + 33 THEN NULLIF ( ( + 35 ), 78 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 90 + 84
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT - ( + 6 ) * - CASE + 7 WHEN + CASE - ( + + 31 ) WHEN - ( + 46 ) THEN - 47 ELSE NULL END + - ( - MIN( ALL 19 ) ) * - - 61 + + 67 + + - 89 * - + ( - + 25 ) + 23 * - 5 * + ( 69 ) - - CASE - 17 WHEN COALESCE ( 39, - ( - 22 ) - + 60 + + 18, 65 ) THEN + 48 END + 92 * 81 * - 22 THEN NULL ELSE + 2 + 91 END * ( 80 ) + + 99
----
44739

skipif mysql # not compatible
query I rowsort label-6344
SELECT - ( + 6 ) * - CASE + 7 WHEN + CASE - ( + + 31 ) WHEN - ( + 46 ) THEN - 47 ELSE NULL END + - ( - MIN ( ALL 19 ) ) * - - 61 + + 67 + + - 89 * - + ( - + 25 ) + 23 * - 5 * + ( 69 ) - - CASE - 17 WHEN COALESCE ( 39, - ( - 22 ) - + 60 + + 18, 65 ) THEN + 48 END + 92 * 81 * - 22 THEN NULL ELSE + 2 + 91 END * ( 80 ) + + 99
----
44739

onlyif mysql # DIV for integer division: 
query II rowsort label-6345
SELECT DISTINCT + 99 DIV - 20 AS col1, 99 AS col2
----
-4
99

skipif mysql # not compatible
query II rowsort label-6345
SELECT DISTINCT + 99 / - 20 AS col1, 99 AS col2
----
-4
99

query I rowsort
SELECT 72 * + 75 + 38 AS col1
----
5438

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6347
SELECT - 14 / - + 6 / - + 91 * ( MAX( + CASE WHEN - CAST( + 44 AS DECIMAL ) <> 31 / NULLIF ( - 6, 62 * 51 * 51 + 10 ) * + - 66 - - - 16 THEN NULL WHEN - CAST( NULL AS DECIMAL ) * 4 * 14 IS NOT NULL THEN NULL ELSE - 21 END ) ) + - 22 + - + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT - 14 / - + 6 / - + 91 * ( MAX ( + CASE WHEN - CAST ( + 44 AS REAL ) <> 31 / NULLIF ( - 6, 62 * 51 * 51 + 10 ) * + - 66 - - - 16 THEN NULL WHEN - CAST ( NULL AS REAL ) * 4 * 14 IS NOT NULL THEN NULL ELSE - 21 END ) ) + - 22 + - + 45 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT ALL 27 DIV - ( + 33 ) + 77 * - 51 * 36 + + 23
----
-141349

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL 27 / - ( + 33 ) + 77 * - 51 * 36 + + 23
----
-141349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6349
SELECT ALL - 37 DIV + ( + - NULLIF ( + - 91, - COUNT( * ) ) ) - 77 + - + 44 * + + 28
----
-1309

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL - 37 / + ( + - NULLIF ( + - 91, - COUNT ( * ) ) ) - 77 + - + 44 * + + 28
----
-1309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6350
SELECT - 53 * 1 * - CAST( 73 AS SIGNED ) AS col2
----
3869

skipif mysql # not compatible
query I rowsort label-6350
SELECT - 53 * 1 * - CAST ( 73 AS INTEGER ) AS col2
----
3869

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6351
SELECT ALL - 82 * 12, + 60 DIV + 1 DIV - - COUNT( * ) col0
----
-984
60

skipif mysql # not compatible
query II rowsort label-6351
SELECT ALL - 82 * 12, + 60 / + 1 / - - COUNT ( * ) col0
----
-984
60

query I rowsort
SELECT DISTINCT + 27 * + 57 * + - 67 AS col2
----
-103113

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

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT 82 - CAST ( - - ( COUNT ( * ) ) AS INTEGER )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6354
SELECT DISTINCT COUNT( * ) DIV + + 76 + + - CAST( NULL AS SIGNED ) + - 3 + - COUNT( * ) AS col2, - 4 DIV - + 27 + + 62 + + 50
----
NULL
112

skipif mysql # not compatible
query II rowsort label-6354
SELECT DISTINCT COUNT ( * ) / + + 76 + + - CAST ( NULL AS INTEGER ) + - 3 + - COUNT ( * ) AS col2, - 4 / - + 27 + + 62 + + 50
----
NULL
112

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

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - + 98
----
NULL

query I rowsort
SELECT + ( + + 94 ) * 69 - + 18 AS col0
----
6468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT - 34 DIV - 5 + + MAX( - - 37 )
----
43

skipif mysql # not compatible
query I rowsort label-6357
SELECT - 34 / - 5 + + MAX ( - - 37 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6358
SELECT DISTINCT - 50 DIV - + MAX( 36 )
----
1

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT - 50 / - + MAX ( 36 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6359
SELECT + CASE 82 WHEN - + CAST( NULL AS SIGNED ) THEN NULL WHEN - + NULLIF ( + 9, + - 13 * + 0 * + COUNT( * ) ) THEN + + 86 WHEN COUNT( * ) * - 15 THEN + 19 * - - 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT + CASE 82 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL WHEN - + NULLIF ( + 9, + - 13 * + 0 * + COUNT ( * ) ) THEN + + 86 WHEN COUNT ( * ) * - 15 THEN + 19 * - - 16 END AS col2
----
NULL

query I rowsort
SELECT ALL ( - 73 ) * - 82 + 9
----
5995

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6362
SELECT DISTINCT - 9 * + 17 AS col0, - COUNT( * )
----
-153
-1

skipif mysql # not compatible
query II rowsort label-6362
SELECT DISTINCT - 9 * + 17 AS col0, - COUNT ( * )
----
-153
-1

query I rowsort
SELECT DISTINCT + 98 * + + 14 * 20
----
27440

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

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

query I rowsort
SELECT + 41 * + - ( + 54 ) AS col2
----
-2214

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6366
SELECT ALL - 65 * CASE + 21 WHEN - + 34 THEN NULL ELSE - + 89 * SUM( DISTINCT + 15 ) + - CAST( NULL AS DECIMAL ) END * - MAX( - + 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - 65 * CASE + 21 WHEN - + 34 THEN NULL ELSE - + 89 * SUM ( DISTINCT + 15 ) + - CAST ( NULL AS REAL ) END * - MAX ( - + 34 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 90 + 65
----
155

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

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

query I rowsort
SELECT 97 - 26 * + 91 AS col2
----
-2269

onlyif mysql # aggregate syntax: 
query II rowsort label-6370
SELECT ALL - 16 + + - COUNT( * ) AS col0, + COALESCE ( - + ( - 73 ), - - COUNT( * ) )
----
-17
73

skipif mysql # not compatible
query II rowsort label-6370
SELECT ALL - 16 + + - COUNT ( * ) AS col0, + COALESCE ( - + ( - 73 ), - - COUNT ( * ) )
----
-17
73

query I rowsort
SELECT 10 * + - 45 * - + 85 + + + 40
----
38290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6372
SELECT ( 6 ) + NULLIF ( - 58, - + 46 ) + - MIN( ALL + - 71 ) - + 26 + - + 3 DIV + 64 * + CAST( 55 AS SIGNED ) + 86 * 78 AS col0
----
6701

skipif mysql # not compatible
query I rowsort label-6372
SELECT ( 6 ) + NULLIF ( - 58, - + 46 ) + - MIN ( ALL + - 71 ) - + 26 + - + 3 / + 64 * + CAST ( 55 AS INTEGER ) + 86 * 78 AS col0
----
6701

query II rowsort
SELECT - 62 col0, - 78
----
-62
-78

query I rowsort
SELECT ALL 85 + - 29 col2
----
56

query II rowsort
SELECT 66 AS col0, - 84
----
66
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6376
SELECT 89 DIV - + 28 col2
----
-3

skipif mysql # not compatible
query I rowsort label-6376
SELECT 89 / - + 28 col2
----
-3

query I rowsort
SELECT 60 + + 29 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL 79 * + CAST( + CASE - + MIN( ALL - ( 93 ) ) WHEN + 67 * + COUNT( * ) * + + 36 + - 57 THEN - 69 WHEN - ( CAST( - - 67 AS SIGNED ) ) * ( + 12 ) * ( - 15 ) + + COUNT( * ) - - 91 + 72 + + + 59 * 18 THEN 36 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL 79 * + CAST ( + CASE - + MIN ( ALL - ( 93 ) ) WHEN + 67 * + COUNT ( * ) * + + 36 + - 57 THEN - 69 WHEN - ( CAST ( - - 67 AS INTEGER ) ) * ( + 12 ) * ( - 15 ) + + COUNT ( * ) - - 91 + 72 + + + 59 * 18 THEN 36 ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT 90 + + - MIN( ALL + 44 )
----
46

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT 90 + + - MIN ( ALL + 44 )
----
46

query I rowsort
SELECT DISTINCT - 58 * - 70 AS col1
----
4060

query I rowsort
SELECT 79 + - - 87 AS col1
----
166

query II rowsort
SELECT - 30 AS col2, 35 * - 56
----
-30
-1960

query I rowsort
SELECT ALL + 86 + - 62 col1
----
24

query II rowsort
SELECT - 86 AS col0, 74 + - 52 AS col1
----
-86
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6385
SELECT 4 + + ( - CAST( - - 15 AS SIGNED ) ) DIV + 69 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6385
SELECT 4 + + ( - CAST ( - - 15 AS INTEGER ) ) / + 69 AS col1
----
4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6387
SELECT ALL - 41 + MIN( DISTINCT + - 19 ), CASE - ( 89 ) WHEN 47 + + 14 THEN NULL ELSE + COUNT( - COALESCE ( CASE + 2 WHEN - - 94 + - - 0 + - 40 * + - 56 THEN NULL WHEN - CASE + - 60 WHEN - CASE - 23 WHEN - + 82 * - 56 - - 1 THEN NULL ELSE + 26 * + NULLIF ( + 44, - - 72 ) END THEN 25 WHEN + 12 THEN + 35 + - 71 * 6 * 74 END THEN 23 + - 0 ELSE NULL END, + 15, - ( 1 ) * - 4, 69 / + 19 ) ) END + + 29 AS col1
----
-60
30

skipif mysql # not compatible
query II rowsort label-6387
SELECT ALL - 41 + MIN ( DISTINCT + - 19 ), CASE - ( 89 ) WHEN 47 + + 14 THEN NULL ELSE + COUNT ( - COALESCE ( CASE + 2 WHEN - - 94 + - - 0 + - 40 * + - 56 THEN NULL WHEN - CASE + - 60 WHEN - CASE - 23 WHEN - + 82 * - 56 - - 1 THEN NULL ELSE + 26 * + NULLIF ( + 44, - - 72 ) END THEN 25 WHEN + 12 THEN + 35 + - 71 * 6 * 74 END THEN 23 + - 0 ELSE NULL END, + 15, - ( 1 ) * - 4, 69 / + 19 ) ) END + + 29 AS col1
----
-60
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6388
SELECT CASE + - 64 WHEN + 59 + - 59 * - + 61 * - 74 THEN NULL WHEN - - COALESCE ( - 30, - MAX( 23 ) - + + 65 + CAST( NULL AS SIGNED ) * + ( + - 38 ) * 95 * 12 ) THEN NULL ELSE 78 END + 20 AS col0, + 49 * + 66 AS col2
----
98
3234

skipif mysql # not compatible
query II rowsort label-6388
SELECT CASE + - 64 WHEN + 59 + - 59 * - + 61 * - 74 THEN NULL WHEN - - COALESCE ( - 30, - MAX ( 23 ) - + + 65 + CAST ( NULL AS INTEGER ) * + ( + - 38 ) * 95 * 12 ) THEN NULL ELSE 78 END + 20 AS col0, + 49 * + 66 AS col2
----
98
3234

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

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

query II rowsort
SELECT ALL - 36 AS col1, 57
----
-36
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT DISTINCT - CASE 30 WHEN + + SUM( ALL - 85 ) + 24 THEN 67 + + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT - CASE 30 WHEN + + SUM ( ALL - 85 ) + 24 THEN 67 + + 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL - NULLIF ( - 72, - MIN( ALL + - 10 ) * - 1 ) * - - 44 AS col0
----
3168

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL - NULLIF ( - 72, - MIN ( ALL + - 10 ) * - 1 ) * - - 44 AS col0
----
3168

onlyif mysql # aggregate syntax: 
query II rowsort label-6393
SELECT DISTINCT - - 75 AS col2, 11 + - COUNT( + 29 ) + - 67 * + 53 * - 49 AS col0
----
75
174009

skipif mysql # not compatible
query II rowsort label-6393
SELECT DISTINCT - - 75 AS col2, 11 + - COUNT ( + 29 ) + - 67 * + 53 * - 49 AS col0
----
75
174009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6394
SELECT - - ( + 26 ) DIV - COUNT( * ) + - COALESCE ( + - 65, 32 * 95 ) + - SUM( DISTINCT + - ( 82 ) ) + - 5 DIV 46 + + 31 * 0 - 15 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-6394
SELECT - - ( + 26 ) / - COUNT ( * ) + - COALESCE ( + - 65, 32 * 95 ) + - SUM ( DISTINCT + - ( 82 ) ) + - 5 / 46 + + 31 * 0 - 15 AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6395
SELECT + CAST( NULL AS SIGNED ) * - COUNT( DISTINCT 82 ) * - 64 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT 82 ) * - 64 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ALL - - 96 * COUNT( * ) * 20
----
1920

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - - 96 * COUNT ( * ) * 20
----
1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6397
SELECT - 17 * - 50 + 29 - + 59 * 18 * 11 DIV - 93 - COALESCE ( + 28, + - COUNT( + + CAST( + 70 AS SIGNED ) ) ) * - COALESCE ( 1, - + ( 55 ) ) * + + ( 81 ) col2
----
3272

skipif mysql # not compatible
query I rowsort label-6397
SELECT - 17 * - 50 + 29 - + 59 * 18 * 11 / - 93 - COALESCE ( + 28, + - COUNT ( + + CAST ( + 70 AS INTEGER ) ) ) * - COALESCE ( 1, - + ( 55 ) ) * + + ( 81 ) col2
----
3272

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6399
SELECT - + 76 * + + 20 + + CAST( NULL AS SIGNED ), 20 AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-6399
SELECT - + 76 * + + 20 + + CAST ( NULL AS INTEGER ), 20 AS col0
----
NULL
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6400
SELECT - 59 * - - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT - 59 * - - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 24 ) col2
----
-24

query I rowsort
SELECT DISTINCT - + 54 * ( - + 96 ) * 44 * ( + - 41 ) - + 24
----
-9351960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6403
SELECT ALL + ( - 36 ) * 88 - - - 42 DIV + - 52 * COUNT( * ) * - 78 DIV + ( 64 ) AS col1
----
-3168

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + ( - 36 ) * 88 - - - 42 / + - 52 * COUNT ( * ) * - 78 / + ( 64 ) AS col1
----
-3168

query I rowsort
SELECT ALL 78 + - 76 AS col1
----
2

query II rowsort
SELECT + 46 AS col1, + 23 * + 1 AS col1
----
46
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6406
SELECT - CASE + 90 WHEN 22 THEN NULL WHEN + 7 + + - 78 + + 90 + 70 * COALESCE ( - - 94, + - COUNT( * ), + COUNT( * ) ) * NULLIF ( + ( 40 ), COUNT( * ) * - 2 * 57 ) THEN NULL WHEN + + 25 THEN NULL ELSE COUNT( * ) END DIV - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6406
SELECT - CASE + 90 WHEN 22 THEN NULL WHEN + 7 + + - 78 + + 90 + 70 * COALESCE ( - - 94, + - COUNT ( * ), + COUNT ( * ) ) * NULLIF ( + ( 40 ), COUNT ( * ) * - 2 * 57 ) THEN NULL WHEN + + 25 THEN NULL ELSE COUNT ( * ) END / - 72 AS col1
----
0

query I rowsort
SELECT 12 + 43 + - ( - + 53 )
----
108

query I rowsort
SELECT - 5 * - 91
----
455

query I rowsort
SELECT - 75 + + - 45 AS col1
----
-120

query I rowsort
SELECT ALL - 53 + 11
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT + CAST( NULL AS SIGNED ) * 38 + + - 76 + 82 - - 58 * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT + CAST ( NULL AS INTEGER ) * 38 + + - 76 + 82 - - 58 * + 56
----
NULL

query I rowsort
SELECT DISTINCT 20 + + 64 + 14
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT ALL 38 + - - 76 + + COUNT( - - 29 ) * - - MAX( + + 10 ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL 38 + - - 76 + + COUNT ( - - 29 ) * - - MAX ( + + 10 ) AS col2
----
124

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT ALL - 17 + - 29 * - + CAST( ( - NULLIF ( + NULLIF ( - - COUNT( * ), 33 ), 66 ) ) AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL - 17 + - 29 * - + CAST ( ( - NULLIF ( + NULLIF ( - - COUNT ( * ), 33 ), 66 ) ) AS INTEGER ) AS col2
----
-46

query I rowsort
SELECT 59 * 2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT DISTINCT 37 - - - 4 * 1 * + CAST( 53 AS SIGNED )
----
-175

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT 37 - - - 4 * 1 * + CAST ( 53 AS INTEGER )
----
-175

query I rowsort
SELECT 85 * - - 98 AS col0
----
8330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6419
SELECT COUNT( * ) * + - CASE COUNT( * ) WHEN + - 11 * - 14 * - COUNT( ALL + 72 ) * - NULLIF ( - 80, 63 ) * + COUNT( * ) + + 26 + + + 60 - + 48 * 28 * + 20 + ( + COUNT( * ) ) + 42 * ( + + 62 ) + - - NULLIF ( - 76, - - 54 ) + + 13 + 87 + COUNT( * ) * 83 DIV 90 THEN + + 18 + + - COUNT( * ) * - 96 DIV + 67 WHEN - CAST( + 37 AS SIGNED ) THEN + CASE + 72 WHEN + 38 + + 46 THEN COUNT( * ) END ELSE 75 END
----
-75

skipif mysql # not compatible
query I rowsort label-6419
SELECT COUNT ( * ) * + - CASE COUNT ( * ) WHEN + - 11 * - 14 * - COUNT ( ALL + 72 ) * - NULLIF ( - 80, 63 ) * + COUNT ( * ) + + 26 + + + 60 - + 48 * 28 * + 20 + ( + COUNT ( * ) ) + 42 * ( + + 62 ) + - - NULLIF ( - 76, - - 54 ) + + 13 + 87 + COUNT ( * ) * 83 / 90 THEN + + 18 + + - COUNT ( * ) * - 96 / + 67 WHEN - CAST ( + 37 AS INTEGER ) THEN + CASE + 72 WHEN + 38 + + 46 THEN COUNT ( * ) END ELSE 75 END
----
-75

query I rowsort
SELECT + 71 + - - 69 + 85 * + 44 AS col1
----
3880

onlyif mysql # aggregate syntax: 
query II rowsort label-6421
SELECT + 47 * - 8 col0, 27 * SUM( DISTINCT + 76 ) AS col0
----
-376
2052

skipif mysql # not compatible
query II rowsort label-6421
SELECT + 47 * - 8 col0, 27 * SUM ( DISTINCT + 76 ) AS col0
----
-376
2052

query I rowsort
SELECT DISTINCT + NULLIF ( ( + + 4 ), 30 + + - 9 * 77 ) * + 74 * 25
----
7400

onlyif mysql # DIV for integer division: 
query I rowsort label-6423
SELECT + 0 DIV - - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6423
SELECT + 0 / - - 28 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6424
SELECT ALL CASE + 26 WHEN 36 DIV + 95 THEN NULL WHEN + + 32 THEN COUNT( - - 51 ) ELSE + - CAST( + 37 AS SIGNED ) DIV - - 35 END * - 6
----
6

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL CASE + 26 WHEN 36 / + 95 THEN NULL WHEN + + 32 THEN COUNT ( - - 51 ) ELSE + - CAST ( + 37 AS INTEGER ) / - - 35 END * - 6
----
6

query I rowsort
SELECT DISTINCT + ( NULLIF ( + 54, - 19 ) )
----
54

query I rowsort
SELECT ALL + - NULLIF ( - 77, + 59 )
----
77

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

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

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

query I rowsort
SELECT + 96 * 38 AS col2
----
3648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6430
SELECT ALL + + 97 * + 29 + 90 DIV 19 AS col2, COUNT( * ) + 26
----
2817
27

skipif mysql # not compatible
query II rowsort label-6430
SELECT ALL + + 97 * + 29 + 90 / 19 AS col2, COUNT ( * ) + 26
----
2817
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6431
SELECT ALL + + CASE + 96 WHEN + + CAST( - 91 AS SIGNED ) + - - ( - 6 ) / 69 * - + 57 * + 32 * + - 54 THEN + CASE + 20 WHEN - 90 + + 35 THEN - 60 * + + 80 * - - 70 + + 56 + - 45 / - 79 - - ( ( + AVG ( ALL + + 27 ) ) ) + - 60 - + 93 / - COUNT( * ) * - 14 * COUNT( * ) * 30 ELSE + 63 END WHEN - - 27 * - + COUNT( * ) - + + 0 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + + CASE + 96 WHEN + + CAST ( - 91 AS INTEGER ) + - - ( - 6 ) / 69 * - + 57 * + 32 * + - 54 THEN + CASE + 20 WHEN - 90 + + 35 THEN - 60 * + + 80 * - - 70 + + 56 + - 45 / - 79 - - ( ( + AVG ( ALL + + 27 ) ) ) + - 60 - + 93 / - COUNT ( * ) * - 14 * COUNT ( * ) * 30 ELSE + 63 END WHEN - - 27 * - + COUNT ( * ) - + + 0 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6433
SELECT ALL 56 * + - 27 * - + 3 * + - 67 * - NULLIF ( - + 5, - 45 ) * - + 34 + + + MAX( DISTINCT - - 48 ) * - ( + 89 ) * - + 98 * - + 65 DIV - COUNT( DISTINCT + - 30 )
----
78877680

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL 56 * + - 27 * - + 3 * + - 67 * - NULLIF ( - + 5, - 45 ) * - + 34 + + + MAX ( DISTINCT - - 48 ) * - ( + 89 ) * - + 98 * - + 65 / - COUNT ( DISTINCT + - 30 )
----
78877680

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

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

query I rowsort
SELECT ALL - - 99 * 99 * 53 + - 61 + NULLIF ( 40, - 21 )
----
519432

query I rowsort
SELECT + ( - 11 ) * - 68 AS col2
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT DISTINCT 27 * - COUNT( * ) + 71 * + 84 AS col1
----
5937

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT 27 * - COUNT ( * ) + 71 * + 84 AS col1
----
5937

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL 64 * + ( - 73 ) + - 88 - + COUNT( * )
----
-4761

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL 64 * + ( - 73 ) + - 88 - + COUNT ( * )
----
-4761

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL - ( 59 ) * CASE 84 WHEN - - COALESCE ( + 66, + - 40 * ( + NULLIF ( - 65, + + 72 * - COUNT( * ) * + 25 * + ( + AVG ( - 14 ) ) ) ) + + NULLIF ( - 43, - 50 * - - COUNT( * ) ) - 20 + - 67 / + - 54 * + + 85 + - - 61 * 59 * + 80 * - + 18, - 18 * + + 62 ) THEN NULL ELSE - 88 END * 84 + - 83
----
436045

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - ( 59 ) * CASE 84 WHEN - - COALESCE ( + 66, + - 40 * ( + NULLIF ( - 65, + + 72 * - COUNT ( * ) * + 25 * + ( + AVG ( - 14 ) ) ) ) + + NULLIF ( - 43, - 50 * - - COUNT ( * ) ) - 20 + - 67 / + - 54 * + + 85 + - - 61 * 59 * + 80 * - + 18, - 18 * + + 62 ) THEN NULL ELSE - 88 END * 84 + - 83
----
436045

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT - - 77 - - 94 * - ( MIN( - 12 ) ) * + 85 - 23 - + COUNT( * ) AS col1
----
95933

skipif mysql # not compatible
query I rowsort label-6440
SELECT - - 77 - - 94 * - ( MIN ( - 12 ) ) * + 85 - 23 - + COUNT ( * ) AS col1
----
95933

query I rowsort
SELECT DISTINCT + 66 * + - 1
----
-66

query II rowsort
SELECT ALL + + ( + 75 ), - 95 AS col1
----
75
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6443
SELECT - COUNT( * ) DIV CAST( NULLIF ( - AVG ( - - 9 ), - 11 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6443
SELECT - COUNT ( * ) / CAST ( NULLIF ( - AVG ( - - 9 ), - 11 ) AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - 30 * - + 92 AS col2
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT DISTINCT SUM( - - 81 ) * 21 + - 22 + - - 46 + - NULLIF ( + 92, 74 ) AS col0
----
1633

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT SUM ( - - 81 ) * 21 + - 22 + - - 46 + - NULLIF ( + 92, 74 ) AS col0
----
1633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT ALL CASE - 25 WHEN + 34 THEN 78 WHEN - MAX( DISTINCT - 57 ) THEN + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) + 87 + MIN( + 12 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL CASE - 25 WHEN + 34 THEN 78 WHEN - MAX ( DISTINCT - 57 ) THEN + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + 87 + MIN ( + 12 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT - COUNT( * ) + - MIN( ALL - 91 ) - - - 63 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6447
SELECT - COUNT ( * ) + - MIN ( ALL - 91 ) - - - 63 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT - ( + - 61 ) - + + SUM( ALL + + 20 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6448
SELECT - ( + - 61 ) - + + SUM ( ALL + + 20 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT - NULLIF ( + + CASE + NULLIF ( + COUNT( * ), 45 ) WHEN + - 36 THEN NULL WHEN - 64 THEN NULL WHEN + - COUNT( * ) THEN - - 74 / - 86 END, - - 17 - ( + SUM( - - 93 ) ) + + 39 * - ( + 53 ) + ( - 15 ) ) * - + COALESCE ( COUNT( * ), + + 26 * 23 + - 47 - + - 48, COALESCE ( + + 72, - - 33 + - + 43 + 17 - - + 31 * + 40, + 78 + + 43 ) * + 94 ) + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT - NULLIF ( + + CASE + NULLIF ( + COUNT ( * ), 45 ) WHEN + - 36 THEN NULL WHEN - 64 THEN NULL WHEN + - COUNT ( * ) THEN - - 74 / - 86 END, - - 17 - ( + SUM ( - - 93 ) ) + + 39 * - ( + 53 ) + ( - 15 ) ) * - + COALESCE ( COUNT ( * ), + + 26 * 23 + - 47 - + - 48, COALESCE ( + + 72, - - 33 + - + 43 + 17 - - + 31 * + 40, + 78 + + 43 ) * + 94 ) + 90 AS col1
----
NULL

query I rowsort
SELECT - 84 + - 99 AS col1
----
-183

query I rowsort
SELECT - ( + 8 ) + - - 23 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ALL + COUNT( * ) - + COUNT( * ) * + 61 + - + 64 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL + COUNT ( * ) - + COUNT ( * ) * + 61 + - + 64 AS col1
----
-124

query II rowsort
SELECT 29 col2, + 81 AS col0
----
29
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6454
SELECT - CASE + + 46 WHEN + 95 * - 73 + + 84 + - - 67 * - + 63 THEN - + COUNT( * ) ELSE NULL END col1, COALESCE ( + CAST( NULL AS SIGNED ), + ( 36 ) ) col0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-6454
SELECT - CASE + + 46 WHEN + 95 * - 73 + + 84 + - - 67 * - + 63 THEN - + COUNT ( * ) ELSE NULL END col1, COALESCE ( + CAST ( NULL AS INTEGER ), + ( 36 ) ) col0
----
NULL
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT ALL CAST( + 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL CAST ( + 43 AS INTEGER ) AS col2
----
43

query I rowsort
SELECT ALL 66 * - - 32
----
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6457
SELECT - 30 + - CASE + AVG ( + 71 ) WHEN + COUNT( * ) - - SUM( + + 89 ) + MAX( - 48 ) + + + 67 + + CAST( - 67 AS SIGNED ) * + COUNT( * ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT - 30 + - CASE + AVG ( + 71 ) WHEN + COUNT ( * ) - - SUM ( + + 89 ) + MAX ( - 48 ) + + + 67 + + CAST ( - 67 AS INTEGER ) * + COUNT ( * ) THEN + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 6 + 43
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6459
SELECT DISTINCT CAST( COUNT( DISTINCT - - 29 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT CAST ( COUNT ( DISTINCT - - 29 ) AS INTEGER ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6460
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, CASE - - ( + 15 ) WHEN + 90 * - 56 + - + 15 * + ( - + 43 ) THEN + COALESCE ( - COUNT( DISTINCT + 73 ), 35 * - 74 ) ELSE + - 55 * - 4 END * 66 AS col1
----
NULL
14520

skipif mysql # not compatible
query II rowsort label-6460
SELECT ALL CAST ( NULL AS REAL ) AS col1, CASE - - ( + 15 ) WHEN + 90 * - 56 + - + 15 * + ( - + 43 ) THEN + COALESCE ( - COUNT ( DISTINCT + 73 ), 35 * - 74 ) ELSE + - 55 * - 4 END * 66 AS col1
----
NULL
14520

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

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

query I rowsort
SELECT + 76 + - 54 * 59
----
-3110

query I rowsort
SELECT - + 99 * 67 AS col1
----
-6633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT + + 93 * CAST( - 7 AS SIGNED ) + - - 78 AS col2
----
-573

skipif mysql # not compatible
query I rowsort label-6464
SELECT + + 93 * CAST ( - 7 AS INTEGER ) + - - 78 AS col2
----
-573

query I rowsort
SELECT + - 35 + - 93 + - 55 + + + 9 + - 11 * + 85 * + 89
----
-83389

query II rowsort
SELECT ALL + 59 AS col2, + 62 AS col1
----
59
62

query I rowsort
SELECT + 67 + - 28
----
39

query I rowsort
SELECT + 81 * 96 AS col0
----
7776

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

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT + COUNT ( * ) / - + 51
----
0

query I rowsort
SELECT DISTINCT - 30 * + - 75 + - 7 * - NULLIF ( + - 33, + + 75 + + - 17 )
----
2019

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT + 20 DIV - - 19 + - + 22 - - 65 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6471
SELECT + 20 / - - 19 + - + 22 - - 65 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT - ( + - ( COUNT( * ) ) ) * + - 54 + + + 68
----
14

skipif mysql # not compatible
query I rowsort label-6472
SELECT - ( + - ( COUNT ( * ) ) ) * + - 54 + + + 68
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT + + MIN( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-6473
SELECT + + MIN ( - 33 )
----
-33

query I rowsort
SELECT + + 38 * + NULLIF ( + + 21, + - 0 ) + + 98 + - 86 + - 22
----
788

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6475
SELECT ALL - 87 DIV - + 2 + 68 DIV + 99 + - CASE - 51 WHEN + 38 + - 11 THEN NULL WHEN + 46 - - 25 THEN NULL WHEN - MAX( - 34 ) THEN NULL ELSE 50 END AS col1, 1 AS col2
----
-7
1

skipif mysql # not compatible
query II rowsort label-6475
SELECT ALL - 87 / - + 2 + 68 / + 99 + - CASE - 51 WHEN + 38 + - 11 THEN NULL WHEN + 46 - - 25 THEN NULL WHEN - MAX ( - 34 ) THEN NULL ELSE 50 END AS col1, 1 AS col2
----
-7
1

query I rowsort
SELECT + 97 + + 23 - - - 6 + - + 65
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6477
SELECT ALL + - 70 DIV - - 58 + - 47 + - COUNT( * ) * + 64 + + - CASE CASE + - COUNT( * ) WHEN + 76 THEN - + ( + ( 26 ) ) ELSE NULL END WHEN 89 * + 22 - - 12 THEN NULL ELSE - 74 + 9 END + + 57 DIV 86 DIV + + 19 AS col1, 35 - 48
----
-47
-13

skipif mysql # not compatible
query II rowsort label-6477
SELECT ALL + - 70 / - - 58 + - 47 + - COUNT ( * ) * + 64 + + - CASE CASE + - COUNT ( * ) WHEN + 76 THEN - + ( + ( 26 ) ) ELSE NULL END WHEN 89 * + 22 - - 12 THEN NULL ELSE - 74 + 9 END + + 57 / 86 / + + 19 AS col1, 35 - 48
----
-47
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT ALL - COUNT( * ) * - COUNT( DISTINCT - 38 ) - 37 AS col2, 28 + + - 34 + - 57
----
-36
-63

skipif mysql # not compatible
query II rowsort label-6478
SELECT ALL - COUNT ( * ) * - COUNT ( DISTINCT - 38 ) - 37 AS col2, 28 + + - 34 + - 57
----
-36
-63

query I rowsort
SELECT DISTINCT + 44 * + 21 AS col1
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT - 90 + - 30 DIV + - 54 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6480
SELECT - 90 + - 30 / + - 54 AS col1
----
-90

query I rowsort
SELECT - 66 + + - 63 AS col0
----
-129

query I rowsort
SELECT DISTINCT + 36 * - ( - 18 )
----
648

query II rowsort
SELECT DISTINCT 28 col1, 67 + - 5 * + 84
----
28
-353

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

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

query I rowsort
SELECT ALL 60 * - 9 * 28
----
-15120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6486
SELECT DISTINCT 39, + 63 AS col2, - - CAST( NULL AS SIGNED ) AS col1
----
39
63
NULL

skipif mysql # not compatible
query III rowsort label-6486
SELECT DISTINCT 39, + 63 AS col2, - - CAST ( NULL AS INTEGER ) AS col1
----
39
63
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6487
SELECT 20 DIV + 3 AS col2, 80 + - - 91 AS col0
----
6
171

skipif mysql # not compatible
query II rowsort label-6487
SELECT 20 / + 3 AS col2, 80 + - - 91 AS col0
----
6
171

query I rowsort
SELECT 94 - - - 67
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT 0 * + 69 * + + MAX( ALL 62 )
----
0

skipif mysql # not compatible
query I rowsort label-6489
SELECT 0 * + 69 * + + MAX ( ALL 62 )
----
0

query I rowsort
SELECT 3 * + 16
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT 9 DIV + ( + 56 )
----
0

skipif mysql # not compatible
query I rowsort label-6491
SELECT 9 / + ( + 56 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6492
SELECT - 56, - ( - MAX( ALL + 99 ) ) AS col2
----
-56
99

skipif mysql # not compatible
query II rowsort label-6492
SELECT - 56, - ( - MAX ( ALL + 99 ) ) AS col2
----
-56
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6493
SELECT - 58, COUNT( * ) * - 81 AS col2
----
-58
-81

skipif mysql # not compatible
query II rowsort label-6493
SELECT - 58, COUNT ( * ) * - 81 AS col2
----
-58
-81

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

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

query I rowsort
SELECT DISTINCT + 31 + - 80 + + 39 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT - CASE - MAX( ALL - + ( + - 72 ) ) WHEN - - COUNT( * ) THEN - 4 WHEN + ( - 43 ) THEN NULL END * + + ( + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT - CASE - MAX ( ALL - + ( + - 72 ) ) WHEN - - COUNT ( * ) THEN - 4 WHEN + ( - 43 ) THEN NULL END * + + ( + 11 )
----
NULL

query I rowsort
SELECT ALL + 82 + 14
----
96

query II rowsort
SELECT ALL 52 AS col0, 39 AS col0
----
52
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6499
SELECT DISTINCT + - COUNT( * ) + + - ( + 14 ) DIV + 22 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + - COUNT ( * ) + + - ( + 14 ) / + 22 col2
----
-1

query I rowsort
SELECT + 36 + 14 + 79
----
129

query I rowsort
SELECT NULLIF ( - 85, 25 ) AS col2
----
-85

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

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT - + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6503
SELECT 66 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6504
SELECT ALL COUNT( * ) DIV - - 23 AS col1, + 88 DIV - 61 - + - 89 - - 20 + + + 43 AS col1
----
0
151

skipif mysql # not compatible
query II rowsort label-6504
SELECT ALL COUNT ( * ) / - - 23 AS col1, + 88 / - 61 - + - 89 - - 20 + + + 43 AS col1
----
0
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6505
SELECT COUNT( ALL + 65 ) DIV + 24 - COUNT( * ) + + 94 + - 4 + ( - 20 ) col1
----
69

skipif mysql # not compatible
query I rowsort label-6505
SELECT COUNT ( ALL + 65 ) / + 24 - COUNT ( * ) + + 94 + - 4 + ( - 20 ) col1
----
69

query I rowsort
SELECT ALL + - 93 - COALESCE ( + 62, - 37 * - 18 + + 7 + 1 )
----
-155

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

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL - MIN ( ALL - 74 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT + COUNT( * ), 75 * 21 * - + CASE - - 44 WHEN 88 THEN NULL WHEN - + 7 THEN NULL ELSE + 8 + + 20 END AS col2
----
1
-44100

skipif mysql # not compatible
query II rowsort label-6508
SELECT + COUNT ( * ), 75 * 21 * - + CASE - - 44 WHEN 88 THEN NULL WHEN - + 7 THEN NULL ELSE + 8 + + 20 END AS col2
----
1
-44100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6509
SELECT ALL - 75 - - CASE + NULLIF ( + + 43, - 56 + + 36 ) WHEN - 11 * - COALESCE ( - - CASE + 16 WHEN - - COUNT( * ) THEN + + 96 END, + 76 + 20 * - 29 DIV + + 14, 45 ) + + 26 THEN - 48 DIV MAX( DISTINCT + 13 ) * + 17 + + + 62 * - + 63 ELSE + 8 END * + + 96 + - 46, COUNT( * ) AS col1
----
647
1

skipif mysql # not compatible
query II rowsort label-6509
SELECT ALL - 75 - - CASE + NULLIF ( + + 43, - 56 + + 36 ) WHEN - 11 * - COALESCE ( - - CASE + 16 WHEN - - COUNT ( * ) THEN + + 96 END, + 76 + 20 * - 29 / + + 14, 45 ) + + 26 THEN - 48 / MAX ( DISTINCT + 13 ) * + 17 + + + 62 * - + 63 ELSE + 8 END * + + 96 + - 46, COUNT ( * ) AS col1
----
647
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6510
SELECT ALL + 5 DIV 35 * 15
----
0

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL + 5 / 35 * 15
----
0

query I rowsort
SELECT + 22 * 52 + - 41 AS col2
----
1103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6512
SELECT CASE + 81 WHEN 55 THEN + + 54 * 87 + - + 43 ELSE - ( 88 ) + - + 5 END * + NULLIF ( 77, - 9 ) * + + COUNT( * ) + + + COUNT( ALL + 51 ) + + 20 DIV - CAST( + + COUNT( * ) AS SIGNED ) + - + 96 + 48 * 75 + + - COUNT( ALL - 12 ) AS col0
----
-3677

skipif mysql # not compatible
query I rowsort label-6512
SELECT CASE + 81 WHEN 55 THEN + + 54 * 87 + - + 43 ELSE - ( 88 ) + - + 5 END * + NULLIF ( 77, - 9 ) * + + COUNT ( * ) + + + COUNT ( ALL + 51 ) + + 20 / - CAST ( + + COUNT ( * ) AS INTEGER ) + - + 96 + 48 * 75 + + - COUNT ( ALL - 12 ) AS col0
----
-3677

query I rowsort
SELECT 98 * + + 92
----
9016

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT 75 DIV - 54
----
-1

skipif mysql # not compatible
query I rowsort label-6514
SELECT 75 / - 54
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6515
SELECT CASE - 92 WHEN - 48 THEN 29 WHEN + + 64 THEN NULLIF ( CAST( NULL AS SIGNED ), 93 - - 89 ) END * - 18 - - CASE + COUNT( * ) WHEN - + 55 THEN NULL WHEN 5 - 97 THEN - 32 * - - AVG ( ALL - 62 ) + + + 71 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT CASE - 92 WHEN - 48 THEN 29 WHEN + + 64 THEN NULLIF ( CAST ( NULL AS INTEGER ), 93 - - 89 ) END * - 18 - - CASE + COUNT ( * ) WHEN - + 55 THEN NULL WHEN 5 - 97 THEN - 32 * - - AVG ( ALL - 62 ) + + + 71 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 19 * - + 78 col1
----
-1482

query I rowsort
SELECT ALL - CASE - 19 WHEN 13 THEN - - 87 WHEN 25 * + 27 * 88 THEN - 34 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6518
SELECT CAST( NULL AS SIGNED ) * - - 66 AS col1, 70 * + 63 + - - 31 * + 41 - COUNT( * ) * CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6518
SELECT CAST ( NULL AS INTEGER ) * - - 66 AS col1, 70 * + 63 + - - 31 * + 41 - COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL
NULL

query I rowsort
SELECT 29 - 51 AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6520
SELECT ( CASE 0 WHEN + 72 - - MIN( DISTINCT + + NULLIF ( 10, - - 27 ) ) THEN + 94 WHEN + 17 * + COUNT( * ) DIV - 68 THEN NULL ELSE 29 * - 36 END ) * 3 - - ( - 25 ), ( 33 ) + 26 + + MAX( DISTINCT + - 29 ) + + 54 * + CASE MIN( + - 60 ) WHEN - 56 * + COUNT( * ) THEN - 43 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6520
SELECT ( CASE 0 WHEN + 72 - - MIN ( DISTINCT + + NULLIF ( 10, - - 27 ) ) THEN + 94 WHEN + 17 * + COUNT ( * ) / - 68 THEN NULL ELSE 29 * - 36 END ) * 3 - - ( - 25 ), ( 33 ) + 26 + + MAX ( DISTINCT + - 29 ) + + 54 * + CASE MIN ( + - 60 ) WHEN - 56 * + COUNT ( * ) THEN - 43 END AS col2
----
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - 51 + + 48 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6523
SELECT ALL - ( - - 86 ) + + COUNT( * ) AS col0, + 53 + - - 11 * + 45 - + 62
----
-85
486

skipif mysql # not compatible
query II rowsort label-6523
SELECT ALL - ( - - 86 ) + + COUNT ( * ) AS col0, + 53 + - - 11 * + 45 - + 62
----
-85
486

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

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

query I rowsort
SELECT 29 + - - 38 * - 25 AS col0
----
-921

query I rowsort
SELECT DISTINCT 14 * 49
----
686

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - SUM( ALL + - 34 ) * - - COUNT( * ) + - - 53
----
87

skipif mysql # not compatible
query I rowsort label-6529
SELECT - SUM ( ALL + - 34 ) * - - COUNT ( * ) + - - 53
----
87

query I rowsort
SELECT 2 + - + 12
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT DISTINCT - NULLIF ( 98, - 2 ) DIV - + 2 col2
----
49

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT - NULLIF ( 98, - 2 ) / - + 2 col2
----
49

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

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL + COUNT ( DISTINCT 17 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT + 74 * COUNT( * ) + - - 91 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-6534
SELECT + 74 * COUNT ( * ) + - - 91 AS col2
----
165

query I rowsort
SELECT DISTINCT - 0 * ( + 37 ) - + 46 * - - 82
----
-3772

query II rowsort
SELECT + 6 * + + 85 AS col1, + 60 * - 27
----
510
-1620

query I rowsort
SELECT 91 + + + 37
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6538
SELECT 49 / - ( 9 ) * - 22 * - + 60 + - + 36 - + - ( + 92 ) - - 9 * - + CASE 8 WHEN COUNT( * ) THEN NULL WHEN + CAST( + 93 AS SIGNED ) * + 49 THEN - - 85 END * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6538
SELECT 49 / - ( 9 ) * - 22 * - + 60 + - + 36 - + - ( + 92 ) - - 9 * - + CASE 8 WHEN COUNT ( * ) THEN NULL WHEN + CAST ( + 93 AS INTEGER ) * + 49 THEN - - 85 END * - + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 81 + - 99 - + + 77 * 53 col0
----
-4099

query II rowsort
SELECT 78 * + - 60 * 93, - 63 AS col1
----
-435240
-63

query I rowsort
SELECT 14 * + + 77 col0
----
1078

query II rowsort
SELECT ALL + 59, - 26 AS col1
----
59
-26

query I rowsort
SELECT - ( - 14 ) + ( + + 99 ) AS col1
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT + 49 DIV - - 19 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6545
SELECT + 49 / - - 19 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT - 90 * + - 36 + COUNT( DISTINCT + ( ( 21 ) ) ) AS col0
----
3241

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 90 * + - 36 + COUNT ( DISTINCT + ( ( 21 ) ) ) AS col0
----
3241

query I rowsort
SELECT ALL 3 * + + 97 + + + 89
----
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6548
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( - 76 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( - 76 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL 7 * - - COUNT( * ) col1
----
7

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL 7 * - - COUNT ( * ) col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6550
SELECT ALL ( - 78 ) + - 17 + - 39 AS col0, CASE - + 97 WHEN 66 + - 64 THEN + 67 WHEN - COUNT( * ) - + MIN( DISTINCT - 80 ) THEN NULL END * - 6
----
-134
NULL

skipif mysql # not compatible
query II rowsort label-6550
SELECT ALL ( - 78 ) + - 17 + - 39 AS col0, CASE - + 97 WHEN 66 + - 64 THEN + 67 WHEN - COUNT ( * ) - + MIN ( DISTINCT - 80 ) THEN NULL END * - 6
----
-134
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT DISTINCT CAST( NULL AS SIGNED ) + 96 + 73 * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 96 + 73 * - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6553
SELECT ALL SUM( DISTINCT 94 ) + - - 22 AS col0, + 7 AS col2
----
116
7

skipif mysql # not compatible
query II rowsort label-6553
SELECT ALL SUM ( DISTINCT 94 ) + - - 22 AS col0, + 7 AS col2
----
116
7

query I rowsort
SELECT + 65 * 30 AS col1
----
1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT DISTINCT CASE + - 28 WHEN - 93 * + COALESCE ( - + 73, + ( + 23 ) ) THEN + CAST( 70 AS SIGNED ) * 78 + + 18 WHEN 37 - - 15 THEN COUNT( * ) END + - + 57 * - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT CASE + - 28 WHEN - 93 * + COALESCE ( - + 73, + ( + 23 ) ) THEN + CAST ( 70 AS INTEGER ) * 78 + + 18 WHEN 37 - - 15 THEN COUNT ( * ) END + - + 57 * - + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT + 59 + + + COUNT( * ) col0
----
60

skipif mysql # not compatible
query I rowsort label-6556
SELECT + 59 + + + COUNT ( * ) col0
----
60

query I rowsort
SELECT DISTINCT 65 + - - 83 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT + - 87 * - - COALESCE ( - 39, + - NULLIF ( 60, + 72 ), 12, - 28 * - + COUNT( * ) * - + 3 ) AS col0
----
3393

skipif mysql # not compatible
query I rowsort label-6558
SELECT + - 87 * - - COALESCE ( - 39, + - NULLIF ( 60, + 72 ), 12, - 28 * - + COUNT ( * ) * - + 3 ) AS col0
----
3393

query I rowsort
SELECT ALL COALESCE ( 68, + 75 ) + - 25
----
43

query I rowsort
SELECT DISTINCT - NULLIF ( - 56, + 40 )
----
56

query I rowsort
SELECT + 4 - - 79 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT ALL + COALESCE ( + - 30, - ( + 29 ) ) - + COUNT( * ) * COUNT( * ) * + 61 * - 94 AS col2
----
5704

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + COALESCE ( + - 30, - ( + 29 ) ) - + COUNT ( * ) * COUNT ( * ) * + 61 * - 94 AS col2
----
5704

query I rowsort
SELECT ALL - NULLIF ( + 18, - + 16 - + 60 ) col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT + COUNT( * ) + - + 37
----
-36

skipif mysql # not compatible
query I rowsort label-6564
SELECT + COUNT ( * ) + - + 37
----
-36

query I rowsort
SELECT + + 60 - - + ( - 82 ) + 30
----
8

query I rowsort
SELECT ALL 33 * + 83
----
2739

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT + + 83 * 73 DIV + - 99
----
-61

skipif mysql # not compatible
query I rowsort label-6568
SELECT + + 83 * 73 / + - 99
----
-61

query I rowsort
SELECT - 3 * 30
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT 3 DIV 67 + 85
----
85

skipif mysql # not compatible
query I rowsort label-6570
SELECT 3 / 67 + 85
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6571
SELECT - + COUNT( * ) DIV - MIN( 35 ) * - + 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6571
SELECT - + COUNT ( * ) / - MIN ( 35 ) * - + 17 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6572
SELECT - + 28 * + - 62 * + + COALESCE ( - 4, MIN( ALL + - 45 ) DIV + + 66 + - + 32 )
----
-6944

skipif mysql # not compatible
query I rowsort label-6572
SELECT - + 28 * + - 62 * + + COALESCE ( - 4, MIN ( ALL + - 45 ) / + + 66 + - + 32 )
----
-6944

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

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

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 46, - 44 / 49 * 37 ) * - 68 + - 60
----
-3188

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL COUNT( * ) * - ( + 71 ) * + + COUNT( DISTINCT - - 8 ) + ( + - 75 ) + + 61 + 58 + - SUM( + 95 ) + - 70 - - MAX( ALL NULLIF ( + 70, + - 1 ) ) * + + 20 * - + 10 + - ( + 83 ) + - - 62 AS col0
----
-14213

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL COUNT ( * ) * - ( + 71 ) * + + COUNT ( DISTINCT - - 8 ) + ( + - 75 ) + + 61 + 58 + - SUM ( + 95 ) + - 70 - - MAX ( ALL NULLIF ( + 70, + - 1 ) ) * + + 20 * - + 10 + - ( + 83 ) + - - 62 AS col0
----
-14213

query I rowsort
SELECT - 8 * - - 4
----
-32

query II rowsort
SELECT ( + + 24 ) col0, 64
----
24
64

query I rowsort
SELECT DISTINCT - 23 * + + 24
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + COUNT( * ) * SUM( ALL - 5 ) + 11 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6581
SELECT + COUNT ( * ) * SUM ( ALL - 5 ) + 11 AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT ALL - NULLIF ( + 91, - 34 ) * + - 32 + - 51 + 50 DIV - - 22
----
2863

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL - NULLIF ( + 91, - 34 ) * + - 32 + - 51 + 50 / - - 22
----
2863

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT NULLIF ( - 53, + COALESCE ( - COUNT( - + 61 ), 7 * + 71 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6583
SELECT NULLIF ( - 53, + COALESCE ( - COUNT ( - + 61 ), 7 * + 71 ) ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT COALESCE ( - 45, + - 21, + ( - + COUNT( * ) ) * - NULLIF ( + - 15, - + 35 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6584
SELECT COALESCE ( - 45, + - 21, + ( - + COUNT ( * ) ) * - NULLIF ( + - 15, - + 35 ) ) AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6585
SELECT CASE + + 36 WHEN 8 * - 3 * + AVG ( ALL 81 ) - - ( 58 ) THEN - 86 * 28 + 83 + 20 ELSE - 57 * + CAST( 4 AS SIGNED ) END AS col2, - 88 AS col1
----
-228
-88

skipif mysql # not compatible
query II rowsort label-6585
SELECT CASE + + 36 WHEN 8 * - 3 * + AVG ( ALL 81 ) - - ( 58 ) THEN - 86 * 28 + 83 + 20 ELSE - 57 * + CAST ( 4 AS INTEGER ) END AS col2, - 88 AS col1
----
-228
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6586
SELECT - 65 - - 94 DIV - 90
----
-66

skipif mysql # not compatible
query I rowsort label-6586
SELECT - 65 - - 94 / - 90
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT 33 * - MAX( 22 ) - + 10 + + 81
----
-655

skipif mysql # not compatible
query I rowsort label-6588
SELECT 33 * - MAX ( 22 ) - + 10 + + 81
----
-655

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT + SUM( DISTINCT - - 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT + SUM ( DISTINCT - - 12 ) AS col0
----
12

query I rowsort
SELECT ALL 41 * - 41 + - 44
----
-1725

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

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

query I rowsort
SELECT DISTINCT 32 * - 3
----
-96

query I rowsort
SELECT - - 56 + 97
----
153

query I rowsort
SELECT + - 50 - - 80
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL COUNT( * ) * 10 - + + 51
----
-41

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL COUNT ( * ) * 10 - + + 51
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT + - 64 * ( - - NULLIF ( NULLIF ( + 82, + + 27 * + - COUNT( * ) * - 44 ), - COUNT( DISTINCT 98 ) * 66 + COUNT( * ) + - + CAST( - ( + 0 ) AS SIGNED ) / MIN( ALL + 74 ) + 26 - 83 + + - ( - + MAX( DISTINCT - NULLIF ( - 8, + - 81 ) ) ) * - COALESCE ( COUNT( * ), - 60, 12 + - COUNT( * ) ) - + + 54 * + 15 ) )
----
-5248

skipif mysql # not compatible
query I rowsort label-6596
SELECT + - 64 * ( - - NULLIF ( NULLIF ( + 82, + + 27 * + - COUNT ( * ) * - 44 ), - COUNT ( DISTINCT 98 ) * 66 + COUNT ( * ) + - + CAST ( - ( + 0 ) AS INTEGER ) / MIN ( ALL + 74 ) + 26 - 83 + + - ( - + MAX ( DISTINCT - NULLIF ( - 8, + - 81 ) ) ) * - COALESCE ( COUNT ( * ), - 60, 12 + - COUNT ( * ) ) - + + 54 * + 15 ) )
----
-5248

query I rowsort
SELECT + 38 + - 17
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-6598
SELECT + - 12 + + 13 + 32 + - 4 AS col0, 33 DIV + 14 AS col0
----
29
2

skipif mysql # not compatible
query II rowsort label-6598
SELECT + - 12 + + 13 + 32 + - 4 AS col0, 33 / + 14 AS col0
----
29
2

query I rowsort
SELECT + + 38 * 90 + - 11 AS col0
----
3409

query II rowsort
SELECT + + 32 * 98, + 76 * 13 * + 5 col1
----
3136
4940

query I rowsort
SELECT 51 + - 74
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6602
SELECT ALL 24 DIV - + SUM( ALL + - 14 ) + - - 66 * + 41 + + 23 AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL 24 / - + SUM ( ALL + - 14 ) + - - 66 * + 41 + + 23 AS col0
----
2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6603
SELECT DISTINCT + 24 + + CASE + - 91 WHEN 41 + + 11 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - COUNT( * ) * - - ( + 82 ) + + 4 DIV + 87 + - 18 DIV - - 38 + + 14 END + 45 * - 75 * - 83 - - 41
----
280122

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT + 24 + + CASE + - 91 WHEN 41 + + 11 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - COUNT ( * ) * - - ( + 82 ) + + 4 / + 87 + - 18 / - - 38 + + 14 END + 45 * - 75 * - 83 - - 41
----
280122

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT 0 * 73 DIV + - 3 + + 45
----
45

skipif mysql # not compatible
query I rowsort label-6604
SELECT 0 * 73 / + - 3 + + 45
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL 96 * NULLIF ( - + COUNT( * ), - - AVG ( 46 ) * - CAST( 27 AS SIGNED ) * - 92 + - 32 )
----
-96

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL 96 * NULLIF ( - + COUNT ( * ), - - AVG ( 46 ) * - CAST ( 27 AS INTEGER ) * - 92 + - 32 )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6606
SELECT 13 DIV 80 DIV - - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6606
SELECT 13 / 80 / - - 71 AS col1
----
0

query I rowsort
SELECT ALL + 64 + - 85 AS col1
----
-21

query I rowsort
SELECT ALL 90 + + 78 AS col0
----
168

query II rowsort
SELECT 29 + + + ( - 94 ), + 44 - 5 * 9 col1
----
-65
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6610
SELECT 16 AS col0, - COUNT( * ) * + 99 + + 67 * - NULLIF ( - 75, - - 31 * + 25 + ( 26 ) ) + + 20 + - + COUNT( * )
----
16
4945

skipif mysql # not compatible
query II rowsort label-6610
SELECT 16 AS col0, - COUNT ( * ) * + 99 + + 67 * - NULLIF ( - 75, - - 31 * + 25 + ( 26 ) ) + + 20 + - + COUNT ( * )
----
16
4945

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6611
SELECT ( + 34 ) DIV - 36 AS col2, + AVG ( ALL CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6611
SELECT ( + 34 ) / - 36 AS col2, + AVG ( ALL CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT 39 + - + COALESCE ( - + 7, - 62 * 72 * - - 51 + 62 + - CAST( NULL AS SIGNED ), SUM( + 31 ) * + 38 * - 36 - + CAST( 71 AS SIGNED ) * - 22 * + 65 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6612
SELECT 39 + - + COALESCE ( - + 7, - 62 * 72 * - - 51 + 62 + - CAST ( NULL AS INTEGER ), SUM ( + 31 ) * + 38 * - 36 - + CAST ( 71 AS INTEGER ) * - 22 * + 65 ) AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT ALL + ( - COUNT( * ) ) + + 22 DIV + 31 AS col0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL - NULLIF ( 73, 66 * - - 32 + 61 ) + 28 - - COUNT( * ) * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL - NULLIF ( 73, 66 * - - 32 + 61 ) + 28 - - COUNT ( * ) * - COUNT ( * )
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-6615
SELECT 65 DIV - 92 * - - 97 + ( - - 23 ), + 38 AS col0
----
23
38

skipif mysql # not compatible
query II rowsort label-6615
SELECT 65 / - 92 * - - 97 + ( - - 23 ), + 38 AS col0
----
23
38

query I rowsort
SELECT 22 * - 9
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6617
SELECT ALL COALESCE ( + COUNT( * ), 66 ) DIV MIN( + + 45 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL COALESCE ( + COUNT ( * ), 66 ) / MIN ( + + 45 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT 89 + COUNT ( * ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6619
SELECT ALL - ( - - MAX( - 80 ) ) AS col2, COUNT( * ) DIV 63 + + - 47 - - 99 - 40 + + - 10 + - 33 - 72 + - 42 * + 71 AS col1
----
80
-3085

skipif mysql # not compatible
query II rowsort label-6619
SELECT ALL - ( - - MAX ( - 80 ) ) AS col2, COUNT ( * ) / 63 + + - 47 - - 99 - 40 + + - 10 + - 33 - 72 + - 42 * + 71 AS col1
----
80
-3085

query I rowsort
SELECT 38 * - 71 + - + 61 * - 4 - + 15 AS col1
----
-2469

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT DISTINCT - CASE + + 27 WHEN - + 18 THEN NULL ELSE + 77 + + ( - MAX( + + 38 ) ) END
----
-39

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT - CASE + + 27 WHEN - + 18 THEN NULL ELSE + 77 + + ( - MAX ( + + 38 ) ) END
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL + 2 - 80 * - - MAX( + 59 ) AS col1
----
-4718

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL + 2 - 80 * - - MAX ( + 59 ) AS col1
----
-4718

query I rowsort
SELECT 64 + - - 97 col0
----
161

query I rowsort
SELECT 35 * - 25 col2
----
-875

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

query I rowsort
SELECT ALL - + 63 - - 86 + - 58 * + 46 + - 37 AS col0
----
-2682

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT COUNT( * ) + + 12 - - - ( - - 89 ) + + 44
----
-32

skipif mysql # not compatible
query I rowsort label-6628
SELECT COUNT ( * ) + + 12 - - - ( - - 89 ) + + 44
----
-32

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

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

query I rowsort
SELECT 66 - + 68 * 18 * - 23
----
28218

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

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

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

query I rowsort
SELECT + 2 - - 70 AS col1
----
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6636
SELECT - 11 DIV + COALESCE ( + 47, - 9 + + + 65 - - 64 + - 96 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6636
SELECT - 11 / + COALESCE ( + 47, - 9 + + + 65 - - 64 + - 96 ) AS col2
----
0

query II rowsort
SELECT 87 + - 2 * + 75 AS col0, + 23
----
-63
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT DISTINCT 51 * + COUNT( * ) col1
----
51

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT 51 * + COUNT ( * ) col1
----
51

query I rowsort
SELECT DISTINCT - - 66 + 86
----
152

query I rowsort
SELECT DISTINCT - 15 + + 63 + 59 + - + 17 AS col1
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT COUNT( ALL - 64 ) * + + COUNT( * ) + - 14 + 23 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6642
SELECT COUNT ( ALL - 64 ) * + + COUNT ( * ) + - 14 + 23 AS col1
----
10

query I rowsort
SELECT ALL 84 + - - 34 + + 9 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT COALESCE ( + + 93, - 95 - + + 41 + + 61 ) * + 83 - COUNT( * ) AS col0
----
7718

skipif mysql # not compatible
query I rowsort label-6644
SELECT COALESCE ( + + 93, - 95 - + + 41 + + 61 ) * + 83 - COUNT ( * ) AS col0
----
7718

query I rowsort
SELECT ALL 48 - ( + 39 ) AS col1
----
9

query I rowsort
SELECT ALL + 42 * - - 93
----
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT COUNT( - + 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6647
SELECT COUNT ( - + 99 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT ALL + 33 - 78 DIV 11 * + 98
----
-653

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + 33 - 78 / 11 * + 98
----
-653

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

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

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

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

query I rowsort
SELECT 70 * - + 47 + + 58 AS col2
----
-3232

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL - SUM( - ( + 31 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - SUM ( - ( + 31 ) ) AS col0
----
31

query II rowsort
SELECT + 97 col0, 22
----
97
22

query II rowsort
SELECT + 51 AS col0, 82
----
51
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6655
SELECT 47 * - CASE 62 WHEN + CAST( NULL AS SIGNED ) + + COUNT( * ) * - + 66 THEN NULL WHEN - 42 * 50 THEN + + 56 - - 91 + - 28 + + - 17 ELSE NULL END * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT 47 * - CASE 62 WHEN + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - + 66 THEN NULL WHEN - 42 * 50 THEN + + 56 - - 91 + - 28 + + - 17 ELSE NULL END * - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT 83 * - MAX( ALL - - CAST( - ( - - 57 ) AS SIGNED ) ) AS col1
----
4731

skipif mysql # not compatible
query I rowsort label-6656
SELECT 83 * - MAX ( ALL - - CAST ( - ( - - 57 ) AS INTEGER ) ) AS col1
----
4731

query I rowsort
SELECT + 93 - + 57 + + 26 AS col2
----
62

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

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

query II rowsort
SELECT ALL - 12, ( + - 57 ) col1
----
-12
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6660
SELECT + 16 * COUNT( * ) AS col1, - CASE - 73 WHEN + 85 * + - COUNT( * ) + - 80 THEN NULL WHEN 80 / - - MIN( ALL - 26 ) THEN - CAST( NULL AS SIGNED ) END - - 28
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6660
SELECT + 16 * COUNT ( * ) AS col1, - CASE - 73 WHEN + 85 * + - COUNT ( * ) + - 80 THEN NULL WHEN 80 / - - MIN ( ALL - 26 ) THEN - CAST ( NULL AS INTEGER ) END - - 28
----
16
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT 2 + + + ( + + ( + - 13 ) ) + + 17 + + 19 + + 69 * - + COUNT( * ) * - ( + - 79 ) * + - 37 + - CAST( NULL AS SIGNED ) + + 53 * - + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT 2 + + + ( + + ( + - 13 ) ) + + 17 + + 19 + + 69 * - + COUNT ( * ) * - ( + - 79 ) * + - 37 + - CAST ( NULL AS INTEGER ) + + 53 * - + 85
----
NULL

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

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

query I rowsort
SELECT ALL - - CASE 54 WHEN - 38 THEN 24 WHEN + - 39 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6664
SELECT CAST( NULL AS DECIMAL ) + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT CAST ( NULL AS REAL ) + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT - 82 * - + 73 - + COUNT( * ) * - 87 AS col2
----
6073

skipif mysql # not compatible
query I rowsort label-6665
SELECT - 82 * - + 73 - + COUNT ( * ) * - 87 AS col2
----
6073

query I rowsort
SELECT 25 - + - 91 AS col1
----
116

query I rowsort
SELECT - 0 + 82 AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6668
SELECT - + 69 * - 0 * + CAST( NULL AS SIGNED ) + - ( + 38 ) - - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT - + 69 * - 0 * + CAST ( NULL AS INTEGER ) + - ( + 38 ) - - 93 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 29, 34 col0
----
29
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT - + 46 + - 92, + ( - MAX( - 98 ) ) AS col2
----
-138
98

skipif mysql # not compatible
query II rowsort label-6670
SELECT - + 46 + - 92, + ( - MAX ( - 98 ) ) AS col2
----
-138
98

query I rowsort
SELECT ALL - + 43 + + 36 AS col0
----
-7

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

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL + 77 + + COUNT ( * ) / + 19 AS col2
----
77

query I rowsort
SELECT - - 71 + 9 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6674
SELECT - + MIN( DISTINCT ( 75 ) ) / - 60 + CAST( + COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT - + MIN ( DISTINCT ( 75 ) ) / - 60 + CAST ( + COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 8, + 46 AS col1
----
-8
46

query I rowsort
SELECT ALL + 75 + - 33
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT - 98 + + 35 + NULLIF ( 89, - 77 * 80 * COALESCE ( + 31, 46 ) * + 65 / + - 62 * + - NULLIF ( - - 81, 50 - 39 ) * - 25 ) + 18 * 23 * - NULLIF ( 41, - + NULLIF ( - CASE WHEN + 87 BETWEEN + + COALESCE ( + COALESCE ( + 31, - + 44 ), COUNT( * ) + + 51 ) AND + ( 87 ) THEN + 15 + + 49 END, - 60 ) ) AS col1
----
-16948

skipif mysql # not compatible
query I rowsort label-6677
SELECT - 98 + + 35 + NULLIF ( 89, - 77 * 80 * COALESCE ( + 31, 46 ) * + 65 / + - 62 * + - NULLIF ( - - 81, 50 - 39 ) * - 25 ) + 18 * 23 * - NULLIF ( 41, - + NULLIF ( - CASE WHEN + 87 BETWEEN + + COALESCE ( + COALESCE ( + 31, - + 44 ), COUNT ( * ) + + 51 ) AND + ( 87 ) THEN + 15 + + 49 END, - 60 ) ) AS col1
----
-16948

query I rowsort
SELECT - 96 + + + 87 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6679
SELECT + 2 DIV - COUNT( * ) AS col2, 27 AS col1
----
-2
27

skipif mysql # not compatible
query II rowsort label-6679
SELECT + 2 / - COUNT ( * ) AS col2, 27 AS col1
----
-2
27

query I rowsort
SELECT - 49 * 53 col1
----
-2597

query I rowsort
SELECT DISTINCT + 19 - + 89
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT - 42 + - ( + COUNT( * ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6682
SELECT - 42 + - ( + COUNT ( * ) ) AS col1
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT + 19 + + + ( + + 21 ) DIV 26 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6683
SELECT + 19 + + + ( + + 21 ) / 26 AS col0
----
19

query I rowsort
SELECT ALL 17 * 90 * 8 - 22
----
12218

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT + MIN( ALL - 26 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-6685
SELECT + MIN ( ALL - 26 ) col0
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT - 7 + - SUM( ALL + + ( - 41 ) )
----
34

skipif mysql # not compatible
query I rowsort label-6687
SELECT - 7 + - SUM ( ALL + + ( - 41 ) )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6688
SELECT ALL + 60 * 4 DIV - - 77 - - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL + 60 * 4 / - - 77 - - COUNT ( * )
----
4

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6690
SELECT + CASE + 58 WHEN 4 THEN + CASE 78 WHEN + COALESCE ( + 40, 11 * - 2, + 93 * + - 34, - 53 ) THEN NULL ELSE + 96 - + - 33 * + - 12 + + - 45 END ELSE NULL END * CAST( NULL AS DECIMAL ) + 87 * + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT + CASE + 58 WHEN 4 THEN + CASE 78 WHEN + COALESCE ( + 40, 11 * - 2, + 93 * + - 34, - 53 ) THEN NULL ELSE + 96 - + - 33 * + - 12 + + - 45 END ELSE NULL END * CAST ( NULL AS REAL ) + 87 * + 70 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT CASE + - ( - + 77 ) WHEN + 8 THEN + 40 * - 70 - + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT CASE + - ( - + 77 ) WHEN + 8 THEN + 40 * - 70 - + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT COUNT( * ) * + 83 + + CASE - NULLIF ( - - AVG ( + 39 ), - 74 * - 58 ) WHEN - + 0 THEN NULLIF ( 84, - 56 ) + + + 46 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT COUNT ( * ) * + 83 + + CASE - NULLIF ( - - AVG ( + 39 ), - 74 * - 58 ) WHEN - + 0 THEN NULLIF ( 84, - 56 ) + + + 46 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6693
SELECT + 79 DIV + - 71 + + 27 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6693
SELECT + 79 / + - 71 + + 27 AS col2
----
26

query II rowsort
SELECT ALL 23 * - ( 20 ) AS col2, 23 AS col2
----
-460
23

query I rowsort
SELECT + - 77 + - 10 AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT + - 8 * + 16 + + 74 * + 71 / CAST( NULL AS SIGNED ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT + - 8 * + 16 + + 74 * + 71 / CAST ( NULL AS INTEGER ) * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ALL + 44 * - ( COUNT( + 74 ) ) + + 36 col1
----
-8

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL + 44 * - ( COUNT ( + 74 ) ) + + 36 col1
----
-8

query I rowsort
SELECT DISTINCT 67 * 58 + 94 AS col2
----
3980

query I rowsort
SELECT - 54 + 3
----
-51

query I rowsort
SELECT + - ( + COALESCE ( - 7, - 16 + + - 70 ) )
----
7

query I rowsort
SELECT DISTINCT 91 * - 75 * + 43 * 39 * + 43 + - 36 col2
----
-492157611

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL - - 37 * + 22 + - CASE - + MIN( DISTINCT + 30 ) WHEN + 55 THEN NULL ELSE 89 + - - NULLIF ( + NULLIF ( 81, + MAX( + + 32 ) + - + 97 + + + 1 * + + MIN( ALL - + 57 ) ), - - COUNT( * ) ) END + - - 69
----
713

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL - - 37 * + 22 + - CASE - + MIN ( DISTINCT + 30 ) WHEN + 55 THEN NULL ELSE 89 + - - NULLIF ( + NULLIF ( 81, + MAX ( + + 32 ) + - + 97 + + + 1 * + + MIN ( ALL - + 57 ) ), - - COUNT ( * ) ) END + - - 69
----
713

query I rowsort
SELECT + + 1 * + 22
----
22

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

skipif mysql # not compatible
query I rowsort label-6704
SELECT - - 26 * COUNT ( * )
----
26

query I rowsort
SELECT ALL + + 28 * - - ( - 18 ) AS col0
----
-504

query I rowsort
SELECT + + ( 61 ) * + 64
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT + 87 - - - MAX( DISTINCT + 74 ) col2
----
13

skipif mysql # not compatible
query I rowsort label-6707
SELECT + 87 - - - MAX ( DISTINCT + 74 ) col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6708
SELECT - - NULLIF ( + 62, - ( + 18 ) / 8 ) + COALESCE ( 52, + 60 / + SUM( ALL - - 15 ) * + - 14 ) / - - 16 + CAST( NULL AS SIGNED ) + - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT - - NULLIF ( + 62, - ( + 18 ) / 8 ) + COALESCE ( 52, + 60 / + SUM ( ALL - - 15 ) * + - 14 ) / - - 16 + CAST ( NULL AS INTEGER ) + - 90 AS col1
----
NULL

query I rowsort
SELECT ALL - - 37 * 34 * + 39 - 66 * - 7 + + - 66
----
49458

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT - MIN( ALL - - 30 ) + - 97
----
-127

skipif mysql # not compatible
query I rowsort label-6710
SELECT - MIN ( ALL - - 30 ) + - 97
----
-127

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

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

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

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

query I rowsort
SELECT - 2 - - 50 + - 30 * 96 * 70 * 62
----
-12499152

query I rowsort
SELECT ALL CASE + 24 WHEN - - 42 THEN - 10 * + 94 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6715
SELECT DISTINCT COALESCE ( COUNT( * ), - - 95 * CAST( - COUNT( * ) AS SIGNED ) + - + CASE - - NULLIF ( + 2, + - 81 * 99 * + + 28 * - 16 ) WHEN + - 29 THEN + COUNT( * ) WHEN CAST( + ( 19 ) AS SIGNED ) * ( + 62 ) * - - 15 + - - 72 + - 76 THEN - COUNT( * ) DIV + - 40 - + 19 ELSE - - 13 + + CAST( NULL AS SIGNED ) END - - CAST( - 51 AS SIGNED ) * + 21 DIV 70, - SUM( 76 ) * + SUM( 32 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT COALESCE ( COUNT ( * ), - - 95 * CAST ( - COUNT ( * ) AS INTEGER ) + - + CASE - - NULLIF ( + 2, + - 81 * 99 * + + 28 * - 16 ) WHEN + - 29 THEN + COUNT ( * ) WHEN CAST ( + ( 19 ) AS INTEGER ) * ( + 62 ) * - - 15 + - - 72 + - 76 THEN - COUNT ( * ) / + - 40 - + 19 ELSE - - 13 + + CAST ( NULL AS INTEGER ) END - - CAST ( - 51 AS INTEGER ) * + 21 / 70, - SUM ( 76 ) * + SUM ( 32 ) ) AS col1
----
1

query I rowsort
SELECT ALL - 15 * - 97 AS col0
----
1455

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

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

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

query I rowsort
SELECT - 66 + + - 20
----
-86

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

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

query II rowsort
SELECT 10 AS col1, 3
----
10
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6723
SELECT ALL CAST( 6 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL CAST ( 6 AS INTEGER ) AS col2
----
6

query I rowsort
SELECT ALL - 16 * - - 49 * + 12 AS col1
----
-9408

query I rowsort
SELECT - 59 * + - 58 col1
----
3422

query I rowsort
SELECT ALL + 43 * - - 82 * + + 53
----
186878

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

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

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

query I rowsort
SELECT ALL - 53 * - - 77 * + 66
----
-269346

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT - SUM( ALL - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6730
SELECT - SUM ( ALL - 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6731
SELECT + 79 AS col2, + MIN( - 47 ) + + + 81
----
79
34

skipif mysql # not compatible
query II rowsort label-6731
SELECT + 79 AS col2, + MIN ( - 47 ) + + + 81
----
79
34

query II rowsort
SELECT + + 31, 6 AS col2
----
31
6

query I rowsort
SELECT + 55 + - + ( + 92 ) * + + 11 * - 40
----
40535

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT 64 + + SUM( + + 6 ) * + + 80
----
544

skipif mysql # not compatible
query I rowsort label-6734
SELECT 64 + + SUM ( + + 6 ) * + + 80
----
544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6735
SELECT + - 32 * CASE + SUM( - 49 ) WHEN - + 44 THEN 59 END - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT + - 32 * CASE + SUM ( - 49 ) WHEN - + 44 THEN 59 END - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT ALL 58 + + 63 * - - COALESCE ( + 6, + 40 DIV 82 * - + 61 ) AS col2
----
436

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL 58 + + 63 * - - COALESCE ( + 6, + 40 / 82 * - + 61 ) AS col2
----
436

query I rowsort
SELECT + 54 - - 82 AS col0
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-6738
SELECT ALL - 0, + 70 + + + COUNT( * ) col1
----
0
71

skipif mysql # not compatible
query II rowsort label-6738
SELECT ALL - 0, + 70 + + + COUNT ( * ) col1
----
0
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT COUNT( * ) * + - 52 * + 35 AS col2
----
-1820

skipif mysql # not compatible
query I rowsort label-6739
SELECT COUNT ( * ) * + - 52 * + 35 AS col2
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT - 18 * 22 + + - 52 + + 26 + 39 * + COUNT( * ) * - 35
----
-1787

skipif mysql # not compatible
query I rowsort label-6740
SELECT - 18 * 22 + + - 52 + + 26 + 39 * + COUNT ( * ) * - 35
----
-1787

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6741
SELECT ALL NULLIF ( COUNT( * ), - + CAST( NULL AS SIGNED ) ) DIV COUNT( * ) + - + COUNT( CAST( NULL AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL NULLIF ( COUNT ( * ), - + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) + - + COUNT ( CAST ( NULL AS REAL ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT NULLIF ( - 54, + 85 ) + + + 75 + COUNT( * ) - - 49
----
71

skipif mysql # not compatible
query I rowsort label-6742
SELECT NULLIF ( - 54, + 85 ) + + + 75 + COUNT ( * ) - - 49
----
71

query III rowsort
SELECT 32 + 0 - - ( + 67 ) AS col0, - 88 AS col0, 1 AS col1
----
99
-88
1

query I rowsort
SELECT 57 * + - 58
----
-3306

query I rowsort
SELECT 67 + + + 82 + - 22
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT COUNT( * ) * NULLIF ( - 94, - + 89 ) * - 76
----
7144

skipif mysql # not compatible
query I rowsort label-6746
SELECT COUNT ( * ) * NULLIF ( - 94, - + 89 ) * - 76
----
7144

query I rowsort
SELECT 54 + 15 * + 44
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT MAX( - - 29 ) * 1
----
29

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT MAX ( - - 29 ) * 1
----
29

query II rowsort
SELECT 63 + 6, 47 - + 77 * - - 10 * - ( - 57 ) AS col1
----
69
-43843

query I rowsort
SELECT DISTINCT 53 + - 21 * + 82 * 50 * 41
----
-3530047

query I rowsort
SELECT ALL - 12 + - 96 * + 71 * - COALESCE ( 76, + + 41 )
----
518004

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT DISTINCT + - 75 + - + NULLIF ( + COUNT( + + 58 ), - 86 )
----
-76

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT + - 75 + - + NULLIF ( + COUNT ( + + 58 ), - 86 )
----
-76

query I rowsort
SELECT 87 * - 52 AS col0
----
-4524

query I rowsort
SELECT 30 + ( - + 80 ) AS col1
----
-50

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

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

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

query I rowsort
SELECT ALL + + 33 * 53
----
1749

onlyif mysql # aggregate syntax: 
query II rowsort label-6758
SELECT - CASE COUNT( * ) WHEN - 95 + COUNT( * ) THEN NULL WHEN - 91 * + 95 THEN NULL WHEN - COALESCE ( 23, + - ( + 5 ) * + ( - + 76 ) ) THEN 6 END + - + 21 + 63 + - 95 * - 22 * 71 + - ( + 39 ) / + + COUNT( * ) * COUNT( * ) AS col2, - 4 AS col2
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-6758
SELECT - CASE COUNT ( * ) WHEN - 95 + COUNT ( * ) THEN NULL WHEN - 91 * + 95 THEN NULL WHEN - COALESCE ( 23, + - ( + 5 ) * + ( - + 76 ) ) THEN 6 END + - + 21 + 63 + - 95 * - 22 * 71 + - ( + 39 ) / + + COUNT ( * ) * COUNT ( * ) AS col2, - 4 AS col2
----
NULL
-4

query I rowsort
SELECT DISTINCT - 37 * 54 * 89
----
-177822

onlyif mysql # DIV for integer division: 
query I rowsort label-6760
SELECT 93 * + + 34 + + + 39 DIV 40 col1
----
3162

skipif mysql # not compatible
query I rowsort label-6760
SELECT 93 * + + 34 + + + 39 / 40 col1
----
3162

query I rowsort
SELECT + 39 + - + 92 AS col2
----
-53

query I rowsort
SELECT - 52 + - 58 * + 23 * + + 37 AS col0
----
-49410

query I rowsort
SELECT ALL - - COALESCE ( - + 4, - - 91 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT DISTINCT - COUNT( * ) * + 97 + - 54
----
-151

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT - COUNT ( * ) * + 97 + - 54
----
-151

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

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

query I rowsort
SELECT ALL 14 * + 61 AS col1
----
854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6767
SELECT COUNT( * ) * + 23 DIV + NULLIF ( 86, - + 76 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6767
SELECT COUNT ( * ) * + 23 / + NULLIF ( 86, - + 76 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6768
SELECT ALL + 42 * + CAST( + 96 AS SIGNED ) col0
----
4032

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL + 42 * + CAST ( + 96 AS INTEGER ) col0
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6769
SELECT CAST( + - 52 AS SIGNED ) * 53 AS col0, COUNT( DISTINCT - 70 ) - + MIN( + + CAST( NULL AS SIGNED ) ) * - 82 AS col2, 96
----
-2756
NULL
96

skipif mysql # not compatible
query III rowsort label-6769
SELECT CAST ( + - 52 AS INTEGER ) * 53 AS col0, COUNT ( DISTINCT - 70 ) - + MIN ( + + CAST ( NULL AS INTEGER ) ) * - 82 AS col2, 96
----
-2756
NULL
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6770
SELECT DISTINCT 65 DIV + - 74
----
0

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT 65 / + - 74
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT DISTINCT CAST( 19 AS SIGNED ) + - 50 + + - 8 + + + COUNT( * ) * 9 * + + 54
----
447

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT CAST ( 19 AS INTEGER ) + - 50 + + - 8 + + + COUNT ( * ) * 9 * + + 54
----
447

query I rowsort
SELECT ALL + 53 * - 55
----
-2915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6773
SELECT CAST( + - 9 AS SIGNED ) / 32 * ( + CAST( NULL AS SIGNED ) ) / + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT CAST ( + - 9 AS INTEGER ) / 32 * ( + CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT DISTINCT 70 + - + 64 AS col0
----
6

query I rowsort
SELECT - COALESCE ( - + 91, - 41 )
----
91

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

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

query III rowsort
SELECT - 3 col0, 96 + + 43 col2, - - ( + CASE - - 83 WHEN + 47 * - 24 THEN NULL WHEN 75 THEN 46 ELSE NULL END ) + - 87 AS col1
----
-3
139
NULL

query I rowsort
SELECT - 7 * 94
----
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + - 38 - + - 79 * - MIN( - + 12 ) AS col1
----
910

skipif mysql # not compatible
query I rowsort label-6779
SELECT + - 38 - + - 79 * - MIN ( - + 12 ) AS col1
----
910

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

query II rowsort
SELECT DISTINCT + 66 AS col0, 74 * + - 36 AS col2
----
66
-2664

query I rowsort
SELECT - - 88 * + 96
----
8448

query I rowsort
SELECT ALL 18 * + 17 - - 11 AS col1
----
317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6784
SELECT - COUNT( * ) * 44 * - CAST( NULL AS SIGNED ) * - - CAST( 57 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT - COUNT ( * ) * 44 * - CAST ( NULL AS INTEGER ) * - - CAST ( 57 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 53 + + + ( - 36 ) - 89 AS col0
----
-72

query I rowsort
SELECT ALL + + 30 * + 20 AS col2
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT - - 61 DIV 5 * ( 7 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6787
SELECT - - 61 / 5 * ( 7 ) AS col0
----
84

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6789
SELECT ALL - + 17 * - COUNT( * ) + COALESCE ( + 42, 84 DIV 91 + - 87 * - 99 )
----
59

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - + 17 * - COUNT ( * ) + COALESCE ( + 42, 84 / 91 + - 87 * - 99 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6790
SELECT - 12 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-6790
SELECT - 12 / - 54
----
0

query I rowsort
SELECT - 79 + 15 * - 22 * - 31 * + 12
----
122681

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT ALL + ( COALESCE ( - + NULLIF ( COUNT( * ), - COUNT( * ) ), - 89 ) ) * - 49 AS col0, 24 * + 44 + - 60 + - 14 - - 16 * 98 + - + MAX( - ( + ( + 30 ) ) ) * 75 AS col1
----
49
4800

skipif mysql # not compatible
query II rowsort label-6792
SELECT ALL + ( COALESCE ( - + NULLIF ( COUNT ( * ), - COUNT ( * ) ), - 89 ) ) * - 49 AS col0, 24 * + 44 + - 60 + - 14 - - 16 * 98 + - + MAX ( - ( + ( + 30 ) ) ) * 75 AS col1
----
49
4800

query I rowsort
SELECT - 96 * - 11 col2
----
1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6794
SELECT 56 * 12 * + 73 + + - 40 * + 31 * - - MIN( DISTINCT CAST( + - 23 AS SIGNED ) )
----
77576

skipif mysql # not compatible
query I rowsort label-6794
SELECT 56 * 12 * + 73 + + - 40 * + 31 * - - MIN ( DISTINCT CAST ( + - 23 AS INTEGER ) )
----
77576

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

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

query I rowsort
SELECT ALL COALESCE ( - 62, 19 )
----
-62

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

query I rowsort
SELECT + COALESCE ( - 52, + - 82 ) + 65 AS col2
----
13

query I rowsort
SELECT - 60 * - + 69 * + 77 AS col0
----
318780

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

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

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

query I rowsort
SELECT DISTINCT + 30 + + 96
----
126

query II rowsort
SELECT - COALESCE ( + 72, - 60, 80 ) + - ( 97 ) col1, - 10 AS col1
----
-169
-10

query I rowsort
SELECT - NULLIF ( - 59, - 38 + + 60 + + ( + NULLIF ( - NULLIF ( + + 46, + + 39 ), 93 ) ) ) * 6 * 18 AS col0
----
6372

onlyif mysql # aggregate syntax: 
query II rowsort label-6805
SELECT - COUNT( * ) AS col0, + 46 + - - 31 + 30 + + 73 * + + 87 * 68
----
-1
431975

skipif mysql # not compatible
query II rowsort label-6805
SELECT - COUNT ( * ) AS col0, + 46 + - - 31 + 30 + + 73 * + + 87 * 68
----
-1
431975

query I rowsort
SELECT ALL 18 + - 27 AS col2
----
-9

query II rowsort
SELECT 28 AS col1, + 91 + + 77 AS col2
----
28
168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT - COUNT( - - CASE 46 WHEN + 20 + + 40 THEN 12 ELSE + 20 END ) + + 86 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6809
SELECT - COUNT ( - - CASE 46 WHEN + 20 + + 40 THEN 12 ELSE + 20 END ) + + 86 AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT 77, 32 * ( CASE + COUNT( * ) WHEN COUNT( * ) THEN COUNT( * ) ELSE + COUNT( * ) END ) * ( - ( - 52 ) ) AS col2
----
77
1664

skipif mysql # not compatible
query II rowsort label-6810
SELECT 77, 32 * ( CASE + COUNT ( * ) WHEN COUNT ( * ) THEN COUNT ( * ) ELSE + COUNT ( * ) END ) * ( - ( - 52 ) ) AS col2
----
77
1664

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6812
SELECT ALL 58 + + + COUNT( CAST( NULL AS SIGNED ) ) * - 71
----
58

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL 58 + + + COUNT ( CAST ( NULL AS INTEGER ) ) * - 71
----
58

query I rowsort
SELECT DISTINCT - 61 * + 55
----
-3355

query II rowsort
SELECT ALL 31 AS col2, 35 AS col0
----
31
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6815
SELECT ALL + COALESCE ( + 90, - 35, + COALESCE ( + CASE 3 WHEN 26 * - COUNT( * ) + 76 * - + 74 THEN NULL WHEN - - 9 THEN - 70 ELSE NULL END, - 63 ) ) DIV + + 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + COALESCE ( + 90, - 35, + COALESCE ( + CASE 3 WHEN 26 * - COUNT ( * ) + 76 * - + 74 THEN NULL WHEN - - 9 THEN - 70 ELSE NULL END, - 63 ) ) / + + 70 AS col1
----
1

query I rowsort
SELECT + + 42 + + 84 * - 72
----
-6006

query I rowsort
SELECT + ( + 50 ) * + + 81 AS col1
----
4050

query I rowsort
SELECT + 85 * + - 48 AS col1
----
-4080

query II rowsort
SELECT + 26 AS col2, - 92 * 24 AS col1
----
26
-2208

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT 51 DIV + - 5 + - 28
----
-38

skipif mysql # not compatible
query I rowsort label-6820
SELECT 51 / + - 5 + - 28
----
-38

query I rowsort
SELECT + 98 * - 91
----
-8918

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6822
SELECT 1 * + ( + + 26 ) + 15 + + + ( COALESCE ( 61, - 0 * + + 88 - - 26 ) ) + 22 + + ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT 1 * + ( + + 26 ) + 15 + + + ( COALESCE ( 61, - 0 * + + 88 - - 26 ) ) + 22 + + ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6823
SELECT DISTINCT + 70, - COALESCE ( + 38, + CASE - COUNT( * ) WHEN COUNT( * ) THEN - 64 WHEN - 13 THEN NULL END * + CASE + + 40 WHEN + + 85 / + ( + - 52 ) THEN + 18 * - - CASE + CASE + 33 WHEN + + 44 THEN + CASE + MIN( ALL + 69 ) WHEN 85 + - CAST( NULL AS DECIMAL ) + 41 / + - CAST( - - ( - 78 ) AS SIGNED ) THEN NULL WHEN + + 65 * 31 * + - CAST( 48 AS SIGNED ) THEN + COUNT( * ) * - + 44 WHEN + - 98 THEN - 36 - ( - 18 ) WHEN - CASE - - 57 WHEN - MIN( 94 ) * - ( + + 78 ) + - - 55 THEN 84 END THEN NULL END END WHEN 96 - CAST( - 8 AS SIGNED ) THEN NULL WHEN 11 * COUNT( * ) THEN CAST( - 72 AS SIGNED ) END * CAST( NULL AS SIGNED ) - + 83 ELSE 25 END - 35 ) col2
----
70
-38

skipif mysql # not compatible
query II rowsort label-6823
SELECT DISTINCT + 70, - COALESCE ( + 38, + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - 64 WHEN - 13 THEN NULL END * + CASE + + 40 WHEN + + 85 / + ( + - 52 ) THEN + 18 * - - CASE + CASE + 33 WHEN + + 44 THEN + CASE + MIN ( ALL + 69 ) WHEN 85 + - CAST ( NULL AS REAL ) + 41 / + - CAST ( - - ( - 78 ) AS INTEGER ) THEN NULL WHEN + + 65 * 31 * + - CAST ( 48 AS INTEGER ) THEN + COUNT ( * ) * - + 44 WHEN + - 98 THEN - 36 - ( - 18 ) WHEN - CASE - - 57 WHEN - MIN ( 94 ) * - ( + + 78 ) + - - 55 THEN 84 END THEN NULL END END WHEN 96 - CAST ( - 8 AS INTEGER ) THEN NULL WHEN 11 * COUNT ( * ) THEN CAST ( - 72 AS INTEGER ) END * CAST ( NULL AS INTEGER ) - + 83 ELSE 25 END - 35 ) col2
----
70
-38

query I rowsort
SELECT DISTINCT 52 * + + 51 AS col1
----
2652

query II rowsort
SELECT 29 AS col0, + 17 * + + 61 AS col1
----
29
1037

query I rowsort
SELECT - 49 * 40 AS col0
----
-1960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT CASE + 4 WHEN - 30 THEN NULL WHEN + 85 * - 81 - + + COUNT( * ) + + 29 + - COALESCE ( - 19, 13, + 65 ) * - + 37 / - 82 + - 68 + + - 76 * + 14 THEN NULL WHEN - - CAST( + 63 AS SIGNED ) + + - 66 * - COUNT( * ) + + + 79 + + 36 + 6 / 69 * + 15 + + 13 THEN NULL WHEN 2 * + 34 + + CASE + 45 WHEN - 56 - 35 THEN - - CASE + 60 WHEN + 93 + + CAST( NULL AS SIGNED ) THEN 62 ELSE CAST( NULL AS SIGNED ) END ELSE + - 15 END + + 47 THEN - COUNT( * ) ELSE 57 * - COUNT( * ) * + 38 END
----
-2166

skipif mysql # not compatible
query I rowsort label-6827
SELECT CASE + 4 WHEN - 30 THEN NULL WHEN + 85 * - 81 - + + COUNT ( * ) + + 29 + - COALESCE ( - 19, 13, + 65 ) * - + 37 / - 82 + - 68 + + - 76 * + 14 THEN NULL WHEN - - CAST ( + 63 AS INTEGER ) + + - 66 * - COUNT ( * ) + + + 79 + + 36 + 6 / 69 * + 15 + + 13 THEN NULL WHEN 2 * + 34 + + CASE + 45 WHEN - 56 - 35 THEN - - CASE + 60 WHEN + 93 + + CAST ( NULL AS INTEGER ) THEN 62 ELSE CAST ( NULL AS INTEGER ) END ELSE + - 15 END + + 47 THEN - COUNT ( * ) ELSE 57 * - COUNT ( * ) * + 38 END
----
-2166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6828
SELECT ALL 66 * - NULLIF ( + + 59, + ( - CASE + 84 WHEN + 73 + COALESCE ( + CAST( - - COUNT( * ) AS SIGNED ), COUNT( * ) ) + + - ( - 30 ) + + - 64 - + 74 * - AVG ( DISTINCT + + 22 ) THEN 15 / + - 6 END ) * + + 31 + COUNT( * ) + + - COUNT( * ) + - COUNT( * ) + + - 63 * + 11 * - 0 / + 91 ) + + 72 col0
----
-3822

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL 66 * - NULLIF ( + + 59, + ( - CASE + 84 WHEN + 73 + COALESCE ( + CAST ( - - COUNT ( * ) AS INTEGER ), COUNT ( * ) ) + + - ( - 30 ) + + - 64 - + 74 * - AVG ( DISTINCT + + 22 ) THEN 15 / + - 6 END ) * + + 31 + COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * ) + + - 63 * + 11 * - 0 / + 91 ) + + 72 col0
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT DISTINCT - ( + 74 ) * + - COUNT( * ) + + 68 + 92 AS col2
----
234

skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT - ( + 74 ) * + - COUNT ( * ) + + 68 + 92 AS col2
----
234

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6830
SELECT DISTINCT + 63 * + COUNT( * ) / - COUNT( * ) + - + 27 + CAST( NULL AS DECIMAL ) * 52 + 60 + - + 52 + 55 + + 42 + 44 / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + 63 * + COUNT ( * ) / - COUNT ( * ) + - + 27 + CAST ( NULL AS REAL ) * 52 + 60 + - + 52 + 55 + + 42 + 44 / 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT 16 * COUNT( * ) + + + 31 - + 48 * + 66 col0
----
-3121

skipif mysql # not compatible
query I rowsort label-6831
SELECT 16 * COUNT ( * ) + + + 31 - + 48 * + 66 col0
----
-3121

query I rowsort
SELECT ALL 3 * - 27 + + 92
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6833
SELECT COALESCE ( - 39, - + 31 - - + ( 30 ) + + 99 * - + COUNT( * ) + + 50 DIV - 74 * - - 7 ) AS col0, COUNT( * )
----
-39
1

skipif mysql # not compatible
query II rowsort label-6833
SELECT COALESCE ( - 39, - + 31 - - + ( 30 ) + + 99 * - + COUNT ( * ) + + 50 / - 74 * - - 7 ) AS col0, COUNT ( * )
----
-39
1

query I rowsort
SELECT DISTINCT 52 * - + 61 + + 79
----
-3093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT 57 + + - 52 * 49 + - 16 * COUNT( * ) * + 49 DIV + + 24 + + + ( - + 28 ) AS col2
----
-2551

skipif mysql # not compatible
query I rowsort label-6835
SELECT 57 + + - 52 * 49 + - 16 * COUNT ( * ) * + 49 / + + 24 + + + ( - + 28 ) AS col2
----
-2551

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT 8 + - - COUNT( * ) + - 43 * + - 91
----
3922

skipif mysql # not compatible
query I rowsort label-6836
SELECT 8 + - - COUNT ( * ) + - 43 * + - 91
----
3922

query I rowsort
SELECT DISTINCT - 81 - + + 43
----
-124

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

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

query I rowsort
SELECT 95 - 68 + + ( 22 ) * + 33
----
753

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT ALL + MAX( DISTINCT - ( 90 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL + MAX ( DISTINCT - ( 90 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT - + NULLIF ( - - COUNT( * ), + CASE + 96 WHEN ( + COUNT( * ) ) THEN - + 50 WHEN - 88 / + + 47 THEN NULL END ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6841
SELECT - + NULLIF ( - - COUNT ( * ), + CASE + 96 WHEN ( + COUNT ( * ) ) THEN - + 50 WHEN - 88 / + + 47 THEN NULL END ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT - 31 DIV - - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT - 31 / - - 65 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT + 49 DIV + - 39
----
-1

skipif mysql # not compatible
query I rowsort label-6843
SELECT + 49 / + - 39
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT DISTINCT - 17 DIV CASE - - 51 WHEN + 37 THEN - 2 ELSE 60 END DIV ( + - SUM( DISTINCT + 69 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - 17 / CASE - - 51 WHEN + 37 THEN - 2 ELSE 60 END / ( + - SUM ( DISTINCT + 69 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT DISTINCT - COALESCE ( CASE COUNT( * ) WHEN + + 81 THEN - 8 + + 2 * + - COUNT( * ) END, + + 41, 80 )
----
-41

skipif mysql # not compatible
query I rowsort label-6845
SELECT DISTINCT - COALESCE ( CASE COUNT ( * ) WHEN + + 81 THEN - 8 + + 2 * + - COUNT ( * ) END, + + 41, 80 )
----
-41

query I rowsort
SELECT + 62 * + NULLIF ( + + 3, - AVG ( + + 41 ) + 47 ) * 87 * - + 85 + + - 68 - - ( + + ( ( 58 ) ) ) + 77
----
-1375403

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT - 75 DIV + 76 + 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6847
SELECT - 75 / + 76 + 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT + - 99 * + + 26 - - COUNT( * ) col0
----
-2573

skipif mysql # not compatible
query I rowsort label-6848
SELECT + - 99 * + + 26 - - COUNT ( * ) col0
----
-2573

query I rowsort
SELECT + COALESCE ( 84, - - 28 ) * + - 82 AS col0
----
-6888

query I rowsort
SELECT ALL 55 + - + 81 * - 73 * 85 AS col1
----
502660

query II rowsort
SELECT 66 * - 5 + - 1 AS col0, + 73
----
-331
73

query I rowsort
SELECT ALL 49 * - + 55
----
-2695

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

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

query I rowsort
SELECT ALL - 66 + + 59
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ( + 47 ) * 90 * MAX( ALL 1 ) + + + 98
----
4328

skipif mysql # not compatible
query I rowsort label-6855
SELECT ( + 47 ) * 90 * MAX ( ALL 1 ) + + + 98
----
4328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6856
SELECT ALL - COUNT( * ) AS col2, - 86 DIV ( COUNT( * ) ) col2
----
-1
-86

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

query I rowsort
SELECT 57 * - 25 AS col2
----
-1425

query I rowsort
SELECT 92 * + ( - 72 )
----
-6624

query I rowsort
SELECT DISTINCT - 49 - - 95
----
46

query II rowsort
SELECT ALL 86, 42 AS col2
----
86
42

query II rowsort
SELECT 89 AS col1, 34 * + - 46 + + - 50
----
89
-1614

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT MAX( ALL 2 ) * 83 + + - COUNT( * ) AS col1
----
165

skipif mysql # not compatible
query I rowsort label-6862
SELECT MAX ( ALL 2 ) * 83 + + - COUNT ( * ) AS col1
----
165

query I rowsort
SELECT ALL - 22 * - 17
----
374

query I rowsort
SELECT DISTINCT - 49 - + 42 + - 16 + + - 59 AS col2
----
-166

query I rowsort
SELECT ALL + - 99 * + 22
----
-2178

query I rowsort
SELECT 79 * - - 52
----
4108

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6868
SELECT + 62 - - 90 - - - 72 + + 88 DIV 80 * - - CAST( + 83 AS SIGNED )
----
163

skipif mysql # not compatible
query I rowsort label-6868
SELECT + 62 - - 90 - - - 72 + + 88 / 80 * - - CAST ( + 83 AS INTEGER )
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT + NULLIF ( - + MAX( DISTINCT + - 45 ), + COUNT( * ) ) + - 63 * + 92 * + COUNT( * ) + + MAX( ALL COALESCE ( + 39, + - 75, - 75 ) ) AS col0
----
-5712

skipif mysql # not compatible
query I rowsort label-6869
SELECT + NULLIF ( - + MAX ( DISTINCT + - 45 ), + COUNT ( * ) ) + - 63 * + 92 * + COUNT ( * ) + + MAX ( ALL COALESCE ( + 39, + - 75, - 75 ) ) AS col0
----
-5712

query II rowsort
SELECT ALL 28 AS col1, 47
----
28
47

query I rowsort
SELECT + 20 * - 72 AS col1
----
-1440

query II rowsort
SELECT - 50, + 64 + 67 + + 9 * - + 80 * 3 AS col1
----
-50
-2029

query II rowsort
SELECT ALL 12, + 59 * + - 69 col0
----
12
-4071

query I rowsort
SELECT 79 + + 17 AS col2
----
96

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

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL NULLIF ( COUNT ( * ), - - 81 )
----
1

query I rowsort
SELECT - 56 + 98 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT ALL + 88 * - 76 * - - COUNT( * ) * - COUNT( * ) AS col0
----
6688

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + 88 * - 76 * - - COUNT ( * ) * - COUNT ( * ) AS col0
----
6688

query I rowsort
SELECT + 69 + ( 84 ) AS col0
----
153

query I rowsort
SELECT ALL + 19 + 43
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT + 22 * CAST( NULL AS SIGNED ) / - 66 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT + 22 * CAST ( NULL AS INTEGER ) / - 66 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT - COALESCE ( - - 6, CAST( NULL AS SIGNED ) ) + - 62 + 73
----
5

skipif mysql # not compatible
query I rowsort label-6881
SELECT - COALESCE ( - - 6, CAST ( NULL AS INTEGER ) ) + - 62 + 73
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6882
SELECT ALL COUNT( * ) * + + 92 DIV + - 92 + - 0 DIV - + 27 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL COUNT ( * ) * + + 92 / + - 92 + - 0 / - + 27 AS col0
----
-1

query II rowsort
SELECT 95 AS col2, + 18 AS col1
----
95
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT ALL - 8 * + 12 + - 27 + - + 57 DIV + 61 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL - 8 * + 12 + - 27 + - + 57 / + 61 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL 26 * - COUNT( * ) * - - 76 + 73
----
-1903

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL 26 * - COUNT ( * ) * - - 76 + 73
----
-1903

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

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

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

skipif mysql # not compatible
query I rowsort label-6887
SELECT SUM ( ALL 72 )
----
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT - 78 - 80 * 9 + - 11 - - SUM( - - 31 ) AS col0
----
-778

skipif mysql # not compatible
query I rowsort label-6889
SELECT - 78 - 80 * 9 + - 11 - - SUM ( - - 31 ) AS col0
----
-778

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT ALL 48 / CASE + + 97 WHEN - - 29 THEN COUNT( * ) WHEN - AVG ( ALL + - 9 ) * 83 + - 13 THEN NULL WHEN + ( - 28 ) * + - NULLIF ( + - 67, - + 94 ) + 93 + COALESCE ( + 26, - - NULLIF ( - 9, - - 64 ) ) + + + 32 * - COUNT( * ) / - COUNT( * ) THEN - + AVG ( ALL 11 ) + 1 * + 12 END * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL 48 / CASE + + 97 WHEN - - 29 THEN COUNT ( * ) WHEN - AVG ( ALL + - 9 ) * 83 + - 13 THEN NULL WHEN + ( - 28 ) * + - NULLIF ( + - 67, - + 94 ) + 93 + COALESCE ( + 26, - - NULLIF ( - 9, - - 64 ) ) + + + 32 * - COUNT ( * ) / - COUNT ( * ) THEN - + AVG ( ALL 11 ) + 1 * + 12 END * 37 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6891
SELECT - COUNT( DISTINCT + 12 ) / - 55 * + 31 * + 75 * - 3 - - + ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT - COUNT ( DISTINCT + 12 ) / - 55 * + 31 * + 75 * - 3 - - + ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT + ( 15 ) DIV + - 12 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6892
SELECT + ( 15 ) / + - 12 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT + CASE 32 WHEN 0 * + - 0 * + - COALESCE ( + 57, 36, ( + - COUNT( * ) ) ) + + ( 98 ) * ( + 30 ) + - 45 + - + 27 - - AVG ( DISTINCT NULLIF ( + 72, - 37 ) ) * CASE - - 95 WHEN - - COALESCE ( + 62, 46 * - 28 * + 43 * + 75 ) * + ( + - 97 ) / - 14 + + - 14 + + - COUNT( * ) * - 39 * + 1 + + - COUNT( * ) THEN + 25 * 55 * 34 + - - ( - 20 ) ELSE 29 * 12 END / 14 THEN SUM( - 70 ) WHEN + + 0 + - + 31 + - 16 * - 70 - - 29 THEN NULL END * + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT + CASE 32 WHEN 0 * + - 0 * + - COALESCE ( + 57, 36, ( + - COUNT ( * ) ) ) + + ( 98 ) * ( + 30 ) + - 45 + - + 27 - - AVG ( DISTINCT NULLIF ( + 72, - 37 ) ) * CASE - - 95 WHEN - - COALESCE ( + 62, 46 * - 28 * + 43 * + 75 ) * + ( + - 97 ) / - 14 + + - 14 + + - COUNT ( * ) * - 39 * + 1 + + - COUNT ( * ) THEN + 25 * 55 * 34 + - - ( - 20 ) ELSE 29 * 12 END / 14 THEN SUM ( - 70 ) WHEN + + 0 + - + 31 + - 16 * - 70 - - 29 THEN NULL END * + 34 AS col2
----
NULL

query I rowsort
SELECT + 36 * - - 2 AS col2
----
72

query I rowsort
SELECT ALL 42 - - 92 col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL + MAX( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL + MAX ( DISTINCT + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + 69 * - COUNT( * ) * + + 16 + - + 2 AS col1
----
-1106

skipif mysql # not compatible
query I rowsort label-6897
SELECT + 69 * - COUNT ( * ) * + + 16 + - + 2 AS col1
----
-1106

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

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

query I rowsort
SELECT ALL 6 * + - 63 AS col2
----
-378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT + COUNT( * ) + - 94 DIV 94 + + 79 + MAX( ALL + - 2 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6900
SELECT + COUNT ( * ) + - 94 / 94 + + 79 + MAX ( ALL + - 2 ) AS col0
----
77

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

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

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

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL 34 / - 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6903
SELECT - 73 + + + ( + + 63 ) DIV - 53
----
-74

skipif mysql # not compatible
query I rowsort label-6903
SELECT - 73 + + + ( + + 63 ) / - 53
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL - - 83 + COUNT( * ) + - + 64 * - 70 * + 65 AS col0
----
291284

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - - 83 + COUNT ( * ) + - + 64 * - 70 * + 65 AS col0
----
291284

query II rowsort
SELECT - ( - 28 ) AS col2, + 61 AS col1
----
28
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT 5 + - 30 + - COUNT( * ) * 0 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT 5 + - 30 + - COUNT ( * ) * 0 AS col2
----
-25

query I rowsort
SELECT ALL + + 71 + - 97 col2
----
-26

query I rowsort
SELECT ALL - CASE - 80 WHEN - 2 THEN NULL ELSE 81 END
----
-81

query II rowsort
SELECT - + 53 * + 70 AS col1, - 56
----
-3710
-56

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

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL + 48 + - CAST ( - 82 AS INTEGER ) AS col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6911
SELECT + 93 - - 18 + + - ( - 53 ) + + 85 * + CAST( NULL AS SIGNED ) / + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT + 93 - - 18 + + - ( - 53 ) + + 85 * + CAST ( NULL AS INTEGER ) / + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT NULLIF ( COUNT( * ), 2 )
----
1

skipif mysql # not compatible
query I rowsort label-6912
SELECT NULLIF ( COUNT ( * ), 2 )
----
1

query I rowsort
SELECT DISTINCT - - 41 + + 80 * - 74 AS col0
----
-5879

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT - MAX( ALL - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-6914
SELECT - MAX ( ALL - 5 )
----
5

query I rowsort
SELECT + 20 * - - 89
----
1780

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + - 93, + 0, - 54 ) col1
----
-93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6919
SELECT ALL + 12 DIV - 57 + - + 32 + + 10 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL + 12 / - 57 + - + 32 + + 10 AS col0
----
-22

query I rowsort
SELECT DISTINCT 60 * - 15
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL + 66 * - + COUNT( - - 9 )
----
-66

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + 66 * - + COUNT ( - - 9 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6922
SELECT - 3 * - - CAST( NULL AS SIGNED ) + - - ( - - MIN( DISTINCT - 87 ) ) * + 11 / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT - 3 * - - CAST ( NULL AS INTEGER ) + - - ( - - MIN ( DISTINCT - 87 ) ) * + 11 / 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT NULLIF ( + - COUNT( * ), + 78 * + - 20 / + 38 * + 60 + + 50 / + ( + ( + 62 ) ) + - + 12 ) * - 73 * 57 + - 55 + - + 45 + + - 50 - - + COUNT( * )
----
4012

skipif mysql # not compatible
query I rowsort label-6923
SELECT NULLIF ( + - COUNT ( * ), + 78 * + - 20 / + 38 * + 60 + + 50 / + ( + ( + 62 ) ) + - + 12 ) * - 73 * 57 + - 55 + - + 45 + + - 50 - - + COUNT ( * )
----
4012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6924
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), 25 * - COUNT( * ) * + 75 ) + - + ( + 66 ) * - 91 - + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), 25 * - COUNT ( * ) * + 75 ) + - + ( + 66 ) * - 91 - + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT - COALESCE ( + 4, - 81 * - 91 - + COUNT( DISTINCT 40 ) + + 64 ) * 29 col0
----
-116

skipif mysql # not compatible
query I rowsort label-6925
SELECT - COALESCE ( + 4, - 81 * - 91 - + COUNT ( DISTINCT 40 ) + + 64 ) * 29 col0
----
-116

query I rowsort
SELECT + 54 * + 95 AS col2
----
5130

query I rowsort
SELECT + 65 * - 1 + + 65 + 49 * + - ( - 19 ) + 0
----
931

query I rowsort
SELECT + 76 + 99 - 30 * + ( - + 68 ) AS col2
----
2215

query I rowsort
SELECT + NULLIF ( CASE - + 66 WHEN - - 40 THEN + 27 * + AVG ( DISTINCT 85 ) ELSE NULL END, - ( + 28 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT ALL + 4 DIV - 34 * 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + 4 / - 34 * 22 AS col2
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( 9, - + 54 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT DISTINCT ( 0 ) DIV - + 54
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT ( 0 ) / - + 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT MIN( 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6933
SELECT MIN ( 59 ) AS col1
----
59

query I rowsort
SELECT 5 * 49 + 54
----
299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL CAST( MIN( DISTINCT 4 ) AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL CAST ( MIN ( DISTINCT 4 ) AS INTEGER ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT + 28 + 30 * + ( 40 + 78 * COUNT( * ) ) col1
----
3568

skipif mysql # not compatible
query I rowsort label-6936
SELECT + 28 + 30 * + ( 40 + 78 * COUNT ( * ) ) col1
----
3568

query I rowsort
SELECT - ( - 73 ) col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6938
SELECT DISTINCT CASE 10 WHEN - 52 THEN COUNT( * ) END + CAST( NULL AS DECIMAL ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT CASE 10 WHEN - 52 THEN COUNT ( * ) END + CAST ( NULL AS REAL ) * - 67
----
NULL

query I rowsort
SELECT ALL 10 + - COALESCE ( + 88, 76 - 79 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL ( MIN( DISTINCT 61 ) ) + 65 * 17
----
1166

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL ( MIN ( DISTINCT 61 ) ) + 65 * 17
----
1166

query I rowsort
SELECT + 92 + + NULLIF ( 99, 54 )
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT + 68 + + NULLIF ( + COALESCE ( ( 88 ), - ( - 9 ) + 9 ), COALESCE ( - 2, - 86 * COUNT( * ) ) / - COUNT( * ) ) * 55
----
4908

skipif mysql # not compatible
query I rowsort label-6942
SELECT + 68 + + NULLIF ( + COALESCE ( ( 88 ), - ( - 9 ) + 9 ), COALESCE ( - 2, - 86 * COUNT ( * ) ) / - COUNT ( * ) ) * 55
----
4908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6943
SELECT + 74 - CASE 66 WHEN - 85 THEN NULL WHEN NULLIF ( - CAST( + 33 AS SIGNED ), COUNT( * ) ) * COUNT( DISTINCT - 7 ) THEN NULL WHEN 59 / 53 THEN - ( 61 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT + 74 - CASE 66 WHEN - 85 THEN NULL WHEN NULLIF ( - CAST ( + 33 AS INTEGER ), COUNT ( * ) ) * COUNT ( DISTINCT - 7 ) THEN NULL WHEN 59 / 53 THEN - ( 61 ) END AS col1
----
NULL

query I rowsort
SELECT + 44 + + 68 AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT - ( - 31 ) + + NULLIF ( + 3 - - 34 * - 3, CAST( - 61 AS SIGNED ) )
----
-68

skipif mysql # not compatible
query I rowsort label-6945
SELECT - ( - 31 ) + + NULLIF ( + 3 - - 34 * - 3, CAST ( - 61 AS INTEGER ) )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT 73 DIV - 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT 73 / - 52 AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT + 38 + 8 * COUNT( * ) col1
----
46

skipif mysql # not compatible
query I rowsort label-6948
SELECT + 38 + 8 * COUNT ( * ) col1
----
46

query I rowsort
SELECT + COALESCE ( - 52, - 14 * 68, - 95 - + 92 * + 86 ) + 31
----
-21

query I rowsort
SELECT ALL + 25 * 80
----
2000

query I rowsort
SELECT ALL 96 - - 72
----
168

query I rowsort
SELECT 76 + 93 * - 91 AS col2
----
-8387

query I rowsort
SELECT ALL 72 * 47
----
3384

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

skipif mysql # not compatible
query I rowsort label-6954
SELECT 47 / + 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT 83 DIV + 34 col0
----
2

skipif mysql # not compatible
query I rowsort label-6955
SELECT 83 / + 34 col0
----
2

query I rowsort
SELECT ALL 90 * 77
----
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT 66 * COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6957
SELECT 66 * COUNT ( * ) AS col0
----
66

query I rowsort
SELECT ALL - NULLIF ( + 42, 51 ) AS col2
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ALL - COALESCE ( - 85, - MAX( 9 ) * 94, - 52 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL - COALESCE ( - 85, - MAX ( 9 ) * 94, - 52 ) AS col1
----
85

query I rowsort
SELECT 8 * + 82 col2
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT SUM( 56 ) - - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6962
SELECT SUM ( 56 ) - - COUNT ( * ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT - 85 * - 87 + SUM( 53 ) AS col1
----
7448

skipif mysql # not compatible
query I rowsort label-6963
SELECT - 85 * - 87 + SUM ( 53 ) AS col1
----
7448

query I rowsort
SELECT ALL - 83 + 69
----
-14

query I rowsort
SELECT DISTINCT + - 50 + 18 AS col1
----
-32

query I rowsort
SELECT + 99 - 75
----
24

query I rowsort
SELECT ALL + + ( 2 ) + 20 AS col2
----
22

query I rowsort
SELECT ALL - + 37 + ( - 10 ) AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT 64 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-6969
SELECT 64 / - 62
----
-1

query I rowsort
SELECT - 66 + 6
----
-60

query I rowsort
SELECT + 75 * 63
----
4725

query I rowsort
SELECT ( + 55 ) + 32
----
87

query I rowsort
SELECT ALL - 56 * ( 25 + 47 ) AS col2
----
-4032

query I rowsort
SELECT + 58 + + 83
----
141

query I rowsort
SELECT ALL - 40 + 83 AS col0
----
43

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

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL CAST ( NULL AS INTEGER ) * 27
----
NULL

query I rowsort
SELECT 33 * 54
----
1782

query I rowsort
SELECT ALL 8 * 24
----
192

query I rowsort
SELECT 47 - + + ( 16 ) * - 22 AS col1
----
399

query I rowsort
SELECT 86 * + 37
----
3182

query I rowsort
SELECT 57 + - 58
----
-1

query I rowsort
SELECT ALL 19 * + 54 * 38 AS col0
----
38988

query I rowsort
SELECT 82 - 88
----
-6

query I rowsort
SELECT 1 * - 87 col0
----
-87

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

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

query I rowsort
SELECT ALL CASE - 46 WHEN 34 THEN NULL ELSE + 49 END * 49 AS col0
----
2401

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL 35 + + COUNT( * ) + ( + 75 ) * 18 * - 27 AS col1
----
-36414

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL 35 + + COUNT ( * ) + ( + 75 ) * 18 * - 27 AS col1
----
-36414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6988
SELECT COUNT( * ) DIV + 97 * 58 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6988
SELECT COUNT ( * ) / + 97 * 58 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT DISTINCT ( - - 22 ) + NULLIF ( - 69 + 97, ( - 20 ) + - 50 ) * COUNT( DISTINCT + 4 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT ( - - 22 ) + NULLIF ( - 69 + 97, ( - 20 ) + - 50 ) * COUNT ( DISTINCT + 4 ) AS col1
----
50

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

skipif mysql # not compatible
query I rowsort label-6990
SELECT CAST ( NULL AS INTEGER ) + 82 + 99
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6991
SELECT - 81 DIV 33 DIV COUNT( * ) - - 43 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6991
SELECT - 81 / 33 / COUNT ( * ) - - 43 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT ALL + 5 + + COUNT( + NULLIF ( 51, 32 ) ) * - 89
----
-84

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + 5 + + COUNT ( + NULLIF ( 51, 32 ) ) * - 89
----
-84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6994
SELECT ALL - 41 + - + CASE - 36 WHEN - 4 THEN NULL WHEN - 68 THEN NULL WHEN + CAST( 20 AS SIGNED ) * - 35 + - 23 THEN 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL - 41 + - + CASE - 36 WHEN - 4 THEN NULL WHEN - 68 THEN NULL WHEN + CAST ( 20 AS INTEGER ) * - 35 + - 23 THEN 24 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT 5 * + 81 + CAST( 40 AS SIGNED ) AS col2
----
445

skipif mysql # not compatible
query I rowsort label-6995
SELECT 5 * + 81 + CAST ( 40 AS INTEGER ) AS col2
----
445

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

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

query I rowsort
SELECT ALL - - NULLIF ( 86, 28 )
----
86

query I rowsort
SELECT DISTINCT + 63 + + 78
----
141

query I rowsort
SELECT - 97 + - 44
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7000
SELECT ALL 67 + 58 + CASE + COUNT( * ) + CASE CAST( NULL AS SIGNED ) WHEN 10 THEN NULL ELSE AVG ( ALL - 73 ) * 5 - 76 / - 78 END WHEN CASE 6 WHEN COUNT( * ) THEN NULL WHEN 31 THEN - 90 + + CAST( NULL AS DECIMAL ) ELSE NULL END THEN NULL WHEN + 62 * - 59 THEN MIN( 93 ) WHEN + 21 + - 65 THEN 4 ELSE NULL END * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL 67 + 58 + CASE + COUNT ( * ) + CASE CAST ( NULL AS INTEGER ) WHEN 10 THEN NULL ELSE AVG ( ALL - 73 ) * 5 - 76 / - 78 END WHEN CASE 6 WHEN COUNT ( * ) THEN NULL WHEN 31 THEN - 90 + + CAST ( NULL AS REAL ) ELSE NULL END THEN NULL WHEN + 62 * - 59 THEN MIN ( 93 ) WHEN + 21 + - 65 THEN 4 ELSE NULL END * + 63
----
NULL

query I rowsort
SELECT + 46 + + - 20 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL - COUNT( + - 65 ) * COUNT( - 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL - COUNT ( + - 65 ) * COUNT ( - 89 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT 79 + + COALESCE ( NULLIF ( + COUNT( * ), - AVG ( - 51 ) ), 96 ) - 85 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7003
SELECT 79 + + COALESCE ( NULLIF ( + COUNT ( * ), - AVG ( - 51 ) ), 96 ) - 85 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT - 29 * 11 * CASE 52 WHEN 78 + - 54 THEN + 57 WHEN + 10 THEN 30 + - 94 * - CASE + 45 + + 63 WHEN - NULLIF ( - 49, + COUNT( * ) ) / 58 THEN NULL WHEN ( 84 ) THEN NULL WHEN + COUNT( * ) * - COUNT( * ) + 80 THEN - ( 57 ) ELSE NULL END ELSE 82 END
----
-26158

skipif mysql # not compatible
query I rowsort label-7004
SELECT - 29 * 11 * CASE 52 WHEN 78 + - 54 THEN + 57 WHEN + 10 THEN 30 + - 94 * - CASE + 45 + + 63 WHEN - NULLIF ( - 49, + COUNT ( * ) ) / 58 THEN NULL WHEN ( 84 ) THEN NULL WHEN + COUNT ( * ) * - COUNT ( * ) + 80 THEN - ( 57 ) ELSE NULL END ELSE 82 END
----
-26158

query I rowsort
SELECT DISTINCT - + 35 * - 77
----
2695

query I rowsort
SELECT ALL + - 72 - + 13 * - 23
----
227

query I rowsort
SELECT ALL - 11 * 63
----
-693

query I rowsort
SELECT 71 * - - 81
----
5751

query I rowsort
SELECT ALL 56 * + 2 * - 46
----
-5152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7010
SELECT - 95 + 10 / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT - 95 + 10 / CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( + 2, + 27 + + 22 * 20 ) * 77 AS col0
----
-154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - + MAX( 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7013
SELECT - + MAX ( 19 ) AS col2
----
-19

query I rowsort
SELECT ALL - COALESCE ( 31, 99, - 8 + - 94 )
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7015
SELECT ALL + + CAST( NULL AS DECIMAL ) - + 12 * 34
----
NULL

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

query I rowsort
SELECT - - 53 + + - 76 * 2 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT - - COUNT( * ) - - NULLIF ( + 86, - 95 * - ( + 35 * - ( - 13 ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-7017
SELECT - - COUNT ( * ) - - NULLIF ( + 86, - 95 * - ( + 35 * - ( - 13 ) ) )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7018
SELECT ALL - - 17 DIV + 20 * - 56 + - 64 DIV MAX( - 4 DIV 47 - 79 * - 16 )
----
0

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL - - 17 / + 20 * - 56 + - 64 / MAX ( - 4 / 47 - 79 * - 16 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT - + ( COUNT( * ) ) + - ( + 18 - 46 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7019
SELECT - + ( COUNT ( * ) ) + - ( + 18 - 46 ) AS col2
----
27

query I rowsort
SELECT + 58 - - 58
----
116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT - 49 + 40 - + 37 * COALESCE ( + COUNT( * ) - - 60, 60 - + ( 92 ) * 57, + ( - 45 ) ) AS col2
----
-2266

skipif mysql # not compatible
query I rowsort label-7022
SELECT - 49 + 40 - + 37 * COALESCE ( + COUNT ( * ) - - 60, 60 - + ( 92 ) * 57, + ( - 45 ) ) AS col2
----
-2266

onlyif mysql # DIV for integer division: 
query I rowsort label-7023
SELECT ALL + 8 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL + 8 / 32
----
0

query I rowsort
SELECT - NULLIF ( - 58, + + 54 ) + - 40
----
18

query I rowsort
SELECT - 84 * - 68
----
5712

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT + 77 + + COALESCE ( - + 82, CASE ( + 39 ) WHEN CAST( NULL AS SIGNED ) / + 29 THEN NULL WHEN - 26 THEN - 80 * 19 END ) + - 35
----
-40

skipif mysql # not compatible
query I rowsort label-7027
SELECT + 77 + + COALESCE ( - + 82, CASE ( + 39 ) WHEN CAST ( NULL AS INTEGER ) / + 29 THEN NULL WHEN - 26 THEN - 80 * 19 END ) + - 35
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7028
SELECT ALL + SUM( - 3 ) + + 26 * + CAST( - 33 - 78 AS SIGNED )
----
-2889

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + SUM ( - 3 ) + + 26 * + CAST ( - 33 - 78 AS INTEGER )
----
-2889

query I rowsort
SELECT DISTINCT - 18 * + 5
----
-90

query II rowsort
SELECT 32, 14 + + 91 + 69 AS col2
----
32
174

query I rowsort
SELECT + 53 * - 78 AS col2
----
-4134

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT 36 DIV + + NULLIF ( - 38, 2 DIV ( 99 ) ) + - 30 col0
----
-30

skipif mysql # not compatible
query I rowsort label-7032
SELECT 36 / + + NULLIF ( - 38, 2 / ( 99 ) ) + - 30 col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL - COUNT( * ) * + 70 * 63 * - 61 + 75 AS col1
----
269085

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - COUNT ( * ) * + 70 * 63 * - 61 + 75 AS col1
----
269085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7034
SELECT DISTINCT + COUNT( * ) * - AVG ( + ( + ( 64 ) ) ) * 57 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT + COUNT ( * ) * - AVG ( + ( + ( 64 ) ) ) * 57 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 17 * 92
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL - 7 * + 57 + - COUNT( * ) - + COUNT( 65 )
----
-401

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL - 7 * + 57 + - COUNT ( * ) - + COUNT ( 65 )
----
-401

query I rowsort
SELECT ALL 15 * + 74 + - + 66
----
1044

query I rowsort
SELECT CASE - + ( + 49 ) WHEN + 13 * 97 THEN - 62 * 97 + 22 * 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL + MAX( - 45 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + MAX ( - 45 ) col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT - 13 * - + COUNT( + 65 ) + - 96 col2
----
-83

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT - 13 * - + COUNT ( + 65 ) + - 96 col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT + + NULLIF ( - - ( - - 7 ), + COUNT( * ) ) + COUNT( * ) * - CASE 8 WHEN 65 THEN - 48 WHEN - COUNT( ALL 61 ) + - 30 THEN ( COUNT( * ) ) ELSE 21 END col0
----
-14

skipif mysql # not compatible
query I rowsort label-7041
SELECT + + NULLIF ( - - ( - - 7 ), + COUNT ( * ) ) + COUNT ( * ) * - CASE 8 WHEN 65 THEN - 48 WHEN - COUNT ( ALL 61 ) + - 30 THEN ( COUNT ( * ) ) ELSE 21 END col0
----
-14

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

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

query I rowsort
SELECT + + ( 49 ) col0
----
49

query I rowsort
SELECT + + 95 * - - 17
----
1615

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT + 74 * - - 27 * 51 + + MIN( 57 ) - + 49 AS col1
----
101906

skipif mysql # not compatible
query I rowsort label-7046
SELECT + 74 * - - 27 * 51 + + MIN ( 57 ) - + 49 AS col1
----
101906

query I rowsort
SELECT - 27 + + + 81 + + 5 - 8 * 86 * 35
----
-24021

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

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

query I rowsort
SELECT ALL - 74 * + 17 - 97 col2
----
-1355

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

skipif mysql # not compatible
query I rowsort label-7050
SELECT + MAX ( ALL - - 22 ) * + 8 AS col1
----
176

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7052
SELECT DISTINCT + + CASE + + 85 WHEN + 74 * + 56 THEN NULL WHEN - CASE 15 WHEN COUNT( * ) THEN 93 ELSE + NULLIF ( - 97, COUNT( * ) ) END THEN - 93 ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT + + CASE + + 85 WHEN + 74 * + 56 THEN NULL WHEN - CASE 15 WHEN COUNT ( * ) THEN 93 ELSE + NULLIF ( - 97, COUNT ( * ) ) END THEN - 93 ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7053
SELECT - + 93 * - + 37 * + 80 - + 82 DIV + COUNT( * ) AS col0
----
275198

skipif mysql # not compatible
query I rowsort label-7053
SELECT - + 93 * - + 37 * + 80 - + 82 / + COUNT ( * ) AS col0
----
275198

query II rowsort
SELECT ALL - 53 col2, 11
----
-53
11

query II rowsort
SELECT ALL 22 AS col2, - 75
----
22
-75

query I rowsort
SELECT DISTINCT - 55 * 43 AS col2
----
-2365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7057
SELECT DISTINCT + 29, + CASE + 24 WHEN - 51 / ( + 32 * + 33 ) THEN CAST( + COUNT( * ) AS SIGNED ) * 81 + - 2 WHEN 76 THEN - COUNT( * ) / + 45 END - 97 * 5 AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-7057
SELECT DISTINCT + 29, + CASE + 24 WHEN - 51 / ( + 32 * + 33 ) THEN CAST ( + COUNT ( * ) AS INTEGER ) * 81 + - 2 WHEN 76 THEN - COUNT ( * ) / + 45 END - 97 * 5 AS col0
----
29
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT + CAST( + 30 AS SIGNED ) * 80 * - 88
----
-211200

skipif mysql # not compatible
query I rowsort label-7058
SELECT + CAST ( + 30 AS INTEGER ) * 80 * - 88
----
-211200

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT - MAX( ALL 33 ) + + 61 * - 17 AS col2
----
-1070

skipif mysql # not compatible
query I rowsort label-7059
SELECT - MAX ( ALL 33 ) + + 61 * - 17 AS col2
----
-1070

query I rowsort
SELECT ALL - 22 * + + 60
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL ( CASE COUNT( * ) WHEN - - 37 THEN + COUNT( * ) WHEN + 21 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL ( CASE COUNT ( * ) WHEN - - 37 THEN + COUNT ( * ) WHEN + 21 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 94 * - 74
----
-6956

query I rowsort
SELECT - NULLIF ( - - 11, + - 94 ) * - + 56
----
616

query I rowsort
SELECT ALL + 4 * - 40 * 35 AS col1
----
-5600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT ALL NULLIF ( - 20, - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - 49 )
----
-20

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL NULLIF ( - 20, - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 49 )
----
-20

query I rowsort
SELECT DISTINCT + 58 + + 84
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT + 89 - - COALESCE ( 3, - 76 ) + - CASE 46 WHEN - ( + COUNT( * ) ) THEN + 22 WHEN + MIN( - 29 ) * + ( + NULLIF ( + 37, - COUNT( * ) ) ) + 90 THEN + 93 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT + 89 - - COALESCE ( 3, - 76 ) + - CASE 46 WHEN - ( + COUNT ( * ) ) THEN + 22 WHEN + MIN ( - 29 ) * + ( + NULLIF ( + 37, - COUNT ( * ) ) ) + 90 THEN + 93 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 67 ) col0
----
67

query I rowsort
SELECT ALL + 77 + 18 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT - CASE - - 1 WHEN + 96 + + 94 THEN - COUNT( * ) WHEN - 30 THEN NULL ELSE NULL END + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT - CASE - - 1 WHEN + 96 + + 94 THEN - COUNT ( * ) WHEN - 30 THEN NULL ELSE NULL END + 68 AS col2
----
NULL

query I rowsort
SELECT - 71 * 1 AS col0
----
-71

query I rowsort
SELECT ALL - 13 + - CASE 23 WHEN 40 / 43 THEN 36 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT ALL - COUNT( * ) + - COALESCE ( - 68, 82 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL - COUNT ( * ) + - COALESCE ( - 68, 82 ) AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT - 18 DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT - 18 / - 99 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7075
SELECT + COUNT( * ) DIV - 24 * - - 11 DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-7075
SELECT + COUNT ( * ) / - 24 * - - 11 / - 9
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT - 35 * CAST( + ( 89 ) AS SIGNED )
----
-3115

skipif mysql # not compatible
query I rowsort label-7076
SELECT - 35 * CAST ( + ( 89 ) AS INTEGER )
----
-3115

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT ALL + 68 DIV + NULLIF ( 11, - 47 )
----
6

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + 68 / + NULLIF ( 11, - 47 )
----
6

query I rowsort
SELECT ALL ( 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL COUNT( * ) * + - 79 * + + 24 AS col1
----
-1896

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL COUNT ( * ) * + - 79 * + + 24 AS col1
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT DISTINCT - MIN( COALESCE ( 87, - 76 * + 17 ) ) * - 39 AS col1
----
3393

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - MIN ( COALESCE ( 87, - 76 * + 17 ) ) * - 39 AS col1
----
3393

query I rowsort
SELECT + 64 + 6 + - 32
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7082
SELECT 42 * COUNT( * ) + - 10 - - 22 DIV - 38
----
32

skipif mysql # not compatible
query I rowsort label-7082
SELECT 42 * COUNT ( * ) + - 10 - - 22 / - 38
----
32

query I rowsort
SELECT + 22 * COALESCE ( + + 15, - - 33 + + 64 ) + - 91 + 15 col1
----
254

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

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

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

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

query I rowsort
SELECT + - 85 * - ( - + 17 ) - - - 99 - + 81
----
-1625

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT ALL + 20 DIV 2 - + ( - 99 ) * + 95 AS col2
----
9415

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + 20 / 2 - + ( - 99 ) * + 95 AS col2
----
9415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7089
SELECT ALL + MAX( ALL + + 17 ) AS col1, CAST( NULL AS SIGNED )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-7089
SELECT ALL + MAX ( ALL + + 17 ) AS col1, CAST ( NULL AS INTEGER )
----
17
NULL

query I rowsort
SELECT ALL + + CASE - + 45 WHEN 97 THEN - CASE + 4 WHEN + 70 THEN 34 ELSE NULL END + 98 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL - 78 * - MIN( - + 22 )
----
-1716

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL - 78 * - MIN ( - + 22 )
----
-1716

query I rowsort
SELECT 14 * ( - 17 ) + + 67 AS col0
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7093
SELECT DISTINCT + SUM( DISTINCT - - 80 ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + SUM ( DISTINCT - - 80 ) / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT + MAX( ALL ( - 7 ) ) + + ( 15 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7094
SELECT + MAX ( ALL ( - 7 ) ) + + ( 15 ) AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7095
SELECT - 35 DIV - ( - 64 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7095
SELECT - 35 / - ( - 64 ) AS col2
----
0

query I rowsort
SELECT ALL 74 * 83 * + + 67
----
411514

query I rowsort
SELECT - 44 + + + 12 AS col2
----
-32

query I rowsort
SELECT - 18 * + 28
----
-504

query I rowsort
SELECT - 29 * 93 + - ( - 81 )
----
-2616

onlyif mysql # DIV for integer division: 
query I rowsort label-7100
SELECT 57 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-7100
SELECT 57 / + 74
----
0

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

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

query I rowsort
SELECT ALL - 76 + + - 42 + + 25
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL - COALESCE ( - CASE + NULLIF ( + 27, 78 ) WHEN - 27 THEN 66 WHEN - 72 THEN NULL ELSE NULL END, + COALESCE ( 37, ( - 63 ) ) * 7 + - COUNT( * ) * 39 ) + + 82
----
-138

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - COALESCE ( - CASE + NULLIF ( + 27, 78 ) WHEN - 27 THEN 66 WHEN - 72 THEN NULL ELSE NULL END, + COALESCE ( 37, ( - 63 ) ) * 7 + - COUNT ( * ) * 39 ) + + 82
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7104
SELECT 92 + - 43 + CAST( - + 93 AS SIGNED ) + - 28 + + 37 * - 42 col2
----
-1626

skipif mysql # not compatible
query I rowsort label-7104
SELECT 92 + - 43 + CAST ( - + 93 AS INTEGER ) + - 28 + + 37 * - 42 col2
----
-1626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7105
SELECT ALL 7 + - 92 - + 60 * 75 + - COUNT( * ) + CASE - 77 WHEN + CAST( 53 AS SIGNED ) THEN + 11 + + 93 WHEN - CAST( - 68 AS SIGNED ) THEN NULL WHEN 28 / + 88 THEN 21 - 75 END * CAST( 49 AS DECIMAL ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL 7 + - 92 - + 60 * 75 + - COUNT ( * ) + CASE - 77 WHEN + CAST ( 53 AS INTEGER ) THEN + 11 + + 93 WHEN - CAST ( - 68 AS INTEGER ) THEN NULL WHEN 28 / + 88 THEN 21 - 75 END * CAST ( 49 AS REAL ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 25 + + 65 + - 10 col2
----
80

query I rowsort
SELECT ALL 60 + - 21 AS col0
----
39

query II rowsort
SELECT 82 + 21 + - 11 AS col0, + 54
----
92
54

query I rowsort
SELECT 27 + + - 75 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL + SUM( DISTINCT + 45 ) + NULLIF ( 20, - 33 ) + 10
----
75

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL + SUM ( DISTINCT + 45 ) + NULLIF ( 20, - 33 ) + 10
----
75

query I rowsort
SELECT 36 + - 24 - + 80 * - - 70
----
-5588

query I rowsort
SELECT 7 + - 67
----
-60

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

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL COUNT ( * ) * + - 92 AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7114
SELECT ALL + 46 + + 99 + - CAST( 26 AS SIGNED ) * - 44 * 4
----
4721

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + 46 + + 99 + - CAST ( 26 AS INTEGER ) * - 44 * 4
----
4721

query I rowsort
SELECT 17 + + 52 AS col2
----
69

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

skipif mysql # not compatible
query I rowsort label-7116
SELECT 26 + - - COUNT ( * ) * + 69 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL 94 - + COUNT( * ) col2
----
93

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL 94 - + COUNT ( * ) col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT DISTINCT + COUNT( ALL + + 90 ) * - 6 col0
----
-6

skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT + COUNT ( ALL + + 90 ) * - 6 col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7119
SELECT 36 + 86 * - CASE 91 WHEN - - 32 DIV + COUNT( * ) THEN 0 DIV - 56 ELSE ( - COUNT( * ) ) - COALESCE ( 30, - 28 ) END
----
2702

skipif mysql # not compatible
query I rowsort label-7119
SELECT 36 + 86 * - CASE 91 WHEN - - 32 / + COUNT ( * ) THEN 0 / - 56 ELSE ( - COUNT ( * ) ) - COALESCE ( 30, - 28 ) END
----
2702

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

skipif mysql # not compatible
query I rowsort label-7120
SELECT CAST ( NULL AS INTEGER ) * - 82 col2
----
NULL

query I rowsort
SELECT 42 * + 75 AS col1
----
3150

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7123
SELECT 52 + + + 42 - 16 DIV + COUNT( * ) - - ( SUM( 58 ) ) AS col1
----
136

skipif mysql # not compatible
query I rowsort label-7123
SELECT 52 + + + 42 - 16 / + COUNT ( * ) - - ( SUM ( 58 ) ) AS col1
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7124
SELECT CAST( - 3 AS SIGNED ) * - MIN( ALL 45 ) * + 29
----
3915

skipif mysql # not compatible
query I rowsort label-7124
SELECT CAST ( - 3 AS INTEGER ) * - MIN ( ALL 45 ) * + 29
----
3915

query I rowsort
SELECT + NULLIF ( + 90, 55 * + - 75 / 39 * ( + 67 / - 37 ) )
----
90

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

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

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

query I rowsort
SELECT ALL + 21 * + - 28 AS col1
----
-588

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

query I rowsort
SELECT - 32 - - - 82 AS col0
----
-114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT + 81 * - 2 * + 93 + + COALESCE ( - 23, + ( NULLIF ( + ( MAX( + 80 ) ), - COUNT( * ) * + ( 3 ) + - 97 ) ) ) + NULLIF ( - COALESCE ( 16, 23, 81 - - 19 ), 18 ) col0
----
-15105

skipif mysql # not compatible
query I rowsort label-7132
SELECT + 81 * - 2 * + 93 + + COALESCE ( - 23, + ( NULLIF ( + ( MAX ( + 80 ) ), - COUNT ( * ) * + ( 3 ) + - 97 ) ) ) + NULLIF ( - COALESCE ( 16, 23, 81 - - 19 ), 18 ) col0
----
-15105

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT + 25 + - - 94 DIV - - 74 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7133
SELECT + 25 + - - 94 / - - 74 AS col2
----
26

query I rowsort
SELECT ALL + 27 + 73 AS col2
----
100

query I rowsort
SELECT DISTINCT - - 44 + - + 46
----
-2

query I rowsort
SELECT ALL + 47 + 41
----
88

query I rowsort
SELECT + 82 - - - 72 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7138
SELECT ALL - 61 AS col0, - CASE ( - COUNT( * ) ) WHEN - - ( - COUNT( * ) ) DIV + COUNT( * ) THEN + 51 DIV + 56 END + 72
----
-61
72

skipif mysql # not compatible
query II rowsort label-7138
SELECT ALL - 61 AS col0, - CASE ( - COUNT ( * ) ) WHEN - - ( - COUNT ( * ) ) / + COUNT ( * ) THEN + 51 / + 56 END + 72
----
-61
72

query I rowsort
SELECT DISTINCT - 72 + - 21
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT CASE WHEN NULL = ( NULL ) THEN - + 61 ELSE NULL END - - + 75 / NULLIF ( + COALESCE ( 83, + 44 + 69 / - COALESCE ( + 63 * + ( - COALESCE ( 63, 50 / - COUNT( * ) ) / - 50 ), - SUM( + 2 ) + + 42 * 59 ), - 67 * - 85 + + 82 ) + - CAST( NULL AS SIGNED ), - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT CASE WHEN NULL = ( NULL ) THEN - + 61 ELSE NULL END - - + 75 / NULLIF ( + COALESCE ( 83, + 44 + 69 / - COALESCE ( + 63 * + ( - COALESCE ( 63, 50 / - COUNT ( * ) ) / - 50 ), - SUM ( + 2 ) + + 42 * 59 ), - 67 * - 85 + + 82 ) + - CAST ( NULL AS INTEGER ), - 45 )
----
NULL

query I rowsort
SELECT ALL ( 20 ) * + 43 + + 99 + - 24
----
935

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

skipif mysql # not compatible
query I rowsort label-7142
SELECT 1 / - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT ALL 84 + - + 98 * - 75 * - COALESCE ( - 29, + ( - CAST( + ( 11 ) AS SIGNED ) ) + 37 )
----
213234

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL 84 + - + 98 * - 75 * - COALESCE ( - 29, + ( - CAST ( + ( 11 ) AS INTEGER ) ) + 37 )
----
213234

query II rowsort
SELECT - 54, + 23 AS col2
----
-54
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT 19 + - CASE NULLIF ( ( + + COUNT( * ) ), MAX( - 57 ) ) WHEN + 44 THEN + ( - 69 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT 19 + - CASE NULLIF ( ( + + COUNT ( * ) ), MAX ( - 57 ) ) WHEN + 44 THEN + ( - 69 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7146
SELECT 54, + ( + + COUNT( * ) ) * + - 80 AS col2, + - 36 AS col2
----
54
-80
-36

skipif mysql # not compatible
query III rowsort label-7146
SELECT 54, + ( + + COUNT ( * ) ) * + - 80 AS col2, + - 36 AS col2
----
54
-80
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7147
SELECT ALL 64 AS col1, + MAX( - 3 ) * - CAST( NULL AS SIGNED ) / + COUNT( * )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7147
SELECT ALL 64 AS col1, + MAX ( - 3 ) * - CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
64
NULL

query II rowsort
SELECT 62 AS col1, 64 * + 59
----
62
3776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT DISTINCT - MIN( DISTINCT 75 ) + - + CAST( - CAST( - 76 AS SIGNED ) AS SIGNED ) col1
----
-151

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT - MIN ( DISTINCT 75 ) + - + CAST ( - CAST ( - 76 AS INTEGER ) AS INTEGER ) col1
----
-151

query I rowsort
SELECT DISTINCT ( - 9 ) - - 57
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT - MAX( ALL 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-7152
SELECT - MAX ( ALL 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7153
SELECT ALL 30, CAST( + 60 AS SIGNED ) * - 75 * + MAX( ALL COALESCE ( - 80, + 59 ) ) AS col2
----
30
360000

skipif mysql # not compatible
query II rowsort label-7153
SELECT ALL 30, CAST ( + 60 AS INTEGER ) * - 75 * + MAX ( ALL COALESCE ( - 80, + 59 ) ) AS col2
----
30
360000

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT 7 - + ( - 99 ) * - + COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7154
SELECT 7 - + ( - 99 ) * - + COUNT ( * ) AS col0
----
-92

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

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

query I rowsort
SELECT 52 * + + ( 38 ) * - CASE + 73 WHEN 88 THEN + ( 33 ) * - 55 WHEN + CASE AVG ( - 93 ) WHEN + 94 THEN NULL WHEN - 21 THEN NULL ELSE + 69 END + 34 THEN 51 * - 76 WHEN - 14 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT COUNT( * ) + + 43 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7157
SELECT COUNT ( * ) + + 43 AS col2
----
44

query I rowsort
SELECT DISTINCT + 24 * + COALESCE ( - 60, + 64 * + 96 ) * 86
----
-123840

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL COALESCE ( + + 77, + + 34, COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL COALESCE ( + + 77, + + 34, COUNT ( * ) )
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7160
SELECT DISTINCT + 74 col1, + ( COUNT( * ) ) * + NULLIF ( - ( + + 47 ), 69 + - 10 * + 93 )
----
74
-47

skipif mysql # not compatible
query II rowsort label-7160
SELECT DISTINCT + 74 col1, + ( COUNT ( * ) ) * + NULLIF ( - ( + + 47 ), 69 + - 10 * + 93 )
----
74
-47

query I rowsort
SELECT DISTINCT - - 26 * 90 * + 94 AS col2
----
219960

query II rowsort
SELECT ALL + 48 AS col0, 19 * - 66
----
48
-1254

query I rowsort
SELECT 92 - - 89
----
181

query I rowsort
SELECT DISTINCT 11 * + + 11 col0
----
121

query II rowsort
SELECT ALL + + 90 AS col1, 25
----
90
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT - + MIN( ALL - 4 ) * 76 * - + 52 * - - 6 + - 26
----
-94874

skipif mysql # not compatible
query I rowsort label-7166
SELECT - + MIN ( ALL - 4 ) * 76 * - + 52 * - - 6 + - 26
----
-94874

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT DISTINCT + 50 * + SUM( - + 53 )
----
-2650

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT + 50 * + SUM ( - + 53 )
----
-2650

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7169
SELECT + 26 DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-7169
SELECT + 26 / + + 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7170
SELECT - - 37 + + + 81 col1, NULLIF ( + 1, ( - 72 ) ) * CAST( COALESCE ( + CAST( 50 AS SIGNED ), 49 ) * - COUNT( * ) + 65 AS SIGNED ) col0
----
118
15

skipif mysql # not compatible
query II rowsort label-7170
SELECT - - 37 + + + 81 col1, NULLIF ( + 1, ( - 72 ) ) * CAST ( COALESCE ( + CAST ( 50 AS INTEGER ), 49 ) * - COUNT ( * ) + 65 AS INTEGER ) col0
----
118
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT + 79 * MAX( DISTINCT + 75 ) - - + COUNT( * ) + 50 * - 92 + MIN( + 68 ) * + 27
----
3162

skipif mysql # not compatible
query I rowsort label-7171
SELECT + 79 * MAX ( DISTINCT + 75 ) - - + COUNT ( * ) + 50 * - 92 + MIN ( + 68 ) * + 27
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT + 18 * 66 + + 81 + COUNT( * ) col2
----
1270

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + 18 * 66 + + 81 + COUNT ( * ) col2
----
1270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7173
SELECT DISTINCT - COUNT( * ) * - 6 / + 71 + - ( CAST( NULL AS SIGNED ) ) + - 34 - COUNT( * ) * NULLIF ( 33, 11 + SUM( + 3 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT - COUNT ( * ) * - 6 / + 71 + - ( CAST ( NULL AS INTEGER ) ) + - 34 - COUNT ( * ) * NULLIF ( 33, 11 + SUM ( + 3 ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7174
SELECT ALL + 30, MIN( DISTINCT - 49 ) + 30 + - CAST( 14 AS SIGNED ) + 29 AS col0
----
30
-4

skipif mysql # not compatible
query II rowsort label-7174
SELECT ALL + 30, MIN ( DISTINCT - 49 ) + 30 + - CAST ( 14 AS INTEGER ) + 29 AS col0
----
30
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7175
SELECT 96 * + COALESCE ( + - 82, + CAST( - + CASE 71 WHEN 26 - 82 THEN NULL ELSE 54 END AS SIGNED ), + 29 DIV 40 ) * - 97 + COUNT( * ) * - 70 AS col0
----
763514

skipif mysql # not compatible
query I rowsort label-7175
SELECT 96 * + COALESCE ( + - 82, + CAST ( - + CASE 71 WHEN 26 - 82 THEN NULL ELSE 54 END AS INTEGER ), + 29 / 40 ) * - 97 + COUNT ( * ) * - 70 AS col0
----
763514

query I rowsort
SELECT DISTINCT + 30 * + - 0 + 5 * 38 * 85
----
16150

query I rowsort
SELECT ALL 30 - + 33
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT - 12 + + COUNT( * ) + + 72 AS col0, - 48 AS col1
----
61
-48

skipif mysql # not compatible
query II rowsort label-7178
SELECT - 12 + + COUNT ( * ) + + 72 AS col0, - 48 AS col1
----
61
-48

query I rowsort
SELECT DISTINCT + 9 - 87
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7180
SELECT ALL COALESCE ( + - 78, + 36 + + + COUNT( * ) + - 80 * - 24 + - 14 DIV 28 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL COALESCE ( + - 78, + 36 + + + COUNT ( * ) + - 80 * - 24 + - 14 / 28 ) col2
----
-78

query I rowsort
SELECT DISTINCT 0 - + ( - 44 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT DISTINCT - 37 DIV 41 * + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT - 37 / 41 * + 31 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - CASE + + COALESCE ( + MIN( 38 ), - 66 * + - 68 + 0 + 36 ) WHEN 77 THEN + 60 * + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT - CASE + + COALESCE ( + MIN ( 38 ), - 66 * + - 68 + 0 + 36 ) WHEN 77 THEN + 60 * + 33 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7184
SELECT + 58 + - COALESCE ( + + CAST( NULL AS SIGNED ), + + 20 * - + 32 * - ( - - COALESCE ( + 73, 7 + + 33 ) ), - COUNT( * ) ) col0
----
-46662

skipif mysql # not compatible
query I rowsort label-7184
SELECT + 58 + - COALESCE ( + + CAST ( NULL AS INTEGER ), + + 20 * - + 32 * - ( - - COALESCE ( + 73, 7 + + 33 ) ), - COUNT ( * ) ) col0
----
-46662

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT - MAX( ( 58 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7185
SELECT - MAX ( ( 58 ) ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + COALESCE ( - 61, + 32 * - NULLIF ( - 14, - SUM( 64 ) / - 58 ) * + ( 33 * COUNT( + 64 / 78 ) ) + - 12 ) + MAX( + 35 - + 89 )
----
-115

skipif mysql # not compatible
query I rowsort label-7186
SELECT + COALESCE ( - 61, + 32 * - NULLIF ( - 14, - SUM ( 64 ) / - 58 ) * + ( 33 * COUNT ( + 64 / 78 ) ) + - 12 ) + MAX ( + 35 - + 89 )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT + COUNT( * ) * 24 * + 16
----
384

skipif mysql # not compatible
query I rowsort label-7187
SELECT + COUNT ( * ) * 24 * + 16
----
384

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL - 11 * - - CASE 52 WHEN - 59 * - MIN( ALL - - 25 ) THEN 34 + 44 / 28 END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL - 11 * - - CASE 52 WHEN - 59 * - MIN ( ALL - - 25 ) THEN 34 + 44 / 28 END * 85
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7190
SELECT + COUNT ( * ) + - - ( - 26 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT ALL + 71 * 60 + + COUNT( * ) + 42 * - + 57, SUM( 31 ) * 83 AS col2
----
1867
2573

skipif mysql # not compatible
query II rowsort label-7191
SELECT ALL + 71 * 60 + + COUNT ( * ) + 42 * - + 57, SUM ( 31 ) * 83 AS col2
----
1867
2573

onlyif mysql # DIV for integer division: 
query II rowsort label-7192
SELECT ALL - ( 46 ) DIV 56 AS col2, - 26
----
0
-26

skipif mysql # not compatible
query II rowsort label-7192
SELECT ALL - ( 46 ) / 56 AS col2, - 26
----
0
-26

query I rowsort
SELECT - 78 * 81 AS col2
----
-6318

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

query II rowsort
SELECT ALL + 21 + + 87, 3 AS col0
----
108
3

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

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

query III rowsort
SELECT - ( - + 36 ), + 98 AS col0, - 58 AS col0
----
36
98
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7198
SELECT DISTINCT 36 + + 74 / + 10 / - ( - CAST( NULL AS SIGNED ) ) * - - COUNT( * ) + CASE ( MAX( DISTINCT + 89 ) ) WHEN COALESCE ( 92, - 74 ) + - CAST( - 98 + 69 AS SIGNED ) THEN NULL WHEN 0 THEN 19 ELSE NULL END + MAX( 71 ) * + 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT 36 + + 74 / + 10 / - ( - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + CASE ( MAX ( DISTINCT + 89 ) ) WHEN COALESCE ( 92, - 74 ) + - CAST ( - 98 + 69 AS INTEGER ) THEN NULL WHEN 0 THEN 19 ELSE NULL END + MAX ( 71 ) * + 15 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7199
SELECT ALL - COUNT( * ) DIV + - 99 + + + 18 + - - ( - - 18 ) AS col2, + COUNT( * ) * - 11 AS col2
----
36
-11

skipif mysql # not compatible
query II rowsort label-7199
SELECT ALL - COUNT ( * ) / + - 99 + + + 18 + - - ( - - 18 ) AS col2, + COUNT ( * ) * - 11 AS col2
----
36
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT - ( NULLIF ( + 93, + 64 ) ) + + + 12 + - SUM( ALL - 44 ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-7200
SELECT - ( NULLIF ( + 93, + 64 ) ) + + + 12 + - SUM ( ALL - 44 ) col2
----
-37

query I rowsort
SELECT DISTINCT + 35 col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT 14 DIV + 36 + + - 85 + + 93 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT 14 / + 36 + + - 85 + + 93 AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7203
SELECT COUNT( - - 41 ), - NULLIF ( - - 85, - 82 ) AS col1
----
1
-85

skipif mysql # not compatible
query II rowsort label-7203
SELECT COUNT ( - - 41 ), - NULLIF ( - - 85, - 82 ) AS col1
----
1
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7204
SELECT - - SUM( + 84 ) DIV + MIN( + 7 )
----
12

skipif mysql # not compatible
query I rowsort label-7204
SELECT - - SUM ( + 84 ) / + MIN ( + 7 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7205
SELECT ALL - MIN( - 68 ) DIV + 25 + - 26 + ( - 88 )
----
-112

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL - MIN ( - 68 ) / + 25 + - 26 + ( - 88 )
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7206
SELECT + - 39 - 32 AS col2, CAST( NULL AS SIGNED ) AS col1
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-7206
SELECT + - 39 - 32 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
-71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT + + COUNT( 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7207
SELECT + + COUNT ( 5 ) AS col0
----
1

query I rowsort
SELECT + + 64 - + 74 AS col1
----
-10

query I rowsort
SELECT ( 9 ) col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7210
SELECT - 39 * + CAST( - 59 AS SIGNED ) + + + COUNT( * ) + + + NULLIF ( + - 20, + 10 * - - SUM( 4 ) / 77 + CASE 63 + AVG ( DISTINCT 61 ) WHEN - 49 + + MAX( DISTINCT - 6 - 15 ) THEN 14 WHEN - 58 * + ( - 40 * 82 ) + + COALESCE ( - 34 + 0 * 97, + 91 / MIN( DISTINCT - 73 ) + 75, 78 ) THEN + 8 * - 29 - + ( CAST( NULL AS SIGNED ) ) END ) - NULLIF ( - ( CAST( NULL AS SIGNED ) ), + 94 + 47 ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT - 39 * + CAST ( - 59 AS INTEGER ) + + + COUNT ( * ) + + + NULLIF ( + - 20, + 10 * - - SUM ( 4 ) / 77 + CASE 63 + AVG ( DISTINCT 61 ) WHEN - 49 + + MAX ( DISTINCT - 6 - 15 ) THEN 14 WHEN - 58 * + ( - 40 * 82 ) + + COALESCE ( - 34 + 0 * 97, + 91 / MIN ( DISTINCT - 73 ) + 75, 78 ) THEN + 8 * - 29 - + ( CAST ( NULL AS INTEGER ) ) END ) - NULLIF ( - ( CAST ( NULL AS INTEGER ) ), + 94 + 47 ) * - 4
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT - 7 DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT - 7 / - + 87
----
0

query I rowsort
SELECT - 19 * - 35 * - - 75
----
49875

onlyif mysql # DIV for integer division: 
query II rowsort label-7213
SELECT ALL + 46, - 20 DIV - 65 * 10 + + - 24 AS col0
----
46
-24

skipif mysql # not compatible
query II rowsort label-7213
SELECT ALL + 46, - 20 / - 65 * 10 + + - 24 AS col0
----
46
-24

query I rowsort
SELECT - 71 - + 40
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7215
SELECT ALL + COALESCE ( + - 21, + 87 * NULLIF ( + + 85, 64 * - 90 + SUM( CAST( NULL AS SIGNED ) ) * COUNT( * ) ) + - 56 ) DIV 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL + COALESCE ( + - 21, + 87 * NULLIF ( + + 85, 64 * - 90 + SUM ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) ) + - 56 ) / 26 AS col2
----
0

query I rowsort
SELECT COALESCE ( + 86, + + 22 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT ALL + ( 46 ) * + 29 * + 92 + - 52 + + 29 DIV 46 * 26 * 98 AS col2
----
122676

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL + ( 46 ) * + 29 * + 92 + - 52 + + 29 / 46 * 26 * 98 AS col2
----
122676

query I rowsort
SELECT + 59 * 87 col0
----
5133

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT - MIN( + 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-7219
SELECT - MIN ( + 10 ) AS col2
----
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT DISTINCT CAST( 49 AS SIGNED ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT CAST ( 49 AS INTEGER ) AS col2
----
49

query I rowsort
SELECT ALL - 24 * + 94
----
-2256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7223
SELECT DISTINCT CAST( - CASE - + 8 WHEN + + 80 THEN + 53 + - COUNT( ALL + + 53 ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT CAST ( - CASE - + 8 WHEN + + 80 THEN + 53 + - COUNT ( ALL + + 53 ) END AS INTEGER ) AS col0
----
NULL

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

query II rowsort
SELECT ALL 40 AS col1, 13 + - 90
----
40
-77

query I rowsort
SELECT ALL 69 + - 59 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT + CAST( 93 AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7227
SELECT + CAST ( 93 AS INTEGER ) AS col0
----
93

query I rowsort
SELECT 21 * + 63
----
1323

query II rowsort
SELECT + 40 AS col2, 68
----
40
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT DISTINCT + + 67 * + + CAST( 4 AS SIGNED ) * - 15 + - 30 + + + 20 * - 5 AS col0
----
-4150

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + + 67 * + + CAST ( 4 AS INTEGER ) * - 15 + - 30 + + + 20 * - 5 AS col0
----
-4150

onlyif mysql # aggregate syntax: 
query II rowsort label-7231
SELECT - 90 AS col2, COUNT( * ) + - 83 AS col0
----
-90
-82

skipif mysql # not compatible
query II rowsort label-7231
SELECT - 90 AS col2, COUNT ( * ) + - 83 AS col0
----
-90
-82

query I rowsort
SELECT ALL 29 * - 97
----
-2813

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT 1 + 11 DIV - 51 col2
----
1

skipif mysql # not compatible
query I rowsort label-7233
SELECT 1 + 11 / - 51 col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL - 9 + + ( - NULLIF ( + + COUNT( * ), + 88 ) ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL - 9 + + ( - NULLIF ( + + COUNT ( * ), + 88 ) ) col2
----
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7237
SELECT ALL + COUNT( * ) * CAST( + 15 AS SIGNED ) AS col0, ( - 80 ) - - 18 + + 99 DIV 65 * - COUNT( * ) col2
----
15
-63

skipif mysql # not compatible
query II rowsort label-7237
SELECT ALL + COUNT ( * ) * CAST ( + 15 AS INTEGER ) AS col0, ( - 80 ) - - 18 + + 99 / 65 * - COUNT ( * ) col2
----
15
-63

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

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

query I rowsort
SELECT DISTINCT 14 + - 72
----
-58

onlyif mysql # aggregate syntax: 
query III rowsort label-7240
SELECT ALL - 48 + - - 85 + - + 84 AS col0, + 26 + + 21 - + 79 AS col0, - + 37 * - - 86 + + SUM( ALL COALESCE ( + 20, - 58, 66 ) + - 80 ) - 26 * 76
----
-47
-32
-5218

skipif mysql # not compatible
query III rowsort label-7240
SELECT ALL - 48 + - - 85 + - + 84 AS col0, + 26 + + 21 - + 79 AS col0, - + 37 * - - 86 + + SUM ( ALL COALESCE ( + 20, - 58, 66 ) + - 80 ) - 26 * 76
----
-47
-32
-5218

query I rowsort
SELECT + 62 + + 97 AS col0
----
159

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7243
SELECT CAST( - - 34 AS SIGNED ) * + - 64 - - COALESCE ( - 99, 40 DIV + 65 DIV - - 60, - 90 * + 46, COUNT( * ) ) AS col0
----
-2275

skipif mysql # not compatible
query I rowsort label-7243
SELECT CAST ( - - 34 AS INTEGER ) * + - 64 - - COALESCE ( - 99, 40 / + 65 / - - 60, - 90 * + 46, COUNT ( * ) ) AS col0
----
-2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT - 32 / - 17 - + CASE - - CAST( CASE - 94 WHEN MAX( - + 91 ) + CAST( + COUNT( * ) AS SIGNED ) / + COALESCE ( - 30, - 45, + 46 * + 99 ) THEN CASE 53 WHEN - 99 THEN + 53 / 82 + MAX( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) WHEN - CAST( 31 AS SIGNED ) THEN NULL WHEN + 75 THEN + MAX( DISTINCT 57 ) * - CAST( NULL AS SIGNED ) ELSE - 95 * + NULLIF ( COALESCE ( 86, - 49 ), ( - 91 ) ) END + - 53 WHEN 34 THEN NULL WHEN 83 THEN NULL END AS SIGNED ) WHEN + 94 * 91 + + 55 * + NULLIF ( 4, 38 + + 20 ) THEN MAX( 97 ) + - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT - 32 / - 17 - + CASE - - CAST ( CASE - 94 WHEN MAX ( - + 91 ) + CAST ( + COUNT ( * ) AS INTEGER ) / + COALESCE ( - 30, - 45, + 46 * + 99 ) THEN CASE 53 WHEN - 99 THEN + 53 / 82 + MAX ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) WHEN - CAST ( 31 AS INTEGER ) THEN NULL WHEN + 75 THEN + MAX ( DISTINCT 57 ) * - CAST ( NULL AS INTEGER ) ELSE - 95 * + NULLIF ( COALESCE ( 86, - 49 ), ( - 91 ) ) END + - 53 WHEN 34 THEN NULL WHEN 83 THEN NULL END AS INTEGER ) WHEN + 94 * 91 + + 55 * + NULLIF ( 4, 38 + + 20 ) THEN MAX ( 97 ) + - 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7245
SELECT DISTINCT - - 3 col2, MAX( 37 )
----
3
37

skipif mysql # not compatible
query II rowsort label-7245
SELECT DISTINCT - - 3 col2, MAX ( 37 )
----
3
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL MAX( DISTINCT 85 ) - + 60 + - 64 * - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL MAX ( DISTINCT 85 ) - + 60 + - 64 * - COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7248
SELECT COUNT( * ) * + - 91 * - + COUNT( * ) * + 59 * - - COUNT( * ), - 87 col0
----
5369
-87

skipif mysql # not compatible
query II rowsort label-7248
SELECT COUNT ( * ) * + - 91 * - + COUNT ( * ) * + 59 * - - COUNT ( * ), - 87 col0
----
5369
-87

query I rowsort
SELECT 27 * - - 43 + - 30 col0
----
1131

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT NULLIF ( + - 9, - COUNT( * ) ) + + - SUM( - 11 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7251
SELECT NULLIF ( + - 9, - COUNT ( * ) ) + + - SUM ( - 11 ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7252
SELECT ALL MAX( DISTINCT - 61 ) - + - CASE - ( - - 25 ) WHEN + 72 * + 97 THEN NULL ELSE - + 54 DIV + - COALESCE ( + 7, 69 * + 40 ) END
----
-54

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL MAX ( DISTINCT - 61 ) - + - CASE - ( - - 25 ) WHEN + 72 * + 97 THEN NULL ELSE - + 54 / + - COALESCE ( + 7, 69 * + 40 ) END
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT COUNT( * ) * + - 37 col0
----
-37

skipif mysql # not compatible
query I rowsort label-7253
SELECT COUNT ( * ) * + - 37 col0
----
-37

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

skipif mysql # not compatible
query I rowsort label-7254
SELECT ( + CAST ( NULL AS INTEGER ) ) * + + 35
----
NULL

query I rowsort
SELECT 16 + ( - + 8 )
----
8

query I rowsort
SELECT 61 * 14 AS col0
----
854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7257
SELECT ALL + SUM( DISTINCT + + 13 ) DIV - - 64 * - MIN( - - 9 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL + SUM ( DISTINCT + + 13 ) / - - 64 * - MIN ( - - 9 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT COUNT( * ) + - ( - COUNT( DISTINCT + + 89 ) ) + 50
----
52

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT COUNT ( * ) + - ( - COUNT ( DISTINCT + + 89 ) ) + 50
----
52

query I rowsort
SELECT DISTINCT + 47 * 92
----
4324

query I rowsort
SELECT ALL - 93 + + 41
----
-52

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7262
SELECT ALL + COUNT( - 85 ) * + + COUNT( * ) + - 13, 94 * - 57 AS col1
----
-12
-5358

skipif mysql # not compatible
query II rowsort label-7262
SELECT ALL + COUNT ( - 85 ) * + + COUNT ( * ) + - 13, 94 * - 57 AS col1
----
-12
-5358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT 70 + - 45 + + COUNT( * ) * COUNT( * ) * - - 31 * - + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT 70 + - 45 + + COUNT ( * ) * COUNT ( * ) * - - 31 * - + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + + 88
----
NULL

query I rowsort
SELECT DISTINCT - - 89 + - - 36 * + 90 AS col0
----
3329

query I rowsort
SELECT ALL - 4 + 79 AS col2
----
75

query II rowsort
SELECT - 69 * + + 62 AS col0, - ( - 37 ) * + - 36 + + 30 AS col0
----
-4278
-1302

query II rowsort
SELECT ALL - 13 + 16, + 97 AS col0
----
3
97

query I rowsort
SELECT ( 84 ) * + 7 * + 53 AS col1
----
31164

query I rowsort
SELECT DISTINCT + 11 + + 78 + ( - + 36 ) AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT - 33 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-7270
SELECT - 33 / + + 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT ALL + + 72 - - 68 + + 79 + - CASE 99 WHEN + - 50 THEN NULL ELSE - + COUNT( * ) END DIV + 92
----
219

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + + 72 - - 68 + + 79 + - CASE 99 WHEN + - 50 THEN NULL ELSE - + COUNT ( * ) END / + 92
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7272
SELECT COUNT( * ) * + + 19 * CAST( NULL AS SIGNED ) / - 66, CAST( NULL AS DECIMAL ) + + - 4 / + 30 * - 18 + + MIN( DISTINCT 79 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7272
SELECT COUNT ( * ) * + + 19 * CAST ( NULL AS INTEGER ) / - 66, CAST ( NULL AS REAL ) + + - 4 / + 30 * - 18 + + MIN ( DISTINCT 79 )
----
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT ALL + MAX( DISTINCT - + 78 ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + MAX ( DISTINCT - + 78 ) col0
----
-78

query I rowsort
SELECT + 69 + + 70 AS col0
----
139

query I rowsort
SELECT + 8 * 84
----
672

query I rowsort
SELECT DISTINCT 47 * - - 36
----
1692

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

skipif mysql # not compatible
query I rowsort label-7278
SELECT + 35 / + + 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT DISTINCT - SUM( ALL 18 ) * 34
----
-612

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT - SUM ( ALL 18 ) * 34
----
-612

query I rowsort
SELECT DISTINCT + 14 * - 34 AS col1
----
-476

query II rowsort
SELECT ALL - 91 AS col2, 89 AS col1
----
-91
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7282
SELECT COUNT( * ) + - 7 + - 51 + + - CAST( NULL AS SIGNED ) / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT COUNT ( * ) + - 7 + - 51 + + - CAST ( NULL AS INTEGER ) / + 14
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7283
SELECT 1 / + + 16
----
0

query I rowsort
SELECT 10 - - 2 * 38
----
86

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

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

query I rowsort
SELECT NULLIF ( - - 86, 94 ) * - 24 AS col0
----
-2064

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

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

query I rowsort
SELECT ALL 94 + + 12
----
106

query I rowsort
SELECT DISTINCT 5 + + 14 AS col2
----
19

query I rowsort
SELECT DISTINCT 99 * + 68 * - 76 AS col1
----
-511632

query I rowsort
SELECT - - 22 * + 83 AS col1
----
1826

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT ALL 7 + - - CASE + - AVG ( DISTINCT 98 ) WHEN - CASE - 47 WHEN + - 8 * COUNT( * ) / 30 + + COUNT( * ) - + 63 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + COUNT( * ) END THEN 96 - + 74 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL 7 + - - CASE + - AVG ( DISTINCT 98 ) WHEN - CASE - 47 WHEN + - 8 * COUNT ( * ) / 30 + + COUNT ( * ) - + 63 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END THEN 96 - + 74 * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7293
SELECT - + CAST( + CASE WHEN + 94 BETWEEN + + ( 16 ) AND NULL THEN NULL WHEN NOT NULL <> NULL THEN + 83 + + 27 END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT - + CAST ( + CASE WHEN + 94 BETWEEN + + ( 16 ) AND NULL THEN NULL WHEN NOT NULL <> NULL THEN + 83 + + 27 END AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 90 - + 19
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT + ( + + 82 ) + ( + 0 ) + - + SUM( ALL + 6 ) * - 18
----
190

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT + ( + + 82 ) + ( + 0 ) + - + SUM ( ALL + 6 ) * - 18
----
190

query I rowsort
SELECT ALL 73 - 11 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT ALL - COUNT( * ) * + COALESCE ( + - 30, - 49 - + - 68 ) AS col1, NULLIF ( 38, CASE + 45 WHEN 48 + COUNT( * ) THEN NULL ELSE + 20 END / 37 - 2 ) AS col0
----
30
38

skipif mysql # not compatible
query II rowsort label-7297
SELECT ALL - COUNT ( * ) * + COALESCE ( + - 30, - 49 - + - 68 ) AS col1, NULLIF ( 38, CASE + 45 WHEN 48 + COUNT ( * ) THEN NULL ELSE + 20 END / 37 - 2 ) AS col0
----
30
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT + - NULLIF ( + MAX( 37 ), - COALESCE ( 56, + COUNT( * ) * 62 + - 64 / + + COUNT( * ) + + 73 ) / + ( - 95 ) ) + + 15 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7298
SELECT + - NULLIF ( + MAX ( 37 ), - COALESCE ( 56, + COUNT ( * ) * 62 + - 64 / + + COUNT ( * ) + + 73 ) / + ( - 95 ) ) + + 15 AS col2
----
-22

query I rowsort
SELECT - + 96 * - 50
----
4800

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

skipif mysql # not compatible
query I rowsort label-7300
SELECT + + COUNT ( * ) + 37 AS col0
----
38

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

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

query I rowsort
SELECT ALL + 15 * - 84 + - 92 AS col1
----
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT - + SUM( ALL + 82 ) + - 23 * + 16 + 18
----
-432

skipif mysql # not compatible
query I rowsort label-7303
SELECT - + SUM ( ALL + 82 ) + - 23 * + 16 + 18
----
-432

query I rowsort
SELECT - ( CASE 67 WHEN - - 48 THEN - + 56 + - 34 - - - 85 + - 66 WHEN 68 + - 15 THEN NULL END ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7305
SELECT ALL + 66 - + + 64 + + ( - COUNT( ALL - - 91 ) ) * + 69 DIV 83
----
2

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + 66 - + + 64 + + ( - COUNT ( ALL - - 91 ) ) * + 69 / 83
----
2

query I rowsort
SELECT - 6 * - 57 + + - 81 * - ( + - 83 )
----
-6381

query I rowsort
SELECT ALL 76 * - 36 AS col2
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT - 33 + + 48 + - COUNT( * ) * - + 45
----
60

skipif mysql # not compatible
query I rowsort label-7308
SELECT - 33 + + 48 + - COUNT ( * ) * - + 45
----
60

query I rowsort
SELECT - 49 + - + 69 col0
----
-118

query I rowsort
SELECT ( - NULLIF ( + ( - - 74 ), 45 ) )
----
-74

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7312
SELECT 37 * + COUNT( * ) * 39 DIV - - 13 + - 30
----
81

skipif mysql # not compatible
query I rowsort label-7312
SELECT 37 * + COUNT ( * ) * 39 / - - 13 + - 30
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ( + - MAX( - ( - 59 ) ) ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7313
SELECT ( + - MAX ( - ( - 59 ) ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7314
SELECT ALL - COUNT( ALL 7 ) DIV - SUM( - + 56 ) + + 83 + - 38 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL - COUNT ( ALL 7 ) / - SUM ( - + 56 ) + + 83 + - 38 AS col2
----
45

query I rowsort
SELECT - 54 * - 1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7316
SELECT - 70 DIV 40 * + 83 + - 61 * + - SUM( DISTINCT - - NULLIF ( - 84, + 95 ) )
----
-5207

skipif mysql # not compatible
query I rowsort label-7316
SELECT - 70 / 40 * + 83 + - 61 * + - SUM ( DISTINCT - - NULLIF ( - 84, + 95 ) )
----
-5207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7317
SELECT + 82 * - 75 * - + 38 - MAX( ALL + 92 ) DIV 64 * + 40 * + 0 + + COUNT( * ) col0
----
233701

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 82 * - 75 * - + 38 - MAX ( ALL + 92 ) / 64 * + 40 * + 0 + + COUNT ( * ) col0
----
233701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7318
SELECT + 60, 23 * MAX( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) / - ( - SUM( ALL - CAST( - + 34 AS SIGNED ) ) ) AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7318
SELECT + 60, 23 * MAX ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) / - ( - SUM ( ALL - CAST ( - + 34 AS INTEGER ) ) ) AS col1
----
60
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT DISTINCT - 62 * + 45 + + 33 + - 66 - AVG ( + 18 ) - - 96 * - 2 * 68 * + CAST( NULL AS SIGNED ) * + 34 * 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT - 62 * + 45 + + 33 + - 66 - AVG ( + 18 ) - - 96 * - 2 * 68 * + CAST ( NULL AS INTEGER ) * + 34 * 28 AS col0
----
NULL

query II rowsort
SELECT ( + 81 ) col0, + 11 + 75
----
81
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL + COUNT( * ) * 95 * - 48 + - 52
----
-4612

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL + COUNT ( * ) * 95 * - 48 + - 52
----
-4612

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

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

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - ( + 87 ) * - + COUNT ( * ) AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7324
SELECT + 76 DIV + + 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7324
SELECT + 76 / + + 41 AS col0
----
1

query I rowsort
SELECT COALESCE ( - + 12, + 26, - 71 )
----
-12

query I rowsort
SELECT - 23 * - 58 AS col2
----
1334

query I rowsort
SELECT CASE 61 WHEN - 79 THEN + 46 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT 25 * - + 22 + + CASE - 30 WHEN - 8 THEN + 97 + ( - NULLIF ( - 43, + - 27 ) ) END * - 14 + - 86 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT 25 * - + 22 + + CASE - 30 WHEN - 8 THEN + 97 + ( - NULLIF ( - 43, + - 27 ) ) END * - 14 + - 86 * COUNT ( * )
----
NULL

query I rowsort
SELECT + 6 * - + 75 + 25 AS col2
----
-425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7330
SELECT ALL 31 * - 54 * NULLIF ( + 80, + CAST( NULL AS SIGNED ) ) + 30 + + - COUNT( * ) DIV - + 26 AS col0
----
-133890

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL 31 * - 54 * NULLIF ( + 80, + CAST ( NULL AS INTEGER ) ) + 30 + + - COUNT ( * ) / - + 26 AS col0
----
-133890

query I rowsort
SELECT DISTINCT + 55 * 0 AS col1
----
0

query I rowsort
SELECT DISTINCT 30 * 29 - + 30 AS col2
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7333
SELECT + - 16 + - 46 * - + COUNT( * ) - - + CAST( NULLIF ( + + 87, 50 * - 74 - 79 ) AS SIGNED ) * ( + 77 )
----
6729

skipif mysql # not compatible
query I rowsort label-7333
SELECT + - 16 + - 46 * - + COUNT ( * ) - - + CAST ( NULLIF ( + + 87, 50 * - 74 - 79 ) AS INTEGER ) * ( + 77 )
----
6729

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL + 90 * 22 - SUM( DISTINCT + 28 ) AS col0
----
1952

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + 90 * 22 - SUM ( DISTINCT + 28 ) AS col0
----
1952

onlyif mysql # DIV for integer division: 
query II rowsort label-7335
SELECT ALL - 88 AS col1, - 67 DIV - 28
----
-88
2

skipif mysql # not compatible
query II rowsort label-7335
SELECT ALL - 88 AS col1, - 67 / - 28
----
-88
2

query I rowsort
SELECT + + 41 + - 84 AS col0
----
-43

query II rowsort
SELECT - + 63, 90 AS col1
----
-63
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7338
SELECT + - MAX( DISTINCT - + 65 ) * + - 17 / + 44 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT + - MAX ( DISTINCT - + 65 ) * + - 17 / + 44 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT + COUNT( * ) + + COUNT( * ) * ( + 39 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7339
SELECT + COUNT ( * ) + + COUNT ( * ) * ( + 39 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT + 37 + - 97 + + 95 + - 6 * + 65 + + - COUNT( * )
----
-356

skipif mysql # not compatible
query I rowsort label-7340
SELECT + 37 + - 97 + + 95 + - 6 * + 65 + + - COUNT ( * )
----
-356

query II rowsort
SELECT + 81 * 87 AS col0, - 37 + + 97
----
7047
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT ALL - ( 83 ) DIV + + 67
----
-1

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - ( 83 ) / + + 67
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT - + CASE 35 WHEN + AVG ( DISTINCT + - 54 ) THEN NULL WHEN 29 + - COUNT( * ) THEN NULL ELSE 99 END AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7343
SELECT - + CASE 35 WHEN + AVG ( DISTINCT + - 54 ) THEN NULL WHEN 29 + - COUNT ( * ) THEN NULL ELSE 99 END AS col2
----
-99

query I rowsort
SELECT - + 48 * 51 col2
----
-2448

query I rowsort
SELECT + 37 * - ( - 56 ) col2
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL - 5 + - SUM( DISTINCT COALESCE ( + 90, + - 39 * + - ( 12 ) - - - 4, + 97 ) ) * 94
----
-8465

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL - 5 + - SUM ( DISTINCT COALESCE ( + 90, + - 39 * + - ( 12 ) - - - 4, + 97 ) ) * 94
----
-8465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7347
SELECT ALL - 96 * - 26 * - + 68 * + - ( - 43 ) * - 38 / CAST( NULL AS SIGNED ) + + + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL - 96 * - 26 * - + 68 * + - ( - 43 ) * - 38 / CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 36 * - 50
----
1800

query I rowsort
SELECT ALL + 33 + + 0
----
33

query I rowsort
SELECT DISTINCT COALESCE ( + 85, 43 ) + + 98 AS col2
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7351
SELECT 24 DIV - 46 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7351
SELECT 24 / - 46 + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 52 + + 41
----
-11

query I rowsort
SELECT 61 + + - ( - + 69 ) * + 35
----
2476

query I rowsort
SELECT 45 + + - 76 AS col1
----
-31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT 90 * - ( CAST( + ( - 78 ) AS SIGNED ) ) AS col2
----
7020

skipif mysql # not compatible
query I rowsort label-7356
SELECT 90 * - ( CAST ( + ( - 78 ) AS INTEGER ) ) AS col2
----
7020

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7357
SELECT ALL - 34 * - 17, + 37 * - - 15 + + ( + CAST( NULL AS SIGNED ) ) AS col1
----
578
NULL

skipif mysql # not compatible
query II rowsort label-7357
SELECT ALL - 34 * - 17, + 37 * - - 15 + + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
578
NULL

query I rowsort
SELECT DISTINCT - 44 * + 58
----
-2552

query I rowsort
SELECT DISTINCT + 15 - - + 15 + 72 AS col2
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7360
SELECT 14 - NULLIF ( - COUNT( * ), - + 23 ) DIV COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7360
SELECT 14 - NULLIF ( - COUNT ( * ), - + 23 ) / COUNT ( * ) AS col2
----
15

query II rowsort
SELECT ALL - 82 * - 87 AS col1, - 72 * + 92
----
7134
-6624

query I rowsort
SELECT 31 - + 32 + + ( + 97 ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7363
SELECT CAST( + 12 AS SIGNED ) * + + COUNT( * ) * - 83 - - 62 + + 67 * 71 * + + 74 * + + 34 AS col0
----
11967678

skipif mysql # not compatible
query I rowsort label-7363
SELECT CAST ( + 12 AS INTEGER ) * + + COUNT ( * ) * - 83 - - 62 + + 67 * 71 * + + 74 * + + 34 AS col0
----
11967678

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7364
SELECT 21 DIV 93 * - + COUNT( * ) + + + 62
----
62

skipif mysql # not compatible
query I rowsort label-7364
SELECT 21 / 93 * - + COUNT ( * ) + + + 62
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7365
SELECT - 13 * 31 * + - 85 + + 34 + - CASE - 70 WHEN - 5 THEN + AVG ( + ( - - 92 ) ) + 26 + 26 * + ( + 79 * CAST( CASE - COUNT( * ) WHEN - COUNT( * ) THEN - 92 * + 28 WHEN COUNT( * ) THEN NULL END AS SIGNED ) ) ELSE + COUNT( * ) END * + 65 DIV 16 col2
----
34285

skipif mysql # not compatible
query I rowsort label-7365
SELECT - 13 * 31 * + - 85 + + 34 + - CASE - 70 WHEN - 5 THEN + AVG ( + ( - - 92 ) ) + 26 + 26 * + ( + 79 * CAST ( CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN - 92 * + 28 WHEN COUNT ( * ) THEN NULL END AS INTEGER ) ) ELSE + COUNT ( * ) END * + 65 / 16 col2
----
34285

query II rowsort
SELECT - 79 * + 7, + 83 + + + 67 AS col0
----
-553
150

onlyif mysql # aggregate syntax: 
query II rowsort label-7367
SELECT ALL + 49 * - + COUNT( * ) AS col2, 81
----
-49
81

skipif mysql # not compatible
query II rowsort label-7367
SELECT ALL + 49 * - + COUNT ( * ) AS col2, 81
----
-49
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7368
SELECT + CASE 4 WHEN 74 + + 3 THEN - 65 WHEN - CAST( NULL AS SIGNED ) THEN - 94 - - 2 + + 46 + + - 25 * 99 / NULLIF ( - CAST( + COUNT( * ) AS SIGNED ), - 75 + COUNT( DISTINCT - 90 ) * 79 ) + CAST( NULL AS DECIMAL ) ELSE NULL END - + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT + CASE 4 WHEN 74 + + 3 THEN - 65 WHEN - CAST ( NULL AS INTEGER ) THEN - 94 - - 2 + + 46 + + - 25 * 99 / NULLIF ( - CAST ( + COUNT ( * ) AS INTEGER ), - 75 + COUNT ( DISTINCT - 90 ) * 79 ) + CAST ( NULL AS REAL ) ELSE NULL END - + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT + COUNT( * ) * 6 / CASE + + COALESCE ( + - 45, COUNT( DISTINCT - 7 ) ) WHEN + ( + CASE - MAX( DISTINCT 90 ) WHEN + 39 * - ( - MAX( + 71 ) ) THEN NULL WHEN + 98 THEN NULL ELSE - 66 END ) THEN + 13 * COUNT( * ) WHEN 89 THEN + 7 / ( + COUNT( ALL - 94 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + COUNT ( * ) * 6 / CASE + + COALESCE ( + - 45, COUNT ( DISTINCT - 7 ) ) WHEN + ( + CASE - MAX ( DISTINCT 90 ) WHEN + 39 * - ( - MAX ( + 71 ) ) THEN NULL WHEN + 98 THEN NULL ELSE - 66 END ) THEN + 13 * COUNT ( * ) WHEN 89 THEN + 7 / ( + COUNT ( ALL - 94 ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT ( + 34 ) + + 80 + - + ( 5 ) AS col1, - ( - + 5 ) * + 26 - + 74 * - 32
----
109
2498

query I rowsort
SELECT 72 + - - 28 AS col2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT ( + + 26 ) + + + 13 + CAST( NULL AS SIGNED ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7372
SELECT ( + + 26 ) + + + 13 + CAST ( NULL AS INTEGER ) + 16
----
NULL

query I rowsort
SELECT ALL 95 + - 50 + - + 28 + + 72 - 1 * + + 74
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT DISTINCT 19 + 47 DIV 81
----
19

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT 19 + 47 / 81
----
19

query I rowsort
SELECT ALL 77 + 38 + - 37 + - 51
----
27

query II rowsort
SELECT ALL 58 col2, + NULLIF ( - 72, + 15 / + 88 ) - - - 33 AS col1
----
58
-105

query I rowsort
SELECT DISTINCT 83 + 52 AS col0
----
135

query I rowsort
SELECT NULLIF ( - 50, 5 + 35 ) * 89 col0
----
-4450

query I rowsort
SELECT ALL 17 + + 78 AS col0
----
95

query I rowsort
SELECT 45 * - 54
----
-2430

query II rowsort
SELECT + 25 AS col1, + 87
----
25
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT ( - 19 ) DIV 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7382
SELECT ( - 19 ) / 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT + 36 * + ( 20 ) + ( - COUNT( * ) ) + - COUNT( * ) + COUNT( * )
----
719

skipif mysql # not compatible
query I rowsort label-7383
SELECT + 36 * + ( 20 ) + ( - COUNT ( * ) ) + - COUNT ( * ) + COUNT ( * )
----
719

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL SUM( - 0 ) - - 9
----
9

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL SUM ( - 0 ) - - 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL + SUM( DISTINCT + 31 ) - + + 65 * + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL + SUM ( DISTINCT + 31 ) - + + 65 * + COUNT ( * )
----
-34

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

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

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

skipif mysql # not compatible
query I rowsort label-7388
SELECT COUNT ( * ) + 91 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT + - 2 * + MIN( 58 ) * - - 69 + - + 10 AS col1
----
-8014

skipif mysql # not compatible
query I rowsort label-7389
SELECT + - 2 * + MIN ( 58 ) * - - 69 + - + 10 AS col1
----
-8014

query I rowsort
SELECT 36 - - ( + 5 )
----
41

query I rowsort
SELECT DISTINCT + - 88 * + 50 AS col0
----
-4400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT 85 / + 17 + + - 73 / + - ( + CASE + 95 WHEN + COALESCE ( - 75, - NULLIF ( 18, + + 45 ) ) + + 87 + + COALESCE ( ( + 31 ), - COALESCE ( - 24, - 94, 88 + COALESCE ( - 44 + 93, 39 + 48 ) ), 98, 39 * + 57 ) / 91 THEN - 99 - 43 WHEN - CASE 65 WHEN 73 THEN 24 WHEN + 94 THEN - 9 * ( 43 / 25 ) END THEN NULL WHEN AVG ( + CAST( 49 AS SIGNED ) ) * + 55 THEN NULL END ) * + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT 85 / + 17 + + - 73 / + - ( + CASE + 95 WHEN + COALESCE ( - 75, - NULLIF ( 18, + + 45 ) ) + + 87 + + COALESCE ( ( + 31 ), - COALESCE ( - 24, - 94, 88 + COALESCE ( - 44 + 93, 39 + 48 ) ), 98, 39 * + 57 ) / 91 THEN - 99 - 43 WHEN - CASE 65 WHEN 73 THEN 24 WHEN + 94 THEN - 9 * ( 43 / 25 ) END THEN NULL WHEN AVG ( + CAST ( 49 AS INTEGER ) ) * + 55 THEN NULL END ) * + 28 AS col1
----
NULL

query I rowsort
SELECT ALL + 78 + - + 32
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7394
SELECT 15 + COUNT( * ) + - 32 DIV - 22 * - + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7394
SELECT 15 + COUNT ( * ) + - 32 / - 22 * - + COUNT ( * )
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7396
SELECT DISTINCT - 76 + ( + 5 ) + 51 * + 68 * - - SUM( COALESCE ( 83, - ( + COALESCE ( + 93, NULLIF ( 86, 37 + + CAST( NULL AS DECIMAL ) ) ) ) * 38 ) )
----
287773

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - 76 + ( + 5 ) + 51 * + 68 * - - SUM ( COALESCE ( 83, - ( + COALESCE ( + 93, NULLIF ( 86, 37 + + CAST ( NULL AS REAL ) ) ) ) * 38 ) )
----
287773

query I rowsort
SELECT ALL + + 46 + + + 15
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT MAX( + 28 ) * 77 * ( - + 72 )
----
-155232

skipif mysql # not compatible
query I rowsort label-7398
SELECT MAX ( + 28 ) * 77 * ( - + 72 )
----
-155232

query I rowsort
SELECT - + NULLIF ( + 99, - + 27 * 75 )
----
-99

query I rowsort
SELECT DISTINCT + 85 + + + 72 AS col2
----
157

query II rowsort
SELECT 27 AS col2, 89 AS col0
----
27
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7402
SELECT SUM( DISTINCT 41 ) DIV - + CAST( - COUNT( * ) AS SIGNED )
----
41

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

query I rowsort
SELECT + 35 + - 31 AS col1
----
4

query II rowsort
SELECT ALL + 89, - 52 AS col2
----
89
-52

query I rowsort
SELECT - 90 * + 41 AS col2
----
-3690

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL - ( + + 94 ) + COALESCE ( - COUNT( * ), 0 + - 71 - + 70, - - 23, + 65, + + 88 + + 43 )
----
-95

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - ( + + 94 ) + COALESCE ( - COUNT ( * ), 0 + - 71 - + 70, - - 23, + 65, + + 88 + + 43 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT DISTINCT + MAX( DISTINCT + 62 ) + - 9 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT + MAX ( DISTINCT + 62 ) + - 9 AS col2
----
53

query II rowsort
SELECT DISTINCT 36 * + 81, 45 * + 96 AS col0
----
2916
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL CASE + 25 WHEN - COUNT( * ) THEN + 13 ELSE 81 * 65 - - 25 + - ( 89 ) END
----
5201

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL CASE + 25 WHEN - COUNT ( * ) THEN + 13 ELSE 81 * 65 - - 25 + - ( 89 ) END
----
5201

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL 71 * COUNT( DISTINCT 6 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL 71 * COUNT ( DISTINCT 6 ) col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT - COUNT( * ) - - + 63 + - 37 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7411
SELECT - COUNT ( * ) - - + 63 + - 37 AS col2
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT + SUM( DISTINCT + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7413
SELECT + SUM ( DISTINCT + 93 ) AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7414
SELECT ALL + CAST( NULL AS DECIMAL ) * + - COUNT( * ) * COALESCE ( + 76, - 85, - CASE + - 77 WHEN - COUNT( * ) THEN 74 WHEN - 8 THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL + CAST ( NULL AS REAL ) * + - COUNT ( * ) * COALESCE ( + 76, - 85, - CASE + - 77 WHEN - COUNT ( * ) THEN 74 WHEN - 8 THEN NULL ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7415
SELECT ALL COUNT( * ) DIV - SUM( ALL - 60 ) * + 26 * + 14 + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL COUNT ( * ) / - SUM ( ALL - 60 ) * + 26 * + 14 + - 70
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT ALL + MAX( CAST( NULL AS SIGNED ) ) * - ( - 29 ) - - 7 * 75 * - + ( + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL + MAX ( CAST ( NULL AS INTEGER ) ) * - ( - 29 ) - - 7 * 75 * - + ( + 81 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7417
SELECT ALL COUNT( DISTINCT - 44 ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL COUNT ( DISTINCT - 44 ) / - 66
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7418
SELECT + CAST( - 90 AS SIGNED ) * 96 * + 57, 20 DIV + + 6 AS col0
----
-492480
3

skipif mysql # not compatible
query II rowsort label-7418
SELECT + CAST ( - 90 AS INTEGER ) * 96 * + 57, 20 / + + 6 AS col0
----
-492480
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7419
SELECT - + ( + 45 ) DIV NULLIF ( + 31, + + COALESCE ( - 12, 72 + - 60 * + CASE CAST( + + 7 AS DECIMAL ) WHEN + 4 DIV + + 21 + 25 - + 76 + COUNT( * ) THEN 36 - 92 ELSE ( COUNT( * ) ) * 91 END ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7419
SELECT - + ( + 45 ) / NULLIF ( + 31, + + COALESCE ( - 12, 72 + - 60 * + CASE CAST ( + + 7 AS REAL ) WHEN + 4 / + + 21 + 25 - + 76 + COUNT ( * ) THEN 36 - 92 ELSE ( COUNT ( * ) ) * 91 END ) )
----
-1

query I rowsort
SELECT ALL + 74 * - + 75 AS col0
----
-5550

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

skipif mysql # not compatible
query I rowsort label-7421
SELECT + + 68 * - COUNT ( * ) + 1 + + 10 AS col1
----
-57

query I rowsort
SELECT - ( NULLIF ( 73, - 22 ) ) * - - 40 + + 86
----
-2834

onlyif mysql # aggregate syntax: 
query II rowsort label-7423
SELECT + - 93 * + 20 + - + 10 * + 42 + + - 52 + MIN( 82 ) AS col0, - 74
----
-2250
-74

skipif mysql # not compatible
query II rowsort label-7423
SELECT + - 93 * + 20 + - + 10 * + 42 + + - 52 + MIN ( 82 ) AS col0, - 74
----
-2250
-74

query I rowsort
SELECT ALL + ( + 77 ) * 1 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7425
SELECT DISTINCT COALESCE ( + NULLIF ( - CASE MAX( + 33 ) WHEN MAX( + - 31 ) THEN NULL ELSE - 31 END, + 37 + 99 ), + COUNT( * ) * + + 12 + 37 DIV - CAST( NULL AS SIGNED ) * - 7 ) * 34 AS col0
----
1054

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT COALESCE ( + NULLIF ( - CASE MAX ( + 33 ) WHEN MAX ( + - 31 ) THEN NULL ELSE - 31 END, + 37 + 99 ), + COUNT ( * ) * + + 12 + 37 / - CAST ( NULL AS INTEGER ) * - 7 ) * 34 AS col0
----
1054

query I rowsort
SELECT ALL + - 76 * - + 40 + + + 67 + 91
----
3198

query II rowsort
SELECT ALL 31 * + 70, - 61 * + 7 AS col1
----
2170
-427

query I rowsort
SELECT ALL + - 57 * 67 + 84 AS col0
----
-3735

query I rowsort
SELECT + - 41 - - 24 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7430
SELECT - + 61 * + 24 AS col2, COUNT( + - 37 ) + - + NULLIF ( - - COUNT( * ), - 74 + 40 )
----
-1464
0

skipif mysql # not compatible
query II rowsort label-7430
SELECT - + 61 * + 24 AS col2, COUNT ( + - 37 ) + - + NULLIF ( - - COUNT ( * ), - 74 + 40 )
----
-1464
0

query I rowsort
SELECT ALL + 6 + - 57
----
-51

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

skipif mysql # not compatible
query I rowsort label-7432
SELECT - 73 * COUNT ( * )
----
-73

query I rowsort
SELECT - 84 - + 26
----
-110

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

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

query I rowsort
SELECT ALL + 74 - - 93 * - 20 + + - 21
----
-1807

onlyif mysql # aggregate syntax: 
query II rowsort label-7436
SELECT - 48 + + - COUNT( * ) + + 39, ( + NULLIF ( + 76, + + 16 ) ) * 55 + 37 + + + 71 AS col1
----
-10
4288

skipif mysql # not compatible
query II rowsort label-7436
SELECT - 48 + + - COUNT ( * ) + + 39, ( + NULLIF ( + 76, + + 16 ) ) * 55 + 37 + + + 71 AS col1
----
-10
4288

onlyif mysql # aggregate syntax: 
query II rowsort label-7437
SELECT 39 AS col0, COUNT( * ) * - - 41 col2
----
39
41

skipif mysql # not compatible
query II rowsort label-7437
SELECT 39 AS col0, COUNT ( * ) * - - 41 col2
----
39
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - COUNT( * ) + + 37
----
36

skipif mysql # not compatible
query I rowsort label-7440
SELECT - COUNT ( * ) + + 37
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7441
SELECT - 76 + - 84 + - - 26 * + + 6 * + 54 * + 43 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT - 76 + - 84 + - - 26 * + + 6 * + 54 * + 43 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7442
SELECT DISTINCT + 57 - + 5 * 91 + - COUNT( 21 ), CAST( NULL AS SIGNED ) AS col1
----
-399
NULL

skipif mysql # not compatible
query II rowsort label-7442
SELECT DISTINCT + 57 - + 5 * 91 + - COUNT ( 21 ), CAST ( NULL AS INTEGER ) AS col1
----
-399
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7443
SELECT ALL ( + + MAX( 92 ) ) AS col2, + ( + 6 ) AS col0
----
92
6

skipif mysql # not compatible
query II rowsort label-7443
SELECT ALL ( + + MAX ( 92 ) ) AS col2, + ( + 6 ) AS col0
----
92
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT - ( + COUNT( ALL - - 33 ) ) + - CAST( + 94 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7444
SELECT - ( + COUNT ( ALL - - 33 ) ) + - CAST ( + 94 AS INTEGER ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7445
SELECT + 46 + - + CAST( + + 12 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7445
SELECT + 46 + - + CAST ( + + 12 AS INTEGER ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7446
SELECT - COALESCE ( + MAX( + + 39 ), - CAST( NULL AS SIGNED ) * - 11 + + 55 + - + 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-7446
SELECT - COALESCE ( + MAX ( + + 39 ), - CAST ( NULL AS INTEGER ) * - 11 + + 55 + - + 40 )
----
-39

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

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

query I rowsort
SELECT - ( + 98 ) + 36 AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7449
SELECT + COUNT( * ) AS col2, ( - ( + NULLIF ( CAST( + 34 AS SIGNED ), 65 + - ( - ( 40 ) ) / - 49 ) ) ) + COUNT( * )
----
1
-33

skipif mysql # not compatible
query II rowsort label-7449
SELECT + COUNT ( * ) AS col2, ( - ( + NULLIF ( CAST ( + 34 AS INTEGER ), 65 + - ( - ( 40 ) ) / - 49 ) ) ) + COUNT ( * )
----
1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT - + 1 * - 45 * - 94 + - - NULLIF ( SUM( + + ( + 67 ) ), 91 / + 13 ) AS col1
----
-4163

skipif mysql # not compatible
query I rowsort label-7450
SELECT - + 1 * - 45 * - 94 + - - NULLIF ( SUM ( + + ( + 67 ) ), 91 / + 13 ) AS col1
----
-4163

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT - NULLIF ( - 98, 13 * + 32 + - ( + MAX( ALL + 69 ) ) ) * NULLIF ( - - 77, + - 76 ) AS col2
----
7546

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - NULLIF ( - 98, 13 * + 32 + - ( + MAX ( ALL + 69 ) ) ) * NULLIF ( - - 77, + - 76 ) AS col2
----
7546

query I rowsort
SELECT + + 31 + - + 93 col0
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT CASE - 55 WHEN - COUNT( - - 67 ) + - - 10 THEN NULL WHEN - 82 * - - NULLIF ( + 56, - NULLIF ( 0, - 15 ) + - 2 - 61 ) THEN + 98 * - COUNT( * ) + NULLIF ( + 73 + + 90, + 82 ) ELSE + COUNT( * ) * - 62 END * - 11 + - 98 AS col1
----
584

skipif mysql # not compatible
query I rowsort label-7454
SELECT CASE - 55 WHEN - COUNT ( - - 67 ) + - - 10 THEN NULL WHEN - 82 * - - NULLIF ( + 56, - NULLIF ( 0, - 15 ) + - 2 - 61 ) THEN + 98 * - COUNT ( * ) + NULLIF ( + 73 + + 90, + 82 ) ELSE + COUNT ( * ) * - 62 END * - 11 + - 98 AS col1
----
584

onlyif mysql # DIV for integer division: 
query II rowsort label-7455
SELECT ALL + 43 DIV - - 83 * 69 + - 48 DIV - + 87 + - 87 + + 84 - - 47 AS col0, NULLIF ( - - 51, AVG ( ALL - 36 ) ) AS col2
----
44
51

skipif mysql # not compatible
query II rowsort label-7455
SELECT ALL + 43 / - - 83 * 69 + - 48 / - + 87 + - 87 + + 84 - - 47 AS col0, NULLIF ( - - 51, AVG ( ALL - 36 ) ) AS col2
----
44
51

query I rowsort
SELECT - CASE - + 62 WHEN 52 THEN NULLIF ( 87, 41 - + 99 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7457
SELECT + 21 + + + 85 + - 46 - - COUNT( * ) * - - CAST( COUNT( * ) AS SIGNED ) * - + 56 DIV + 29 AS col1, COUNT( * ) * - 85
----
59
-85

skipif mysql # not compatible
query II rowsort label-7457
SELECT + 21 + + + 85 + - 46 - - COUNT ( * ) * - - CAST ( COUNT ( * ) AS INTEGER ) * - + 56 / + 29 AS col1, COUNT ( * ) * - 85
----
59
-85

query I rowsort
SELECT 90 * - - 79 + + - 98 - 27 AS col2
----
6985

query I rowsort
SELECT 68 - - 28 + NULLIF ( - - 78, 59 ) + + 37 + 60 * - 91 col1
----
-5249

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL MAX( ALL + 70 ) + - - 14 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL MAX ( ALL + 70 ) + - - 14 AS col0
----
84

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

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

query I rowsort
SELECT 47 + 37 * + + 47 AS col2
----
1786

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT DISTINCT 49 * 31 DIV + 81 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT 49 * 31 / + 81 AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7464
SELECT 64 + - COUNT( * ) + - ( - + 11 ) AS col0, - 15 AS col0
----
74
-15

skipif mysql # not compatible
query II rowsort label-7464
SELECT 64 + - COUNT ( * ) + - ( - + 11 ) AS col0, - 15 AS col0
----
74
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT CAST( NULL AS SIGNED ) * - 62 / 97 * 14 * 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT CAST ( NULL AS INTEGER ) * - 62 / 97 * 14 * 88 AS col0
----
NULL

query I rowsort
SELECT 71 * + + 14 AS col0
----
994

query II rowsort
SELECT 11 AS col0, ( - 75 ) AS col0
----
11
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT + 12 * - 88 + 7 DIV - 90 * 34 AS col0
----
-1056

skipif mysql # not compatible
query I rowsort label-7468
SELECT + 12 * - 88 + 7 / - 90 * 34 AS col0
----
-1056

query II rowsort
SELECT DISTINCT 60 col2, ( - + 71 ) col1
----
60
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7470
SELECT - 62 AS col0, CAST( - 1 AS SIGNED ) AS col2
----
-62
-1

skipif mysql # not compatible
query II rowsort label-7470
SELECT - 62 AS col0, CAST ( - 1 AS INTEGER ) AS col2
----
-62
-1

query II rowsort
SELECT ALL 64, 64 AS col0
----
64
64

query I rowsort
SELECT DISTINCT - 98 * 49 * - - 30 AS col0
----
-144060

query I rowsort
SELECT ( + 39 ) * 13 + - 8 * - 29 AS col2
----
739

query II rowsort
SELECT 24 col2, 65 * + 91 AS col0
----
24
5915

query I rowsort
SELECT 99 * 33 AS col1
----
3267

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT MAX( - 62 ) - + 14
----
-76

skipif mysql # not compatible
query I rowsort label-7476
SELECT MAX ( - 62 ) - + 14
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT 5 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7477
SELECT 5 / 62 AS col1
----
0

query II rowsort
SELECT ALL 32, 70 AS col1
----
32
70

query I rowsort
SELECT 79 - + 88 + - 50 AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT 86 * 13 DIV - 1 AS col2
----
-1118

skipif mysql # not compatible
query I rowsort label-7480
SELECT 86 * 13 / - 1 AS col2
----
-1118

query I rowsort
SELECT 89 * - - 14 AS col0
----
1246

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL + - COUNT( * ) + COUNT( * ) * - 77
----
-78

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + - COUNT ( * ) + COUNT ( * ) * - 77
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT - COALESCE ( - - 57, - 73 + CASE + 3 WHEN COUNT( * ) THEN NULL ELSE + 77 * 51 END ) + - - 31 * + 37 AS col1
----
1090

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT - COALESCE ( - - 57, - 73 + CASE + 3 WHEN COUNT ( * ) THEN NULL ELSE + 77 * 51 END ) + - - 31 * + 37 AS col1
----
1090

query I rowsort
SELECT ALL - COALESCE ( 98, - 40 * + 53, + 94 )
----
-98

query I rowsort
SELECT DISTINCT + - 14 + + - 60
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7487
SELECT ALL - + 13, SUM( - + 8 ) AS col1
----
-13
-8

skipif mysql # not compatible
query II rowsort label-7487
SELECT ALL - + 13, SUM ( - + 8 ) AS col1
----
-13
-8

query II rowsort
SELECT 91 AS col1, 3 + 19 col0
----
91
22

query I rowsort
SELECT 62 + + 71 AS col2
----
133

query II rowsort
SELECT + 19, 0 col1
----
19
0

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

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - + COUNT ( ALL + 44 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT DISTINCT + NULLIF ( 23, + 13 + CASE + 54 WHEN - + 85 THEN - 35 WHEN + - 11 THEN NULL END - - 14 + + + 99 * + + COUNT( * ) ) + + 75 + - 78 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT + NULLIF ( 23, + 13 + CASE + 54 WHEN - + 85 THEN - 35 WHEN + - 11 THEN NULL END - - 14 + + + 99 * + + COUNT ( * ) ) + + 75 + - 78 AS col2
----
20

query I rowsort
SELECT DISTINCT - + 10 * + - ( 24 )
----
240

query II rowsort
SELECT 52 AS col0, 34 * + 34 AS col2
----
52
1156

query II rowsort
SELECT + - 62 AS col0, - 91 * 87 * - 59
----
-62
467103

query I rowsort
SELECT ALL + 4 - + - 77
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT + COUNT( * ) * 38 + + 2 + + - 75 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7497
SELECT + COUNT ( * ) * 38 + + 2 + + - 75 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT - CASE - 73 WHEN 46 + 97 THEN NULL WHEN MAX( ALL 30 ) THEN NULL WHEN + MIN( - + 93 ) * - 80 THEN - - 42 ELSE - 91 + - COUNT( * ) + 31 END col0
----
61

skipif mysql # not compatible
query I rowsort label-7498
SELECT - CASE - 73 WHEN 46 + 97 THEN NULL WHEN MAX ( ALL 30 ) THEN NULL WHEN + MIN ( - + 93 ) * - 80 THEN - - 42 ELSE - 91 + - COUNT ( * ) + 31 END col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7499
SELECT DISTINCT 60 DIV - ( - 78 ) * - + 11
----
0

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT 60 / - ( - 78 ) * - + 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT CASE + - 3 WHEN 14 + COUNT( * ) THEN + 16 WHEN - - 57 THEN NULL WHEN 64 THEN - 20 ELSE NULL END / 94 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT CASE + - 3 WHEN 14 + COUNT ( * ) THEN + 16 WHEN - - 57 THEN NULL WHEN 64 THEN - 20 ELSE NULL END / 94 * - 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7501
SELECT - COUNT( + 57 ), 22 AS col2
----
-1
22

skipif mysql # not compatible
query II rowsort label-7501
SELECT - COUNT ( + 57 ), 22 AS col2
----
-1
22

query I rowsort
SELECT DISTINCT + 2 * - - 45
----
90

query I rowsort
SELECT DISTINCT 18 * - NULLIF ( - 89, - + 75 ) AS col0
----
1602

query I rowsort
SELECT 89 - + 81 + 9
----
17

query I rowsort
SELECT ALL 53 * 5
----
265

query I rowsort
SELECT 96 * - 84
----
-8064

query I rowsort
SELECT 8 * - - 54
----
432

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7509
SELECT ( + + 60 ) + + COUNT( * ) AS col0, + 66 * COUNT( * ) * - SUM( DISTINCT + ( - 77 ) ) * + - CAST( NULL AS DECIMAL )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-7509
SELECT ( + + 60 ) + + COUNT ( * ) AS col0, + 66 * COUNT ( * ) * - SUM ( DISTINCT + ( - 77 ) ) * + - CAST ( NULL AS REAL )
----
61
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7510
SELECT ALL - - MIN( - CAST( + 53 AS SIGNED ) ) + - 35 - - 62 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL - - MIN ( - CAST ( + 53 AS INTEGER ) ) + - 35 - - 62 AS col2
----
-26

query I rowsort
SELECT ALL - 62 + - 85 AS col2
----
-147

query II rowsort
SELECT + 27 + + 96, 4 + CASE - 79 WHEN - 55 THEN - ( - 89 ) - + 1 ELSE NULL END col1
----
123
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT + NULLIF ( - 72, - - 67 * 95 + + 21 + - + MAX( - 29 ) / - COUNT( * ) * 46 / 37 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT + NULLIF ( - 72, - - 67 * 95 + + 21 + - + MAX ( - 29 ) / - COUNT ( * ) * 46 / 37 ) AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT 54 * + 34 * - CAST( 3 AS SIGNED ) + 79 AS col2
----
-5429

skipif mysql # not compatible
query I rowsort label-7514
SELECT 54 * + 34 * - CAST ( 3 AS INTEGER ) + 79 AS col2
----
-5429

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT - 94 DIV - 28 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 94 / - 28 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7516
SELECT - - 56 * + NULLIF ( + 32, - - 5 / + + 96 + 18 ) + + CAST( NULL AS SIGNED ) * + 87 * 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7516
SELECT - - 56 * + NULLIF ( + 32, - - 5 / + + 96 + 18 ) + + CAST ( NULL AS INTEGER ) * + 87 * 80 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 10 ) * + 7 + 22 - + 44
----
48

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

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

query II rowsort
SELECT - + 30 * 48, + 90 * + 17 - + ( + 92 ) + + 94 AS col0
----
-1440
1532

query I rowsort
SELECT - 39 + + - 82 + 57 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT - 16 * + + COUNT( * ) + 38 + 97 + 90 AS col1
----
209

skipif mysql # not compatible
query I rowsort label-7521
SELECT - 16 * + + COUNT ( * ) + 38 + 97 + 90 AS col1
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT - COUNT( * ) + - 43 col2
----
-44

skipif mysql # not compatible
query I rowsort label-7522
SELECT - COUNT ( * ) + - 43 col2
----
-44

query II rowsort
SELECT - ( 86 ) * + + 46 * 57 - + 34, 68 AS col2
----
-225526
68

query II rowsort
SELECT - - 78 + - + 86 AS col1, - 58 AS col1
----
-8
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + COUNT( * ) - - 1 + 51
----
53

skipif mysql # not compatible
query I rowsort label-7525
SELECT + COUNT ( * ) - - 1 + 51
----
53

query I rowsort
SELECT + 60 * + - 38 + - 73 + - 46 col1
----
-2399

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT ALL + 28 AS col2, 52 * - COUNT( * ) + + 2
----
28
-50

skipif mysql # not compatible
query II rowsort label-7527
SELECT ALL + 28 AS col2, 52 * - COUNT ( * ) + + 2
----
28
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT + COUNT( * ) * 75 + - + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7529
SELECT + COUNT ( * ) * 75 + - + COUNT ( * ) AS col2
----
74

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

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

query I rowsort
SELECT - 71 + + 52 AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT DISTINCT + 71 + - CAST( NULL AS SIGNED ) * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT + 71 + - CAST ( NULL AS INTEGER ) * + 61 AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( 2, - 48 ) AS col0
----
-2

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

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

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

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL COUNT ( * ) + + 10 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT - ( + 58 ) * - 10 + + - COALESCE ( - 94, - COUNT( ALL 62 ) ) AS col1
----
674

skipif mysql # not compatible
query I rowsort label-7536
SELECT - ( + 58 ) * - 10 + + - COALESCE ( - 94, - COUNT ( ALL 62 ) ) AS col1
----
674

query I rowsort
SELECT + 87 * + + 61 AS col1
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT ( - - NULLIF ( + MIN( DISTINCT + + 61 ), 53 * 62 * 2 + + 10 + + 94 - 43 ) )
----
61

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT ( - - NULLIF ( + MIN ( DISTINCT + + 61 ), 53 * 62 * 2 + + 10 + + 94 - 43 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL + 54 + - 56 * COUNT( * ) + + 65 * + + 68 * - + 39 AS col2
----
-172382

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL + 54 + - 56 * COUNT ( * ) + + 65 * + + 68 * - + 39 AS col2
----
-172382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7540
SELECT ALL MIN( ALL + 13 ) + CAST( - MIN( ALL + CASE + - 8 WHEN + 53 THEN - 3 / 11 END ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL MIN ( ALL + 13 ) + CAST ( - MIN ( ALL + CASE + - 8 WHEN + 53 THEN - 3 / 11 END ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT + 57 * CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT + 57 * CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * - 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7542
SELECT ALL 63 * - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * - CAST( + CASE + + 9 WHEN 83 * - - 52 THEN NULL WHEN + 45 THEN NULL ELSE - + 94 + + ( + 80 ) END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL 63 * - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - CAST ( + CASE + + 9 WHEN 83 * - - 52 THEN NULL WHEN + 45 THEN NULL ELSE - + 94 + + ( + 80 ) END AS REAL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7543
SELECT + - CAST( NULL AS DECIMAL ) - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT + - CAST ( NULL AS REAL ) - + 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT - CASE 82 WHEN + 57 * + + 5 THEN - 83 END + + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT - CASE 82 WHEN + 57 * + + 5 THEN - 83 END + + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 39 * + + 15 + 40 AS col0
----
625

query I rowsort
SELECT ALL 97 * + - 11 AS col2
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT - 13 * - - COUNT( * ) - 54 * - 8
----
419

skipif mysql # not compatible
query I rowsort label-7547
SELECT - 13 * - - COUNT ( * ) - 54 * - 8
----
419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7548
SELECT + 94 DIV SUM( + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-7548
SELECT + 94 / SUM ( + 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT + 76 * 85 * + COUNT( * ) + + COALESCE ( + - 59, 15 ) + - 8
----
6393

skipif mysql # not compatible
query I rowsort label-7549
SELECT + 76 * 85 * + COUNT ( * ) + + COALESCE ( + - 59, 15 ) + - 8
----
6393

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT + - COALESCE ( - 40, + + 55 + - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT + - COALESCE ( - 40, + + 55 + - COUNT ( * ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT ALL + 57 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL + 57 / + 45
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT - ( + 54 ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-7552
SELECT - ( + 54 ) / - 61
----
0

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

query I rowsort
SELECT DISTINCT 93 * - 5 + - 2 AS col1
----
-467

query I rowsort
SELECT NULLIF ( + 25, - - 43 ) AS col0
----
25

query I rowsort
SELECT DISTINCT 93 * + 44 * - 43 + 45 AS col2
----
-175911

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

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

query I rowsort
SELECT COALESCE ( + 66, - - 45 + + 60 + 94, - 12, + + 77 ) AS col0
----
66

query I rowsort
SELECT 85 * - 67 + - 75
----
-5770

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL + 92 * - + 44 + - SUM( ALL 1 )
----
-4049

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + 92 * - + 44 + - SUM ( ALL 1 )
----
-4049

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

skipif mysql # not compatible
query I rowsort label-7561
SELECT - 58 - - ( - CAST ( NULL AS INTEGER ) ) + 55 * + 92
----
NULL

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

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

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

query II rowsort
SELECT - NULLIF ( + 1, 67 * 68 ) AS col0, - 97 AS col2
----
-1
-97

query I rowsort
SELECT ALL + ( 43 ) - - 70
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT - - 29 + - 12 + - + 18 * ( + 72 ) DIV - 55 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7566
SELECT - - 29 + - 12 + - + 18 * ( + 72 ) / - 55 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7567
SELECT + - 23 * - 88 + + 40 - - 94 * - CAST( NULL AS SIGNED ) * - 8 * + + 34 * - 9 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT + - 23 * - 88 + + 40 - - 94 * - CAST ( NULL AS INTEGER ) * - 8 * + + 34 * - 9 col0
----
NULL

query II rowsort
SELECT ( - - 38 ) + + + 55 + - 57, 62 AS col0
----
36
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7569
SELECT ALL - 74 DIV + - 87 * - MIN( + ( + 37 ) ) + + - 49 * - 68
----
3332

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - 74 / + - 87 * - MIN ( + ( + 37 ) ) + + - 49 * - 68
----
3332

query I rowsort
SELECT - 85 * - + 12
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT 37 + - CASE CASE 68 WHEN + + 28 THEN + - 74 + + 52 + 80 ELSE NULL END WHEN + 41 * + 26 THEN 45 * CASE + 1 WHEN - 36 + + 36 THEN - + 59 + - CASE WHEN + ( COUNT( * ) ) IS NOT NULL THEN + 21 + 6 WHEN NOT + 12 NOT IN ( + 65 - - 81 ) THEN NULL END + COUNT( * ) WHEN - COUNT( * ) THEN - 26 END + + COALESCE ( - 30 + 61, + 64 * ( - 8 ), + 35 / 7 ) WHEN 96 - 31 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT 37 + - CASE CASE 68 WHEN + + 28 THEN + - 74 + + 52 + 80 ELSE NULL END WHEN + 41 * + 26 THEN 45 * CASE + 1 WHEN - 36 + + 36 THEN - + 59 + - CASE WHEN + ( COUNT ( * ) ) IS NOT NULL THEN + 21 + 6 WHEN NOT + 12 NOT IN ( + 65 - - 81 ) THEN NULL END + COUNT ( * ) WHEN - COUNT ( * ) THEN - 26 END + + COALESCE ( - 30 + 61, + 64 * ( - 8 ), + 35 / 7 ) WHEN 96 - 31 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL + COUNT( + - 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL + COUNT ( + - 36 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT DISTINCT CAST( - 22 AS SIGNED ) * - 26
----
572

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT CAST ( - 22 AS INTEGER ) * - 26
----
572

query I rowsort
SELECT - 25 + 54 AS col0
----
29

query I rowsort
SELECT + 65 * 58
----
3770

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7577
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) * 14 / + 19 + 45 - - 13 / + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 14 / + 19 + 45 - - 13 / + - 86 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT + - COUNT( * ) / + 92 + - MIN( ALL + 86 ) + + CAST( NULL AS SIGNED ) * - - 4 * + + COALESCE ( + - 19, COUNT( ALL 83 ) * - 23 + - - MIN( - + 22 ) * 77 - - COUNT( * ), 70 * - - 9 + ( + 72 ) + COUNT( * ), + 61 ) - - ( 12 ) * + 30 + - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT + - COUNT ( * ) / + 92 + - MIN ( ALL + 86 ) + + CAST ( NULL AS INTEGER ) * - - 4 * + + COALESCE ( + - 19, COUNT ( ALL 83 ) * - 23 + - - MIN ( - + 22 ) * 77 - - COUNT ( * ), 70 * - - 9 + ( + 72 ) + COUNT ( * ), + 61 ) - - ( 12 ) * + 30 + - 66 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7579
SELECT DISTINCT + COALESCE ( CAST( - 45 AS SIGNED ), - - ( + 26 ) - + + 56 - ( 74 ), + - 37 + COALESCE ( 84, - 8 * + + NULLIF ( - 48, AVG ( ALL - NULLIF ( + 19, 84 ) ) + 48 / - ( + 25 ) ) + + ( NULLIF ( 54, - 37 + - ( + CAST( NULL AS DECIMAL ) + - 55 ) ) + COUNT( * ) ) + - 32 * - 98, 42 + 47 ) ) * 9
----
-405

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT + COALESCE ( CAST ( - 45 AS INTEGER ), - - ( + 26 ) - + + 56 - ( 74 ), + - 37 + COALESCE ( 84, - 8 * + + NULLIF ( - 48, AVG ( ALL - NULLIF ( + 19, 84 ) ) + 48 / - ( + 25 ) ) + + ( NULLIF ( 54, - 37 + - ( + CAST ( NULL AS REAL ) + - 55 ) ) + COUNT ( * ) ) + - 32 * - 98, 42 + 47 ) ) * 9
----
-405

query I rowsort
SELECT DISTINCT 95 + 61 AS col0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7581
SELECT ALL 30 + - 89 * 65 + + COUNT( * ) * CAST( 8 AS SIGNED ) AS col1
----
-5747

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL 30 + - 89 * 65 + + COUNT ( * ) * CAST ( 8 AS INTEGER ) AS col1
----
-5747

query I rowsort
SELECT 70 + - 72 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT 15 + + 4 - COUNT( * ) * - 74 col2
----
93

skipif mysql # not compatible
query I rowsort label-7583
SELECT 15 + + 4 - COUNT ( * ) * - 74 col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7584
SELECT DISTINCT 53 + + 44 DIV - + 2 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT 53 + + 44 / - + 2 AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT DISTINCT - 8 DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT - 8 / + 93 AS col0
----
0

query I rowsort
SELECT 8 * - 68
----
-544

query I rowsort
SELECT 14 + + 3 AS col1
----
17

query II rowsort
SELECT ALL 27 col2, + NULLIF ( - - 86, + + CASE + - 49 WHEN - 6 THEN - 45 / - 31 + 76 - 14 ELSE - - 76 END ) * 77 + 23 + + 90 AS col0
----
27
6735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT CAST( - 35 AS SIGNED ) * + 19 - + 25 * - + 66 * + 95
----
156085

skipif mysql # not compatible
query I rowsort label-7589
SELECT CAST ( - 35 AS INTEGER ) * + 19 - + 25 * - + 66 * + 95
----
156085

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

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

query I rowsort
SELECT ALL + - ( ( + + 64 ) ) * + 43 * + 28 * + 2 * 4
----
-616448

query I rowsort
SELECT DISTINCT + 44 * + 39
----
1716

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT - 74 * - COUNT( + 57 ) AS col1, COUNT( * ) * + 82
----
74
82

skipif mysql # not compatible
query II rowsort label-7593
SELECT - 74 * - COUNT ( + 57 ) AS col1, COUNT ( * ) * + 82
----
74
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT + 5 + + MAX( DISTINCT - - COALESCE ( - - 94, + 91 ) ) AS col1, 74 + 64 * - - 44
----
99
2890

skipif mysql # not compatible
query II rowsort label-7595
SELECT + 5 + + MAX ( DISTINCT - - COALESCE ( - - 94, + 91 ) ) AS col1, 74 + 64 * - - 44
----
99
2890

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT - 67 AS col1, - 19 + + 15 * - COUNT( * ) - + 39
----
-67
-73

skipif mysql # not compatible
query II rowsort label-7596
SELECT - 67 AS col1, - 19 + + 15 * - COUNT ( * ) - + 39
----
-67
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7597
SELECT - CASE CAST( - + 60 AS SIGNED ) WHEN + + 74 THEN NULL WHEN + + 60 THEN COUNT( * ) ELSE NULL END, 34 col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-7597
SELECT - CASE CAST ( - + 60 AS INTEGER ) WHEN + + 74 THEN NULL WHEN + + 60 THEN COUNT ( * ) ELSE NULL END, 34 col0
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT 82 * 60 * COALESCE ( - 1, - COUNT( * ) )
----
-4920

skipif mysql # not compatible
query I rowsort label-7598
SELECT 82 * 60 * COALESCE ( - 1, - COUNT ( * ) )
----
-4920

query I rowsort
SELECT 31 - - 64 AS col1
----
95

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

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

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

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

query I rowsort
SELECT ALL - 85 + ( - 2 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT ALL + - 46 + 8 * + CAST( NULL AS SIGNED ) * - 13 + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL + - 46 + 8 * + CAST ( NULL AS INTEGER ) * - 13 + 59 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT ALL 50 * CAST( NULL AS SIGNED ) + 76 + - + 15 * - 62 + - + ( + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL 50 * CAST ( NULL AS INTEGER ) + 76 + - + 15 * - 62 + - + ( + 95 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL - CAST ( NULL AS INTEGER ) * - 36
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT MIN( ALL - - 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7607
SELECT MIN ( ALL - - 61 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7608
SELECT + 48 AS col0, ( 74 ) / + - 75 + - NULLIF ( - CASE - 86 WHEN + - MIN( DISTINCT + - 74 ) THEN - MIN( - + 66 ) ELSE - COUNT( * ) * + ( + 66 ) * COUNT( * ) * + + MIN( ALL - 73 ) END, + 36 * - 65 - - COUNT( * ) ) + 66 * + CAST( NULL AS SIGNED ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-7608
SELECT + 48 AS col0, ( 74 ) / + - 75 + - NULLIF ( - CASE - 86 WHEN + - MIN ( DISTINCT + - 74 ) THEN - MIN ( - + 66 ) ELSE - COUNT ( * ) * + ( + 66 ) * COUNT ( * ) * + + MIN ( ALL - 73 ) END, + 36 * - 65 - - COUNT ( * ) ) + 66 * + CAST ( NULL AS INTEGER ) AS col1
----
48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7609
SELECT COUNT( * ), 18 - 73 col0
----
1
-55

skipif mysql # not compatible
query II rowsort label-7609
SELECT COUNT ( * ), 18 - 73 col0
----
1
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT 79 * COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7610
SELECT 79 * COUNT ( * ) AS col0
----
79

query II rowsort
SELECT 85 * + 68 * + - ( CASE + ( 86 ) WHEN - 80 THEN - 48 END ) + - 52, + 94 AS col1
----
NULL
94

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

skipif mysql # not compatible
query I rowsort label-7612
SELECT MIN ( - + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ALL 53 * - + NULLIF ( + + 0, COUNT( * ) * 45 * - ( - 61 ) ) + - + 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL 53 * - + NULLIF ( + + 0, COUNT ( * ) * 45 * - ( - 61 ) ) + - + 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT COUNT( * ) * + 2 * - - 90 * + NULLIF ( - 65, + 20 ) + + - 3 AS col2
----
-11703

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT COUNT ( * ) * + 2 * - - 90 * + NULLIF ( - 65, + 20 ) + + - 3 AS col2
----
-11703

query I rowsort
SELECT ALL 76 - + - 77 AS col2
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT DISTINCT COALESCE ( + + 14, - - 47, + 43 + + 72 ) - - 91 DIV - - 36
----
16

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT COALESCE ( + + 14, - - 47, + 43 + + 72 ) - - 91 / - - 36
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7617
SELECT ALL - 43, CAST( NULL AS SIGNED ) * + - 60 / 92 * CASE + 88 WHEN 86 - ( + 24 ) * + + MIN( - 30 ) THEN NULL WHEN + COUNT( + + 52 ) * COUNT( * ) / + 47 - + + CASE + 96 WHEN + 23 + + 45 + - 39 THEN - - 33 - - 95 ELSE - 50 * + 21 + 86 END THEN + 97 * COUNT( * ) ELSE NULL END AS col1
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-7617
SELECT ALL - 43, CAST ( NULL AS INTEGER ) * + - 60 / 92 * CASE + 88 WHEN 86 - ( + 24 ) * + + MIN ( - 30 ) THEN NULL WHEN + COUNT ( + + 52 ) * COUNT ( * ) / + 47 - + + CASE + 96 WHEN + 23 + + 45 + - 39 THEN - - 33 - - 95 ELSE - 50 * + 21 + 86 END THEN + 97 * COUNT ( * ) ELSE NULL END AS col1
----
-43
NULL

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

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

query I rowsort
SELECT 88 + + - 19 - - + 92 + + 95 AS col0
----
256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT SUM( + + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7621
SELECT SUM ( + + 33 ) AS col2
----
33

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

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

query I rowsort
SELECT + 98 + - 37 AS col0
----
61

query I rowsort
SELECT + 44 + 8 AS col0
----
52

query I rowsort
SELECT ALL - 32 * - + 40 AS col1
----
1280

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7626
SELECT ALL - CAST( 59 AS SIGNED ) DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - CAST ( 59 AS INTEGER ) / - 75 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7627
SELECT + - 46 - + CAST( + COUNT( + - 51 ) AS SIGNED ) + - CAST( NULL AS SIGNED ) col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT - + ( + + 96 ) - - SUM( ALL - 69 )
----
-165

skipif mysql # not compatible
query I rowsort label-7628
SELECT - + ( + + 96 ) - - SUM ( ALL - 69 )
----
-165

query II rowsort
SELECT DISTINCT - 49 AS col2, 82
----
-49
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - MIN( 88 ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-7630
SELECT - MIN ( 88 ) col0
----
-88

query II rowsort
SELECT - 6 AS col2, + 36 * 57 AS col2
----
-6
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL - COUNT( * ) * + - 59 * 58 + + - 43
----
3379

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - COUNT ( * ) * + - 59 * 58 + + - 43
----
3379

query I rowsort
SELECT - 60 + + - COALESCE ( 12, - 20 * + 37, - + 62 )
----
-72

query I rowsort
SELECT - 30 - + ( - 38 ) - - + 15
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT ALL - 39 + - COALESCE ( + 90, + 28, - 87 ) * + + ( + + CAST( - 77 AS SIGNED ) )
----
6891

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL - 39 + - COALESCE ( + 90, + 28, - 87 ) * + + ( + + CAST ( - 77 AS INTEGER ) )
----
6891

query I rowsort
SELECT ALL + + 10 + + - 47 * + 14 + - 41 * 63 + + 53 + - - 32 AS col2
----
-3146

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT + CASE 53 WHEN + COALESCE ( + 19, 51 ) * 29 THEN - - COUNT( * ) WHEN - + 26 THEN - 93 WHEN + - 79 THEN NULL ELSE + 55 END AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7638
SELECT + CASE 53 WHEN + COALESCE ( + 19, 51 ) * 29 THEN - - COUNT ( * ) WHEN - + 26 THEN - 93 WHEN + - 79 THEN NULL ELSE + 55 END AS col1
----
55

query I rowsort
SELECT DISTINCT - ( - 72 ) + + 5
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + ( 10 ) - + + 28 / + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + ( 10 ) - + + 28 / + 22
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7641
SELECT - 52 AS col2, 23 DIV + 51
----
-52
0

skipif mysql # not compatible
query II rowsort label-7641
SELECT - 52 AS col2, 23 / + 51
----
-52
0

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

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL - - ( COUNT ( * ) ) + - 48 AS col1
----
-47

query I rowsort
SELECT ALL + + 18 + ( + + 88 )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - COUNT( + ( + 13 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7644
SELECT - COUNT ( + ( + 13 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - ( + + 14 ) + 89 + + + COUNT( * ) * - 88
----
-13

skipif mysql # not compatible
query I rowsort label-7645
SELECT - ( + + 14 ) + 89 + + + COUNT ( * ) * - 88
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT - COUNT( - 32 ) * CAST( 61 AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7646
SELECT - COUNT ( - 32 ) * CAST ( 61 AS INTEGER ) AS col0
----
-61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7648
SELECT ALL - 26 DIV + 8
----
-3

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - 26 / + 8
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT + 18 DIV + - 68
----
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT + 18 / + - 68
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7651
SELECT ALL + 26 DIV + 38, - CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7651
SELECT ALL + 26 / + 38, - CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT - ( - SUM( DISTINCT + - 85 ) ) * - 94
----
7990

skipif mysql # not compatible
query I rowsort label-7652
SELECT - ( - SUM ( DISTINCT + - 85 ) ) * - 94
----
7990

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - 24 * + ( - - COUNT( * ) ) + 57
----
33

skipif mysql # not compatible
query I rowsort label-7653
SELECT - 24 * + ( - - COUNT ( * ) ) + 57
----
33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT + 49 DIV + 35 + - 52 * + + 49 AS col1
----
-2547

skipif mysql # not compatible
query I rowsort label-7655
SELECT + 49 / + 35 + - 52 * + + 49 AS col1
----
-2547

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT 64 DIV ( + - 51 ) + + 60 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7656
SELECT 64 / ( + - 51 ) + + 60 AS col2
----
59

query I rowsort
SELECT - 23 + 48 * 72 AS col0
----
3433

query II rowsort
SELECT 55 * - 44 + 55 AS col0, 93 + 40 + + 18 - 33 col0
----
-2365
118

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

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL - COUNT ( * ) * - 75 / - - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7660
SELECT + 75 * + COUNT( * ) col0, ( - 53 ) AS col2
----
75
-53

skipif mysql # not compatible
query II rowsort label-7660
SELECT + 75 * + COUNT ( * ) col0, ( - 53 ) AS col2
----
75
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT DISTINCT + CAST( 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT + CAST ( 49 AS INTEGER )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7662
SELECT DISTINCT + COUNT( - 15 ), 90 * 82 AS col0
----
1
7380

skipif mysql # not compatible
query II rowsort label-7662
SELECT DISTINCT + COUNT ( - 15 ), 90 * 82 AS col0
----
1
7380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7663
SELECT ALL COUNT( * ) DIV - COALESCE ( + 50, - 53 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL COUNT ( * ) / - COALESCE ( + 50, - 53 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7664
SELECT - COALESCE ( + + 98, 52 * + 50 DIV + COUNT( * ) DIV + 21 * + 16 + + SUM( ALL - 75 ) + - - 42 + - - 32 * COUNT( * ) DIV - 53 - 27 )
----
-98

skipif mysql # not compatible
query I rowsort label-7664
SELECT - COALESCE ( + + 98, 52 * + 50 / + COUNT ( * ) / + 21 * + 16 + + SUM ( ALL - 75 ) + - - 42 + - - 32 * COUNT ( * ) / - 53 - 27 )
----
-98

query II rowsort
SELECT + + 40 * - + ( + 29 ), + 40 - 0 AS col2
----
-1160
40

query I rowsort
SELECT ALL + 29 * 23
----
667

query I rowsort
SELECT - - 59 + + 17 * - 36 * + + 15 AS col2
----
-9121

query I rowsort
SELECT DISTINCT 19 * - 15 AS col1
----
-285

onlyif mysql # DIV for integer division: 
query II rowsort label-7669
SELECT + + 90 DIV - 28, - 96 AS col1
----
-3
-96

skipif mysql # not compatible
query II rowsort label-7669
SELECT + + 90 / - 28, - 96 AS col1
----
-3
-96

query I rowsort
SELECT ALL + 79 + - + ( - 57 )
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7671
SELECT DISTINCT + 46 DIV ( - 33 ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT + 46 / ( - 33 ) * - - COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7672
SELECT DISTINCT + MAX( CAST( - ( - - 64 ) AS SIGNED ) ) + 74 + + 44 DIV + 81, 20 * 60 AS col2
----
10
1200

skipif mysql # not compatible
query II rowsort label-7672
SELECT DISTINCT + MAX ( CAST ( - ( - - 64 ) AS INTEGER ) ) + 74 + + 44 / + 81, 20 * 60 AS col2
----
10
1200

query I rowsort
SELECT - - 7 + - COALESCE ( - + 47, + + COALESCE ( - 91, - - 18 * - 9 ) )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT - COUNT( * ) * + MIN( - CAST( - NULLIF ( - COALESCE ( + 0, - 72, 98 ), + 59 ) AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7674
SELECT - COUNT ( * ) * + MIN ( - CAST ( - NULLIF ( - COALESCE ( + 0, - 72, 98 ), + 59 ) AS INTEGER ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL 77 + - + 47 * + + NULLIF ( + - ( - 86 ), - COUNT( * ) * - 13 + + 61 + - + 11 + - + 79 - - 58 * + 90 / + - COUNT( * ) + - - 47 - 52 * - COUNT( * ) * - COALESCE ( + + COUNT( * ), 48 * - 52, + 73 ) / 98 + + ( - 4 ) * 17 ) AS col2
----
-3965

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL 77 + - + 47 * + + NULLIF ( + - ( - 86 ), - COUNT ( * ) * - 13 + + 61 + - + 11 + - + 79 - - 58 * + 90 / + - COUNT ( * ) + - - 47 - 52 * - COUNT ( * ) * - COALESCE ( + + COUNT ( * ), 48 * - 52, + 73 ) / 98 + + ( - 4 ) * 17 ) AS col2
----
-3965

query II rowsort
SELECT 90 AS col1, - 46
----
90
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT - 77 * + - MIN( ALL - 0 ) * - - 44
----
0

skipif mysql # not compatible
query I rowsort label-7677
SELECT - 77 * + - MIN ( ALL - 0 ) * - - 44
----
0

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

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT MAX ( 44 )
----
44

query I rowsort
SELECT DISTINCT - 22 * - 74 AS col1
----
1628

query I rowsort
SELECT DISTINCT 12 * + 80 * - + 59 * 89 AS col2
----
-5040960

onlyif mysql # aggregate syntax: 
query II rowsort label-7681
SELECT ALL COUNT( * ), 44 + + 51 AS col2
----
1
95

skipif mysql # not compatible
query II rowsort label-7681
SELECT ALL COUNT ( * ), 44 + + 51 AS col2
----
1
95

query I rowsort
SELECT - 41 * - - 84 AS col2
----
-3444

query II rowsort
SELECT + 56, 74 AS col0
----
56
74

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

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

query I rowsort
SELECT 98 * + 17
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL - SUM( - 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL - SUM ( - 33 ) AS col2
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7687
SELECT 23 * - - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT 23 * - - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT ALL + CAST( + - 96 AS SIGNED ) * - 58
----
5568

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL + CAST ( + - 96 AS INTEGER ) * - 58
----
5568

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7689
SELECT DISTINCT + 78 / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + 78 / - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 39 + + + 31 AS col1
----
70

query I rowsort
SELECT - 49 * 81
----
-3969

query I rowsort
SELECT ALL + + 94 * - 31
----
-2914

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7694
SELECT + 2 + + - 59 + + ( + 33 ) * 61 * + COALESCE ( 5, + - SUM( + + CAST( NULL AS SIGNED ) ) ) * + + 74 AS col2
----
744753

skipif mysql # not compatible
query I rowsort label-7694
SELECT + 2 + + - 59 + + ( + 33 ) * 61 * + COALESCE ( 5, + - SUM ( + + CAST ( NULL AS INTEGER ) ) ) * + + 74 AS col2
----
744753

query I rowsort
SELECT + + COALESCE ( 3, 39 ) AS col0
----
3

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

skipif mysql # not compatible
query I rowsort label-7696
SELECT - - 80 * + 97 + ( - 65 ) + COUNT ( * ) AS col2
----
7696

query I rowsort
SELECT + 85 - 87 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7698
SELECT NULLIF ( + + 62, + + 68 * + + COALESCE ( + MIN( DISTINCT + + ( + 25 ) ), + 66 ) ) + - - CAST( - COUNT( * ) AS SIGNED ) + 66
----
127

skipif mysql # not compatible
query I rowsort label-7698
SELECT NULLIF ( + + 62, + + 68 * + + COALESCE ( + MIN ( DISTINCT + + ( + 25 ) ), + 66 ) ) + - - CAST ( - COUNT ( * ) AS INTEGER ) + 66
----
127

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT - ( - CASE 79 WHEN MIN( + 37 ) THEN NULL ELSE - 65 END ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - ( - CASE 79 WHEN MIN ( + 37 ) THEN NULL ELSE - 65 END ) col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT + 72 * - + 40 + SUM( + + 63 ) AS col1
----
-2817

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT + 72 * - + 40 + SUM ( + + 63 ) AS col1
----
-2817

query I rowsort
SELECT ALL 82 + - 16
----
66

query I rowsort
SELECT ALL + + 39 + + 89 AS col0
----
128

query I rowsort
SELECT DISTINCT - + 77 + 68 * 5 + - 64
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - COUNT( - 11 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7705
SELECT - COUNT ( - 11 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7706
SELECT + 31 * - - 9 + - 97 DIV - - COUNT( * )
----
182

skipif mysql # not compatible
query I rowsort label-7706
SELECT + 31 * - - 9 + - 97 / - - COUNT ( * )
----
182

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

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

query I rowsort
SELECT ALL - 56 * + 64 AS col1
----
-3584

onlyif mysql # aggregate syntax: 
query II rowsort label-7709
SELECT - 98, - CASE - 36 WHEN 29 / + + 33 * + 22 * 14 + + NULLIF ( + 78, - 62 ) + - 94 + - 68 / - 56 + + - 72 * - - MAX( 15 ) THEN NULL ELSE 73 END AS col0
----
-98
-73

skipif mysql # not compatible
query II rowsort label-7709
SELECT - 98, - CASE - 36 WHEN 29 / + + 33 * + 22 * 14 + + NULLIF ( + 78, - 62 ) + - 94 + - 68 / - 56 + + - 72 * - - MAX ( 15 ) THEN NULL ELSE 73 END AS col0
----
-98
-73

query I rowsort
SELECT ALL 95 * - 10
----
-950

query I rowsort
SELECT ALL 60 - + + 86 AS col1
----
-26

query I rowsort
SELECT ALL 71 * - 14
----
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT DISTINCT 89 - - COUNT( * ) * + 78 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT 89 - - COUNT ( * ) * + 78 AS col2
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT ALL + SUM( ALL - + 89 ) DIV 82 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL + SUM ( ALL - + 89 ) / 82 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT 98 DIV + 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7715
SELECT 98 / + 40 AS col2
----
2

query I rowsort
SELECT 4 + 95 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT 43 * - COALESCE ( 14, 84 * + 40 + COUNT( * ), 89 ) AS col1
----
-602

skipif mysql # not compatible
query I rowsort label-7717
SELECT 43 * - COALESCE ( 14, 84 * + 40 + COUNT ( * ), 89 ) AS col1
----
-602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT - ( - + 78 ) * - 80 + - CAST( NULL AS SIGNED ) + - ( - 64 ) + + 63 * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT - ( - + 78 ) * - 80 + - CAST ( NULL AS INTEGER ) + - ( - 64 ) + + 63 * + 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7719
SELECT DISTINCT + 91 * COUNT( * ), ( - 31 ) AS col1
----
91
-31

skipif mysql # not compatible
query II rowsort label-7719
SELECT DISTINCT + 91 * COUNT ( * ), ( - 31 ) AS col1
----
91
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT 0 DIV - 66 + - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7720
SELECT 0 / - 66 + - 0 AS col0
----
0

query I rowsort
SELECT ALL 81 + + ( - 84 )
----
-3

query I rowsort
SELECT 33 * - + 6 col0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT ( - + 83 ) * + ( + + 89 ) + + - 39 - + - 59 * - 98 + MIN( ALL 38 ) AS col1
----
-13170

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT ( - + 83 ) * + ( + + 89 ) + + - 39 - + - 59 * - 98 + MIN ( ALL 38 ) AS col1
----
-13170

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7725
SELECT ALL 51 + - + 17 AS col1, CAST( NULL AS SIGNED ) + + 64 * + 47
----
34
NULL

skipif mysql # not compatible
query II rowsort label-7725
SELECT ALL 51 + - + 17 AS col1, CAST ( NULL AS INTEGER ) + + 64 * + 47
----
34
NULL

query I rowsort
SELECT DISTINCT - ( 36 ) + 58
----
22

query I rowsort
SELECT 13 * + + 66 AS col1
----
858

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT SUM( 50 ) + 66 * + 29 AS col0
----
1964

skipif mysql # not compatible
query I rowsort label-7729
SELECT SUM ( 50 ) + 66 * + 29 AS col0
----
1964

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL - - 79 + COUNT( * ) + ( - + 47 ) * - + COUNT( * ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL - - 79 + COUNT ( * ) + ( - + 47 ) * - + COUNT ( * ) AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT + - 16 + - 98 + NULLIF ( - + 27, - - 95 * - COALESCE ( + COUNT( * ), - - 38 * + + 59 ) ) * + 9 * + - 52
----
12522

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + - 16 + - 98 + NULLIF ( - + 27, - - 95 * - COALESCE ( + COUNT ( * ), - - 38 * + + 59 ) ) * + 9 * + - 52
----
12522

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT 6 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT 6 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL + COALESCE ( SUM( + 53 ), + 67, + - 27 ) + + + 30 + - ( 12 ) col1
----
71

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + COALESCE ( SUM ( + 53 ), + 67, + - 27 ) + + + 30 + - ( 12 ) col1
----
71

query I rowsort
SELECT DISTINCT - + CASE + ( 22 ) WHEN 30 * - - 69 + - - ( 38 ) THEN + - 12 * - 84 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT ALL - 68 DIV - 20
----
3

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - 68 / - 20
----
3

query I rowsort
SELECT DISTINCT + 10 + - 38 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT ( 2 ) * 4 * + + 20 AS col2, - SUM( + 93 ) AS col0
----
160
-93

skipif mysql # not compatible
query II rowsort label-7738
SELECT ( 2 ) * 4 * + + 20 AS col2, - SUM ( + 93 ) AS col0
----
160
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL + 77 - + 56 * + + COALESCE ( + + COUNT( ALL + 49 ), + + 48 * - + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL + 77 - + 56 * + + COALESCE ( + + COUNT ( ALL + 49 ), + + 48 * - + COUNT ( * ) )
----
21

query I rowsort
SELECT DISTINCT - 18 * + 81
----
-1458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7741
SELECT - COALESCE ( - CAST( + 8 AS SIGNED ), + 7 * + 22 + + 39, - COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-7741
SELECT - COALESCE ( - CAST ( + 8 AS INTEGER ), + 7 * + 22 + + 39, - COUNT ( * ) )
----
8

query I rowsort
SELECT - 91 * 97 - + 98
----
-8925

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT 52 * + - 30 * - ( - COUNT( * ) ) + + CASE - 29 WHEN + 41 * + ( - 64 ) THEN + + CASE + - 72 WHEN - + 23 THEN + 29 END END + COUNT( ALL - 63 ) + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT 52 * + - 30 * - ( - COUNT ( * ) ) + + CASE - 29 WHEN + 41 * + ( - 64 ) THEN + + CASE + - 72 WHEN - + 23 THEN + 29 END END + COUNT ( ALL - 63 ) + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL + 27 * - 93 * COUNT( * ) AS col1
----
-2511

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + 27 * - 93 * COUNT ( * ) AS col1
----
-2511

query I rowsort
SELECT 54 * 79 AS col1
----
4266

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7747
SELECT ALL 88 col2, 83 - 33 + - + NULLIF ( - - CAST( NULL AS SIGNED ), + 68 )
----
88
NULL

skipif mysql # not compatible
query II rowsort label-7747
SELECT ALL 88 col2, 83 - 33 + - + NULLIF ( - - CAST ( NULL AS INTEGER ), + 68 )
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT MIN( ALL + + 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT MIN ( ALL + + 98 ) AS col2
----
98

query I rowsort
SELECT 15 + + + 93 + + 21 * - 40
----
-732

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ALL CASE - 37 WHEN + 72 - - NULLIF ( + + 83, 58 + + 48 * 56 ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL CASE - 37 WHEN + 72 - - NULLIF ( + + 83, 58 + + 48 * 56 ) THEN COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT + 36 * - 35
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-7752
SELECT ALL ( + - 92 ) * 49 + + ( MAX( 55 ) ), 1 AS col0
----
-4453
1

skipif mysql # not compatible
query II rowsort label-7752
SELECT ALL ( + - 92 ) * 49 + + ( MAX ( 55 ) ), 1 AS col0
----
-4453
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT - MAX( 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7753
SELECT - MAX ( 34 ) AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT ALL 76 * + - 69 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL 76 * + - 69 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - NULLIF ( 91, - + COUNT( * ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7756
SELECT - NULLIF ( 91, - + COUNT ( * ) ) AS col0
----
-91

query II rowsort
SELECT + 5 + 74 * + - 86 AS col2, + 91 col1
----
-6359
91

query I rowsort
SELECT DISTINCT 11 * + + 31 AS col0
----
341

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT - 87 * + + CASE + + 6 WHEN - COALESCE ( 96, MAX( - ( + 51 ) ) ) THEN 64 + - + 10 * - - 62 ELSE + - 95 END AS col1
----
8265

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - 87 * + + CASE + + 6 WHEN - COALESCE ( 96, MAX ( - ( + 51 ) ) ) THEN 64 + - + 10 * - - 62 ELSE + - 95 END AS col1
----
8265

query I rowsort
SELECT ALL - 78 + + - 96 + - 31 AS col1
----
-205

query I rowsort
SELECT ALL 64 + - 55 AS col0
----
9

query I rowsort
SELECT + 70 * + 87
----
6090

onlyif mysql # aggregate syntax: 
query II rowsort label-7763
SELECT DISTINCT + 57 * + COUNT( * ) + - COUNT( * ), 89 AS col2
----
56
89

skipif mysql # not compatible
query II rowsort label-7763
SELECT DISTINCT + 57 * + COUNT ( * ) + - COUNT ( * ), 89 AS col2
----
56
89

query I rowsort
SELECT + CASE - 78 WHEN - 36 + - - 60 THEN NULL ELSE + 38 END
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7765
SELECT 78 * - - 59 - 19, SUM( ALL 81 ) AS col1
----
4583
81

skipif mysql # not compatible
query II rowsort label-7765
SELECT 78 * - - 59 - 19, SUM ( ALL 81 ) AS col1
----
4583
81

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

skipif mysql # not compatible
query I rowsort label-7766
SELECT + 22 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL - 57 * + 55 + + COUNT( * ) * + - 46
----
-3181

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - 57 * + 55 + + COUNT ( * ) * + - 46
----
-3181

query II rowsort
SELECT 97 * ( + 98 ) - + 64 * + ( + - 99 ), - 53 AS col2
----
15842
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT + MAX( ALL - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7769
SELECT + MAX ( ALL - 53 ) AS col2
----
-53

query I rowsort
SELECT + 84 * 65 AS col1
----
5460

query I rowsort
SELECT - COALESCE ( + 81, + + 84 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT ALL + + 73 * - 55 + + + 28 - - MIN( + 2 )
----
-3985

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + + 73 * - 55 + + + 28 - - MIN ( + 2 )
----
-3985

onlyif mysql # aggregate syntax: 
query II rowsort label-7773
SELECT DISTINCT - - NULLIF ( 80, - AVG ( DISTINCT ( 18 ) ) ) * - NULLIF ( - + 5, + - COUNT( * ) ) * 57 + NULLIF ( 40, 74 ) + 64, - 35 AS col0
----
22904
-35

skipif mysql # not compatible
query II rowsort label-7773
SELECT DISTINCT - - NULLIF ( 80, - AVG ( DISTINCT ( 18 ) ) ) * - NULLIF ( - + 5, + - COUNT ( * ) ) * 57 + NULLIF ( 40, 74 ) + 64, - 35 AS col0
----
22904
-35

query I rowsort
SELECT ALL - 22 * + 92 AS col0
----
-2024

query I rowsort
SELECT + 86 * 26
----
2236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT + 0 + + CAST( + + 13 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7776
SELECT + 0 + + CAST ( + + 13 AS INTEGER ) AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT - 27 + + COALESCE ( - COUNT( * ), - 6 * - - 56 DIV COALESCE ( - 58, - + 0, - 53 * - + 12 * - + 6, - - 97 ) + - 70 - 33, + 80 ) * + + 22 * - + 67 AS col1
----
1447

skipif mysql # not compatible
query I rowsort label-7777
SELECT - 27 + + COALESCE ( - COUNT ( * ), - 6 * - - 56 / COALESCE ( - 58, - + 0, - 53 * - + 12 * - + 6, - - 97 ) + - 70 - 33, + 80 ) * + + 22 * - + 67 AS col1
----
1447

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT + CAST( - 61 AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7778
SELECT + CAST ( - 61 AS INTEGER ) AS col0
----
-61

query II rowsort
SELECT DISTINCT + ( + ( + 47 ) ) AS col1, 61 AS col0
----
47
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT - - 85 DIV + - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT - - 85 / + - 93 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-7781
SELECT - COUNT ( * ) / 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT - 36 DIV + 46 * - 93
----
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT - 36 / + 46 * - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT - 63 * - CASE + 18 WHEN + - COUNT( * ) THEN + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT - 63 * - CASE + 18 WHEN + - COUNT ( * ) THEN + 27 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT ALL + 9 * + CAST( 48 AS SIGNED )
----
432

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + 9 * + CAST ( 48 AS INTEGER )
----
432

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT - 95 AS col0, NULLIF ( 62, + 44 ) * + ( + 85 ) + - COUNT( * )
----
-95
5269

skipif mysql # not compatible
query II rowsort label-7785
SELECT - 95 AS col0, NULLIF ( 62, + 44 ) * + ( + 85 ) + - COUNT ( * )
----
-95
5269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7786
SELECT - COUNT( * ) * CASE + + COUNT( ALL - COALESCE ( CASE + + 58 WHEN + + 2 THEN - 7 END, + - 76 ) ) WHEN - - 86 * 65 THEN NULL ELSE - 0 DIV + - MIN( DISTINCT - + 31 ) + + + 44 END
----
-44

skipif mysql # not compatible
query I rowsort label-7786
SELECT - COUNT ( * ) * CASE + + COUNT ( ALL - COALESCE ( CASE + + 58 WHEN + + 2 THEN - 7 END, + - 76 ) ) WHEN - - 86 * 65 THEN NULL ELSE - 0 / + - MIN ( DISTINCT - + 31 ) + + + 44 END
----
-44

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7787
SELECT ALL - NULLIF ( + 8, 93 + + + 63 - - 80 ) + 30 + + NULLIF ( - + NULLIF ( + + 70, - 69 - - + CAST( NULL AS DECIMAL ) + - + NULLIF ( 35, 40 * + 30 * - CAST( - - 90 AS SIGNED ) * + 38 + - + 41 ) + - 58 * 70 ), 15 + - 94 ) + + + 39 DIV - 52 * + ( 1 ) * - 49 * 4
----
-48

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL - NULLIF ( + 8, 93 + + + 63 - - 80 ) + 30 + + NULLIF ( - + NULLIF ( + + 70, - 69 - - + CAST ( NULL AS REAL ) + - + NULLIF ( 35, 40 * + 30 * - CAST ( - - 90 AS INTEGER ) * + 38 + - + 41 ) + - 58 * 70 ), 15 + - 94 ) + + + 39 / - 52 * + ( 1 ) * - 49 * 4
----
-48

query I rowsort
SELECT ALL ( - + 16 ) AS col1
----
-16

query I rowsort
SELECT DISTINCT + 64 + + 33 + 54 * 20 AS col0
----
1177

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7790
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, 0 * - - 59 + - 13
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-7790
SELECT ALL CAST ( NULL AS REAL ) AS col1, 0 * - - 59 + - 13
----
NULL
-13

query I rowsort
SELECT DISTINCT + 18 + - - COALESCE ( - + 86, - + 51 ) col0
----
-68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL 23 + + 56 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL 23 + + 56 * COUNT ( * )
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT + COUNT( * ) + - NULLIF ( 88, 78 * - 9 + 50 ) * - COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7795
SELECT + COUNT ( * ) + - NULLIF ( 88, 78 * - 9 + 50 ) * - COUNT ( * ) AS col2
----
89

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

skipif mysql # not compatible
query II rowsort label-7796
SELECT DISTINCT CAST ( NULL AS REAL ) col2, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT ALL + 1 + 64
----
65

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

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

query II rowsort
SELECT 68, 77 AS col2
----
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT - 10 + + 23 + + MAX( DISTINCT + 31 )
----
44

skipif mysql # not compatible
query I rowsort label-7800
SELECT - 10 + + 23 + + MAX ( DISTINCT + 31 )
----
44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7802
SELECT - MAX( - 86 ) DIV - 69 + + 96 + + - 46 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7802
SELECT - MAX ( - 86 ) / - 69 + + 96 + + - 46 AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT ALL + 36 DIV + + 41 * + + 27 + 55 + - 59
----
-4

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL + 36 / + + 41 * + + 27 + 55 + - 59
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL - - 8 * COALESCE ( 56, SUM( ALL - 54 ) - - + 43 + + COUNT( * ), + 39, + 26 ) * 17 - - COUNT( * ) AS col0
----
7617

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - - 8 * COALESCE ( 56, SUM ( ALL - 54 ) - - + 43 + + COUNT ( * ), + 39, + 26 ) * 17 - - COUNT ( * ) AS col0
----
7617

onlyif mysql # aggregate syntax: 
query II rowsort label-7805
SELECT + COUNT( * ) + + 90 col2, + 77 + - 79 col2
----
91
-2

skipif mysql # not compatible
query II rowsort label-7805
SELECT + COUNT ( * ) + + 90 col2, + 77 + - 79 col2
----
91
-2

query I rowsort
SELECT DISTINCT + + 96 col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7807
SELECT - MAX( ALL - 68 ) DIV + 78 + - 44
----
-44

skipif mysql # not compatible
query I rowsort label-7807
SELECT - MAX ( ALL - 68 ) / + 78 + - 44
----
-44

query II rowsort
SELECT + 32 col0, - 47 AS col0
----
32
-47

query I rowsort
SELECT + - 74 + 93 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7810
SELECT ALL + + COALESCE ( - 89, + CASE + - COALESCE ( + - AVG ( + 13 ), - MIN( 22 ) ) WHEN - - 38 * - + 26 + COALESCE ( 74, + 13, - + 7 ) THEN + - 78 * + ( - 98 ) DIV - 75 - - ( + 4 ) + + COUNT( * ) * 28 + + + ( + 68 ) DIV - + 2 ELSE + 42 END * + 20 )
----
-89

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL + + COALESCE ( - 89, + CASE + - COALESCE ( + - AVG ( + 13 ), - MIN ( 22 ) ) WHEN - - 38 * - + 26 + COALESCE ( 74, + 13, - + 7 ) THEN + - 78 * + ( - 98 ) / - 75 - - ( + 4 ) + + COUNT ( * ) * 28 + + + ( + 68 ) / - + 2 ELSE + 42 END * + 20 )
----
-89

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

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

query II rowsort
SELECT + 33 AS col1, 36 AS col2
----
33
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT DISTINCT + COUNT( * ) col2, - 9
----
1
-9

skipif mysql # not compatible
query II rowsort label-7813
SELECT DISTINCT + COUNT ( * ) col2, - 9
----
1
-9

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

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

query I rowsort
SELECT ALL - 44 * + 60
----
-2640

query I rowsort
SELECT ALL 17 * + ( 28 ) AS col1
----
476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7817
SELECT ALL + NULLIF ( - 93, - COALESCE ( - 92, + - ( ( - - 17 ) ) ) * - 63 * - + CAST( NULL AS SIGNED ) + - + 94 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL + NULLIF ( - 93, - COALESCE ( - 92, + - ( ( - - 17 ) ) ) * - 63 * - + CAST ( NULL AS INTEGER ) + - + 94 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT + 17 * 80 * - 19 + COUNT( * ) col0
----
-25839

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT + 17 * 80 * - 19 + COUNT ( * ) col0
----
-25839

query I rowsort
SELECT 92 * + + 25 AS col1
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT 27 * - - 99 * + COUNT( * )
----
2673

skipif mysql # not compatible
query I rowsort label-7820
SELECT 27 * - - 99 * + COUNT ( * )
----
2673

query I rowsort
SELECT ALL 1 + - 1 + + 11 * ( - 35 ) * 10 AS col2
----
-3850

query II rowsort
SELECT DISTINCT - 59 + + - 48 AS col0, ( - 53 ) AS col2
----
-107
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT ALL - CASE 26 WHEN + CAST( + 15 AS SIGNED ) THEN NULL WHEN 81 THEN NULL ELSE + 26 + - CASE 98 WHEN + - 57 * + 50 THEN NULL WHEN + 95 + - 71 THEN 52 END END + 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - CASE 26 WHEN + CAST ( + 15 AS INTEGER ) THEN NULL WHEN 81 THEN NULL ELSE + 26 + - CASE 98 WHEN + - 57 * + 50 THEN NULL WHEN + 95 + - 71 THEN 52 END END + 57 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT COALESCE ( 45, CASE 31 WHEN - 19 * + - 27 THEN 54 + 73 + - MIN( ALL 94 ) END, - 70 + 53 * + 87 * MAX( + - 47 ) ) * 11 AS col2
----
495

skipif mysql # not compatible
query I rowsort label-7824
SELECT COALESCE ( 45, CASE 31 WHEN - 19 * + - 27 THEN 54 + 73 + - MIN ( ALL 94 ) END, - 70 + 53 * + 87 * MAX ( + - 47 ) ) * 11 AS col2
----
495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 53 - 98 * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 53 - 98 * + 57
----
NULL

query I rowsort
SELECT 43 - - 64 + - ( + 21 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT ALL + 42 DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL + 42 / - 37
----
-1

query I rowsort
SELECT 49 + - 47 - CASE 31 WHEN - 70 THEN NULL ELSE 39 END
----
-37

query I rowsort
SELECT DISTINCT + COALESCE ( 33, + 3 * + 56, + 12 - - 6, + 90 ) + - 11 * + 24
----
-231

query I rowsort
SELECT ALL - 69 * + 13 col1
----
-897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7831
SELECT ALL + CAST( NULL AS SIGNED ) + + + 1 / + COUNT( * ) + - 19 + COUNT( * ) + 83 * - 40 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 1 / + COUNT ( * ) + - 19 + COUNT ( * ) + 83 * - 40 * - 21
----
NULL

query I rowsort
SELECT 33 * + 60 AS col1
----
1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT ALL - CAST( + + 89 AS SIGNED ) * - + 53 * - 42 AS col2
----
-198114

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL - CAST ( + + 89 AS INTEGER ) * - + 53 * - 42 AS col2
----
-198114

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL + COALESCE ( + + 28, - - 64 * + - COUNT( * ) * - COUNT( * ) + - 16, 28 + + 28 ) - + 72
----
-44

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + COALESCE ( + + 28, - - 64 * + - COUNT ( * ) * - COUNT ( * ) + - 16, 28 + + 28 ) - + 72
----
-44

query I rowsort
SELECT DISTINCT - 52 - - - 7 * - 20 * - - 44 AS col0
----
6108

query I rowsort
SELECT ALL - + 97 - + + 43 * + 53 AS col0
----
-2376

query II rowsort
SELECT DISTINCT 37 - - + 98 AS col0, - 56 col2
----
135
-56

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

query II rowsort
SELECT - 59 * 29 AS col2, + 84 * + 93 / CASE - - 20 WHEN - 71 THEN + + 66 ELSE NULL END AS col1
----
-1711
NULL

query I rowsort
SELECT DISTINCT + - 55 * - 18 + + - 25
----
965

query II rowsort
SELECT 19 * - 73 AS col1, + 95
----
-1387
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7842
SELECT ALL - 40 * 67 DIV + COUNT( * ) - + + 62 + 51 + + 90
----
-2601

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL - 40 * 67 / + COUNT ( * ) - + + 62 + 51 + + 90
----
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT COUNT( * ) * - 32 * ( - 80 ) AS col1
----
2560

skipif mysql # not compatible
query I rowsort label-7843
SELECT COUNT ( * ) * - 32 * ( - 80 ) AS col1
----
2560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT - 96 * COUNT( * ) * + 31 - 61 AS col2
----
-3037

skipif mysql # not compatible
query I rowsort label-7845
SELECT - 96 * COUNT ( * ) * + 31 - 61 AS col2
----
-3037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT DISTINCT + 57 / - - 90 / CASE + 38 WHEN - + 99 * + - 85 THEN + CAST( NULL AS SIGNED ) * + - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT + 57 / - - 90 / CASE + 38 WHEN - + 99 * + - 85 THEN + CAST ( NULL AS INTEGER ) * + - 58 END
----
NULL

query I rowsort
SELECT - 75 + + + 92 AS col1
----
17

query I rowsort
SELECT - COALESCE ( 63, + 12 ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7849
SELECT 78 DIV - - 76, - SUM( + 87 ) * - 95 AS col0
----
1
8265

skipif mysql # not compatible
query II rowsort label-7849
SELECT 78 / - - 76, - SUM ( + 87 ) * - 95 AS col0
----
1
8265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7850
SELECT + 59 DIV COUNT( * ) * 99 * 22
----
128502

skipif mysql # not compatible
query I rowsort label-7850
SELECT + 59 / COUNT ( * ) * 99 * 22
----
128502

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT DISTINCT 37 DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT 37 / + 67 AS col2
----
0

query I rowsort
SELECT 45 * - 52 + - 55 AS col0
----
-2395

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT COUNT( * ) - ( SUM( - 74 ) ) + + NULLIF ( - + 27, 92 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7854
SELECT COUNT ( * ) - ( SUM ( - 74 ) ) + + NULLIF ( - + 27, 92 ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT ALL CAST( - 77 AS SIGNED ) + + ( + 19 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL CAST ( - 77 AS INTEGER ) + + ( + 19 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL + COUNT( * ) + - 14 + 26 + - 25
----
-12

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL + COUNT ( * ) + - 14 + 26 + - 25
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT COUNT( * ) + - - 61 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7857
SELECT COUNT ( * ) + - - 61 AS col1
----
62

query I rowsort
SELECT ALL NULLIF ( + 99, + NULLIF ( - ( + 25 ), + 37 ) ) + - 78 col0
----
21

query I rowsort
SELECT ALL 18 + 38
----
56

query I rowsort
SELECT 43 + 24 AS col2
----
67

query I rowsort
SELECT DISTINCT 52 + + + 72 AS col0
----
124

query I rowsort
SELECT ALL NULLIF ( + 18, + - 55 ) + 64 AS col2
----
82

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

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

query I rowsort
SELECT 62 + - - 20 AS col2
----
82

query I rowsort
SELECT ALL 87 - - - 98 * - + 10
----
1067

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

query II rowsort
SELECT 7, 34 AS col2
----
7
34

query I rowsort
SELECT COALESCE ( - + 8, - 96 + - 0, + - NULLIF ( - 68, - 61 ), - - 20 ) * 81
----
-648

query I rowsort
SELECT 78 * - - 38
----
2964

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

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

query I rowsort
SELECT 74 - + 64 col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7872
SELECT DISTINCT 65 DIV + - 82 - - + 4 - 92 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT 65 / + - 82 - - + 4 - 92 AS col1
----
-88

query II rowsort
SELECT + 38 AS col2, + 69 + - - 93 AS col1
----
38
162

query I rowsort
SELECT ALL + 35 * - 53 * + 92 * + + 53
----
-9044980

query I rowsort
SELECT ( 25 ) * - + 99 * ( 27 ) + - 3 AS col2
----
-66828

query I rowsort
SELECT + 57 * + 3 AS col2
----
171

query I rowsort
SELECT 41 * - 71
----
-2911

query I rowsort
SELECT - 66 + - 78 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT 72 - SUM( ALL - + 51 ), - 7 AS col1
----
123
-7

skipif mysql # not compatible
query II rowsort label-7879
SELECT 72 - SUM ( ALL - + 51 ), - 7 AS col1
----
123
-7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT + CASE + 77 WHEN + CASE - 59 WHEN + + 60 * - 37 THEN - + 18 WHEN - - 30 / - - COUNT( DISTINCT - - 77 ) THEN NULL END THEN - 68 WHEN + 4 THEN NULL END / + 88 + + + COALESCE ( + COUNT( * ), ( - COALESCE ( 74, - COUNT( * ) - + + 82 + - 4, - 19 * + + 89 ) ) ) * + COUNT( * ) / - + 90 * - - CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) - + COUNT( * ) * CAST( 61 * - 62 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT + CASE + 77 WHEN + CASE - 59 WHEN + + 60 * - 37 THEN - + 18 WHEN - - 30 / - - COUNT ( DISTINCT - - 77 ) THEN NULL END THEN - 68 WHEN + 4 THEN NULL END / + 88 + + + COALESCE ( + COUNT ( * ), ( - COALESCE ( 74, - COUNT ( * ) - + + 82 + - 4, - 19 * + + 89 ) ) ) * + COUNT ( * ) / - + 90 * - - CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) - + COUNT ( * ) * CAST ( 61 * - 62 AS INTEGER ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT DISTINCT COUNT( * ) * - 38 + - - 86 * - + 54 AS col1
----
-4682

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT COUNT ( * ) * - 38 + - - 86 * - + 54 AS col1
----
-4682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT - + 28 * - 26 - - - COALESCE ( + + 73, + 35 ) + + - 65 * + - 70 * 67 * + + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT - + 28 * - 26 - - - COALESCE ( + + 73, + 35 ) + + - 65 * + - 70 * 67 * + + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7885
SELECT - 69 * + 63 + 72 - 23 DIV - 41 AS col0
----
-4275

skipif mysql # not compatible
query I rowsort label-7885
SELECT - 69 * + 63 + 72 - 23 / - 41 AS col0
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL - - 63 * COUNT( * ) * 30 + 9 col0
----
1899

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - - 63 * COUNT ( * ) * 30 + 9 col0
----
1899

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT DISTINCT + 78 * - + COALESCE ( ( 8 ), - + CAST( + 19 AS SIGNED ) + 23 ) + 41 - + 51
----
-634

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT + 78 * - + COALESCE ( ( 8 ), - + CAST ( + 19 AS INTEGER ) + 23 ) + 41 - + 51
----
-634

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + ( + 51 ) * - + COUNT( - 61 ) + - + 6
----
-57

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + ( + 51 ) * - + COUNT ( - 61 ) + - + 6
----
-57

query I rowsort
SELECT DISTINCT - 58 * 62 + 36 AS col0
----
-3560

onlyif mysql # aggregate syntax: 
query II rowsort label-7893
SELECT ALL + MIN( - - 19 ) * + - 72 + 14 col0, - 80 * 47
----
-1354
-3760

skipif mysql # not compatible
query II rowsort label-7893
SELECT ALL + MIN ( - - 19 ) * + - 72 + 14 col0, - 80 * 47
----
-1354
-3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7894
SELECT ALL + COUNT( * ) * - - COALESCE ( + ( + - 1 ), 23 DIV + + 42 + 55 ) * - 86
----
86

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + COUNT ( * ) * - - COALESCE ( + ( + - 1 ), 23 / + + 42 + 55 ) * - 86
----
86

query I rowsort
SELECT DISTINCT + 80 * + 61 + 91 * 81 AS col0
----
12251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7896
SELECT ALL - 14 - 9 - 10 * 45 * + - 53 * + 77 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL - 14 - 9 - 10 * 45 * + - 53 * + 77 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 17 * - 72 * + + 39 AS col1
----
47736

query I rowsort
SELECT + 23 * + 72 * + 39 AS col0
----
64584

query I rowsort
SELECT - 94 - 19
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT - 70 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-7900
SELECT - 70 / - 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT + 76 / + 77 * - CASE - + 26 WHEN - 80 * 16 + + + COUNT( * ) + + 59 * - 68 * + + 83 * - 58 THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT + 76 / + 77 * - CASE - + 26 WHEN - 80 * 16 + + + COUNT ( * ) + + 59 * - 68 * + + 83 * - 58 THEN + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT - MIN( - 12 ) AS col0, + 88 AS col1
----
12
88

skipif mysql # not compatible
query II rowsort label-7902
SELECT - MIN ( - 12 ) AS col0, + 88 AS col1
----
12
88

query I rowsort
SELECT ALL 58 * + NULLIF ( 38, - 41 ) * 12
----
26448

query II rowsort
SELECT ALL ( - - 56 ), 24 AS col0
----
56
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7905
SELECT DISTINCT 4 * - COUNT( * ) AS col2, + 89
----
-4
89

skipif mysql # not compatible
query II rowsort label-7905
SELECT DISTINCT 4 * - COUNT ( * ) AS col2, + 89
----
-4
89

query I rowsort
SELECT + ( - - 32 ) - + 27 AS col2
----
5

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

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

query I rowsort
SELECT + ( - 9 ) + + 60 AS col1
----
51

query I rowsort
SELECT DISTINCT 39 * - 38 * - - 63 AS col0
----
-93366

query I rowsort
SELECT DISTINCT - ( - 12 ) * + 64
----
768

query II rowsort
SELECT - 11 * - 52 AS col0, + 56 * 19 AS col1
----
572
1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT + 51 * - CAST( + 84 AS SIGNED ) AS col1
----
-4284

skipif mysql # not compatible
query I rowsort label-7912
SELECT + 51 * - CAST ( + 84 AS INTEGER ) AS col1
----
-4284

query I rowsort
SELECT + 55 + + - 57
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT ALL - - 38 DIV - + 91 * 89
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - - 38 / - + 91 * 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT + - ( + 83 ) DIV 4
----
-20

skipif mysql # not compatible
query I rowsort label-7915
SELECT + - ( + 83 ) / 4
----
-20

query I rowsort
SELECT ALL - 12 + ( - 41 ) + - + 18 col2
----
-71

query I rowsort
SELECT ALL + - 25 + + 18
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT ALL 70 + + - 14 + + COUNT( - 95 ) AS col0, + COUNT( * ) * 46 AS col1
----
57
46

skipif mysql # not compatible
query II rowsort label-7918
SELECT ALL 70 + + - 14 + + COUNT ( - 95 ) AS col0, + COUNT ( * ) * 46 AS col1
----
57
46

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

skipif mysql # not compatible
query I rowsort label-7919
SELECT - 14 / - + ( - - COUNT ( * ) ) AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT ALL - - 86 DIV - + 77 + + 62 DIV - 50
----
-2

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL - - 86 / - + 77 + + 62 / - 50
----
-2

query I rowsort
SELECT - 12 * 32 + - 89 + - + 65 - - 13 AS col2
----
-525

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7922
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7923
SELECT + CAST( NULL AS DECIMAL ) / - 23 * + COUNT( * ) - ( + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT + CAST ( NULL AS REAL ) / - 23 * + COUNT ( * ) - ( + 20 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT - + 85 * - CAST( 77 AS SIGNED )
----
6545

skipif mysql # not compatible
query I rowsort label-7924
SELECT - + 85 * - CAST ( 77 AS INTEGER )
----
6545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7925
SELECT ALL + - CASE ( - 40 ) WHEN + + COUNT( DISTINCT + 79 ) + - 60 + - - 20 / - 33 + + + COUNT( * ) / + - CAST( + 12 AS SIGNED ) THEN + + MIN( - 93 ) WHEN 53 + + + COUNT( * ) THEN - 66 + - 51 ELSE - 61 END AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + - CASE ( - 40 ) WHEN + + COUNT ( DISTINCT + 79 ) + - 60 + - - 20 / - 33 + + + COUNT ( * ) / + - CAST ( + 12 AS INTEGER ) THEN + + MIN ( - 93 ) WHEN 53 + + + COUNT ( * ) THEN - 66 + - 51 ELSE - 61 END AS col2
----
61

query I rowsort
SELECT DISTINCT + 94 * 31 AS col0
----
2914

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT 46 * + SUM( DISTINCT 78 ) - - 69
----
3657

skipif mysql # not compatible
query I rowsort label-7927
SELECT 46 * + SUM ( DISTINCT 78 ) - - 69
----
3657

query I rowsort
SELECT DISTINCT + 36 * + 25 - - - 82 * - 9
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL + CASE 95 WHEN - 50 + MIN( + + 69 ) + + 27 THEN NULL WHEN 27 THEN + 79 + - 1 - + + ( + CASE - 64 WHEN + 80 THEN + 69 + - + ( + + CASE - 15 WHEN - - 35 THEN - - 13 WHEN - 0 * - 80 + + 22 + - 30 THEN NULL WHEN - - 88 * + - 42 + + 29 THEN + + 34 * + 46 END ) WHEN - 47 THEN + 63 - 39 WHEN COUNT( * ) THEN + NULLIF ( + SUM( + ( 22 ) ), + 97 * 33 + - 51 ) WHEN 53 THEN - COUNT( * ) / - ( - 67 ) ELSE NULL END ) + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + CASE 95 WHEN - 50 + MIN ( + + 69 ) + + 27 THEN NULL WHEN 27 THEN + 79 + - 1 - + + ( + CASE - 64 WHEN + 80 THEN + 69 + - + ( + + CASE - 15 WHEN - - 35 THEN - - 13 WHEN - 0 * - 80 + + 22 + - 30 THEN NULL WHEN - - 88 * + - 42 + + 29 THEN + + 34 * + 46 END ) WHEN - 47 THEN + 63 - 39 WHEN COUNT ( * ) THEN + NULLIF ( + SUM ( + ( 22 ) ), + 97 * 33 + - 51 ) WHEN 53 THEN - COUNT ( * ) / - ( - 67 ) ELSE NULL END ) + 23 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7930
SELECT + 0 + + - 35 + + + 48 * 30 DIV + - COUNT( * ) + 47 * - CAST( - 98 AS SIGNED )
----
3131

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 0 + + - 35 + + + 48 * 30 / + - COUNT ( * ) + 47 * - CAST ( - 98 AS INTEGER )
----
3131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT ( + SUM( - CAST( - 78 AS SIGNED ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-7931
SELECT ( + SUM ( - CAST ( - 78 AS INTEGER ) ) )
----
78

query I rowsort
SELECT NULLIF ( + 52, - 39 * - 50 ) col0
----
52

query I rowsort
SELECT - 0 * 39 * + 34 * + 14 AS col2
----
0

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

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

query II rowsort
SELECT ALL + COALESCE ( + 43, 56 ), 26 AS col0
----
43
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7936
SELECT - 41 * - 80 + + 12 + - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7936
SELECT - 41 * - 80 + + 12 + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7937
SELECT ALL + NULLIF ( - 75, + CAST( + 2 AS SIGNED ) ) * + - MIN( ALL 36 ) * - COUNT( * ) - + + 83, - 79 AS col1
----
-2783
-79

skipif mysql # not compatible
query II rowsort label-7937
SELECT ALL + NULLIF ( - 75, + CAST ( + 2 AS INTEGER ) ) * + - MIN ( ALL 36 ) * - COUNT ( * ) - + + 83, - 79 AS col1
----
-2783
-79

query I rowsort
SELECT - 46 + - 32 AS col2
----
-78

query I rowsort
SELECT - 64 * CASE - 87 WHEN + - 65 THEN - 68 WHEN - 82 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT ALL - ( 98 ) * 2 - + CAST( - 78 AS SIGNED ) * + - COUNT( * ) + - COUNT( - 88 ) * 40
----
-314

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - ( 98 ) * 2 - + CAST ( - 78 AS INTEGER ) * + - COUNT ( * ) + - COUNT ( - 88 ) * 40
----
-314

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT 20 * - 7 * + 93 + - 42 + - + 79 * + + 28 * + - COALESCE ( + MAX( ALL - 99 ), 30 - - - 21 ) AS col1
----
-232050

skipif mysql # not compatible
query I rowsort label-7941
SELECT 20 * - 7 * + 93 + - 42 + - + 79 * + + 28 * + - COALESCE ( + MAX ( ALL - 99 ), 30 - - - 21 ) AS col1
----
-232050

query I rowsort
SELECT ALL - 84 * - 70
----
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT - 28 * + 40 * + NULLIF ( + + 89, MIN( DISTINCT 49 ) ) AS col2
----
-99680

skipif mysql # not compatible
query I rowsort label-7943
SELECT - 28 * + 40 * + NULLIF ( + + 89, MIN ( DISTINCT 49 ) ) AS col2
----
-99680

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT + 34 * COUNT( * ) * 80 AS col1
----
2720

skipif mysql # not compatible
query I rowsort label-7944
SELECT + 34 * COUNT ( * ) * 80 AS col1
----
2720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7945
SELECT + ( + CAST( + - COUNT( * ) AS SIGNED ) ) + + COALESCE ( 47, - 10, + ( + 79 ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7945
SELECT + ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) + + COALESCE ( 47, - 10, + ( + 79 ) ) AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7946
SELECT ALL - 2 DIV - 96 col2
----
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - 2 / - 96 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7947
SELECT - + 96 + - AVG ( 50 ) * + MIN( DISTINCT + - 34 ) * + COUNT( * ) * - 64 + CAST( NULL AS SIGNED ) + - 90 + - - ( + 31 ) * 2 * 92 + - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT - + 96 + - AVG ( 50 ) * + MIN ( DISTINCT + - 34 ) * + COUNT ( * ) * - 64 + CAST ( NULL AS INTEGER ) + - 90 + - - ( + 31 ) * 2 * 92 + - - 81
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7948
SELECT - + MAX ( + - 70 )
----
70

query I rowsort
SELECT ALL - NULLIF ( + - 39, + 66 + - 74 + + 48 * - 19 )
----
39

query I rowsort
SELECT ALL - 52 * - 57
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT + - COUNT( * ) + NULLIF ( + - 65, 78 + + ( + 14 ) ) + + COUNT( * ) + - COALESCE ( - - 14, + - 0 ) * - 46 + - 31 AS col0
----
548

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + - COUNT ( * ) + NULLIF ( + - 65, 78 + + ( + 14 ) ) + + COUNT ( * ) + - COALESCE ( - - 14, + - 0 ) * - 46 + - 31 AS col0
----
548

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL 15 + 89 * - CASE + 61 WHEN - 55 THEN - 53 ELSE - + ( SUM( DISTINCT + + 3 ) ) END
----
282

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL 15 + 89 * - CASE + 61 WHEN - 55 THEN - 53 ELSE - + ( SUM ( DISTINCT + + 3 ) ) END
----
282

query I rowsort
SELECT 35 + - 46 * + ( - 55 ) AS col2
----
2565

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

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

query I rowsort
SELECT ALL 72 * 59 AS col1
----
4248

query I rowsort
SELECT ALL + ( 35 ) + - 93 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT COUNT( * ) + - ( + 50 ) * - 27 AS col0
----
1351

skipif mysql # not compatible
query I rowsort label-7957
SELECT COUNT ( * ) + - ( + 50 ) * - 27 AS col0
----
1351

query I rowsort
SELECT + 64 + 53 AS col0
----
117

query I rowsort
SELECT 4 - + - 54
----
58

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

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

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

query I rowsort
SELECT DISTINCT - 7 - 47 AS col1
----
-54

query I rowsort
SELECT ALL - 87 * + 58 * 11
----
-55506

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT + 31 * CASE WHEN NULL IS NULL THEN 34 END + COUNT( * ) AS col0
----
1055

skipif mysql # not compatible
query I rowsort label-7964
SELECT + 31 * CASE WHEN NULL IS NULL THEN 34 END + COUNT ( * ) AS col0
----
1055

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT COUNT( 85 ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT COUNT ( 85 ) * + 0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7967
SELECT NULLIF ( + COUNT( * ), - - SUM( ALL - 80 ) ) DIV 77 + MIN( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-7967
SELECT NULLIF ( + COUNT ( * ), - - SUM ( ALL - 80 ) ) / 77 + MIN ( - 32 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT ALL CASE + ( + 65 ) WHEN + 20 THEN NULL WHEN 36 THEN + + NULLIF ( - 40, - 60 + + 85 * - - MAX( - - 22 ) ) + CAST( NULL AS SIGNED ) / - COUNT( * ) + 61 * + ( NULLIF ( - + 12, + 76 * 94 ) ) + - + 47 + 9 * + + 87 * + 22 + - ( - - 82 ) + MAX( ALL + 32 ) END * 11 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL CASE + ( + 65 ) WHEN + 20 THEN NULL WHEN 36 THEN + + NULLIF ( - 40, - 60 + + 85 * - - MAX ( - - 22 ) ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 61 * + ( NULLIF ( - + 12, + 76 * 94 ) ) + - + 47 + 9 * + + 87 * + 22 + - ( - - 82 ) + MAX ( ALL + 32 ) END * 11 * 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT 68 DIV - 40 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7969
SELECT 68 / - 40 AS col1
----
-1

query I rowsort
SELECT ALL - 15 * + - 84 AS col1
----
1260

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

skipif mysql # not compatible
query II rowsort label-7971
SELECT ALL - COUNT ( * ) col1, 11
----
-1
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT 58 DIV - - 12 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7972
SELECT 58 / - - 12 AS col0
----
4

query II rowsort
SELECT ALL - 39 AS col0, - 88 AS col1
----
-39
-88

query I rowsort
SELECT 84 + + 21
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT DISTINCT - COALESCE ( + 22, - CAST( - + 51 AS SIGNED ), + + 97 + + 62, - 77 )
----
-22

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT - COALESCE ( + 22, - CAST ( - + 51 AS INTEGER ), + + 97 + + 62, - 77 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL + 25 + - - SUM( + 37 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL + 25 + - - SUM ( + 37 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7977
SELECT 67 - COUNT( * ) DIV COUNT( - 24 )
----
66

skipif mysql # not compatible
query I rowsort label-7977
SELECT 67 - COUNT ( * ) / COUNT ( - 24 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT ALL - 62 + 55 + - ( - 84 ) * + + CAST( - + 71 AS SIGNED )
----
-5971

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL - 62 + 55 + - ( - 84 ) * + + CAST ( - + 71 AS INTEGER )
----
-5971

onlyif mysql # aggregate syntax: 
query II rowsort label-7979
SELECT 77 - - - COUNT( * ), + 85 AS col2
----
76
85

skipif mysql # not compatible
query II rowsort label-7979
SELECT 77 - - - COUNT ( * ), + 85 AS col2
----
76
85

query I rowsort
SELECT ALL - - 29 + - 89 col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7981
SELECT - + 27, - 55 * - COUNT( * ) col0
----
-27
55

skipif mysql # not compatible
query II rowsort label-7981
SELECT - + 27, - 55 * - COUNT ( * ) col0
----
-27
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ALL + 65 + - 39 + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL + 65 + - 39 + COUNT ( * )
----
27

query I rowsort
SELECT DISTINCT + - 17 + + 1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT ALL CASE - - 58 WHEN + 58 * + 66 + CAST( + - 29 AS SIGNED ) THEN - COUNT( * ) WHEN + MIN( ALL + COALESCE ( 36, - - 9, - 19 ) ) + - 69 THEN + 13 ELSE - ( - - 44 ) + + 91 + - - 43 * + + COALESCE ( - - ( + - 84 ), 91 ) END + + 88 + - 9 * 34
----
-3783

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL CASE - - 58 WHEN + 58 * + 66 + CAST ( + - 29 AS INTEGER ) THEN - COUNT ( * ) WHEN + MIN ( ALL + COALESCE ( 36, - - 9, - 19 ) ) + - 69 THEN + 13 ELSE - ( - - 44 ) + + 91 + - - 43 * + + COALESCE ( - - ( + - 84 ), 91 ) END + + 88 + - 9 * 34
----
-3783

query I rowsort
SELECT + 69 + 45 col2
----
114

onlyif mysql # DIV for integer division: 
query II rowsort label-7986
SELECT 60, 69 DIV + 65 AS col2
----
60
1

skipif mysql # not compatible
query II rowsort label-7986
SELECT 60, 69 / + 65 AS col2
----
60
1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7988
SELECT + 35 DIV 64 + - + CAST( 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-7988
SELECT + 35 / 64 + - + CAST ( 23 AS INTEGER )
----
-23

query II rowsort
SELECT 97 AS col1, 69 * - - 81
----
97
5589

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT ALL - SUM( 0 ) DIV - 58 * 54
----
0

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL - SUM ( 0 ) / - 58 * 54
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT ALL + 69 DIV - 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL + 69 / - 54 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT DISTINCT + 47 * - 4 + - + 65 DIV + 55 + - 6
----
-195

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + 47 * - 4 + - + 65 / + 55 + - 6
----
-195

query I rowsort
SELECT ALL 15 * + - 64
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - 85 * + - MAX( DISTINCT + + 49 ) AS col2
----
4165

skipif mysql # not compatible
query I rowsort label-7995
SELECT - 85 * + - MAX ( DISTINCT + + 49 ) AS col2
----
4165

onlyif mysql # aggregate syntax: 
query III rowsort label-7996
SELECT - 54 AS col2, - 35, - + ( + COUNT( * ) ) + + 61 AS col0
----
-54
-35
60

skipif mysql # not compatible
query III rowsort label-7996
SELECT - 54 AS col2, - 35, - + ( + COUNT ( * ) ) + + 61 AS col0
----
-54
-35
60

query I rowsort
SELECT 83 * - + 80 - - - NULLIF ( 46, - 22 )
----
-6686

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT MAX( + ( - 25 ) ) * + 79
----
-1975

skipif mysql # not compatible
query I rowsort label-8001
SELECT MAX ( + ( - 25 ) ) * + 79
----
-1975

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8002
SELECT ALL 35 DIV - - 6 AS col0, - CAST( - + 45 AS SIGNED ) AS col1
----
5
45

skipif mysql # not compatible
query II rowsort label-8002
SELECT ALL 35 / - - 6 AS col0, - CAST ( - + 45 AS INTEGER ) AS col1
----
5
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT + 45 * - NULLIF ( - COUNT( * ), + 91 ) * ( + + ( - + 55 ) ) - + 71 AS col0, 98 AS col0
----
-2546
98

skipif mysql # not compatible
query II rowsort label-8003
SELECT + 45 * - NULLIF ( - COUNT ( * ), + 91 ) * ( + + ( - + 55 ) ) - + 71 AS col0, 98 AS col0
----
-2546
98

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

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

query I rowsort
SELECT ( 97 ) + 1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT SUM( ALL + 44 ), - 13 AS col0
----
44
-13

skipif mysql # not compatible
query II rowsort label-8006
SELECT SUM ( ALL + 44 ), - 13 AS col0
----
44
-13

query II rowsort
SELECT DISTINCT 16 + 27 AS col2, + 55
----
43
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8008
SELECT ALL 75 + - 53 DIV + 83 - - 8 * - SUM( + - CAST( - 14 AS SIGNED ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL 75 + - 53 / + 83 - - 8 * - SUM ( + - CAST ( - 14 AS INTEGER ) ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8009
SELECT CASE - 53 WHEN COUNT( * ) / + ( + 32 ) + + 80 THEN - + 86 + + - 26 + + 17 * 24 * + + 30 * + 89 * + ( 53 ) WHEN - - 85 + 85 THEN - ( - CAST( NULL AS SIGNED ) ) * - 16 END * + 77 / - + 53 - - 37 + + - ( + 13 ) + 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT CASE - 53 WHEN COUNT ( * ) / + ( + 32 ) + + 80 THEN - + 86 + + - 26 + + 17 * 24 * + + 30 * + 89 * + ( 53 ) WHEN - - 85 + 85 THEN - ( - CAST ( NULL AS INTEGER ) ) * - 16 END * + 77 / - + 53 - - 37 + + - ( + 13 ) + 50 col0
----
NULL

query I rowsort
SELECT ( 3 ) + + 39
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT DISTINCT 80 + 24 - 65 - + 79 * 93 AS col2, CASE + 99 WHEN - ( + - 98 ) + - CASE COUNT( * ) WHEN + ( - 85 ) THEN + MAX( ALL 8 ) WHEN + - COUNT( * ) THEN + 61 + - + 57 END * ( - 22 ) THEN + COUNT( * ) + - 91 WHEN + 89 THEN - 2 * - 50 + - COUNT( * ) WHEN + - 4 * - 65 * - - COUNT( * ) * + 95 THEN NULL ELSE + + 92 END - + + 83 - 34 * ( + 48 * 87 ) * - 49 col1
----
-7308
6957225

skipif mysql # not compatible
query II rowsort label-8011
SELECT DISTINCT 80 + 24 - 65 - + 79 * 93 AS col2, CASE + 99 WHEN - ( + - 98 ) + - CASE COUNT ( * ) WHEN + ( - 85 ) THEN + MAX ( ALL 8 ) WHEN + - COUNT ( * ) THEN + 61 + - + 57 END * ( - 22 ) THEN + COUNT ( * ) + - 91 WHEN + 89 THEN - 2 * - 50 + - COUNT ( * ) WHEN + - 4 * - 65 * - - COUNT ( * ) * + 95 THEN NULL ELSE + + 92 END - + + 83 - 34 * ( + 48 * 87 ) * - 49 col1
----
-7308
6957225

query I rowsort
SELECT ALL 39 + - 56
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8013
SELECT + 88 * - + 93 * - + 2 * + - NULLIF ( + CAST( 18 AS SIGNED ), - - COALESCE ( COUNT( * ), + + 89 ) )
----
-294624

skipif mysql # not compatible
query I rowsort label-8013
SELECT + 88 * - + 93 * - + 2 * + - NULLIF ( + CAST ( 18 AS INTEGER ), - - COALESCE ( COUNT ( * ), + + 89 ) )
----
-294624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8014
SELECT + COUNT( * ) * COUNT( * ) DIV + 87 + + COUNT( * ) + - 42 + - 74
----
-115

skipif mysql # not compatible
query I rowsort label-8014
SELECT + COUNT ( * ) * COUNT ( * ) / + 87 + + COUNT ( * ) + - 42 + - 74
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL MAX( - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL MAX ( - 10 )
----
-10

query I rowsort
SELECT DISTINCT - 33 + - - ( - + 16 ) col1
----
-49

query I rowsort
SELECT + + 95 * + 49 AS col0
----
4655

onlyif mysql # aggregate syntax: 
query II rowsort label-8018
SELECT - 33 + 36, 71 + + - COUNT( * ) AS col1
----
3
70

skipif mysql # not compatible
query II rowsort label-8018
SELECT - 33 + 36, 71 + + - COUNT ( * ) AS col1
----
3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT DISTINCT + - MIN( ALL + 47 ) * 23 + - + 86
----
-1167

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT + - MIN ( ALL + 47 ) * 23 + - + 86
----
-1167

query I rowsort
SELECT ALL 21 - - 41 + - 74 * - ( - 99 )
----
-7264

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - 60 * + COALESCE ( - + 29, - + COUNT( * ) * COUNT( * ) )
----
1740

skipif mysql # not compatible
query I rowsort label-8021
SELECT - 60 * + COALESCE ( - + 29, - + COUNT ( * ) * COUNT ( * ) )
----
1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT ALL + CAST( NULL AS SIGNED ) * SUM( ALL - 74 ) AS col0
----
NULL

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

query I rowsort
SELECT ALL - + 64 - 4 * + COALESCE ( - - 99, + - 93 )
----
-460

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT - 87 DIV + - ( - 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8024
SELECT - 87 / + - ( - 78 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8025
SELECT ALL + 74 * - - 19 DIV + COUNT( * ) + MAX( + 78 ) + - 51
----
1433

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL + 74 * - - 19 / + COUNT ( * ) + MAX ( + 78 ) + - 51
----
1433

query I rowsort
SELECT - - 68 * + - 40 AS col0
----
-2720

query I rowsort
SELECT - + 63 + 25
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT - 35 + - CASE + + 81 WHEN + 34 * + - ( + 43 ) * + 99 * + + 80 THEN + 84 * - - COUNT( * ) ELSE - - 83 END + + 64 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8028
SELECT - 35 + - CASE + + 81 WHEN + 34 * + - ( + 43 ) * + 99 * + + 80 THEN + 84 * - - COUNT ( * ) ELSE - - 83 END + + 64 AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT CAST( - - 93 AS SIGNED ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8029
SELECT CAST ( - - 93 AS INTEGER ) AS col2
----
93

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

query II rowsort
SELECT - 95 + ( + - 46 ) AS col1, - 66 * + 93 * - - 25 * - 65 + 76
----
-141
9974326

query I rowsort
SELECT + 1 - + 36 col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT DISTINCT NULLIF ( + 2, + AVG ( 8 ) * + - 80 + + NULLIF ( + + 80, - + 75 ) - - COALESCE ( - + ( - + COUNT( * ) ), + + 99 ) * - CAST( NULL AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT NULLIF ( + 2, + AVG ( 8 ) * + - 80 + + NULLIF ( + + 80, - + 75 ) - - COALESCE ( - + ( - + COUNT ( * ) ), + + 99 ) * - CAST ( NULL AS INTEGER ) )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT ALL + 51 DIV ( - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL + 51 / ( - 92 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT DISTINCT + 70 DIV - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT + 70 / - 76 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8036
SELECT - ( + COUNT( * ) ) DIV + 78 AS col0, 77
----
0
77

skipif mysql # not compatible
query II rowsort label-8036
SELECT - ( + COUNT ( * ) ) / + 78 AS col0, 77
----
0
77

query I rowsort
SELECT ALL 60 * + 94 + + + 75 * - 69 col2
----
465

query I rowsort
SELECT - ( - 6 ) + + - 94
----
-88

query I rowsort
SELECT ALL + NULLIF ( + 19, 59 * + 1 + + 1 / + 54 ) AS col1
----
19

query I rowsort
SELECT - 11 * + + 81
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT + 78 * + + 99 + - - 89 * + COUNT( * )
----
7811

skipif mysql # not compatible
query I rowsort label-8041
SELECT + 78 * + + 99 + - - 89 * + COUNT ( * )
----
7811

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT COUNT( * ) * - 50 + - 12
----
-62

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT COUNT ( * ) * - 50 + - 12
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8043
SELECT ALL 97 * 34 * + + 94 + + + SUM( ALL + 14 ) DIV + 13 - - + 22 + + 20 * - 80 AS col1
----
308435

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL 97 * 34 * + + 94 + + + SUM ( ALL + 14 ) / + 13 - - + 22 + + 20 * - 80 AS col1
----
308435

query II rowsort
SELECT + 9 AS col0, + 16 + + + CASE - + 48 WHEN 59 THEN - 29 ELSE NULL END - + 83 AS col2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT + COALESCE ( + 99, + 58 * 15 - + 67, - + 52 * + COUNT( * ) + 38 + + MAX( + 58 ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8045
SELECT + COALESCE ( + 99, + 58 * 15 - + 67, - + 52 * + COUNT ( * ) + 38 + + MAX ( + 58 ) ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8046
SELECT + ( + 86 ) * 68 AS col1, + CAST( 82 AS SIGNED ) AS col2
----
5848
82

skipif mysql # not compatible
query II rowsort label-8046
SELECT + ( + 86 ) * 68 AS col1, + CAST ( 82 AS INTEGER ) AS col2
----
5848
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8047
SELECT ALL COALESCE ( + 31, - 48 * 97 * + 58 + - MAX( DISTINCT - 28 ) - COALESCE ( + 92, 46 * + 18, + - 72, COUNT( * ) ) ) * + ( 53 ) + - COUNT( * ) AS col2, MIN( 32 ) * + 11 col0
----
1642
352

skipif mysql # not compatible
query II rowsort label-8047
SELECT ALL COALESCE ( + 31, - 48 * 97 * + 58 + - MAX ( DISTINCT - 28 ) - COALESCE ( + 92, 46 * + 18, + - 72, COUNT ( * ) ) ) * + ( 53 ) + - COUNT ( * ) AS col2, MIN ( 32 ) * + 11 col0
----
1642
352

query I rowsort
SELECT CASE - - 3 WHEN - + 52 * - AVG ( ALL ( - 30 ) ) THEN 69 ELSE - - 88 END
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT + ( 18 ) * - ( + COUNT( + 75 ) ) + - COALESCE ( - + ( + + 46 ), - 26 * + 10 + - - COUNT( * ) + SUM( - + 86 ) ) - 66 col2
----
-38

skipif mysql # not compatible
query I rowsort label-8049
SELECT + ( 18 ) * - ( + COUNT ( + 75 ) ) + - COALESCE ( - + ( + + 46 ), - 26 * + 10 + - - COUNT ( * ) + SUM ( - + 86 ) ) - 66 col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8050
SELECT ALL 40 * - CASE + COUNT( * ) WHEN + 68 THEN 48 ELSE - + 51 + - CAST( + 70 AS SIGNED ) END * CASE 2 WHEN - 23 THEN 94 ELSE - + 13 END * - ( + - COUNT( + CAST( NULL AS SIGNED ) ) ) * + 81 + + 5 + + 55 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL 40 * - CASE + COUNT ( * ) WHEN + 68 THEN 48 ELSE - + 51 + - CAST ( + 70 AS INTEGER ) END * CASE 2 WHEN - 23 THEN 94 ELSE - + 13 END * - ( + - COUNT ( + CAST ( NULL AS INTEGER ) ) ) * + 81 + + 5 + + 55 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8051
SELECT DISTINCT + 25 AS col0, + CAST( 74 AS SIGNED ) + + - 8 col2
----
25
66

skipif mysql # not compatible
query II rowsort label-8051
SELECT DISTINCT + 25 AS col0, + CAST ( 74 AS INTEGER ) + + - 8 col2
----
25
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT CASE 76 WHEN + CAST( NULL AS SIGNED ) THEN - + 20 + - 70 WHEN - - 13 THEN 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT CASE 76 WHEN + CAST ( NULL AS INTEGER ) THEN - + 20 + - 70 WHEN - - 13 THEN 52 END
----
NULL

query I rowsort
SELECT + - 85 * + 84 * + - 15
----
107100

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + CASE - 71 WHEN 52 THEN + 45 WHEN COUNT( * ) THEN + 11 / - 18 ELSE - 74 / - - COUNT( * ) + 38 * COUNT( * ) END + CASE + 81 WHEN 53 * - 29 THEN + 59 - 63 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT + CASE - 71 WHEN 52 THEN + 45 WHEN COUNT ( * ) THEN + 11 / - 18 ELSE - 74 / - - COUNT ( * ) + 38 * COUNT ( * ) END + CASE + 81 WHEN 53 * - 29 THEN + 59 - 63 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8055
SELECT DISTINCT 20 DIV + 27 * 24 + - COUNT( ALL 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT 20 / + 27 * 24 + - COUNT ( ALL 0 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT ALL + 15 * 52 - + COUNT( * ) * 4 * - COALESCE ( 11, + NULLIF ( - 47, - COUNT( * ) ), + + COUNT( * ), + 58 ) AS col2, + 67
----
824
67

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL + 15 * 52 - + COUNT ( * ) * 4 * - COALESCE ( 11, + NULLIF ( - 47, - COUNT ( * ) ), + + COUNT ( * ), + 58 ) AS col2, + 67
----
824
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8057
SELECT + + 33 col0, CAST( NULL AS SIGNED ) / 95 / COUNT( * )
----
33
NULL

skipif mysql # not compatible
query II rowsort label-8057
SELECT + + 33 col0, CAST ( NULL AS INTEGER ) / 95 / COUNT ( * )
----
33
NULL

query II rowsort
SELECT 89, + 82 col2
----
89
82

query I rowsort
SELECT + 8 - - 20
----
28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT DISTINCT + 2 DIV - - 60
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT + 2 / - - 60
----
0

query I rowsort
SELECT ALL 61 * 25 col0
----
1525

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT DISTINCT - COALESCE ( - 89, - 21 * 41 + + 82 DIV - + 2 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT - COALESCE ( - 89, - 21 * 41 + + 82 / - + 2 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT DISTINCT ( - 29 ) * + 12 * COUNT( * ) col0
----
-348

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT ( - 29 ) * + 12 * COUNT ( * ) col0
----
-348

query I rowsort
SELECT ALL NULLIF ( 8, + 4 )
----
8

query I rowsort
SELECT + - 83 * - 1 + - 33
----
50

query I rowsort
SELECT ALL - 77 * + 58 * - 85 AS col1
----
379610

query II rowsort
SELECT 95 col2, - 87
----
95
-87

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT + NULLIF ( - 73, + 23 + - 25 ) * CASE + AVG ( DISTINCT - 30 ) WHEN - - ( 84 ) / - 49 THEN + AVG ( - 62 ) ELSE - CAST( NULL AS SIGNED ) END * + 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT + NULLIF ( - 73, + 23 + - 25 ) * CASE + AVG ( DISTINCT - 30 ) WHEN - - ( 84 ) / - 49 THEN + AVG ( - 62 ) ELSE - CAST ( NULL AS INTEGER ) END * + 19 col1
----
NULL

query I rowsort
SELECT - 94 * 62 AS col2
----
-5828

onlyif mysql # aggregate syntax: 
query II rowsort label-8073
SELECT DISTINCT 94 AS col1, NULLIF ( + SUM( ALL + 7 ), - + 55 ) AS col1
----
94
7

skipif mysql # not compatible
query II rowsort label-8073
SELECT DISTINCT 94 AS col1, NULLIF ( + SUM ( ALL + 7 ), - + 55 ) AS col1
----
94
7

query I rowsort
SELECT + 38 + + 40
----
78

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8076
SELECT ALL + 65 * 43 * - CASE - 83 WHEN + 59 THEN 67 - NULLIF ( + 69, + - 99 ) + - + 14 * - - SUM( DISTINCT + 40 ) / - - 28 ELSE NULL END * - 52 AS col2, 7
----
NULL
7

skipif mysql # not compatible
query II rowsort label-8076
SELECT ALL + 65 * 43 * - CASE - 83 WHEN + 59 THEN 67 - NULLIF ( + 69, + - 99 ) + - + 14 * - - SUM ( DISTINCT + 40 ) / - - 28 ELSE NULL END * - 52 AS col2, 7
----
NULL
7

query I rowsort
SELECT - NULLIF ( 67, 24 ) * - 61 * - 85
----
-347395

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT DISTINCT CAST( - + 26 AS SIGNED ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT CAST ( - + 26 AS INTEGER ) AS col2
----
-26

query II rowsort
SELECT ALL + 65 * - - 49, + 16 + + - 41 AS col1
----
3185
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + COUNT( * ) + 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8081
SELECT + COUNT ( * ) + 72 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8082
SELECT - CAST( NULL AS SIGNED ) * + 50 AS col2, + 28 * - 97 AS col0
----
NULL
-2716

skipif mysql # not compatible
query II rowsort label-8082
SELECT - CAST ( NULL AS INTEGER ) * + 50 AS col2, + 28 * - 97 AS col0
----
NULL
-2716

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT DISTINCT 55 DIV - 53 + - NULLIF ( - 60, - 76 + + + 2 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT 55 / - 53 + - NULLIF ( - 60, - 76 + + + 2 ) col0
----
59

query I rowsort
SELECT + 37 * + + 59 - + 15 col1
----
2168

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + CASE + 34 WHEN + 62 THEN NULL WHEN 31 THEN + 88 + COUNT( * ) / + 59 * - + 84 / + + COUNT( * ) ELSE + 50 + - - COALESCE ( - 38, - 19 ) END
----
12

skipif mysql # not compatible
query I rowsort label-8085
SELECT + CASE + 34 WHEN + 62 THEN NULL WHEN 31 THEN + 88 + COUNT ( * ) / + 59 * - + 84 / + + COUNT ( * ) ELSE + 50 + - - COALESCE ( - 38, - 19 ) END
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8086
SELECT ALL + COALESCE ( + 52, + - 66, - 25 ), COUNT( * ) AS col0
----
52
1

skipif mysql # not compatible
query II rowsort label-8086
SELECT ALL + COALESCE ( + 52, + - 66, - 25 ), COUNT ( * ) AS col0
----
52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT - CASE AVG ( + 92 ) WHEN + 53 * 15 + COUNT( * ) THEN NULL ELSE 69 END + + 62
----
-7

skipif mysql # not compatible
query I rowsort label-8087
SELECT - CASE AVG ( + 92 ) WHEN + 53 * 15 + COUNT ( * ) THEN NULL ELSE 69 END + + 62
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8088
SELECT ALL - 3 DIV + SUM( 26 )
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - 3 / + SUM ( 26 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8089
SELECT DISTINCT + 52 DIV - 13 + 25 + + + NULLIF ( - 4, 33 * + 18 + - 15 * 41 + - 38 ) * + 54 * - COUNT( * ) + 9 - - 46 AS col2
----
292

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + 52 / - 13 + 25 + + + NULLIF ( - 4, 33 * + 18 + - 15 * 41 + - 38 ) * + 54 * - COUNT ( * ) + 9 - - 46 AS col2
----
292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8090
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) DIV + - 23 * - 17 + + + 7
----
7

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) / + - 23 * - 17 + + + 7
----
7

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8092
SELECT DISTINCT - 21 DIV 64 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT - 21 / 64 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL NULLIF ( + - 52, + + 80 ) + - 33
----
-85

query I rowsort
SELECT - 98 * 40 * 36 - - 81
----
-141039

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL NULLIF ( ( - 97 ), - + 72 + 72 ) * + + COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL NULLIF ( ( - 97 ), - + 72 + 72 ) * + + COUNT ( * ) AS col2
----
-97

query I rowsort
SELECT 76 + + 53 * + + 6 AS col0
----
394

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8097
SELECT 31 DIV - 64 - ( + - 91 ), COUNT( * ) + - ( - ( + + 23 ) ) + 87 * - 8 * + - COUNT( * ) col0
----
91
720

skipif mysql # not compatible
query II rowsort label-8097
SELECT 31 / - 64 - ( + - 91 ), COUNT ( * ) + - ( - ( + + 23 ) ) + 87 * - 8 * + - COUNT ( * ) col0
----
91
720

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

query I rowsort
SELECT ( 10 ) col0
----
10

query I rowsort
SELECT + - 17 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT 96 + + MAX( DISTINCT + + CASE WHEN NOT - 47 NOT BETWEEN NULL AND 10 * 74 + + + 75 THEN - 93 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT 96 + + MAX ( DISTINCT + + CASE WHEN NOT - 47 NOT BETWEEN NULL AND 10 * 74 + + + 75 THEN - 93 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT ALL - CASE 49 WHEN - 47 / 73 + - 38 - + 61 - + MIN( DISTINCT + 20 ) / - 1 * + 52 * - + 37 + 51 THEN - + CASE - 58 WHEN 59 / 25 - - 19 + - + 6 - ( + 74 ) - - - 74 + - COUNT( * ) * 90 * - 73 * 47 THEN - 32 + 86 + - + 99 / 21 WHEN + 95 THEN NULL WHEN - + ( + 50 ) THEN NULLIF ( + + NULLIF ( + 18, 17 ), 5 ) WHEN - 83 - - 5 THEN NULL END WHEN 83 + COALESCE ( - 8, - NULLIF ( COUNT( * ), - 85 / MAX( DISTINCT + 50 ) + MIN( DISTINCT - 47 ) ) + - ( 86 ) * 60 ) THEN + 25 END - SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL - CASE 49 WHEN - 47 / 73 + - 38 - + 61 - + MIN ( DISTINCT + 20 ) / - 1 * + 52 * - + 37 + 51 THEN - + CASE - 58 WHEN 59 / 25 - - 19 + - + 6 - ( + 74 ) - - - 74 + - COUNT ( * ) * 90 * - 73 * 47 THEN - 32 + 86 + - + 99 / 21 WHEN + 95 THEN NULL WHEN - + ( + 50 ) THEN NULLIF ( + + NULLIF ( + 18, 17 ), 5 ) WHEN - 83 - - 5 THEN NULL END WHEN 83 + COALESCE ( - 8, - NULLIF ( COUNT ( * ), - 85 / MAX ( DISTINCT + 50 ) + MIN ( DISTINCT - 47 ) ) + - ( 86 ) * 60 ) THEN + 25 END - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT MAX( + + 4 ) AS col0, + 52
----
4
52

skipif mysql # not compatible
query II rowsort label-8103
SELECT MAX ( + + 4 ) AS col0, + 52
----
4
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8104
SELECT ALL - - COUNT( DISTINCT - + 83 ) AS col0, - 65 AS col2
----
1
-65

skipif mysql # not compatible
query II rowsort label-8104
SELECT ALL - - COUNT ( DISTINCT - + 83 ) AS col0, - 65 AS col2
----
1
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT ALL + 18 DIV + 31 col2
----
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL + 18 / + 31 col2
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-8106
SELECT 4 * + - 13 * 16 * + ( - 27 ), + COUNT( * ) + - - 60 AS col0, COUNT( * ) - 54 AS col1
----
22464
61
-53

skipif mysql # not compatible
query III rowsort label-8106
SELECT 4 * + - 13 * 16 * + ( - 27 ), + COUNT ( * ) + - - 60 AS col0, COUNT ( * ) - 54 AS col1
----
22464
61
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT - 88 * + 84 * CAST( NULL AS SIGNED ) + + ( + + COUNT( * ) ) + 4 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT - 88 * + 84 * CAST ( NULL AS INTEGER ) + + ( + + COUNT ( * ) ) + 4 * + 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8108
SELECT - 78 DIV 8 * - - ( + 24 )
----
-216

skipif mysql # not compatible
query I rowsort label-8108
SELECT - 78 / 8 * - - ( + 24 )
----
-216

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

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

query I rowsort
SELECT ALL - 55 + - 10 - + + 5 AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8111
SELECT + COUNT( * ) + - 86 DIV - 93
----
1

skipif mysql # not compatible
query I rowsort label-8111
SELECT + COUNT ( * ) + - 86 / - 93
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT MIN( - + 74 ) * 53 * - 7 AS col1
----
27454

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT MIN ( - + 74 ) * 53 * - 7 AS col1
----
27454

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8114
SELECT CAST( + 22 AS SIGNED ) + - + 55 AS col2, COUNT( * )
----
-33
1

skipif mysql # not compatible
query II rowsort label-8114
SELECT CAST ( + 22 AS INTEGER ) + - + 55 AS col2, COUNT ( * )
----
-33
1

query I rowsort
SELECT ALL 23 + - 54 AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT 87 + - 0 + 89 + + ( - 90 ) DIV + - 34 AS col1
----
178

skipif mysql # not compatible
query I rowsort label-8116
SELECT 87 + - 0 + 89 + + ( - 90 ) / + - 34 AS col1
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8117
SELECT ( + 23 ) + + - 41 * + 76 * + MIN( ALL - CAST( NULL AS SIGNED ) ) / - ( + + 50 ) + 33 * + 7 * COALESCE ( - + 11, 89 ) * + ( - - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT ( + 23 ) + + - 41 * + 76 * + MIN ( ALL - CAST ( NULL AS INTEGER ) ) / - ( + + 50 ) + 33 * + 7 * COALESCE ( - + 11, 89 ) * + ( - - COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT 10, 58 - - - 25 + + 55 AS col1
----
10
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT COUNT( DISTINCT + - ( - 23 ) ) + COUNT( 83 ) AS col1, 53 - - 56
----
2
109

skipif mysql # not compatible
query II rowsort label-8119
SELECT COUNT ( DISTINCT + - ( - 23 ) ) + COUNT ( 83 ) AS col1, 53 - - 56
----
2
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL 64 + 20 - + 71 + + 13 + - 95 * + ( + COUNT( * ) ) + + + ( + 22 ) * + - 7 / + - COALESCE ( + 14, 69 + 12 + + - 24 * + 66, + COUNT( * ) + - COUNT( * ) ) * + MAX( + 62 ) * 78 + 64 * 16 - CASE - + 27 WHEN - 9 THEN - - 29 * - 97 * NULLIF ( - - 76, - 7 * - 30 + + NULLIF ( + 2, - + 98 - + 1 ) ) + + COALESCE ( + 82, 87 / + COUNT( * ) - - 73, - 51, + COUNT( * ) * + 0 + 81 ) / 58 WHEN 70 * 7 THEN + 88 END + 33 * - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL 64 + 20 - + 71 + + 13 + - 95 * + ( + COUNT ( * ) ) + + + ( + 22 ) * + - 7 / + - COALESCE ( + 14, 69 + 12 + + - 24 * + 66, + COUNT ( * ) + - COUNT ( * ) ) * + MAX ( + 62 ) * 78 + 64 * 16 - CASE - + 27 WHEN - 9 THEN - - 29 * - 97 * NULLIF ( - - 76, - 7 * - 30 + + NULLIF ( + 2, - + 98 - + 1 ) ) + + COALESCE ( + 82, 87 / + COUNT ( * ) - - 73, - 51, + COUNT ( * ) * + 0 + 81 ) / 58 WHEN 70 * 7 THEN + 88 END + 33 * - 90 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 8 * - 49
----
392

query I rowsort
SELECT ALL 16 * + 18 * + ( + 51 )
----
14688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8123
SELECT DISTINCT - 17 * - + 1 DIV - + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT - 17 * - + 1 / - + COUNT ( * )
----
-17

query I rowsort
SELECT ALL + 63 - + ( 60 ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8125
SELECT 91, - 91 - + 26 DIV 44 AS col2
----
91
-91

skipif mysql # not compatible
query II rowsort label-8125
SELECT 91, - 91 - + 26 / 44 AS col2
----
91
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8126
SELECT 35 * CASE - 45 WHEN 84 + - + AVG ( DISTINCT - 23 ) THEN - COALESCE ( + 3, + - MAX( NULLIF ( - + 38, 23 ) ) ) + + 34 + - + CAST( NULL AS SIGNED ) / COALESCE ( - 47, - 36 ) WHEN + 61 + + COUNT( + 40 ) THEN - ( + 85 ) + - - 21 + + + ( - ( COUNT( * ) ) ) / 95 * 98 WHEN 40 THEN NULL ELSE NULL END + + 59 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT 35 * CASE - 45 WHEN 84 + - + AVG ( DISTINCT - 23 ) THEN - COALESCE ( + 3, + - MAX ( NULLIF ( - + 38, 23 ) ) ) + + 34 + - + CAST ( NULL AS INTEGER ) / COALESCE ( - 47, - 36 ) WHEN + 61 + + COUNT ( + 40 ) THEN - ( + 85 ) + - - 21 + + + ( - ( COUNT ( * ) ) ) / 95 * 98 WHEN 40 THEN NULL ELSE NULL END + + 59 * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT 92 DIV + - 32
----
-2

skipif mysql # not compatible
query I rowsort label-8127
SELECT 92 / + - 32
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8128
SELECT 28 * - - MAX( NULLIF ( - 95, - 68 ) ), 92 + - SUM( + + 96 ) AS col1
----
-2660
-4

skipif mysql # not compatible
query II rowsort label-8128
SELECT 28 * - - MAX ( NULLIF ( - 95, - 68 ) ), 92 + - SUM ( + + 96 ) AS col1
----
-2660
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8129
SELECT ALL - CAST( - + NULLIF ( - 42, + AVG ( 79 ) / + - 97 * + 27 + + + SUM( CAST( + 85 AS SIGNED ) ) * + 67 * + ( 16 ) ) AS SIGNED ) AS col1, 87 AS col2
----
-42
87

skipif mysql # not compatible
query II rowsort label-8129
SELECT ALL - CAST ( - + NULLIF ( - 42, + AVG ( 79 ) / + - 97 * + 27 + + + SUM ( CAST ( + 85 AS INTEGER ) ) * + 67 * + ( 16 ) ) AS INTEGER ) AS col1, 87 AS col2
----
-42
87

query I rowsort
SELECT 50 * + - 43 AS col1
----
-2150

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL - CASE 32 WHEN - SUM( - - 69 ) + - 26 + SUM( DISTINCT + 88 ) - - 60 THEN 87 + - 9 * - - 89 * + 1 ELSE NULL END / - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL - CASE 32 WHEN - SUM ( - - 69 ) + - 26 + SUM ( DISTINCT + 88 ) - - 60 THEN 87 + - 9 * - - 89 * + 1 ELSE NULL END / - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT + 89 * + COUNT( * ) * + 19 + - ( + ( - 33 ) ) col2
----
1724

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT + 89 * + COUNT ( * ) * + 19 + - ( + ( - 33 ) ) col2
----
1724

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

skipif mysql # not compatible
query I rowsort label-8133
SELECT COUNT ( * ) / - - 63 / - + 19
----
0

query I rowsort
SELECT 19 + 31 + 37 AS col0
----
87

query I rowsort
SELECT DISTINCT - + 90 * - 71 AS col1
----
6390

query II rowsort
SELECT - - 11 AS col1, + 14 AS col2
----
11
14

query I rowsort
SELECT ALL - 95 * - 17 - 29 col2
----
1586

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT - + ( - 89 ) * + - ( + + COALESCE ( + ( - 83 ), + 45 + - 5, - - COUNT( * ) ) ) AS col1
----
7387

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT - + ( - 89 ) * + - ( + + COALESCE ( + ( - 83 ), + 45 + - 5, - - COUNT ( * ) ) ) AS col1
----
7387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8139
SELECT DISTINCT 68 + + COALESCE ( - 23, - - COUNT( * ) + + + CAST( + + 92 AS SIGNED ) * + - 81 )
----
45

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT 68 + + COALESCE ( - 23, - - COUNT ( * ) + + + CAST ( + + 92 AS INTEGER ) * + - 81 )
----
45

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

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL 73 + + + COUNT ( * ) AS col0
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL + 93 + SUM( DISTINCT + + 11 ) * + + MAX( ALL + - 76 ) * + 92 * - COUNT( + 33 )
----
77005

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL + 93 + SUM ( DISTINCT + + 11 ) * + + MAX ( ALL + - 76 ) * + 92 * - COUNT ( + 33 )
----
77005

query II rowsort
SELECT ALL 36, - 51 * + - 79 AS col0
----
36
4029

query II rowsort
SELECT - 37 AS col1, 18 + + + 45
----
-37
63

query I rowsort
SELECT 58 * 26
----
1508

onlyif mysql # aggregate syntax: 
query II rowsort label-8146
SELECT ALL 94, + 84 * COUNT( * ) AS col0
----
94
84

skipif mysql # not compatible
query II rowsort label-8146
SELECT ALL 94, + 84 * COUNT ( * ) AS col0
----
94
84

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8148
SELECT CAST( NULL AS DECIMAL ) + - - 15 + - 83 + 13 + - MIN( - - 39 ) + + COUNT( * ) * + 58 / COUNT( * ) * 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT CAST ( NULL AS REAL ) + - - 15 + - 83 + 13 + - MIN ( - - 39 ) + + COUNT ( * ) * + 58 / COUNT ( * ) * 3 col2
----
NULL

query I rowsort
SELECT ALL 52 * - ( 18 ) * - 66 AS col0
----
61776

query I rowsort
SELECT ALL 70 - + 17 - - 24 AS col2
----
77

query I rowsort
SELECT DISTINCT + 21 * + + 17 AS col2
----
357

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

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL 46 - - + COUNT ( * ) AS col1
----
47

query II rowsort
SELECT 71, + CASE + ( + 79 ) WHEN 1 * 20 + - 16 + + NULLIF ( - 0, - 50 ) + + + ( - 66 ) / 67 * COALESCE ( - ( - 3 ), + - 22, + 29 * 14 ) THEN + 46 - - + 60 ELSE NULL END + - 79 - - - 61 AS col0
----
71
NULL

query I rowsort
SELECT ALL 16 * + 33 AS col0
----
528

query II rowsort
SELECT DISTINCT 75 * 43, 77 col0
----
3225
77

query I rowsort
SELECT + 98 + - - 81 AS col0
----
179

query I rowsort
SELECT + 16 * + - 5 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT CASE - 81 WHEN - + COUNT( * ) * - 49 + + + 56 THEN + - 94 WHEN - - 35 * 45 THEN - AVG ( DISTINCT CASE + 99 WHEN 29 THEN 12 * + 82 WHEN - 37 THEN NULL WHEN + 42 THEN NULL END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT CASE - 81 WHEN - + COUNT ( * ) * - 49 + + + 56 THEN + - 94 WHEN - - 35 * 45 THEN - AVG ( DISTINCT CASE + 99 WHEN 29 THEN 12 * + 82 WHEN - 37 THEN NULL WHEN + 42 THEN NULL END ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT + SUM( ALL - 10 ) * + COUNT( * ) - + + 12 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT + SUM ( ALL - 10 ) * + COUNT ( * ) - + + 12 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + 99, + 29 ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8161
SELECT ALL + 66 AS col0, - SUM( - COALESCE ( - CAST( - ( + + 2 ) AS SIGNED ), - 1 ) ) * + + NULLIF ( + - 56, + - COUNT( * ) ) * - 55 + - COUNT( * ) + + COUNT( * ) + + 3
----
66
6163

skipif mysql # not compatible
query II rowsort label-8161
SELECT ALL + 66 AS col0, - SUM ( - COALESCE ( - CAST ( - ( + + 2 ) AS INTEGER ), - 1 ) ) * + + NULLIF ( + - 56, + - COUNT ( * ) ) * - 55 + - COUNT ( * ) + + COUNT ( * ) + + 3
----
66
6163

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT 68 DIV - + 80 + + 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8162
SELECT 68 / - + 80 + + 80 AS col2
----
80

query I rowsort
SELECT - 74 * 58 AS col2
----
-4292

query I rowsort
SELECT + ( 20 ) + 56 + + + 14 AS col2
----
90

query I rowsort
SELECT ALL - 51 * + + 60
----
-3060

query II rowsort
SELECT DISTINCT + 36, 88 AS col1
----
36
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8167
SELECT + CAST( NULL AS SIGNED ) col0, 58 - - 74 DIV + + 85 - SUM( DISTINCT + 62 ) AS col1
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-8167
SELECT + CAST ( NULL AS INTEGER ) col0, 58 - - 74 / + + 85 - SUM ( DISTINCT + 62 ) AS col1
----
NULL
-4

query I rowsort
SELECT + 54 + 53 + 88
----
195

query I rowsort
SELECT - + 96 + 11
----
-85

query I rowsort
SELECT ALL + 90 * 96 * - + 64
----
-552960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8171
SELECT 83 AS col2, + 84 * + 98 * + 67 + - - COUNT( * ) + + ( COALESCE ( - 55, + 57 * - CAST( NULL AS SIGNED ) ) ) + 68 DIV + + 38
----
83
551491

skipif mysql # not compatible
query II rowsort label-8171
SELECT 83 AS col2, + 84 * + 98 * + 67 + - - COUNT ( * ) + + ( COALESCE ( - 55, + 57 * - CAST ( NULL AS INTEGER ) ) ) + 68 / + + 38
----
83
551491

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT - + COUNT( + + 3 ) * - 58
----
58

skipif mysql # not compatible
query I rowsort label-8172
SELECT - + COUNT ( + + 3 ) * - 58
----
58

query I rowsort
SELECT - - 21 + - 17
----
4

query I rowsort
SELECT ( - - 30 ) * + 68 + + 98 + + 52 AS col2
----
2190

query I rowsort
SELECT ALL - 16 * 61 + 48 AS col0
----
-928

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

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

query I rowsort
SELECT - 4 + - 29
----
-33

query I rowsort
SELECT ALL + - 79 * - NULLIF ( 31, + ( ( - 0 ) ) * 90 ) + 18 AS col2
----
2467

query I rowsort
SELECT ALL NULLIF ( 3, - + 56 ) * + ( - 33 ) + + 43 AS col2
----
-56

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

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

query I rowsort
SELECT DISTINCT 83 * 7 + + 39
----
620

query I rowsort
SELECT - + 77 * + 98 + - 84 AS col1
----
-7630

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

skipif mysql # not compatible
query I rowsort label-8183
SELECT + + 58 * + COUNT ( * ) * - - COUNT ( * ) + + + COUNT ( * ) / + + 97
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT ALL + 6 * - CASE - COUNT( + - 50 ) WHEN + - 78 + - 55 + 25 * + 31 + 88 * - CAST( 29 AS SIGNED ) + 26 / 7 * - 25 THEN + 47 * + + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL + 6 * - CASE - COUNT ( + - 50 ) WHEN + - 78 + - 55 + 25 * + 31 + 88 * - CAST ( 29 AS INTEGER ) + 26 / 7 * - 25 THEN + 47 * + + 55 END
----
NULL

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

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

query II rowsort
SELECT ALL - 34 * 65 AS col1, + 20 AS col2
----
-2210
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8187
SELECT - CAST( - 63 AS SIGNED ) + 83 col2, 62
----
146
62

skipif mysql # not compatible
query II rowsort label-8187
SELECT - CAST ( - 63 AS INTEGER ) + 83 col2, 62
----
146
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8188
SELECT DISTINCT CASE 23 WHEN + NULLIF ( 98, - + 61 * - + 28 + COUNT( * ) ) THEN + - 77 + - 89 * - 72 - + - ( + 38 ) + 19 / - 75 WHEN + CAST( + + 71 AS SIGNED ) + - 21 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT CASE 23 WHEN + NULLIF ( 98, - + 61 * - + 28 + COUNT ( * ) ) THEN + - 77 + - 89 * - 72 - + - ( + 38 ) + 19 / - 75 WHEN + CAST ( + + 71 AS INTEGER ) + - 21 THEN NULL ELSE NULL END AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT - 62 - - 92
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT DISTINCT CAST( - COALESCE ( + 52, + - 86 ) AS SIGNED ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT CAST ( - COALESCE ( + 52, + - 86 ) AS INTEGER ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT - ( + CAST( 44 AS SIGNED ) ) * CASE WHEN - ( + - 65 ) IS NULL THEN + 57 ELSE NULL END * 54 * - 52 + - 47 * - 52 * - + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT - ( + CAST ( 44 AS INTEGER ) ) * CASE WHEN - ( + - 65 ) IS NULL THEN + 57 ELSE NULL END * 54 * - 52 + - 47 * - 52 * - + 46 AS col1
----
NULL

query II rowsort
SELECT + 57 + 5 col0, - 20
----
62
-20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT - NULLIF ( + - 49, NULLIF ( 1, 73 ) * + CAST( + 17 AS SIGNED ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8195
SELECT - NULLIF ( + - 49, NULLIF ( 1, 73 ) * + CAST ( + 17 AS INTEGER ) ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT ALL 56 * 11 * + 64 * - COUNT( * ) * - 96 * + 80 AS col2
----
302776320

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL 56 * 11 * + 64 * - COUNT ( * ) * - 96 * + 80 AS col2
----
302776320

query I rowsort
SELECT + 21 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL + - SUM( DISTINCT - 45 ) * - NULLIF ( + 47, COUNT( * ) ) col0
----
-2115

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL + - SUM ( DISTINCT - 45 ) * - NULLIF ( + 47, COUNT ( * ) ) col0
----
-2115

query I rowsort
SELECT + 86 * 27
----
2322

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT ALL 65 DIV + + 81 + 43 * - 71 AS col1
----
-3053

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL 65 / + + 81 + 43 * - 71 AS col1
----
-3053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8201
SELECT + + CAST( NULL AS SIGNED ) + ( - 22 ) + - 40 + - 65 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT + + CAST ( NULL AS INTEGER ) + ( - 22 ) + - 40 + - 65 * 89
----
NULL

query I rowsort
SELECT - NULLIF ( 57, 74 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT CASE - 78 WHEN + COUNT( + 70 ) THEN - 27 ELSE COUNT( * ) + - - 78 END AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8203
SELECT CASE - 78 WHEN + COUNT ( + 70 ) THEN - 27 ELSE COUNT ( * ) + - - 78 END AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT + COUNT( DISTINCT - 2 ) * - COUNT( * ) + + 28
----
27

skipif mysql # not compatible
query I rowsort label-8204
SELECT + COUNT ( DISTINCT - 2 ) * - COUNT ( * ) + + 28
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8205
SELECT ALL - - COUNT( * ) * 41 + - NULLIF ( - 60, 38 ), 39 AS col2
----
101
39

skipif mysql # not compatible
query II rowsort label-8205
SELECT ALL - - COUNT ( * ) * 41 + - NULLIF ( - 60, 38 ), 39 AS col2
----
101
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL 98 * - 31 + - - 75 + + COUNT( * ) AS col2
----
-2962

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL 98 * - 31 + - - 75 + + COUNT ( * ) AS col2
----
-2962

query I rowsort
SELECT - 33 + 32 + + 3 * + 16 AS col0
----
47

query I rowsort
SELECT + - NULLIF ( - + 36, - 64 )
----
36

query II rowsort
SELECT DISTINCT + 85 * + CASE 32 WHEN + 80 THEN NULL WHEN + 74 THEN - 99 + 70 ELSE NULL END, 65 AS col0
----
NULL
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT - CAST( + + NULLIF ( - 18, + 28 * - 13 + + 40 + - 17 - - 60 + 63 * + 15 * + + 6 * - + 51 * 92 ) AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT - CAST ( + + NULLIF ( - 18, + 28 * - 13 + + 40 + - 17 - - 60 + 63 * + 15 * + + 6 * - + 51 * 92 ) AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 41 - + - 80
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT ALL + 75 DIV + + 73 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + 75 / + + 73 AS col0
----
1

query I rowsort
SELECT 87 * + 65 * - - 74 AS col0
----
418470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT CAST( + 39 AS SIGNED ) + + - 1 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8214
SELECT CAST ( + 39 AS INTEGER ) + + - 1 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT 77 * - - ( + - COUNT( * ) ) * NULLIF ( - - 21, 35 * 1 / + 88 + - - MAX( DISTINCT 42 ) ) + + + NULLIF ( - 1, + ( - + 77 ) / + 33 * + MIN( ALL 44 ) * - 50 )
----
-1618

skipif mysql # not compatible
query I rowsort label-8215
SELECT 77 * - - ( + - COUNT ( * ) ) * NULLIF ( - - 21, 35 * 1 / + 88 + - - MAX ( DISTINCT 42 ) ) + + + NULLIF ( - 1, + ( - + 77 ) / + 33 * + MIN ( ALL 44 ) * - 50 )
----
-1618

query I rowsort
SELECT 12 * - 34
----
-408

query I rowsort
SELECT 15 - - + 31 AS col2
----
46

query II rowsort
SELECT ALL 58 AS col0, 21 AS col0
----
58
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8219
SELECT 7, CASE - + 15 WHEN - 37 THEN 96 / - - COUNT( * ) WHEN + 2 THEN NULL END + + COUNT( * ) * - 57 * - 61 - + COUNT( * ) * 44 * 48 AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8219
SELECT 7, CASE - + 15 WHEN - 37 THEN 96 / - - COUNT ( * ) WHEN + 2 THEN NULL END + + COUNT ( * ) * - 57 * - 61 - + COUNT ( * ) * 44 * 48 AS col1
----
7
NULL

query I rowsort
SELECT DISTINCT + 86 * - 21
----
-1806

onlyif mysql # aggregate syntax: 
query II rowsort label-8221
SELECT 5 + COUNT( * ) + 65 AS col1, ( + 58 ) AS col0
----
71
58

skipif mysql # not compatible
query II rowsort label-8221
SELECT 5 + COUNT ( * ) + 65 AS col1, ( + 58 ) AS col0
----
71
58

query I rowsort
SELECT DISTINCT + ( + 72 ) + - - 0 + + - 51
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8223
SELECT DISTINCT + CASE 73 WHEN + - 10 THEN + + CAST( NULL AS DECIMAL ) ELSE NULL END * - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT + CASE 73 WHEN + - 10 THEN + + CAST ( NULL AS REAL ) ELSE NULL END * - - 51
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8224
SELECT DISTINCT 28 AS col0, - ( - - 17 ) DIV + 17 - 57 + - 79 + - 45 * - 79 - - 36 * - + 51 AS col2
----
28
1582

skipif mysql # not compatible
query II rowsort label-8224
SELECT DISTINCT 28 AS col0, - ( - - 17 ) / + 17 - 57 + - 79 + - 45 * - 79 - - 36 * - + 51 AS col2
----
28
1582

query I rowsort
SELECT ALL - 34 + - + 94
----
-128

query I rowsort
SELECT - 6 * - + ( - 1 ) * ( + COALESCE ( - - 63, + + 0 * 21 ) ) + 12
----
-366

query I rowsort
SELECT ALL + ( 85 ) + - 4 + - 54
----
27

query II rowsort
SELECT + 63 AS col1, - ( + + 34 ) AS col0
----
63
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT + COALESCE ( + + 57, + + 90 ) DIV COUNT( * ) + + + 32 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8229
SELECT + COALESCE ( + + 57, + + 90 ) / COUNT ( * ) + + + 32 AS col2
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-8230
SELECT ALL - + 98 AS col1, + 67 DIV 51 AS col0
----
-98
1

skipif mysql # not compatible
query II rowsort label-8230
SELECT ALL - + 98 AS col1, + 67 / 51 AS col0
----
-98
1

query I rowsort
SELECT DISTINCT - 71 + + 34
----
-37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT + + 36 * - ( + COUNT( * ) ) + ( 42 ) - + CASE - 12 WHEN ( - ( - - 96 ) ) THEN - ( + + 61 ) + 23 + - - NULLIF ( + 70, + 1 * - COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT + + 36 * - ( + COUNT ( * ) ) + ( 42 ) - + CASE - 12 WHEN ( - ( - - 96 ) ) THEN - ( + + 61 ) + 23 + - - NULLIF ( + 70, + 1 * - COUNT ( * ) ) END AS col0
----
NULL

query II rowsort
SELECT + ( - 57 ) + + + 78 AS col0, - 23 * + - 40 * 97
----
21
89240

query I rowsort
SELECT DISTINCT + 88 * + + 32 AS col2
----
2816

query I rowsort
SELECT - 22 + - 52 * 77
----
-4026

query I rowsort
SELECT 80 + + 65 AS col1
----
145

query I rowsort
SELECT ALL + 71 * - 0
----
0

query I rowsort
SELECT 80 * - 26 + - 10 * + 86 * 64 + 4 col1
----
-57116

query I rowsort
SELECT 22 * - + 11
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT 92 + COUNT( * ) * 86
----
178

skipif mysql # not compatible
query I rowsort label-8241
SELECT 92 + COUNT ( * ) * 86
----
178

query I rowsort
SELECT COALESCE ( + - 88, - + 3 + 18 ) + + 28
----
-60

query I rowsort
SELECT 11 + - 32
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8244
SELECT ALL 51 + - 98 + 28 DIV + 70 * - 74 + - COUNT( DISTINCT 38 ) + + 23 DIV 99 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL 51 + - 98 + 28 / + 70 * - 74 + - COUNT ( DISTINCT 38 ) + + 23 / 99 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT - ( - COUNT( * ) ) + 41
----
42

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - ( - COUNT ( * ) ) + 41
----
42

query I rowsort
SELECT 27 + - 7 AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT 1 DIV + 62 * 57
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT 1 / + 62 * 57
----
0

query I rowsort
SELECT 37 + - 92
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT 62 + - 12 + + 66 * + 77 * 0 * 46 DIV 93 - + ( - 89 ) + + 28 DIV + 98 * - + 18 + 17 col0
----
156

skipif mysql # not compatible
query I rowsort label-8249
SELECT 62 + - 12 + + 66 * + 77 * 0 * 46 / 93 - + ( - 89 ) + + 28 / + 98 * - + 18 + 17 col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT COALESCE ( COUNT( * ), + CASE + 48 WHEN + 43 * + 68 / - 78 + - 6 * + 91 + + 74 * 79 * 96 THEN 37 * - 5 END )
----
1

skipif mysql # not compatible
query I rowsort label-8250
SELECT COALESCE ( COUNT ( * ), + CASE + 48 WHEN + 43 * + 68 / - 78 + - 6 * + 91 + + 74 * 79 * 96 THEN 37 * - 5 END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT COUNT( * ) + + COUNT( 23 )
----
2

skipif mysql # not compatible
query I rowsort label-8251
SELECT COUNT ( * ) + + COUNT ( 23 )
----
2

query I rowsort
SELECT ALL + - 81 * + + 54
----
-4374

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

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL ( + COALESCE ( + + ( - + CAST ( NULL AS INTEGER ) ), + + 43 ) )
----
43

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

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

query I rowsort
SELECT ALL - 42 + + 3
----
-39

query I rowsort
SELECT ALL 6 * + 87 + + - 24 * - 82 * - 33
----
-64422

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT DISTINCT - + ( 97 ) DIV + + 18 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT - + ( 97 ) / + + 18 AS col1
----
-5

query I rowsort
SELECT ALL 12 * 75
----
900

query I rowsort
SELECT - 94 * + 77
----
-7238

query II rowsort
SELECT DISTINCT + ( + COALESCE ( + - COALESCE ( - 84, - 11 - + - 12 ), 21 * 31 ) ) AS col1, + 73 + - + 45 AS col0
----
84
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT ALL - 76 * COUNT( * ) * NULLIF ( + 23, + 92 * + + COALESCE ( + 82, - 65 ) ) AS col1
----
-1748

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - 76 * COUNT ( * ) * NULLIF ( + 23, + 92 * + + COALESCE ( + 82, - 65 ) ) AS col1
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + ( - + COUNT( 17 ) ) * + 51 + 60 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8263
SELECT + ( - + COUNT ( 17 ) ) * + 51 + 60 AS col1
----
9

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

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

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

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT COUNT ( * ) / + 60
----
0

query I rowsort
SELECT DISTINCT 99 + + ( - 89 ) * 22
----
-1859

query I rowsort
SELECT ALL 98 + + 4
----
102

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

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

query I rowsort
SELECT + - 26 - 4 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT SUM( ALL 8 ) col0
----
8

skipif mysql # not compatible
query I rowsort label-8270
SELECT SUM ( ALL 8 ) col0
----
8

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

skipif mysql # not compatible
query I rowsort label-8271
SELECT - MAX ( DISTINCT 76 )
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8272
SELECT ALL NULLIF ( NULLIF ( + + 5, 98 * + 55 ), - 28 * + 70 * CAST( - 59 AS DECIMAL ) ) col1
----
5

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL NULLIF ( NULLIF ( + + 5, 98 * + 55 ), - 28 * + 70 * CAST ( - 59 AS REAL ) ) col1
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8273
SELECT ALL 11 + - 99 + + 42 * - 93 + + NULLIF ( - 96, + + CAST( NULL AS DECIMAL ) ) + - 88 AS col1
----
-4178

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL 11 + - 99 + + 42 * - 93 + + NULLIF ( - 96, + + CAST ( NULL AS REAL ) ) + - 88 AS col1
----
-4178

query I rowsort
SELECT DISTINCT + 13 + + 73 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT ALL - CAST( 70 AS SIGNED ) - - 48
----
-22

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL - CAST ( 70 AS INTEGER ) - - 48
----
-22

query I rowsort
SELECT + - 85 - + + 31 AS col1
----
-116

query II rowsort
SELECT DISTINCT 42 AS col1, + 54 AS col2
----
42
54

query I rowsort
SELECT + 7 + - 5
----
2

query I rowsort
SELECT - + ( ( - 30 ) ) * 8
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT ALL - COUNT( * ) - - - 6 * - 24 - + NULLIF ( - 39, + 7 / - 86 - + 37 * 31 * AVG ( ( + 58 ) ) ) col2
----
182

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL - COUNT ( * ) - - - 6 * - 24 - + NULLIF ( - 39, + 7 / - 86 - + 37 * 31 * AVG ( ( + 58 ) ) ) col2
----
182

query I rowsort
SELECT - CASE + - COALESCE ( 81, + - 33 ) WHEN + - 10 THEN + + 96 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT + SUM( + CAST( + + 70 AS SIGNED ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8282
SELECT + SUM ( + CAST ( + + 70 AS INTEGER ) ) AS col1
----
70

query I rowsort
SELECT - 13 * - ( - 16 ) + - - ( - 49 )
----
-257

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL - COUNT( * ) * - ( + MAX( DISTINCT + - 31 ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - COUNT ( * ) * - ( + MAX ( DISTINCT + - 31 ) ) AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT + 57 + 98 DIV - 71
----
56

skipif mysql # not compatible
query I rowsort label-8285
SELECT + 57 + 98 / - 71
----
56

query I rowsort
SELECT - 71 + 4 + 60 * + + 22 AS col1
----
1253

query I rowsort
SELECT ALL 40 * + - 45 col1
----
-1800

query I rowsort
SELECT + + 97 * + + 69 + - + 43
----
6650

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

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

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

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

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

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

query II rowsort
SELECT + 0 * 13 col2, - 52 AS col1
----
0
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT - 6 * COUNT( * ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-8293
SELECT - 6 * COUNT ( * ) col1
----
-6

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

query I rowsort
SELECT - 41 + + 56 * - 75 * - 27
----
113359

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT ALL - NULLIF ( + + 28, + - 4 ) DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL - NULLIF ( + + 28, + - 4 ) / 37
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT - 70 * 27 DIV - + 68
----
27

skipif mysql # not compatible
query I rowsort label-8297
SELECT - 70 * 27 / - + 68
----
27

query I rowsort
SELECT ALL - 73 * + - ( + 20 ) + 40 * - 36
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT COALESCE ( - 80, - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 23 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8299
SELECT COALESCE ( - 80, - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 23 ) AS col1
----
-80

query I rowsort
SELECT ALL + 35 * + + 83 * - - 32 + - 63
----
92897

query II rowsort
SELECT DISTINCT + 98 AS col1, 47 col0
----
98
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT COALESCE ( + - 67, 15 * + - MAX( DISTINCT - + 52 ) * - 36 * - SUM( - 54 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-8302
SELECT COALESCE ( + - 67, 15 * + - MAX ( DISTINCT - + 52 ) * - 36 * - SUM ( - 54 ) )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT ALL + 41 * CAST( NULL AS SIGNED ) + - + 64 + - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + 41 * CAST ( NULL AS INTEGER ) + - + 64 + - 10 AS col2
----
NULL

query I rowsort
SELECT - 80 + - 60
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT - 56 + + ( COUNT( * ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8305
SELECT - 56 + + ( COUNT ( * ) ) AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT + 25 + - - 59 + - + COUNT( * ) + 45 DIV + + COALESCE ( - COUNT( * ), + COALESCE ( 61, - + 61, - 21 ) + 15 + MAX( ALL - + 30 ) * - ( - COUNT( * ) ) )
----
38

skipif mysql # not compatible
query I rowsort label-8306
SELECT + 25 + - - 59 + - + COUNT ( * ) + 45 / + + COALESCE ( - COUNT ( * ), + COALESCE ( 61, - + 61, - 21 ) + 15 + MAX ( ALL - + 30 ) * - ( - COUNT ( * ) ) )
----
38

query I rowsort
SELECT ALL - 95 - + 29 AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT + + 14 + COUNT( ALL - 30 ) + - ( + + 35 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8308
SELECT + + 14 + COUNT ( ALL - 30 ) + - ( + + 35 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8309
SELECT + - 56 * + 41 AS col2, - COUNT( * ) * + MIN( 80 ) * 51 + 73 AS col0
----
-2296
-4007

skipif mysql # not compatible
query II rowsort label-8309
SELECT + - 56 * + 41 AS col2, - COUNT ( * ) * + MIN ( 80 ) * 51 + 73 AS col0
----
-2296
-4007

query I rowsort
SELECT DISTINCT - 1 * + 98 * - 5
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT + - 96 * - 55 * COUNT( + 34 )
----
5280

skipif mysql # not compatible
query I rowsort label-8311
SELECT + - 96 * - 55 * COUNT ( + 34 )
----
5280

query I rowsort
SELECT DISTINCT 67 * - + 5
----
-335

query I rowsort
SELECT 20 * - 1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT ( - CAST( NULL AS SIGNED ) ) / - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT ( - CAST ( NULL AS INTEGER ) ) / - 29
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8318
SELECT CAST( + + 22 AS SIGNED ), + ( - - 31 ) AS col2, + 68 + 31 * + 4 AS col1
----
22
31
192

skipif mysql # not compatible
query III rowsort label-8318
SELECT CAST ( + + 22 AS INTEGER ), + ( - - 31 ) AS col2, + 68 + 31 * + 4 AS col1
----
22
31
192

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT ALL - 58 + - COUNT( * ) AS col2, 60
----
-59
60

skipif mysql # not compatible
query II rowsort label-8319
SELECT ALL - 58 + - COUNT ( * ) AS col2, 60
----
-59
60

query I rowsort
SELECT ALL 35 + - 47 * + + 31 * + 24
----
-34933

query I rowsort
SELECT DISTINCT - COALESCE ( - 89, COALESCE ( 0, 9 ) * - 83 ) + 79
----
168

query I rowsort
SELECT ALL - ( 2 ) AS col2
----
-2

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

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

query I rowsort
SELECT 59 * - - 7 + + 15 + - + 34 AS col1
----
394

query I rowsort
SELECT 47 + - 76 + - ( + 28 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL + NULLIF ( - + COUNT( * ), 19 ) + - + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL + NULLIF ( - + COUNT ( * ), 19 ) + - + COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT 30 + 43 AS col1
----
73

query I rowsort
SELECT ALL + + 74 - - 89 col1
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-8329
SELECT ALL COALESCE ( + 67, 38 DIV + 29 + + + 4, + 73, - + 63 )
----
67

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL COALESCE ( + 67, 38 / + 29 + + + 4, + 73, - + 63 )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8330
SELECT CASE + - 59 WHEN - + ( - COUNT( * ) ) THEN NULL WHEN + + 80 * 65 THEN NULL WHEN + - 58 DIV - + COUNT( * ) * + 18 + - 63 - + 8 THEN + 67 DIV - 97 * + 2 + 5 + + - ( - 35 ) DIV + 62 ELSE - - 59 END * - 7
----
-413

skipif mysql # not compatible
query I rowsort label-8330
SELECT CASE + - 59 WHEN - + ( - COUNT ( * ) ) THEN NULL WHEN + + 80 * 65 THEN NULL WHEN + - 58 / - + COUNT ( * ) * + 18 + - 63 - + 8 THEN + 67 / - 97 * + 2 + 5 + + - ( - 35 ) / + 62 ELSE - - 59 END * - 7
----
-413

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8331
SELECT 66 DIV - MIN( ALL 88 ) * COUNT( ALL + 94 ) * - - 50 * 54 + - 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8331
SELECT 66 / - MIN ( ALL 88 ) * COUNT ( ALL + 94 ) * - - 50 * 54 + - 42 AS col2
----
-42

query I rowsort
SELECT - 73 * + 75 AS col1
----
-5475

query I rowsort
SELECT 96 - - 38 AS col0
----
134

query I rowsort
SELECT + NULLIF ( + + 1, + - 36 * + + 18 + NULLIF ( 60, + 74 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT - MIN( COALESCE ( + 92, - - 1 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8335
SELECT - MIN ( COALESCE ( + 92, - - 1 ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + + 3 * COUNT( * ) - ( - 44 ) * - + 69 * - CASE + 20 WHEN 56 THEN + + COUNT( * ) WHEN - NULLIF ( + 98, + ( 59 ) ) + - 42 THEN NULL WHEN 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + + 3 * COUNT ( * ) - ( - 44 ) * - + 69 * - CASE + 20 WHEN 56 THEN + + COUNT ( * ) WHEN - NULLIF ( + 98, + ( 59 ) ) + - 42 THEN NULL WHEN 17 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8337
SELECT COALESCE ( - 0, - CASE - + COUNT( * ) WHEN - 76 THEN - 31 + + + 43 DIV - 42 END ) * 65 * + 54 * + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8337
SELECT COALESCE ( - 0, - CASE - + COUNT ( * ) WHEN - 76 THEN - 31 + + + 43 / - 42 END ) * 65 * + 54 * + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 65 - - ( 73 ) * + ( - 88 ) col2
----
-6359

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

query I rowsort
SELECT - 6 + + 96 AS col2
----
90

query I rowsort
SELECT ( NULLIF ( 43, + 69 ) )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT NULLIF ( - + ( - 66 ), - CAST( NULL AS SIGNED ) + - 78 + + + ( - + 76 ) ) + + 61
----
127

skipif mysql # not compatible
query I rowsort label-8342
SELECT NULLIF ( - + ( - 66 ), - CAST ( NULL AS INTEGER ) + - 78 + + + ( - + 76 ) ) + + 61
----
127

query I rowsort
SELECT ALL + 54 + - 11
----
43

query II rowsort
SELECT + 86, + 54 + + + 57 col2
----
86
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT MIN( + - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-8345
SELECT MIN ( + - 17 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8346
SELECT - CASE + 85 WHEN - 30 THEN + MAX( DISTINCT - + 69 ) WHEN 25 THEN NULL END * - CAST( NULL AS SIGNED ) + + - 98 AS col1, + 34 AS col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-8346
SELECT - CASE + 85 WHEN - 30 THEN + MAX ( DISTINCT - + 69 ) WHEN 25 THEN NULL END * - CAST ( NULL AS INTEGER ) + + - 98 AS col1, + 34 AS col2
----
NULL
34

query I rowsort
SELECT 5 * - 43
----
-215

query II rowsort
SELECT ALL - 76 AS col0, - 37 * - 90 AS col1
----
-76
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT MIN( 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8349
SELECT MIN ( 79 ) AS col2
----
79

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

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

query I rowsort
SELECT 50 + + 34 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT NULLIF ( + 84, - 37 / COUNT( * ) - COUNT( * ) ) * - + 92 AS col0
----
-7728

skipif mysql # not compatible
query I rowsort label-8352
SELECT NULLIF ( + 84, - 37 / COUNT ( * ) - COUNT ( * ) ) * - + 92 AS col0
----
-7728

query II rowsort
SELECT ALL - 66, 26 * + ( 79 ) * + + 32 + + 31 + + 2 AS col2
----
-66
65761

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT + MAX( DISTINCT 38 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-8354
SELECT + MAX ( DISTINCT 38 ) col0
----
38

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

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

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

skipif mysql # not compatible
query II rowsort label-8356
SELECT DISTINCT - 78 AS col0, - COUNT ( * ) / 53 AS col1
----
-78
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8357
SELECT CAST( 60 AS SIGNED ) * + 47 + - COUNT( * ) * 63 + 34 + + - 17 * + 5 AS col1
----
2706

skipif mysql # not compatible
query I rowsort label-8357
SELECT CAST ( 60 AS INTEGER ) * + 47 + - COUNT ( * ) * 63 + 34 + + - 17 * + 5 AS col1
----
2706

query I rowsort
SELECT ALL ( + - 22 ) * - 66 + + 11 + 47
----
1510

query II rowsort
SELECT DISTINCT - 94 col2, - 65 AS col2
----
-94
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + + ( MIN( + + 72 ) ) + - + 38 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8360
SELECT + + ( MIN ( + + 72 ) ) + - + 38 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL NULLIF ( + MAX( ALL - 83 ), + - 47 * + + 67 + 84 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL NULLIF ( + MAX ( ALL - 83 ), + - 47 * + + 67 + 84 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT - - 62 + 75 * - COUNT( * ) - - 1 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8362
SELECT - - 62 + 75 * - COUNT ( * ) - - 1 AS col1
----
-12

query II rowsort
SELECT DISTINCT + 85 AS col0, - 39
----
85
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8364
SELECT ALL + - CAST( - + MIN( ALL + - 77 ) AS SIGNED ) + - COALESCE ( 48, COUNT( * ) * - 95 * - 73 ) AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL + - CAST ( - + MIN ( ALL + - 77 ) AS INTEGER ) + - COALESCE ( 48, COUNT ( * ) * - 95 * - 73 ) AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL - COUNT( * ) * + MIN( - + 69 ) + + - 95 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - COUNT ( * ) * + MIN ( - + 69 ) + + - 95 AS col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT - - 13 DIV - ( + ( - 47 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT - - 13 / - ( + ( - 47 ) )
----
0

query II rowsort
SELECT - - 49 AS col0, 22 * + + 63 AS col0
----
49
1386

query I rowsort
SELECT ALL - 58 * 73 AS col0
----
-4234

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

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

query II rowsort
SELECT - 73 + 97 * 80, 57 AS col2
----
7687
57

query II rowsort
SELECT DISTINCT - 1 AS col0, - 16 + + 61 AS col0
----
-1
45

query I rowsort
SELECT ALL + 66 + + 60
----
126

query I rowsort
SELECT ALL + 55 * + 87
----
4785

query I rowsort
SELECT ALL - - 21 * + ( + ( + 58 ) )
----
1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8375
SELECT DISTINCT NULLIF ( 58, + COUNT( ALL 95 ) + + + ( - CAST( - AVG ( + 86 ) AS SIGNED ) ) + + 58 + - ( 82 ) * - + 26 + - ( + ( - + COUNT( * ) ) ) ) AS col2, - 67 col1
----
58
-67

skipif mysql # not compatible
query II rowsort label-8375
SELECT DISTINCT NULLIF ( 58, + COUNT ( ALL 95 ) + + + ( - CAST ( - AVG ( + 86 ) AS INTEGER ) ) + + 58 + - ( 82 ) * - + 26 + - ( + ( - + COUNT ( * ) ) ) ) AS col2, - 67 col1
----
58
-67

query I rowsort
SELECT ALL + 58 + - 50
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8377
SELECT ALL COALESCE ( COALESCE ( - + 11, + 21 ), - CAST( NULL AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL COALESCE ( COALESCE ( - + 11, + 21 ), - CAST ( NULL AS INTEGER ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT - COUNT( * ) * - 16 + 50 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - COUNT ( * ) * - 16 + 50 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + MIN( 67 ) * 56 AS col0
----
3752

skipif mysql # not compatible
query I rowsort label-8379
SELECT + MIN ( 67 ) * 56 AS col0
----
3752

query I rowsort
SELECT ALL + 75 * 14 - 1 AS col0
----
1049

query I rowsort
SELECT + COALESCE ( - ( - 35 ), - CASE - 58 WHEN + - 21 * ( - 5 ) THEN - 5 END, + 91 + 36, + 1 - - 7 * + - 74 + - 9 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ( - SUM( - 87 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8382
SELECT ( - SUM ( - 87 ) ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL 34 * + 19 / 52 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL 34 * + 19 / 52 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 43 ) * + 65
----
2795

query I rowsort
SELECT ALL + ( - + 17 ) col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT + 10 * 31 DIV - 86 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8386
SELECT + 10 * 31 / - 86 AS col1
----
-3

query I rowsort
SELECT + 69 * 6 + + 1 * + 66
----
480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT + + 83 * 89 * - 39 + + COUNT( * ) AS col1
----
-288092

skipif mysql # not compatible
query I rowsort label-8389
SELECT + + 83 * 89 * - 39 + + COUNT ( * ) AS col1
----
-288092

query I rowsort
SELECT ALL - 14 * - + 68 - - - ( + 20 )
----
932

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT + - COUNT( * ) + ( - ( - MAX( - 21 ) ) ) * + + 0
----
-1

skipif mysql # not compatible
query I rowsort label-8391
SELECT + - COUNT ( * ) + ( - ( - MAX ( - 21 ) ) ) * + + 0
----
-1

query I rowsort
SELECT ALL 38 * 53 * + 68
----
136952

query I rowsort
SELECT ALL + 31 * 96 * + 34 + + 81 + + + 89 * - COALESCE ( + + 94, - 60, + - 12 ) + - + 81
----
92818

query I rowsort
SELECT DISTINCT - + 2 * - 93 + + + 38 + 77 * - 44 + 7
----
-3157

query I rowsort
SELECT + + 56 * + 68 * - 66 AS col0
----
-251328

query I rowsort
SELECT - + 51 * + 25 * - 41 AS col2
----
52275

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - COALESCE ( + 0, + 71, - 76, + - 41 ) + + - COALESCE ( - + MAX( + 6 ), 22 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8397
SELECT - COALESCE ( + 0, + 71, - 76, + - 41 ) + + - COALESCE ( - + MAX ( + 6 ), 22 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT 22 + + COALESCE ( 37, + - 69 * - COALESCE ( + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * + - 34 ) + - CAST( NULL AS SIGNED ), 70 ) + COALESCE ( - - 50, + ( + 59 ), - 75, - + COUNT( * ) * - COUNT( * ) + + + 39 )
----
109

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT 22 + + COALESCE ( 37, + - 69 * - COALESCE ( + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + - 34 ) + - CAST ( NULL AS INTEGER ), 70 ) + COALESCE ( - - 50, + ( + 59 ), - 75, - + COUNT ( * ) * - COUNT ( * ) + + + 39 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL - + MAX( 99 ) + 63 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - + MAX ( 99 ) + 63 AS col2
----
-36

query I rowsort
SELECT ALL ( - + 15 ) + - ( + 78 ) + - 65
----
-158

query I rowsort
SELECT ALL 12 + + + 13 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT DISTINCT SUM( ALL + 57 ) + - NULLIF ( - ( 84 ), - CAST( NULL AS SIGNED ) - 4 * - COUNT( * ) + + - 28 )
----
141

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT SUM ( ALL + 57 ) + - NULLIF ( - ( 84 ), - CAST ( NULL AS INTEGER ) - 4 * - COUNT ( * ) + + - 28 )
----
141

query I rowsort
SELECT + 70 + 26 - - ( + - 40 ) + 79 * - + COALESCE ( 29, + 29 )
----
-2235

query I rowsort
SELECT - 76 - + 16 AS col1
----
-92

query II rowsort
SELECT 38 AS col1, + 39 - + ( - + 86 )
----
38
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8406
SELECT - 64 + + MAX( DISTINCT - 89 ) + - 98 * COALESCE ( - 5, - + 65 DIV 45 - - MIN( - 35 ) ) DIV 97 + - 13 - - - COUNT( * ) AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-8406
SELECT - 64 + + MAX ( DISTINCT - 89 ) + - 98 * COALESCE ( - 5, - + 65 / 45 - - MIN ( - 35 ) ) / 97 + - 13 - - - COUNT ( * ) AS col0
----
-162

query I rowsort
SELECT - 28 * 80
----
-2240

query I rowsort
SELECT - 16 * NULLIF ( - ( - 40 ), - - 25 + - - 75 ) + 9
----
-631

query I rowsort
SELECT - 98 * + - 66 AS col2
----
6468

query I rowsort
SELECT - 26 * + 24 * - 23 + + - 48 AS col2
----
14304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT ALL + 43 + - COUNT( * ) + - - 59 + + NULLIF ( 71, - 48 ) + + 94 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL + 43 + - COUNT ( * ) + - - 59 + + NULLIF ( 71, - 48 ) + + 94 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT - MIN( + 86 ) + 62
----
-24

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT - MIN ( + 86 ) + 62
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8413
SELECT - CAST( + + 16 AS SIGNED ) DIV + 76 col0, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-8413
SELECT - CAST ( + + 16 AS INTEGER ) / + 76 col0, COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT ALL + 60 + + - 18 col0
----
42

query I rowsort
SELECT ( - 53 ) - ( - - 83 )
----
-136

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8417
SELECT + + 74 AS col0, MAX( + ( - 41 ) ) * 3 AS col0
----
74
-123

skipif mysql # not compatible
query II rowsort label-8417
SELECT + + 74 AS col0, MAX ( + ( - 41 ) ) * 3 AS col0
----
74
-123

query I rowsort
SELECT + 28 + - 86 AS col2
----
-58

query I rowsort
SELECT ALL 11 + - 54
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-8420
SELECT 51 + 39 DIV - 16 + - + 42 * + - 83 col1, + 48 + - 36
----
3535
12

skipif mysql # not compatible
query II rowsort label-8420
SELECT 51 + 39 / - 16 + - + 42 * + - 83 col1, + 48 + - 36
----
3535
12

query I rowsort
SELECT + 85 * - 67 + + 89
----
-5606

query II rowsort
SELECT - 58, 47 * - 2 * - 65 * 67 + - 57 AS col0
----
-58
409313

query II rowsort
SELECT ALL - ( + COALESCE ( + + 51, - 82, - 5 ) ) - + 89 AS col2, 55 AS col2
----
-140
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8424
SELECT ALL 52 * - COALESCE ( SUM( DISTINCT 44 ), + 86, + 31 ), COUNT( * ) AS col1
----
-2288
1

skipif mysql # not compatible
query II rowsort label-8424
SELECT ALL 52 * - COALESCE ( SUM ( DISTINCT 44 ), + 86, + 31 ), COUNT ( * ) AS col1
----
-2288
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT DISTINCT CAST( + 27 AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT CAST ( + 27 AS INTEGER ) AS col2
----
27

query I rowsort
SELECT 31 + - 35 AS col2
----
-4

query I rowsort
SELECT ALL 6 * - ( 57 )
----
-342

query I rowsort
SELECT 50 + 18
----
68

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8430
SELECT 86 AS col2, 76 DIV - 43
----
86
-1

skipif mysql # not compatible
query II rowsort label-8430
SELECT 86 AS col2, 76 / - 43
----
86
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8431
SELECT ALL 47 AS col1, + SUM( 90 ) AS col0
----
47
90

skipif mysql # not compatible
query II rowsort label-8431
SELECT ALL 47 AS col1, + SUM ( 90 ) AS col0
----
47
90

query II rowsort
SELECT 2, 95 * 14 - - + 4 + + 81 * - + 33 col0
----
2
-1339

query II rowsort
SELECT ALL 4 AS col2, 93
----
4
93

query II rowsort
SELECT 15 col2, - 97 * 60
----
15
-5820

query I rowsort
SELECT ALL + 60 * + 86 * + 55 * 38
----
10784400

query II rowsort
SELECT 29, 77 AS col1
----
29
77

query I rowsort
SELECT DISTINCT - 88 + 86 * 17 + + - 88
----
1286

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT 65 - 43 + - - 89 * 11 + + CASE COUNT( * ) WHEN - ( - COUNT( * ) ) + - 49 THEN NULL ELSE 82 + - - 34 END AS col1
----
1117

skipif mysql # not compatible
query I rowsort label-8438
SELECT 65 - 43 + - - 89 * 11 + + CASE COUNT ( * ) WHEN - ( - COUNT ( * ) ) + - 49 THEN NULL ELSE 82 + - - 34 END AS col1
----
1117

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT ( 19 ) * NULLIF ( - CAST( NULL AS SIGNED ), + 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT ( 19 ) * NULLIF ( - CAST ( NULL AS INTEGER ), + 25 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 44 + + 60 AS col1
----
16

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

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL + 86 + COUNT ( * ) / + + 2 AS col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT + COALESCE ( 10, - 23, + + NULLIF ( - 32, + NULLIF ( - 48, - 94 * - 54 ) ) ), 53 * - 79 + 90 - + + COUNT( * ) * + 15 AS col1
----
10
-4112

skipif mysql # not compatible
query II rowsort label-8443
SELECT + COALESCE ( 10, - 23, + + NULLIF ( - 32, + NULLIF ( - 48, - 94 * - 54 ) ) ), 53 * - 79 + 90 - + + COUNT ( * ) * + 15 AS col1
----
10
-4112

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT + + 48 + + COUNT( * ) * - 34
----
14

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT + + 48 + + COUNT ( * ) * - 34
----
14

query II rowsort
SELECT + + 88 AS col1, NULLIF ( 90, - - 99 ) * 54 AS col1
----
88
4860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8446
SELECT ALL - CAST( NULL AS SIGNED ) + + 5 + - MAX( + 65 ) * - 35 + + 56 AS col2, 14 col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-8446
SELECT ALL - CAST ( NULL AS INTEGER ) + + 5 + - MAX ( + 65 ) * - 35 + + 56 AS col2, 14 col0
----
NULL
14

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

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

query II rowsort
SELECT + - ( + 20 ), - 37 * + 72 AS col0
----
-20
-2664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT - 83 + 56 + + - 93 / - CASE - + MIN( 24 ) WHEN + 48 THEN NULL WHEN + CAST( + 98 AS SIGNED ) THEN NULL WHEN - 11 THEN + - 69 * CAST( NULL AS SIGNED ) + + + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT - 83 + 56 + + - 93 / - CASE - + MIN ( 24 ) WHEN + 48 THEN NULL WHEN + CAST ( + 98 AS INTEGER ) THEN NULL WHEN - 11 THEN + - 69 * CAST ( NULL AS INTEGER ) + + + 18 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT ALL - 79 * - CAST( - 72 AS SIGNED )
----
-5688

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL - 79 * - CAST ( - 72 AS INTEGER )
----
-5688

query II rowsort
SELECT ALL 20, 51 AS col0
----
20
51

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8453
SELECT COUNT( * ) * 29 * + + 94 * COALESCE ( + - 90, + ( + + 24 ) * - CAST( + 51 AS SIGNED ) + - 34, - 48 * - 27, + + 95 ) AS col2, - 4 * - + 3
----
-245340
12

skipif mysql # not compatible
query II rowsort label-8453
SELECT COUNT ( * ) * 29 * + + 94 * COALESCE ( + - 90, + ( + + 24 ) * - CAST ( + 51 AS INTEGER ) + - 34, - 48 * - 27, + + 95 ) AS col2, - 4 * - + 3
----
-245340
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8454
SELECT COUNT( * ) - - 56 AS col0, 66 * 26 AS col2
----
57
1716

skipif mysql # not compatible
query II rowsort label-8454
SELECT COUNT ( * ) - - 56 AS col0, 66 * 26 AS col2
----
57
1716

query II rowsort
SELECT ALL 11 * 16 col2, 38 - 66 AS col0
----
176
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT ALL + 64 DIV - + 81
----
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL + 64 / - + 81
----
0

query II rowsort
SELECT DISTINCT 46 * + 76 col0, + 52 AS col1
----
3496
52

query I rowsort
SELECT ALL 5 * + 78 AS col0
----
390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8459
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + - MAX( 96 ) * 82 * + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + - MAX ( 96 ) * 82 * + 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL 75 + 67 * - COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL 75 + 67 * - COUNT ( * ) col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT 65 - - CAST( - + 81 AS SIGNED ) * - - 99 * + 99
----
-793816

skipif mysql # not compatible
query I rowsort label-8461
SELECT 65 - - CAST ( - + 81 AS INTEGER ) * - - 99 * + 99
----
-793816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT COUNT( * ) + CAST( 53 AS SIGNED ) col0
----
54

skipif mysql # not compatible
query I rowsort label-8462
SELECT COUNT ( * ) + CAST ( 53 AS INTEGER ) col0
----
54

query I rowsort
SELECT ALL ( - 66 ) + 13 AS col1
----
-53

query I rowsort
SELECT DISTINCT + 7 * - - 52 + + + 68 AS col1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT COUNT( * ) * - 48 + - COUNT( * ) + ( - 83 ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT COUNT ( * ) * - 48 + - COUNT ( * ) + ( - 83 ) AS col2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT DISTINCT + MAX( DISTINCT + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + MAX ( DISTINCT + 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL + 76 * + 94 + 50 * 35 + + + 0 + - COUNT( * ) AS col1
----
8893

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + 76 * + 94 + 50 * 35 + + + 0 + - COUNT ( * ) AS col1
----
8893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT - CASE - NULLIF ( - CASE + - CAST( NULL AS SIGNED ) WHEN COUNT( * ) + 7 - 19 / + ( COUNT( * ) ) THEN + 22 * - - COUNT( * ) ELSE NULL END, 28 * - 39 ) WHEN 9 + COUNT( * ) + + SUM( ALL + ( + 8 ) ) * 58 / + 94 * - + CASE COUNT( * ) WHEN + - 48 * - SUM( + 73 ) + CAST( + - 47 AS SIGNED ) THEN NULL ELSE - 91 - - - 44 END + MAX( ALL + 88 ) / - 84 * - 63 * - 83 / - CASE + 72 WHEN - 17 THEN NULL WHEN + MAX( DISTINCT ( 59 ) ) THEN NULL ELSE 48 * - - 51 END * - 63 + 67 THEN + COALESCE ( + 14, - 29 ) / COALESCE ( + ( 57 ), COUNT( ALL + 99 ) / 9, - 70 + - 86 ) END * 8 + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT - CASE - NULLIF ( - CASE + - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + 7 - 19 / + ( COUNT ( * ) ) THEN + 22 * - - COUNT ( * ) ELSE NULL END, 28 * - 39 ) WHEN 9 + COUNT ( * ) + + SUM ( ALL + ( + 8 ) ) * 58 / + 94 * - + CASE COUNT ( * ) WHEN + - 48 * - SUM ( + 73 ) + CAST ( + - 47 AS INTEGER ) THEN NULL ELSE - 91 - - - 44 END + MAX ( ALL + 88 ) / - 84 * - 63 * - 83 / - CASE + 72 WHEN - 17 THEN NULL WHEN + MAX ( DISTINCT ( 59 ) ) THEN NULL ELSE 48 * - - 51 END * - 63 + 67 THEN + COALESCE ( + 14, - 29 ) / COALESCE ( + ( 57 ), COUNT ( ALL + 99 ) / 9, - 70 + - 86 ) END * 8 + 77 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT DISTINCT - CASE - COUNT( * ) WHEN + - 57 THEN 60 WHEN + + ( + 99 ) - + + 52 THEN COUNT( + + CAST( + 31 AS SIGNED ) ) * - 6 * + + 86 + - - 89 END * - ( + 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + - 57 THEN 60 WHEN + + ( + 99 ) - + + 52 THEN COUNT ( + + CAST ( + 31 AS INTEGER ) ) * - 6 * + + 86 + - - 89 END * - ( + 41 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8470
SELECT + 31 DIV + + 68 AS col0, - 3
----
0
-3

skipif mysql # not compatible
query II rowsort label-8470
SELECT + 31 / + + 68 AS col0, - 3
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT + COUNT( * ) * - - MIN( DISTINCT + 80 ) * 49 AS col1
----
3920

skipif mysql # not compatible
query I rowsort label-8471
SELECT + COUNT ( * ) * - - MIN ( DISTINCT + 80 ) * 49 AS col1
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + - NULLIF ( - 84, - - SUM( 46 ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8472
SELECT + - NULLIF ( - 84, - - SUM ( 46 ) ) AS col2
----
84

query I rowsort
SELECT ALL - + 18 * - 23 - - 27 AS col1
----
441

onlyif mysql # aggregate syntax: 
query II rowsort label-8474
SELECT DISTINCT COUNT( * ) * - 50 - + COUNT( * ), 33 AS col0
----
-51
33

skipif mysql # not compatible
query II rowsort label-8474
SELECT DISTINCT COUNT ( * ) * - 50 - + COUNT ( * ), 33 AS col0
----
-51
33

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

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - 54 * - + 64 - + 54 + COUNT ( * ) / + + 2
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL 46 * - - COALESCE ( 97, - - COUNT( * ), 23 * 53 )
----
4462

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL 46 * - - COALESCE ( 97, - - COUNT ( * ), 23 * 53 )
----
4462

query I rowsort
SELECT ALL 74 * ( - - 24 ) - 50
----
1726

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT - 4 DIV + + 74 - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8478
SELECT - 4 / + + 74 - 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT - 13 + COUNT( + ( 58 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-8479
SELECT - 13 + COUNT ( + ( 58 ) )
----
-12

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT SUM( - CAST( + 95 AS SIGNED ) ) * 34 * - - CASE COALESCE ( - 53, 40 + - - 76 + + 94 * 94 + - 48 ) WHEN - 65 - + AVG ( + 70 ) THEN + COUNT( * ) ELSE 83 END + + + 63 + - - 52 AS col1
----
-267975

skipif mysql # not compatible
query I rowsort label-8482
SELECT SUM ( - CAST ( + 95 AS INTEGER ) ) * 34 * - - CASE COALESCE ( - 53, 40 + - - 76 + + 94 * 94 + - 48 ) WHEN - 65 - + AVG ( + 70 ) THEN + COUNT ( * ) ELSE 83 END + + + 63 + - - 52 AS col1
----
-267975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8483
SELECT - 23 * + 29 DIV - + COUNT( + 11 ) AS col1
----
667

skipif mysql # not compatible
query I rowsort label-8483
SELECT - 23 * + 29 / - + COUNT ( + 11 ) AS col1
----
667

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

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

query I rowsort
SELECT - 41 + - 31
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL SUM( + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL SUM ( + 56 ) AS col0
----
56

query I rowsort
SELECT - 17 + 21 * - 70
----
-1487

query I rowsort
SELECT ALL COALESCE ( - ( + 63 ), + 73 * 8 + 49 )
----
-63

query I rowsort
SELECT DISTINCT + ( - CASE + 53 WHEN + 68 * + 59 THEN - 58 WHEN - 28 * + 2 THEN + 39 ELSE NULL END ) * + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - COALESCE ( + + ( + 85 ), - 74 * 56, + 49 ) + 67 + - COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8490
SELECT - COALESCE ( + + ( + 85 ), - 74 * 56, + 49 ) + 67 + - COUNT ( * ) AS col0
----
-19

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

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

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

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

query I rowsort
SELECT + 63 + + 43
----
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT + NULLIF ( - 41, + 84 + + NULLIF ( - COUNT( * ), + 93 + + + 69 * 99 * - 97 ) * - COUNT( * ) ) + 94 + NULLIF ( - 52, MIN( ALL 66 ) * - NULLIF ( - SUM( 39 ), 38 ) + + - 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8495
SELECT + NULLIF ( - 41, + 84 + + NULLIF ( - COUNT ( * ), + 93 + + + 69 * 99 * - 97 ) * - COUNT ( * ) ) + 94 + NULLIF ( - 52, MIN ( ALL 66 ) * - NULLIF ( - SUM ( 39 ), 38 ) + + - 46 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT DISTINCT 4 DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT 4 / 22
----
0

query II rowsort
SELECT DISTINCT 58, ( + 18 ) * - 75 * + 43 col1
----
58
-58050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT DISTINCT + CAST( - - 91 AS SIGNED ) + - 34 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT + CAST ( - - 91 AS INTEGER ) + - 34 AS col0
----
57

query II rowsort
SELECT + NULLIF ( 7, + - 72 * + 3 * 15 ) * + 72 AS col1, 1
----
504
1

query I rowsort
SELECT ALL + 70 + - 34 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8501
SELECT DISTINCT - 16 DIV - 25 * MAX( + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - 16 / - 25 * MAX ( + 22 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL 91 + - COUNT( * ) + - 98 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL 91 + - COUNT ( * ) + - 98 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8503
SELECT + 97 * + MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col2, 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8503
SELECT + 97 * + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2, 11 AS col0
----
NULL
11

query I rowsort
SELECT ALL 28 * + + 42 * - - 28
----
32928

query I rowsort
SELECT - 2 - 79 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + CASE + ( - - 95 ) WHEN - - 7 THEN NULL WHEN - - COUNT( * ) + + 58 THEN NULL ELSE - 12 * 16 * + - 88 * - 13 + + CASE 63 WHEN 99 / + ( + 65 ) THEN - 13 * - 29 ELSE + 44 + - - SUM( ALL 97 ) + - COALESCE ( 17, - COUNT( * ), 42 ) END END * 65 AS col0
----
-14269060

skipif mysql # not compatible
query I rowsort label-8506
SELECT + CASE + ( - - 95 ) WHEN - - 7 THEN NULL WHEN - - COUNT ( * ) + + 58 THEN NULL ELSE - 12 * 16 * + - 88 * - 13 + + CASE 63 WHEN 99 / + ( + 65 ) THEN - 13 * - 29 ELSE + 44 + - - SUM ( ALL 97 ) + - COALESCE ( 17, - COUNT ( * ), 42 ) END END * 65 AS col0
----
-14269060

onlyif mysql # DIV for integer division: 
query II rowsort label-8507
SELECT + + CASE 64 WHEN + 44 THEN 72 WHEN - 16 DIV 49 THEN - + 27 * - - 57 END AS col1, 57 DIV + - 24 AS col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-8507
SELECT + + CASE 64 WHEN + 44 THEN 72 WHEN - 16 / 49 THEN - + 27 * - - 57 END AS col1, 57 / + - 24 AS col1
----
NULL
-2

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

skipif mysql # not compatible
query I rowsort label-8508
SELECT + + 23 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 18 * 46 AS col1
----
828

query I rowsort
SELECT ALL + - ( - - 75 ) AS col1
----
-75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8512
SELECT ALL 35 DIV - 22 - 27 - - - COALESCE ( + COUNT( * ), - - MAX( - CAST( + 75 AS SIGNED ) ) ) * + 85 AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL 35 / - 22 - 27 - - - COALESCE ( + COUNT ( * ), - - MAX ( - CAST ( + 75 AS INTEGER ) ) ) * + 85 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT + 74 * - - ( + 41 ) + + - 16 + - - ( COUNT( * ) )
----
3019

skipif mysql # not compatible
query I rowsort label-8513
SELECT + 74 * - - ( + 41 ) + + - 16 + - - ( COUNT ( * ) )
----
3019

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

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

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

query I rowsort
SELECT - + 63 * - - 68 + - 83 AS col0
----
-4367

query I rowsort
SELECT - 1 - - 58
----
57

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

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

query II rowsort
SELECT + + 51 AS col1, - 60 * + 16 * + - 10 AS col0
----
51
9600

onlyif mysql # aggregate syntax: 
query II rowsort label-8520
SELECT DISTINCT + COUNT( * ), 57 * + + 28 + - 92 AS col0
----
1
1504

skipif mysql # not compatible
query II rowsort label-8520
SELECT DISTINCT + COUNT ( * ), 57 * + + 28 + - 92 AS col0
----
1
1504

query II rowsort
SELECT ALL 47 * - 60 AS col2, 24 AS col0
----
-2820
24

query I rowsort
SELECT COALESCE ( + 85, - 61 ) AS col2
----
85

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

query I rowsort
SELECT DISTINCT ( - 6 ) * 23
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8525
SELECT ALL CAST( - CASE ( 17 ) WHEN - 41 + - + 64 THEN COUNT( * ) * 10 + - MIN( ALL 12 ) ELSE NULL END AS SIGNED ) AS col0, 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL CAST ( - CASE ( 17 ) WHEN - 41 + - + 64 THEN COUNT ( * ) * 10 + - MIN ( ALL 12 ) ELSE NULL END AS INTEGER ) AS col0, 85
----
NULL
85

query I rowsort
SELECT + 81 + - 93 AS col1
----
-12

query I rowsort
SELECT ALL ( + 0 ) * 79 * - + 60 * 65 * - 15 + - 35 col2
----
-35

query I rowsort
SELECT + 58 + - 22 + - 44 * 6
----
-228

query I rowsort
SELECT ALL - 1 + - + 86 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8530
SELECT MIN( DISTINCT - 16 ) * + 54 * + CASE 32 WHEN - COUNT( * ) + + - CAST( NULL AS SIGNED ) + COUNT( * ) / 92 * 70 THEN + 79 WHEN 16 * - 95 / + 76 + - 40 THEN NULL ELSE + - 25 + + COUNT( * ) END AS col0, MAX( DISTINCT - NULLIF ( + 71, + 58 ) ) * + + 59 col2
----
20736
-4189

skipif mysql # not compatible
query II rowsort label-8530
SELECT MIN ( DISTINCT - 16 ) * + 54 * + CASE 32 WHEN - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + COUNT ( * ) / 92 * 70 THEN + 79 WHEN 16 * - 95 / + 76 + - 40 THEN NULL ELSE + - 25 + + COUNT ( * ) END AS col0, MAX ( DISTINCT - NULLIF ( + 71, + 58 ) ) * + + 59 col2
----
20736
-4189

query I rowsort
SELECT DISTINCT - 29 * ( - 90 ) AS col1
----
2610

query II rowsort
SELECT ALL + 74 + CASE + 87 WHEN - - 55 THEN + - COALESCE ( ( - 41 ), + 95, 80 ) ELSE + + 23 END AS col0, 80 AS col0
----
97
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8533
SELECT 65 + + 84 AS col1, COUNT( * ) DIV - + 67
----
149
0

skipif mysql # not compatible
query II rowsort label-8533
SELECT 65 + + 84 AS col1, COUNT ( * ) / - + 67
----
149
0

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

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

query II rowsort
SELECT DISTINCT - 29 * - + 7 AS col2, 2 col2
----
203
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL + + 74 - - SUM( - 61 )
----
13

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL + + 74 - - SUM ( - 61 )
----
13

query I rowsort
SELECT 53 + + 38 * - 93
----
-3481

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8539
SELECT ALL 62 DIV - CAST( + 73 AS SIGNED ) + + + 72
----
72

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL 62 / - CAST ( + 73 AS INTEGER ) + + + 72
----
72

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

query I rowsort
SELECT ALL 89 * + 43 * + 82 AS col0
----
313814

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT ALL - - 70 DIV ( + 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - - 70 / ( + 54 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8543
SELECT 10 * - 47 - + ( + NULLIF ( + CAST( + 29 AS SIGNED ), ( + COUNT( 26 ) ) * + COALESCE ( + 75, - + 2 ) ) )
----
-499

skipif mysql # not compatible
query I rowsort label-8543
SELECT 10 * - 47 - + ( + NULLIF ( + CAST ( + 29 AS INTEGER ), ( + COUNT ( 26 ) ) * + COALESCE ( + 75, - + 2 ) ) )
----
-499

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT 0 * + - CASE 39 WHEN + 88 THEN - 5 END * + + COUNT( * ) * - 43 + AVG ( ALL + 51 ) + - + 33 + 61 * - 95 - + 63 - - 97 + + 83 + + - SUM( ALL + 66 ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT 0 * + - CASE 39 WHEN + 88 THEN - 5 END * + + COUNT ( * ) * - 43 + AVG ( ALL + 51 ) + - + 33 + 61 * - 95 - + 63 - - 97 + + 83 + + - SUM ( ALL + 66 ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8545
SELECT ALL - ( + COALESCE ( - 8, + + 50 * - + 18 - + - COUNT( * ) + - 35 + 67 - + - 85 + - ( - + 97 ) - + COUNT( * ) - 43 DIV - - 52 ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - ( + COALESCE ( - 8, + + 50 * - + 18 - + - COUNT ( * ) + - 35 + 67 - + - 85 + - ( - + 97 ) - + COUNT ( * ) - 43 / - - 52 ) ) AS col0
----
8

query I rowsort
SELECT 2 + 76 * - 56 AS col2
----
-4254

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT MAX( DISTINCT + 83 ) * 69 + 10 + 38 col0
----
5775

skipif mysql # not compatible
query I rowsort label-8547
SELECT MAX ( DISTINCT + 83 ) * 69 + 10 + 38 col0
----
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL ( - COUNT( 45 ) ) + + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL ( - COUNT ( 45 ) ) + + - 92
----
-93

query I rowsort
SELECT DISTINCT 58 + - - 75
----
133

query I rowsort
SELECT 30 * - 28 * - - 4 AS col2
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT COUNT( DISTINCT - - COALESCE ( 97, + 5, - + CASE + - 29 WHEN ( + - 88 ) THEN 5 + + 49 END * - 35 ) ) + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-8551
SELECT COUNT ( DISTINCT - - COALESCE ( 97, + 5, - + CASE + - 29 WHEN ( + - 88 ) THEN 5 + + 49 END * - 35 ) ) + - 72
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT 93 + + MAX( DISTINCT 63 ) + + COUNT( * ) AS col0
----
157

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT 93 + + MAX ( DISTINCT 63 ) + + COUNT ( * ) AS col0
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8553
SELECT ALL - 4 col1, - CAST( NULL AS SIGNED ) + 21 + - 69 / 19 AS col2
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL - 4 col1, - CAST ( NULL AS INTEGER ) + 21 + - 69 / 19 AS col2
----
-4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + 2 * + COUNT( * ) + - 28
----
-26

skipif mysql # not compatible
query I rowsort label-8554
SELECT + 2 * + COUNT ( * ) + - 28
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL 28 * + COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) * + 71 + - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL 28 * + COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) * + 71 + - 44 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 91, 64 AS col1
----
91
64

query I rowsort
SELECT ALL 46 + 59
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT MIN( ALL - 22 ) + - CASE + + 23 WHEN + 91 THEN NULL ELSE - 66 * 82 END AS col1
----
5390

skipif mysql # not compatible
query I rowsort label-8558
SELECT MIN ( ALL - 22 ) + - CASE + + 23 WHEN + 91 THEN NULL ELSE - 66 * 82 END AS col1
----
5390

query I rowsort
SELECT ALL 92 * 47 AS col2
----
4324

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL + 70 - - 5 * SUM( 4 ) + + - 91 col1
----
-1

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + 70 - - 5 * SUM ( 4 ) + + - 91 col1
----
-1

query I rowsort
SELECT DISTINCT 45 - 70
----
-25

query I rowsort
SELECT 93 * - + 42
----
-3906

query I rowsort
SELECT 80 * + ( 1 ) * + + 17 + + 73
----
1433

query I rowsort
SELECT ALL - 80 * 51
----
-4080

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

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

query I rowsort
SELECT ALL - 71 * + 96
----
-6816

query I rowsort
SELECT 6 * 71 AS col0
----
426

query I rowsort
SELECT 18 * - 47
----
-846

query I rowsort
SELECT 96 * - 65 AS col0
----
-6240

query I rowsort
SELECT 99 + - CASE - 2 WHEN AVG ( 46 ) THEN + 72 END * + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT - MAX( DISTINCT COALESCE ( + ( 51 ), 14 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT - MAX ( DISTINCT COALESCE ( + ( 51 ), 14 ) )
----
-51

query I rowsort
SELECT 8 + + 96 AS col1
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8573
SELECT MIN( ALL 57 ) DIV - 86 col1
----
0

skipif mysql # not compatible
query I rowsort label-8573
SELECT MIN ( ALL 57 ) / - 86 col1
----
0

query I rowsort
SELECT 24 - 36
----
-12

query I rowsort
SELECT - 36 * + 84 - + 51 AS col0
----
-3075

onlyif mysql # DIV for integer division: 
query I rowsort label-8576
SELECT ALL 12 DIV 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL 12 / 37 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL - COUNT( * ) * 50 + + 34 * - COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - COUNT ( * ) * 50 + + 34 * - COUNT ( * ) AS col0
----
-84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL + 7 * - 11 + + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + 7 * - 11 + + COUNT ( * )
----
-76

query I rowsort
SELECT 24 + 92 * - 97
----
-8900

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT 30 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT 30 / + 60
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8582
SELECT CASE - COUNT( * ) WHEN - COUNT( * ) THEN 22 WHEN 81 * COUNT( * ) THEN NULL WHEN - 29 + 9 THEN - 28 + + 82 * COALESCE ( + MAX( + ( - 5 ) ) * 28, + ( 84 ) * COUNT( * ) ) END DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN 22 WHEN 81 * COUNT ( * ) THEN NULL WHEN - 29 + 9 THEN - 28 + + 82 * COALESCE ( + MAX ( + ( - 5 ) ) * 28, + ( 84 ) * COUNT ( * ) ) END / 41
----
0

query I rowsort
SELECT DISTINCT 36 * - 50 + - 83 * 39 AS col1
----
-5037

query I rowsort
SELECT ALL 52 * 63 col0
----
3276

query I rowsort
SELECT DISTINCT 11 * + 74
----
814

query I rowsort
SELECT + 98 * 14 - 2
----
1370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8587
SELECT DISTINCT 87 * COALESCE ( + CASE + 97 WHEN 12 - COUNT( * ) THEN CAST( NULL AS SIGNED ) END, - 17 )
----
-1479

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT 87 * COALESCE ( + CASE + 97 WHEN 12 - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) END, - 17 )
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL 46 + + MAX( + 9 + - 59 ) * ( 96 ) AS col0
----
-4754

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL 46 + + MAX ( + 9 + - 59 ) * ( 96 ) AS col0
----
-4754

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT MAX( ALL 79 )
----
79

skipif mysql # not compatible
query I rowsort label-8590
SELECT MAX ( ALL 79 )
----
79

query I rowsort
SELECT ALL - 47 * 36
----
-1692

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

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

query I rowsort
SELECT + ( + 80 ) + 44
----
124

query I rowsort
SELECT DISTINCT - 29 * 54 AS col0
----
-1566

query I rowsort
SELECT DISTINCT 45 - + 72 * + 76
----
-5427

query I rowsort
SELECT - NULLIF ( ( + 42 ), 68 + 98 ) col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT ALL 80 - COUNT( 55 + 60 * 25 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL 80 - COUNT ( 55 + 60 * 25 ) AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL 39 / - 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT + NULLIF ( 59, 25 ) + 7 * MAX( CAST( NULL AS SIGNED ) + 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT + NULLIF ( 59, 25 ) + 7 * MAX ( CAST ( NULL AS INTEGER ) + 71 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + CASE + COUNT( 5 ) WHEN + 74 + 47 THEN NULL WHEN 34 THEN + 54 ELSE NULL END / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT + CASE + COUNT ( 5 ) WHEN + 74 + 47 THEN NULL WHEN 34 THEN + 54 ELSE NULL END / 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT SUM( ALL + 14 ) * + COALESCE ( - 16, 48 ) AS col1
----
-224

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT SUM ( ALL + 14 ) * + COALESCE ( - 16, 48 ) AS col1
----
-224

query I rowsort
SELECT + 38 + - ( - 21 ) * 69
----
1487

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT ALL 65 DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL 65 / 21
----
3

query I rowsort
SELECT + + 36 + + 41
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT DISTINCT AVG ( ALL CAST( NULL AS SIGNED ) ) * ( 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT AVG ( ALL CAST ( NULL AS INTEGER ) ) * ( 56 ) AS col0
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 11, 0 ) AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT + 27 * CAST( - 32 * + 43 AS SIGNED ) AS col1
----
-37152

skipif mysql # not compatible
query I rowsort label-8607
SELECT + 27 * CAST ( - 32 * + 43 AS INTEGER ) AS col1
----
-37152

query I rowsort
SELECT + 71 + 57 AS col0
----
128

query I rowsort
SELECT - 41 - + ( - 89 )
----
48

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

skipif mysql # not compatible
query I rowsort label-8610
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - 18
----
-17

query I rowsort
SELECT + 94 * - 18
----
-1692

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT + 98 DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-8612
SELECT + 98 / 81
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - 68 + + CASE - 39 + COALESCE ( - 47 - - 62, - SUM( DISTINCT 84 ) ) WHEN COUNT( * ) * + 36 THEN + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT - 68 + + CASE - 39 + COALESCE ( - 47 - - 62, - SUM ( DISTINCT 84 ) ) WHEN COUNT ( * ) * + 36 THEN + 11 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - NULLIF ( 86, + 7 ) + + 54 * 84
----
4450

query I rowsort
SELECT ALL - - 40 + 88 * 92
----
8136

query I rowsort
SELECT + - 34 + - 19
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL NULLIF ( - MAX( DISTINCT + 74 ), - 73 + 99 )
----
-74

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL NULLIF ( - MAX ( DISTINCT + 74 ), - 73 + 99 )
----
-74

query I rowsort
SELECT DISTINCT 95 + - ( - 95 ) * + 24 AS col1
----
2375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT - + 59 + - CAST( - 51 AS SIGNED ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8620
SELECT - + 59 + - CAST ( - 51 AS INTEGER ) AS col0
----
-8

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8622
SELECT DISTINCT ( 53 ) DIV + 76 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT ( 53 ) / + 76 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8623
SELECT ALL + MIN( 82 ) DIV - 70 + MIN( ALL 71 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL + MIN ( 82 ) / - 70 + MIN ( ALL 71 ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8624
SELECT DISTINCT + 35 DIV + 72 + 59 * 18 AS col2
----
1062

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT + 35 / + 72 + 59 * 18 AS col2
----
1062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8625
SELECT DISTINCT - COALESCE ( CASE + 88 WHEN 96 THEN - 64 END, + COALESCE ( 45, ( 96 ) * - ( 23 * 45 ) + + 51 * + 26 ) DIV - 69, 17 ) DIV 77 + 35 * + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT - COALESCE ( CASE + 88 WHEN 96 THEN - 64 END, + COALESCE ( 45, ( 96 ) * - ( 23 * 45 ) + + 51 * + 26 ) / - 69, 17 ) / 77 + 35 * + COUNT ( * )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT 82 DIV 74 + 16 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8626
SELECT 82 / 74 + 16 AS col2
----
17

query I rowsort
SELECT + 14 * ( 99 ) col1
----
1386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8628
SELECT + 19 DIV 34 + SUM( - 52 ) * - 2
----
104

skipif mysql # not compatible
query I rowsort label-8628
SELECT + 19 / 34 + SUM ( - 52 ) * - 2
----
104

query I rowsort
SELECT ALL + 15 * 10 AS col2
----
150

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

skipif mysql # not compatible
query I rowsort label-8630
SELECT + SUM ( ALL + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL 69 * + - COUNT( * ) + - COUNT( * ) * ( 66 )
----
-135

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL 69 * + - COUNT ( * ) + - COUNT ( * ) * ( 66 )
----
-135

query I rowsort
SELECT ( - + 7 ) AS col0
----
-7

query I rowsort
SELECT - 52 + ( + 95 ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT + 53 * - 84 * + 86 - COUNT( * ) * SUM( ALL - 74 ) AS col2
----
-382798

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT + 53 * - 84 * + 86 - COUNT ( * ) * SUM ( ALL - 74 ) AS col2
----
-382798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT ALL + CASE - 86 WHEN MAX( DISTINCT 22 ) - + COALESCE ( - 77, 63 + - 24, + COALESCE ( - ( 10 ), + 49, CAST( NULL AS SIGNED ) * + 12 ) + COUNT( 71 + + 74 ), + 9 ) THEN NULL ELSE ( 45 ) END col2
----
45

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL + CASE - 86 WHEN MAX ( DISTINCT 22 ) - + COALESCE ( - 77, 63 + - 24, + COALESCE ( - ( 10 ), + 49, CAST ( NULL AS INTEGER ) * + 12 ) + COUNT ( 71 + + 74 ), + 9 ) THEN NULL ELSE ( 45 ) END col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT NULLIF ( NULLIF ( - COUNT( * ), + 92 ), SUM( DISTINCT 53 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8636
SELECT NULLIF ( NULLIF ( - COUNT ( * ), + 92 ), SUM ( DISTINCT 53 ) ) col2
----
-1

query I rowsort
SELECT DISTINCT + ( - + ( 98 ) )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8638
SELECT ALL ( - + MAX( + 14 ) ) * - CAST( NULL AS DECIMAL ) - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL ( - + MAX ( + 14 ) ) * - CAST ( NULL AS REAL ) - - 20
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT - CAST( + - 6 AS SIGNED ) * + 55
----
330

skipif mysql # not compatible
query I rowsort label-8639
SELECT - CAST ( + - 6 AS INTEGER ) * + 55
----
330

query I rowsort
SELECT + 74 + + 20 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT + 33 DIV - - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT + 33 / - - 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - 53 * - COALESCE ( 61, + COUNT( * ), + ( CASE COALESCE ( MAX( ALL + 3 ), + 37 ) WHEN - ( 73 ) THEN COALESCE ( - ( 34 ), + MAX( ALL 22 ) * - 59 ) * + 6 WHEN + 46 + + 94 THEN 80 END ) )
----
3233

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - 53 * - COALESCE ( 61, + COUNT ( * ), + ( CASE COALESCE ( MAX ( ALL + 3 ), + 37 ) WHEN - ( 73 ) THEN COALESCE ( - ( 34 ), + MAX ( ALL 22 ) * - 59 ) * + 6 WHEN + 46 + + 94 THEN 80 END ) )
----
3233

query I rowsort
SELECT - 45 * + 72 * + 75 col2
----
-243000

query I rowsort
SELECT 80 * - 86 + 60
----
-6820

query I rowsort
SELECT ALL - 44 * - - 73 AS col2
----
-3212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8646
SELECT - COALESCE ( + COALESCE ( + CASE + 19 WHEN 38 THEN + COUNT( * ) * + 28 WHEN 17 THEN NULL END, - 0, - 40 ), CAST( 39 AS SIGNED ) DIV + 44 ) * + COALESCE ( 34 * ( - 14 ), - 35 + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8646
SELECT - COALESCE ( + COALESCE ( + CASE + 19 WHEN 38 THEN + COUNT ( * ) * + 28 WHEN 17 THEN NULL END, - 0, - 40 ), CAST ( 39 AS INTEGER ) / + 44 ) * + COALESCE ( 34 * ( - 14 ), - 35 + - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + 27 + + 25
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL COUNT( * ) * + + 1
----
1

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL COUNT ( * ) * + + 1
----
1

query I rowsort
SELECT ALL + 7 * - - 26 AS col0
----
182

query I rowsort
SELECT DISTINCT + 99 * ( 83 ) AS col2
----
8217

query I rowsort
SELECT + - 90 * + - 78 AS col2
----
7020

query I rowsort
SELECT ALL + ( + 55 ) * + 22
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT + MIN( - 63 ) + 83
----
20

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT + MIN ( - 63 ) + 83
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT CASE + ( - COUNT( * ) ) WHEN 43 * 80 THEN COUNT( * ) * ( - ( 46 ) ) WHEN 79 THEN NULL WHEN MIN( DISTINCT 26 ) - - 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT CASE + ( - COUNT ( * ) ) WHEN 43 * 80 THEN COUNT ( * ) * ( - ( 46 ) ) WHEN 79 THEN NULL WHEN MIN ( DISTINCT 26 ) - - 57 THEN NULL END
----
NULL

query I rowsort
SELECT - 69 * - 13 + - 64 AS col0
----
833

query I rowsort
SELECT + 38 + 52 + 19 AS col2
----
109

query I rowsort
SELECT ALL + 44 + + - 0 * - 8
----
44

query I rowsort
SELECT + + 63 * + 79 * COALESCE ( + ( 68 ), + 38 )
----
338436

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT ALL + ( 35 ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL + ( 35 ) / + 81
----
0

query I rowsort
SELECT ALL 44 * + + 93 + + 0 col2
----
4092

query I rowsort
SELECT DISTINCT 84 + - 74
----
10

query I rowsort
SELECT DISTINCT + 61 + + 25 + + 45 * 9
----
491

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT - SUM( ALL - 97 ) + NULLIF ( 13 + - 44, - ( 70 ) - NULLIF ( COUNT( * ), 6 ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - SUM ( ALL - 97 ) + NULLIF ( 13 + - 44, - ( 70 ) - NULLIF ( COUNT ( * ), 6 ) ) AS col0
----
66

query I rowsort
SELECT + 85 + 20 AS col1
----
105

query I rowsort
SELECT - 98 + 1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT CASE + + 86 WHEN MAX( 55 ) THEN ( + 7 ) END / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT CASE + + 86 WHEN MAX ( 55 ) THEN ( + 7 ) END / 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT 87 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT 87 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT DISTINCT - 25 DIV + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT - 25 / + 46 AS col2
----
0

query I rowsort
SELECT ALL 29 - - 3 + - - 1 + - 40 * + 70
----
-2767

query I rowsort
SELECT ALL - 56 - + - CASE 48 WHEN + 79 THEN - 33 + - 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT 59 - - - MAX( ALL - 51 )
----
110

skipif mysql # not compatible
query I rowsort label-8671
SELECT 59 - - - MAX ( ALL - 51 )
----
110

query II rowsort
SELECT ALL - 94, 62 AS col2
----
-94
62

query I rowsort
SELECT DISTINCT 28 * + 40 AS col0
----
1120

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT 81, COUNT( * ) col0
----
81
1

skipif mysql # not compatible
query II rowsort label-8674
SELECT 81, COUNT ( * ) col0
----
81
1

query I rowsort
SELECT 94 * - 95 AS col1
----
-8930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT 3 - CASE WHEN COUNT( * ) IS NULL THEN 57 WHEN NOT - ( ( 27 ) ) + 17 IN ( CASE COUNT( * ) WHEN NULLIF ( 76, 74 ) + CASE WHEN NOT NULL <> - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) THEN + 56 + - 14 ELSE 66 END * 28 THEN NULL ELSE 69 + - 34 END ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT 3 - CASE WHEN COUNT ( * ) IS NULL THEN 57 WHEN NOT - ( ( 27 ) ) + 17 IN ( CASE COUNT ( * ) WHEN NULLIF ( 76, 74 ) + CASE WHEN NOT NULL <> - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN + 56 + - 14 ELSE 66 END * 28 THEN NULL ELSE 69 + - 34 END ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT 19 * SUM( DISTINCT + + 87 )
----
1653

skipif mysql # not compatible
query I rowsort label-8677
SELECT 19 * SUM ( DISTINCT + + 87 )
----
1653

query II rowsort
SELECT 13 col1, 86 AS col2
----
13
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT ALL - CASE - 35 WHEN 3 * + COUNT( * ) + + 16 THEN + 67 ELSE 38 + 42 * + 5 END col1
----
-248

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - CASE - 35 WHEN 3 * + COUNT ( * ) + + 16 THEN + 67 ELSE 38 + 42 * + 5 END col1
----
-248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8680
SELECT ALL - ( - ( + CASE 21 WHEN 18 + - MIN( CAST( NULL AS DECIMAL ) ) * 51 THEN 65 WHEN 16 * 97 THEN CAST( NULL AS SIGNED ) ELSE NULL END ) ) / 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - ( - ( + CASE 21 WHEN 18 + - MIN ( CAST ( NULL AS REAL ) ) * 51 THEN 65 WHEN 16 * 97 THEN CAST ( NULL AS INTEGER ) ELSE NULL END ) ) / 93 AS col2
----
NULL

query I rowsort
SELECT 9 * + 45
----
405

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8682
SELECT ALL - NULLIF ( - CASE 59 WHEN AVG ( - 47 ) + - 96 THEN NULL WHEN - NULLIF ( + CASE COUNT( * ) WHEN 86 THEN ( + CAST( NULL AS DECIMAL ) ) END, - 42 ) THEN 80 * + NULLIF ( 68 / + COUNT( + 36 ), 46 ) + 68 WHEN 80 THEN - 82 ELSE NULL END, - 93 ) + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - NULLIF ( - CASE 59 WHEN AVG ( - 47 ) + - 96 THEN NULL WHEN - NULLIF ( + CASE COUNT ( * ) WHEN 86 THEN ( + CAST ( NULL AS REAL ) ) END, - 42 ) THEN 80 * + NULLIF ( 68 / + COUNT ( + 36 ), 46 ) + 68 WHEN 80 THEN - 82 ELSE NULL END, - 93 ) + 53 AS col2
----
NULL

query I rowsort
SELECT ALL - 12 * + 52
----
-624

onlyif mysql # DIV for integer division: 
query I rowsort label-8684
SELECT DISTINCT - 40 DIV - 13
----
3

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT - 40 / - 13
----
3

query I rowsort
SELECT 40 + - 83 AS col1
----
-43

query I rowsort
SELECT + ( - - 10 ) + + 15
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ( + SUM( + 52 ) ) * 72
----
3744

skipif mysql # not compatible
query I rowsort label-8687
SELECT ( + SUM ( + 52 ) ) * 72
----
3744

query I rowsort
SELECT 33 + 31 * + 59 * 89
----
162814

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT + COUNT( * ) * + + 73
----
73

skipif mysql # not compatible
query I rowsort label-8689
SELECT + COUNT ( * ) * + + 73
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8690
SELECT 63 + + - MIN( DISTINCT - 0 ) - - 24 * CAST( NULL AS SIGNED ) * AVG ( 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT 63 + + - MIN ( DISTINCT - 0 ) - - 24 * CAST ( NULL AS INTEGER ) * AVG ( 59 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT ALL - - 69 + CASE CAST( - 87 AS SIGNED ) WHEN 65 THEN NULL WHEN ( 23 ) * 39 + 54 THEN 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL - - 69 + CASE CAST ( - 87 AS INTEGER ) WHEN 65 THEN NULL WHEN ( 23 ) * 39 + 54 THEN 3 END
----
NULL

query I rowsort
SELECT - 89 + + 53 * 93
----
4840

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL 33 + - - MAX( DISTINCT + - 64 )
----
-31

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL 33 + - - MAX ( DISTINCT + - 64 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - COUNT( * ) + + 40 - - 36 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8694
SELECT - COUNT ( * ) + + 40 - - 36 AS col1
----
75

query I rowsort
SELECT ALL + + 56 + 82 + 29 * 13 AS col2
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT 2 + - 26 - + NULLIF ( COUNT( + 54 ), + 31 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8696
SELECT 2 + - 26 - + NULLIF ( COUNT ( + 54 ), + 31 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL - COUNT( * ) + + COUNT( * ) * + - 97 - + 72 AS col1
----
-170

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * + - 97 - + 72 AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL MAX( DISTINCT 42 ) + + - 58 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL MAX ( DISTINCT 42 ) + + - 58 AS col2
----
-16

query I rowsort
SELECT ALL ( + - ( - 44 ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT + MIN( DISTINCT + - 86 ) + + COALESCE ( 43, + 64 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-8700
SELECT + MIN ( DISTINCT + - 86 ) + + COALESCE ( 43, + 64 ) col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT + CAST( NULL AS SIGNED ) + - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT + CAST ( NULL AS INTEGER ) + - 38 AS col2
----
NULL

query II rowsort
SELECT 61, + 52 * 22 + 42 AS col1
----
61
1186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8703
SELECT + 52 + - 25 * COUNT( * ) DIV 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8703
SELECT + 52 + - 25 * COUNT ( * ) / 51 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT - MAX( ALL + 62 ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-8704
SELECT - MAX ( ALL + 62 ) col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT CAST( 16 AS SIGNED ) + 53 * - 26
----
-1362

skipif mysql # not compatible
query I rowsort label-8705
SELECT CAST ( 16 AS INTEGER ) + 53 * - 26
----
-1362

query I rowsort
SELECT - 5 * + 72 AS col0
----
-360

query I rowsort
SELECT 2 * + - 90 col1
----
-180

query I rowsort
SELECT ALL NULLIF ( 22, + + 90 )
----
22

query I rowsort
SELECT - 19 + - 90
----
-109

query I rowsort
SELECT 68 + + 31
----
99

query I rowsort
SELECT ALL 94 - 61
----
33

query I rowsort
SELECT 75 * - 21 * 94 AS col0
----
-148050

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT + COUNT( * ) * + + 47 + - COALESCE ( COALESCE ( - 36, NULLIF ( 14, + 37 ) + 72 ), 31 * - 10, + 40 )
----
83

skipif mysql # not compatible
query I rowsort label-8713
SELECT + COUNT ( * ) * + + 47 + - COALESCE ( COALESCE ( - 36, NULLIF ( 14, + 37 ) + 72 ), 31 * - 10, + 40 )
----
83

query I rowsort
SELECT DISTINCT 29 * - ( - 29 )
----
841

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL 87 * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL 87 * COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8716
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * - 31 + - 76 * 84 + - 10 * COALESCE ( + 65 + 76, 83 DIV 32 ) AS col0
----
-7763

skipif mysql # not compatible
query I rowsort label-8716
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - 31 + - 76 * 84 + - 10 * COALESCE ( + 65 + 76, 83 / 32 ) AS col0
----
-7763

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT COUNT( * ) * + + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8717
SELECT COUNT ( * ) * + + 58 AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8718
SELECT - 72 DIV - CASE - 18 WHEN ( 41 ) THEN 49 DIV + COALESCE ( 47, + 2, COALESCE ( - AVG ( ALL COALESCE ( + 42, + ( - 85 ) + CASE 40 WHEN 16 THEN - 26 END ) ), + 58 ) * + 73 ) WHEN MIN( 43 ) THEN NULL ELSE 67 END + 66 col2
----
67

skipif mysql # not compatible
query I rowsort label-8718
SELECT - 72 / - CASE - 18 WHEN ( 41 ) THEN 49 / + COALESCE ( 47, + 2, COALESCE ( - AVG ( ALL COALESCE ( + 42, + ( - 85 ) + CASE 40 WHEN 16 THEN - 26 END ) ), + 58 ) * + 73 ) WHEN MIN ( 43 ) THEN NULL ELSE 67 END + 66 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ( + COUNT( * ) ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8719
SELECT ( + COUNT ( * ) ) * COUNT ( * )
----
1

query I rowsort
SELECT 13 + + + 18 + - 61 + + - 71 - - 8 AS col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT ALL 16 DIV 9
----
1

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL 16 / 9
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT MAX( ALL - 83 ) + 41
----
-42

skipif mysql # not compatible
query I rowsort label-8722
SELECT MAX ( ALL - 83 ) + 41
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8723
SELECT 17 * + 98 + - 93 + + + 93 DIV 2
----
1619

skipif mysql # not compatible
query I rowsort label-8723
SELECT 17 * + 98 + - 93 + + + 93 / 2
----
1619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT ALL 21 + - CAST( NULL AS SIGNED ) * + ( + - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL 21 + - CAST ( NULL AS INTEGER ) * + ( + - 92 )
----
NULL

query I rowsort
SELECT ALL + 81 + - 15 + - + 76 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT 89 * - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8726
SELECT 89 * - - COUNT ( * )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT 25 + + + 3 + 8 + - ( 46 ) DIV + 52
----
36

skipif mysql # not compatible
query I rowsort label-8727
SELECT 25 + + + 3 + 8 + - ( 46 ) / + 52
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL - MIN( DISTINCT 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - MIN ( DISTINCT 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + + MAX( ALL - - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-8729
SELECT + + MAX ( ALL - - 13 ) AS col2
----
13

query I rowsort
SELECT 99 + 98 AS col2
----
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8731
SELECT - 17 * - CASE - 80 WHEN + COUNT( * ) THEN NULL WHEN - 66 THEN + CAST( NULL AS SIGNED ) WHEN - 55 + 9 / - 37 THEN - 17 WHEN - 68 + NULLIF ( + 31 + + 28, - 18 ) THEN - CASE 60 WHEN + ( - 16 ) * 94 THEN + AVG ( ALL - 41 ) ELSE 35 END END + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT - 17 * - CASE - 80 WHEN + COUNT ( * ) THEN NULL WHEN - 66 THEN + CAST ( NULL AS INTEGER ) WHEN - 55 + 9 / - 37 THEN - 17 WHEN - 68 + NULLIF ( + 31 + + 28, - 18 ) THEN - CASE 60 WHEN + ( - 16 ) * 94 THEN + AVG ( ALL - 41 ) ELSE 35 END END + 94
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT ALL - CAST( NULL AS SIGNED ) + + ( - ( 0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( - ( 0 ) )
----
NULL

query I rowsort
SELECT - 60 * - - 41 * + - 73
----
179580

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT ALL - - NULLIF ( 66, 4 + - + COUNT( * ) * 43 )
----
66

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL - - NULLIF ( 66, 4 + - + COUNT ( * ) * 43 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT SUM( + ( 12 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT SUM ( + ( 12 ) ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT - 87 DIV - ( 14 )
----
6

skipif mysql # not compatible
query I rowsort label-8736
SELECT - 87 / - ( 14 )
----
6

query I rowsort
SELECT ALL + + 21 - + + COALESCE ( - + 79, 3 ) * - 26
----
-2033

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT - COUNT( * ) * - + 67
----
67

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT - COUNT ( * ) * - + 67
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8739
SELECT ALL - CASE 25 WHEN - 90 * + 87 THEN NULL ELSE CASE WHEN NOT NULL IS NOT NULL THEN COALESCE ( 81, MAX( NULLIF ( + 87, 42 + + 9 ) ) + COUNT( * ) * 48, - 42 + 9 * COUNT( * ) ) END DIV 20 END DIV + COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL - CASE 25 WHEN - 90 * + 87 THEN NULL ELSE CASE WHEN NOT NULL IS NOT NULL THEN COALESCE ( 81, MAX ( NULLIF ( + 87, 42 + + 9 ) ) + COUNT ( * ) * 48, - 42 + 9 * COUNT ( * ) ) END / 20 END / + COUNT ( * ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT + - 86 DIV 83
----
-1

skipif mysql # not compatible
query I rowsort label-8740
SELECT + - 86 / 83
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT - + 81 DIV - 37 - 89 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8741
SELECT - + 81 / - 37 - 89 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8742
SELECT - CAST( COALESCE ( + 83, + CASE 58 WHEN CASE 80 WHEN - 20 * - 8 THEN + 91 - 53 END THEN AVG ( DISTINCT 21 ) WHEN COUNT( * ) THEN NULL END * - 37 + 33 * 98, - SUM( DISTINCT + 82 ) * + 10 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-8742
SELECT - CAST ( COALESCE ( + 83, + CASE 58 WHEN CASE 80 WHEN - 20 * - 8 THEN + 91 - 53 END THEN AVG ( DISTINCT 21 ) WHEN COUNT ( * ) THEN NULL END * - 37 + 33 * 98, - SUM ( DISTINCT + 82 ) * + 10 ) AS INTEGER )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL - 0 - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL - 0 - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + + 41 - - 47
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8745
SELECT - 89 DIV - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8745
SELECT - 89 / - COUNT ( * ) AS col1
----
89

query I rowsort
SELECT + ( + - 19 ) * + - 55
----
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT ALL COALESCE ( + + CASE - - 29 WHEN - CAST( 37 AS SIGNED ) * - COUNT( * ) - 64 THEN 71 END, SUM( ALL + 69 ) * + SUM( ALL ( - ( 22 ) ) ), - 78, CASE 50 WHEN + 19 * 28 THEN NULL WHEN 27 / COUNT( + 49 ) + CASE COUNT( * ) WHEN 60 * - 53 + 68 THEN + AVG ( - 49 ) * 41 - 90 END * - 92 THEN COUNT( ALL 93 ) WHEN - 8 + 64 THEN NULL END ) AS col0
----
-1518

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL COALESCE ( + + CASE - - 29 WHEN - CAST ( 37 AS INTEGER ) * - COUNT ( * ) - 64 THEN 71 END, SUM ( ALL + 69 ) * + SUM ( ALL ( - ( 22 ) ) ), - 78, CASE 50 WHEN + 19 * 28 THEN NULL WHEN 27 / COUNT ( + 49 ) + CASE COUNT ( * ) WHEN 60 * - 53 + 68 THEN + AVG ( - 49 ) * 41 - 90 END * - 92 THEN COUNT ( ALL 93 ) WHEN - 8 + 64 THEN NULL END ) AS col0
----
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT DISTINCT CASE 34 WHEN + 49 + + 83 + - + 54 + + 14 * - NULLIF ( + 45 + - ( - 20 ) * CAST( NULL AS SIGNED ), - ( - 50 ) * COALESCE ( 12, + 93, CAST( NULL AS SIGNED ) / - 89 ) ) * ( 18 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT CASE 34 WHEN + 49 + + 83 + - + 54 + + 14 * - NULLIF ( + 45 + - ( - 20 ) * CAST ( NULL AS INTEGER ), - ( - 50 ) * COALESCE ( 12, + 93, CAST ( NULL AS INTEGER ) / - 89 ) ) * ( 18 ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL NULLIF ( - COUNT( * ), - + ( 82 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL NULLIF ( - COUNT ( * ), - + ( 82 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT - 28 + - ( CAST( NULL AS SIGNED ) ) + - CAST( - COUNT( * ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT - 28 + - ( CAST ( NULL AS INTEGER ) ) + - CAST ( - COUNT ( * ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 46 * 20 AS col1
----
-920

query I rowsort
SELECT 84 * 41 + - 24 * + 90
----
1284

query I rowsort
SELECT DISTINCT 75 * 77 * + + ( - 38 ) col1
----
-219450

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL - CASE - 52 WHEN 60 * - 49 THEN NULL WHEN - 8 THEN NULL WHEN 74 THEN + 48 WHEN + COALESCE ( SUM( DISTINCT - 34 ), 46 + 46, - 45, 52 * 85 + + 15 ) THEN NULL END * + 29 + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL - CASE - 52 WHEN 60 * - 49 THEN NULL WHEN - 8 THEN NULL WHEN 74 THEN + 48 WHEN + COALESCE ( SUM ( DISTINCT - 34 ), 46 + 46, - 45, 52 * 85 + + 15 ) THEN NULL END * + 29 + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT + COUNT( 98 )
----
1

skipif mysql # not compatible
query I rowsort label-8755
SELECT + COUNT ( 98 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT ALL COUNT( * ) * - 86 * 68, + 96 + + 18 col0
----
-5848
114

skipif mysql # not compatible
query II rowsort label-8756
SELECT ALL COUNT ( * ) * - 86 * 68, + 96 + + 18 col0
----
-5848
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT + 16 * + - CAST( 14 AS SIGNED ) col1
----
-224

skipif mysql # not compatible
query I rowsort label-8757
SELECT + 16 * + - CAST ( 14 AS INTEGER ) col1
----
-224

query I rowsort
SELECT DISTINCT + 40 * 53
----
2120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT ALL - 90 * - 93 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL - 90 * - 93 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT + 86 * + MIN( ALL + 73 ) AS col0
----
6278

skipif mysql # not compatible
query I rowsort label-8760
SELECT + 86 * + MIN ( ALL + 73 ) AS col0
----
6278

query I rowsort
SELECT + 56 * 71
----
3976

query I rowsort
SELECT ALL + 13 * - 47 * 94 + 31 col0
----
-57403

query I rowsort
SELECT - 60 * - 57 - - 43 AS col0
----
3463

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8764
SELECT 29 AS col2, - 88 + + 97 + + + CAST( NULL AS SIGNED ) / - 42 / + 48 + + 28
----
29
NULL

skipif mysql # not compatible
query II rowsort label-8764
SELECT 29 AS col2, - 88 + + 97 + + + CAST ( NULL AS INTEGER ) / - 42 / + 48 + + 28
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT DISTINCT + 98 * - COUNT( * ) + - 79 * - 93 * - 19 * - 40
----
5583622

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT + 98 * - COUNT ( * ) + - 79 * - 93 * - 19 * - 40
----
5583622

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL - MAX( 0 ) * + + 34 + - 72 * - 52 + - COUNT( * )
----
3743

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - MAX ( 0 ) * + + 34 + - 72 * - 52 + - COUNT ( * )
----
3743

query I rowsort
SELECT DISTINCT - 34 * + 66 + - 27
----
-2271

query I rowsort
SELECT DISTINCT + - 50 AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8769
SELECT ALL 81 * - 96 - - 72 * + 87 - COALESCE ( 88, 98 ) + + COUNT( * ) DIV 41 DIV 55
----
-1600

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL 81 * - 96 - - 72 * + 87 - COALESCE ( 88, 98 ) + + COUNT ( * ) / 41 / 55
----
-1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT + CAST( NULL AS SIGNED ) + + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT + CAST ( NULL AS INTEGER ) + + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + 85 * - 42 - + 66 + + - CASE - 82 WHEN COUNT( * ) * 0 THEN NULL ELSE - 40 END * + 87
----
-156

skipif mysql # not compatible
query I rowsort label-8771
SELECT + 85 * - 42 - + 66 + + - CASE - 82 WHEN COUNT ( * ) * 0 THEN NULL ELSE - 40 END * + 87
----
-156

query I rowsort
SELECT ALL 89 * - 10 - + 90 AS col1
----
-980

query I rowsort
SELECT + ( + - 87 ) + + - 76 AS col2
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT + - ( CAST( 54 AS SIGNED ) ) + - 16 * + 91
----
-1510

skipif mysql # not compatible
query I rowsort label-8774
SELECT + - ( CAST ( 54 AS INTEGER ) ) + - 16 * + 91
----
-1510

query I rowsort
SELECT + 78 * - + 34 * 55 col1
----
-145860

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL COUNT( + - 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL COUNT ( + - 15 ) AS col0
----
1

query I rowsort
SELECT - - 99 + - - 55 AS col0
----
154

query I rowsort
SELECT - + 25 + - 54 - + 52 AS col0
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT ALL + 14 * MAX( DISTINCT 5 ) DIV + ( ( + 95 ) ) + - 3 DIV - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL + 14 * MAX ( DISTINCT 5 ) / + ( ( + 95 ) ) + - 3 / - 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL CASE 78 WHEN 81 + 60 * COUNT( * ) THEN 13 WHEN COUNT( * ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL CASE 78 WHEN 81 + 60 * COUNT ( * ) THEN 13 WHEN COUNT ( * ) THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL NULLIF ( - 65, + - ( - ( - COUNT( * ) ) ) - 5 * - SUM( DISTINCT - 51 + 46 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL NULLIF ( - 65, + - ( - ( - COUNT ( * ) ) ) - 5 * - SUM ( DISTINCT - 51 + 46 ) )
----
-65

query I rowsort
SELECT - 58 + - - 32
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - COALESCE ( - COUNT( * ), + - 9 + + 14 + 12 * - + 12 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8783
SELECT - COALESCE ( - COUNT ( * ), + - 9 + + 14 + 12 * - + 12 ) * - COUNT ( * )
----
-1

query I rowsort
SELECT - 34 + + 82
----
48

query I rowsort
SELECT ALL + 25 * 84 col2
----
2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8786
SELECT - 52 DIV + 19, + SUM( - 8 ) * - 68 * + - 53 AS col2
----
-2
-28832

skipif mysql # not compatible
query II rowsort label-8786
SELECT - 52 / + 19, + SUM ( - 8 ) * - 68 * + - 53 AS col2
----
-2
-28832

query I rowsort
SELECT - 11 + - 34 + 84
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8788
SELECT - 34 AS col1, 82, - CAST( NULL AS SIGNED ) * 56 AS col0
----
-34
82
NULL

skipif mysql # not compatible
query III rowsort label-8788
SELECT - 34 AS col1, 82, - CAST ( NULL AS INTEGER ) * 56 AS col0
----
-34
82
NULL

query II rowsort
SELECT ALL - 53 + - + 31 AS col1, - 35
----
-84
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT ALL + CASE + - ( NULLIF ( + - CAST( + 96 AS SIGNED ), - 43 ) ) WHEN 18 * 13 THEN + 15 ELSE - 85 END + + CASE 30 WHEN + 52 / CAST( NULL AS SIGNED ) THEN NULL WHEN 43 THEN 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL + CASE + - ( NULLIF ( + - CAST ( + 96 AS INTEGER ), - 43 ) ) WHEN 18 * 13 THEN + 15 ELSE - 85 END + + CASE 30 WHEN + 52 / CAST ( NULL AS INTEGER ) THEN NULL WHEN 43 THEN 62 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8791
SELECT - CAST( - + 51 AS SIGNED ) * - 94 * + MAX( + - 5 )
----
23970

skipif mysql # not compatible
query I rowsort label-8791
SELECT - CAST ( - + 51 AS INTEGER ) * - 94 * + MAX ( + - 5 )
----
23970

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT ALL + 74 AS col0, - COUNT( * ) * - 63 * - 15 AS col2
----
74
-945

skipif mysql # not compatible
query II rowsort label-8792
SELECT ALL + 74 AS col0, - COUNT ( * ) * - 63 * - 15 AS col2
----
74
-945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8793
SELECT ALL NULLIF ( 4, - 81 + - 25 * - COUNT( 10 ) ) DIV NULLIF ( 19, - 58 ) + + 27
----
27

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL NULLIF ( 4, - 81 + - 25 * - COUNT ( 10 ) ) / NULLIF ( 19, - 58 ) + + 27
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8794
SELECT CAST( - CASE 67 WHEN - 31 THEN 36 * 42 + MIN( DISTINCT ( 75 ) ) WHEN 89 + + 71 THEN ( + 70 ) * 64 END AS SIGNED ) * 34 + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT CAST ( - CASE 67 WHEN - 31 THEN 36 * 42 + MIN ( DISTINCT ( 75 ) ) WHEN 89 + + 71 THEN ( + 70 ) * 64 END AS INTEGER ) * 34 + + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8795
SELECT - COALESCE ( - ( - 88 ), + + 57 ) * + - 60 DIV COUNT( * )
----
5280

skipif mysql # not compatible
query I rowsort label-8795
SELECT - COALESCE ( - ( - 88 ), + + 57 ) * + - 60 / COUNT ( * )
----
5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8796
SELECT DISTINCT + 69 DIV - 27 + - 5 DIV + SUM( + 31 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT + 69 / - 27 + - 5 / + SUM ( + 31 ) AS col1
----
-2

query I rowsort
SELECT - 9 * + - 65 AS col0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ALL ( + COUNT( * ) ) * 2 + - + COALESCE ( + + 24, - 58 + + 28, + 99 + - 46 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL ( + COUNT ( * ) ) * 2 + - + COALESCE ( + + 24, - 58 + + 28, + 99 + - 46 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT - COUNT( * ) * + CASE - 12 WHEN + ( - 51 ) * - + 78 THEN 28 WHEN 69 * 95 THEN NULL END + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT - COUNT ( * ) * + CASE - 12 WHEN + ( - 51 ) * - + 78 THEN 28 WHEN 69 * 95 THEN NULL END + + 68
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8800
SELECT DISTINCT - 8 / + + 24 + 50 * - 61 - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT - 8 / + + 24 + 50 * - 61 - + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT ALL + + 16, - 43 * 88 AS col1
----
16
-3784

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT COUNT( * ) * - COUNT( * ) + + + COALESCE ( - - COUNT( * ), - - 38, - 1 * + 23 - 69 ) + 92
----
92

skipif mysql # not compatible
query I rowsort label-8802
SELECT COUNT ( * ) * - COUNT ( * ) + + + COALESCE ( - - COUNT ( * ), - - 38, - 1 * + 23 - 69 ) + 92
----
92

query I rowsort
SELECT ALL + ( + + COALESCE ( 66, 97 + - - 12 * - 80, 20 ) ) * - 18
----
-1188

query I rowsort
SELECT + 69 + + - 29
----
40

query I rowsort
SELECT ALL + + 49 * + - 31 * - ( + 69 ) * + 39 + - + 67
----
4087562

query II rowsort
SELECT + 31 AS col2, 93
----
31
93

query II rowsort
SELECT ALL - 97 AS col2, 4 AS col1
----
-97
4

query I rowsort
SELECT DISTINCT + 92 * + + 63 - - NULLIF ( + 12, 13 + 15 )
----
5808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT 87 * 75 * + COUNT( * ) * + CAST( NULL AS SIGNED ) + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT 87 * 75 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8810
SELECT ALL - 9 DIV + 82 * + + 79 * - - 99 AS col2, 54 * + 48 * + NULLIF ( CASE + CAST( NULL AS SIGNED ) WHEN + CASE + 87 WHEN + 30 DIV 95 THEN - 48 * 87 END * CAST( NULL AS SIGNED ) THEN - 78 ELSE NULL END, 79 + 22 ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8810
SELECT ALL - 9 / + 82 * + + 79 * - - 99 AS col2, 54 * + 48 * + NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN + CASE + 87 WHEN + 30 / 95 THEN - 48 * 87 END * CAST ( NULL AS INTEGER ) THEN - 78 ELSE NULL END, 79 + 22 ) AS col0
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8811
SELECT ALL - CASE 43 WHEN + - CAST( - ( 72 ) AS SIGNED ) THEN NULL WHEN 77 THEN NULLIF ( + 93, - 15 ) DIV 4 + 27 * + 43 ELSE MIN( + 29 ) END
----
-29

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - CASE 43 WHEN + - CAST ( - ( 72 ) AS INTEGER ) THEN NULL WHEN 77 THEN NULLIF ( + 93, - 15 ) / 4 + 27 * + 43 ELSE MIN ( + 29 ) END
----
-29

query I rowsort
SELECT 48 * + 98 AS col1
----
4704

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT ALL 82 + - - 46 DIV + + 56 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL 82 + - - 46 / + + 56 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8814
SELECT ALL - 57 * + + 33 * 21 + - MIN( ALL + - ( - CAST( 50 AS SIGNED ) ) ) AS col0
----
-39551

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - 57 * + + 33 * 21 + - MIN ( ALL + - ( - CAST ( 50 AS INTEGER ) ) ) AS col0
----
-39551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8815
SELECT CASE - 1 WHEN 98 THEN - COALESCE ( COALESCE ( + AVG ( 77 ), - COUNT( * ) - ( 80 + 42 / - 54 ) * 33 ), + 19 + 5 / CAST( - CAST( NULL AS SIGNED ) - 41 * ( - COUNT( * ) ) AS SIGNED ) ) * - 1 END * ( + 45 * - ( ( + 37 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT CASE - 1 WHEN 98 THEN - COALESCE ( COALESCE ( + AVG ( 77 ), - COUNT ( * ) - ( 80 + 42 / - 54 ) * 33 ), + 19 + 5 / CAST ( - CAST ( NULL AS INTEGER ) - 41 * ( - COUNT ( * ) ) AS INTEGER ) ) * - 1 END * ( + 45 * - ( ( + 37 ) ) ) AS col2
----
NULL

query I rowsort
SELECT ( - 83 ) * + 11 + 81 * - 79
----
-7312

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL + 21 + COUNT( * ) col0
----
22

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL + 21 + COUNT ( * ) col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8818
SELECT DISTINCT 63 * 4 * COUNT( * ) * - 73 * + 78 * - 0 DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT 63 * 4 * COUNT ( * ) * - 73 * + 78 * - 0 / 29
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT ALL 57 + CAST( 94 AS SIGNED ) + COUNT( * )
----
152

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL 57 + CAST ( 94 AS INTEGER ) + COUNT ( * )
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT SUM( - 61 ) + + 43 * + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-8820
SELECT SUM ( - 61 ) + + 43 * + COUNT ( * )
----
-18

query I rowsort
SELECT 28 - 50 + - 87 AS col1
----
-109

query II rowsort
SELECT 35 + - 15 AS col2, + 17 * + 9
----
20
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT - ( COUNT( * ) ) * + 73 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - ( COUNT ( * ) ) * + 73 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT DISTINCT MIN( + - 1 ) - + + 92 DIV COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT MIN ( + - 1 ) - + + 92 / COUNT ( * )
----
-93

query I rowsort
SELECT ALL - 59 * ( - - 24 )
----
-1416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT ALL + CAST( NULL AS SIGNED ) - 41 * - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + CAST ( NULL AS INTEGER ) - 41 * - + 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8827
SELECT - ( CAST( NULL AS SIGNED ) ) * - 11 + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8827
SELECT - ( CAST ( NULL AS INTEGER ) ) * - 11 + - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL - COUNT( 38 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL - COUNT ( 38 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT DISTINCT - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 47 * 61 AS col1
----
-2867

query I rowsort
SELECT - ( ( - 29 ) ) * 96 AS col0
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT SUM( ALL - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-8832
SELECT SUM ( ALL - 96 )
----
-96

query I rowsort
SELECT ALL - + ( - 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT 2 * COUNT( * ) * 8 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8834
SELECT 2 * COUNT ( * ) * 8 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT - 14 * - 48 - ( + 8 ) + 39 + - CAST( NULL AS SIGNED ) + + + 12 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT - 14 * - 48 - ( + 8 ) + 39 + - CAST ( NULL AS INTEGER ) + + + 12 * 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT - 69 * - COALESCE ( - 39, - - 78 * + MIN( - 96 ) + 54 * 50 + + 40 * 79, 23 * CASE - 90 / + 95 WHEN 64 * + 82 THEN NULL ELSE 18 END ) * 72 AS col2
----
-193752

skipif mysql # not compatible
query I rowsort label-8836
SELECT - 69 * - COALESCE ( - 39, - - 78 * + MIN ( - 96 ) + 54 * 50 + + 40 * 79, 23 * CASE - 90 / + 95 WHEN 64 * + 82 THEN NULL ELSE 18 END ) * 72 AS col2
----
-193752

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT + - COUNT( DISTINCT + 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-8837
SELECT + - COUNT ( DISTINCT + 11 )
----
-1

query I rowsort
SELECT ALL + 77 + ( - 65 )
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8839
SELECT DISTINCT - 19 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT - 19 * + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 36 + - 99 * + 64 + + 68 AS col2
----
-6232

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8841
SELECT - 38 * - 7 + CAST( NULL AS DECIMAL ) - - 95 + MIN( + 18 ) + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT - 38 * - 7 + CAST ( NULL AS REAL ) - - 95 + MIN ( + 18 ) + + 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT 77 DIV - 93 * 1
----
0

skipif mysql # not compatible
query I rowsort label-8842
SELECT 77 / - 93 * 1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT 13 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-8843
SELECT 13 / 73
----
0

query I rowsort
SELECT ALL 17 + + 41 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT 84 + COALESCE ( + 58, + 89 + - 80 + - 68, + 43 + - COALESCE ( - 26, COUNT( * ) ), 29 * - 75 ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-8845
SELECT 84 + COALESCE ( + 58, + 89 + - 80 + - 68, + 43 + - COALESCE ( - 26, COUNT ( * ) ), 29 * - 75 ) AS col1
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT ALL CASE 5 WHEN 8 + + 6 - - 20 / 2 + - 7 + - 7 * - 11 / + 7 * 78 THEN - CASE - 32 WHEN 30 + 88 * + 90 THEN - CAST( NULL AS SIGNED ) * - 1 WHEN + 68 THEN 0 * + 9 END ELSE - 57 END + COUNT( * ) * - 49
----
-106

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL CASE 5 WHEN 8 + + 6 - - 20 / 2 + - 7 + - 7 * - 11 / + 7 * 78 THEN - CASE - 32 WHEN 30 + 88 * + 90 THEN - CAST ( NULL AS INTEGER ) * - 1 WHEN + 68 THEN 0 * + 9 END ELSE - 57 END + COUNT ( * ) * - 49
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8847
SELECT ALL 77 AS col1, 92 * - CAST( NULL AS SIGNED ) AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8847
SELECT ALL 77 AS col1, 92 * - CAST ( NULL AS INTEGER ) AS col2
----
77
NULL

query I rowsort
SELECT DISTINCT 22 + - + 37 * + + 37 AS col1
----
-1347

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL MAX( + 2 ) + - 37 * - 44 * - + 16
----
-26046

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL MAX ( + 2 ) + - 37 * - 44 * - + 16
----
-26046

onlyif mysql # aggregate syntax: 
query II rowsort label-8850
SELECT 82 AS col1, 84 + 83 * 24 + 83 * + + COUNT( * ) * + + 92 * COUNT( * ) - COUNT( * ) col1
----
82
9711

skipif mysql # not compatible
query II rowsort label-8850
SELECT 82 AS col1, 84 + 83 * 24 + 83 * + + COUNT ( * ) * + + 92 * COUNT ( * ) - COUNT ( * ) col1
----
82
9711

onlyif mysql # aggregate syntax: 
query II rowsort label-8851
SELECT COUNT( * ) + - 11 * 94 + 98 AS col0, 57 AS col1
----
-935
57

skipif mysql # not compatible
query II rowsort label-8851
SELECT COUNT ( * ) + - 11 * 94 + 98 AS col0, 57 AS col1
----
-935
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8852
SELECT ALL 43 AS col2, - CAST( NULL AS SIGNED ) * - 72
----
43
NULL

skipif mysql # not compatible
query II rowsort label-8852
SELECT ALL 43 AS col2, - CAST ( NULL AS INTEGER ) * - 72
----
43
NULL

query I rowsort
SELECT DISTINCT 45 * - - 20
----
900

query I rowsort
SELECT ALL NULLIF ( + 52, + 32 ) - - 35 * 3 AS col2
----
157

query I rowsort
SELECT 28 * - + 76
----
-2128

query I rowsort
SELECT ALL 9 * + - 0 * - 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT CASE - 72 WHEN + + AVG ( 70 ) + - MAX( 74 ) THEN + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT CASE - 72 WHEN + + AVG ( 70 ) + - MAX ( 74 ) THEN + 74 END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + - 87, + - 63 ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8859
SELECT COUNT( * ) DIV + 81 - - 51 + - 38 - ( 12 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8859
SELECT COUNT ( * ) / + 81 - - 51 + - 38 - ( 12 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT - 60 - + - CASE WHEN COUNT( * ) IS NOT NULL THEN 34 ELSE NULL END * - 33 * + COALESCE ( - 0, 22 + + NULLIF ( 97, 44 ) * - COUNT( * ) )
----
-60

skipif mysql # not compatible
query I rowsort label-8860
SELECT - 60 - + - CASE WHEN COUNT ( * ) IS NOT NULL THEN 34 ELSE NULL END * - 33 * + COALESCE ( - 0, 22 + + NULLIF ( 97, 44 ) * - COUNT ( * ) )
----
-60

query I rowsort
SELECT - ( 71 ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT + COALESCE ( 96, + 60 ) DIV + - 19 + 60 + - + 50
----
5

skipif mysql # not compatible
query I rowsort label-8862
SELECT + COALESCE ( 96, + 60 ) / + - 19 + 60 + - + 50
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT ALL - + 82 * + + 80 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL - + 82 * + + 80 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 26 + 16 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT + 86 * ( 76 ) / - ( 47 ) + + CAST( NULL AS SIGNED ) + 72 + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT + 86 * ( 76 ) / - ( 47 ) + + CAST ( NULL AS INTEGER ) + 72 + 19 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT + 24 DIV + + 23 + 3 - + - ( 89 ) + - + 47 * + - 82 * + 2 + 11 * + 0 AS col0
----
7801

skipif mysql # not compatible
query I rowsort label-8866
SELECT + 24 / + + 23 + 3 - + - ( 89 ) + - + 47 * + - 82 * + 2 + 11 * + 0 AS col0
----
7801

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL + COUNT( ALL - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + COUNT ( ALL - 43 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT CASE + - 76 WHEN - + 30 + - + COUNT( * ) THEN NULL WHEN 39 THEN NULL WHEN 14 * SUM( 97 ) THEN + 96 ELSE - COUNT( * ) END * + 47 + MIN( - 68 )
----
-115

skipif mysql # not compatible
query I rowsort label-8868
SELECT CASE + - 76 WHEN - + 30 + - + COUNT ( * ) THEN NULL WHEN 39 THEN NULL WHEN 14 * SUM ( 97 ) THEN + 96 ELSE - COUNT ( * ) END * + 47 + MIN ( - 68 )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL 90 * + 33 + + + COUNT( * ) col0
----
2971

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL 90 * + 33 + + + COUNT ( * ) col0
----
2971

query II rowsort
SELECT ALL + 96 AS col2, 70 AS col2
----
96
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8871
SELECT - + 12 * + MAX( + 32 ) AS col0, 89
----
-384
89

skipif mysql # not compatible
query II rowsort label-8871
SELECT - + 12 * + MAX ( + 32 ) AS col0, 89
----
-384
89

query II rowsort
SELECT 85 AS col0, 35
----
85
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT - + CASE 53 WHEN + 64 THEN NULL ELSE - + 72 + - MIN( 17 ) * + + 63 END + 11
----
1154

skipif mysql # not compatible
query I rowsort label-8873
SELECT - + CASE 53 WHEN + 64 THEN NULL ELSE - + 72 + - MIN ( 17 ) * + + 63 END + 11
----
1154

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT DISTINCT - - COUNT( 71 ) * 90
----
90

skipif mysql # not compatible
query I rowsort label-8874
SELECT DISTINCT - - COUNT ( 71 ) * 90
----
90

query I rowsort
SELECT - 90 + 25 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - + 51 * + 73 * + 13 + + COUNT( DISTINCT - + 80 ) AS col1
----
-48398

skipif mysql # not compatible
query I rowsort label-8876
SELECT - + 51 * + 73 * + 13 + + COUNT ( DISTINCT - + 80 ) AS col1
----
-48398

query I rowsort
SELECT + 11 * - 51 + - + 16 AS col1
----
-577

query I rowsort
SELECT - 23 * - ( - + 5 ) + 40 AS col1
----
-75

query I rowsort
SELECT ALL + 62 * 19 + 32 AS col1
----
1210

query I rowsort
SELECT DISTINCT + ( - 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT + + 11 AS col2, - COUNT( * ) + - COUNT( * ) AS col0
----
11
-2

skipif mysql # not compatible
query II rowsort label-8881
SELECT + + 11 AS col2, - COUNT ( * ) + - COUNT ( * ) AS col0
----
11
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT ALL 11 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL 11 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT NULLIF ( + 13, - MIN( - + 43 ) ) col0
----
13

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT NULLIF ( + 13, - MIN ( - + 43 ) ) col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + SUM( ALL + NULLIF ( + - 75, + + NULLIF ( - - 22, - + 44 ) ) ) + - 32 AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + SUM ( ALL + NULLIF ( + - 75, + + NULLIF ( - - 22, - + 44 ) ) ) + - 32 AS col0
----
-107

query I rowsort
SELECT - 63 - 39 * + - 97 AS col2
----
3720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8886
SELECT - 33 * - COALESCE ( 0, 77 * 23 - - - 0 + - - 80 * + + 27 DIV ( + COUNT( ALL + 72 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT - 33 * - COALESCE ( 0, 77 * 23 - - - 0 + - - 80 * + + 27 / ( + COUNT ( ALL + 72 ) ) ) AS col1
----
0

query I rowsort
SELECT + 39 * - 15 AS col0
----
-585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8888
SELECT - 10 - - COUNT( * ) - + - 91 DIV - 2 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8888
SELECT - 10 - - COUNT ( * ) - + - 91 / - 2 AS col2
----
-54

query I rowsort
SELECT ALL + 31 * - 66 AS col0
----
-2046

query I rowsort
SELECT DISTINCT ( + 14 ) AS col2
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-8891
SELECT + 86 - - + 20 AS col0, 72 DIV - + COALESCE ( + + 73, 80 ) - - 97 * + + 20 * + + 39 AS col0
----
106
75660

skipif mysql # not compatible
query II rowsort label-8891
SELECT + 86 - - + 20 AS col0, 72 / - + COALESCE ( + + 73, 80 ) - - 97 * + + 20 * + + 39 AS col0
----
106
75660

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT + 79 * COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-8892
SELECT + 79 * COUNT ( * ) col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT - 50 + - COALESCE ( - - 74, + - 83 + + CAST( - 33 AS SIGNED ), + - 48, - + CASE 75 WHEN + 33 * 51 THEN 50 + COUNT( * ) WHEN 27 THEN - 96 + + 38 END * 55 - - 69 ) AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-8893
SELECT - 50 + - COALESCE ( - - 74, + - 83 + + CAST ( - 33 AS INTEGER ), + - 48, - + CASE 75 WHEN + 33 * 51 THEN 50 + COUNT ( * ) WHEN 27 THEN - 96 + + 38 END * 55 - - 69 ) AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - 26 + + COALESCE ( + + COUNT( - 81 ), - 29 ) * + + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8894
SELECT - 26 + + COALESCE ( + + COUNT ( - 81 ), - 29 ) * + + COUNT ( * ) AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8895
SELECT + 49 - + - 84 * + 45 * 98 + + - CAST( COUNT( * ) AS SIGNED ) + + - 98 * - CASE + ( - 40 ) WHEN 90 THEN - CAST( NULL AS SIGNED ) WHEN + COALESCE ( AVG ( 32 ), + 33, - MIN( ( + 50 ) ) * + 44 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT + 49 - + - 84 * + 45 * 98 + + - CAST ( COUNT ( * ) AS INTEGER ) + + - 98 * - CASE + ( - 40 ) WHEN 90 THEN - CAST ( NULL AS INTEGER ) WHEN + COALESCE ( AVG ( 32 ), + 33, - MIN ( ( + 50 ) ) * + 44 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT + ( SUM( ALL - 92 ) ) * - 95 * - CASE WHEN ( 36 ) IS NULL THEN - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT + ( SUM ( ALL - 92 ) ) * - 95 * - CASE WHEN ( 36 ) IS NULL THEN - 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL 46 * + SUM( ALL + 16 )
----
736

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL 46 * + SUM ( ALL + 16 )
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT DISTINCT + + CASE - COUNT( * ) WHEN + 39 THEN NULL ELSE 93 END
----
93

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT + + CASE - COUNT ( * ) WHEN + 39 THEN NULL ELSE 93 END
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8899
SELECT DISTINCT + - 39 DIV - COUNT( * ) + - 58 * COUNT( * ) * - - 70
----
-4021

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT + - 39 / - COUNT ( * ) + - 58 * COUNT ( * ) * - - 70
----
-4021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8900
SELECT DISTINCT COALESCE ( 59, - + 11 * - 79 * + COUNT( * ) + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * + 63 ) DIV - 24 + COUNT( * ) * + 84 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT COALESCE ( 59, - + 11 * - 79 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + 63 ) / - 24 + COUNT ( * ) * + 84 AS col0
----
82

query I rowsort
SELECT ALL + NULLIF ( + - 58, 21 * 80 + - - 79 )
----
-58

query II rowsort
SELECT - NULLIF ( - 22, + 70 + + + 93 ), + 36 AS col0
----
22
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT DISTINCT + 51 * 92 + - - 98 + - 18 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT + 51 * 92 + - - 98 + - 18 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8904
SELECT ALL ( - 3 ) * + - COALESCE ( ( + 3 ), + - COUNT( * ) + + 37 DIV + - 38 + - 32 - + 23, + 73 * + 70 ) + + ( 83 ) + NULLIF ( 82, - CAST( NULL AS SIGNED ) )
----
174

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL ( - 3 ) * + - COALESCE ( ( + 3 ), + - COUNT ( * ) + + 37 / + - 38 + - 32 - + 23, + 73 * + 70 ) + + ( 83 ) + NULLIF ( 82, - CAST ( NULL AS INTEGER ) )
----
174

query I rowsort
SELECT + 45 * 29 * + - 12
----
-15660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT ALL - COALESCE ( - ( 24 ), - 11 * 80, - CASE + 60 WHEN - CAST( 95 AS SIGNED ) THEN NULL ELSE - 58 END ) * - 18 AS col0
----
-432

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL - COALESCE ( - ( 24 ), - 11 * 80, - CASE + 60 WHEN - CAST ( 95 AS INTEGER ) THEN NULL ELSE - 58 END ) * - 18 AS col0
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT NULLIF ( + - 33, - COUNT( * ) )
----
-33

skipif mysql # not compatible
query I rowsort label-8907
SELECT NULLIF ( + - 33, - COUNT ( * ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT COUNT( * ) * + 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT COUNT ( * ) * + 46 AS col1
----
46

query I rowsort
SELECT - 70 - - 66 + CASE WHEN NOT ( NOT NULL = NULL ) THEN + + 3 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL + SUM( ALL ( 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + SUM ( ALL ( 93 ) )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT ALL - 8 * 58 * + 97 * + + COUNT( * ) * - 7 col2, NULLIF ( - 56, + COUNT( + 81 ) ) + + - 44 * - 28 AS col0
----
315056
1176

skipif mysql # not compatible
query II rowsort label-8911
SELECT ALL - 8 * 58 * + 97 * + + COUNT ( * ) * - 7 col2, NULLIF ( - 56, + COUNT ( + 81 ) ) + + - 44 * - 28 AS col0
----
315056
1176

query I rowsort
SELECT + 40 + 66 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT 35 * + 96 - ( + COUNT( * ) ) AS col2
----
3359

skipif mysql # not compatible
query I rowsort label-8913
SELECT 35 * + 96 - ( + COUNT ( * ) ) AS col2
----
3359

query I rowsort
SELECT - 16 + + 11 col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT - COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT - COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8916
SELECT ALL - 9 * + 29 / + + 30 - ( + + CAST( NULL AS SIGNED ) ), 67 * + 68 AS col2
----
NULL
4556

skipif mysql # not compatible
query II rowsort label-8916
SELECT ALL - 9 * + 29 / + + 30 - ( + + CAST ( NULL AS INTEGER ) ), 67 * + 68 AS col2
----
NULL
4556

query I rowsort
SELECT - 10 + + - 9 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8918
SELECT ALL - 63 * + SUM( 27 ) col1, + 36 AS col0
----
-1701
36

skipif mysql # not compatible
query II rowsort label-8918
SELECT ALL - 63 * + SUM ( 27 ) col1, + 36 AS col0
----
-1701
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8919
SELECT 37 + + ( + 59 ) + + 0 + 36 AS col2, CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
132
1

skipif mysql # not compatible
query II rowsort label-8919
SELECT 37 + + ( + 59 ) + + 0 + 36 AS col2, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
132
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT 44 * - MAX( DISTINCT - - 30 )
----
-1320

skipif mysql # not compatible
query I rowsort label-8920
SELECT 44 * - MAX ( DISTINCT - - 30 )
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT 47 + - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-8921
SELECT 47 + - + COUNT ( * )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8922
SELECT 24 + 97 + 39 * - COALESCE ( - 65, 31 DIV - 21 + - 15 DIV + 23 + + + 89, - CASE AVG ( + 28 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN ( 99 ) THEN - 62 * + 14 END ) - 92 DIV + SUM( 94 ) * + 63 AS col0
----
2656

skipif mysql # not compatible
query I rowsort label-8922
SELECT 24 + 97 + 39 * - COALESCE ( - 65, 31 / - 21 + - 15 / + 23 + + + 89, - CASE AVG ( + 28 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN ( 99 ) THEN - 62 * + 14 END ) - 92 / + SUM ( 94 ) * + 63 AS col0
----
2656

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT 34 DIV + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT 34 / + 37 AS col0
----
0

query I rowsort
SELECT DISTINCT + 28 + + - 89 * - ( + - 48 ) AS col2
----
-4244

onlyif mysql # DIV for integer division: 
query III rowsort label-8925
SELECT ALL - 42 + - - 6 + 91 + + 57 DIV 65, - 57 * 25 + + + 61 AS col2, - - 40 AS col1
----
55
-1364
40

skipif mysql # not compatible
query III rowsort label-8925
SELECT ALL - 42 + - - 6 + 91 + + 57 / 65, - 57 * 25 + + + 61 AS col2, - - 40 AS col1
----
55
-1364
40

query I rowsort
SELECT ALL + 25 + 51
----
76

query I rowsort
SELECT - NULLIF ( - - 33, + + 18 ) + 18 AS col1
----
-15

query I rowsort
SELECT DISTINCT + - 98 + - + 97 - + - 31 * 36 col2
----
921

query I rowsort
SELECT 31 * + 9 AS col2
----
279

query II rowsort
SELECT 46 * + 18 * + - 63 * - + 36 * 67 + - 13, 40 AS col0
----
125819555
40

query I rowsort
SELECT - + 90 * - + 91 + + 52 AS col0
----
8242

onlyif mysql # DIV for integer division: 
query II rowsort label-8932
SELECT ( + 6 ) DIV 24 - 29 * 49 AS col0, 79
----
-1421
79

skipif mysql # not compatible
query II rowsort label-8932
SELECT ( + 6 ) / 24 - 29 * 49 AS col0, 79
----
-1421
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT AVG ( + 51 ) * - + 65 + + CASE + CASE - 31 WHEN - 84 THEN NULL ELSE 53 END WHEN 69 * - ( + ( COUNT( * ) ) ) THEN 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT AVG ( + 51 ) * - + 65 + + CASE + CASE - 31 WHEN - 84 THEN NULL ELSE 53 END WHEN 69 * - ( + ( COUNT ( * ) ) ) THEN 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT - 85 AS col1, COUNT( * ) + - 69
----
-85
-68

skipif mysql # not compatible
query II rowsort label-8934
SELECT - 85 AS col1, COUNT ( * ) + - 69
----
-85
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT - 31 * MAX( DISTINCT - CASE - + 10 WHEN + 17 THEN NULL ELSE - 98 END ) + 53 col1
----
-2985

skipif mysql # not compatible
query I rowsort label-8935
SELECT - 31 * MAX ( DISTINCT - CASE - + 10 WHEN + 17 THEN NULL ELSE - 98 END ) + 53 col1
----
-2985

query I rowsort
SELECT ALL - 99 + + 30 + 49
----
-20

query I rowsort
SELECT - NULLIF ( 22, + 79 * + 13 )
----
-22

query I rowsort
SELECT + 25 + + + 93 AS col0
----
118

query I rowsort
SELECT + - NULLIF ( - 73, - 71 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT ALL - 36 AS col1, - COUNT( * )
----
-36
-1

skipif mysql # not compatible
query II rowsort label-8940
SELECT ALL - 36 AS col1, - COUNT ( * )
----
-36
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT COUNT( * ) * 57 + - 67 + + - 35
----
-45

skipif mysql # not compatible
query I rowsort label-8941
SELECT COUNT ( * ) * 57 + - 67 + + - 35
----
-45

query I rowsort
SELECT ALL 8 - + 42 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ALL 91 - - 67 - - - 34 - - CASE - 25 WHEN + 55 * - + 87 * + + 58 / + 92 / 36 * COUNT( * ) THEN - COUNT( * ) WHEN - COALESCE ( + 96, CASE - 91 WHEN - 59 THEN NULL WHEN 14 - + 64 THEN 14 WHEN - 88 * + 43 - 45 THEN NULL END ) THEN NULL END * + 0 * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL 91 - - 67 - - - 34 - - CASE - 25 WHEN + 55 * - + 87 * + + 58 / + 92 / 36 * COUNT ( * ) THEN - COUNT ( * ) WHEN - COALESCE ( + 96, CASE - 91 WHEN - 59 THEN NULL WHEN 14 - + 64 THEN 14 WHEN - 88 * + 43 - 45 THEN NULL END ) THEN NULL END * + 0 * 10
----
NULL

query II rowsort
SELECT 54, 94 AS col0
----
54
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT 19 + 24 + + + 47 * + CASE + - 63 WHEN - 85 THEN - - 76 END * 95 - + + COUNT( * ) * - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT 19 + 24 + + + 47 * + CASE + - 63 WHEN - 85 THEN - - 76 END * 95 - + + COUNT ( * ) * - 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8946
SELECT DISTINCT - 61 AS col2, COUNT( * ) + + 7
----
-61
8

skipif mysql # not compatible
query II rowsort label-8946
SELECT DISTINCT - 61 AS col2, COUNT ( * ) + + 7
----
-61
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT 40 * + - COALESCE ( + COALESCE ( + + 8, + + 96, - 19 ), - 23 * + 81 * - 96, + ( + 74 ) ) + 3 DIV 39 AS col1
----
-320

skipif mysql # not compatible
query I rowsort label-8947
SELECT 40 * + - COALESCE ( + COALESCE ( + + 8, + + 96, - 19 ), - 23 * + 81 * - 96, + ( + 74 ) ) + 3 / 39 AS col1
----
-320

query I rowsort
SELECT DISTINCT ( + + 87 ) * 94 * + + 90 + 3
----
736023

query II rowsort
SELECT 84 AS col0, 73 AS col2
----
84
73

query I rowsort
SELECT DISTINCT + 31 * COALESCE ( - 72, - + CASE 63 WHEN + 76 THEN 68 END )
----
-2232

query I rowsort
SELECT 37 * + + 15 AS col2
----
555

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT 44 DIV + + 75 * 53
----
0

skipif mysql # not compatible
query I rowsort label-8952
SELECT 44 / + + 75 * 53
----
0

query I rowsort
SELECT ALL - 14 + + + 17
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT 27 - + 93 + 32 + + COUNT( * ) + + CASE + 96 WHEN - + 28 THEN - 20 * - + 65 ELSE 26 END * 91 DIV + 32 col0
----
40

skipif mysql # not compatible
query I rowsort label-8954
SELECT 27 - + 93 + 32 + + COUNT ( * ) + + CASE + 96 WHEN - + 28 THEN - 20 * - + 65 ELSE 26 END * 91 / + 32 col0
----
40

query II rowsort
SELECT - 6, + 81 AS col0
----
-6
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL 85 + - 85 + ( + - MIN( - 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL 85 + - 85 + ( + - MIN ( - 61 ) )
----
61

query I rowsort
SELECT ALL + 96 + - 89 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT + 97 - ( - COALESCE ( - COUNT( * ), 29 + - + 34 ) ) + - MAX( - 47 ) + + 83 * + 95 AS col1
----
8028

skipif mysql # not compatible
query I rowsort label-8958
SELECT + 97 - ( - COALESCE ( - COUNT ( * ), 29 + - + 34 ) ) + - MAX ( - 47 ) + + 83 * + 95 AS col1
----
8028

query I rowsort
SELECT DISTINCT - + 25 + - + 41 * - 43
----
1738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8960
SELECT DISTINCT + ( - - COUNT( * ) ) DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + ( - - COUNT ( * ) ) / 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT - 64 + + 34 AS col2, 19 * - COALESCE ( - - 0, - + 30, COALESCE ( + - COUNT( * ), - COUNT( * ) ) ) + - COUNT( * ) - 80 * - MIN( ALL ( NULLIF ( - NULLIF ( - 69, - 12 ), 88 ) ) )
----
-30
5519

skipif mysql # not compatible
query II rowsort label-8961
SELECT - 64 + + 34 AS col2, 19 * - COALESCE ( - - 0, - + 30, COALESCE ( + - COUNT ( * ), - COUNT ( * ) ) ) + - COUNT ( * ) - 80 * - MIN ( ALL ( NULLIF ( - NULLIF ( - 69, - 12 ), 88 ) ) )
----
-30
5519

query I rowsort
SELECT 22 + + 99 AS col0
----
121

query I rowsort
SELECT DISTINCT + 3 + + 58
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8964
SELECT - 41, + COUNT( DISTINCT + - 72 ) DIV - 92 AS col0
----
-41
0

skipif mysql # not compatible
query II rowsort label-8964
SELECT - 41, + COUNT ( DISTINCT + - 72 ) / - 92 AS col0
----
-41
0

query II rowsort
SELECT 91 AS col1, + 99 AS col0
----
91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT SUM( ALL - + 59 ) - 91 + + 49 * - 62 AS col0
----
-3188

skipif mysql # not compatible
query I rowsort label-8966
SELECT SUM ( ALL - + 59 ) - 91 + + 49 * - 62 AS col0
----
-3188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT DISTINCT 41 * - 81 * + - 29 * - - 11 + 91 + + 85 * + + CAST( + 85 AS SIGNED ) - - - 44 AS col2
----
1066671

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT 41 * - 81 * + - 29 * - - 11 + 91 + + 85 * + + CAST ( + 85 AS INTEGER ) - - - 44 AS col2
----
1066671

query I rowsort
SELECT + 37 * - - 69 + + 72 * - + 17 * - 94 - 21
----
117588

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT ALL + + 61 * + + 39 + - 19 + 72 - + - 21 * COUNT( * ) AS col1, COUNT( * ) AS col0
----
2453
1

skipif mysql # not compatible
query II rowsort label-8969
SELECT ALL + + 61 * + + 39 + - 19 + 72 - + - 21 * COUNT ( * ) AS col1, COUNT ( * ) AS col0
----
2453
1

query I rowsort
SELECT ALL - - ( + ( - 17 ) )
----
-17

query I rowsort
SELECT ALL - CASE 4 WHEN + 89 THEN + + 89 * + ( 80 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT + 8 DIV - 80 + 15 DIV - 87 + + 54 + + - 83 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8972
SELECT + 8 / - 80 + 15 / - 87 + + 54 + + - 83 AS col1
----
-29

query I rowsort
SELECT 71 * - + 12 + + - 73 + 86 AS col0
----
-839

query II rowsort
SELECT 46, - 53 * + 13 col1
----
46
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL + SUM( + ( + 29 ) ) * + SUM( - 0 ) - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + SUM ( + ( + 29 ) ) * + SUM ( - 0 ) - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT SUM( + - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-8976
SELECT SUM ( + - 72 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8977
SELECT - 15 * 22 - - - 79 col1, CAST( NULL AS SIGNED ) AS col2
----
-409
NULL

skipif mysql # not compatible
query II rowsort label-8977
SELECT - 15 * 22 - - - 79 col1, CAST ( NULL AS INTEGER ) AS col2
----
-409
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) * + - COALESCE ( 37, + - 38, + 77 ) * + + 54 + - 97 + + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) * + - COALESCE ( 37, + - 38, + 77 ) * + + 54 + - 97 + + 67 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 74, 90 ) + 29 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + ( - ( 95 ) ) * COUNT( * ) * - - 79
----
-7505

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + ( - ( 95 ) ) * COUNT ( * ) * - - 79
----
-7505

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT ALL + MIN( - + 26 ) AS col2, + 19 + - - 84 + + 96 + + - 14 * COUNT( * ) * + 82 + + + ( - 75 )
----
-26
-1024

skipif mysql # not compatible
query II rowsort label-8981
SELECT ALL + MIN ( - + 26 ) AS col2, + 19 + - - 84 + + 96 + + - 14 * COUNT ( * ) * + 82 + + + ( - 75 )
----
-26
-1024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT + 63 + + CAST( - ( - - 86 ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-8982
SELECT + 63 + + CAST ( - ( - - 86 ) AS INTEGER )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT ALL CAST( NULL AS SIGNED ) + 57 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL CAST ( NULL AS INTEGER ) + 57 * - 69
----
NULL

query I rowsort
SELECT 9 * - 38 - - ( + + 13 ) + 63 * COALESCE ( - ( - 57 ), - 63 ) + + + 47 AS col0
----
3309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT + 3 + 40 + - - 47 + + 29 * - COALESCE ( - 26, - - CASE + CAST( NULL AS SIGNED ) WHEN + + 0 THEN NULL WHEN 31 THEN + 93 ELSE NULL END - - 23, + 39 )
----
844

skipif mysql # not compatible
query I rowsort label-8985
SELECT + 3 + 40 + - - 47 + + 29 * - COALESCE ( - 26, - - CASE + CAST ( NULL AS INTEGER ) WHEN + + 0 THEN NULL WHEN 31 THEN + 93 ELSE NULL END - - 23, + 39 )
----
844

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT - MIN( ALL + 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8986
SELECT - MIN ( ALL + 88 ) AS col0
----
-88

query I rowsort
SELECT DISTINCT 44 + - 39 AS col0
----
5

query I rowsort
SELECT ALL - 83 + - - 27
----
-56

query I rowsort
SELECT + 73 + - + 63 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + MIN( DISTINCT 16 ) + COUNT( * ) * + + 91 col2
----
107

skipif mysql # not compatible
query I rowsort label-8990
SELECT + MIN ( DISTINCT 16 ) + COUNT ( * ) * + + 91 col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT + CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL ELSE + - 82 END
----
-82

skipif mysql # not compatible
query I rowsort label-8991
SELECT + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE + - 82 END
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL + NULLIF ( - CASE - 79 WHEN SUM( - 35 ) * - - 95 + - - 80 + - 70 THEN NULL ELSE 4 END, + - 11 ) * + 7
----
-28

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + NULLIF ( - CASE - 79 WHEN SUM ( - 35 ) * - - 95 + - - 80 + - 70 THEN NULL ELSE 4 END, + - 11 ) * + 7
----
-28

query I rowsort
SELECT + 57 + - - 54 - 12
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + + COUNT( - 47 ) * + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-8994
SELECT + + COUNT ( - 47 ) * + - 70
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT - - 4 + + ( + 28 ) DIV + 49
----
4

skipif mysql # not compatible
query I rowsort label-8995
SELECT - - 4 + + ( + 28 ) / + 49
----
4

query I rowsort
SELECT DISTINCT - ( + 83 ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8997
SELECT - - 2 + - 21 * - 90 + + + ( COUNT( * ) ), + 71 + - - CAST( NULL AS SIGNED ) AS col2
----
1893
NULL

skipif mysql # not compatible
query II rowsort label-8997
SELECT - - 2 + - 21 * - 90 + + + ( COUNT ( * ) ), + 71 + - - CAST ( NULL AS INTEGER ) AS col2
----
1893
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT + - COUNT( * ) - 54 + + 12 * + 51
----
557

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT + - COUNT ( * ) - 54 + + 12 * + 51
----
557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT - + 27 + - CAST( COUNT( * ) AS SIGNED ) + + 3 * + - 24 * 22 + + - 41 * 0
----
-1612

skipif mysql # not compatible
query I rowsort label-8999
SELECT - + 27 + - CAST ( COUNT ( * ) AS INTEGER ) + + 3 * + - 24 * 22 + + - 41 * 0
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL - 47 * - ( 86 ) - - - MAX( - - 60 ) * - + COUNT( * ) col2
----
4102

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL - 47 * - ( 86 ) - - - MAX ( - - 60 ) * - + COUNT ( * ) col2
----
4102

onlyif mysql # aggregate syntax: 
query II rowsort label-9001
SELECT + MIN( DISTINCT - 47 ) * - 72 + 23 * + 64, 87 * - + COUNT( * ) * - COUNT( * ) * - 88 + - - COUNT( * ) AS col2
----
4856
-7655

skipif mysql # not compatible
query II rowsort label-9001
SELECT + MIN ( DISTINCT - 47 ) * - 72 + 23 * + 64, 87 * - + COUNT ( * ) * - COUNT ( * ) * - 88 + - - COUNT ( * ) AS col2
----
4856
-7655

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9002
SELECT + ( + 86 ) DIV - 31 - - CAST( + 73 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9002
SELECT + ( + 86 ) / - 31 - - CAST ( + 73 AS INTEGER ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - + CASE 27 WHEN - COUNT( * ) THEN - 84 END * + - 8 + + - ( - + 35 ) * - COUNT( * ) + + + COUNT( DISTINCT - - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT - + CASE 27 WHEN - COUNT ( * ) THEN - 84 END * + - 8 + + - ( - + 35 ) * - COUNT ( * ) + + + COUNT ( DISTINCT - - 53 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9004
SELECT - - 3 DIV 48, - NULLIF ( COUNT( * ), - 8 ) + - 33 + + COUNT( * ) AS col1
----
0
-33

skipif mysql # not compatible
query II rowsort label-9004
SELECT - - 3 / 48, - NULLIF ( COUNT ( * ), - 8 ) + - 33 + + COUNT ( * ) AS col1
----
0
-33

query I rowsort
SELECT - COALESCE ( 59, - + COALESCE ( + 61, + + 60 ), + - 46 ) * + - 71
----
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL + ( + NULLIF ( + 53, + + 61 / - + COALESCE ( + 55, - + 73, + ( COUNT( * ) ) ) ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + ( + NULLIF ( + 53, + + 61 / - + COALESCE ( + 55, - + 73, + ( COUNT ( * ) ) ) ) ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9007
SELECT - 11 + + ( + 98 ) AS col1, 66 * ( - 28 ) + - - ( - + CASE + - 64 WHEN + - MAX( ALL 83 ) THEN COUNT( * ) WHEN 42 * ( 54 * 0 ) THEN COUNT( * ) / 69 + - ( + ( + 5 ) ) / - COUNT( 20 ) END ) AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-9007
SELECT - 11 + + ( + 98 ) AS col1, 66 * ( - 28 ) + - - ( - + CASE + - 64 WHEN + - MAX ( ALL 83 ) THEN COUNT ( * ) WHEN 42 * ( 54 * 0 ) THEN COUNT ( * ) / 69 + - ( + ( + 5 ) ) / - COUNT ( 20 ) END ) AS col2
----
87
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT DISTINCT 99 DIV 43 DIV 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT 99 / 43 / 46 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9009
SELECT + MAX( ALL + CAST( 70 AS SIGNED ) ), + CASE CASE - + CASE - + COUNT( * ) WHEN - 26 THEN + - 23 ELSE - 21 + - COUNT( * ) END WHEN - 16 * - + ( 73 ) + 89 THEN AVG ( + 41 ) ELSE CASE 26 WHEN NULLIF ( 66, - 16 ) THEN 23 + - 0 * 31 END * + 29 - - 10 * - 30 END WHEN + 48 + 69 THEN NULL WHEN - 48 THEN + 91 + 67 END AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-9009
SELECT + MAX ( ALL + CAST ( 70 AS INTEGER ) ), + CASE CASE - + CASE - + COUNT ( * ) WHEN - 26 THEN + - 23 ELSE - 21 + - COUNT ( * ) END WHEN - 16 * - + ( 73 ) + 89 THEN AVG ( + 41 ) ELSE CASE 26 WHEN NULLIF ( 66, - 16 ) THEN 23 + - 0 * 31 END * + 29 - - 10 * - 30 END WHEN + 48 + 69 THEN NULL WHEN - 48 THEN + 91 + 67 END AS col0
----
70
NULL

query II rowsort
SELECT ALL + 8 AS col1, + 57
----
8
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL - 1 * COUNT( * ) + + + 36 + - COALESCE ( - - 77, + - COUNT( * ) + + - 67 + + 38 ) * - 58 AS col1
----
4501

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL - 1 * COUNT ( * ) + + + 36 + - COALESCE ( - - 77, + - COUNT ( * ) + + - 67 + + 38 ) * - 58 AS col1
----
4501

query I rowsort
SELECT - 51 * + 11
----
-561

query I rowsort
SELECT - 27 * - 15 AS col1
----
405

query I rowsort
SELECT + ( + ( - + 83 ) ) + + - 54
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT ALL - 84 * MIN( + 98 ) + - CASE - 7 WHEN - + 78 + + 30 * + - 58 / - 6 THEN 9 - + 17 ELSE NULL END + - ( - - COUNT( * ) ) * + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - 84 * MIN ( + 98 ) + - CASE - 7 WHEN - + 78 + + 30 * + - 58 / - 6 THEN 9 - + 17 ELSE NULL END + - ( - - COUNT ( * ) ) * + 32 AS col0
----
NULL

query I rowsort
SELECT 14 * 86 + - + 47
----
1157

query II rowsort
SELECT NULLIF ( 39, 40 ) AS col2, + 71 - - 18 col2
----
39
89

query I rowsort
SELECT NULLIF ( 90, - - 27 + - + 64 )
----
90

query I rowsort
SELECT ALL 34 * - 91 + - + 7
----
-3101

query I rowsort
SELECT - 97 * - 25 AS col1
----
2425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT ALL - 42 * - + CAST( + + 63 AS SIGNED ) AS col2
----
2646

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL - 42 * - + CAST ( + + 63 AS INTEGER ) AS col2
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL CASE + - 51 WHEN COUNT( * ) THEN - 84 ELSE NULL END * - - 65 + - 63 / - COALESCE ( COUNT( * ), CASE + 71 WHEN + - 68 * - 87 THEN NULL ELSE - 60 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL CASE + - 51 WHEN COUNT ( * ) THEN - 84 ELSE NULL END * - - 65 + - 63 / - COALESCE ( COUNT ( * ), CASE + 71 WHEN + - 68 * - 87 THEN NULL ELSE - 60 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT - - COUNT( ALL - - 64 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9023
SELECT - - COUNT ( ALL - - 64 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL ( - - 66 ) * - 21 + + COUNT( * )
----
-1385

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL ( - - 66 ) * - 21 + + COUNT ( * )
----
-1385

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - + 88 - + 15 + SUM( DISTINCT - 80 ) * + + 28 AS col2
----
-2343

skipif mysql # not compatible
query I rowsort label-9025
SELECT - + 88 - + 15 + SUM ( DISTINCT - 80 ) * + + 28 AS col2
----
-2343

query I rowsort
SELECT - - 14 + - - 27 * 35 - - 32 + - + 10 * 75
----
241

query II rowsort
SELECT ALL 26 AS col0, + 1
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL 12 * + COALESCE ( 64, 82 ) + - 57 + - 71 + - - 25 - - COUNT( DISTINCT - 16 ) AS col0
----
666

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL 12 * + COALESCE ( 64, 82 ) + - 57 + - 71 + - - 25 - - COUNT ( DISTINCT - 16 ) AS col0
----
666

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT + MIN( 77 ) - - 79, COALESCE ( + 3, CASE 31 WHEN - + 49 / - COUNT( 86 ) + - - 6 - + - 3 THEN - - 44 + - 63 ELSE NULL END ) AS col1
----
156
3

skipif mysql # not compatible
query II rowsort label-9029
SELECT + MIN ( 77 ) - - 79, COALESCE ( + 3, CASE 31 WHEN - + 49 / - COUNT ( 86 ) + - - 6 - + - 3 THEN - - 44 + - 63 ELSE NULL END ) AS col1
----
156
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9030
SELECT ALL + NULLIF ( + ( + ( + MIN( + 12 ) ) ), - 42 * 84 + 14 ) DIV + CAST( - CAST( - + MAX( ALL 77 ) AS SIGNED ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL + NULLIF ( + ( + ( + MIN ( + 12 ) ) ), - 42 * 84 + 14 ) / + CAST ( - CAST ( - + MAX ( ALL 77 ) AS INTEGER ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + - 73 - 34 + 79 * + COUNT( * ) + - 90 + 69
----
-49

skipif mysql # not compatible
query I rowsort label-9031
SELECT + - 73 - 34 + 79 * + COUNT ( * ) + - 90 + 69
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + + 98 + - - 90 * + - 81 + 96 + 23 * - + ( + - 16 ) + 14 * + + COUNT( * ) * 24 + - 37
----
-6429

skipif mysql # not compatible
query I rowsort label-9032
SELECT + + 98 + - - 90 * + - 81 + 96 + 23 * - + ( + - 16 ) + 14 * + + COUNT ( * ) * 24 + - 37
----
-6429

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT + + 87 DIV + - 43 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9033
SELECT + + 87 / + - 43 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT + 57 * - CASE - ( 51 ) WHEN 21 + + 16 THEN NULL WHEN MIN( 90 ) + + 95 THEN NULL WHEN + SUM( DISTINCT - ( + 91 ) ) * 69 * + 71 THEN 41 * + 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT + 57 * - CASE - ( 51 ) WHEN 21 + + 16 THEN NULL WHEN MIN ( 90 ) + + 95 THEN NULL WHEN + SUM ( DISTINCT - ( + 91 ) ) * 69 * + 71 THEN 41 * + 86 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT + - COALESCE ( + + 56, + 70 + + + 34, + 3 * - 13 + + COUNT( * ) * + 49, + 45 * - 94 ) + - - 9 * + COUNT( * ) * - COUNT( * ) * COALESCE ( 97, 60 * 50 )
----
-929

skipif mysql # not compatible
query I rowsort label-9035
SELECT + - COALESCE ( + + 56, + 70 + + + 34, + 3 * - 13 + + COUNT ( * ) * + 49, + 45 * - 94 ) + - - 9 * + COUNT ( * ) * - COUNT ( * ) * COALESCE ( 97, 60 * 50 )
----
-929

query I rowsort
SELECT - 32 * + 97
----
-3104

query II rowsort
SELECT - 60, 81 AS col0
----
-60
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT - ( - 90 ) - - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9038
SELECT - ( - 90 ) - - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9039
SELECT DISTINCT + 28, 61 + - COUNT( * ) * - + 38 * 85 AS col0
----
28
3291

skipif mysql # not compatible
query II rowsort label-9039
SELECT DISTINCT + 28, 61 + - COUNT ( * ) * - + 38 * 85 AS col0
----
28
3291

query II rowsort
SELECT - 59 - + 77 * + 62, - 68 AS col1
----
-4833
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT + 98 * - 94 / - + 54 + + CASE - - COUNT( * ) WHEN 27 THEN - 65 WHEN - + 85 THEN - 55 ELSE NULL END * + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT + 98 * - 94 / - + 54 + + CASE - - COUNT ( * ) WHEN 27 THEN - 65 WHEN - + 85 THEN - 55 ELSE NULL END * + + 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9042
SELECT ALL - 61 DIV + 43 + + - 2 * + + 31 + - 49 + + + CASE + MIN( DISTINCT 79 ) WHEN - 80 THEN NULL ELSE - CAST( 60 AS SIGNED ) END + + 32 - - - 36
----
-176

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL - 61 / + 43 + + - 2 * + + 31 + - 49 + + + CASE + MIN ( DISTINCT 79 ) WHEN - 80 THEN NULL ELSE - CAST ( 60 AS INTEGER ) END + + 32 - - - 36
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL + SUM( ALL + ( + 98 ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + SUM ( ALL + ( + 98 ) ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL - 18 * + - NULLIF ( - - NULLIF ( - 68, 89 ), ( 17 ) + - 91 - - - CASE - ( + COUNT( * ) ) WHEN 69 THEN - COUNT( * ) + + ( 67 ) ELSE 71 END ) * MAX( 2 ) AS col0
----
-2448

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL - 18 * + - NULLIF ( - - NULLIF ( - 68, 89 ), ( 17 ) + - 91 - - - CASE - ( + COUNT ( * ) ) WHEN 69 THEN - COUNT ( * ) + + ( 67 ) ELSE 71 END ) * MAX ( 2 ) AS col0
----
-2448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT 38 * + + CAST( + 40 AS SIGNED )
----
1520

skipif mysql # not compatible
query I rowsort label-9045
SELECT 38 * + + CAST ( + 40 AS INTEGER )
----
1520

query I rowsort
SELECT ALL 69 + 88 col1
----
157

query I rowsort
SELECT ( + - 54 ) + - 13 + + 47 + 69
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT COUNT( * ) + + ( 42 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9048
SELECT COUNT ( * ) + + ( 42 ) AS col1
----
43

query I rowsort
SELECT 63 * - 50 AS col1
----
-3150

query I rowsort
SELECT ALL - ( - 98 ) col2
----
98

query I rowsort
SELECT DISTINCT - 0 + - + 54 * + 48
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT - 68 * - 42 - + MIN( 57 ) AS col0
----
2799

skipif mysql # not compatible
query I rowsort label-9052
SELECT - 68 * - 42 - + MIN ( 57 ) AS col0
----
2799

query I rowsort
SELECT ALL - 83 + + + 28 + + 90
----
35

query I rowsort
SELECT ALL - 10 * + 80 AS col1
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL + ( - 85 ) * - 94 * - + ( + MIN( DISTINCT + 72 ) )
----
-575280

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + ( - 85 ) * - 94 * - + ( + MIN ( DISTINCT + 72 ) )
----
-575280

onlyif mysql # DIV for integer division: 
query I rowsort label-9056
SELECT ALL + 56 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + 56 / - 90 AS col2
----
0

query II rowsort
SELECT 72 + + - 0 AS col0, 79 - + 85 - 96 AS col2
----
72
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL + 83 - + 23 * COUNT( * ) * - 12
----
359

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL + 83 - + 23 * COUNT ( * ) * - 12
----
359

query I rowsort
SELECT 78 * - - 1 * ( + 23 ) AS col2
----
1794

query I rowsort
SELECT 52 + - 66 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT COUNT( * ) * + 96 - - 31
----
127

skipif mysql # not compatible
query I rowsort label-9061
SELECT COUNT ( * ) * + 96 - - 31
----
127

query I rowsort
SELECT + 97 * - 7 - 62
----
-741

query II rowsort
SELECT 90 + + 47 AS col2, + 83 AS col1
----
137
83

query I rowsort
SELECT DISTINCT + - 47 - 81
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + NULLIF ( - 64, 72 * 50 - + + 48 + - COUNT( * ) ) * - 39 + - 93 * + 93
----
-6153

skipif mysql # not compatible
query I rowsort label-9065
SELECT + NULLIF ( - 64, 72 * 50 - + + 48 + - COUNT ( * ) ) * - 39 + - 93 * + 93
----
-6153

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT - COUNT( * ) * - 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT - COUNT ( * ) * - 8 AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9067
SELECT CASE - - 95 WHEN 70 THEN NULL WHEN + ( - COALESCE ( + 24, - 95 ) ) + - 23 THEN CAST( NULL AS SIGNED ) END + 27 * COUNT( * ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT CASE - - 95 WHEN 70 THEN NULL WHEN + ( - COALESCE ( + 24, - 95 ) ) + - 23 THEN CAST ( NULL AS INTEGER ) END + 27 * COUNT ( * ) + + 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9068
SELECT 0 * + + MIN( ALL + - CAST( NULL AS SIGNED ) ) * COUNT( * ) * - - 69 * - 36 + - 95 - + CASE + + 81 WHEN + - 68 THEN 85 ELSE + 58 END + 79 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT 0 * + + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * - - 69 * - 36 + - 95 - + CASE + + 81 WHEN + - 68 THEN 85 ELSE + 58 END + 79 * - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT DISTINCT - 80 * - - ( COUNT( * ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT - 80 * - - ( COUNT ( * ) ) AS col0
----
-80

query I rowsort
SELECT DISTINCT - ( - 78 ) col1
----
78

query I rowsort
SELECT 79 + + ( + 46 ) AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + 25 * - 54 * - - COUNT( * ) - - COUNT( * ) col0
----
-1349

skipif mysql # not compatible
query I rowsort label-9072
SELECT + 25 * - 54 * - - COUNT ( * ) - - COUNT ( * ) col0
----
-1349

query I rowsort
SELECT 38 + 10 AS col0
----
48

query I rowsort
SELECT ALL + 39 + + 90 AS col0
----
129

query I rowsort
SELECT - 91 + - + 54
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - - COALESCE ( - + 64, 5 - - 84 * + + COUNT( * ) )
----
-64

skipif mysql # not compatible
query I rowsort label-9076
SELECT - - COALESCE ( - + 64, 5 - - 84 * + + COUNT ( * ) )
----
-64

query II rowsort
SELECT ALL + ( - 46 ), 67 - 67 col1
----
-46
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT DISTINCT + COALESCE ( + - 29, - 47 * + + ( + 40 ) + + - 15 * + 10 DIV - - 75 * 23 * + - 69, + CASE - 82 WHEN + 79 + + 18 + + 1 * 53 THEN - 28 + 54 * + 82 ELSE NULL END * - 23 - + 75 ) + + NULLIF ( - 77, 97 )
----
-106

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + COALESCE ( + - 29, - 47 * + + ( + 40 ) + + - 15 * + 10 / - - 75 * 23 * + - 69, + CASE - 82 WHEN + 79 + + 18 + + 1 * 53 THEN - 28 + 54 * + 82 ELSE NULL END * - 23 - + 75 ) + + NULLIF ( - 77, 97 )
----
-106

query I rowsort
SELECT ALL 58 * - 62
----
-3596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9080
SELECT COALESCE ( ( COUNT( 55 ) ), COUNT( * ) DIV - - 55 * - 28, - 68 ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-9080
SELECT COALESCE ( ( COUNT ( 55 ) ), COUNT ( * ) / - - 55 * - 28, - 68 ) + - 18
----
-17

query I rowsort
SELECT 18 * - 82 AS col2
----
-1476

query I rowsort
SELECT DISTINCT 63 * 61
----
3843

onlyif mysql # DIV for integer division: 
query II rowsort label-9083
SELECT + 64 * - - 9 + - 26 DIV 92 * - - 32 AS col0, 77 AS col1
----
576
77

skipif mysql # not compatible
query II rowsort label-9083
SELECT + 64 * - - 9 + - 26 / 92 * - - 32 AS col0, 77 AS col1
----
576
77

query I rowsort
SELECT ALL 16 + + 44
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9085
SELECT DISTINCT COUNT( * ) * - COUNT( * ) DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) / - 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9086
SELECT + 2 * COALESCE ( - 34, + MIN( DISTINCT - + 76 ) + + ( + CAST( NULL AS SIGNED ) ), + + 19 DIV 98 + - - 94 + + 78 ) + - 19 + + 47 * - 16 * + 51 * 4 AS col0
----
-153495

skipif mysql # not compatible
query I rowsort label-9086
SELECT + 2 * COALESCE ( - 34, + MIN ( DISTINCT - + 76 ) + + ( + CAST ( NULL AS INTEGER ) ), + + 19 / 98 + - - 94 + + 78 ) + - 19 + + 47 * - 16 * + 51 * 4 AS col0
----
-153495

query I rowsort
SELECT DISTINCT - NULLIF ( - - 7, ( - 56 ) / - + 90 ) AS col0
----
-7

query I rowsort
SELECT ALL - ( - 68 ) AS col1
----
68

query I rowsort
SELECT DISTINCT - 69 * - 76 AS col1
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT COUNT( * ) * + 66 * - 4 col2
----
-264

skipif mysql # not compatible
query I rowsort label-9090
SELECT COUNT ( * ) * + 66 * - 4 col2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT + MIN( + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9091
SELECT + MIN ( + 54 )
----
54

query I rowsort
SELECT ALL + 79 * - - 57
----
4503

query I rowsort
SELECT 52 * - + 78 * + + 32 * 79 + - 90 AS col0
----
-10253658

onlyif mysql # aggregate syntax: 
query II rowsort label-9094
SELECT + COUNT( * ) AS col2, 27 AS col2
----
1
27

skipif mysql # not compatible
query II rowsort label-9094
SELECT + COUNT ( * ) AS col2, 27 AS col2
----
1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT NULLIF ( 59, - - 65 + + 94 + + 44 ) * - + COUNT( * ) * + 41
----
-2419

skipif mysql # not compatible
query I rowsort label-9095
SELECT NULLIF ( 59, - - 65 + + 94 + + 44 ) * - + COUNT ( * ) * + 41
----
-2419

query I rowsort
SELECT - + ( + 67 ) * - 56 + - 61 AS col0
----
3691

query I rowsort
SELECT ALL + 86 * + + 75 * + - 96
----
-619200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT ALL 7 * - 80 + - 60 * ( 84 ) - - - 2 - + - 99 + + NULLIF ( - + 70, + - CAST( NULLIF ( 91, - + COUNT( * ) + - 34 + AVG ( DISTINCT - 19 ) * COALESCE ( 26 + 1 * COUNT( * ), 76 + - COUNT( * ) * 5 ) ) AS SIGNED ) * + 54 + 44 * - CASE + 67 WHEN 97 / 55 THEN - NULLIF ( + 87, - 59 * - 73 ) * 28 + - COUNT( * ) END ) AS col1
----
-5573

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL 7 * - 80 + - 60 * ( 84 ) - - - 2 - + - 99 + + NULLIF ( - + 70, + - CAST ( NULLIF ( 91, - + COUNT ( * ) + - 34 + AVG ( DISTINCT - 19 ) * COALESCE ( 26 + 1 * COUNT ( * ), 76 + - COUNT ( * ) * 5 ) ) AS INTEGER ) * + 54 + 44 * - CASE + 67 WHEN 97 / 55 THEN - NULLIF ( + 87, - 59 * - 73 ) * 28 + - COUNT ( * ) END ) AS col1
----
-5573

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT - COUNT( ALL - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT - COUNT ( ALL - 52 )
----
-1

query I rowsort
SELECT ALL - - ( + 87 )
----
87

query II rowsort
SELECT 12 col1, 81 * + 87 AS col0
----
12
7047

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT - ( - - 65 ) - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9102
SELECT - ( - - 65 ) - COUNT ( * ) AS col1
----
-66

query I rowsort
SELECT 14 * - - 98 * + 67 AS col1
----
91924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT - 30 - - 43 + + 84 * - CAST( - 17 AS SIGNED ) + + 29
----
1470

skipif mysql # not compatible
query I rowsort label-9104
SELECT - 30 - - 43 + + 84 * - CAST ( - 17 AS INTEGER ) + + 29
----
1470

query II rowsort
SELECT 56 AS col1, + 56 + + - 84 * + + 39
----
56
-3220

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT + COUNT( * ) / + + 4 * + + CASE + - 67 WHEN 11 + + 72 THEN 3 ELSE NULL END * + + 3 + + COUNT( * ) + - - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT + COUNT ( * ) / + + 4 * + + CASE + - 67 WHEN 11 + + 72 THEN 3 ELSE NULL END * + + 3 + + COUNT ( * ) + - - 61 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - + AVG ( DISTINCT - 12 ), - - 12 ) AS col2
----
NULL

query I rowsort
SELECT 94 * + 44 + + - 12
----
4124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9109
SELECT ALL + CASE - - COUNT( * ) WHEN 2 / - + 7 + + - 53 + 29 + + + 17 + + - 44 THEN NULL WHEN - 76 THEN + CAST( NULL AS DECIMAL ) - 14 - + - COALESCE ( 43, + 12, - + 4 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL + CASE - - COUNT ( * ) WHEN 2 / - + 7 + + - 53 + 29 + + + 17 + + - 44 THEN NULL WHEN - 76 THEN + CAST ( NULL AS REAL ) - 14 - + - COALESCE ( 43, + 12, - + 4 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9110
SELECT CASE + 47 WHEN - 27 * - 22 + - 26 THEN + COUNT( * ) WHEN - 52 + - + COUNT( * ) THEN AVG ( ALL - 56 ) END AS col1, + 50 + - 52 - - 6 AS col2, + - NULLIF ( 66, + 77 ) * - 16
----
NULL
4
1056

skipif mysql # not compatible
query III rowsort label-9110
SELECT CASE + 47 WHEN - 27 * - 22 + - 26 THEN + COUNT ( * ) WHEN - 52 + - + COUNT ( * ) THEN AVG ( ALL - 56 ) END AS col1, + 50 + - 52 - - 6 AS col2, + - NULLIF ( 66, + 77 ) * - 16
----
NULL
4
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT + COUNT( * ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + COUNT ( * ) + + 10
----
11

query I rowsort
SELECT DISTINCT + + 65 + + 66 AS col0
----
131

query I rowsort
SELECT DISTINCT - 85 + - - ( + - 87 )
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT ALL + 27 + - ( + 98 ) + - COUNT( DISTINCT - 92 ) * + 20 AS col1, 69 col0
----
-91
69

skipif mysql # not compatible
query II rowsort label-9114
SELECT ALL + 27 + - ( + 98 ) + - COUNT ( DISTINCT - 92 ) * + 20 AS col1, 69 col0
----
-91
69

query I rowsort
SELECT - 52 * + + 84
----
-4368

query I rowsort
SELECT - 11 + - + 26 + - - 85
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL COALESCE ( + COALESCE ( - - COUNT( * ), + COALESCE ( 46, - + 14, + - 32 ) * + - 75 - + 30 + 60, 53 + 96 ), - 68 * + + NULLIF ( + - 21, + - 56 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL COALESCE ( + COALESCE ( - - COUNT ( * ), + COALESCE ( 46, - + 14, + - 32 ) * + - 75 - + 30 + 60, 53 + 96 ), - 68 * + + NULLIF ( + - 21, + - 56 ) ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9118
SELECT DISTINCT ( - 92 ) + - 6 + - - ( + 31 ) * - COUNT( * ) DIV + MAX( DISTINCT + + 49 ) * 41 + 43
----
-55

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT ( - 92 ) + - 6 + - - ( + 31 ) * - COUNT ( * ) / + MAX ( DISTINCT + + 49 ) * 41 + 43
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9119
SELECT 76 AS col0, 82 - - - COUNT( * )
----
76
81

skipif mysql # not compatible
query II rowsort label-9119
SELECT 76 AS col0, 82 - - - COUNT ( * )
----
76
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT ALL 16 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL 16 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + 65, - 87 ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT DISTINCT + CAST( + + 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT + CAST ( + + 92 AS INTEGER )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT 83 DIV + 61 + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT 83 / + 61 + - + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT - NULLIF ( - 53, + 92 + - - ( + + 61 ) ) * + 77 - - - 89 + + CAST( COALESCE ( + MAX( DISTINCT - ( 73 ) ), - 72 * COUNT( * ) * - 52 - + 60 * - 56 + 69 ) AS SIGNED ) AS col1
----
3919

skipif mysql # not compatible
query I rowsort label-9124
SELECT - NULLIF ( - 53, + 92 + - - ( + + 61 ) ) * + 77 - - - 89 + + CAST ( COALESCE ( + MAX ( DISTINCT - ( 73 ) ), - 72 * COUNT ( * ) * - 52 - + 60 * - 56 + 69 ) AS INTEGER ) AS col1
----
3919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT + CAST( NULL AS SIGNED ) * ( - - ( + + 20 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9125
SELECT + CAST ( NULL AS INTEGER ) * ( - - ( + + 20 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT CASE - - 31 WHEN - 31 THEN + 42 + COUNT( * ) + - - 56 * + NULLIF ( 20, - 72 ) * + - 17 WHEN 25 * + + 27 * + - COALESCE ( COUNT( * ), - COUNT( * ) + - 40, + SUM( DISTINCT + 81 ) ) + - 43 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT CASE - - 31 WHEN - 31 THEN + 42 + COUNT ( * ) + - - 56 * + NULLIF ( 20, - 72 ) * + - 17 WHEN 25 * + + 27 * + - COALESCE ( COUNT ( * ), - COUNT ( * ) + - 40, + SUM ( DISTINCT + 81 ) ) + - 43 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 78 * - - 64 + 72 + - - 77 + - 78
----
5063

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + COUNT( * ) * - 13
----
-13

skipif mysql # not compatible
query I rowsort label-9128
SELECT + COUNT ( * ) * - 13
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9129
SELECT ( 71 ) * - COUNT( * ) + - 67 DIV - 3 + - - 98 + + 74 DIV + 62 + + ( + 43 )
----
93

skipif mysql # not compatible
query I rowsort label-9129
SELECT ( 71 ) * - COUNT ( * ) + - 67 / - 3 + - - 98 + + 74 / + 62 + + ( + 43 )
----
93

query I rowsort
SELECT 84 * 17 + 78
----
1506

query I rowsort
SELECT + + 51 * - 81 AS col0
----
-4131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT ALL CAST( 81 AS SIGNED ) * NULLIF ( - + 63, - 16 + + + 88 ) + + 8 - 29 AS col2
----
-5124

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL CAST ( 81 AS INTEGER ) * NULLIF ( - + 63, - 16 + + + 88 ) + + 8 - 29 AS col2
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT + 48 + + MIN( DISTINCT - - 98 )
----
146

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 48 + + MIN ( DISTINCT - - 98 )
----
146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9134
SELECT + 34 * + CAST( NULL AS DECIMAL ) + 60 + - - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT + 34 * + CAST ( NULL AS REAL ) + 60 + - - 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT CASE 18 WHEN + AVG ( - COALESCE ( + 20, + 93 + 70 * + 49, + + 67 + - ( + 54 ) ) ) THEN NULL ELSE - 96 + - COUNT( * ) END
----
-97

skipif mysql # not compatible
query I rowsort label-9135
SELECT CASE 18 WHEN + AVG ( - COALESCE ( + 20, + 93 + 70 * + 49, + + 67 + - ( + 54 ) ) ) THEN NULL ELSE - 96 + - COUNT ( * ) END
----
-97

query I rowsort
SELECT + + 99 + COALESCE ( ( + 71 ), - + 87 )
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL + - COUNT( * ) * 36 * + + 52 + ( 17 )
----
-1855

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL + - COUNT ( * ) * 36 * + + 52 + ( 17 )
----
-1855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9138
SELECT + - 25 + - COALESCE ( + COUNT( * ), - 98 + - + COUNT( * ) * - SUM( DISTINCT + - 20 ) * + + 90, + - 50 + - 31 ) * - CAST( NULL AS SIGNED ) + + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT + - 25 + - COALESCE ( + COUNT ( * ), - 98 + - + COUNT ( * ) * - SUM ( DISTINCT + - 20 ) * + + 90, + - 50 + - 31 ) * - CAST ( NULL AS INTEGER ) + + 21 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9139
SELECT - + CAST( NULL AS SIGNED ) + + 20 AS col1, ( + + NULLIF ( - 32, - NULLIF ( - 56, 92 ) * + 80 * + + 82 + + SUM( 17 ) ) ) AS col1
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-9139
SELECT - + CAST ( NULL AS INTEGER ) + + 20 AS col1, ( + + NULLIF ( - 32, - NULLIF ( - 56, 92 ) * + 80 * + + 82 + + SUM ( 17 ) ) ) AS col1
----
NULL
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9140
SELECT - 7 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-9140
SELECT - 7 / 90
----
0

query II rowsort
SELECT ALL 40 AS col1, 81 col1
----
40
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9142
SELECT DISTINCT + 11 + CAST( NULL AS SIGNED ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT + 11 + CAST ( NULL AS INTEGER ) + - 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT - - ( + 7 ) DIV - - NULLIF ( - 71, - 45 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9143
SELECT - - ( + 7 ) / - - NULLIF ( - 71, - 45 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL 47 + + NULLIF ( + COUNT( * ), + - 24 + 67 + 58 ) - + 47 + - - 48 + 32 * ( 27 ) * - + 74
----
-63887

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL 47 + + NULLIF ( + COUNT ( * ), + - 24 + 67 + 58 ) - + 47 + - - 48 + 32 * ( 27 ) * - + 74
----
-63887

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9145
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-9145
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + 59
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT + 40 + COUNT( * ) + - 62 * - 75 * - - 17 AS col0
----
79091

skipif mysql # not compatible
query I rowsort label-9146
SELECT + 40 + COUNT ( * ) + - 62 * - 75 * - - 17 AS col0
----
79091

query I rowsort
SELECT - 28 + - 97 AS col2
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - SUM( + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-9148
SELECT - SUM ( + 31 )
----
-31

query I rowsort
SELECT DISTINCT COALESCE ( + + 23, + + 76 ) AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9150
SELECT - 75 + + 12 + COALESCE ( 5, 43 DIV - - 44 + 15, 20 ) + + + 53 * + + MIN( - 49 ) + - 39 + + 13 AS col0
----
-2681

skipif mysql # not compatible
query I rowsort label-9150
SELECT - 75 + + 12 + COALESCE ( 5, 43 / - - 44 + 15, 20 ) + + + 53 * + + MIN ( - 49 ) + - 39 + + 13 AS col0
----
-2681

query I rowsort
SELECT ALL + 96 * - 31
----
-2976

query I rowsort
SELECT - ( 56 ) + + - 1 col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT DISTINCT + 79 * - 0 * + 23 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + 79 * - 0 * + 23 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + COUNT( * ) + SUM( 22 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9154
SELECT + COUNT ( * ) + SUM ( 22 ) AS col0
----
23

query I rowsort
SELECT - ( - 69 ) * - + 87
----
-6003

query I rowsort
SELECT + 18 * - + 88 + + ( - 18 )
----
-1602

onlyif mysql # DIV for integer division: 
query I rowsort label-9157
SELECT DISTINCT 61 DIV - 29 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT 61 / - 29 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT - 67 / - CASE + AVG ( DISTINCT - - 21 ) WHEN - 55 THEN + 13 * - - 46 WHEN + COALESCE ( SUM( + 38 ), - 65 ) THEN + COUNT( * ) / COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT - 67 / - CASE + AVG ( DISTINCT - - 21 ) WHEN - 55 THEN + 13 * - - 46 WHEN + COALESCE ( SUM ( + 38 ), - 65 ) THEN + COUNT ( * ) / COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT + NULLIF ( 0, + - COUNT( * ) * - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + NULLIF ( 0, + - COUNT ( * ) * - 39 )
----
0

query I rowsort
SELECT DISTINCT 67 * + 73 + 11 * - + 50 * ( 53 ) AS col1
----
-24259

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT + + 14 * + 82 + COUNT( * ) - 34 - + 57 * - COUNT( * ) * - 11 * 27
----
-15814

skipif mysql # not compatible
query I rowsort label-9161
SELECT + + 14 * + 82 + COUNT ( * ) - 34 - + 57 * - COUNT ( * ) * - 11 * 27
----
-15814

query I rowsort
SELECT DISTINCT 25 * + + 10 * 0 * 80 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT COUNT( * ) * COUNT( * ) + + 21 + + NULLIF ( + - ( - COUNT( ALL - + 21 ) ), 89 * - 9 ) * - + 54 * - - 62 * + 44 + 84
----
-147206

skipif mysql # not compatible
query I rowsort label-9163
SELECT COUNT ( * ) * COUNT ( * ) + + 21 + + NULLIF ( + - ( - COUNT ( ALL - + 21 ) ), 89 * - 9 ) * - + 54 * - - 62 * + 44 + 84
----
-147206

query I rowsort
SELECT ALL - - 11 * - - 48 + 95 AS col0
----
623

query I rowsort
SELECT + 26 * - 31 * - 79 AS col1
----
63674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9166
SELECT ALL 9 + - CAST( + COUNT( * ) AS SIGNED ) * 86 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL 9 + - CAST ( + COUNT ( * ) AS INTEGER ) * 86 AS col2
----
-77

query I rowsort
SELECT DISTINCT - 40 + - 71 - - 36 AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9168
SELECT ALL 92 + COALESCE ( - - 57, + 24 DIV 3 DIV 65 * - + ( - ( + - 57 ) ) + + - CAST( NULL AS SIGNED ) ) col2
----
149

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL 92 + COALESCE ( - - 57, + 24 / 3 / 65 * - + ( - ( + - 57 ) ) + + - CAST ( NULL AS INTEGER ) ) col2
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT ALL + 7 + - COALESCE ( - 28, - - CAST( NULL AS SIGNED ) ) + 55 * + 43
----
2400

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + 7 + - COALESCE ( - 28, - - CAST ( NULL AS INTEGER ) ) + 55 * + 43
----
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT + 28 + + CAST( CASE + CAST( NULL AS SIGNED ) WHEN + 90 THEN NULL ELSE 57 END AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-9170
SELECT + 28 + + CAST ( CASE + CAST ( NULL AS INTEGER ) WHEN + 90 THEN NULL ELSE 57 END AS INTEGER )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT - - COUNT( * ) * - + 51 + + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-9171
SELECT - - COUNT ( * ) * - + 51 + + COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9172
SELECT ALL 69 DIV + SUM( - - 3 )
----
23

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL 69 / + SUM ( - - 3 )
----
23

query I rowsort
SELECT 47 * - 21 * 45 AS col1
----
-44415

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT DISTINCT 4 - - 63 DIV + ( + 14 )
----
8

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT 4 - - 63 / + ( + 14 )
----
8

query I rowsort
SELECT 72 * + 23
----
1656

query I rowsort
SELECT ( - - 94 ) * - + 47
----
-4418

onlyif mysql # DIV for integer division: 
query I rowsort label-9177
SELECT 91 DIV - 52 DIV 14 * - 2 * 62
----
0

skipif mysql # not compatible
query I rowsort label-9177
SELECT 91 / - 52 / 14 * - 2 * 62
----
0

query I rowsort
SELECT 98 * 57 AS col0
----
5586

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT ALL - 20 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL - 20 / - 72
----
0

query I rowsort
SELECT 72 * - + 71 AS col2
----
-5112

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT DISTINCT 56 DIV 23 * - 43 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT 56 / 23 * - 43 AS col2
----
-86

query I rowsort
SELECT DISTINCT - 75 + 74 AS col2
----
-1

query II rowsort
SELECT 20, + 68 AS col2
----
20
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT ALL - 26 AS col1, + 42 * 62 + - + COUNT( DISTINCT - 39 )
----
-26
2603

skipif mysql # not compatible
query II rowsort label-9184
SELECT ALL - 26 AS col1, + 42 * 62 + - + COUNT ( DISTINCT - 39 )
----
-26
2603

query I rowsort
SELECT 97 * + 74 AS col2
----
7178

query I rowsort
SELECT ALL - NULLIF ( 89, 82 ) * 44 AS col0
----
-3916

query I rowsort
SELECT ALL - + 76 + + 19
----
-57

query II rowsort
SELECT - 83 + 36 - - - 58 * - + 65 + - + 22 * - 12, - 2 AS col0
----
3987
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT 6, + 29 - COUNT( * ) AS col2
----
6
28

skipif mysql # not compatible
query II rowsort label-9189
SELECT 6, + 29 - COUNT ( * ) AS col2
----
6
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT + + ( 57 ) * + - 86 + - 10 + + 15 + 33 * - 71 + 55 DIV - 15 AS col2
----
-7243

skipif mysql # not compatible
query I rowsort label-9190
SELECT + + ( 57 ) * + - 86 + - 10 + + 15 + 33 * - 71 + 55 / - 15 AS col2
----
-7243

query I rowsort
SELECT ALL + + 63 + - + 84 AS col0
----
-21

query II rowsort
SELECT DISTINCT - + 75 AS col0, - 87 AS col0
----
-75
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9193
SELECT ALL - COALESCE ( + 12, - - 26 - + SUM( 17 ) - - 73 ) + + ( + 31 ) AS col0, 50 * + + NULLIF ( + 77, + 61 + - ( + 38 ) ) AS col2
----
19
3850

skipif mysql # not compatible
query II rowsort label-9193
SELECT ALL - COALESCE ( + 12, - - 26 - + SUM ( 17 ) - - 73 ) + + ( + 31 ) AS col0, 50 * + + NULLIF ( + 77, + 61 + - ( + 38 ) ) AS col2
----
19
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT + ( - - COUNT( * ) ) + - + 50
----
-49

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT + ( - - COUNT ( * ) ) + - + 50
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9195
SELECT DISTINCT 59 DIV + - CAST( + COUNT( * ) AS SIGNED ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT 59 / + - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL + COUNT( * ) + - 11 * + 10 * + COUNT( * ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + COUNT ( * ) + - 11 * + 10 * + COUNT ( * ) AS col0
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT + CAST( NULL AS SIGNED ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT + CAST ( NULL AS INTEGER ) + 27
----
NULL

query I rowsort
SELECT ALL + 11 + 89 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT COUNT( * ) + + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9199
SELECT COUNT ( * ) + + 60 AS col2
----
61

query I rowsort
SELECT ALL + 62 + 54 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL COUNT( * ) * - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL COUNT ( * ) * - 1 AS col2
----
-1

query I rowsort
SELECT 18 + 19 AS col2
----
37

query I rowsort
SELECT 7 + 90 - - 70 AS col2
----
167

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9204
SELECT ALL - COUNT( - CAST( NULL AS DECIMAL ) ) - - 83 + - + COUNT( * ) + - 79 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL - COUNT ( - CAST ( NULL AS REAL ) ) - - 83 + - + COUNT ( * ) + - 79 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9205
SELECT DISTINCT - 14 - - - 62 + 60 + - + CASE - 77 WHEN 81 THEN + 68 WHEN + 45 + + - CAST( NULL AS DECIMAL ) THEN + 74 WHEN - 56 THEN MIN( COALESCE ( - 58, + 89, + - ( - 17 ) + + 94 * - 84, 38 ) ) ELSE NULL END * 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT - 14 - - - 62 + 60 + - + CASE - 77 WHEN 81 THEN + 68 WHEN + 45 + + - CAST ( NULL AS REAL ) THEN + 74 WHEN - 56 THEN MIN ( COALESCE ( - 58, + 89, + - ( - 17 ) + + 94 * - 84, 38 ) ) ELSE NULL END * 10 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9206
SELECT DISTINCT COUNT( + 12 ), 38 AS col2
----
1
38

skipif mysql # not compatible
query II rowsort label-9206
SELECT DISTINCT COUNT ( + 12 ), 38 AS col2
----
1
38

query II rowsort
SELECT ALL 63 * + 65, 45 AS col1
----
4095
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT CASE 4 WHEN COUNT( * ) THEN 29 / 20 WHEN 18 THEN NULL WHEN ( + - 28 ) THEN NULL END + + - 66 + - 77 * + + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT CASE 4 WHEN COUNT ( * ) THEN 29 / 20 WHEN 18 THEN NULL WHEN ( + - 28 ) THEN NULL END + + - 66 + - 77 * + + 29 AS col2
----
NULL

query II rowsort
SELECT 82 * + 47, - 53 col1
----
3854
-53

query I rowsort
SELECT 53 + - 80 + + 53
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9211
SELECT 1 + 72 * COUNT( + 44 ) AS col1, 7 DIV + 71 AS col2
----
73
0

skipif mysql # not compatible
query II rowsort label-9211
SELECT 1 + 72 * COUNT ( + 44 ) AS col1, 7 / + 71 AS col2
----
73
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT ALL + COUNT( ALL - 68 ) + - NULLIF ( 42, + NULLIF ( - 84, + 10 * 39 + - 12 + 30 + + NULLIF ( 28, - MIN( ALL - 82 ) ) * - 83 * + + SUM( DISTINCT - - ( + CAST( NULL AS SIGNED ) ) ) + - 44 + 70 * 91 ) ) + + ( 2 - - 8 * + 45 ) * + 81
----
29281

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL + COUNT ( ALL - 68 ) + - NULLIF ( 42, + NULLIF ( - 84, + 10 * 39 + - 12 + 30 + + NULLIF ( 28, - MIN ( ALL - 82 ) ) * - 83 * + + SUM ( DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) ) + - 44 + 70 * 91 ) ) + + ( 2 - - 8 * + 45 ) * + 81
----
29281

query I rowsort
SELECT ALL 50 * - 25 AS col2
----
-1250

query I rowsort
SELECT ALL 43 + 64
----
107

query II rowsort
SELECT DISTINCT 2 + - 83 AS col0, 67 AS col2
----
-81
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9216
SELECT - COUNT( + 9 ) AS col0, 5 AS col1
----
-1
5

skipif mysql # not compatible
query II rowsort label-9216
SELECT - COUNT ( + 9 ) AS col0, 5 AS col1
----
-1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT DISTINCT - 23 * - ( - - 99 ) + 26 + + + COUNT( * ) + + COUNT( * ) AS col1
----
2305

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT - 23 * - ( - - 99 ) + 26 + + + COUNT ( * ) + + COUNT ( * ) AS col1
----
2305

query I rowsort
SELECT + 81 * - 46
----
-3726

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT ALL + - 61 DIV + 17
----
-3

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + - 61 / + 17
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9220
SELECT ALL + 32 DIV COUNT( * ) * - 76 + - 70 + - + 69
----
-2571

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL + 32 / COUNT ( * ) * - 76 + - 70 + - + 69
----
-2571

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT ALL 73 DIV + 2
----
36

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL 73 / + 2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - COUNT( * ) * 59 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9222
SELECT - COUNT ( * ) * 59 AS col1
----
-59

query I rowsort
SELECT DISTINCT + COALESCE ( + ( - 8 ), - 0 * 1 + 67 * + ( + - 99 ) * + + 37 + - 58 - + 49 ) col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL - + 56 * - MAX( + 35 ) AS col2
----
1960

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL - + 56 * - MAX ( + 35 ) AS col2
----
1960

query I rowsort
SELECT + 83 * - - 89 AS col1
----
7387

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - + CASE + 0 WHEN + - 7 THEN - COUNT( * ) WHEN + MAX( DISTINCT - 33 ) THEN ( - 24 ) ELSE NULL END * + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT - + CASE + 0 WHEN + - 7 THEN - COUNT ( * ) WHEN + MAX ( DISTINCT - 33 ) THEN ( - 24 ) ELSE NULL END * + 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT SUM( - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9227
SELECT SUM ( - - 78 )
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9228
SELECT - 33 - - ( + - 45 ) - + 30 + - CAST( NULL AS DECIMAL ) * 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT - 33 - - ( + - 45 ) - + 30 + - CAST ( NULL AS REAL ) * 10 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9229
SELECT ALL + - ( - CAST( + - 63 AS SIGNED ) ) DIV + 20 + - - 83, + 55 + COUNT( * ) AS col0
----
80
56

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL + - ( - CAST ( + - 63 AS INTEGER ) ) / + 20 + - - 83, + 55 + COUNT ( * ) AS col0
----
80
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL + SUM( ALL + + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL + SUM ( ALL + + 41 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT - COUNT( - 15 ) * - - 83 AS col2, COUNT( * ) AS col1
----
-83
1

skipif mysql # not compatible
query II rowsort label-9231
SELECT - COUNT ( - 15 ) * - - 83 AS col2, COUNT ( * ) AS col1
----
-83
1

query I rowsort
SELECT ALL NULLIF ( 9, - 1 ) col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT - COUNT( * ) + + 69 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9233
SELECT - COUNT ( * ) + + 69 AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT + ( - 33 ) DIV - + COALESCE ( + 37, + 24 - + 78 ) + + 20
----
20

skipif mysql # not compatible
query I rowsort label-9234
SELECT + ( - 33 ) / - + COALESCE ( + 37, + 24 - + 78 ) + + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - COUNT( * ) * + - 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9235
SELECT - COUNT ( * ) * + - 8 AS col0
----
8

query I rowsort
SELECT - 98 + + - 36 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL - 65 * - + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - 65 * - + COUNT ( * ) AS col1
----
65

query I rowsort
SELECT - 16 * 49
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL COUNT( * ) + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL COUNT ( * ) + - 77
----
-76

query I rowsort
SELECT DISTINCT + 20 * 98 AS col0
----
1960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9241
SELECT + COUNT( - 54 ) * - CAST( + - CAST( + 93 AS DECIMAL ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-9241
SELECT + COUNT ( - 54 ) * - CAST ( + - CAST ( + 93 AS REAL ) AS INTEGER )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT ALL + 93 + + 12 + - CAST( NULL AS SIGNED ) - + COALESCE ( + - NULLIF ( + 55, + 8 / + 97 + 34 / + - 99 ), - ( + 20 ) / - 54 - - 62 + - 63 / + 90 * - MIN( DISTINCT - + 52 ) - SUM( - CAST( 24 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + 93 + + 12 + - CAST ( NULL AS INTEGER ) - + COALESCE ( + - NULLIF ( + 55, + 8 / + 97 + 34 / + - 99 ), - ( + 20 ) / - 54 - - 62 + - 63 / + 90 * - MIN ( DISTINCT - + 52 ) - SUM ( - CAST ( 24 AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL 44 + + - CASE + + 13 WHEN - - 46 THEN NULL ELSE + + 86 END - + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL 44 + + - CASE + + 13 WHEN - - 46 THEN NULL ELSE + + 86 END - + COUNT ( * )
----
-43

query I rowsort
SELECT - 8 + - ( ( + 66 ) )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9245
SELECT - ( COALESCE ( + 91, 38 + - + 20 - - ( + - 95 ) * 11 DIV - 38 + - + 90 ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-9245
SELECT - ( COALESCE ( + 91, 38 + - + 20 - - ( + - 95 ) * 11 / - 38 + - + 90 ) ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9246
SELECT DISTINCT 37 + 18 + - 3 AS col0, 74 * SUM( + 98 ) AS col0
----
52
7252

skipif mysql # not compatible
query II rowsort label-9246
SELECT DISTINCT 37 + 18 + - 3 AS col0, 74 * SUM ( + 98 ) AS col0
----
52
7252

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + + 36 * - - 75 + 45 + 69 + + 46 * + - COUNT( * ) AS col0
----
2768

skipif mysql # not compatible
query I rowsort label-9247
SELECT + + 36 * - - 75 + 45 + 69 + + 46 * + - COUNT ( * ) AS col0
----
2768

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT DISTINCT 14 * - COUNT( + 11 ) + - 86 + - + 42 * - 5, COUNT( * ) AS col1
----
110
1

skipif mysql # not compatible
query II rowsort label-9248
SELECT DISTINCT 14 * - COUNT ( + 11 ) + - 86 + - + 42 * - 5, COUNT ( * ) AS col1
----
110
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9249
SELECT + 1 DIV - ( - COUNT( * ) ) + + 11 DIV - COUNT( ALL + 71 )
----
-10

skipif mysql # not compatible
query I rowsort label-9249
SELECT + 1 / - ( - COUNT ( * ) ) + + 11 / - COUNT ( ALL + 71 )
----
-10

query I rowsort
SELECT DISTINCT + + 41 col1
----
41

query I rowsort
SELECT DISTINCT - 53 * + 78
----
-4134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9252
SELECT + CAST( + + 79 AS SIGNED ) * COALESCE ( MIN( DISTINCT + 0 ), + NULLIF ( - 49, 21 * - 52 - - NULLIF ( + + ( 13 ), - 31 - COUNT( * ) ) + 82 * - 79 + 57 * + - CAST( + 18 AS SIGNED ) ), + 57 + - 79 * + 60 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9252
SELECT + CAST ( + + 79 AS INTEGER ) * COALESCE ( MIN ( DISTINCT + 0 ), + NULLIF ( - 49, 21 * - 52 - - NULLIF ( + + ( 13 ), - 31 - COUNT ( * ) ) + 82 * - 79 + 57 * + - CAST ( + 18 AS INTEGER ) ), + 57 + - 79 * + 60 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT - 8 DIV + - 86 * COUNT( * ) * 31 + + - 70 + + MIN( ALL + - 5 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-9253
SELECT - 8 / + - 86 * COUNT ( * ) * 31 + + - 70 + + MIN ( ALL + - 5 ) col0
----
-75

query I rowsort
SELECT - - 3 * 95 - 74 * + - 27 AS col2
----
2283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9255
SELECT DISTINCT + + NULLIF ( + NULLIF ( + - 52, 0 ), + CAST( NULL AS SIGNED ) ), + NULLIF ( + + 28, 47 + + 39 * + COUNT( * ) * 53 * + COUNT( * ) * - 52 ) * 46 AS col0
----
-52
1288

skipif mysql # not compatible
query II rowsort label-9255
SELECT DISTINCT + + NULLIF ( + NULLIF ( + - 52, 0 ), + CAST ( NULL AS INTEGER ) ), + NULLIF ( + + 28, 47 + + 39 * + COUNT ( * ) * 53 * + COUNT ( * ) * - 52 ) * 46 AS col0
----
-52
1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9256
SELECT + + NULLIF ( 73, - ( + 11 ) * - NULLIF ( + + 39, - 66 * + + 31 + - 44 ) ) + + + 26 - COUNT( * ) DIV - 68
----
99

skipif mysql # not compatible
query I rowsort label-9256
SELECT + + NULLIF ( 73, - ( + 11 ) * - NULLIF ( + + 39, - 66 * + + 31 + - 44 ) ) + + + 26 - COUNT ( * ) / - 68
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT + 12 DIV - + ( + - 71 ) - - 24
----
24

skipif mysql # not compatible
query I rowsort label-9257
SELECT + 12 / - + ( + - 71 ) - - 24
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9258
SELECT - ( - 30 ) * + 13 + - 48 + - CASE + + AVG ( + 24 ) WHEN 50 THEN NULL ELSE + 11 END + - ( - 41 ) DIV + COUNT( * ) + + + 65 AS col0
----
437

skipif mysql # not compatible
query I rowsort label-9258
SELECT - ( - 30 ) * + 13 + - 48 + - CASE + + AVG ( + 24 ) WHEN 50 THEN NULL ELSE + 11 END + - ( - 41 ) / + COUNT ( * ) + + + 65 AS col0
----
437

query I rowsort
SELECT + ( - ( + - 75 ) )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT DISTINCT + - AVG ( - 10 ) * - ( - - 91 ) - - - ( + COALESCE ( - 79, - + 42 / + 14, 83 ) ) + CASE 63 WHEN - 56 THEN CASE - 36 WHEN - + CAST( 33 AS SIGNED ) THEN - 34 ELSE + 74 * - + 82 * - 57 END WHEN 10 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT + - AVG ( - 10 ) * - ( - - 91 ) - - - ( + COALESCE ( - 79, - + 42 / + 14, 83 ) ) + CASE 63 WHEN - 56 THEN CASE - 36 WHEN - + CAST ( 33 AS INTEGER ) THEN - 34 ELSE + 74 * - + 82 * - 57 END WHEN 10 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT DISTINCT + - 91 DIV + - 73 + 90
----
91

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT + - 91 / + - 73 + 90
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9262
SELECT ALL + - COUNT( * ) AS col1, - 50
----
-1
-50

skipif mysql # not compatible
query II rowsort label-9262
SELECT ALL + - COUNT ( * ) AS col1, - 50
----
-1
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-9263
SELECT 73 * 13 * + 5 + NULLIF ( - 70, + 27 DIV - - 6 ) + + 20 DIV + 49 * - 89, - 50 AS col2
----
4675
-50

skipif mysql # not compatible
query II rowsort label-9263
SELECT 73 * 13 * + 5 + NULLIF ( - 70, + 27 / - - 6 ) + + 20 / + 49 * - 89, - 50 AS col2
----
4675
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT ALL 92 DIV 32 + ( + + 57 )
----
59

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL 92 / 32 + ( + + 57 )
----
59

query I rowsort
SELECT - 31 + - + 17 + 16
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9266
SELECT + CAST( + - 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-9266
SELECT + CAST ( + - 7 AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9267
SELECT 42 * - 48 + MIN( + 59 ) AS col0, + 49 AS col0
----
-1957
49

skipif mysql # not compatible
query II rowsort label-9267
SELECT 42 * - 48 + MIN ( + 59 ) AS col0, + 49 AS col0
----
-1957
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9268
SELECT + CAST( NULL AS SIGNED ) col0, ( ( - - 52 ) )
----
NULL
52

skipif mysql # not compatible
query II rowsort label-9268
SELECT + CAST ( NULL AS INTEGER ) col0, ( ( - - 52 ) )
----
NULL
52

query II rowsort
SELECT + 15 AS col2, + 16 * 32
----
15
512

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT CASE 99 WHEN - - 93 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9270
SELECT CASE 99 WHEN - - 93 THEN COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + 90 * + 25 + - + 84 AS col2
----
2166

query I rowsort
SELECT ALL + 33 * 35 AS col2
----
1155

onlyif mysql # aggregate syntax: 
query II rowsort label-9273
SELECT + 23 AS col2, + ( - + SUM( 17 ) )
----
23
-17

skipif mysql # not compatible
query II rowsort label-9273
SELECT + 23 AS col2, + ( - + SUM ( 17 ) )
----
23
-17

query I rowsort
SELECT DISTINCT 39 * + - 4
----
-156

query I rowsort
SELECT DISTINCT 46 * 29 + + 41 * + 53
----
3507

query I rowsort
SELECT ALL 14 * - 95 * - 92 + - - 41 col0
----
122401

query II rowsort
SELECT - 80 AS col0, - 87
----
-80
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT DISTINCT ( CAST( + MIN( ALL - 1 ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT ( CAST ( + MIN ( ALL - 1 ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL SUM( ALL + + 32 ) * + 59 + + 44 * 62
----
4616

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL SUM ( ALL + + 32 ) * + 59 + + 44 * 62
----
4616

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL 51 * - - 70 * - CASE - COUNT( DISTINCT - 99 ) WHEN + - 99 THEN NULL ELSE + + COUNT( * ) END + 94 AS col0
----
-3476

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL 51 * - - 70 * - CASE - COUNT ( DISTINCT - 99 ) WHEN + - 99 THEN NULL ELSE + + COUNT ( * ) END + 94 AS col0
----
-3476

query II rowsort
SELECT - 91 AS col1, - 88 AS col2
----
-91
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT - CAST( - NULLIF ( + - CASE + - 41 WHEN + + 69 + + CAST( + 38 AS SIGNED ) THEN - 11 END, + - 35 ) AS SIGNED ) + + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT - CAST ( - NULLIF ( + - CASE + - 41 WHEN + + 69 + + CAST ( + 38 AS INTEGER ) THEN - 11 END, + - 35 ) AS INTEGER ) + + 46 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT - NULLIF ( + COUNT( ALL - 20 ), - ( - ( 11 ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9283
SELECT - NULLIF ( + COUNT ( ALL - 20 ), - ( - ( 11 ) ) ) col2
----
-1

query I rowsort
SELECT + 32 - + 92
----
-60

query I rowsort
SELECT + 91 * + 28 AS col0
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL - ( + SUM( + - 73 ) ) * + ( - - 83 ) col0
----
6059

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - ( + SUM ( + - 73 ) ) * + ( - - 83 ) col0
----
6059

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT + COUNT( * ) * - ( - - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT + COUNT ( * ) * - ( - - 63 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9288
SELECT ALL + 44 + + CAST( + SUM( - 68 ) AS SIGNED ) * + 27 * + 29 + + 47 * - COALESCE ( + 11, + 81 - + 89 + + 61 - + - AVG ( DISTINCT + CAST( + - 55 AS SIGNED ) ) * + 65 DIV + 45 ) + + 30 col1
----
-53687

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL + 44 + + CAST ( + SUM ( - 68 ) AS INTEGER ) * + 27 * + 29 + + 47 * - COALESCE ( + 11, + 81 - + 89 + + 61 - + - AVG ( DISTINCT + CAST ( + - 55 AS INTEGER ) ) * + 65 / + 45 ) + + 30 col1
----
-53687

query I rowsort
SELECT DISTINCT - 90 * + + 46 col0
----
-4140

query I rowsort
SELECT ALL - 15 * + 95
----
-1425

onlyif mysql # aggregate syntax: 
query II rowsort label-9291
SELECT DISTINCT + - COUNT( * ) * 88 AS col0, 49 AS col0
----
-88
49

skipif mysql # not compatible
query II rowsort label-9291
SELECT DISTINCT + - COUNT ( * ) * 88 AS col0, 49 AS col0
----
-88
49

query II rowsort
SELECT 13 * - 61 AS col1, 63 + + ( + 0 ) AS col1
----
-793
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT 44 + - COUNT( * ) - - - 81 * 34 + + 98
----
-2613

skipif mysql # not compatible
query I rowsort label-9293
SELECT 44 + - COUNT ( * ) - - - 81 * 34 + + 98
----
-2613

query II rowsort
SELECT ALL + 88 AS col2, + ( 51 ) AS col2
----
88
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT + 38 * - COALESCE ( - - 49, - + NULLIF ( + + 51, + + 48 * + + 25 * + 28 ) * MAX( ALL - 26 ) ) col2
----
-1862

skipif mysql # not compatible
query I rowsort label-9295
SELECT + 38 * - COALESCE ( - - 49, - + NULLIF ( + + 51, + + 48 * + + 25 * + 28 ) * MAX ( ALL - 26 ) ) col2
----
-1862

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ( COUNT( - + 22 ) ) * + + 91
----
91

skipif mysql # not compatible
query I rowsort label-9296
SELECT ( COUNT ( - + 22 ) ) * + + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT 36 * + COALESCE ( - - 31, - COUNT( * ) + + MIN( DISTINCT - - 11 ) * - AVG ( DISTINCT + + 25 ), MIN( DISTINCT - + 63 ) + + COUNT( * ) ) * 25 - + - COUNT( * ) * + COUNT( * ) + - - AVG ( ALL - CASE - 38 WHEN + 52 THEN - 46 + - 44 ELSE NULL END ) + COUNT( ALL 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT 36 * + COALESCE ( - - 31, - COUNT ( * ) + + MIN ( DISTINCT - - 11 ) * - AVG ( DISTINCT + + 25 ), MIN ( DISTINCT - + 63 ) + + COUNT ( * ) ) * 25 - + - COUNT ( * ) * + COUNT ( * ) + - - AVG ( ALL - CASE - 38 WHEN + 52 THEN - 46 + - 44 ELSE NULL END ) + COUNT ( ALL 55 ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + + 6 ) AS col1
----
6

query I rowsort
SELECT DISTINCT + 41 * 53 * 70 AS col1
----
152110

onlyif mysql # aggregate syntax: 
query II rowsort label-9300
SELECT DISTINCT - 44 AS col1, - 17 * - COUNT( * ) col0
----
-44
17

skipif mysql # not compatible
query II rowsort label-9300
SELECT DISTINCT - 44 AS col1, - 17 * - COUNT ( * ) col0
----
-44
17

query I rowsort
SELECT ALL 32 * + 63 + + 7 * + 28 AS col2
----
2212

query II rowsort
SELECT DISTINCT - - 36 AS col2, - 18 * 47 AS col0
----
36
-846

query II rowsort
SELECT + 83 AS col0, - 50 * + - 73 AS col0
----
83
3650

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT ALL - COUNT( * ) AS col0, - 41
----
-1
-41

skipif mysql # not compatible
query II rowsort label-9304
SELECT ALL - COUNT ( * ) AS col0, - 41
----
-1
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT DISTINCT 80 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT 80 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL - MIN( ALL 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL - MIN ( ALL 10 ) AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9307
SELECT + 29 * - ( + + 64 ) + 51, 69 + - COUNT( DISTINCT ( + - 73 ) ) + - CAST( NULL AS SIGNED ) + - 66 / + COUNT( * ) * 80 AS col2
----
-1805
NULL

skipif mysql # not compatible
query II rowsort label-9307
SELECT + 29 * - ( + + 64 ) + 51, 69 + - COUNT ( DISTINCT ( + - 73 ) ) + - CAST ( NULL AS INTEGER ) + - 66 / + COUNT ( * ) * 80 AS col2
----
-1805
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT ALL + CAST( NULL AS SIGNED ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL + CAST ( NULL AS INTEGER ) * 98
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT + + 69, + COUNT( * ) col0
----
69
1

skipif mysql # not compatible
query II rowsort label-9309
SELECT + + 69, + COUNT ( * ) col0
----
69
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9310
SELECT 85 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-9310
SELECT 85 / - 49
----
-1

query II rowsort
SELECT ALL 93 + + 27, 16 AS col0
----
120
16

query I rowsort
SELECT 91 * + 16
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL - MIN( + 13 ) + - + 95 - + - 74
----
-34

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - MIN ( + 13 ) + - + 95 - + - 74
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9314
SELECT 81 - - + COUNT( * ) AS col0, - 6 col0
----
82
-6

skipif mysql # not compatible
query II rowsort label-9314
SELECT 81 - - + COUNT ( * ) AS col0, - 6 col0
----
82
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT ALL 75 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL 75 / 86 AS col1
----
0

query II rowsort
SELECT DISTINCT 92 + - + 39 AS col0, 66 AS col0
----
53
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL + COUNT( * ) * + + 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + COUNT ( * ) * + + 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL 27 + - 22 * - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL 27 + - 22 * - COUNT ( * ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT DISTINCT MAX( - 47 ) * + + 76
----
-3572

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT MAX ( - 47 ) * + + 76
----
-3572

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9320
SELECT CAST( NULLIF ( - CAST( - - ( + - 37 ) AS SIGNED ), - 94 ) AS SIGNED ) + 21, 3 AS col1
----
58
3

skipif mysql # not compatible
query II rowsort label-9320
SELECT CAST ( NULLIF ( - CAST ( - - ( + - 37 ) AS INTEGER ), - 94 ) AS INTEGER ) + 21, 3 AS col1
----
58
3

query I rowsort
SELECT ALL + 3 * + 62 * - - ( 99 ) AS col0
----
18414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9322
SELECT CAST( NULL AS SIGNED ) * - 15 + NULLIF ( 64, + - 33 ) + - 21 * + 88 AS col0, COUNT( * ) + + 32 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-9322
SELECT CAST ( NULL AS INTEGER ) * - 15 + NULLIF ( 64, + - 33 ) + - 21 * + 88 AS col0, COUNT ( * ) + + 32 AS col0
----
NULL
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9323
SELECT 26 - + COUNT( + + 72 ) DIV + 18 + + + 12, 34 + + + 3 + + 11 AS col0
----
38
48

skipif mysql # not compatible
query II rowsort label-9323
SELECT 26 - + COUNT ( + + 72 ) / + 18 + + + 12, 34 + + + 3 + + 11 AS col0
----
38
48

query I rowsort
SELECT 6 * - - 99 * + 93 AS col1
----
55242

query I rowsort
SELECT ALL 85 * 37
----
3145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9326
SELECT 82 + + - CAST( + + 54 AS DECIMAL ) * 78 + SUM( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT 82 + + - CAST ( + + 54 AS REAL ) * 78 + SUM ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - + 41 * 96
----
-3936

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT - 36 - + COUNT( 26 ), - NULLIF ( + 84, + + 47 + + 33 + 38 * - 55 * - 26 ) AS col1
----
-37
-84

skipif mysql # not compatible
query II rowsort label-9328
SELECT - 36 - + COUNT ( 26 ), - NULLIF ( + 84, + + 47 + + 33 + 38 * - 55 * - 26 ) AS col1
----
-37
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT - 10 * - 93 + CAST( + - 20 AS SIGNED ) * ( - 97 )
----
2870

skipif mysql # not compatible
query I rowsort label-9329
SELECT - 10 * - 93 + CAST ( + - 20 AS INTEGER ) * ( - 97 )
----
2870

query I rowsort
SELECT ALL - - 49 * 15 AS col0
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT MIN( ALL + - 21 ) * 67 AS col1
----
-1407

skipif mysql # not compatible
query I rowsort label-9331
SELECT MIN ( ALL + - 21 ) * 67 AS col1
----
-1407

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT - MAX( - 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9332
SELECT - MAX ( - 14 ) AS col2
----
14

query I rowsort
SELECT 51 * - 72 col2
----
-3672

onlyif mysql # aggregate syntax: 
query II rowsort label-9334
SELECT DISTINCT - 70 * + + COUNT( - + 31 ) AS col2, - 28 + + COUNT( * )
----
-70
-27

skipif mysql # not compatible
query II rowsort label-9334
SELECT DISTINCT - 70 * + + COUNT ( - + 31 ) AS col2, - 28 + + COUNT ( * )
----
-70
-27

query I rowsort
SELECT ALL - - 57 * + 13 AS col2
----
741

query III rowsort
SELECT DISTINCT - + 7 * + 23, + 86 AS col1, - 70 AS col1
----
-161
86
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9337
SELECT CASE - 63 WHEN - 50 - 54 THEN + COALESCE ( - + 52, + 15 / + + ( 15 ) * + CAST( - + 9 AS DECIMAL ) * + - 94 * 23 / + ( - 82 ) + + COUNT( * ) + 99 ) ELSE NULL END / - 35 * - CASE + 7 WHEN + + NULLIF ( 20, - 12 * + 73 ) * 16 THEN - 31 * 33 WHEN 92 THEN NULL END + + COUNT( * ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT CASE - 63 WHEN - 50 - 54 THEN + COALESCE ( - + 52, + 15 / + + ( 15 ) * + CAST ( - + 9 AS REAL ) * + - 94 * 23 / + ( - 82 ) + + COUNT ( * ) + 99 ) ELSE NULL END / - 35 * - CASE + 7 WHEN + + NULLIF ( 20, - 12 * + 73 ) * 16 THEN - 31 * 33 WHEN 92 THEN NULL END + + COUNT ( * ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT 40 + - 0 + + - 92 + + 89 + 11 * - COUNT( ALL + NULLIF ( - - 92, 53 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9338
SELECT 40 + - 0 + + - 92 + + 89 + 11 * - COUNT ( ALL + NULLIF ( - - 92, 53 ) ) AS col1
----
26

query I rowsort
SELECT ALL 82 * + ( + 6 ) + 84 + + 8 + + 0 * 61 * - 46 + + - 44
----
540

query III rowsort
SELECT 87 + - 72 AS col1, + 84 * - 87 * - - 47, + - 43 AS col2
----
15
-343476
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT + 65 DIV - - 77 - 90 * + 30 - + 97 + + 59 * ( - 71 ) + 5 AS col0
----
-6981

skipif mysql # not compatible
query I rowsort label-9341
SELECT + 65 / - - 77 - 90 * + 30 - + 97 + + 59 * ( - 71 ) + 5 AS col0
----
-6981

onlyif mysql # aggregate syntax: 
query II rowsort label-9342
SELECT COUNT( * ) AS col1, + 15 AS col2
----
1
15

skipif mysql # not compatible
query II rowsort label-9342
SELECT COUNT ( * ) AS col1, + 15 AS col2
----
1
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT CASE + COUNT( * ) WHEN - - ( + - 91 ) THEN + 94 WHEN + 59 THEN NULL END * 57 * - + 78 + + 29 + + COALESCE ( + 71, ( + 39 ) * 5 * - 12 * + - 62, + ( COUNT( * ) ) ) + - + 14 AS col2, - 83 AS col0
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-9343
SELECT CASE + COUNT ( * ) WHEN - - ( + - 91 ) THEN + 94 WHEN + 59 THEN NULL END * 57 * - + 78 + + 29 + + COALESCE ( + 71, ( + 39 ) * 5 * - 12 * + - 62, + ( COUNT ( * ) ) ) + - + 14 AS col2, - 83 AS col0
----
NULL
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT + 65 AS col1, + COUNT( * ) * + COALESCE ( + + 4, + - MIN( + 37 ) )
----
65
4

skipif mysql # not compatible
query II rowsort label-9344
SELECT + 65 AS col1, + COUNT ( * ) * + COALESCE ( + + 4, + - MIN ( + 37 ) )
----
65
4

query II rowsort
SELECT ALL - 52 AS col0, ( - - 99 )
----
-52
99

query I rowsort
SELECT DISTINCT + 61 + + 3
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT MAX( DISTINCT + - ( - 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-9347
SELECT MAX ( DISTINCT + - ( - 64 ) )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT ( 42 ) + 26 + + 25 + - + 45 - - 65 * 40 * 36 + + + CAST( - CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - 56 WHEN + + CASE + 78 WHEN AVG ( - - 33 ) THEN NULL ELSE + + 1 / - COALESCE ( - - 36, COUNT( * ) * - 90 * 24 ) + - 66 END + COUNT( * ) THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ( 42 ) + 26 + + 25 + - + 45 - - 65 * 40 * 36 + + + CAST ( - CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - 56 WHEN + + CASE + 78 WHEN AVG ( - - 33 ) THEN NULL ELSE + + 1 / - COALESCE ( - - 36, COUNT ( * ) * - 90 * 24 ) + - 66 END + COUNT ( * ) THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 27 + - 42 AS col0
----
-15

query I rowsort
SELECT DISTINCT 86 * + 44
----
3784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9351
SELECT COUNT( * ) * - CAST( - ( - 7 ) AS SIGNED ) * - - 64 + CASE - 80 WHEN + 4 THEN - 11 - - 14 WHEN COUNT( * ) / COALESCE ( + MIN( - - 49 ), COUNT( * ) + + 55 ) - - 1 THEN NULL WHEN + 37 THEN 26 * 95 + - - COUNT( * ) + + 48 * + 33 END - COUNT( ALL - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT COUNT ( * ) * - CAST ( - ( - 7 ) AS INTEGER ) * - - 64 + CASE - 80 WHEN + 4 THEN - 11 - - 14 WHEN COUNT ( * ) / COALESCE ( + MIN ( - - 49 ), COUNT ( * ) + + 55 ) - - 1 THEN NULL WHEN + 37 THEN 26 * 95 + - - COUNT ( * ) + + 48 * + 33 END - COUNT ( ALL - 86 )
----
NULL

query II rowsort
SELECT ALL - 52, 13 * + 25 AS col0
----
-52
325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9353
SELECT + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9353
SELECT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT - COUNT( * ) * + 48 * + 17 + + - CAST( + CASE COALESCE ( + 92, 93, + 26 ) WHEN COUNT( * ) THEN + 10 + 4 * + COUNT( * ) + + ( CASE + - ( 32 ) WHEN 33 + COUNT( * ) THEN 80 * - CAST( + 31 AS SIGNED ) * 98 + 62 ELSE NULL END ) END AS SIGNED ) + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT - COUNT ( * ) * + 48 * + 17 + + - CAST ( + CASE COALESCE ( + 92, 93, + 26 ) WHEN COUNT ( * ) THEN + 10 + 4 * + COUNT ( * ) + + ( CASE + - ( 32 ) WHEN 33 + COUNT ( * ) THEN 80 * - CAST ( + 31 AS INTEGER ) * 98 + 62 ELSE NULL END ) END AS INTEGER ) + 98 AS col0
----
NULL

query I rowsort
SELECT + 79 * + 24
----
1896

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9356
SELECT + 55 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT + 55 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9357
SELECT ALL 1 AS col0, COALESCE ( + CAST( NULL AS SIGNED ), + 17, - COALESCE ( - 89, 72 ) + + - 60 ) - + 64
----
1
-47

skipif mysql # not compatible
query II rowsort label-9357
SELECT ALL 1 AS col0, COALESCE ( + CAST ( NULL AS INTEGER ), + 17, - COALESCE ( - 89, 72 ) + + - 60 ) - + 64
----
1
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT + 73 + - + CAST( - 92 AS SIGNED ) + 5
----
170

skipif mysql # not compatible
query I rowsort label-9358
SELECT + 73 + - + CAST ( - 92 AS INTEGER ) + 5
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT DISTINCT 3 col0, - 65 + - 30 + + ( - 86 ) + + - COUNT( * ) + - - 92 * 22 AS col0
----
3
1842

skipif mysql # not compatible
query II rowsort label-9359
SELECT DISTINCT 3 col0, - 65 + - 30 + + ( - 86 ) + + - COUNT ( * ) + - - 92 * 22 AS col0
----
3
1842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT ALL COUNT( * ) DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL COUNT ( * ) / - 98
----
0

query I rowsort
SELECT + NULLIF ( + - 79, - 28 ) * - ( + + 1 ) AS col2
----
79

query I rowsort
SELECT - 81 * + 54 AS col0
----
-4374

query I rowsort
SELECT ALL ( - 27 ) * 0 AS col1
----
0

query I rowsort
SELECT + 25 - + 43 col2
----
-18

query I rowsort
SELECT + - 27 + 98
----
71

query I rowsort
SELECT - + 21 + ( + + 27 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT DISTINCT COUNT( * ) * + 21 + - - MIN( DISTINCT - 6 )
----
15

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT COUNT ( * ) * + 21 + - - MIN ( DISTINCT - 6 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT - ( - - COUNT( + 96 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9368
SELECT - ( - - COUNT ( + 96 ) ) AS col1
----
-1

query I rowsort
SELECT ALL - 91 + 16 AS col0
----
-75

query I rowsort
SELECT - 84 + + - 25 + + ( 42 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL COUNT( - 66 ) + - 42 - + ( - - COALESCE ( + 77, - - 92 + - 32, 43 * + 70 * - 16 + 36 ) )
----
-118

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL COUNT ( - 66 ) + - 42 - + ( - - COALESCE ( + 77, - - 92 + - 32, 43 * + 70 * - 16 + 36 ) )
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT ALL CAST( - 14 AS SIGNED ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL CAST ( - 14 AS INTEGER ) col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9373
SELECT - ( - 95 ) + - CASE + 92 WHEN 85 * MIN( ALL ( - 29 ) ) + + 66 * - - CASE - MIN( ALL + 56 ) WHEN 73 THEN + 43 DIV CAST( NULL AS DECIMAL ) WHEN 48 THEN NULL END + + 52 THEN NULL ELSE - 81 END DIV - 18 + - 31 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9373
SELECT - ( - 95 ) + - CASE + 92 WHEN 85 * MIN ( ALL ( - 29 ) ) + + 66 * - - CASE - MIN ( ALL + 56 ) WHEN 73 THEN + 43 / CAST ( NULL AS REAL ) WHEN 48 THEN NULL END + + 52 THEN NULL ELSE - 81 END / - 18 + - 31 AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9374
SELECT DISTINCT 6, ( 10 ) * - COUNT( * ) DIV - ( 76 ) AS col0
----
6
0

skipif mysql # not compatible
query II rowsort label-9374
SELECT DISTINCT 6, ( 10 ) * - COUNT ( * ) / - ( 76 ) AS col0
----
6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - NULLIF ( - - 2, 58 ) + - + 25 + - + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - NULLIF ( - - 2, 58 ) + - + 25 + - + COUNT ( * )
----
-28

query I rowsort
SELECT - + 20 + - - 6
----
-14

query I rowsort
SELECT + AVG ( DISTINCT + + CASE 47 WHEN + ( 25 ) THEN + + 60 WHEN 37 THEN + 59 * - 69 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 39 * + - CASE - + 51 WHEN - NULLIF ( + 78, + 37 ) + - ( - - 89 ) / + 80 THEN 11 END + - 32 AS col2
----
NULL

query I rowsort
SELECT - 86 * - 97 * ( + 88 ) + - - 53 AS col2
----
734149

query I rowsort
SELECT DISTINCT + 2 * 10 AS col1
----
20

query I rowsort
SELECT DISTINCT + NULLIF ( ( 27 ), + ( + - 42 ) )
----
27

query I rowsort
SELECT DISTINCT 59 * + - 67 + - + 65 * + 98
----
-10323

query II rowsort
SELECT ( + 81 ) AS col0, 97 + + ( - 19 )
----
81
78

query I rowsort
SELECT ALL + ( - 7 ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT DISTINCT + CAST( 73 AS SIGNED ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT + CAST ( 73 AS INTEGER ) AS col0
----
73

query I rowsort
SELECT COALESCE ( - 17, - 30 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT COALESCE ( - 0, + 58 + + 37 + COUNT( ALL + 12 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9387
SELECT COALESCE ( - 0, + 58 + + 37 + COUNT ( ALL + 12 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9388
SELECT ALL + ( + - 39 ), - 41 * - + CAST( NULL AS SIGNED ) col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-9388
SELECT ALL + ( + - 39 ), - 41 * - + CAST ( NULL AS INTEGER ) col2
----
-39
NULL

query I rowsort
SELECT + 56 - + - CASE + + 49 WHEN - - 42 THEN - 21 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL MIN( - 30 ) * + 17
----
-510

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL MIN ( - 30 ) * + 17
----
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT DISTINCT - CASE + 90 WHEN + + 58 - - 49 * - + MIN( 75 ) + - CAST( 52 AS SIGNED ) * + + 92 + - CAST( - - COALESCE ( - - 15, 73 ) AS SIGNED ) THEN + 44 - - 17 ELSE - + 43 * + + MIN( DISTINCT - 37 ) + + 30 END * - 21
----
34041

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT - CASE + 90 WHEN + + 58 - - 49 * - + MIN ( 75 ) + - CAST ( 52 AS INTEGER ) * + + 92 + - CAST ( - - COALESCE ( - - 15, 73 ) AS INTEGER ) THEN + 44 - - 17 ELSE - + 43 * + + MIN ( DISTINCT - 37 ) + + 30 END * - 21
----
34041

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT DISTINCT + ( - - COALESCE ( - 16, 2 * + 75 - 60 + + - 32 * - + 29 - + COUNT( * ), - NULLIF ( + COALESCE ( COALESCE ( 86, + - COALESCE ( - 84, + 86 ) * - COALESCE ( + 94, + 56 ), - 34 * - ( + 88 ) ), + 5 + - 79, 9 ), 19 * 29 - - 47 * 40 ) ) ) * - 46
----
736

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT + ( - - COALESCE ( - 16, 2 * + 75 - 60 + + - 32 * - + 29 - + COUNT ( * ), - NULLIF ( + COALESCE ( COALESCE ( 86, + - COALESCE ( - 84, + 86 ) * - COALESCE ( + 94, + 56 ), - 34 * - ( + 88 ) ), + 5 + - 79, 9 ), 19 * 29 - - 47 * 40 ) ) ) * - 46
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT MIN( + + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-9393
SELECT MIN ( + + 30 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9394
SELECT - 20 / COUNT( * ) * - - ( - CAST( - 75 AS SIGNED ) ) * + 48 * - CASE 96 WHEN - - CAST( NULL AS SIGNED ) THEN - 77 * - 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT - 20 / COUNT ( * ) * - - ( - CAST ( - 75 AS INTEGER ) ) * + 48 * - CASE 96 WHEN - - CAST ( NULL AS INTEGER ) THEN - 77 * - 77 ELSE NULL END
----
NULL

query II rowsort
SELECT + 26 * + + 48 AS col2, + 3
----
1248
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL NULLIF ( - + 65, - MIN( 69 ) ) * + 48 - + COUNT( * )
----
-3121

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL NULLIF ( - + 65, - MIN ( 69 ) ) * + 48 - + COUNT ( * )
----
-3121

query I rowsort
SELECT - 37 * 42 AS col0
----
-1554

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT - + 73 + + MAX( 69 )
----
-4

skipif mysql # not compatible
query I rowsort label-9398
SELECT - + 73 + + MAX ( 69 )
----
-4

query I rowsort
SELECT - - 52 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL MAX( ALL 90 ) + + + 50
----
140

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL MAX ( ALL 90 ) + + + 50
----
140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9401
SELECT + CAST( - 61 AS SIGNED ) DIV + - 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9401
SELECT + CAST ( - 61 AS INTEGER ) / + - 25 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT - MIN( - 76 ) + - 96 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT - MIN ( - 76 ) + - 96 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9403
SELECT + + 29 - - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT + + 29 - - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 60 + 16 * - - 29 col1
----
524

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT + - 54 + - + 61 + + 62 DIV - 51 + + 68
----
-48

skipif mysql # not compatible
query I rowsort label-9405
SELECT + - 54 + - + 61 + + 62 / - 51 + + 68
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9406
SELECT + + 80 * - + CASE + - CAST( 57 AS SIGNED ) WHEN 5 THEN - COUNT( * ) / - - NULLIF ( 20, - - 98 + - 54 + 14 - + 1 * + 81 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT + + 80 * - + CASE + - CAST ( 57 AS INTEGER ) WHEN 5 THEN - COUNT ( * ) / - - NULLIF ( 20, - - 98 + - 54 + 14 - + 1 * + 81 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - + 74 * + COUNT( * ) - + 97 AS col0
----
-171

skipif mysql # not compatible
query I rowsort label-9407
SELECT - + 74 * + COUNT ( * ) - + 97 AS col0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT ALL 31 + + - CAST( NULL AS SIGNED ) - AVG ( DISTINCT - + 56 ) / + CASE + 93 WHEN - 50 THEN - 5 * + 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL 31 + + - CAST ( NULL AS INTEGER ) - AVG ( DISTINCT - + 56 ) / + CASE + 93 WHEN - 50 THEN - 5 * + 91 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT + 70 - 66 DIV 77 col2
----
70

skipif mysql # not compatible
query I rowsort label-9409
SELECT + 70 - 66 / 77 col2
----
70

query I rowsort
SELECT + CASE 85 WHEN 38 THEN - + 42 ELSE + - 13 END AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9411
SELECT ALL COUNT( * ) * - COUNT( * ) DIV + - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL COUNT ( * ) * - COUNT ( * ) / + - 88 AS col2
----
0

query I rowsort
SELECT ALL + - 2 + - 56 * - 69 * + 36 AS col0
----
139102

query I rowsort
SELECT ALL 54 * 32 + 81
----
1809

query II rowsort
SELECT ALL ( + CASE + 15 WHEN - 60 THEN - + 98 END ) AS col1, 53 * - 91 + - 95
----
NULL
-4918

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - 46 + - ( - + COUNT( * ) ) * - - 9 * - 76
----
-730

skipif mysql # not compatible
query I rowsort label-9415
SELECT - 46 + - ( - + COUNT ( * ) ) * - - 9 * - 76
----
-730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT + CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9416
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9417
SELECT + 73 DIV - COUNT( * ) + - MIN( - 22 )
----
-51

skipif mysql # not compatible
query I rowsort label-9417
SELECT + 73 / - COUNT ( * ) + - MIN ( - 22 )
----
-51

query I rowsort
SELECT + 10 + + 79 * - + 36
----
-2834

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT 20 * + MAX( DISTINCT + - 7 ) col0
----
-140

skipif mysql # not compatible
query I rowsort label-9419
SELECT 20 * + MAX ( DISTINCT + - 7 ) col0
----
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-9420
SELECT ALL + ( - - 41 ) - + ( + SUM( ALL + + 80 ) ), - ( 67 ) col2
----
-39
-67

skipif mysql # not compatible
query II rowsort label-9420
SELECT ALL + ( - - 41 ) - + ( + SUM ( ALL + + 80 ) ), - ( 67 ) col2
----
-39
-67

query I rowsort
SELECT 97 * + 15 AS col2
----
1455

query I rowsort
SELECT 6 * - 16 AS col1
----
-96

query I rowsort
SELECT DISTINCT - ( - 51 ) * 99 AS col2
----
5049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT ALL - CAST( AVG ( ALL + + 62 ) AS SIGNED ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL - CAST ( AVG ( ALL + + 62 ) AS INTEGER ) AS col2
----
-62

query I rowsort
SELECT ALL - 81 * - 93
----
7533

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT - COUNT( + - 93 ) * 93 + + ( 18 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT - COUNT ( + - 93 ) * 93 + + ( 18 ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT ALL - CAST( + 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - CAST ( + 50 AS INTEGER )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL - COUNT( DISTINCT 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - COUNT ( DISTINCT 2 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT - MIN( ALL + - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT - MIN ( ALL + - 0 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT ALL - CAST( NULL AS SIGNED ) + + CASE + + 12 WHEN 46 THEN + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - CAST ( NULL AS INTEGER ) + + CASE + + 12 WHEN 46 THEN + 91 END
----
NULL

query I rowsort
SELECT ALL + 47 + - + 90 * - 94 AS col1
----
8507

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT - + COUNT( DISTINCT 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT - + COUNT ( DISTINCT 80 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9433
SELECT COUNT( * ) * ( + 50 ) * + + CAST( - 12 AS SIGNED ) + + 58 + 70 * - 57 AS col0, 81
----
-4532
81

skipif mysql # not compatible
query II rowsort label-9433
SELECT COUNT ( * ) * ( + 50 ) * + + CAST ( - 12 AS INTEGER ) + + 58 + 70 * - 57 AS col0, 81
----
-4532
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9434
SELECT ALL + - 63 * + + ( - 63 ) AS col2, - 56 DIV + + 2 AS col1
----
3969
-28

skipif mysql # not compatible
query II rowsort label-9434
SELECT ALL + - 63 * + + ( - 63 ) AS col2, - 56 / + + 2 AS col1
----
3969
-28

query I rowsort
SELECT ALL + 64 + - 53 AS col0
----
11

query I rowsort
SELECT 46 + - 65
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9437
SELECT + NULLIF ( 96, - 61 ) - - COUNT( * ) DIV - - ( + - 48 ) * - 83 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9437
SELECT + NULLIF ( 96, - 61 ) - - COUNT ( * ) / - - ( + - 48 ) * - 83 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT 36 + COUNT( * ) col1
----
37

skipif mysql # not compatible
query I rowsort label-9438
SELECT 36 + COUNT ( * ) col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9439
SELECT DISTINCT CASE - 31 WHEN - 38 / CAST( NULL AS DECIMAL ) - + 58 THEN NULL WHEN + 92 + + - 20 + - 30 + + CAST( - 89 AS DECIMAL ) / + 22 * 2 * - - MIN( DISTINCT - + 56 ) THEN - 60 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT CASE - 31 WHEN - 38 / CAST ( NULL AS REAL ) - + 58 THEN NULL WHEN + 92 + + - 20 + - 30 + + CAST ( - 89 AS REAL ) / + 22 * 2 * - - MIN ( DISTINCT - + 56 ) THEN - 60 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 96 + + 95
----
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT ALL - CAST( NULL AS SIGNED ) / - 83 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL - CAST ( NULL AS INTEGER ) / - 83 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9442
SELECT DISTINCT COALESCE ( + + COALESCE ( 11, + - MAX( ALL + 22 ) ), ( - 8 ) DIV 52, - - 65 ) - + 72 + + 77 DIV 76
----
-60

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT COALESCE ( + + COALESCE ( 11, + - MAX ( ALL + 22 ) ), ( - 8 ) / 52, - - 65 ) - + 72 + + 77 / 76
----
-60

query II rowsort
SELECT - 64, ( + - 83 ) AS col1
----
-64
-83

query I rowsort
SELECT DISTINCT - 57 - - - 35 + 64
----
-28

query I rowsort
SELECT 64 * - 26 - - 69 * + 38
----
958

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT ALL 28 DIV + 51 * + + 86 * COALESCE ( + + ( + 34 ), + - ( + 58 ) + + 76, - 9 )
----
0

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL 28 / + 51 * + + 86 * COALESCE ( + + ( + 34 ), + - ( + 58 ) + + 76, - 9 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9447
SELECT 7 DIV MIN( 41 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9447
SELECT 7 / MIN ( 41 ) AS col0
----
0

query II rowsort
SELECT 90 AS col0, ( - - 34 ) * + + 99 * + + 72
----
90
242352

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ( - 57 ) + - SUM( DISTINCT - 61 )
----
4

skipif mysql # not compatible
query I rowsort label-9449
SELECT ( - 57 ) + - SUM ( DISTINCT - 61 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9450
SELECT - 18 col0, + 10 * COUNT( * )
----
-18
10

skipif mysql # not compatible
query II rowsort label-9450
SELECT - 18 col0, + 10 * COUNT ( * )
----
-18
10

query I rowsort
SELECT 26 + - 31 * 15 AS col1
----
-439

query I rowsort
SELECT ALL 98 - + ( + + 66 ) AS col1
----
32

query I rowsort
SELECT ALL 68 * - + 22
----
-1496

query I rowsort
SELECT ( + + 30 ) * + 95 AS col0
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT - COUNT( - ( 75 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT - COUNT ( - ( 75 ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT DISTINCT - CASE 37 WHEN - 39 * + 92 + + COUNT( * ) - - 6 THEN - ( - COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT - CASE 37 WHEN - 39 * + 92 + + COUNT ( * ) - - 6 THEN - ( - COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT ALL - ( 17 ) AS col1
----
-17

query I rowsort
SELECT 32 * + + 69
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT COUNT( * ) - - ( + 64 ) + - + ( - 89 )
----
154

skipif mysql # not compatible
query I rowsort label-9459
SELECT COUNT ( * ) - - ( + 64 ) + - + ( - 89 )
----
154

query II rowsort
SELECT 44 * + 43 AS col0, - 69
----
1892
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT ALL + 13 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + 13 / + 44
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9462
SELECT ALL - COUNT( ALL - 1 ) AS col0, - 47 + + + 81 * + - 98
----
-1
-7985

skipif mysql # not compatible
query II rowsort label-9462
SELECT ALL - COUNT ( ALL - 1 ) AS col0, - 47 + + + 81 * + - 98
----
-1
-7985

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT + MAX( ALL - 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9463
SELECT + MAX ( ALL - 90 ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT 34 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT 34 / 85
----
0

query I rowsort
SELECT ALL - 54 + + - 92 AS col2
----
-146

query I rowsort
SELECT ALL + + COALESCE ( + 34, + - 98 ) + 30 AS col0
----
64

query I rowsort
SELECT + 27 - + 51 AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9468
SELECT DISTINCT - + 48 * CASE AVG ( - - 82 ) WHEN + 76 / - - CAST( - 80 AS SIGNED ) THEN + 65 * - + 18 ELSE NULL END AS col2, 26 * 19 + 90 AS col0
----
NULL
584

skipif mysql # not compatible
query II rowsort label-9468
SELECT DISTINCT - + 48 * CASE AVG ( - - 82 ) WHEN + 76 / - - CAST ( - 80 AS INTEGER ) THEN + 65 * - + 18 ELSE NULL END AS col2, 26 * 19 + 90 AS col0
----
NULL
584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL - - 98 + + CAST( COUNT( * ) AS SIGNED ) * + - 76 * - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL - - 98 + + CAST ( COUNT ( * ) AS INTEGER ) * + - 76 * - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 3 * + 70 AS col2
----
-210

query II rowsort
SELECT - 69 AS col0, + 50 + 30
----
-69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + 86 + ( - NULLIF ( MAX( + 69 ), - + 71 * - 36 + + - 17 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9472
SELECT + 86 + ( - NULLIF ( MAX ( + 69 ), - + 71 * - 36 + + - 17 ) ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL + SUM( ALL + + ( - 22 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL + SUM ( ALL + + ( - 22 ) ) AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9474
SELECT + CAST( NULL AS SIGNED ) AS col0, 15 + + - 40 * - 90 * + 86 AS col0
----
NULL
309615

skipif mysql # not compatible
query II rowsort label-9474
SELECT + CAST ( NULL AS INTEGER ) AS col0, 15 + + - 40 * - 90 * + 86 AS col0
----
NULL
309615

query I rowsort
SELECT DISTINCT - 66 - + 98 AS col1
----
-164

query II rowsort
SELECT DISTINCT - 58, - 69 col2
----
-58
-69

query I rowsort
SELECT DISTINCT 5 - + + 62 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT - CAST( - 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-9478
SELECT - CAST ( - 97 AS INTEGER )
----
97

query I rowsort
SELECT - 19 + + 80 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT MAX( DISTINCT - 96 ) * + - 3 * + + 44
----
12672

skipif mysql # not compatible
query I rowsort label-9480
SELECT MAX ( DISTINCT - 96 ) * + - 3 * + + 44
----
12672

query I rowsort
SELECT - 93 * 27 + 87 - + 33 * - - 46
----
-3942

query II rowsort
SELECT - 10 + - - 59 AS col1, 34 AS col0
----
49
34

query I rowsort
SELECT - 63 * - - 8 * 98 AS col1
----
-49392

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT ALL COALESCE ( - - 4, + 68, 60 + + 59 DIV - 42 )
----
4

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL COALESCE ( - - 4, + 68, 60 + + 59 / - 42 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT + 33 + - 94 + - 83 + 70 * + ( - - COALESCE ( - 17, - - 74 ) ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT + 33 + - 94 + - 83 + 70 * + ( - - COALESCE ( - 17, - - 74 ) ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 3 * + 81 AS col1
----
-243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9487
SELECT + CASE 67 WHEN + COUNT( * ) * 40 THEN + 8 WHEN 44 DIV + + 54 + 58 THEN NULL ELSE - - 6 + + COALESCE ( 47, + 44 + 50 ) + + 77 DIV + 51 END
----
54

skipif mysql # not compatible
query I rowsort label-9487
SELECT + CASE 67 WHEN + COUNT ( * ) * 40 THEN + 8 WHEN 44 / + + 54 + 58 THEN NULL ELSE - - 6 + + COALESCE ( 47, + 44 + 50 ) + + 77 / + 51 END
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT + 97 + MAX( 37 )
----
134

skipif mysql # not compatible
query I rowsort label-9488
SELECT + 97 + MAX ( 37 )
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-9489
SELECT 18 DIV + 4 - 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9489
SELECT 18 / + 4 - 2 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9490
SELECT ALL + 73 * 12 DIV COUNT( * ) * - 14 + NULLIF ( + 79, + NULLIF ( - CAST( NULL AS SIGNED ), - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) DIV 26 + 13 DIV - - 96 * + 89 DIV - - ( - + 46 ) )
----
-12185

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL + 73 * 12 / COUNT ( * ) * - 14 + NULLIF ( + 79, + NULLIF ( - CAST ( NULL AS INTEGER ), - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) / 26 + 13 / - - 96 * + 89 / - - ( - + 46 ) )
----
-12185

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9491
SELECT - ( - - 66 ) * 11 * + + 61 - + MIN( DISTINCT 34 ) + - ( - 74 ) AS col2, + CAST( NULL AS DECIMAL ) * 52 * 24 * - 9 AS col1
----
-44246
NULL

skipif mysql # not compatible
query II rowsort label-9491
SELECT - ( - - 66 ) * 11 * + + 61 - + MIN ( DISTINCT 34 ) + - ( - 74 ) AS col2, + CAST ( NULL AS REAL ) * 52 * 24 * - 9 AS col1
----
-44246
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT + ( + MIN( + 93 ) ) - - 72 + - 30 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-9492
SELECT + ( + MIN ( + 93 ) ) - - 72 + - 30 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + NULLIF ( - 96, + + COUNT( * ) + - 63 * - + COUNT( * ) * + 39 + + ( - 52 ) + + 97 - - COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-9493
SELECT + NULLIF ( - 96, + + COUNT ( * ) + - 63 * - + COUNT ( * ) * + 39 + + ( - 52 ) + + 97 - - COUNT ( * ) )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9494
SELECT ALL MIN( ALL 93 ) * + 80 + - 54 DIV 24, 31 * + SUM( + + 20 ) * - - 70 - 32 AS col2
----
7438
43368

skipif mysql # not compatible
query II rowsort label-9494
SELECT ALL MIN ( ALL 93 ) * + 80 + - 54 / 24, 31 * + SUM ( + + 20 ) * - - 70 - 32 AS col2
----
7438
43368

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9495
SELECT ALL AVG ( 31 ) * - CAST( NULL AS DECIMAL ) * + 84 + - 5 AS col2, - 74 DIV COUNT( * ) AS col2
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-9495
SELECT ALL AVG ( 31 ) * - CAST ( NULL AS REAL ) * + 84 + - 5 AS col2, - 74 / COUNT ( * ) AS col2
----
NULL
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9496
SELECT DISTINCT + + 71 * - 93 + + NULLIF ( - - CASE + ( - 12 ) WHEN 83 + + 1 THEN - 14 ELSE NULL END, + + COALESCE ( - - COUNT( ALL + 57 ), 86 ) * + CAST( - COUNT( * ) AS DECIMAL ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + + 71 * - 93 + + NULLIF ( - - CASE + ( - 12 ) WHEN 83 + + 1 THEN - 14 ELSE NULL END, + + COALESCE ( - - COUNT ( ALL + 57 ), 86 ) * + CAST ( - COUNT ( * ) AS REAL ) ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 69 * + 3 + - + 47 AS col1
----
160

query I rowsort
SELECT ALL 96 * - - 58 + - + 82 + + 16 col2
----
5502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT + - 67 + CASE + - 70 WHEN - 33 - COUNT( ALL + 48 ) - - - CAST( NULL AS SIGNED ) * COUNT( * ) + - 13 * + + 82 * - - 68 THEN NULL WHEN - + COUNT( * ) + + 66 / 3 THEN NULL WHEN + - 4 THEN COUNT( * ) ELSE NULL END * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT + - 67 + CASE + - 70 WHEN - 33 - COUNT ( ALL + 48 ) - - - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 13 * + + 82 * - - 68 THEN NULL WHEN - + COUNT ( * ) + + 66 / 3 THEN NULL WHEN + - 4 THEN COUNT ( * ) ELSE NULL END * 33
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9500
SELECT - + ( + + 6 ) + + ( - 64 ) * 52 * - 62 + - COUNT( * ) AS col0, + 5 AS col0
----
206329
5

skipif mysql # not compatible
query II rowsort label-9500
SELECT - + ( + + 6 ) + + ( - 64 ) * 52 * - 62 + - COUNT ( * ) AS col0, + 5 AS col0
----
206329
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9501
SELECT ALL + COUNT( + + 76 ), 14 DIV + 34 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-9501
SELECT ALL + COUNT ( + + 76 ), 14 / + 34 AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT - COUNT( * ) + - + ( + ( + ( + 68 ) ) ) + - 92
----
-161

skipif mysql # not compatible
query I rowsort label-9502
SELECT - COUNT ( * ) + - + ( + ( + ( + 68 ) ) ) + - 92
----
-161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9503
SELECT - + COUNT( * ) DIV 7 * + COUNT( ALL - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9503
SELECT - + COUNT ( * ) / 7 * + COUNT ( ALL - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT COALESCE ( + - 82, 81 ) * - COUNT( DISTINCT - 71 ) * 25 + COUNT( * ) + - + 56 + - - 55 * 98 + 50
----
7435

skipif mysql # not compatible
query I rowsort label-9504
SELECT COALESCE ( + - 82, 81 ) * - COUNT ( DISTINCT - 71 ) * 25 + COUNT ( * ) + - + 56 + - - 55 * 98 + 50
----
7435

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL 20 * 86 - - + MIN( - 15 )
----
1705

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL 20 * 86 - - + MIN ( - 15 )
----
1705

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT - 64 + + SUM( + 0 ) * - - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9506
SELECT - 64 + + SUM ( + 0 ) * - - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL + + 91 * - - MIN( ALL - + 35 ) * - 21
----
66885

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL + + 91 * - - MIN ( ALL - + 35 ) * - 21
----
66885

query I rowsort
SELECT + + 40 + - 2 AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9509
SELECT + COALESCE ( 46, + - 67 * + AVG ( - + 1 ) ) DIV - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-9509
SELECT + COALESCE ( 46, + - 67 * + AVG ( - + 1 ) ) / - COUNT ( * )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9510
SELECT + - 65 + + CAST( NULL AS SIGNED ), - 33 AS col1, - CAST( NULL AS SIGNED )
----
NULL
-33
NULL

skipif mysql # not compatible
query III rowsort label-9510
SELECT + - 65 + + CAST ( NULL AS INTEGER ), - 33 AS col1, - CAST ( NULL AS INTEGER )
----
NULL
-33
NULL

query II rowsort
SELECT 7, 10 col0
----
7
10

query I rowsort
SELECT ALL ( + - 94 )
----
-94

query II rowsort
SELECT - 81 + - - 7 + + 46 AS col0, 45 * 40 AS col2
----
-28
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT DISTINCT CASE + 25 WHEN + - 66 THEN NULL WHEN 78 + 66 THEN + - 95 + 30 / 93 * 18 * + 89 ELSE - - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT CASE + 25 WHEN + - 66 THEN NULL WHEN 78 + 66 THEN + - 95 + 30 / 93 * 18 * + 89 ELSE - - COUNT ( * ) END
----
1

query I rowsort
SELECT ALL NULLIF ( + 57, 56 ) AS col0
----
57

query I rowsort
SELECT - 57 + 49 AS col2
----
-8

query I rowsort
SELECT DISTINCT - COALESCE ( - 41, - 10 + - 35 ) + + 87 AS col2
----
128

query I rowsort
SELECT ALL + 85 + + 65 AS col2
----
150

query II rowsort
SELECT 7 AS col1, + 14
----
7
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT - 3 DIV - ( 74 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT - 3 / - ( 74 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9521
SELECT ALL - 22 + + - SUM( DISTINCT + 1 ) col1, - COUNT( * ) AS col0
----
-23
-1

skipif mysql # not compatible
query II rowsort label-9521
SELECT ALL - 22 + + - SUM ( DISTINCT + 1 ) col1, - COUNT ( * ) AS col0
----
-23
-1

query I rowsort
SELECT DISTINCT - 13 * + - 23 * + 73 AS col2
----
21827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT + COALESCE ( 91, + 72, + 48 - COUNT( * ) - 47 - - + 42 * 62 ) + + 69 + COUNT( * ) * - 72 * + 77 * COUNT( DISTINCT NULLIF ( + 94, CAST( - ( 62 ) AS SIGNED ) / + 35 ) ) * - 31 * - 41 * - 33 AS col0
----
232532152

skipif mysql # not compatible
query I rowsort label-9523
SELECT + COALESCE ( 91, + 72, + 48 - COUNT ( * ) - 47 - - + 42 * 62 ) + + 69 + COUNT ( * ) * - 72 * + 77 * COUNT ( DISTINCT NULLIF ( + 94, CAST ( - ( 62 ) AS INTEGER ) / + 35 ) ) * - 31 * - 41 * - 33 AS col0
----
232532152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT ALL CAST( + 97 AS SIGNED ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL CAST ( + 97 AS INTEGER ) AS col1
----
97

query I rowsort
SELECT - 73 * + ( + + 17 ) AS col0
----
-1241

query I rowsort
SELECT + 79 + + - ( - 29 )
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-9527
SELECT + COUNT( * ), - 67 + - - 66 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-9527
SELECT + COUNT ( * ), - 67 + - - 66 AS col0
----
1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT ALL 97 DIV - 34 + - - 84
----
82

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL 97 / - 34 + - - 84
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9529
SELECT CAST( NULL AS SIGNED ) AS col0, 93 AS col0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-9529
SELECT CAST ( NULL AS INTEGER ) AS col0, 93 AS col0
----
NULL
93

query I rowsort
SELECT + 43 * - 87 * + 88
----
-329208

onlyif mysql # DIV for integer division: 
query I rowsort label-9531
SELECT ALL 55 DIV - 15 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL 55 / - 15 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT ALL - 36 DIV 40 + - - 41 - 88 + 79 + 30 * 26 * - 72 + - 19 + + 47 * - 24
----
-57275

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL - 36 / 40 + - - 41 - 88 + 79 + 30 * 26 * - 72 + - 19 + + 47 * - 24
----
-57275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9533
SELECT 47, CAST( + 31 AS SIGNED ) AS col1
----
47
31

skipif mysql # not compatible
query II rowsort label-9533
SELECT 47, CAST ( + 31 AS INTEGER ) AS col1
----
47
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT ALL + NULLIF ( - - 5, - - 97 ) DIV - 91 * + COUNT( * ) - + 51 * + 32 AS col0
----
-1632

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL + NULLIF ( - - 5, - - 97 ) / - 91 * + COUNT ( * ) - + 51 * + 32 AS col0
----
-1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT - + 88 - 66 + CAST( - - 12 AS SIGNED ) * - + 58 AS col0
----
-850

skipif mysql # not compatible
query I rowsort label-9535
SELECT - + 88 - 66 + CAST ( - - 12 AS INTEGER ) * - + 58 AS col0
----
-850

query I rowsort
SELECT + + 7 * - - NULLIF ( + 27, + - 29 ) AS col0
----
189

query I rowsort
SELECT + + 38 + 79 * + - NULLIF ( - CASE 78 WHEN - NULLIF ( - - 54, - + NULLIF ( - - 10, + 28 * 5 * + 95 - 70 - 25 + - - 60 + + 91 * - 49 * 91 ) ) THEN + 79 ELSE NULL END, - 26 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT ALL + - ( + COUNT( * ) ) DIV + + 84 * COUNT( * ) - - - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL + - ( + COUNT ( * ) ) / + + 84 * COUNT ( * ) - - - 77 AS col0
----
-77

query II rowsort
SELECT DISTINCT + 73 AS col1, - 73 + - 31 AS col0
----
73
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9540
SELECT + CAST( NULL AS SIGNED ) * + ( - MAX( + 86 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT + CAST ( NULL AS INTEGER ) * + ( - MAX ( + 86 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 8 * + 84 AS col1
----
672

query I rowsort
SELECT DISTINCT + NULLIF ( - + 80, ( 24 ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9543
SELECT + 78 * + - ( + 21 ) AS col0, - 60 * - COUNT( * ) * - 95 * + - 53 AS col1
----
-1638
302100

skipif mysql # not compatible
query II rowsort label-9543
SELECT + 78 * + - ( + 21 ) AS col0, - 60 * - COUNT ( * ) * - 95 * + - 53 AS col1
----
-1638
302100

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + - 80 * + - MAX( ALL + 91 ) AS col1
----
7280

skipif mysql # not compatible
query I rowsort label-9544
SELECT + - 80 * + - MAX ( ALL + 91 ) AS col1
----
7280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9545
SELECT ALL + - COUNT( * ), COALESCE ( - 0, - 53 * - COALESCE ( - 60, - + 9, + 5 ) * 40 + + + 28 + 16 - 54 * - - 95 * + 37, - 63 * + 87 + - + CAST( + CAST( + 55 AS DECIMAL ) AS SIGNED ) + - 20 + + ( - + 82 ) + - 90 + - ( - 77 ) DIV + 71 * - 36 DIV + + 79 ) AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-9545
SELECT ALL + - COUNT ( * ), COALESCE ( - 0, - 53 * - COALESCE ( - 60, - + 9, + 5 ) * 40 + + + 28 + 16 - 54 * - - 95 * + 37, - 63 * + 87 + - + CAST ( + CAST ( + 55 AS REAL ) AS INTEGER ) + - 20 + + ( - + 82 ) + - 90 + - ( - 77 ) / + 71 * - 36 / + + 79 ) AS col0
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9546
SELECT 64 AS col0, - ( + + ( + 13 ) ) * - + COUNT( * )
----
64
13

skipif mysql # not compatible
query II rowsort label-9546
SELECT 64 AS col0, - ( + + ( + 13 ) ) * - + COUNT ( * )
----
64
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT CASE - - 38 WHEN + ( COALESCE ( - - 48, - CAST( - 46 AS SIGNED ) * - + CASE + 95 WHEN 61 THEN + 8 * + 91 - 4 WHEN - + 22 * ( + COUNT( * ) ) / + 26 + - CAST( NULL AS SIGNED ) + - - AVG ( - + ( + - 25 ) ) THEN + - 70 END * - 85 + - + 6 - + 19, COALESCE ( - - ( - 9 ), + 2, ( + COUNT( * ) ) ) * - 52 ) ) THEN - AVG ( - 70 ) + + 76 * 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT CASE - - 38 WHEN + ( COALESCE ( - - 48, - CAST ( - 46 AS INTEGER ) * - + CASE + 95 WHEN 61 THEN + 8 * + 91 - 4 WHEN - + 22 * ( + COUNT ( * ) ) / + 26 + - CAST ( NULL AS INTEGER ) + - - AVG ( - + ( + - 25 ) ) THEN + - 70 END * - 85 + - + 6 - + 19, COALESCE ( - - ( - 9 ), + 2, ( + COUNT ( * ) ) ) * - 52 ) ) THEN - AVG ( - 70 ) + + 76 * 22 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT ALL - 25 DIV - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - 25 / - COUNT ( * )
----
25

query I rowsort
SELECT - 84 * 94
----
-7896

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT ALL 46 DIV + 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL 46 / + 63 col0
----
0

query I rowsort
SELECT DISTINCT 4 + + 1 * 77
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9552
SELECT DISTINCT + CAST( + 41 AS SIGNED ) + - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT + CAST ( + 41 AS INTEGER ) + - COUNT ( * ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL + CAST( - 34 AS SIGNED ) + - 51 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + CAST ( - 34 AS INTEGER ) + - 51 AS col1
----
-85

query I rowsort
SELECT ALL - 91 + - 5 + - 21
----
-117

query I rowsort
SELECT 41 - + ( 77 ) + - 12 * - 90 - + + 42
----
1002

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9556
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 82 AS col2, - 7 - NULLIF ( 37, - + 64 + - + 27 * - 9 / 43 )
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-9556
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 82 AS col2, - 7 - NULLIF ( 37, - + 64 + - + 27 * - 9 / 43 )
----
NULL
-44

query I rowsort
SELECT ALL - 64 * ( + + 60 )
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT 60 + + COUNT( * ) + + 55
----
116

skipif mysql # not compatible
query I rowsort label-9558
SELECT 60 + + COUNT ( * ) + + 55
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ALL - 91 - - 25 + - 83 * - COUNT( * ) + - ( - - 81 ) + + 74 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL - 91 - - 25 + - 83 * - COUNT ( * ) + - ( - - 81 ) + + 74 AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT ( + ( - 86 ) ) DIV + 53 + 95
----
94

skipif mysql # not compatible
query I rowsort label-9560
SELECT ( + ( - 86 ) ) / + 53 + 95
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL + + COALESCE ( CASE - ( - 48 ) WHEN - - 24 THEN NULL WHEN + 48 THEN + - 29 * - + 41 ELSE - COUNT( + 7 ) + + CAST( + + 3 AS SIGNED ) END, + 97, - ( + + 61 ), - 70 ) * + COUNT( * ) - - CASE - ( 39 ) WHEN + 74 * - 50 THEN 89 WHEN + - COUNT( * ) - + ( - + 81 ) THEN - + 99 * 51 WHEN - 48 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + + COALESCE ( CASE - ( - 48 ) WHEN - - 24 THEN NULL WHEN + 48 THEN + - 29 * - + 41 ELSE - COUNT ( + 7 ) + + CAST ( + + 3 AS INTEGER ) END, + 97, - ( + + 61 ), - 70 ) * + COUNT ( * ) - - CASE - ( 39 ) WHEN + 74 * - 50 THEN 89 WHEN + - COUNT ( * ) - + ( - + 81 ) THEN - + 99 * 51 WHEN - 48 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 36 + ( + 33 ) AS col0
----
69

query I rowsort
SELECT 67 * - - 30 + + 78 AS col0
----
2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT + NULLIF ( 49, + CAST( + 61 AS SIGNED ) ) * - - 89 - + - 90 + + CASE 58 WHEN COUNT( * ) THEN NULL WHEN + 63 THEN 95 END + + + 43 - 82 * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT + NULLIF ( 49, + CAST ( + 61 AS INTEGER ) ) * - - 89 - + - 90 + + CASE 58 WHEN COUNT ( * ) THEN NULL WHEN + 63 THEN 95 END + + + 43 - 82 * - 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9565
SELECT ALL - MIN( - 15 ) AS col1, ( + - 30 ) + - + 45 - - 77
----
15
2

skipif mysql # not compatible
query II rowsort label-9565
SELECT ALL - MIN ( - 15 ) AS col1, ( + - 30 ) + - + 45 - - 77
----
15
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9566
SELECT - 96 DIV - - 72 AS col1, 34
----
-1
34

skipif mysql # not compatible
query II rowsort label-9566
SELECT - 96 / - - 72 AS col1, 34
----
-1
34

query I rowsort
SELECT DISTINCT - ( + + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL 54 * COUNT( * ) + + - 33
----
21

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL 54 * COUNT ( * ) + + - 33
----
21

query I rowsort
SELECT - 23 + + 60 col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT - + 21 * - + ( - - COUNT( * ) ) + 9 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9570
SELECT - + 21 * - + ( - - COUNT ( * ) ) + 9 AS col1
----
30

query I rowsort
SELECT DISTINCT 38 + - + 98
----
-60

query I rowsort
SELECT ALL 43 * - + COALESCE ( 84, - 55 ) + - 15 AS col2
----
-3627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT - 12 * - - 90 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9573
SELECT - 12 * - - 90 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL - + NULLIF ( 55, NULLIF ( + - 93, ( - + 64 ) * + 6 + - ( 68 ) ) * 96 + NULLIF ( 18, - ( + + COUNT( * ) ) * - - 51 ) + + 23 ) + - - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL - + NULLIF ( 55, NULLIF ( + - 93, ( - + 64 ) * + 6 + - ( 68 ) ) * 96 + NULLIF ( 18, - ( + + COUNT ( * ) ) * - - 51 ) + + 23 ) + - - COUNT ( * )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT ALL - 88 + - COALESCE ( - + 31, - 71, - CAST( NULL AS SIGNED ) * 71 )
----
-57

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - 88 + - COALESCE ( - + 31, - 71, - CAST ( NULL AS INTEGER ) * 71 )
----
-57

query I rowsort
SELECT 16 + - 29 AS col1
----
-13

query II rowsort
SELECT ALL 58 AS col1, + 69 + - 49 + + - 76 * + 21
----
58
-1576

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL 98 + COUNT( DISTINCT - - 36 ) * 8
----
106

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL 98 + COUNT ( DISTINCT - - 36 ) * 8
----
106

query II rowsort
SELECT ALL 69 col0, 25
----
69
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ( + + 74 ) + + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-9580
SELECT ( + + 74 ) + + + COUNT ( * )
----
75

query I rowsort
SELECT DISTINCT ( - - 26 ) + - + 15 + - 3 + + - CASE 42 WHEN - 6 THEN NULL ELSE 93 + 66 + - - 24 END + 68
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT ALL 86 + - + ( + 69 ) + - + 23 - - + 4 + - COUNT( * ) * COUNT( * ) * - - MIN( - - 52 ) * + + CAST( - 16 AS SIGNED ) * 87 - 9 AS col0
----
72373

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL 86 + - + ( + 69 ) + - + 23 - - + 4 + - COUNT ( * ) * COUNT ( * ) * - - MIN ( - - 52 ) * + + CAST ( - 16 AS INTEGER ) * 87 - 9 AS col0
----
72373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9583
SELECT ALL CAST( NULL AS SIGNED ) * + COALESCE ( - MIN( + ( - ( + 49 ) ) ), + COUNT( * ) * 21 * + + NULLIF ( 83, COUNT( 38 ) ) - 79 - + 12 * - 16 * MIN( ALL - - 29 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL CAST ( NULL AS INTEGER ) * + COALESCE ( - MIN ( + ( - ( + 49 ) ) ), + COUNT ( * ) * 21 * + + NULLIF ( 83, COUNT ( 38 ) ) - 79 - + 12 * - 16 * MIN ( ALL - - 29 ) ) col1
----
NULL

query I rowsort
SELECT ( - 34 ) + 85
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT - SUM( - COALESCE ( - 39, + - 49 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-9585
SELECT - SUM ( - COALESCE ( - 39, + - 49 ) )
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-9586
SELECT ( + 5 ) DIV - 8 AS col1, 9 AS col0
----
0
9

skipif mysql # not compatible
query II rowsort label-9586
SELECT ( + 5 ) / - 8 AS col1, 9 AS col0
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT COUNT( * ) * SUM( ALL - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-9587
SELECT COUNT ( * ) * SUM ( ALL - 84 )
----
-84

query I rowsort
SELECT 76 * 4 AS col2
----
304

query I rowsort
SELECT 79 * + + ( + + 31 )
----
2449

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT 85 + + 15 * - COUNT( * ) + - 44 + - 97 * 96 AS col2
----
-9286

skipif mysql # not compatible
query I rowsort label-9590
SELECT 85 + + 15 * - COUNT ( * ) + - 44 + - 97 * 96 AS col2
----
-9286

onlyif mysql # aggregate syntax: 
query II rowsort label-9591
SELECT DISTINCT + ( - 87 ) * - + 56 AS col0, COUNT( 32 ) * + - 52 * - 12 AS col0
----
4872
624

skipif mysql # not compatible
query II rowsort label-9591
SELECT DISTINCT + ( - 87 ) * - + 56 AS col0, COUNT ( 32 ) * + - 52 * - 12 AS col0
----
4872
624

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT DISTINCT + - MAX( ALL + 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT + - MAX ( ALL + 59 ) AS col2
----
-59

query I rowsort
SELECT + + 31 * - 54 + + 24 - - 54 AS col0
----
-1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT CAST( - 96 AS SIGNED ) * + - CAST( - 42 AS SIGNED ) + 51 * + + 49 * - 45
----
-116487

skipif mysql # not compatible
query I rowsort label-9594
SELECT CAST ( - 96 AS INTEGER ) * + - CAST ( - 42 AS INTEGER ) + 51 * + + 49 * - 45
----
-116487

query I rowsort
SELECT + - 30 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - MAX( + + 80 ) + - 7 * - 55 * - 11
----
-4315

skipif mysql # not compatible
query I rowsort label-9596
SELECT - MAX ( + + 80 ) + - 7 * - 55 * - 11
----
-4315

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL ( + 2 ) * + SUM( DISTINCT - - 37 ) + + + 39 - - + 25 * 44 + 26 + - 0
----
1239

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL ( + 2 ) * + SUM ( DISTINCT - - 37 ) + + + 39 - - + 25 * 44 + 26 + - 0
----
1239

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL 30 * - + 17 + - 53 * + + COUNT( * )
----
-563

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL 30 * - + 17 + - 53 * + + COUNT ( * )
----
-563

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT MIN( - + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-9599
SELECT MIN ( - + 21 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9600
SELECT - COUNT( * ) DIV COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9600
SELECT - COUNT ( * ) / COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9601
SELECT COUNT( * ) AS col2, + 74
----
1
74

skipif mysql # not compatible
query II rowsort label-9601
SELECT COUNT ( * ) AS col2, + 74
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - 81 + - COUNT( * ) + + MIN( + 73 ) - + 90 * + + ( COUNT( * ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9602
SELECT - 81 + - COUNT ( * ) + + MIN ( + 73 ) - + 90 * + + ( COUNT ( * ) ) AS col2
----
-99

query I rowsort
SELECT + 86 * - + 44 * - + 20
----
75680

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT SUM( DISTINCT + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9604
SELECT SUM ( DISTINCT + 12 )
----
12

query II rowsort
SELECT - 68, 21 AS col1
----
-68
21

query I rowsort
SELECT ALL ( + + 85 ) + - + 17
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT + 9 - + MAX( DISTINCT 1 ) col2
----
8

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + 9 - + MAX ( DISTINCT 1 ) col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9608
SELECT 61 AS col0, CAST( - 77 AS SIGNED )
----
61
-77

skipif mysql # not compatible
query II rowsort label-9608
SELECT 61 AS col0, CAST ( - 77 AS INTEGER )
----
61
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9609
SELECT - MAX( ALL - 81 ) * + + 92 / - 65 * - ( - - ( - 83 ) ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT - MAX ( ALL - 81 ) * + + 92 / - 65 * - ( - - ( - 83 ) ) / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - COUNT( * ) + - + 43
----
-44

skipif mysql # not compatible
query I rowsort label-9610
SELECT - COUNT ( * ) + - + 43
----
-44

query I rowsort
SELECT + ( + 53 ) - - + 69 * + 15 + + 5
----
1093

onlyif mysql # aggregate syntax: 
query II rowsort label-9612
SELECT 85, 53 - - COALESCE ( - COUNT( * ), MAX( + 24 ) ) * - 77 * + 31 AS col0
----
85
2440

skipif mysql # not compatible
query II rowsort label-9612
SELECT 85, 53 - - COALESCE ( - COUNT ( * ), MAX ( + 24 ) ) * - 77 * + 31 AS col0
----
85
2440

query II rowsort
SELECT DISTINCT ( - 57 ) AS col0, 58
----
-57
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9614
SELECT + 78 DIV + 68 AS col0, COUNT( * ) + + + 73 AS col0, - - COUNT( * ) - - 31 AS col2
----
1
74
32

skipif mysql # not compatible
query III rowsort label-9614
SELECT + 78 / + 68 AS col0, COUNT ( * ) + + + 73 AS col0, - - COUNT ( * ) - - 31 AS col2
----
1
74
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9615
SELECT + - SUM( DISTINCT 53 ) + 1 DIV 41 AS col0, 80
----
-53
80

skipif mysql # not compatible
query II rowsort label-9615
SELECT + - SUM ( DISTINCT 53 ) + 1 / 41 AS col0, 80
----
-53
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9616
SELECT + + 76 / + - CAST( NULL AS SIGNED ) + + 3 + - - 4 - - 45 * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT + + 76 / + - CAST ( NULL AS INTEGER ) + + 3 + - - 4 - - 45 * + 97 AS col0
----
NULL

query I rowsort
SELECT ALL - + 62 * + 63 AS col2
----
-3906

query I rowsort
SELECT ALL 48 * - CASE + - 83 WHEN - 42 / + 92 / + 87 THEN + 60 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9619
SELECT ALL + 1 col0, 42 + 48 + - COUNT( * ) DIV + ( - 64 ) * COUNT( 20 )
----
1
90

skipif mysql # not compatible
query II rowsort label-9619
SELECT ALL + 1 col0, 42 + 48 + - COUNT ( * ) / + ( - 64 ) * COUNT ( 20 )
----
1
90

query I rowsort
SELECT + COALESCE ( - + 76, - + NULLIF ( 66, - 17 + + 74 ) ) + 70 * ( 5 ) col2
----
274

query I rowsort
SELECT + 1 * - + ( + 77 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + 45 + + ( 27 ) * - CASE + + 48 WHEN + - COUNT( + 79 ) * + 71 * - 39 * + - 95 * - + COALESCE ( 43, - - 6 + 70 ) + - COUNT( * ) + 63 THEN NULL ELSE - ( - 10 ) END - + 28 + + + 24 AS col0
----
-229

skipif mysql # not compatible
query I rowsort label-9622
SELECT + 45 + + ( 27 ) * - CASE + + 48 WHEN + - COUNT ( + 79 ) * + 71 * - 39 * + - 95 * - + COALESCE ( 43, - - 6 + 70 ) + - COUNT ( * ) + 63 THEN NULL ELSE - ( - 10 ) END - + 28 + + + 24 AS col0
----
-229

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9623
SELECT ALL 82 / 6 + 37 + + CAST( NULL AS DECIMAL ) + + + 27 - + 3 / + SUM( 74 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL 82 / 6 + 37 + + CAST ( NULL AS REAL ) + + + 27 - + 3 / + SUM ( 74 ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( ( + 34 ) ) col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9625
SELECT DISTINCT 40 DIV 9 - ( - 55 ) + - 61 - + 13 AS col1, + NULLIF ( - 18, - CAST( + ( - 77 ) AS SIGNED ) ) * - - NULLIF ( 72, + MIN( - 41 ) ) AS col1
----
-15
-1296

skipif mysql # not compatible
query II rowsort label-9625
SELECT DISTINCT 40 / 9 - ( - 55 ) + - 61 - + 13 AS col1, + NULLIF ( - 18, - CAST ( + ( - 77 ) AS INTEGER ) ) * - - NULLIF ( 72, + MIN ( - 41 ) ) AS col1
----
-15
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9626
SELECT ALL - CAST( NULL AS SIGNED ) * - - 76 + ( 39 ) AS col2, 70 * + 40 + + 79 AS col1
----
NULL
2879

skipif mysql # not compatible
query II rowsort label-9626
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 76 + ( 39 ) AS col2, 70 * + 40 + + 79 AS col1
----
NULL
2879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT DISTINCT + ( CAST( 38 AS SIGNED ) )
----
38

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT + ( CAST ( 38 AS INTEGER ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT - 21 + - COUNT( * ) + + 67 - - 46 * + 24
----
1149

skipif mysql # not compatible
query I rowsort label-9628
SELECT - 21 + - COUNT ( * ) + + 67 - - 46 * + 24
----
1149

onlyif mysql # aggregate syntax: 
query II rowsort label-9629
SELECT + 30 col2, - NULLIF ( + - COUNT( * ), + + 61 / 75 ) + - - 36 AS col2
----
30
37

skipif mysql # not compatible
query II rowsort label-9629
SELECT + 30 col2, - NULLIF ( + - COUNT ( * ), + + 61 / 75 ) + - - 36 AS col2
----
30
37

query I rowsort
SELECT ALL - + 65 * + ( + 45 )
----
-2925

query I rowsort
SELECT ALL + 69 * - 86 + - 46 AS col0
----
-5980

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT ( - ( - COALESCE ( + + 94, + 59 + 81 DIV - 1 * - 21, 97 ) ) )
----
94

skipif mysql # not compatible
query I rowsort label-9632
SELECT ( - ( - COALESCE ( + + 94, + 59 + 81 / - 1 * - 21, 97 ) ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL - ( + 61 ) * COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL - ( + 61 ) * COUNT ( * )
----
-61

query I rowsort
SELECT NULLIF ( + - 25, - 77 ) AS col0
----
-25

query I rowsort
SELECT ALL 80 * + - 41 AS col2
----
-3280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9636
SELECT ALL + CASE 43 WHEN + + CAST( + - 99 AS SIGNED ) THEN NULL WHEN + 62 * - 14 THEN + 57 ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + CASE 43 WHEN + + CAST ( + - 99 AS INTEGER ) THEN NULL WHEN + 62 * - 14 THEN + 57 ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9637
SELECT ALL + ( 45 ), + COUNT( * ) AS col2
----
45
1

skipif mysql # not compatible
query II rowsort label-9637
SELECT ALL + ( 45 ), + COUNT ( * ) AS col2
----
45
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9638
SELECT DISTINCT + 59 * 47 - 11 AS col0, - COUNT( * ) AS col2
----
2762
-1

skipif mysql # not compatible
query II rowsort label-9638
SELECT DISTINCT + 59 * 47 - 11 AS col0, - COUNT ( * ) AS col2
----
2762
-1

query I rowsort
SELECT 95 * + 72 + + - 80 * + 49 col1
----
2920

query I rowsort
SELECT ALL ( + ( + + 36 ) )
----
36

query I rowsort
SELECT DISTINCT ( + ( - 93 ) ) AS col1
----
-93

query I rowsort
SELECT - 91 * 12 * 9 AS col2
----
-9828

query I rowsort
SELECT - 97 * - 1
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9644
SELECT DISTINCT CAST( - + 49 AS SIGNED ), 44 DIV - 46 AS col2
----
-49
0

skipif mysql # not compatible
query II rowsort label-9644
SELECT DISTINCT CAST ( - + 49 AS INTEGER ), 44 / - 46 AS col2
----
-49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - MIN( + 25 ) * + 95 + - 24 col0
----
-2399

skipif mysql # not compatible
query I rowsort label-9645
SELECT - MIN ( + 25 ) * + 95 + - 24 col0
----
-2399

query I rowsort
SELECT - CASE WHEN NOT NULL < NULL THEN - 43 WHEN NOT - 54 <> - + 57 - - 86 THEN - COALESCE ( + 27, 11 ) - - 39 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT - 14 * + 12 * - ( + + MAX( ALL - 16 ) ) AS col2
----
-2688

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT - 14 * + 12 * - ( + + MAX ( ALL - 16 ) ) AS col2
----
-2688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9648
SELECT + COUNT( * ) DIV - 9
----
0

skipif mysql # not compatible
query I rowsort label-9648
SELECT + COUNT ( * ) / - 9
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9649
SELECT ALL - 5 * - - COUNT( * ) AS col1, CASE - 44 WHEN - 90 THEN CAST( - 86 AS SIGNED ) WHEN 96 - + 31 + ( + ( + - SUM( 34 ) ) ) THEN - 74 END * + + MIN( ALL - + 62 ) AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-9649
SELECT ALL - 5 * - - COUNT ( * ) AS col1, CASE - 44 WHEN - 90 THEN CAST ( - 86 AS INTEGER ) WHEN 96 - + 31 + ( + ( + - SUM ( 34 ) ) ) THEN - 74 END * + + MIN ( ALL - + 62 ) AS col2
----
-5
NULL

query II rowsort
SELECT - 61 * + 44 AS col0, - 67 col2
----
-2684
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT ALL - ( 31 ) DIV - 3
----
10

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL - ( 31 ) / - 3
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL COUNT( * ) * - 62 * - + 66
----
4092

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL COUNT ( * ) * - 62 * - + 66
----
4092

query II rowsort
SELECT ALL - 60 * - 79 AS col0, 28
----
4740
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9654
SELECT ALL COUNT( - + 98 ) AS col2, - ( - + 22 )
----
1
22

skipif mysql # not compatible
query II rowsort label-9654
SELECT ALL COUNT ( - + 98 ) AS col2, - ( - + 22 )
----
1
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT - 6 * 78 DIV - 49 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9655
SELECT - 6 * 78 / - 49 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT - 76 * + 66 * + + COUNT( * ) col1
----
-5016

skipif mysql # not compatible
query I rowsort label-9656
SELECT - 76 * + 66 * + + COUNT ( * ) col1
----
-5016

query I rowsort
SELECT + 15 - 3 + + + 2 * - 89
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9658
SELECT ALL MAX( - - ( 98 ) ) + + 18 + + ( + 18 ) + + 31 * + + ( - CAST( NULL AS SIGNED ) ) * ( + MAX( - 84 ) ) * + 85 - - 44 + + COUNT( * ) + + + ( - - 82 ) * + 10 * + ( + 86 ) + - NULLIF ( + + 30, - CAST( 0 AS SIGNED ) ) / + + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL MAX ( - - ( 98 ) ) + + 18 + + ( + 18 ) + + 31 * + + ( - CAST ( NULL AS INTEGER ) ) * ( + MAX ( - 84 ) ) * + 85 - - 44 + + COUNT ( * ) + + + ( - - 82 ) * + 10 * + ( + 86 ) + - NULLIF ( + + 30, - CAST ( 0 AS INTEGER ) ) / + + 9 AS col2
----
NULL

query I rowsort
SELECT - - CASE 27 WHEN - 1 THEN NULL ELSE + 44 END
----
44

query I rowsort
SELECT + 43 * - - 26
----
1118

query I rowsort
SELECT ALL + COALESCE ( + 74, 96 - - 28 + + 99 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9662
SELECT DISTINCT - - 1 + + COALESCE ( + - COALESCE ( + CAST( + CASE - 82 WHEN - - 58 + 96 THEN - - 71 END AS SIGNED ), - - 95 ), - COUNT( * ) ) + - + 28 + 58 DIV + 47 * + COUNT( * ), NULLIF ( + CAST( NULL AS SIGNED ), 69 * 24 + + - 97 + - 89 ) + - 95 + + 80 + 67 DIV - 42 * - + CAST( - ( + 81 ) AS SIGNED ) + 13 col1
----
-121
NULL

skipif mysql # not compatible
query II rowsort label-9662
SELECT DISTINCT - - 1 + + COALESCE ( + - COALESCE ( + CAST ( + CASE - 82 WHEN - - 58 + 96 THEN - - 71 END AS INTEGER ), - - 95 ), - COUNT ( * ) ) + - + 28 + 58 / + 47 * + COUNT ( * ), NULLIF ( + CAST ( NULL AS INTEGER ), 69 * 24 + + - 97 + - 89 ) + - 95 + + 80 + 67 / - 42 * - + CAST ( - ( + 81 ) AS INTEGER ) + 13 col1
----
-121
NULL

query I rowsort
SELECT ALL 9 + 1 + AVG ( + 33 ) * - - CASE + 81 WHEN - - 76 * + - 56 THEN NULL WHEN - ( 53 ) * AVG ( 50 ) + - 22 THEN + 23 * + 96 END * - + 2 + + - ( - 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT 60 * + COALESCE ( 1, - - 54 * - NULLIF ( 30, + - 90 ) - 8 - + - 67 * COUNT( * ) * + 61 * 39 + + 76 )
----
60

skipif mysql # not compatible
query I rowsort label-9664
SELECT 60 * + COALESCE ( 1, - - 54 * - NULLIF ( 30, + - 90 ) - 8 - + - 67 * COUNT ( * ) * + 61 * 39 + + 76 )
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-9665
SELECT ALL 48 DIV - - 3, 16 AS col2
----
16
16

skipif mysql # not compatible
query II rowsort label-9665
SELECT ALL 48 / - - 3, 16 AS col2
----
16
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9666
SELECT 8 + + - 2 AS col0, + 11 * - 73 + 69 DIV - CASE 98 WHEN 33 * + 20 - - - 14 * MAX( + 18 ) * - COALESCE ( - 6, - 94 + - 98 ) THEN NULL WHEN + COUNT( * ) * - SUM( ALL - 48 ) THEN NULL ELSE 89 END * + 98
----
6
-803

skipif mysql # not compatible
query II rowsort label-9666
SELECT 8 + + - 2 AS col0, + 11 * - 73 + 69 / - CASE 98 WHEN 33 * + 20 - - - 14 * MAX ( + 18 ) * - COALESCE ( - 6, - 94 + - 98 ) THEN NULL WHEN + COUNT ( * ) * - SUM ( ALL - 48 ) THEN NULL ELSE 89 END * + 98
----
6
-803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT NULLIF ( + 4, - COUNT( * ) ) * - 55 + + 38 + + 86 + 33 + - 84 DIV COUNT( * )
----
-147

skipif mysql # not compatible
query I rowsort label-9667
SELECT NULLIF ( + 4, - COUNT ( * ) ) * - 55 + + 38 + + 86 + 33 + - 84 / COUNT ( * )
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9668
SELECT + CAST( NULL AS SIGNED ) * 83 * + + COUNT( 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT + CAST ( NULL AS INTEGER ) * 83 * + + COUNT ( 78 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL 89 + + COUNT( * ) * - ( - + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 89 + + COUNT ( * ) * - ( - + COUNT ( * ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT MIN( - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9670
SELECT MIN ( - 45 ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT 54 DIV + + 27
----
2

skipif mysql # not compatible
query I rowsort label-9671
SELECT 54 / + + 27
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9672
SELECT COALESCE ( - + 42, - 54 ) * - 33 * - 91 * - 63 + 11 DIV + - 31 + + + 57, + ( 26 ) AS col2
----
7945995
26

skipif mysql # not compatible
query II rowsort label-9672
SELECT COALESCE ( - + 42, - 54 ) * - 33 * - 91 * - 63 + 11 / + - 31 + + + 57, + ( 26 ) AS col2
----
7945995
26

query I rowsort
SELECT ALL 39 - 27
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT DISTINCT + 18 DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + 18 / + 52 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT 9 * + ( - + 1 ) - - + 87 + + MAX( DISTINCT 54 )
----
132

skipif mysql # not compatible
query I rowsort label-9675
SELECT 9 * + ( - + 1 ) - - + 87 + + MAX ( DISTINCT 54 )
----
132

query II rowsort
SELECT 86 AS col1, 71
----
86
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9677
SELECT 44 + + CASE 64 WHEN + 89 THEN COALESCE ( + 3, + + 24 * 4 + 49 / + COALESCE ( 54, + 40 * + 84 ), - - 86 + - - 17 + 56 - + - CAST( + ( - ( - 13 ) ) AS SIGNED ) - - 62 + 55 + + 46 * 54 * + 18 - + + COUNT( DISTINCT + CAST( 66 AS SIGNED ) ) + + COUNT( * ) * + + COUNT( * ) ) WHEN COUNT( - + 52 ) + 28 THEN NULL END - 35 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9677
SELECT 44 + + CASE 64 WHEN + 89 THEN COALESCE ( + 3, + + 24 * 4 + 49 / + COALESCE ( 54, + 40 * + 84 ), - - 86 + - - 17 + 56 - + - CAST ( + ( - ( - 13 ) ) AS INTEGER ) - - 62 + 55 + + 46 * 54 * + 18 - + + COUNT ( DISTINCT + CAST ( 66 AS INTEGER ) ) + + COUNT ( * ) * + + COUNT ( * ) ) WHEN COUNT ( - + 52 ) + 28 THEN NULL END - 35 * - 70
----
NULL

query I rowsort
SELECT 79 * + + 83
----
6557

onlyif mysql # aggregate syntax: 
query II rowsort label-9679
SELECT 29, 61 * - NULLIF ( + COUNT( * ), 27 + - 89 * 90 * 6 ) AS col1
----
29
-61

skipif mysql # not compatible
query II rowsort label-9679
SELECT 29, 61 * - NULLIF ( + COUNT ( * ), 27 + - 89 * 90 * 6 ) AS col1
----
29
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9680
SELECT 32 AS col0, 59 - - 97 + + 70 + COUNT( * ) col2
----
32
227

skipif mysql # not compatible
query II rowsort label-9680
SELECT 32 AS col0, 59 - - 97 + + 70 + COUNT ( * ) col2
----
32
227

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT - 87 AS col0, ( COUNT( * ) ) + ( + CASE - ( COUNT( * ) ) WHEN 92 * + 96 + - 53 + - + COUNT( * ) - + - 45 THEN + + ( - - COUNT( * ) ) + 77 END ) + + 90
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-9681
SELECT - 87 AS col0, ( COUNT ( * ) ) + ( + CASE - ( COUNT ( * ) ) WHEN 92 * + 96 + - 53 + - + COUNT ( * ) - + - 45 THEN + + ( - - COUNT ( * ) ) + 77 END ) + + 90
----
-87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT DISTINCT COUNT( * ) * 57 col2
----
57

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT COUNT ( * ) * 57 col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT 69 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT 69 / 77
----
0

query I rowsort
SELECT DISTINCT - 29 * + + 22 * + 23
----
-14674

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT - CASE 61 WHEN - + 52 + - 30 THEN - 26 / - COALESCE ( + 76, + MIN( 16 ) + - 76 ) * - + 39 + + 5 WHEN - 40 THEN NULL ELSE NULL END + 61 + + ( - 7 ) * + 25 + 39 * 60 / - - ( + 56 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT - CASE 61 WHEN - + 52 + - 30 THEN - 26 / - COALESCE ( + 76, + MIN ( 16 ) + - 76 ) * - + 39 + + 5 WHEN - 40 THEN NULL ELSE NULL END + 61 + + ( - 7 ) * + 25 + 39 * 60 / - - ( + 56 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9686
SELECT COUNT( * ) * - 99 - - - 25, 0 * 13 AS col1
----
-124
0

skipif mysql # not compatible
query II rowsort label-9686
SELECT COUNT ( * ) * - 99 - - - 25, 0 * 13 AS col1
----
-124
0

query I rowsort
SELECT ALL + + 78 + 80
----
158

query I rowsort
SELECT + 0 + + + 99 + 27 + + 0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + 74 * + + ( - COUNT( * ) ) * 17
----
-1258

skipif mysql # not compatible
query I rowsort label-9689
SELECT + 74 * + + ( - COUNT ( * ) ) * 17
----
-1258

query I rowsort
SELECT - 83 - 1 * - 78 AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT CAST( NULL AS SIGNED ) + + 9 - - - 18 * + CASE 44 WHEN 66 THEN + 3 WHEN - 86 THEN NULL END * + 17 + + CAST( NULL AS SIGNED ) * ( + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT CAST ( NULL AS INTEGER ) + + 9 - - - 18 * + CASE 44 WHEN 66 THEN + 3 WHEN - 86 THEN NULL END * + 17 + + CAST ( NULL AS INTEGER ) * ( + 10 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT - 40 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT - 40 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 36 + + 45 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT DISTINCT + ( - 49 ) * - 56 * - + ( + 54 ) + - 83 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT + ( - 49 ) * - 56 * - + ( + 54 ) + - 83 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 93 + + 72 AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT 28 + + COUNT( * ) + - COUNT( DISTINCT + 64 )
----
28

skipif mysql # not compatible
query I rowsort label-9696
SELECT 28 + + COUNT ( * ) + - COUNT ( DISTINCT + 64 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL - MAX( DISTINCT + 69 ) * + 45
----
-3105

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - MAX ( DISTINCT + 69 ) * + 45
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT - CASE 89 WHEN + 39 - - - 74 + + 29 + + - 99 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT - CASE 89 WHEN + 39 - - - 74 + + 29 + + - 99 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 19 * - 62 AS col1
----
1178

query II rowsort
SELECT 93 col1, - 54 + - 91 AS col0
----
93
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9701
SELECT + 31 DIV + + 53 + - 49 - + MIN( + 87 ) * + + 12 AS col1
----
-1093

skipif mysql # not compatible
query I rowsort label-9701
SELECT + 31 / + + 53 + - 49 - + MIN ( + 87 ) * + + 12 AS col1
----
-1093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9702
SELECT CAST( CASE + - 28 WHEN + - 39 + - + 29 THEN 56 / - 24 * - 94 * 16 / - + 35 * + + 71 / - 74 + COUNT( * ) END AS SIGNED ) * 24 * + 66 / - - 95 / 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT CAST ( CASE + - 28 WHEN + - 39 + - + 29 THEN 56 / - 24 * - 94 * 16 / - + 35 * + + 71 / - 74 + COUNT ( * ) END AS INTEGER ) * 24 * + 66 / - - 95 / 6 col1
----
NULL

query I rowsort
SELECT 97 * 35
----
3395

query II rowsort
SELECT ALL - - 82 AS col0, + 73
----
82
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9705
SELECT CASE - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) WHEN - 5 THEN ( CASE 79 WHEN + 84 THEN - 95 END ) WHEN + + ( + + 28 ) / + - 70 + 54 - + COALESCE ( - 2, + 38 * - - 7 * - 60 * - 5 ) THEN + + 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT CASE - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) WHEN - 5 THEN ( CASE 79 WHEN + 84 THEN - 95 END ) WHEN + + ( + + 28 ) / + - 70 + 54 - + COALESCE ( - 2, + 38 * - - 7 * - 60 * - 5 ) THEN + + 54 ELSE NULL END
----
NULL

query I rowsort
SELECT 43 + - 75
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9707
SELECT COALESCE ( 12, + COALESCE ( - 10, + COUNT( * ) * + + 51 DIV + 11 ) * - ( - 1 ) ) col2, - 65 + - + CAST( - 70 AS SIGNED )
----
12
5

skipif mysql # not compatible
query II rowsort label-9707
SELECT COALESCE ( 12, + COALESCE ( - 10, + COUNT ( * ) * + + 51 / + 11 ) * - ( - 1 ) ) col2, - 65 + - + CAST ( - 70 AS INTEGER )
----
12
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9708
SELECT DISTINCT - + 5 AS col2, - 79 * + COUNT( * ) - 50 + - 73 * + COUNT( * )
----
-5
-202

skipif mysql # not compatible
query II rowsort label-9708
SELECT DISTINCT - + 5 AS col2, - 79 * + COUNT ( * ) - 50 + - 73 * + COUNT ( * )
----
-5
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL 63 * COUNT( + 44 ) col0
----
63

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL 63 * COUNT ( + 44 ) col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9710
SELECT 41 DIV COUNT( * ) * + 94 * 52 * + ( - 72 ) + + 80 + + - MIN( ALL - 55 )
----
-14429241

skipif mysql # not compatible
query I rowsort label-9710
SELECT 41 / COUNT ( * ) * + 94 * 52 * + ( - 72 ) + + 80 + + - MIN ( ALL - 55 )
----
-14429241

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT CASE + 75 WHEN - MAX( 50 ) THEN + ( + ( - - 4 ) ) + - 88 + + + COUNT( * ) + COUNT( DISTINCT 22 ) WHEN + - 54 * 28 / - + COALESCE ( - + 7, - 62, + + 97 + - 90 * + 10 * - - 0 + - 99 ) THEN NULL ELSE + 41 END + + 30 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9711
SELECT CASE + 75 WHEN - MAX ( 50 ) THEN + ( + ( - - 4 ) ) + - 88 + + + COUNT ( * ) + COUNT ( DISTINCT 22 ) WHEN + - 54 * 28 / - + COALESCE ( - + 7, - 62, + + 97 + - 90 * + 10 * - - 0 + - 99 ) THEN NULL ELSE + 41 END + + 30 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9712
SELECT ALL ( - + 61 ) * - + 33 * CAST( NULL AS SIGNED ) * 89 + + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL ( - + 61 ) * - + 33 * CAST ( NULL AS INTEGER ) * 89 + + - 47
----
NULL

query I rowsort
SELECT 34 * - - 91 AS col0
----
3094

query I rowsort
SELECT 32 * + 35 * + ( - 52 ) * + 12 + + + 67 AS col0
----
-698813

onlyif mysql # aggregate syntax: 
query II rowsort label-9715
SELECT SUM( - + 90 ) col0, - 93 AS col2
----
-90
-93

skipif mysql # not compatible
query II rowsort label-9715
SELECT SUM ( - + 90 ) col0, - 93 AS col2
----
-90
-93

query I rowsort
SELECT + ( - 81 ) * + 15 + + - 99 * + 17
----
-2898

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9717
SELECT CAST( + + ( 68 ) AS DECIMAL ) * 77 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT CAST ( + + ( 68 ) AS REAL ) * 77 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 60 * - 57
----
-3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT CAST( 41 AS SIGNED ) + + 84
----
125

skipif mysql # not compatible
query I rowsort label-9719
SELECT CAST ( 41 AS INTEGER ) + + 84
----
125

query I rowsort
SELECT + COALESCE ( 33, 36 - - 96 ) AS col1
----
33

query I rowsort
SELECT DISTINCT 78 + + + NULLIF ( + 81, - 62 / NULLIF ( + 65, 99 ) - - ( 65 ) + + 70 ) - - 35 + 32
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT + 98 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT + 98 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 37 * - 85 col1
----
-3145

query I rowsort
SELECT - 81 + + - 41
----
-122

query I rowsort
SELECT ALL + 25 + - 10 * + 20 AS col1
----
-175

query I rowsort
SELECT - - 20 * 68 AS col0
----
1360

query I rowsort
SELECT DISTINCT - 14 * 94 + - 37
----
-1353

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL - + SUM( DISTINCT - 90 ) + + - CASE - + 76 WHEN - + 36 THEN - + 41 END * + + ( + - 69 ) + + - 76 + - NULLIF ( SUM( DISTINCT + 19 ), COUNT( - 79 ) ) * + - 53 * + 41 + - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - + SUM ( DISTINCT - 90 ) + + - CASE - + 76 WHEN - + 36 THEN - + 41 END * + + ( + - 69 ) + + - 76 + - NULLIF ( SUM ( DISTINCT + 19 ), COUNT ( - 79 ) ) * + - 53 * + 41 + - - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT SUM( ALL + + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9729
SELECT SUM ( ALL + + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - 52 * + COUNT( * ) * - 18
----
936

skipif mysql # not compatible
query I rowsort label-9730
SELECT - 52 * + COUNT ( * ) * - 18
----
936

query I rowsort
SELECT ALL - 81 * - CASE + 17 WHEN + - NULLIF ( + 40, + + 90 ) + + 96 / - - 24 THEN + - 99 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9732
SELECT - - 70 DIV - + COUNT( * ) * + + COUNT( * ) + - NULLIF ( - COUNT( * ), - 69 * - 52 * - + 77 + - + 53 + + 76 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9732
SELECT - - 70 / - + COUNT ( * ) * + + COUNT ( * ) + - NULLIF ( - COUNT ( * ), - 69 * - 52 * - + 77 + - + 53 + + 76 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + 0 * + - 13 * - 54 + - + 4 * - COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9733
SELECT + 0 * + - 13 * - 54 + - + 4 * - COUNT ( * ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9734
SELECT SUM( DISTINCT + + CAST( NULL AS SIGNED ) ), + COUNT( * ) * + 14 AS col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-9734
SELECT SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ), + COUNT ( * ) * + 14 AS col1
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL - - MIN( ALL 89 ) - + + ( SUM( 6 ) ) col1
----
83

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - - MIN ( ALL 89 ) - + + ( SUM ( 6 ) ) col1
----
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9736
SELECT ALL + - ( - 9 ) DIV - + CAST( + 1 AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + - ( - 9 ) / - + CAST ( + 1 AS INTEGER ) AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9737
SELECT - + COUNT( * ) DIV + - 88 * 24
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT - + COUNT ( * ) / + - 88 * 24
----
0

query I rowsort
SELECT ALL + 74 * - + 28
----
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT - 70 * 45 * - ( - COUNT( * ) ) - - COUNT( * )
----
-3149

skipif mysql # not compatible
query I rowsort label-9739
SELECT - 70 * 45 * - ( - COUNT ( * ) ) - - COUNT ( * )
----
-3149

query I rowsort
SELECT ALL 39 * + 62
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT + CASE + 19 WHEN + COUNT( * ) THEN - + 0 END * + + NULLIF ( - 68, + - 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + CASE + 19 WHEN + COUNT ( * ) THEN - + 0 END * + + NULLIF ( - 68, + - 82 ) AS col2
----
NULL

query I rowsort
SELECT ( - - 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9743
SELECT + COUNT( * ) DIV + COUNT( * ) + 7
----
8

skipif mysql # not compatible
query I rowsort label-9743
SELECT + COUNT ( * ) / + COUNT ( * ) + 7
----
8

query I rowsort
SELECT ALL + NULLIF ( - 98, - 11 ) * - + 38 AS col2
----
3724

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT 81 * + 19 + - COUNT( DISTINCT + + ( - 0 ) )
----
1538

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT 81 * + 19 + - COUNT ( DISTINCT + + ( - 0 ) )
----
1538

query I rowsort
SELECT DISTINCT + ( + 91 ) AS col0
----
91

query I rowsort
SELECT ALL 56 * - - 35 + - - 73 AS col1
----
2033

query I rowsort
SELECT + ( - 99 ) - 61 AS col0
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT ALL - ( AVG ( + + 11 ) ) * - COUNT( + 13 ) * 53 + - + 32 + + - NULLIF ( - 82, - CASE + 14 WHEN 95 THEN - 20 * + COUNT( * ) END + - 49 * 83 ) + 31 * CASE + 24 WHEN CASE + 92 WHEN 4 / - + NULLIF ( - 19, - MIN( - 74 ) + 93 - + 19 + + CAST( + 50 AS SIGNED ) * + - 86 ) * 26 * + 2 + + 33 + 35 * MIN( - 58 ) * 35 THEN - 43 END THEN - 99 * 74 ELSE NULL END + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - ( AVG ( + + 11 ) ) * - COUNT ( + 13 ) * 53 + - + 32 + + - NULLIF ( - 82, - CASE + 14 WHEN 95 THEN - 20 * + COUNT ( * ) END + - 49 * 83 ) + 31 * CASE + 24 WHEN CASE + 92 WHEN 4 / - + NULLIF ( - 19, - MIN ( - 74 ) + 93 - + 19 + + CAST ( + 50 AS INTEGER ) * + - 86 ) * 26 * + 2 + + 33 + 35 * MIN ( - 58 ) * 35 THEN - 43 END THEN - 99 * 74 ELSE NULL END + + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT + COALESCE ( + COUNT( * ), - - 12 * + + 40 + ( - 38 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9750
SELECT + COALESCE ( + COUNT ( * ), - - 12 * + + 40 + ( - 38 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9751
SELECT ALL ( 6 ) * 10 - + CAST( NULL AS SIGNED ) * + 85 + - - 20 + 90 + - COUNT( * ), 73 + - 38 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-9751
SELECT ALL ( 6 ) * 10 - + CAST ( NULL AS INTEGER ) * + 85 + - - 20 + 90 + - COUNT ( * ), 73 + - 38 AS col2
----
NULL
35

query II rowsort
SELECT COALESCE ( + 67, 66 ) AS col2, - 29
----
67
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9753
SELECT - CAST( 41 AS SIGNED ) DIV 90, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-9753
SELECT - CAST ( 41 AS INTEGER ) / 90, COUNT ( * ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT MIN( + + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9754
SELECT MIN ( + + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL COUNT( DISTINCT - - 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL COUNT ( DISTINCT - - 60 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9756
SELECT ALL - CAST( - - 27 AS SIGNED ) * + 86 * - - 26 * 84 AS col2, + 79, - 23 AS col2
----
-5071248
79
-23

skipif mysql # not compatible
query III rowsort label-9756
SELECT ALL - CAST ( - - 27 AS INTEGER ) * + 86 * - - 26 * 84 AS col2, + 79, - 23 AS col2
----
-5071248
79
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9757
SELECT - - 67 * 75 DIV + 71 + + COUNT( * ) - + 74 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9757
SELECT - - 67 * 75 / + 71 + + COUNT ( * ) - + 74 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT + - COUNT( * ) * - 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9758
SELECT + - COUNT ( * ) * - 42 AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9759
SELECT ALL COALESCE ( + 44, + 13 - + 11, + 59 ) - COUNT( * ) - 55 DIV + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL COALESCE ( + 44, + 13 - + 11, + 59 ) - COUNT ( * ) - 55 / + COUNT ( * )
----
-12

query I rowsort
SELECT + 98 + + 29 - - 68
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT + ( - - COUNT( * ) ) * - 37 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9761
SELECT + ( - - COUNT ( * ) ) * - 37 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT MAX( + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT MAX ( + 96 )
----
96

query I rowsort
SELECT + 11 + - 16 - - - ( 26 ) * - - 52 * + 18
----
-24341

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT - - COUNT( * ) - + + 24 col1
----
-23

skipif mysql # not compatible
query I rowsort label-9764
SELECT - - COUNT ( * ) - + + 24 col1
----
-23

query I rowsort
SELECT - 86 * + 11 AS col2
----
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL SUM( DISTINCT - 26 ) * - - 61 + 25
----
-1561

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL SUM ( DISTINCT - 26 ) * - - 61 + 25
----
-1561

query I rowsort
SELECT + 25 + 42 - 29 + - 96
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL + COUNT( ALL - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL + COUNT ( ALL - 47 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT + + 47 * - 13 DIV 13 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9769
SELECT + + 47 * - 13 / 13 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9770
SELECT ALL ( + CASE + ( + - 10 ) WHEN - + 75 THEN MAX( - 44 ) WHEN + - ( + CAST( NULL AS DECIMAL ) ) THEN 19 - - - 22 * + 3 + + 70 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL ( + CASE + ( + - 10 ) WHEN - + 75 THEN MAX ( - 44 ) WHEN + - ( + CAST ( NULL AS REAL ) ) THEN 19 - - - 22 * + 3 + + 70 END )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9771
SELECT DISTINCT 43 AS col2, + 32 DIV + ( 66 )
----
43
0

skipif mysql # not compatible
query II rowsort label-9771
SELECT DISTINCT 43 AS col2, + 32 / + ( 66 )
----
43
0

query I rowsort
SELECT + + 14 * - 90 AS col2
----
-1260

query II rowsort
SELECT 15 AS col0, 66
----
15
66

query I rowsort
SELECT - 81 + + 95 + 99 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT + SUM( DISTINCT - 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9775
SELECT + SUM ( DISTINCT - 5 ) AS col0
----
-5

query I rowsort
SELECT - 45 * - 20 * + 36
----
32400

onlyif mysql # DIV for integer division: 
query I rowsort label-9777
SELECT ALL + 23 DIV - 89 + 40 + - 64 * - - 17 - + 83 AS col0
----
-1131

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL + 23 / - 89 + 40 + - 64 * - - 17 - + 83 AS col0
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT DISTINCT - MIN( + 21 ) * - 72
----
1512

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT - MIN ( + 21 ) * - 72
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT ALL 71 DIV 45 + 71
----
72

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL 71 / 45 + 71
----
72

query II rowsort
SELECT + 30 AS col1, 92 * + 53
----
30
4876

query I rowsort
SELECT ALL + 15 + - 96
----
-81

query I rowsort
SELECT DISTINCT + 97 * + - 83 col2
----
-8051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9783
SELECT CAST( NULL AS SIGNED ) * + 14 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT CAST ( NULL AS INTEGER ) * + 14 + - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT 78 * + + 85 * - NULLIF ( + 24, - COALESCE ( + 22, + 31 ) ), 81 col2
----
-159120
81

query I rowsort
SELECT 85 + + + 87 col2
----
172

query I rowsort
SELECT DISTINCT + 98 * 84
----
8232

query I rowsort
SELECT ALL - 25 - + 70 + - 58
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT - CASE 42 WHEN - - 28 THEN - 32 + 60 * - - COUNT( * ) + + 95 ELSE 58 END
----
-58

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT - CASE 42 WHEN - - 28 THEN - 32 + 60 * - - COUNT ( * ) + + 95 ELSE 58 END
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9789
SELECT + NULLIF ( MAX( + - 33 ), + - 64 ), 78 * + - 48 AS col2
----
-33
-3744

skipif mysql # not compatible
query II rowsort label-9789
SELECT + NULLIF ( MAX ( + - 33 ), + - 64 ), 78 * + - 48 AS col2
----
-33
-3744

query II rowsort
SELECT ALL - - 60, + NULLIF ( - + 12, + 71 + + + 38 + - 8 + + 86 ) AS col1
----
60
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9791
SELECT - - 6 * 52 * - CAST( NULL AS SIGNED ) * - 46 + - 36 + + 8 + + 69 AS col2, 68 DIV - COUNT( * ) AS col0, - 94
----
NULL
-68
-94

skipif mysql # not compatible
query III rowsort label-9791
SELECT - - 6 * 52 * - CAST ( NULL AS INTEGER ) * - 46 + - 36 + + 8 + + 69 AS col2, 68 / - COUNT ( * ) AS col0, - 94
----
NULL
-68
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT ALL - - 16 DIV 36 + 83
----
83

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL - - 16 / 36 + 83
----
83

query I rowsort
SELECT 83 * + 47 AS col2
----
3901

query I rowsort
SELECT - 43 + - + 50
----
-93

query II rowsort
SELECT - + 29 AS col1, 36
----
-29
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT - - COUNT( DISTINCT + 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9796
SELECT - - COUNT ( DISTINCT + 79 ) AS col2
----
1

query I rowsort
SELECT ( - COALESCE ( 32, + 91 ) ) + - - 1 * + - 72 + 19 AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9798
SELECT + 70 DIV 91, - COUNT( 76 ) - + - 0 + + 22 AS col0
----
0
21

skipif mysql # not compatible
query II rowsort label-9798
SELECT + 70 / 91, - COUNT ( 76 ) - + - 0 + + 22 AS col0
----
0
21

query I rowsort
SELECT + 9 * - 63 * - - 78 * 13
----
-574938

query I rowsort
SELECT DISTINCT - + ( 44 ) * + 89 AS col1
----
-3916

onlyif mysql # DIV for integer division: 
query II rowsort label-9801
SELECT 18 AS col0, 15 DIV - 59 * 67 AS col1
----
18
0

skipif mysql # not compatible
query II rowsort label-9801
SELECT 18 AS col0, 15 / - 59 * 67 AS col1
----
18
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT + 36 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 36 / 60
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT DISTINCT + 57, + NULLIF ( - 88, - 40 * 74 - + + 14 ) * + + 40 * - - SUM( - 44 ) + + 68 AS col0
----
57
154948

skipif mysql # not compatible
query II rowsort label-9803
SELECT DISTINCT + 57, + NULLIF ( - 88, - 40 * 74 - + + 14 ) * + + 40 * - - SUM ( - 44 ) + + 68 AS col0
----
57
154948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9804
SELECT - 94 AS col0, - 33 / + MIN( ALL + - 23 ) * - CAST( NULL AS SIGNED ) AS col1
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-9804
SELECT - 94 AS col0, - 33 / + MIN ( ALL + - 23 ) * - CAST ( NULL AS INTEGER ) AS col1
----
-94
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT 55, COUNT( * ) * ( 25 ) + - + 53 * + + 48 AS col1
----
55
-2519

skipif mysql # not compatible
query II rowsort label-9805
SELECT 55, COUNT ( * ) * ( 25 ) + - + 53 * + + 48 AS col1
----
55
-2519

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT + 45, - COUNT( * ) - 37 AS col0
----
45
-38

skipif mysql # not compatible
query II rowsort label-9806
SELECT + 45, - COUNT ( * ) - 37 AS col0
----
45
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL 63 + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL 63 + COUNT ( * ) AS col1
----
64

query I rowsort
SELECT DISTINCT 98 + + 84 + 59 + + 50 AS col0
----
291

query I rowsort
SELECT 63 * - 58
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL 3 + 48 + + - 3 * + 21 * - - ( NULLIF ( + COUNT( * ), + 23 / - - 41 + 7 - 26 * NULLIF ( - 80, - + 55 / - 10 - + + 76 + 84 ) ) ) - + 57 - 27 col1
----
-96

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL 3 + 48 + + - 3 * + 21 * - - ( NULLIF ( + COUNT ( * ), + 23 / - - 41 + 7 - 26 * NULLIF ( - 80, - + 55 / - 10 - + + 76 + 84 ) ) ) - + 57 - 27 col1
----
-96

query I rowsort
SELECT DISTINCT 62 + + - 93 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT 53 + MAX( ALL - 62 ) * - + 35 + 28 + 19 AS col1
----
2270

skipif mysql # not compatible
query I rowsort label-9812
SELECT 53 + MAX ( ALL - 62 ) * - + 35 + 28 + 19 AS col1
----
2270

query I rowsort
SELECT ALL 97 + + + 72 + + - 29 + - 58 + - 48 - + - 42 * - 81 * - 74
----
251782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9814
SELECT ( 35 ) + 48 / NULLIF ( + - NULLIF ( + + CAST( NULL AS SIGNED ), + 25 ), + 66 / MIN( - 76 ) + + 83 + - 93 / + 89 + + MIN( + - ( + 96 ) ) ) - - 22 AS col1, - 15 col2
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-9814
SELECT ( 35 ) + 48 / NULLIF ( + - NULLIF ( + + CAST ( NULL AS INTEGER ), + 25 ), + 66 / MIN ( - 76 ) + + 83 + - 93 / + 89 + + MIN ( + - ( + 96 ) ) ) - - 22 AS col1, - 15 col2
----
NULL
-15

query I rowsort
SELECT ALL - COALESCE ( - 23, + 89, + 2 )
----
23

query I rowsort
SELECT COALESCE ( - ( - 83 ), 76 + - + 75 ) * - - 23 + 20 AS col2
----
1929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9817
SELECT 14 * + MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT 14 * + MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 12 * 35
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT + - 27 - + 59 + - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + - 27 - + 59 + - COUNT ( * )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT - - CAST( NULL AS SIGNED ) * 41 + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT - - CAST ( NULL AS INTEGER ) * 41 + - 58
----
NULL

query I rowsort
SELECT + COALESCE ( + 57, ( + 77 ), - 79 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9822
SELECT CASE - COUNT( * ) WHEN - + 17 + + 92 + + CAST( NULL AS SIGNED ) * - - MIN( ALL - 77 ) * - ( + 69 ) / ( - 77 ) + + 10 THEN 9 ELSE NULL END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT CASE - COUNT ( * ) WHEN - + 17 + + 92 + + CAST ( NULL AS INTEGER ) * - - MIN ( ALL - 77 ) * - ( + 69 ) / ( - 77 ) + + 10 THEN 9 ELSE NULL END * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9823
SELECT + COUNT( * ) * 89 AS col2, - ( + 18 ) * - 63 * - + 54 AS col1
----
89
-61236

skipif mysql # not compatible
query II rowsort label-9823
SELECT + COUNT ( * ) * 89 AS col2, - ( + 18 ) * - 63 * - + 54 AS col1
----
89
-61236

query II rowsort
SELECT ALL - 2 * + - 30, 19 + + 10 + ( 32 ) + + 19 * 42 col2
----
60
859

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL CASE + 64 WHEN - COUNT( * ) THEN ( ( - ( + 37 ) ) ) * - 33 END + + 99 + + 18 * SUM( - + 33 ) - + ( + + COALESCE ( - 26, + COALESCE ( + 98, + 16 * + COUNT( * ) - + 87 + - + 25 * + + 27 * - ( 4 ) - 57 + + + MAX( ALL + 97 ) * + - 14 + - + COUNT( * ) / 18 + + 82 + - + 96 * - ( - 87 ) ) * - + ( + - 54 ) ) ) + 19 / 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL CASE + 64 WHEN - COUNT ( * ) THEN ( ( - ( + 37 ) ) ) * - 33 END + + 99 + + 18 * SUM ( - + 33 ) - + ( + + COALESCE ( - 26, + COALESCE ( + 98, + 16 * + COUNT ( * ) - + 87 + - + 25 * + + 27 * - ( 4 ) - 57 + + + MAX ( ALL + 97 ) * + - 14 + - + COUNT ( * ) / 18 + + 82 + - + 96 * - ( - 87 ) ) * - + ( + - 54 ) ) ) + 19 / 43 AS col2
----
NULL

query I rowsort
SELECT 97 - - 94 + 23 + + 9
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL NULLIF ( 51, + COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL NULLIF ( 51, + COUNT ( * ) )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT - 73 + + 33 DIV + 30 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9828
SELECT - 73 + + 33 / + 30 AS col1
----
-72

query I rowsort
SELECT + 43 * + - 40
----
-1720

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT - - 47 + + COUNT( * ) + + 76 * + - 53 * + ( + 96 ) + - - NULLIF ( + - 42, + + MIN( + 89 ) ) + - - 78 AS col2
----
-386604

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT - - 47 + + COUNT ( * ) + + 76 * + - 53 * + ( + 96 ) + - - NULLIF ( + - 42, + + MIN ( + 89 ) ) + - - 78 AS col2
----
-386604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9831
SELECT 77 + - COUNT( * ) / 92 * - CAST( NULL AS SIGNED ) / COUNT( * ) * + NULLIF ( + - ( + 31 ), - 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT 77 + - COUNT ( * ) / 92 * - CAST ( NULL AS INTEGER ) / COUNT ( * ) * + NULLIF ( + - ( + 31 ), - 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL + COUNT( * ) + COUNT( * ) * - 82 + + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL + COUNT ( * ) + COUNT ( * ) * - 82 + + COUNT ( * )
----
-80

query I rowsort
SELECT 66 - - 85 + - + 18 col2
----
133

query I rowsort
SELECT ALL 57 + 78 + + + 42 AS col2
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT ALL + 87 + - - CAST( - 60 AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + 87 + - - CAST ( - 60 AS INTEGER ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT DISTINCT 51 DIV ( + - 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT 51 / ( + - 46 )
----
-1

query I rowsort
SELECT ALL 9 + + - 97 * + 31 AS col2
----
-2998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9838
SELECT + 15 + + - ( - + 20 ) + - - 9 * + COUNT( ( - 51 ) ) * - + 40 * 97 + + + 36 + - 7 + 8 * + 72 * 4 * + CAST( NULL AS SIGNED ) + + - 15 * - + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT + 15 + + - ( - + 20 ) + - - 9 * + COUNT ( ( - 51 ) ) * - + 40 * 97 + + + 36 + - 7 + 8 * + 72 * 4 * + CAST ( NULL AS INTEGER ) + + - 15 * - + 34 AS col2
----
NULL

query II rowsort
SELECT - 68 AS col1, 39 * NULLIF ( 67, - + 47 + + ( - 27 ) * + 49 )
----
-68
2613

query I rowsort
SELECT + ( - + 98 ) + - 50 AS col2
----
-148

query I rowsort
SELECT + 68 + + - 37 AS col0
----
31

query I rowsort
SELECT + 79 * + 65
----
5135

query II rowsort
SELECT ALL + 43 AS col0, + ( - 11 ) col2
----
43
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT - COUNT( * ) DIV 32 + + 42 DIV + - ( 24 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9844
SELECT - COUNT ( * ) / 32 + + 42 / + - ( 24 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9845
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 97 * - - COUNT( * ) AS col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-9845
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 97 * - - COUNT ( * ) AS col1
----
NULL
97

query I rowsort
SELECT ALL 43 * - 44 * + 57 AS col1
----
-107844

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT + CASE - + 35 WHEN + 21 THEN + CASE + COALESCE ( - 58, + 73 - + 5, - + COUNT( * ) ) WHEN - 54 + COALESCE ( + ( 9 ), 48 + - 68 ) * 2 THEN - 18 WHEN + ( + - 99 ) THEN - 40 ELSE NULL END ELSE - 74 + + - 91 END AS col0
----
-165

skipif mysql # not compatible
query I rowsort label-9847
SELECT + CASE - + 35 WHEN + 21 THEN + CASE + COALESCE ( - 58, + 73 - + 5, - + COUNT ( * ) ) WHEN - 54 + COALESCE ( + ( 9 ), 48 + - 68 ) * 2 THEN - 18 WHEN + ( + - 99 ) THEN - 40 ELSE NULL END ELSE - 74 + + - 91 END AS col0
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT + 1 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-9848
SELECT + 1 / - 82
----
0

query I rowsort
SELECT + + ( - 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT + + MIN( - + 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9850
SELECT + + MIN ( - + 11 ) AS col0
----
-11

query II rowsort
SELECT + 99 AS col1, 66 AS col0
----
99
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL - + COUNT( * ) * 4 + + 3 * 60 * - + 31 + + 66 AS col1
----
-5518

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - + COUNT ( * ) * 4 + + 3 * 60 * - + 31 + + 66 AS col1
----
-5518

query II rowsort
SELECT DISTINCT + - 65, - 40 AS col2
----
-65
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9854
SELECT ALL COUNT( * ) * 22 + SUM( - CAST( NULL AS SIGNED ) ) + - ( + 13 ) + - 9 / + - 70 * - SUM( - 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL COUNT ( * ) * 22 + SUM ( - CAST ( NULL AS INTEGER ) ) + - ( + 13 ) + - 9 / + - 70 * - SUM ( - 71 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 21 * + + 66
----
1386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9856
SELECT + + COUNT( * ) DIV - 78 * - + 99
----
0

skipif mysql # not compatible
query I rowsort label-9856
SELECT + + COUNT ( * ) / - 78 * - + 99
----
0

query I rowsort
SELECT + 40 * - 68 * - 14 + - + 81
----
37999

query I rowsort
SELECT - + 36 * + 12
----
-432

query I rowsort
SELECT ALL - - 44 + 99 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT DISTINCT - 97 + - 22 * + 3 * - + 14 + - - 57 + + 40 * - - 14 * - COUNT( * )
----
324

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT - 97 + - 22 * + 3 * - + 14 + - - 57 + + 40 * - - 14 * - COUNT ( * )
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9861
SELECT DISTINCT + CASE + + CAST( - + 46 AS SIGNED ) WHEN COALESCE ( NULLIF ( - - COUNT( * ), COALESCE ( + 28, COUNT( * ) + - + 55 + MIN( ALL + - 59 ) ) + - - 56 ), 18 ) THEN NULL WHEN + 47 THEN + - MAX( 36 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT + CASE + + CAST ( - + 46 AS INTEGER ) WHEN COALESCE ( NULLIF ( - - COUNT ( * ), COALESCE ( + 28, COUNT ( * ) + - + 55 + MIN ( ALL + - 59 ) ) + - - 56 ), 18 ) THEN NULL WHEN + 47 THEN + - MAX ( 36 ) END
----
NULL

query II rowsort
SELECT ALL ( - 80 ), 90 col2
----
-80
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT ALL - 55 + NULLIF ( + 69, + COALESCE ( + + COALESCE ( - ( + COUNT( * ) ), - 82, 85 / + 81 + + NULLIF ( - + 95, COUNT( * ) + - 39 ), COALESCE ( 87, + 73 * + 68 ) * - MIN( - + 54 ) ), - 46, - + 5 - + 92 ) + - 33 * 18 * + + 4 * + 77 ) - - CAST( NULL AS SIGNED ) * - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL - 55 + NULLIF ( + 69, + COALESCE ( + + COALESCE ( - ( + COUNT ( * ) ), - 82, 85 / + 81 + + NULLIF ( - + 95, COUNT ( * ) + - 39 ), COALESCE ( 87, + 73 * + 68 ) * - MIN ( - + 54 ) ), - 46, - + 5 - + 92 ) + - 33 * 18 * + + 4 * + 77 ) - - CAST ( NULL AS INTEGER ) * - 14 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 1 + 8 + + 25 AS col0
----
34

query I rowsort
SELECT ALL + 56 + - 90
----
-34

query I rowsort
SELECT ALL + 83 + + 12 AS col1
----
95

query I rowsort
SELECT ALL NULLIF ( - 41, + 64 ) AS col2
----
-41

query II rowsort
SELECT DISTINCT ( 82 ) col0, - 59 AS col1
----
82
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT - NULLIF ( + ( COUNT( * ) ), + - 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-9869
SELECT - NULLIF ( + ( COUNT ( * ) ), + - 40 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT DISTINCT + 66 DIV 16
----
4

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + 66 / 16
----
4

query I rowsort
SELECT DISTINCT NULLIF ( 41, - 94 )
----
41

query I rowsort
SELECT ALL + 57 * - 8
----
-456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9873
SELECT - CAST( NULL AS DECIMAL ) * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT - CAST ( NULL AS REAL ) * + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT + 39 - - CASE + + 68 WHEN 32 + + 4 THEN NULL WHEN - 4 THEN - CASE + 21 WHEN + 9 + - COALESCE ( COALESCE ( - - COUNT( * ), + 78, + 71 ), + - 11 ) + 27 THEN + + 96 - - 52 ELSE + 92 END - 15 WHEN 33 THEN NULL WHEN + + 63 * + ( 44 ) + - 8 * 14 * 64 / - - 96 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + 39 - - CASE + + 68 WHEN 32 + + 4 THEN NULL WHEN - 4 THEN - CASE + 21 WHEN + 9 + - COALESCE ( COALESCE ( - - COUNT ( * ), + 78, + 71 ), + - 11 ) + 27 THEN + + 96 - - 52 ELSE + 92 END - 15 WHEN 33 THEN NULL WHEN + + 63 * + ( 44 ) + - 8 * 14 * 64 / - - 96 THEN NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT ALL ( - 87 ) DIV 73 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL ( - 87 ) / 73 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT - 76 * + 53 - COUNT( * ) AS col1
----
-4029

skipif mysql # not compatible
query I rowsort label-9876
SELECT - 76 * + 53 - COUNT ( * ) AS col1
----
-4029

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9877
SELECT + 19 * ( + 70 ) DIV - + 56, - SUM( ALL - 73 ) AS col2
----
-23
73

skipif mysql # not compatible
query II rowsort label-9877
SELECT + 19 * ( + 70 ) / - + 56, - SUM ( ALL - 73 ) AS col2
----
-23
73

query I rowsort
SELECT + 95 * - + 61 * 9
----
-52155

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9879
SELECT CAST( - 58 AS SIGNED ) AS col2, 53
----
-58
53

skipif mysql # not compatible
query II rowsort label-9879
SELECT CAST ( - 58 AS INTEGER ) AS col2, 53
----
-58
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9880
SELECT ALL + - CAST( - SUM( + 82 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL + - CAST ( - SUM ( + 82 ) AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT MAX( ALL + + 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9881
SELECT MAX ( ALL + + 12 ) AS col0
----
12

query I rowsort
SELECT - + 78 * 13 + 22
----
-992

query I rowsort
SELECT + + 80 * - 94 AS col2
----
-7520

query I rowsort
SELECT DISTINCT 10 * - 93 * + NULLIF ( + ( 8 ), + 21 ) AS col0
----
-7440

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9885
SELECT ALL 84 DIV + 12 + - COUNT( * ) + + + 39, - 37 AS col0
----
45
-37

skipif mysql # not compatible
query II rowsort label-9885
SELECT ALL 84 / + 12 + - COUNT ( * ) + + + 39, - 37 AS col0
----
45
-37

query I rowsort
SELECT + 98 * 6 AS col1
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT 56 * 69 * - + COUNT( * ) + - 14 + + 85
----
-3793

skipif mysql # not compatible
query I rowsort label-9887
SELECT 56 * 69 * - + COUNT ( * ) + - 14 + + 85
----
-3793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9888
SELECT DISTINCT + + COALESCE ( - + 15, + COUNT( * ) / + - 58 + - 31 + + 52 + - - 65 / 15 * + 77 * - AVG ( - 59 ), + ( - 90 ) * + ( - 9 ) + CASE + 59 WHEN + CAST( NULL AS SIGNED ) * + 62 * 71 THEN + + ( 66 ) WHEN - 87 THEN NULL END + + 84 * - 39 + CAST( NULL AS SIGNED ) + + 18 ) * + + CAST( NULL AS SIGNED ) * 66 + + 15 + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT + + COALESCE ( - + 15, + COUNT ( * ) / + - 58 + - 31 + + 52 + - - 65 / 15 * + 77 * - AVG ( - 59 ), + ( - 90 ) * + ( - 9 ) + CASE + 59 WHEN + CAST ( NULL AS INTEGER ) * + 62 * 71 THEN + + ( 66 ) WHEN - 87 THEN NULL END + + 84 * - 39 + CAST ( NULL AS INTEGER ) + + 18 ) * + + CAST ( NULL AS INTEGER ) * 66 + + 15 + - 32
----
NULL

query I rowsort
SELECT ALL + + 34 * - 45 * - 81 + + 21 + ( - 15 )
----
123936

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT - COUNT( + - 75 ) * - 74 * + MIN( - 39 ) * - 8 + + COALESCE ( + COUNT( * ), - - 31, - 66 ) * 11 * + 40 + COALESCE ( - COUNT( * ), - 55 + 54, - 45 ) + - 67 - + 99
----
23361

skipif mysql # not compatible
query I rowsort label-9890
SELECT - COUNT ( + - 75 ) * - 74 * + MIN ( - 39 ) * - 8 + + COALESCE ( + COUNT ( * ), - - 31, - 66 ) * 11 * + 40 + COALESCE ( - COUNT ( * ), - 55 + 54, - 45 ) + - 67 - + 99
----
23361

query I rowsort
SELECT COALESCE ( + 25, + 29 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT + CASE + 24 WHEN + + COALESCE ( - - 70, 13 * + 22 ) THEN 45 WHEN - 5 * + 2 THEN 86 * + CAST( NULL AS SIGNED ) END + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT + CASE + 24 WHEN + + COALESCE ( - - 70, 13 * + 22 ) THEN 45 WHEN - 5 * + 2 THEN 86 * + CAST ( NULL AS INTEGER ) END + + 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT + + ( + ( SUM( - 43 ) ) ) col0, 45 + 4
----
-43
49

skipif mysql # not compatible
query II rowsort label-9893
SELECT + + ( + ( SUM ( - 43 ) ) ) col0, 45 + 4
----
-43
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9894
SELECT ALL 22 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL 22 / - 39 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT ( - CAST( + 70 AS SIGNED ) ) + + COALESCE ( - 10, 23 )
----
-80

skipif mysql # not compatible
query I rowsort label-9895
SELECT ( - CAST ( + 70 AS INTEGER ) ) + + COALESCE ( - 10, 23 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT 98 * COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9896
SELECT 98 * COUNT ( * ) AS col0
----
98

query II rowsort
SELECT 4 + + 92 + + 30 col0, + 23
----
126
23

query I rowsort
SELECT 13 + + 29 AS col1
----
42

query I rowsort
SELECT 87 * + + 75 AS col0
----
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT COUNT( * ) + + 46 + - ( - 22 ) * - + 8
----
-129

skipif mysql # not compatible
query I rowsort label-9900
SELECT COUNT ( * ) + + 46 + - ( - 22 ) * - + 8
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT COUNT( * ) * + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-9901
SELECT COUNT ( * ) * + - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT 32 + CASE - 62 WHEN + 98 + + + 90 * - + COALESCE ( 96, + + AVG ( ALL + + 74 ) + + 46 - - + 83 * + - 65 + - ( 55 ) + 1, - - COUNT( * ) ) THEN - 54 * + 93 + + 41 ELSE NULL END * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT 32 + CASE - 62 WHEN + 98 + + + 90 * - + COALESCE ( 96, + + AVG ( ALL + + 74 ) + + 46 - - + 83 * + - 65 + - ( 55 ) + 1, - - COUNT ( * ) ) THEN - 54 * + 93 + + 41 ELSE NULL END * + 97 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 8 * + + 12 AS col2
----
96

query I rowsort
SELECT - 37 * 98
----
-3626

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT - - 67 DIV 18 + - - 29 + + + 5 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9905
SELECT - - 67 / 18 + - - 29 + + + 5 AS col0
----
37

query I rowsort
SELECT ALL - 4 + - 3 + + 20 * + + 25 AS col0
----
493

query I rowsort
SELECT ALL + - 78 + + 5
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT DISTINCT - + 15 * NULLIF ( - SUM( 59 ), - 21 ) col1
----
885

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT - + 15 * NULLIF ( - SUM ( 59 ), - 21 ) col1
----
885

query I rowsort
SELECT ALL 99 + + 56
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL - 54 * + + NULLIF ( + 78, - COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - 54 * + + NULLIF ( + 78, - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT - COUNT( * ) * + 33 - CAST( NULL AS SIGNED ) + + + 83 + + - 54 + + + 81 * + - 77 + - 43 + - 50 + - + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT - COUNT ( * ) * + 33 - CAST ( NULL AS INTEGER ) + + + 83 + + - 54 + + + 81 * + - 77 + - 43 + - 50 + - + 34 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( + 33, 42 ) AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9913
SELECT + ( - 61 ) DIV - + MIN( DISTINCT - - 63 ) + + + 14 * - + 19 + 72 DIV + 83
----
-266

skipif mysql # not compatible
query I rowsort label-9913
SELECT + ( - 61 ) / - + MIN ( DISTINCT - - 63 ) + + + 14 * - + 19 + 72 / + 83
----
-266

query II rowsort
SELECT + - 52, + 53 AS col2
----
-52
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + COUNT( - - 18 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9915
SELECT + COUNT ( - - 18 ) AS col0
----
1

query II rowsort
SELECT - 69 * + 42 + + - 76 AS col2, - 37 AS col1
----
-2974
-37

query I rowsort
SELECT CASE - - 99 WHEN + - 20 THEN - 44 + + + 78 END + + 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT ALL - NULLIF ( - CAST( 52 AS SIGNED ), 13 + 72 - - + 48 * + COUNT( * ) * 51 )
----
52

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL - NULLIF ( - CAST ( 52 AS INTEGER ), 13 + 72 - - + 48 * + COUNT ( * ) * 51 )
----
52

query I rowsort
SELECT ALL + 69 + - 29 AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9920
SELECT - 41, + 85 / - 30 / 54 * + + CAST( NULL AS SIGNED ) AS col0
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-9920
SELECT - 41, + 85 / - 30 / 54 * + + CAST ( NULL AS INTEGER ) AS col0
----
-41
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT DISTINCT - 20 * - CAST( + 55 AS SIGNED ) AS col0
----
1100

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - 20 * - CAST ( + 55 AS INTEGER ) AS col0
----
1100

query I rowsort
SELECT 13 - + 55 AS col1
----
-42

query I rowsort
SELECT 59 * + 97 AS col2
----
5723

query II rowsort
SELECT - 56 AS col2, - 10 AS col2
----
-56
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT COALESCE ( 39, - COUNT( * ) * - + COUNT( * ) + 83 ) + - - 32
----
71

skipif mysql # not compatible
query I rowsort label-9925
SELECT COALESCE ( 39, - COUNT ( * ) * - + COUNT ( * ) + 83 ) + - - 32
----
71

query I rowsort
SELECT 14 + + - 99 * + 80 + 68 + + 23 * - + 58 * + 57
----
-83876

onlyif mysql # aggregate syntax: 
query II rowsort label-9927
SELECT 75 AS col0, MAX( ALL - - 3 )
----
75
3

skipif mysql # not compatible
query II rowsort label-9927
SELECT 75 AS col0, MAX ( ALL - - 3 )
----
75
3

query II rowsort
SELECT DISTINCT 17, + 45 * + 43 AS col2
----
17
1935

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9929
SELECT ALL 75, CAST( - 76 AS SIGNED ) AS col2
----
75
-76

skipif mysql # not compatible
query II rowsort label-9929
SELECT ALL 75, CAST ( - 76 AS INTEGER ) AS col2
----
75
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT DISTINCT 49 DIV ( + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT 49 / ( + 70 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9931
SELECT 88 * + + COUNT( * ) DIV - COUNT( ALL + + ( - 78 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-9931
SELECT 88 * + + COUNT ( * ) / - COUNT ( ALL + + ( - 78 ) )
----
-88

query I rowsort
SELECT ALL 84 * + 89
----
7476

onlyif mysql # DIV for integer division: 
query I rowsort label-9933
SELECT 29 DIV - 94 * 45
----
0

skipif mysql # not compatible
query I rowsort label-9933
SELECT 29 / - 94 * 45
----
0

query I rowsort
SELECT 32 * + + 64 * - 17
----
-34816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9935
SELECT CAST( NULL AS DECIMAL ) - - + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT CAST ( NULL AS REAL ) - - + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9936
SELECT COUNT( * ) - + + 17 AS col2, + 78 AS col0
----
-16
78

skipif mysql # not compatible
query II rowsort label-9936
SELECT COUNT ( * ) - + + 17 AS col2, + 78 AS col0
----
-16
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT + 3 + + + COUNT( * ) * - 46 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT + 3 + + + COUNT ( * ) * - 46 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ALL ( COUNT( * ) ) + + 22 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL ( COUNT ( * ) ) + + 22 AS col0
----
23

query I rowsort
SELECT ALL 14 * - + 86
----
-1204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT ALL + + CAST( NULL AS SIGNED ) + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + + CAST ( NULL AS INTEGER ) + 92
----
NULL

query III rowsort
SELECT 24 AS col2, - 35 AS col1, 3 + - 93
----
24
-35
-90

query I rowsort
SELECT DISTINCT - + 79 * - 55 + + 80
----
4425

query I rowsort
SELECT ALL + - 12 * - 17 + - - 33 AS col1
----
237

query II rowsort
SELECT + + 64 AS col2, 87
----
64
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT + 7 * 51 * - 45 + + ( + + SUM( DISTINCT - 16 ) ) * + + COUNT( * ) * - + 45 AS col0
----
-15345

skipif mysql # not compatible
query I rowsort label-9945
SELECT + 7 * 51 * - 45 + + ( + + SUM ( DISTINCT - 16 ) ) * + + COUNT ( * ) * - + 45 AS col0
----
-15345

query II rowsort
SELECT + 47, 5 AS col2
----
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT COALESCE ( + + 59, - + 11 * 95, + 6, + 95 ) * + CASE + 41 WHEN 13 THEN 78 * - 32 WHEN - 63 THEN NULL WHEN + + 41 THEN NULL END * 98 * COUNT( + 90 ) - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT COALESCE ( + + 59, - + 11 * 95, + 6, + 95 ) * + CASE + 41 WHEN 13 THEN 78 * - 32 WHEN - 63 THEN NULL WHEN + + 41 THEN NULL END * 98 * COUNT ( + 90 ) - + 44
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 57, - 59 ) AS col2
----
-57

query I rowsort
SELECT ALL - 82 * - 14
----
1148

query I rowsort
SELECT ALL - 11 * + - 90 - - 82
----
1072

query I rowsort
SELECT ALL + + 58 * + - 41
----
-2378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9952
SELECT DISTINCT - + SUM( ALL - 15 ) * - CAST( - COUNT( * ) AS SIGNED ) AS col0, + NULLIF ( COUNT( * ), 82 * - + 16 ) + 41 * 99
----
15
4060

skipif mysql # not compatible
query II rowsort label-9952
SELECT DISTINCT - + SUM ( ALL - 15 ) * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0, + NULLIF ( COUNT ( * ), 82 * - + 16 ) + 41 * 99
----
15
4060

query I rowsort
SELECT - - 27 * - 4 + 87 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL + SUM( + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + SUM ( + 61 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9955
SELECT ALL + CASE + - CAST( - 12 AS SIGNED ) WHEN 20 / - 22 THEN MAX( DISTINCT + + 1 ) END * + COALESCE ( + 73, + 83, 20 ) + + + 65 - + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL + CASE + - CAST ( - 12 AS INTEGER ) WHEN 20 / - 22 THEN MAX ( DISTINCT + + 1 ) END * + COALESCE ( + 73, + 83, 20 ) + + + 65 - + 68 AS col2
----
NULL

query I rowsort
SELECT - 80 + - ( 57 ) AS col1
----
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9957
SELECT - COUNT( * ) DIV + + 5 * + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT - COUNT ( * ) / + + 5 * + 80 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9958
SELECT MIN( 66 ) col0, COALESCE ( + 94, + 74, - 5 DIV - 77, 84 ) AS col2
----
66
94

skipif mysql # not compatible
query II rowsort label-9958
SELECT MIN ( 66 ) col0, COALESCE ( + 94, + 74, - 5 / - 77, 84 ) AS col2
----
66
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9959
SELECT ALL 44 * + 21, 1 + SUM( 63 ) AS col2
----
924
64

skipif mysql # not compatible
query II rowsort label-9959
SELECT ALL 44 * + 21, 1 + SUM ( 63 ) AS col2
----
924
64

query II rowsort
SELECT DISTINCT NULLIF ( + + 79, + + 83 ), 75 AS col2
----
79
75

query I rowsort
SELECT DISTINCT + 80 + + - 23
----
57

query I rowsort
SELECT ALL 8 * ( - 53 )
----
-424

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9963
SELECT + 55 * + COUNT( * ) AS col0, + 87 * 35 + + COUNT( * ) * 51 * - 0 DIV + 12
----
55
3045

skipif mysql # not compatible
query II rowsort label-9963
SELECT + 55 * + COUNT ( * ) AS col0, + 87 * 35 + + COUNT ( * ) * 51 * - 0 / + 12
----
55
3045

query I rowsort
SELECT - NULLIF ( + + 45, - 78 * - ( + + ( - 11 ) ) ) AS col1
----
-45

query I rowsort
SELECT ALL + 62 + - 27 + + + 35 AS col1
----
70

query I rowsort
SELECT DISTINCT - 8 * - 50 AS col1
----
400

query I rowsort
SELECT + 19 + - - 14 col0
----
33

query I rowsort
SELECT - NULLIF ( 97, + - 37 * - 12 * 26 + + 46 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL ( 50 ) + - - 19 * - + COUNT( * ) + + - 94 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL ( 50 ) + - - 19 * - + COUNT ( * ) + + - 94 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9970
SELECT + - 18 + MAX( + 47 ) + 27 + 20 + - 27 - + 83 + 91, + 31 AS col0
----
57
31

skipif mysql # not compatible
query II rowsort label-9970
SELECT + - 18 + MAX ( + 47 ) + 27 + 20 + - 27 - + 83 + 91, + 31 AS col0
----
57
31

query I rowsort
SELECT ALL ( + ( - 54 ) ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9972
SELECT DISTINCT CAST( NULL AS DECIMAL ) + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT CAST ( NULL AS REAL ) + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + - 69 + - 47 + ( + - 75 ) + + 80
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-9974
SELECT - + MAX( + 71 ) + + 9 - + + 76 - + 87, 85 - - COALESCE ( + 46, + 82, + COUNT( * ) + - + SUM( ALL + - 28 ) ) AS col2
----
-225
131

skipif mysql # not compatible
query II rowsort label-9974
SELECT - + MAX ( + 71 ) + + 9 - + + 76 - + 87, 85 - - COALESCE ( + 46, + 82, + COUNT ( * ) + - + SUM ( ALL + - 28 ) ) AS col2
----
-225
131

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT + - 83 DIV - 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9975
SELECT + - 83 / - 28 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + COUNT( * ) + ( 92 ) - + COALESCE ( - - 41, 27 + + + COUNT( * ) + 66 ) * 77 * + 29 * ( + 73 )
----
-6683276

skipif mysql # not compatible
query I rowsort label-9976
SELECT + COUNT ( * ) + ( 92 ) - + COALESCE ( - - 41, 27 + + + COUNT ( * ) + 66 ) * 77 * + 29 * ( + 73 )
----
-6683276

query I rowsort
SELECT + ( - 26 ) * + - 65 AS col0
----
1690

query I rowsort
SELECT DISTINCT - 69 * + 34 + - 8 + + - 25 * - 43 AS col2
----
-1279

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT COUNT( * ) * 70 + - 4
----
66

skipif mysql # not compatible
query I rowsort label-9979
SELECT COUNT ( * ) * 70 + - 4
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - - 76 * + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9980
SELECT - - 76 * + COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - COUNT( * ) * - + 48 + - ( - + COUNT( * ) ) + 47 + 65 * 92 * 6 AS col2
----
35976

skipif mysql # not compatible
query I rowsort label-9981
SELECT - COUNT ( * ) * - + 48 + - ( - + COUNT ( * ) ) + 47 + 65 * 92 * 6 AS col2
----
35976

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - + 6 - + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9982
SELECT - + 6 - + + COUNT ( * )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT DISTINCT - 11 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT - 11 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT - COALESCE ( - 24, + 98 ) * + - COALESCE ( + 86, 16, - - 34 * + 26 + - - ( + - 22 ) DIV - - 1 - 47 ) * - 50 + - 16
----
103184

skipif mysql # not compatible
query I rowsort label-9984
SELECT - COALESCE ( - 24, + 98 ) * + - COALESCE ( + 86, 16, - - 34 * + 26 + - - ( + - 22 ) / - - 1 - 47 ) * - 50 + - 16
----
103184

query I rowsort
SELECT ALL + 93 * + - 59
----
-5487

query I rowsort
SELECT DISTINCT + 20 * - - 60 AS col1
----
1200

query II rowsort
SELECT ALL + 33, 11 AS col1
----
33
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT - 86 * - COUNT( * ) * + - CASE - NULLIF ( - - COUNT( * ), - + 91 * 78 * - + 89 ) WHEN + COUNT( * ) THEN + + COUNT( * ) DIV + 29 + - 16 ELSE - COUNT( * ) + + 56 * 77 END + + 38 AS col0
----
-370708

skipif mysql # not compatible
query I rowsort label-9988
SELECT - 86 * - COUNT ( * ) * + - CASE - NULLIF ( - - COUNT ( * ), - + 91 * 78 * - + 89 ) WHEN + COUNT ( * ) THEN + + COUNT ( * ) / + 29 + - 16 ELSE - COUNT ( * ) + + 56 * 77 END + + 38 AS col0
----
-370708

query I rowsort
SELECT ALL + NULLIF ( 67, + 49 )
----
67

query II rowsort
SELECT ALL + 52 AS col0, 2 AS col2
----
52
2

query I rowsort
SELECT - 73 * + 11 AS col2
----
-803

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9992
SELECT NULLIF ( - + 3, CAST( NULL AS SIGNED ) ) AS col0, 68
----
-3
68

skipif mysql # not compatible
query II rowsort label-9992
SELECT NULLIF ( - + 3, CAST ( NULL AS INTEGER ) ) AS col0, 68
----
-3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT NULLIF ( + 55, COUNT( * ) ) col0
----
55

skipif mysql # not compatible
query I rowsort label-9993
SELECT NULLIF ( + 55, COUNT ( * ) ) col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9994
SELECT - 72 AS col2, COUNT( * )
----
-72
1

skipif mysql # not compatible
query II rowsort label-9994
SELECT - 72 AS col2, COUNT ( * )
----
-72
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT + 55 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 55 / + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT + COUNT( - 56 ) + - - 32
----
33

skipif mysql # not compatible
query I rowsort label-9996
SELECT + COUNT ( - 56 ) + - - 32
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9997
SELECT - NULLIF ( - - 3, + CASE + + COUNT( * ) WHEN AVG ( DISTINCT + 74 ) THEN + - NULLIF ( 12, + 32 * CAST( NULL AS SIGNED ) - - + 22 * - COUNT( * ) ) ELSE + - 22 END * - 7 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-9997
SELECT - NULLIF ( - - 3, + CASE + + COUNT ( * ) WHEN AVG ( DISTINCT + 74 ) THEN + - NULLIF ( 12, + 32 * CAST ( NULL AS INTEGER ) - - + 22 * - COUNT ( * ) ) ELSE + - 22 END * - 7 ) col0
----
-3

query I rowsort
SELECT - 43 * - + 16
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT ( - MIN( DISTINCT + 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT ( - MIN ( DISTINCT + 49 ) )
----
-49

