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)

query I rowsort
SELECT + - 59 + - 10 + 89
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1
SELECT DISTINCT - 48 * + 81 - - 56 * 28 - + CAST( NULL AS SIGNED ), + 94 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-1
SELECT DISTINCT - 48 * + 81 - - 56 * 28 - + CAST ( NULL AS INTEGER ), + 94 AS col1
----
NULL
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2
SELECT ALL + ( ( + 87 ) ) AS col1, CAST( NULL AS DECIMAL )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-2
SELECT ALL + ( ( + 87 ) ) AS col1, CAST ( NULL AS REAL )
----
87
NULL

query I rowsort
SELECT + - 9 * - 31
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT - 67 + + 15 + + - MIN( DISTINCT - 57 )
----
5

skipif mysql # not compatible
query I rowsort label-4
SELECT - 67 + + 15 + + - MIN ( DISTINCT - 57 )
----
5

query I rowsort
SELECT DISTINCT 37 * - ( - + 42 )
----
1554

query I rowsort
SELECT + 11 * + 41 AS col2
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT + ( ( - 21 ) ) * - - MIN( DISTINCT - 33 ) * + - 81 * NULLIF ( - 97, 9 ) + 70 + + 17
----
5444988

skipif mysql # not compatible
query I rowsort label-7
SELECT + ( ( - 21 ) ) * - - MIN ( DISTINCT - 33 ) * + - 81 * NULLIF ( - 97, 9 ) + 70 + + 17
----
5444988

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT + 7 DIV - 92 * - + 38
----
0

skipif mysql # not compatible
query I rowsort label-8
SELECT + 7 / - 92 * - + 38
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL COUNT( DISTINCT + 21 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL COUNT ( DISTINCT + 21 ) col0
----
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT DISTINCT - 26 + - + 82 + - - 67 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - 26 + - + 82 + - - 67 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-14
SELECT + 65 * + - 67 AS col1, - 27 * 67 AS col0, NULLIF ( + COUNT( * ), + SUM( ALL - 31 ) + - + 67 + + 50 + - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN - 89 * COUNT( * ) / - 62 + + + 1 + - 42 + - 68 + + + 23 + - 4 * - 75 * + 1 END * - 8 + - COUNT( * ) - 72 * - 34 )
----
-4355
-1809
1

skipif mysql # not compatible
query III rowsort label-14
SELECT + 65 * + - 67 AS col1, - 27 * 67 AS col0, NULLIF ( + COUNT ( * ), + SUM ( ALL - 31 ) + - + 67 + + 50 + - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN - 89 * COUNT ( * ) / - 62 + + + 1 + - 42 + - 68 + + + 23 + - 4 * - 75 * + 1 END * - 8 + - COUNT ( * ) - 72 * - 34 )
----
-4355
-1809
1

query I rowsort
SELECT ALL - 8 * 86
----
-688

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

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - COUNT( DISTINCT 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-17
SELECT - COUNT ( DISTINCT 1 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 36 + 10 * 20 AS col0
----
236

query I rowsort
SELECT - 35 - + 22 + - + 68
----
-125

query I rowsort
SELECT DISTINCT - 91 * + 38 AS col2
----
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT DISTINCT - NULLIF ( - COUNT( * ), - 30 * 78 * - - NULLIF ( - 40, + + 26 + 2 ) )
----
1

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - 30 * 78 * - - NULLIF ( - 40, + + 26 + 2 ) )
----
1

query II rowsort
SELECT DISTINCT - 60 AS col0, ( + 91 )
----
-60
91

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT DISTINCT 16 DIV + 67 * + - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT 16 / + 67 * + - 81 AS col1
----
0

query I rowsort
SELECT DISTINCT - 64 + + 1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT - 26 DIV + 84 + - + 21
----
-21

skipif mysql # not compatible
query I rowsort label-25
SELECT - 26 / + 84 + - + 21
----
-21

query I rowsort
SELECT 86 * + 83 AS col0
----
7138

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT - 35 + + MAX( DISTINCT - 79 ) + 22
----
-92

skipif mysql # not compatible
query I rowsort label-27
SELECT - 35 + + MAX ( DISTINCT - 79 ) + 22
----
-92

query II rowsort
SELECT + - 76, + 81 AS col1
----
-76
81

query I rowsort
SELECT - 94 * + 2 + + 51
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-30
SELECT ALL - 19 * - - 72 AS col1, 81 - - COALESCE ( - CASE + - CASE + 48 WHEN 19 + + - 99 THEN - + 3 * - ( ( - 95 ) ) WHEN - 23 - + - 60 THEN COUNT( * ) * - + 46 + 35 - - ( + - CASE 62 WHEN 7 * - ( COUNT( * ) ) * - 67 THEN NULL WHEN + 2 DIV + 48 - + 14 * 10 * COUNT( * ) * + 44 THEN + + COUNT( * ) DIV + + 84 ELSE - 75 END ) ELSE 95 + - 55 + 8 * CAST( NULL AS SIGNED ) END WHEN + CASE 36 WHEN NULLIF ( + 99, + 57 ) * 15 THEN NULL WHEN 45 * + 79 - + 35 THEN NULL WHEN 84 * + 84 + 78 THEN - 98 + MAX( COALESCE ( 53, + 72 ) + 53 ) END - ( - 7 ) THEN 85 DIV - CASE + 32 WHEN + 97 DIV + COUNT( * ) THEN NULL WHEN COALESCE ( - 86, + COUNT( * ) DIV 84 ) THEN - 15 - 84 ELSE NULL END WHEN + 32 THEN + CAST( NULL AS SIGNED ) END, COUNT( * ) ) * 45
----
-1368
126

skipif mysql # not compatible
query II rowsort label-30
SELECT ALL - 19 * - - 72 AS col1, 81 - - COALESCE ( - CASE + - CASE + 48 WHEN 19 + + - 99 THEN - + 3 * - ( ( - 95 ) ) WHEN - 23 - + - 60 THEN COUNT ( * ) * - + 46 + 35 - - ( + - CASE 62 WHEN 7 * - ( COUNT ( * ) ) * - 67 THEN NULL WHEN + 2 / + 48 - + 14 * 10 * COUNT ( * ) * + 44 THEN + + COUNT ( * ) / + + 84 ELSE - 75 END ) ELSE 95 + - 55 + 8 * CAST ( NULL AS INTEGER ) END WHEN + CASE 36 WHEN NULLIF ( + 99, + 57 ) * 15 THEN NULL WHEN 45 * + 79 - + 35 THEN NULL WHEN 84 * + 84 + 78 THEN - 98 + MAX ( COALESCE ( 53, + 72 ) + 53 ) END - ( - 7 ) THEN 85 / - CASE + 32 WHEN + 97 / + COUNT ( * ) THEN NULL WHEN COALESCE ( - 86, + COUNT ( * ) / 84 ) THEN - 15 - 84 ELSE NULL END WHEN + 32 THEN + CAST ( NULL AS INTEGER ) END, COUNT ( * ) ) * 45
----
-1368
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-31
SELECT ALL - COUNT( * ) AS col1, CAST( + 18 AS SIGNED ) + - 84 AS col1
----
-1
-66

skipif mysql # not compatible
query II rowsort label-31
SELECT ALL - COUNT ( * ) AS col1, CAST ( + 18 AS INTEGER ) + - 84 AS col1
----
-1
-66

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT DISTINCT - 75 * 53 DIV + 48 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT - 75 * 53 / + 48 AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-34
SELECT - 42 * + CASE 20 WHEN - - 77 + 69 + - 98 + + 40 + - ( + 56 ) THEN - CAST( NULL AS SIGNED ) ELSE + 60 DIV 12 END AS col2
----
-210

skipif mysql # not compatible
query I rowsort label-34
SELECT - 42 * + CASE 20 WHEN - - 77 + 69 + - 98 + + 40 + - ( + 56 ) THEN - CAST ( NULL AS INTEGER ) ELSE + 60 / 12 END AS col2
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL COUNT( * ) * + MAX( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL COUNT ( * ) * + MAX ( - 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-36
SELECT 94 - COUNT( * ) * - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-36
SELECT 94 - COUNT ( * ) * - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-37
SELECT + 10, CAST( + + 46 AS SIGNED ) AS col1
----
10
46

skipif mysql # not compatible
query II rowsort label-37
SELECT + 10, CAST ( + + 46 AS INTEGER ) AS col1
----
10
46

query I rowsort
SELECT - 9 * - 55
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT SUM( DISTINCT 14 ) * 82
----
1148

skipif mysql # not compatible
query I rowsort label-39
SELECT SUM ( DISTINCT 14 ) * 82
----
1148

onlyif mysql # DIV for integer division: 
query II rowsort label-40
SELECT ALL + 92 + - 14 + + 77 DIV - + 77 col0, + 38 AS col1
----
77
38

skipif mysql # not compatible
query II rowsort label-40
SELECT ALL + 92 + - 14 + + 77 / - + 77 col0, + 38 AS col1
----
77
38

query I rowsort
SELECT ALL NULLIF ( - 3, 78 ) col2
----
-3

query I rowsort
SELECT ALL 95 * + 19 AS col2
----
1805

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT DISTINCT - 67 + + MIN( ALL - 21 )
----
-88

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT - 67 + + MIN ( ALL - 21 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL + COUNT( * ) + + 94 + - - 82 + 32
----
209

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + COUNT ( * ) + + 94 + - - 82 + 32
----
209

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

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

query I rowsort
SELECT CASE - 18 WHEN - 13 THEN NULL ELSE - 42 END - - CASE + 6 WHEN - 79 / - - 37 * 59 + 33 + 50 THEN - 21 + 82 END
----
NULL

query I rowsort
SELECT ALL 36 * 85 AS col2
----
3060

query I rowsort
SELECT ALL 53 + + 95 + + + 52 AS col1
----
200

query II rowsort
SELECT 2 * 7 * - 57 AS col1, 55 AS col1
----
-798
55

query II rowsort
SELECT DISTINCT 58 + - 64, 61 AS col2
----
-6
61

onlyif mysql # aggregate syntax: 
query II rowsort label-51
SELECT ( MAX( DISTINCT - NULLIF ( - + 73, - + 26 * - - 21 ) ) ) + 44, ( 25 ) AS col1
----
117
25

skipif mysql # not compatible
query II rowsort label-51
SELECT ( MAX ( DISTINCT - NULLIF ( - + 73, - + 26 * - - 21 ) ) ) + 44, ( 25 ) AS col1
----
117
25

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT ALL 93 - 99 * + 11 AS col1, + COUNT( * )
----
-996
1

skipif mysql # not compatible
query II rowsort label-52
SELECT ALL 93 - 99 * + 11 AS col1, + COUNT ( * )
----
-996
1

query I rowsort
SELECT 96 + + + 59 - + 39 * + - 80 col2
----
3275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-54
SELECT 2 * - - 53 AS col0, - CAST( + 28 AS SIGNED )
----
106
-28

skipif mysql # not compatible
query II rowsort label-54
SELECT 2 * - - 53 AS col0, - CAST ( + 28 AS INTEGER )
----
106
-28

query I rowsort
SELECT 11 + 74 + 75 * 16
----
1285

onlyif mysql # aggregate syntax: 
query II rowsort label-56
SELECT COUNT( DISTINCT - + 5 ) AS col2, + 20 * - COUNT( * ) AS col0
----
1
-20

skipif mysql # not compatible
query II rowsort label-56
SELECT COUNT ( DISTINCT - + 5 ) AS col2, + 20 * - COUNT ( * ) AS col0
----
1
-20

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

query I rowsort
SELECT - - 87 * 85 + 92 col1
----
7487

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

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

query II rowsort
SELECT DISTINCT - 70 * + + 68 AS col2, 54 col1
----
-4760
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT ALL + + 21 * CASE - - 31 WHEN 53 / - - CAST( + 45 AS SIGNED ) + 8 + - 77 THEN - 32 ELSE NULL END + - 95 + + ( 69 ) * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL + + 21 * CASE - - 31 WHEN 53 / - - CAST ( + 45 AS INTEGER ) + 8 + - 77 THEN - 32 ELSE NULL END + - 95 + + ( 69 ) * - 57 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-62
SELECT - 27 DIV + CAST( + 20 AS SIGNED ) + + + 30 col1
----
29

skipif mysql # not compatible
query I rowsort label-62
SELECT - 27 / + CAST ( + 20 AS INTEGER ) + + + 30 col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-63
SELECT 47 + 39 AS col2, COUNT( ALL 73 )
----
86
1

skipif mysql # not compatible
query II rowsort label-63
SELECT 47 + 39 AS col2, COUNT ( ALL 73 )
----
86
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-64
SELECT DISTINCT + - 96 DIV + - CASE 68 WHEN CAST( NULL AS SIGNED ) THEN - + 62 ELSE + 27 END AS col0
----
3

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT + - 96 / + - CASE 68 WHEN CAST ( NULL AS INTEGER ) THEN - + 62 ELSE + 27 END AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-65
SELECT 39 DIV - COUNT( * ) * 1 + 91
----
52

skipif mysql # not compatible
query I rowsort label-65
SELECT 39 / - COUNT ( * ) * 1 + 91
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT + ( - ( + CASE ( + 72 ) WHEN 80 * - 79 * - COUNT( * ) THEN 3 WHEN + + 90 THEN NULL ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT + ( - ( + CASE ( + 72 ) WHEN 80 * - 79 * - COUNT ( * ) THEN 3 WHEN + + 90 THEN NULL ELSE NULL END ) )
----
NULL

query I rowsort
SELECT ALL + 46 + - 2
----
44

query I rowsort
SELECT + 50 * - 31 + 68 + + - 9
----
-1491

query I rowsort
SELECT ALL - 35 + 16
----
-19

query I rowsort
SELECT + 62 * - - 65 + - 31
----
3999

query I rowsort
SELECT ALL 69 + - 84 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT ALL 89 + + - COUNT( * ) * CAST( NULL AS SIGNED ) + 68
----
NULL

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

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

query II rowsort
SELECT DISTINCT 98, 98 AS col2
----
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT ALL 53 + 18 DIV - 18
----
52

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL 53 + 18 / - 18
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT 96 + + + MAX( DISTINCT 61 ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-76
SELECT 96 + + + MAX ( DISTINCT 61 ) AS col2
----
157

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

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

query I rowsort
SELECT ALL + 81 - + 88
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT DISTINCT COUNT( * ) * - 20 DIV 38 * + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT COUNT ( * ) * - 20 / 38 * + 24 AS col2
----
0

query I rowsort
SELECT ALL 0 - 39 AS col0
----
-39

query I rowsort
SELECT ALL 87 * + 99 AS col0
----
8613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-82
SELECT DISTINCT COUNT( * ) * 75 * COUNT( * ) AS col1, COALESCE ( + 49, + 18 + - - 66 + + COUNT( * ), + CAST( + 34 AS SIGNED ) + + ( + 42 ) ) AS col1
----
75
49

skipif mysql # not compatible
query II rowsort label-82
SELECT DISTINCT COUNT ( * ) * 75 * COUNT ( * ) AS col1, COALESCE ( + 49, + 18 + - - 66 + + COUNT ( * ), + CAST ( + 34 AS INTEGER ) + + ( + 42 ) ) AS col1
----
75
49

query I rowsort
SELECT + ( + 85 ) * + 57 AS col1
----
4845

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-84
SELECT + CAST( NULL AS DECIMAL ) / + 59 * - 80 / + - 28, 30 AS col1
----
NULL
30

skipif mysql # not compatible
query II rowsort label-84
SELECT + CAST ( NULL AS REAL ) / + 59 * - 80 / + - 28, 30 AS col1
----
NULL
30

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT ALL + - 23 DIV - + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL + - 23 / - + 48 AS col0
----
0

query II rowsort
SELECT ALL 16, 67 col2
----
16
67

onlyif mysql # aggregate syntax: 
query II rowsort label-87
SELECT ALL + ( + - MAX( ALL 68 ) ), + 48 AS col0
----
-68
48

skipif mysql # not compatible
query II rowsort label-87
SELECT ALL + ( + - MAX ( ALL 68 ) ), + 48 AS col0
----
-68
48

query I rowsort
SELECT + - 36 * - 24
----
864

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT - - 31 * 31 DIV + - 47
----
-20

skipif mysql # not compatible
query I rowsort label-89
SELECT - - 31 * 31 / + - 47
----
-20

query I rowsort
SELECT DISTINCT + 89 * ( 58 ) + - 72 - - + 81 AS col0
----
5171

query I rowsort
SELECT - - 87 + - + 47 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT - + 27 * - 80 + + - 8 * - - 33 + - COUNT( * )
----
1895

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT - + 27 * - 80 + + - 8 * - - 33 + - COUNT ( * )
----
1895

onlyif mysql # aggregate syntax: 
query II rowsort label-93
SELECT - COUNT( - ( 48 ) ) col0, - ( + 63 ) AS col2
----
-1
-63

skipif mysql # not compatible
query II rowsort label-93
SELECT - COUNT ( - ( 48 ) ) col0, - ( + 63 ) AS col2
----
-1
-63

query I rowsort
SELECT DISTINCT + 95 * 48 * - - 53 + + - 55 + - 9 AS col1
----
241616

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT + SUM( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-95
SELECT + SUM ( + 50 )
----
50

query I rowsort
SELECT DISTINCT 4 * + 62 + - - 75 AS col0
----
323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT ALL 10 * - - 81 + COALESCE ( + COUNT( * ), + CAST( - 22 AS SIGNED ) ) AS col0
----
811

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL 10 * - - 81 + COALESCE ( + COUNT ( * ), + CAST ( - 22 AS INTEGER ) ) AS col0
----
811

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT DISTINCT + 40 DIV ( + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT + 40 / ( + 76 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT 49 * CAST( 13 AS SIGNED ) - - - ( - 24 ) AS col1
----
661

skipif mysql # not compatible
query I rowsort label-99
SELECT 49 * CAST ( 13 AS INTEGER ) - - - ( - 24 ) AS col1
----
661

query I rowsort
SELECT - 94 * + + 94
----
-8836

query I rowsort
SELECT ALL - 22 * 20 * - 44
----
19360

query I rowsort
SELECT - 12 + + 21 AS col0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-103
SELECT ALL - 49 - + - 79 AS col2, + 44 DIV + 18
----
30
2

skipif mysql # not compatible
query II rowsort label-103
SELECT ALL - 49 - + - 79 AS col2, + 44 / + 18
----
30
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-104
SELECT ALL CASE COUNT( - 47 ) WHEN + 26 THEN 0 - + 51 ELSE + COUNT( ALL 41 ) DIV COUNT( - 15 ) * - ( - 47 ) END
----
47

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL CASE COUNT ( - 47 ) WHEN + 26 THEN 0 - + 51 ELSE + COUNT ( ALL 41 ) / COUNT ( - 15 ) * - ( - 47 ) END
----
47

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

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL COUNT ( * ) - + - 88 AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT - NULLIF ( - ( + + 37 ), - CAST( NULL AS SIGNED ) ) * 66
----
2442

skipif mysql # not compatible
query I rowsort label-106
SELECT - NULLIF ( - ( + + 37 ), - CAST ( NULL AS INTEGER ) ) * 66
----
2442

query I rowsort
SELECT DISTINCT + 77 * + - ( 59 )
----
-4543

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

query I rowsort
SELECT + 82 - - 48 * - 23
----
-1022

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

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

query I rowsort
SELECT ALL + 59 * + + ( - ( 92 ) ) * 13 - + 58
----
-70622

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT - CASE + - 49 WHEN - + 21 THEN + - 14 * - - NULLIF ( - 61, - SUM( ALL - 68 ) + - 58 ) - - - 16 + 60 END + + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT - CASE + - 49 WHEN - + 21 THEN + - 14 * - - NULLIF ( - 61, - SUM ( ALL - 68 ) + - 58 ) - - - 16 + 60 END + + 34 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-113
SELECT + 58 - + - 90 + + - CASE WHEN NULL IS NOT NULL THEN CAST( - - 23 AS DECIMAL ) END / 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-113
SELECT + 58 - + - 90 + + - CASE WHEN NULL IS NOT NULL THEN CAST ( - - 23 AS REAL ) END / 52 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-114
SELECT - ( CAST ( NULL AS INTEGER ) ) * + + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-115
SELECT - 28 + 6 + COUNT( * ) DIV - + 69 * COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-115
SELECT - 28 + 6 + COUNT ( * ) / - + 69 * COUNT ( * ) AS col2
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-116
SELECT - CAST( NULL AS DECIMAL ) * + + ( + 81 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-116
SELECT - CAST ( NULL AS REAL ) * + + ( + 81 ) col1
----
NULL

query II rowsort
SELECT + 10 * - + 0 AS col0, - ( - + 0 ) * + CASE + 79 WHEN - 57 * 7 + + 26 * - 54 + - + 90 THEN ( + 81 ) WHEN - 26 + 22 THEN + 98 END + 85 - + 43
----
0
NULL

query I rowsort
SELECT - 22 + + ( + 2 ) + + + 94 + 57
----
131

query II rowsort
SELECT + 59 + - 8, 67 AS col2
----
51
67

onlyif mysql # aggregate syntax: 
query II rowsort label-120
SELECT ALL SUM( - + 82 ) AS col1, 24 + + ( - 50 ) AS col2
----
-82
-26

skipif mysql # not compatible
query II rowsort label-120
SELECT ALL SUM ( - + 82 ) AS col1, 24 + + ( - 50 ) AS col2
----
-82
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-121
SELECT CASE - - 81 WHEN + 51 * - - 27 * - CAST( 70 AS DECIMAL ) * + + 96 THEN NULL WHEN + 56 THEN - COUNT( * ) + - 84 ELSE 16 END AS col0
----
16

skipif mysql # not compatible
query I rowsort label-121
SELECT CASE - - 81 WHEN + 51 * - - 27 * - CAST ( 70 AS REAL ) * + + 96 THEN NULL WHEN + 56 THEN - COUNT ( * ) + - 84 ELSE 16 END AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL + COUNT( ALL + 75 ) + 60
----
61

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL + COUNT ( ALL + 75 ) + 60
----
61

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

query I rowsort
SELECT ALL - 87 + 41
----
-46

query I rowsort
SELECT - - 82 * - 73 * - 61 * - 44 * + + 61 AS col0
----
-980051864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT + - 76 + + - ( + + COUNT( * ) ) + 66 * + CAST( NULL AS SIGNED ) * + 68 * + 1 - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-126
SELECT + - 76 + + - ( + + COUNT ( * ) ) + 66 * + CAST ( NULL AS INTEGER ) * + 68 * + 1 - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-127
SELECT + 18 DIV + + COUNT( * ) - + 72
----
-54

skipif mysql # not compatible
query I rowsort label-127
SELECT + 18 / + + COUNT ( * ) - + 72
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT + + 2 + SUM( 63 ) + - 79 - - - 94
----
-108

skipif mysql # not compatible
query I rowsort label-128
SELECT + + 2 + SUM ( 63 ) + - 79 - - - 94
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT ALL - COALESCE ( + + 13, 57, - - 27 * - 7 ) DIV - 76 + - + 94
----
-94

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - COALESCE ( + + 13, 57, - - 27 * - 7 ) / - 76 + - + 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT DISTINCT + COUNT( * ) / 20 + + + 84 + COUNT( * ) + + CASE - 67 WHEN - + COUNT( * ) THEN - + COUNT( * ) + + - MIN( 78 ) / + 38 / - MAX( DISTINCT + - ( 83 ) ) WHEN + MAX( 6 ) * - COUNT( * ) + 73 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT + COUNT ( * ) / 20 + + + 84 + COUNT ( * ) + + CASE - 67 WHEN - + COUNT ( * ) THEN - + COUNT ( * ) + + - MIN ( 78 ) / + 38 / - MAX ( DISTINCT + - ( 83 ) ) WHEN + MAX ( 6 ) * - COUNT ( * ) + 73 THEN NULL ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT 99 * + 64 + + - 66
----
6270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-133
SELECT NULLIF ( - 63, - + 39 / 86 + - 51 + - + COUNT( DISTINCT + CAST( + 94 AS SIGNED ) ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-133
SELECT NULLIF ( - 63, - + 39 / 86 + - 51 + - + COUNT ( DISTINCT + CAST ( + 94 AS INTEGER ) ) ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT DISTINCT + - SUM( - 80 ) AS col1, ( - 10 )
----
80
-10

skipif mysql # not compatible
query II rowsort label-134
SELECT DISTINCT + - SUM ( - 80 ) AS col1, ( - 10 )
----
80
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-135
SELECT ALL + 55 DIV + - 43 + MAX( 98 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL + 55 / + - 43 + MAX ( 98 ) AS col0
----
97

query I rowsort
SELECT + + 35 col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-137
SELECT ALL 6 * + - COALESCE ( + 69, CAST( + 45 AS SIGNED ) * CAST( NULL AS SIGNED ) ) - + + COUNT( * ) DIV + 75 + - MIN( DISTINCT - 76 ) + - + 44 + + NULLIF ( + 71, + + COALESCE ( 59, - ( 43 ) + 84 DIV + + 20 ) ) AS col2
----
-311

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL 6 * + - COALESCE ( + 69, CAST ( + 45 AS INTEGER ) * CAST ( NULL AS INTEGER ) ) - + + COUNT ( * ) / + 75 + - MIN ( DISTINCT - 76 ) + - + 44 + + NULLIF ( + 71, + + COALESCE ( 59, - ( 43 ) + 84 / + + 20 ) ) AS col2
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT + NULLIF ( + 24, + + CASE 44 WHEN COUNT( ALL + 36 ) THEN NULL ELSE COUNT( * ) END * + - 90 + 23 ) * + 78
----
1872

skipif mysql # not compatible
query I rowsort label-138
SELECT + NULLIF ( + 24, + + CASE 44 WHEN COUNT ( ALL + 36 ) THEN NULL ELSE COUNT ( * ) END * + - 90 + 23 ) * + 78
----
1872

query I rowsort
SELECT ALL + 54 * + 59 AS col2
----
3186

query I rowsort
SELECT + ( + ( + 51 ) ) + - 9 + 6
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT DISTINCT 42 - + 40 - + COUNT( * ) * 44
----
-42

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT 42 - + 40 - + COUNT ( * ) * 44
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-142
SELECT 54 * + 74 + - NULLIF ( - CAST( NULL AS DECIMAL ), - + 8 ) + 70 - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-142
SELECT 54 * + 74 + - NULLIF ( - CAST ( NULL AS REAL ), - + 8 ) + 70 - 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-143
SELECT DISTINCT - 81 - 61 DIV - 43 + - 57
----
-137

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT - 81 - 61 / - 43 + - 57
----
-137

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

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

query I rowsort
SELECT 21 + 96
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-146
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) / - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) / - 65 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT 95 DIV 82 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-147
SELECT 95 / 82 AS col2
----
1

query I rowsort
SELECT 31 * - 85
----
-2635

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT ALL - 19 DIV + + 89 col2
----
0

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL - 19 / + + 89 col2
----
0

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

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

query I rowsort
SELECT 21 * - - ( 0 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT + 71 * + 8 + - 25 DIV - - 44 + 30
----
598

skipif mysql # not compatible
query I rowsort label-152
SELECT + 71 * + 8 + - 25 / - - 44 + 30
----
598

query I rowsort
SELECT ALL + 91 + - 43
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + COUNT( * ) - + 94 + - CASE + - 79 WHEN - COUNT( - 48 ) THEN - 23 + + COUNT( * ) - 64 WHEN + 32 THEN NULL END * - - MIN( + - 96 ) + - 38 / - COUNT( * ) + - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT + COUNT ( * ) - + 94 + - CASE + - 79 WHEN - COUNT ( - 48 ) THEN - 23 + + COUNT ( * ) - 64 WHEN + 32 THEN NULL END * - - MIN ( + - 96 ) + - 38 / - COUNT ( * ) + - + 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-155
SELECT DISTINCT + + COUNT( * ) + + 22 + - + 57 DIV + + 16 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT + + COUNT ( * ) + + 22 + - + 57 / + + 16 AS col0
----
20

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT 14 * + NULLIF ( 43, - - NULLIF ( - 98, + COALESCE ( 38, - + 80 * COUNT( * ) ) ) )
----
602

skipif mysql # not compatible
query I rowsort label-158
SELECT 14 * + NULLIF ( 43, - - NULLIF ( - 98, + COALESCE ( 38, - + 80 * COUNT ( * ) ) ) )
----
602

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

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL 90 + COUNT ( * ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT + 59 - - COUNT( 50 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-160
SELECT + 59 - - COUNT ( 50 ) AS col2
----
60

query I rowsort
SELECT ALL + 59 * + - 3 * + 38 col2
----
-6726

query I rowsort
SELECT + + 40 col1
----
40

query I rowsort
SELECT ALL - 84 + - + 90 AS col1
----
-174

query I rowsort
SELECT DISTINCT + 26 * - ( - + 80 )
----
2080

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL - - COALESCE ( + 76, - 22 DIV + 93 * + 9 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL - - COALESCE ( + 76, - 22 / + 93 * + 9 ) AS col0
----
76

query I rowsort
SELECT - 18 + 98 + - 31 * + 56 + - 35 + - 4
----
-1695

query I rowsort
SELECT DISTINCT + 65 * 80 * - 75 AS col2
----
-390000

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT DISTINCT - 49 - 35 DIV 23 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT - 49 - 35 / 23 AS col0
----
-50

query II rowsort
SELECT ALL - 22 AS col2, + 93
----
-22
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-170
SELECT ALL - CASE - COUNT( * ) WHEN ( - 4 ) * - 5 THEN NULL ELSE MAX( - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL - CASE - COUNT ( * ) WHEN ( - 4 ) * - 5 THEN NULL ELSE MAX ( - CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT 67 + + 95
----
162

query II rowsort
SELECT 63 AS col1, ( - 86 )
----
63
-86

query II rowsort
SELECT 98 AS col0, - 23
----
98
-23

query I rowsort
SELECT 15 + 72
----
87

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

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

query I rowsort
SELECT 92 - - 22 * + 64
----
1500

query II rowsort
SELECT ALL COALESCE ( - ( - + 56 ), + 87, + + 6 ) + - 38, + 43 * + + 39 + - 32 AS col0
----
18
1645

query II rowsort
SELECT ALL 24 AS col0, - 48 * - 36 AS col2
----
24
1728

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-180
SELECT 30 DIV - 97 * 33 * - 63 * MAX( DISTINCT 19 ) * - - COUNT( * ) * - + 14
----
0

skipif mysql # not compatible
query I rowsort label-180
SELECT 30 / - 97 * 33 * - 63 * MAX ( DISTINCT 19 ) * - - COUNT ( * ) * - + 14
----
0

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

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

query II rowsort
SELECT 91 - + 60 AS col0, - 19 AS col0
----
31
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-183
SELECT - NULLIF ( - 36, 20 / + CAST( - + 21 AS SIGNED ) + - - 94 * + 71 * 24 + - 83 ) + 20 * ( - 26 ) + - 49 AS col1
----
-533

skipif mysql # not compatible
query I rowsort label-183
SELECT - NULLIF ( - 36, 20 / + CAST ( - + 21 AS INTEGER ) + - - 94 * + 71 * 24 + - 83 ) + 20 * ( - 26 ) + - 49 AS col1
----
-533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-184
SELECT - 77 - + COUNT( - CAST( 87 AS SIGNED ) )
----
-78

skipif mysql # not compatible
query I rowsort label-184
SELECT - 77 - + COUNT ( - CAST ( 87 AS INTEGER ) )
----
-78

query I rowsort
SELECT CASE - + 65 WHEN - 40 + + + 39 THEN + + COALESCE ( 35, + 27 * - + 48 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT + 13 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + 13 + COUNT ( * )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT - + 87 DIV 32 * - + 72 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT - + 87 / 32 * - + 72 AS col1
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT ALL + + ( 0 ) + 49 DIV - NULLIF ( - 16, - 44 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL + + ( 0 ) + 49 / - NULLIF ( - 16, - 44 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT + 44 + ( + NULLIF ( + ( MAX( ALL - 73 ) ), - - 55 ) ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-189
SELECT + 44 + ( + NULLIF ( + ( MAX ( ALL - 73 ) ), - - 55 ) ) col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-190
SELECT DISTINCT - 10 DIV - MAX( - + ( 78 ) )
----
0

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT - 10 / - MAX ( - + ( 78 ) )
----
0

query I rowsort
SELECT + 57 + 40 AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-192
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) + + NULLIF ( + - ( + - 27 ), - 35 ) AS col1, - 63 * - - 76 + 26
----
NULL
-4762

skipif mysql # not compatible
query II rowsort label-192
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) + + NULLIF ( + - ( + - 27 ), - 35 ) AS col1, - 63 * - - 76 + 26
----
NULL
-4762

query I rowsort
SELECT ALL - + 32 - - ( 91 )
----
59

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

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

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

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

query I rowsort
SELECT - 7 + ( - ( + 24 ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT ALL - ( - + 62 ) * + MIN( DISTINCT 31 ) + - MAX( DISTINCT + + 29 ) * - 51 + + 76 AS col0
----
3477

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL - ( - + 62 ) * + MIN ( DISTINCT 31 ) + - MAX ( DISTINCT + + 29 ) * - 51 + + 76 AS col0
----
3477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-198
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT - - 98 * + COUNT( * ) - + 21
----
77

skipif mysql # not compatible
query I rowsort label-199
SELECT - - 98 * + COUNT ( * ) - + 21
----
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT 91 * + 1 + 90 DIV + + 76 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-201
SELECT 91 * + 1 + 90 / + + 76 AS col1
----
92

query I rowsort
SELECT ALL 24 * + 18
----
432

query II rowsort
SELECT - 78 * 86 + - NULLIF ( - 14, ( 74 ) / - 63 ), - 38 AS col2
----
-6694
-38

query I rowsort
SELECT + 23 + + ( + 40 ) - + 78 col1
----
-15

query I rowsort
SELECT + 75 * - + 2
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-206
SELECT DISTINCT - 6 * MIN( + 69 ) DIV - 14 + 57
----
86

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - 6 * MIN ( + 69 ) / - 14 + 57
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT + COUNT( DISTINCT - 26 ) + - COUNT( * ) * 32 - + + 60 * + + COUNT( ALL 49 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-207
SELECT + COUNT ( DISTINCT - 26 ) + - COUNT ( * ) * 32 - + + 60 * + + COUNT ( ALL 49 ) AS col2
----
-91

query I rowsort
SELECT + 39 * + - 80 * - 90 AS col2
----
280800

query I rowsort
SELECT ALL - 9 + + 2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + COUNT( * ) * 51 + - 48 + 63 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-210
SELECT + COUNT ( * ) * 51 + - 48 + 63 AS col0
----
66

query I rowsort
SELECT DISTINCT + 81 * 96 col2
----
7776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT DISTINCT ( - CAST( + 66 AS SIGNED ) )
----
-66

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT ( - CAST ( + 66 AS INTEGER ) )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-213
SELECT DISTINCT 29 - + - 64 AS col0, COUNT( * )
----
93
1

skipif mysql # not compatible
query II rowsort label-213
SELECT DISTINCT 29 - + - 64 AS col0, COUNT ( * )
----
93
1

query I rowsort
SELECT + - 68 - - 63 + - 65 * - 82 AS col1
----
5325

onlyif mysql # aggregate syntax: 
query II rowsort label-215
SELECT MIN( - 55 ) AS col1, - 95 + + - CASE - - 13 WHEN + 66 THEN + 29 ELSE NULL END
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-215
SELECT MIN ( - 55 ) AS col1, - 95 + + - CASE - - 13 WHEN + 66 THEN + 29 ELSE NULL END
----
-55
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-216
SELECT + + 76 * + COUNT( * ), 2 * + + 36 + + 16 + 21 AS col1
----
76
109

skipif mysql # not compatible
query II rowsort label-216
SELECT + + 76 * + COUNT ( * ), 2 * + + 36 + + 16 + 21 AS col1
----
76
109

onlyif mysql # aggregate syntax: 
query II rowsort label-217
SELECT - 0 + - 50 * - ( 45 ) * 92 + + 34 * 67, - COUNT( * ) col1
----
209278
-1

skipif mysql # not compatible
query II rowsort label-217
SELECT - 0 + - 50 * - ( 45 ) * 92 + + 34 * 67, - COUNT ( * ) col1
----
209278
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT - CAST( - + 74 AS SIGNED ) - 38 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-218
SELECT - CAST ( - + 74 AS INTEGER ) - 38 AS col2
----
36

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

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

query I rowsort
SELECT ALL - - 4 * 3 + + NULLIF ( - 63, + - 77 * 82 )
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT - 22 * + COUNT( 92 )
----
-22

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - 22 * + COUNT ( 92 )
----
-22

query II rowsort
SELECT DISTINCT + 28, CASE - 32 WHEN - 24 THEN - + 28 - + 88 * - 51 END AS col1
----
28
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-224
SELECT + ( + 54 ) * + SUM( ALL + CAST( NULL AS SIGNED ) ) + + - 68 * - 89
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-225
SELECT CAST( NULL AS SIGNED ), - 70 AS col2
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-225
SELECT CAST ( NULL AS INTEGER ), - 70 AS col2
----
NULL
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL - 32 * + + MAX( ALL - 38 )
----
1216

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL - 32 * + + MAX ( ALL - 38 )
----
1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-227
SELECT + 55 DIV + COUNT( * ) + + 25, 19 * - + 88 + + + ( - 16 ) * - + 32 + MAX( NULLIF ( - 75, 51 ) ) AS col0
----
80
-1235

skipif mysql # not compatible
query II rowsort label-227
SELECT + 55 / + COUNT ( * ) + + 25, 19 * - + 88 + + + ( - 16 ) * - + 32 + MAX ( NULLIF ( - 75, 51 ) ) AS col0
----
80
-1235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-228
SELECT - 68 * 87 - 80 - CASE - NULLIF ( - CAST( + 62 AS SIGNED ), - + 15 ) WHEN - 96 THEN NULL ELSE - 72 END - - + SUM( ALL 58 ) DIV 18 AS col0
----
-5921

skipif mysql # not compatible
query I rowsort label-228
SELECT - 68 * 87 - 80 - CASE - NULLIF ( - CAST ( + 62 AS INTEGER ), - + 15 ) WHEN - 96 THEN NULL ELSE - 72 END - - + SUM ( ALL 58 ) / 18 AS col0
----
-5921

onlyif mysql # aggregate syntax: 
query II rowsort label-229
SELECT + 97 AS col2, + 28 * - 54 * - COUNT( * )
----
97
1512

skipif mysql # not compatible
query II rowsort label-229
SELECT + 97 AS col2, + 28 * - 54 * - COUNT ( * )
----
97
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-230
SELECT ALL - 72 DIV + - COUNT( * ) + - 9 AS col0, - 82
----
63
-82

skipif mysql # not compatible
query II rowsort label-230
SELECT ALL - 72 / + - COUNT ( * ) + - 9 AS col0, - 82
----
63
-82

query I rowsort
SELECT - 23 * - 70
----
1610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-232
SELECT - 82 + + 94 + - COUNT( * ), CAST( + 54 AS SIGNED ) + + 47 * + - 45 - - 48 col0
----
11
-2013

skipif mysql # not compatible
query II rowsort label-232
SELECT - 82 + + 94 + - COUNT ( * ), CAST ( + 54 AS INTEGER ) + + 47 * + - 45 - - 48 col0
----
11
-2013

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT DISTINCT 86 * - - 68 + 24, + ( + COUNT( * ) ) AS col0
----
5872
1

skipif mysql # not compatible
query II rowsort label-233
SELECT DISTINCT 86 * - - 68 + 24, + ( + COUNT ( * ) ) AS col0
----
5872
1

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ALL 55 * - 51 + 21 * + 55 + COUNT( 74 ) AS col2
----
-1649

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL 55 * - 51 + 21 * + 55 + COUNT ( 74 ) AS col2
----
-1649

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT + MAX( ALL 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-235
SELECT + MAX ( ALL 32 ) AS col2
----
32

query II rowsort
SELECT + NULLIF ( + 60, + - 71 ), - 18 AS col0
----
60
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT - 40 + - 96 - - COUNT( * ) + 1
----
-134

skipif mysql # not compatible
query I rowsort label-237
SELECT - 40 + - 96 - - COUNT ( * ) + 1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT 61 * 27 - + COUNT( * ) * MAX( + 56 ) AS col0
----
1591

skipif mysql # not compatible
query I rowsort label-238
SELECT 61 * 27 - + COUNT ( * ) * MAX ( + 56 ) AS col0
----
1591

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL + + MAX( - 56 ) * + + 3 + - COUNT( * ) AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL + + MAX ( - 56 ) * + + 3 + - COUNT ( * ) AS col0
----
-169

query II rowsort
SELECT ALL + 56 AS col2, - 2 AS col2
----
56
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT ALL 70 DIV + - NULLIF ( + COUNT( * ), + 22 * + 89 + COUNT( * ) ) + 2
----
-68

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL 70 / + - NULLIF ( + COUNT ( * ), + 22 * + 89 + COUNT ( * ) ) + 2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT + - MAX( + - 27 ) DIV 26 * - 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-242
SELECT + - MAX ( + - 27 ) / 26 * - 47 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-243
SELECT - 42 AS col2, 27 - + COUNT( * ) + + COUNT( * ) + - 39 * 57
----
-42
-2196

skipif mysql # not compatible
query II rowsort label-243
SELECT - 42 AS col2, 27 - + COUNT ( * ) + + COUNT ( * ) + - 39 * 57
----
-42
-2196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT - + CAST( - 52 AS SIGNED ) + + ( 60 )
----
112

skipif mysql # not compatible
query I rowsort label-244
SELECT - + CAST ( - 52 AS INTEGER ) + + ( 60 )
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT + - COALESCE ( - + 53, - 80 + + AVG ( DISTINCT 8 ) DIV 42 ) + + ( + 15 ) + - 30 * - 77 + - 85 * 23 - + 58
----
365

skipif mysql # not compatible
query I rowsort label-245
SELECT + - COALESCE ( - + 53, - 80 + + AVG ( DISTINCT 8 ) / 42 ) + + ( + 15 ) + - 30 * - 77 + - 85 * 23 - + 58
----
365

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT - 65 AS col2, 65 + NULLIF ( 77, - COUNT( ALL 52 ) + + ( + 96 ) )
----
-65
142

skipif mysql # not compatible
query II rowsort label-246
SELECT - 65 AS col2, 65 + NULLIF ( 77, - COUNT ( ALL 52 ) + + ( + 96 ) )
----
-65
142

query I rowsort
SELECT - 89 + 32 AS col1
----
-57

query I rowsort
SELECT - 98 * + 75
----
-7350

query I rowsort
SELECT 48 + + 70
----
118

query I rowsort
SELECT ALL - 76 * - ( - 70 ) * - + 17
----
90440

query I rowsort
SELECT + 64 * + + 38
----
2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-252
SELECT 40 + + 30 + + + 58 col2, + CAST( + + 9 AS SIGNED ) * NULLIF ( COUNT( * ), + 15 ) + - - 19 + 40 DIV 89 DIV + 70
----
128
28

skipif mysql # not compatible
query II rowsort label-252
SELECT 40 + + 30 + + + 58 col2, + CAST ( + + 9 AS INTEGER ) * NULLIF ( COUNT ( * ), + 15 ) + - - 19 + 40 / 89 / + 70
----
128
28

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

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL - NULLIF ( - 16, + 2 + + COUNT ( * ) )
----
16

query I rowsort
SELECT 5 + - - 92
----
97

query II rowsort
SELECT 12 * - + 6 AS col2, 8 AS col1
----
-72
8

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT DISTINCT COUNT( + 51 ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT COUNT ( + 51 ) + 38
----
39

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

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

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

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

query I rowsort
SELECT DISTINCT 71 + + 50 AS col1
----
121

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-261
SELECT ALL - COUNT( - 56 ) AS col0, + 53
----
-1
53

skipif mysql # not compatible
query II rowsort label-261
SELECT ALL - COUNT ( - 56 ) AS col0, + 53
----
-1
53

query I rowsort
SELECT ALL 64 + + 36 * 9 AS col0
----
388

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL - MIN( - + COALESCE ( + 41, + - 80 ) )
----
41

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL - MIN ( - + COALESCE ( + 41, + - 80 ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT COALESCE ( 93, - + 86, + - COUNT( DISTINCT + 2 ) ) * + - 11
----
-1023

skipif mysql # not compatible
query I rowsort label-265
SELECT COALESCE ( 93, - + 86, + - COUNT ( DISTINCT + 2 ) ) * + - 11
----
-1023

query I rowsort
SELECT 40 * 64 AS col0
----
2560

query I rowsort
SELECT ALL - NULLIF ( 43, + 36 ) + + - 43 * 59 * + 15 AS col1
----
-38098

query I rowsort
SELECT + 31 * + 65 + + - 42 AS col0
----
1973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-269
SELECT 27 + + ( - 97 ) + + CAST( NULL AS DECIMAL ) * + CAST( 73 AS SIGNED ) + + 50 AS col0, - COUNT( * ) + + COUNT( * ) + + 97 * 71 * + 80 + - ( - - 51 ) * 2
----
NULL
550858

skipif mysql # not compatible
query II rowsort label-269
SELECT 27 + + ( - 97 ) + + CAST ( NULL AS REAL ) * + CAST ( 73 AS INTEGER ) + + 50 AS col0, - COUNT ( * ) + + COUNT ( * ) + + 97 * 71 * + 80 + - ( - - 51 ) * 2
----
NULL
550858

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT DISTINCT CASE ( ( + 7 ) ) WHEN - 13 THEN NULL WHEN COUNT( * ) THEN NULL WHEN + 0 THEN NULL ELSE 51 END * + - COUNT( * ) * - 66 AS col2
----
3366

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT CASE ( ( + 7 ) ) WHEN - 13 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + 0 THEN NULL ELSE 51 END * + - COUNT ( * ) * - 66 AS col2
----
3366

query I rowsort
SELECT - 34 * 63 * + 43 - + 21 AS col1
----
-92127

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-272
SELECT ALL - NULLIF ( - ( - - NULLIF ( - 20, 77 / + 94 + CAST( NULL AS DECIMAL ) ) ), + + 32 + - - 58 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - NULLIF ( - ( - - NULLIF ( - 20, 77 / + 94 + CAST ( NULL AS REAL ) ) ), + + 32 + - - 58 ) AS col1
----
-20

query I rowsort
SELECT 83 * + + 51
----
4233

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT MIN( + + 99 ) * 68
----
6732

skipif mysql # not compatible
query I rowsort label-276
SELECT MIN ( + + 99 ) * 68
----
6732

query I rowsort
SELECT ALL - - 33 * - NULLIF ( - ( + 68 ), 74 )
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT DISTINCT + - 71 * + 26 + CASE - 24 WHEN + CASE + + NULLIF ( 30, + + 75 ) WHEN 89 THEN + 27 * - COALESCE ( + COUNT( * ), - 1 ) END THEN NULL ELSE - 54 END AS col1
----
-1900

skipif mysql # not compatible
query I rowsort label-278
SELECT DISTINCT + - 71 * + 26 + CASE - 24 WHEN + CASE + + NULLIF ( 30, + + 75 ) WHEN 89 THEN + 27 * - COALESCE ( + COUNT ( * ), - 1 ) END THEN NULL ELSE - 54 END AS col1
----
-1900

query I rowsort
SELECT - NULLIF ( - 42, - 33 + - + 74 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL + MIN( DISTINCT 7 ) + + - 74 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL + MIN ( DISTINCT 7 ) + + - 74 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT 42 + + SUM( ALL + - 44 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-281
SELECT 42 + + SUM ( ALL + - 44 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-282
SELECT 86 * - + CAST( - 70 AS SIGNED ) AS col1
----
6020

skipif mysql # not compatible
query I rowsort label-282
SELECT 86 * - + CAST ( - 70 AS INTEGER ) AS col1
----
6020

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL NULLIF ( 73, 78 ) + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL NULLIF ( 73, 78 ) + COUNT ( * )
----
74

query I rowsort
SELECT DISTINCT - 60 + + 12
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT ALL CAST( - + NULLIF ( - + 77, + 11 + - 74 * 96 ) AS SIGNED ) * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL CAST ( - + NULLIF ( - + 77, + 11 + - 74 * 96 ) AS INTEGER ) * - COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT COUNT( * ) + + 17 * - 22
----
-373

skipif mysql # not compatible
query I rowsort label-286
SELECT COUNT ( * ) + + 17 * - 22
----
-373

query I rowsort
SELECT DISTINCT 23 * - 1
----
-23

query I rowsort
SELECT DISTINCT + 69 * - - 91 + + - 73
----
6206

query I rowsort
SELECT ALL 58 * - + 89 AS col2
----
-5162

query I rowsort
SELECT - 3 * - 38 * - 53 + + - 99 col1
----
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ( - 49 ) - - 6 * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-291
SELECT ( - 49 ) - - 6 * COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT SUM( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-292
SELECT SUM ( 32 )
----
32

query I rowsort
SELECT 20 * + ( + - 66 ) AS col1
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT SUM( - - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-294
SELECT SUM ( - - 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT SUM( + - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-295
SELECT SUM ( + - 15 )
----
-15

query I rowsort
SELECT ALL - 7 * - - 73
----
-511

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-298
SELECT + SUM( + - CAST( + - 31 AS SIGNED ) ) DIV + MAX( ALL + 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT + SUM ( + - CAST ( + - 31 AS INTEGER ) ) / + MAX ( ALL + 74 ) AS col0
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-301
SELECT ALL + 69 * + 16 + + ( - 72 ) + - 90 * - - COALESCE ( COALESCE ( - COUNT( * ), - COUNT( * ) + COUNT( * ) ), + 66 DIV - 33 ) AS col1
----
1122

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + 69 * + 16 + + ( - 72 ) + - 90 * - - COALESCE ( COALESCE ( - COUNT ( * ), - COUNT ( * ) + COUNT ( * ) ), + 66 / - 33 ) AS col1
----
1122

query I rowsort
SELECT ALL + - NULLIF ( - + 5, - 89 ) AS col0
----
5

query I rowsort
SELECT - - 31 * 46 AS col2
----
1426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-304
SELECT - + 14 + + CAST( + 83 AS SIGNED ) / - CASE - NULLIF ( - 25, - + 40 ) WHEN 56 / - 14 + - COUNT( * ) + + COUNT( * ) THEN + COALESCE ( + 47, + ( - 17 ) + + 27 * + + 60 - 1 + NULLIF ( - 90, + 78 ) * - - 57 * - + 15 * 92 * - + 0 * + ( + 0 ) + MIN( ALL - + 83 ) ) WHEN - 82 THEN + 16 - + + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT - + 14 + + CAST ( + 83 AS INTEGER ) / - CASE - NULLIF ( - 25, - + 40 ) WHEN 56 / - 14 + - COUNT ( * ) + + COUNT ( * ) THEN + COALESCE ( + 47, + ( - 17 ) + + 27 * + + 60 - 1 + NULLIF ( - 90, + 78 ) * - - 57 * - + 15 * 92 * - + 0 * + ( + 0 ) + MIN ( ALL - + 83 ) ) WHEN - 82 THEN + 16 - + + 70 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 80 * - 20 AS col0
----
-1600

query II rowsort
SELECT ALL - 18 AS col1, - 25 + + 94
----
-18
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-307
SELECT - COALESCE ( ( COUNT( * ) ), 96 + + 22, 86 / + 91, + 2 * + + 41 + - NULLIF ( - 75, - 13 ) ) + CASE - 40 WHEN + 80 THEN - - COUNT( * ) * - 87 / - SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT - COALESCE ( ( COUNT ( * ) ), 96 + + 22, 86 / + 91, + 2 * + + 41 + - NULLIF ( - 75, - 13 ) ) + CASE - 40 WHEN + 80 THEN - - COUNT ( * ) * - 87 / - SUM ( DISTINCT - CAST ( NULL AS REAL ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT ALL - + MIN( DISTINCT - 13 ) + 26 - - NULLIF ( - + 91, - + 88 + + + 25 - - COUNT( * ) ) * + 97 * + - 16
----
141271

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL - + MIN ( DISTINCT - 13 ) + 26 - - NULLIF ( - + 91, - + 88 + + + 25 - - COUNT ( * ) ) * + 97 * + - 16
----
141271

query I rowsort
SELECT ALL + 84 + - - 64 AS col1
----
148

query I rowsort
SELECT - 90 + + 72 + + 67 - + 20
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT - 60 - + + ( - - ( + - COALESCE ( 33, + + CAST( NULL AS SIGNED ) * + 57, 15 - + 48 - CASE 26 WHEN - - 75 THEN - - ( - 53 ) END * - + 10 ) ) ) + - 20
----
-47

skipif mysql # not compatible
query I rowsort label-311
SELECT - 60 - + + ( - - ( + - COALESCE ( 33, + + CAST ( NULL AS INTEGER ) * + 57, 15 - + 48 - CASE 26 WHEN - - 75 THEN - - ( - 53 ) END * - + 10 ) ) ) + - 20
----
-47

query II rowsort
SELECT + 67, + 51 AS col1
----
67
51

query I rowsort
SELECT ALL - 93 + 49
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT + 95 + - 58 + 58 + COUNT( * ) * - 25 + - COUNT( ALL + 85 )
----
69

skipif mysql # not compatible
query I rowsort label-314
SELECT + 95 + - 58 + 58 + COUNT ( * ) * - 25 + - COUNT ( ALL + 85 )
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-315
SELECT - CAST( NULL AS DECIMAL ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT - CAST ( NULL AS REAL ) + 32
----
NULL

query II rowsort
SELECT - 83 + - 57, - 32 col2
----
-140
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-317
SELECT ALL - COUNT( - 66 ) * - 84 * - CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL - COUNT ( - 66 ) * - 84 * - CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 91 AS col2, 2 AS col1
----
91
2

query I rowsort
SELECT DISTINCT - 55 * + + 38 * - 91 AS col0
----
190190

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-320
SELECT - NULLIF ( + COUNT( * ), - 46 ) DIV + ( - COUNT( * ) ) * + COUNT( * ) + + + 52, COUNT( * ) * - + MAX( + + 24 ) * 84 + ( + 72 ) + + 12 col2
----
53
-1932

skipif mysql # not compatible
query II rowsort label-320
SELECT - NULLIF ( + COUNT ( * ), - 46 ) / + ( - COUNT ( * ) ) * + COUNT ( * ) + + + 52, COUNT ( * ) * - + MAX ( + + 24 ) * 84 + ( + 72 ) + + 12 col2
----
53
-1932

query I rowsort
SELECT + 53 * - 64 * + 89 AS col2
----
-301888

query I rowsort
SELECT - 64 + + + 60
----
-4

query II rowsort
SELECT - 23 * 15 AS col1, + 34 AS col2
----
-345
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT + COUNT( * ) + + 69 col2
----
70

skipif mysql # not compatible
query I rowsort label-325
SELECT + COUNT ( * ) + + 69 col2
----
70

query I rowsort
SELECT ALL NULLIF ( - 19, - 42 ) - - 44
----
25

query II rowsort
SELECT 42 AS col2, + 29
----
42
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-328
SELECT + 93 * 85 AS col2, COALESCE ( + - COUNT( * ), - 42 + + 54 ) DIV + 64 AS col2
----
7905
0

skipif mysql # not compatible
query II rowsort label-328
SELECT + 93 * 85 AS col2, COALESCE ( + - COUNT ( * ), - 42 + + 54 ) / + 64 AS col2
----
7905
0

query I rowsort
SELECT ALL 5 * 63 AS col0
----
315

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

query I rowsort
SELECT ALL + ( - ( - 6 ) ) col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-332
SELECT - COUNT( * ) DIV COUNT( * ) + 9
----
8

skipif mysql # not compatible
query I rowsort label-332
SELECT - COUNT ( * ) / COUNT ( * ) + 9
----
8

query I rowsort
SELECT ALL 57 * + ( - 27 )
----
-1539

query I rowsort
SELECT + 63 * - + 16 * - 41 AS col0
----
41328

onlyif mysql # aggregate syntax: 
query II rowsort label-335
SELECT ALL 69 * - 30 * - SUM( 12 ) AS col1, - 49
----
24840
-49

skipif mysql # not compatible
query II rowsort label-335
SELECT ALL 69 * - 30 * - SUM ( 12 ) AS col1, - 49
----
24840
-49

query I rowsort
SELECT + - 79 + 95 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-337
SELECT DISTINCT + + SUM( 35 ) AS col1, 99 AS col1
----
35
99

skipif mysql # not compatible
query II rowsort label-337
SELECT DISTINCT + + SUM ( 35 ) AS col1, 99 AS col1
----
35
99

query I rowsort
SELECT + + 9 * - + 93
----
-837

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-339
SELECT ALL 58 * - 13 + - 10 + CASE + 13 WHEN - ( - 86 ) THEN + SUM( ALL + 29 ) WHEN + 31 * COUNT( * ) THEN ( - AVG ( + 74 ) ) * + ( + + 34 ) * + 36 + - + 48 * - 87 END + + 69 + + CAST( ( - MAX( DISTINCT + 89 ) ) AS DECIMAL ) + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 58 * - 13 + - 10 + CASE + 13 WHEN - ( - 86 ) THEN + SUM ( ALL + 29 ) WHEN + 31 * COUNT ( * ) THEN ( - AVG ( + 74 ) ) * + ( + + 34 ) * + 36 + - + 48 * - 87 END + + 69 + + CAST ( ( - MAX ( DISTINCT + 89 ) ) AS REAL ) + + 17
----
NULL

query I rowsort
SELECT + 95 * 43
----
4085

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-341
SELECT ALL + 97 AS col2, 4 DIV + - COUNT( * ) + 19 + - - 58 * - 81
----
97
-4683

skipif mysql # not compatible
query II rowsort label-341
SELECT ALL + 97 AS col2, 4 / + - COUNT ( * ) + 19 + - - 58 * - 81
----
97
-4683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-342
SELECT + + 0, 8 / + - COUNT( * ) * ( - CAST( NULL AS SIGNED ) ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-342
SELECT + + 0, 8 / + - COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ) col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL + 99 * + COUNT( DISTINCT - 12 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL + 99 * + COUNT ( DISTINCT - 12 ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT + - 83 * + COUNT( * ) + - - ( - 43 ) + - - 62 * - MIN( ALL CAST( + + 29 AS SIGNED ) )
----
-1924

skipif mysql # not compatible
query I rowsort label-344
SELECT + - 83 * + COUNT ( * ) + - - ( - 43 ) + - - 62 * - MIN ( ALL CAST ( + + 29 AS INTEGER ) )
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT - + 77 * - + 20 * COUNT( * ) AS col1
----
1540

skipif mysql # not compatible
query I rowsort label-345
SELECT - + 77 * - + 20 * COUNT ( * ) AS col1
----
1540

query II rowsort
SELECT + + ( 99 ) * - + ( - 21 ) AS col2, 57 AS col0
----
2079
57

query I rowsort
SELECT - - 2 + - 10
----
-8

query II rowsort
SELECT ALL 12 AS col1, 15 AS col2
----
12
15

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT + - 33 DIV + - 86 + + - 65 * 99 - - 38 - - 57 AS col1
----
-6340

skipif mysql # not compatible
query I rowsort label-349
SELECT + - 33 / + - 86 + + - 65 * 99 - - 38 - - 57 AS col1
----
-6340

query I rowsort
SELECT DISTINCT - - 3 * + NULLIF ( - 2, + 55 + - 46 )
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-352
SELECT - - 53 * - - 81 + 23 + CAST( - 4 AS SIGNED )
----
4312

skipif mysql # not compatible
query I rowsort label-352
SELECT - - 53 * - - 81 + 23 + CAST ( - 4 AS INTEGER )
----
4312

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

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 58 + + COUNT ( * ) * + 14
----
NULL

query I rowsort
SELECT DISTINCT - 60 + 87 * - 40
----
-3540

query I rowsort
SELECT DISTINCT 48 * + 54
----
2592

query I rowsort
SELECT DISTINCT + 96 - + 75
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-357
SELECT DISTINCT CAST( + 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT CAST ( + 58 AS INTEGER )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT ALL - 42 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL - 42 / + 55
----
0

query I rowsort
SELECT - 41 * ( - 95 )
----
3895

query I rowsort
SELECT - 47 + - - 59 col2
----
12

query I rowsort
SELECT DISTINCT + ( - 49 ) * 7
----
-343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT DISTINCT COALESCE ( ( - CAST( - COUNT( * ) AS SIGNED ) ), + 19, + 85 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT COALESCE ( ( - CAST ( - COUNT ( * ) AS INTEGER ) ), + 19, + 85 ) col0
----
1

query I rowsort
SELECT - 70 - - 78
----
8

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

query II rowsort
SELECT DISTINCT + 25 * + - 29 AS col0, + 34
----
-725
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-366
SELECT 16 * + CAST( + + 83 AS SIGNED ) + - 91 AS col0
----
1237

skipif mysql # not compatible
query I rowsort label-366
SELECT 16 * + CAST ( + + 83 AS INTEGER ) + - 91 AS col0
----
1237

query I rowsort
SELECT - 39 * + ( + 37 )
----
-1443

query I rowsort
SELECT 43 * + 32 AS col0
----
1376

query I rowsort
SELECT ALL 96 + 26 AS col2
----
122

query I rowsort
SELECT DISTINCT + 20 + + - 8 * - 65 AS col0
----
540

query I rowsort
SELECT ALL - 87 + ( + 72 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT DISTINCT ( COUNT( * ) ) + + 12 * - - 75 - - 74
----
975

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT ( COUNT ( * ) ) + + 12 * - - 75 - - 74
----
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-373
SELECT - 18 DIV + COUNT( + + 56 ) + - + 90
----
-108

skipif mysql # not compatible
query I rowsort label-373
SELECT - 18 / + COUNT ( + + 56 ) + - + 90
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT COUNT( * ) + 47, COUNT( * ) - NULLIF ( - 84, + - 38 ) AS col1
----
48
85

skipif mysql # not compatible
query II rowsort label-374
SELECT COUNT ( * ) + 47, COUNT ( * ) - NULLIF ( - 84, + - 38 ) AS col1
----
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT CASE - 9 WHEN - - 56 THEN + 85 WHEN - COUNT( * ) THEN NULL END * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT CASE - 9 WHEN - - 56 THEN + 85 WHEN - COUNT ( * ) THEN NULL END * 16 AS col2
----
NULL

query I rowsort
SELECT ALL 98 + + 41 - - 69 AS col2
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL - ( - NULLIF ( + COUNT( * ), - 3 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - ( - NULLIF ( + COUNT ( * ), - 3 ) ) AS col2
----
1

query I rowsort
SELECT + - COALESCE ( - 52, + 8, - 8 )
----
52

query I rowsort
SELECT ALL 25 + 14 - + 51
----
-12

query I rowsort
SELECT + + 49 * + + ( + - 16 ) + - - 94 * 72 * 46 AS col1
----
310544

query I rowsort
SELECT ALL + ( 91 ) - 17
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT COUNT( * ) + - ( 15 ), 5 + 91 AS col2
----
-14
96

skipif mysql # not compatible
query II rowsort label-382
SELECT COUNT ( * ) + - ( 15 ), 5 + 91 AS col2
----
-14
96

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

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

query I rowsort
SELECT ALL ( 1 ) * + - 83 col1
----
-83

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

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

query I rowsort
SELECT DISTINCT - 38 * - 21 col0
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT COUNT( * ) * + + ( - 68 ) * - - 34
----
-2312

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT COUNT ( * ) * + + ( - 68 ) * - - 34
----
-2312

query I rowsort
SELECT 46 * + 98
----
4508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-389
SELECT 10, 35 + + 29 - + + CAST( NULL AS SIGNED ) * + COUNT( * ) + 58 * 36 * + 77 AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-389
SELECT 10, 35 + + 29 - + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 58 * 36 * + 77 AS col0
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ( + NULLIF ( 23, + COUNT( * ) ) ) + - ( 36 ) - - ( - + 71 )
----
-84

skipif mysql # not compatible
query I rowsort label-390
SELECT ( + NULLIF ( 23, + COUNT ( * ) ) ) + - ( 36 ) - - ( - + 71 )
----
-84

query I rowsort
SELECT DISTINCT + 94 + 91
----
185

query I rowsort
SELECT 84 + 41 col2
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-393
SELECT ALL + - ( - 19 ) + + - CASE + SUM( COALESCE ( + 67, - 35 ) ) WHEN CAST( NULL AS SIGNED ) * 7 - + 35 THEN NULL ELSE + 69 END
----
-50

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + - ( - 19 ) + + - CASE + SUM ( COALESCE ( + 67, - 35 ) ) WHEN CAST ( NULL AS INTEGER ) * 7 - + 35 THEN NULL ELSE + 69 END
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL - - 4 + 18 * CASE - AVG ( - 29 ) WHEN + ( + - 59 ) THEN - COUNT( * ) ELSE + 96 END
----
1732

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL - - 4 + 18 * CASE - AVG ( - 29 ) WHEN + ( + - 59 ) THEN - COUNT ( * ) ELSE + 96 END
----
1732

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT + + MIN( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-395
SELECT + + MIN ( 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ( - + ( ( - + ( 10 ) ) ) ) * - 45 + 83 + 7 * - - COUNT( * ) - + - 50
----
-310

skipif mysql # not compatible
query I rowsort label-396
SELECT ( - + ( ( - + ( 10 ) ) ) ) * - 45 + 83 + 7 * - - COUNT ( * ) - + - 50
----
-310

query I rowsort
SELECT ALL + + 74 + - 69
----
5

query I rowsort
SELECT DISTINCT + - ( + 32 ) + - 46 * 48
----
-2240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT 61 * - - CASE - 19 WHEN 63 THEN NULL ELSE + + 96 * + 65 + ( 53 ) + + NULLIF ( - COUNT( * ), + COUNT( * ) ) * 92 END + 32 + 84 col1
----
378377

skipif mysql # not compatible
query I rowsort label-400
SELECT 61 * - - CASE - 19 WHEN 63 THEN NULL ELSE + + 96 * + 65 + ( 53 ) + + NULLIF ( - COUNT ( * ), + COUNT ( * ) ) * 92 END + 32 + 84 col1
----
378377

query II rowsort
SELECT + 30 AS col0, 22
----
30
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-402
SELECT ALL - - 87 AS col1, 97 DIV CAST( - COALESCE ( + + 46, - 73 * + 7 + + + COALESCE ( + + COUNT( * ), - 26 ), - CAST( NULL AS SIGNED ), 10, - 50 ) AS SIGNED ) AS col1
----
87
-2

skipif mysql # not compatible
query II rowsort label-402
SELECT ALL - - 87 AS col1, 97 / CAST ( - COALESCE ( + + 46, - 73 * + 7 + + + COALESCE ( + + COUNT ( * ), - 26 ), - CAST ( NULL AS INTEGER ), 10, - 50 ) AS INTEGER ) AS col1
----
87
-2

query I rowsort
SELECT - 70 * - 43 AS col0
----
3010

query I rowsort
SELECT - 40 + 16 AS col2
----
-24

query I rowsort
SELECT - NULLIF ( + 50, + 34 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT + - ( NULLIF ( 2, + 85 + 37 + + COUNT( * ) * - COUNT( * ) * - + 63 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-406
SELECT + - ( NULLIF ( 2, + 85 + 37 + + COUNT ( * ) * - COUNT ( * ) * - + 63 ) ) AS col1
----
-2

query I rowsort
SELECT ALL - 14 * + 26 + NULLIF ( ( - 81 ), - + 61 / - 74 ) AS col1
----
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT COUNT( ALL 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-408
SELECT COUNT ( ALL 11 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT ALL + COUNT( * ) * - MIN( - + ( - + 36 ) ) * + COUNT( * ) + 3
----
-33

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL + COUNT ( * ) * - MIN ( - + ( - + 36 ) ) * + COUNT ( * ) + 3
----
-33

query I rowsort
SELECT ALL ( 56 ) * + 92 col0
----
5152

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT COUNT( * ) * - 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-411
SELECT COUNT ( * ) * - 84 AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-412
SELECT NULLIF ( - - 22, - + COUNT( * ) ) DIV 98 * + COUNT( + + 13 )
----
0

skipif mysql # not compatible
query I rowsort label-412
SELECT NULLIF ( - - 22, - + COUNT ( * ) ) / 98 * + COUNT ( + + 13 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-413
SELECT CAST( + + 20 AS SIGNED ) * - 99
----
-1980

skipif mysql # not compatible
query I rowsort label-413
SELECT CAST ( + + 20 AS INTEGER ) * - 99
----
-1980

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT ALL 82 DIV + 38 col2
----
2

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL 82 / + 38 col2
----
2

query I rowsort
SELECT 46 * - 21
----
-966

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

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

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

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

query I rowsort
SELECT 59 * ( - + 6 ) AS col0
----
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT 30 + 90 + - + SUM( DISTINCT - ( + 7 ) ) + - ( - ( - ( + + MIN( 77 ) ) ) ) * - 37
----
2976

skipif mysql # not compatible
query I rowsort label-419
SELECT 30 + 90 + - + SUM ( DISTINCT - ( + 7 ) ) + - ( - ( - ( + + MIN ( 77 ) ) ) ) * - 37
----
2976

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-420
SELECT + 10 + 37, - 44 * CAST( NULL AS SIGNED ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-420
SELECT + 10 + 37, - 44 * CAST ( NULL AS INTEGER ) AS col2
----
47
NULL

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

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

query I rowsort
SELECT - NULLIF ( 23, 39 - + 82 ) + 38 + - - 54
----
69

query I rowsort
SELECT DISTINCT 40 + - - 42 + - 38 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL 75 + + - 79 + COUNT( * ) + + + 79 * + 79 + - COUNT( * ) * + 72
----
6166

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL 75 + + - 79 + COUNT ( * ) + + + 79 * + 79 + - COUNT ( * ) * + 72
----
6166

query I rowsort
SELECT ALL 31 + + 86 col1
----
117

query I rowsort
SELECT + 14 * - + 37 AS col1
----
-518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-427
SELECT 12 * + + 82 + - 59 * + ( + - COUNT( * ) ) * - 64 - + ( - 11 ) - 65 * 51 + - 7 - ( + + CAST( NULL AS SIGNED ) ) + + 45 AS col2, - 98
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-427
SELECT 12 * + + 82 + - 59 * + ( + - COUNT ( * ) ) * - 64 - + ( - 11 ) - 65 * 51 + - 7 - ( + + CAST ( NULL AS INTEGER ) ) + + 45 AS col2, - 98
----
NULL
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT - COUNT( 78 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-428
SELECT - COUNT ( 78 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-429
SELECT - 80 * - 48 + - 81 + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) - - 39 * - 88 - + - 86 + + + MIN( DISTINCT 88 ) + - COUNT( * ) + + 56 + + 37 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT - 80 * - 48 + - 81 + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) - - 39 * - 88 - + - 86 + + + MIN ( DISTINCT 88 ) + - COUNT ( * ) + + 56 + + 37 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT ALL - - 33 * CASE - CAST( NULL AS SIGNED ) WHEN CAST( 77 AS SIGNED ) THEN + 64 WHEN + 15 THEN + 75 END - - - 65 / + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL - - 33 * CASE - CAST ( NULL AS INTEGER ) WHEN CAST ( 77 AS INTEGER ) THEN + 64 WHEN + 15 THEN + 75 END - - - 65 / + 8 AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 60, + 76 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-432
SELECT DISTINCT + ( + ( - ( + - 93 ) ) ) AS col2, 0 * + 10 + MIN( + 29 ) * + + 81 AS col0
----
93
2349

skipif mysql # not compatible
query II rowsort label-432
SELECT DISTINCT + ( + ( - ( + - 93 ) ) ) AS col2, 0 * + 10 + MIN ( + 29 ) * + + 81 AS col0
----
93
2349

query II rowsort
SELECT - 4 * 18 AS col1, 77 AS col0
----
-72
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-434
SELECT + 63 * + MAX( DISTINCT ( 90 ) ) - - 9 DIV - + 19
----
5670

skipif mysql # not compatible
query I rowsort label-434
SELECT + 63 * + MAX ( DISTINCT ( 90 ) ) - - 9 / - + 19
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT - 57 + - NULLIF ( + 18, + 60 * 39 - + 62 - - 11 ) + + 8 + - COUNT( * ) * + + 5
----
-72

skipif mysql # not compatible
query I rowsort label-435
SELECT - 57 + - NULLIF ( + 18, + 60 * 39 - + 62 - - 11 ) + + 8 + - COUNT ( * ) * + + 5
----
-72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT 56 * + 51 + - ( 20 ) + - + 93 * - 16 col0, 62 * - ( + 90 ) + + COUNT( * )
----
4324
-5579

skipif mysql # not compatible
query II rowsort label-437
SELECT 56 * + 51 + - ( 20 ) + - + 93 * - 16 col0, 62 * - ( + 90 ) + + COUNT ( * )
----
4324
-5579

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT - 6 * MAX( DISTINCT + ( - 36 ) ) AS col2
----
216

skipif mysql # not compatible
query I rowsort label-438
SELECT - 6 * MAX ( DISTINCT + ( - 36 ) ) AS col2
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT ALL - 83 DIV + + 81
----
-1

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - 83 / + + 81
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT - 18 + - CASE - 19 WHEN + COUNT( * ) THEN - 32 WHEN SUM( - 74 ) * - 19 / - 64 * - - 39 THEN NULL ELSE - 76 * + + 28 END * + 52 AS col1
----
110638

skipif mysql # not compatible
query I rowsort label-440
SELECT - 18 + - CASE - 19 WHEN + COUNT ( * ) THEN - 32 WHEN SUM ( - 74 ) * - 19 / - 64 * - - 39 THEN NULL ELSE - 76 * + + 28 END * + 52 AS col1
----
110638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-441
SELECT - CAST( 94 AS SIGNED ) * COUNT( * ) * - 95 + + + 4 DIV + - 29
----
8930

skipif mysql # not compatible
query I rowsort label-441
SELECT - CAST ( 94 AS INTEGER ) * COUNT ( * ) * - 95 + + + 4 / + - 29
----
8930

query I rowsort
SELECT ALL 41 * + COALESCE ( - + 5, 55 )
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - COALESCE ( MIN( + 92 ), COUNT( * ) ) + + 16 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-443
SELECT - COALESCE ( MIN ( + 92 ), COUNT ( * ) ) + + 16 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL + 61 * + 49 + + 42 * 76 * ( COUNT( * ) )
----
6181

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL + 61 * + 49 + + 42 * 76 * ( COUNT ( * ) )
----
6181

query I rowsort
SELECT - 11 * - - 59 * ( 18 )
----
-11682

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

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

query I rowsort
SELECT ALL 99 + 73 AS col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT - MIN( - - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-448
SELECT - MIN ( - - 42 )
----
-42

query I rowsort
SELECT + 81 * - 37 AS col0
----
-2997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-450
SELECT DISTINCT - 76 + - - CAST( NULL AS SIGNED ) + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT - 76 + - - CAST ( NULL AS INTEGER ) + + 81
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT DISTINCT 27 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT 27 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT + 33 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-452
SELECT + 33 / - 50
----
0

query I rowsort
SELECT ALL 39 + 21
----
60

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

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

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

query I rowsort
SELECT + ( 73 ) + 9 * + 54 AS col2
----
559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-457
SELECT + COUNT( 90 ) DIV - ( + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT + COUNT ( 90 ) / - ( + 91 )
----
0

query I rowsort
SELECT + 3 + 61
----
64

query I rowsort
SELECT DISTINCT 55 * 5
----
275

query I rowsort
SELECT DISTINCT 32 * + NULLIF ( - 2 * 0, 89 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-461
SELECT CAST( 25 AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-461
SELECT CAST ( 25 AS INTEGER ) AS col0
----
25

query I rowsort
SELECT + 61 + NULLIF ( 18, + 8 - + 50 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT - 13 * - COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-463
SELECT - 13 * - COUNT ( * ) AS col1
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT + 85 * 68 + + 27 * CASE COUNT( * ) WHEN 58 + + 32 THEN + 6 + + 13 WHEN 31 THEN 16 ELSE - 94 END AS col0
----
3242

skipif mysql # not compatible
query I rowsort label-465
SELECT + 85 * 68 + + 27 * CASE COUNT ( * ) WHEN 58 + + 32 THEN + 6 + + 13 WHEN 31 THEN 16 ELSE - 94 END AS col0
----
3242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-466
SELECT ALL - ( ( + CASE + 86 WHEN COUNT( * ) THEN 60 * 32 + - COUNT( * ) WHEN - 43 * - CAST( 56 AS SIGNED ) THEN - COUNT( * ) * 20 WHEN ( CAST( 67 AS SIGNED ) ) THEN NULL ELSE NULL END ) ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - ( ( + CASE + 86 WHEN COUNT ( * ) THEN 60 * 32 + - COUNT ( * ) WHEN - 43 * - CAST ( 56 AS INTEGER ) THEN - COUNT ( * ) * 20 WHEN ( CAST ( 67 AS INTEGER ) ) THEN NULL ELSE NULL END ) ) * - 21
----
NULL

query I rowsort
SELECT DISTINCT - 79 * 17 AS col2
----
-1343

query I rowsort
SELECT ALL 10 * 13 + ( 49 ) AS col1
----
179

query I rowsort
SELECT - 47 * 64
----
-3008

query I rowsort
SELECT DISTINCT - ( 57 ) * 95 col0
----
-5415

query I rowsort
SELECT ALL + 62 + 85 AS col2
----
147

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

skipif mysql # not compatible
query I rowsort label-472
SELECT 84 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 89 + - ( 4 ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT DISTINCT + 35 DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT + 35 / - 28
----
-1

query I rowsort
SELECT DISTINCT - 8 + - 82 * 97
----
-7962

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL + COUNT( * ) * COALESCE ( + 72, COUNT( * ) * + 62, + ( - 57 ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL + COUNT ( * ) * COALESCE ( + 72, COUNT ( * ) * + 62, + ( - 57 ) ) AS col2
----
72

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

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT + 44 + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - 90 + + 62
----
-28

query I rowsort
SELECT DISTINCT 86 + - 97 * - 41
----
4063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-480
SELECT ALL COUNT( * ) - - CAST( NULL AS SIGNED ) * - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - 33 AS col0
----
NULL

query I rowsort
SELECT 92 + ( + 2 ) * 35
----
162

query I rowsort
SELECT + 57 * + 29
----
1653

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

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

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

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

query I rowsort
SELECT - 23 * 1 AS col0
----
-23

query I rowsort
SELECT DISTINCT - 82 * + 76
----
-6232

query I rowsort
SELECT - 50 + - 25 AS col0
----
-75

query I rowsort
SELECT + 59 * 71 AS col1
----
4189

query I rowsort
SELECT DISTINCT - 27 * - 76
----
2052

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

onlyif mysql # DIV for integer division: 
query I rowsort label-491
SELECT 30 DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-491
SELECT 30 / + 73 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT + 26 * - NULLIF ( NULLIF ( 81, + CAST( NULL AS SIGNED ) + - 82 * 29 ), - 35 ) AS col1
----
-2106

skipif mysql # not compatible
query I rowsort label-492
SELECT + 26 * - NULLIF ( NULLIF ( 81, + CAST ( NULL AS INTEGER ) + - 82 * 29 ), - 35 ) AS col1
----
-2106

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

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

query I rowsort
SELECT DISTINCT 65 * + 59
----
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT - NULLIF ( - 9, SUM( + 75 ) + COUNT( * ) ) * + 17
----
153

skipif mysql # not compatible
query I rowsort label-495
SELECT - NULLIF ( - 9, SUM ( + 75 ) + COUNT ( * ) ) * + 17
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-496
SELECT DISTINCT - CAST( - 54 AS SIGNED ) * 21 AS col0
----
1134

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT - CAST ( - 54 AS INTEGER ) * 21 AS col0
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT DISTINCT - + 58 + - NULLIF ( 22, COUNT( * ) * + COUNT( * ) ) * 79 AS col1
----
-1796

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - + 58 + - NULLIF ( 22, COUNT ( * ) * + COUNT ( * ) ) * 79 AS col1
----
-1796

query I rowsort
SELECT ALL + 5 * - 37
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT 40 * + - MIN( DISTINCT 9 ) * - 92 AS col1
----
33120

skipif mysql # not compatible
query I rowsort label-499
SELECT 40 * + - MIN ( DISTINCT 9 ) * - 92 AS col1
----
33120

query I rowsort
SELECT ALL 77 + 23 AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT ALL COUNT( * ) + + + 42 DIV 61 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL COUNT ( * ) + + + 42 / 61 AS col1
----
1

query I rowsort
SELECT 30 + - - 98
----
128

query I rowsort
SELECT ( 51 ) + 71 AS col2
----
122

query I rowsort
SELECT 75 - + 47 + - 43 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT ALL 23 + COUNT( * ) - + 66 * + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL 23 + COUNT ( * ) - + 66 * + COUNT ( * )
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT 84 * + MIN( 7 )
----
588

skipif mysql # not compatible
query I rowsort label-507
SELECT 84 * + MIN ( 7 )
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT + 36 * + + 43 + ( 37 ) * COUNT( * ) AS col0
----
1585

skipif mysql # not compatible
query I rowsort label-508
SELECT + 36 * + + 43 + ( 37 ) * COUNT ( * ) AS col0
----
1585

query I rowsort
SELECT DISTINCT + 48 * + + 6 AS col2
----
288

query I rowsort
SELECT DISTINCT COALESCE ( + + 27, 54 + 10 * 16, - 46 ) + + 84 AS col2
----
111

query I rowsort
SELECT ALL + 31 * - 24
----
-744

query I rowsort
SELECT ( - + 76 ) + 77 * + 20
----
1464

query I rowsort
SELECT ALL 63 - + - 63 * 50
----
3213

query I rowsort
SELECT 80 * + 42
----
3360

query I rowsort
SELECT DISTINCT 81 * 75 * 18
----
109350

query I rowsort
SELECT + 60 * + 96 * 74 + - 67 col0
----
426173

query I rowsort
SELECT ALL 16 * ( 2 )
----
32

query I rowsort
SELECT 99 + - - 17
----
116

query I rowsort
SELECT ( + 46 ) * 42 AS col0
----
1932

query I rowsort
SELECT - 54 + - 55 AS col1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT 96 + + + COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-521
SELECT 96 + + + COUNT ( * ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT - 7 DIV 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-522
SELECT - 7 / 38 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-523
SELECT ALL + 89 * + CAST( NULL AS DECIMAL ) + NULLIF ( + CASE 21 WHEN + COUNT( * ) / 33 THEN COUNT( * ) WHEN - 55 * 63 THEN NULL ELSE 66 + + 31 END, 10 + 23 * 76 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 89 * + CAST ( NULL AS REAL ) + NULLIF ( + CASE 21 WHEN + COUNT ( * ) / 33 THEN COUNT ( * ) WHEN - 55 * 63 THEN NULL ELSE 66 + + 31 END, 10 + 23 * 76 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT + 87 - + 33 + 1 * 31 DIV 20
----
55

skipif mysql # not compatible
query I rowsort label-524
SELECT + 87 - + 33 + 1 * 31 / 20
----
55

query I rowsort
SELECT + 57 * + + 62 + ( 29 ) AS col2
----
3563

query I rowsort
SELECT - 96 + + ( - 60 ) * 44
----
-2736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-527
SELECT - 79 + + 28 + CASE SUM( CAST( ( - ( 92 ) ) AS SIGNED ) ) WHEN - 13 * MAX( ALL 32 * - 40 ) THEN NULL WHEN 98 THEN 72 WHEN ( 43 ) * 39 + ( 52 ) THEN + 39 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT - 79 + + 28 + CASE SUM ( CAST ( ( - ( 92 ) ) AS INTEGER ) ) WHEN - 13 * MAX ( ALL 32 * - 40 ) THEN NULL WHEN 98 THEN 72 WHEN ( 43 ) * 39 + ( 52 ) THEN + 39 END col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 71, 61 * - 42 + 89 ) * 57
----
4047

query I rowsort
SELECT - 23 * ( 94 ) AS col1
----
-2162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT 75 * - - 15 * CAST( NULL AS SIGNED ) + + 19 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-530
SELECT 75 * - - 15 * CAST ( NULL AS INTEGER ) + + 19 * 49
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-532
SELECT ALL - COALESCE ( + COUNT( * ), COALESCE ( + CAST( NULL AS SIGNED ), - 36 + 1 ) + - CAST( NULL AS SIGNED ) ) + 89 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL - COALESCE ( + COUNT ( * ), COALESCE ( + CAST ( NULL AS INTEGER ), - 36 + 1 ) + - CAST ( NULL AS INTEGER ) ) + 89 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT 40 * - ( + 17 ) * 69 + - 69 DIV - 25
----
-46918

skipif mysql # not compatible
query I rowsort label-533
SELECT 40 * - ( + 17 ) * 69 + - 69 / - 25
----
-46918

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT - 91 * + 41 * - 14 + + COUNT( * )
----
52235

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT - 91 * + 41 * - 14 + + COUNT ( * )
----
52235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT - + NULLIF ( - 15, 27 * 46 ) DIV COUNT( * ) + - 17 * COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-535
SELECT - + NULLIF ( - 15, 27 * 46 ) / COUNT ( * ) + - 17 * COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT CASE + COALESCE ( + 46, 1, 59 ) WHEN 37 * 4 + 17 * - 91 THEN NULL WHEN - 34 THEN + 74 END * 62 + - 87 AS col1
----
NULL

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

query I rowsort
SELECT ALL + 29 * - 91 * - + 73 + + 54 AS col2
----
192701

onlyif mysql # DIV for integer division: 
query I rowsort label-539
SELECT - 35 DIV 25 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-539
SELECT - 35 / 25 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT + COALESCE ( + 96, - ( + COUNT( * ) ) * 17 ) + 89
----
185

skipif mysql # not compatible
query I rowsort label-540
SELECT + COALESCE ( + 96, - ( + COUNT ( * ) ) * 17 ) + 89
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT 25 * - 29 + ( + COUNT( * ) ) - NULLIF ( 72, + 32 ) AS col2
----
-796

skipif mysql # not compatible
query I rowsort label-541
SELECT 25 * - 29 + ( + COUNT ( * ) ) - NULLIF ( 72, + 32 ) AS col2
----
-796

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT ALL 45 * + + 10 DIV 13 DIV ( 98 ) + - 10 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL 45 * + + 10 / 13 / ( 98 ) + - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-543
SELECT + ( CASE + 45 WHEN + 4 THEN NULL ELSE + SUM( - 2 ) * - ( - COUNT( 95 ) ) + + 21 END ) DIV 20 + + NULLIF ( - 21, - COUNT( * ) * - 64 )
----
-21

skipif mysql # not compatible
query I rowsort label-543
SELECT + ( CASE + 45 WHEN + 4 THEN NULL ELSE + SUM ( - 2 ) * - ( - COUNT ( 95 ) ) + + 21 END ) / 20 + + NULLIF ( - 21, - COUNT ( * ) * - 64 )
----
-21

query I rowsort
SELECT DISTINCT + 19 * - 77 + + - NULLIF ( - ( 11 ), ( 39 ) + 8 )
----
-1452

query I rowsort
SELECT DISTINCT 17 * 73
----
1241

query I rowsort
SELECT ALL 76 * + 5
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT + MAX( DISTINCT + + 81 ) * + 41 - 27 AS col1
----
3294

skipif mysql # not compatible
query I rowsort label-547
SELECT + MAX ( DISTINCT + + 81 ) * + 41 - 27 AS col1
----
3294

query I rowsort
SELECT ALL - 35 * - 85
----
2975

query I rowsort
SELECT DISTINCT 22 * + 45 AS col1
----
990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL 40 * + COUNT( * ) col0
----
40

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL 40 * + COUNT ( * ) col0
----
40

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

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

query I rowsort
SELECT 63 * ( + + 78 ) - 18
----
4896

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

skipif mysql # not compatible
query I rowsort label-554
SELECT + ( ( MIN ( 31 ) ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT ALL COUNT( * ) - + 73
----
-72

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL COUNT ( * ) - + 73
----
-72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-557
SELECT - - 65 AS col0, CAST( NULL AS SIGNED ) * - 52 * 94 AS col2
----
65
NULL

skipif mysql # not compatible
query II rowsort label-557
SELECT - - 65 AS col0, CAST ( NULL AS INTEGER ) * - 52 * 94 AS col2
----
65
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-558
SELECT + 82 col0, COUNT( * ) DIV + - 11 * 4 AS col1
----
82
0

skipif mysql # not compatible
query II rowsort label-558
SELECT + 82 col0, COUNT ( * ) / + - 11 * 4 AS col1
----
82
0

query I rowsort
SELECT ALL NULLIF ( + 74, + 86 ) AS col1
----
74

query I rowsort
SELECT ALL - 93 * ( + 95 ) * - 93 AS col1
----
821655

query I rowsort
SELECT + - 87 - + 12
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT MIN( ALL 12 )
----
12

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT MIN ( ALL 12 )
----
12

query I rowsort
SELECT DISTINCT - 49 * + - 21
----
1029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT + - COUNT( * ) * + CAST( NULL AS SIGNED ) / - AVG ( ALL 44 ) * + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - AVG ( ALL 44 ) * + 91 AS col1
----
NULL

query I rowsort
SELECT ALL - 32 * - 14 AS col1
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT + CASE 18 WHEN + 23 + - 75 THEN + MAX( DISTINCT 50 ) END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT + CASE 18 WHEN + 23 + - 75 THEN + MAX ( DISTINCT 50 ) END + 10
----
NULL

query I rowsort
SELECT + 85 + - + 45
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT - COALESCE ( - 46, + CASE + COUNT( * ) WHEN + CASE + 16 WHEN 48 * - 98 THEN + 85 WHEN 26 + 3 THEN NULL WHEN CAST( + 22 AS SIGNED ) * 96 THEN NULL ELSE ( COUNT( * ) ) END THEN 28 END )
----
46

skipif mysql # not compatible
query I rowsort label-568
SELECT - COALESCE ( - 46, + CASE + COUNT ( * ) WHEN + CASE + 16 WHEN 48 * - 98 THEN + 85 WHEN 26 + 3 THEN NULL WHEN CAST ( + 22 AS INTEGER ) * 96 THEN NULL ELSE ( COUNT ( * ) ) END THEN 28 END )
----
46

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

skipif mysql # not compatible
query I rowsort label-569
SELECT - + ( - + COUNT ( * ) ) + + - 72 - 10 AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-570
SELECT ALL 82 + - 0 + - COUNT( * ) DIV 89 * 90 col1
----
82

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL 82 + - 0 + - COUNT ( * ) / 89 * 90 col1
----
82

query I rowsort
SELECT DISTINCT 86 + - 21 AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-572
SELECT ALL + - COALESCE ( NULLIF ( - + CAST( 65 AS SIGNED ), - 11 ), - 69 ) + + 62 col1
----
127

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL + - COALESCE ( NULLIF ( - + CAST ( 65 AS INTEGER ), - 11 ), - 69 ) + + 62 col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT DISTINCT 0 + + COALESCE ( COUNT( * ), + 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT 0 + + COALESCE ( COUNT ( * ), + 6 ) AS col2
----
1

query I rowsort
SELECT - - 36 + - - 2 + - COALESCE ( + 32, 89, - 20 ) * 59
----
-1850

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

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

query II rowsort
SELECT - 74 AS col1, 19
----
-74
19

query I rowsort
SELECT + 36 + 39 * - + 28 AS col2
----
-1056

query I rowsort
SELECT - 95 * + 39 AS col1
----
-3705

query I rowsort
SELECT DISTINCT + 48 * ( + + 14 ) col2
----
672

query I rowsort
SELECT - CASE + 85 WHEN - - 42 THEN NULL ELSE + + 6 END * + 22 AS col2
----
-132

query I rowsort
SELECT DISTINCT + 49 * 21 col0
----
1029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT + 52 DIV - + COALESCE ( + 37, + 57 * COUNT( 77 DIV 75 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-582
SELECT + 52 / - + COALESCE ( + 37, + 57 * COUNT ( 77 / 75 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-583
SELECT + CASE + 72 WHEN 72 THEN + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + CAST( NULL AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT + CASE + 72 WHEN 72 THEN + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + CAST ( NULL AS REAL ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT - COUNT( * ) + + 61 + + + 4
----
64

skipif mysql # not compatible
query I rowsort label-584
SELECT - COUNT ( * ) + + 61 + + + 4
----
64

query I rowsort
SELECT - 52 * + 85 * + COALESCE ( 68, + 94 * - ( - 12 ) ) - - 5 AS col2
----
-300555

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

query I rowsort
SELECT CASE + 5 WHEN + 86 THEN - 48 WHEN - 17 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT DISTINCT - 13 DIV 74 col2
----
0

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT - 13 / 74 col2
----
0

query II rowsort
SELECT ALL + ( - + 78 ), 50 col1
----
-78
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-590
SELECT ALL + 22 * + + ( - CAST( - ( 4 ) AS SIGNED ) ) + - 85 col1
----
3

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + 22 * + + ( - CAST ( - ( 4 ) AS INTEGER ) ) + - 85 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT + + ( SUM( DISTINCT + CASE 87 WHEN 56 + + 76 THEN 80 * 43 WHEN - 22 THEN + 15 * 35 ELSE NULL END ) ) + - ( 14 - + 90 * 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT + + ( SUM ( DISTINCT + CASE 87 WHEN 56 + + 76 THEN 80 * 43 WHEN - 22 THEN + 15 * 35 ELSE NULL END ) ) + - ( 14 - + 90 * 18 )
----
NULL

query I rowsort
SELECT DISTINCT - 94 * - 32
----
3008

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-593
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 81 col1, - 99 AS col0
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-593
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 81 col1, - 99 AS col0
----
NULL
-99

query I rowsort
SELECT DISTINCT - 3 * COALESCE ( 13, - 43 * 46 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT ALL ( - - SUM( 59 ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL ( - - SUM ( 59 ) ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + - NULLIF ( - COUNT( * ), + 78 ) + - + 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-596
SELECT + - NULLIF ( - COUNT ( * ), + 78 ) + - + 4 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT - ( - 1 ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-597
SELECT - ( - 1 ), + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT DISTINCT COUNT( * ) + + ( + COUNT( * ) ) * - - COUNT( * ) - - CASE 31 WHEN COUNT( * ) THEN NULL ELSE 24 END AS col1
----
26

skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT COUNT ( * ) + + ( + COUNT ( * ) ) * - - COUNT ( * ) - - CASE 31 WHEN COUNT ( * ) THEN NULL ELSE 24 END AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT DISTINCT SUM( DISTINCT - - 88 ) + - 77
----
11

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT SUM ( DISTINCT - - 88 ) + - 77
----
11

query I rowsort
SELECT ALL - 46 + + 13
----
-33

query II rowsort
SELECT DISTINCT ( 66 ) AS col2, 96 * + 65 + 56 AS col2
----
66
6296

query I rowsort
SELECT NULLIF ( + 47, - - 90 ) AS col2
----
47

query I rowsort
SELECT ALL - 43 * 53 * 32 + 81
----
-72847

query I rowsort
SELECT ALL COALESCE ( 29, - 90, + 84 * 24 ) + + 21
----
50

query I rowsort
SELECT - 85 - - + 97
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-606
SELECT + 94 + 50 AS col2, + 88 * - CAST( NULL AS SIGNED ) + 47
----
144
NULL

skipif mysql # not compatible
query II rowsort label-606
SELECT + 94 + 50 AS col2, + 88 * - CAST ( NULL AS INTEGER ) + 47
----
144
NULL

query I rowsort
SELECT 87 - + 44 AS col2
----
43

query I rowsort
SELECT 75 + + - 21 + + 43 col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-609
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 54 / - + 32 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 54 / - + 32 * 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT + ( COUNT( * ) ) / + + CAST( NULL AS SIGNED ) + 93 + ( 34 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT + ( COUNT ( * ) ) / + + CAST ( NULL AS INTEGER ) + 93 + ( 34 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT ALL - 72 * + SUM( DISTINCT + 82 ) col2, - 25
----
-5904
-25

skipif mysql # not compatible
query II rowsort label-611
SELECT ALL - 72 * + SUM ( DISTINCT + 82 ) col2, - 25
----
-5904
-25

query I rowsort
SELECT 90 + - 41 + 20 * 17 AS col2
----
389

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-613
SELECT 93 * + NULLIF ( 87, + - 74 + - CAST( + 49 AS DECIMAL ) + - 23 ) AS col0
----
8091

skipif mysql # not compatible
query I rowsort label-613
SELECT 93 * + NULLIF ( 87, + - 74 + - CAST ( + 49 AS REAL ) + - 23 ) AS col0
----
8091

query I rowsort
SELECT 0 + + 86
----
86

query I rowsort
SELECT ALL - 27 * + - 26 col1
----
702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-616
SELECT - 86 * 72 + + 94 DIV + - COUNT( * ) - COALESCE ( - ( 52 ), - NULLIF ( 25, 44 ) + 21 * - 52 ) + - 11
----
-6245

skipif mysql # not compatible
query I rowsort label-616
SELECT - 86 * 72 + + 94 / + - COUNT ( * ) - COALESCE ( - ( 52 ), - NULLIF ( 25, 44 ) + 21 * - 52 ) + - 11
----
-6245

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

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

query I rowsort
SELECT ALL 98 * 81 AS col1
----
7938

query II rowsort
SELECT DISTINCT - 67, 34 AS col2
----
-67
34

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT DISTINCT + SUM( ALL - 30 ) + + 64 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT + SUM ( ALL - 30 ) + + 64 AS col1
----
34

query I rowsort
SELECT ALL - 65 + + 44 AS col0
----
-21

query II rowsort
SELECT + - 12 AS col0, 73 * - 82 AS col2
----
-12
-5986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT ALL + + ( + + 82 ) + - - CASE - + 13 WHEN + 43 - - AVG ( - ( + 40 ) ) / + COALESCE ( + 48, COUNT( * ), - COALESCE ( 28, - 99, + 49 / 91 + ( 17 ) ) ) THEN - 73 END - + 78 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL + + ( + + 82 ) + - - CASE - + 13 WHEN + 43 - - AVG ( - ( + 40 ) ) / + COALESCE ( + 48, COUNT ( * ), - COALESCE ( 28, - 99, + 49 / 91 + ( 17 ) ) ) THEN - 73 END - + 78 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT COUNT( * ) * - 7 - + + 26
----
-33

skipif mysql # not compatible
query I rowsort label-624
SELECT COUNT ( * ) * - 7 - + + 26
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT 4 * 44 * 92 * 75 * - - SUM( 51 ) AS col2
----
61934400

skipif mysql # not compatible
query I rowsort label-625
SELECT 4 * 44 * 92 * 75 * - - SUM ( 51 ) AS col2
----
61934400

query I rowsort
SELECT DISTINCT - + 29 + + - 38
----
-67

query I rowsort
SELECT DISTINCT 15 + - 2 + 83 + 81
----
177

query I rowsort
SELECT ALL 20 + - ( + 2 ) + - 61 * - NULLIF ( + 23, - 85 ) AS col0
----
1421

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-629
SELECT 84 - - CAST( - COALESCE ( + COUNT( * ), - 1, + 2 + + 18 ) AS DECIMAL ) + CAST( NULL AS DECIMAL ) * - COALESCE ( 32 * - ( 60 ), - 65 * - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT 84 - - CAST ( - COALESCE ( + COUNT ( * ), - 1, + 2 + + 18 ) AS REAL ) + CAST ( NULL AS REAL ) * - COALESCE ( 32 * - ( 60 ), - 65 * - 59 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-630
SELECT ALL - - 62 DIV - COALESCE ( + - 93, 39 - + + 80 * + CAST( NULL AS SIGNED ), 61 * 70 + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - - 62 / - COALESCE ( + - 93, 39 - + + 80 * + CAST ( NULL AS INTEGER ), 61 * 70 + 55 )
----
0

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

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

query I rowsort
SELECT 30 - + 35
----
-5

query I rowsort
SELECT ALL 43 * + 64 AS col2
----
2752

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT ALL + - CAST( + 78 AS SIGNED ) + 87 + + 30
----
39

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL + - CAST ( + 78 AS INTEGER ) + 87 + + 30
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-636
SELECT ALL - 14 - - + 79 DIV - COALESCE ( - + 75, + CAST( NULL AS SIGNED ) DIV + ( - COALESCE ( 57, 4 ) + + CAST( NULL AS SIGNED ) ) + 24 * 19, 1 )
----
-13

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - 14 - - + 79 / - COALESCE ( - + 75, + CAST ( NULL AS INTEGER ) / + ( - COALESCE ( 57, 4 ) + + CAST ( NULL AS INTEGER ) ) + 24 * 19, 1 )
----
-13

query I rowsort
SELECT 9 + - - 52
----
61

query I rowsort
SELECT ( 20 ) - - 37 - 62 * - 13 * 59
----
47611

query I rowsort
SELECT + 66 - + 2
----
64

query I rowsort
SELECT ALL 59 - - 50 + + - 11 AS col1
----
98

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

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

query I rowsort
SELECT 68 + 10
----
78

query I rowsort
SELECT ALL 53 * + 45 AS col2
----
2385

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT CASE - 89 WHEN + 92 THEN COUNT( * ) * - COUNT( * ) - 8 + 97 ELSE - 68 END + + 27 * - 81
----
-2255

skipif mysql # not compatible
query I rowsort label-644
SELECT CASE - 89 WHEN + 92 THEN COUNT ( * ) * - COUNT ( * ) - 8 + 97 ELSE - 68 END + + 27 * - 81
----
-2255

query II rowsort
SELECT DISTINCT 95, - CASE + - 70 WHEN - - 41 THEN ( 61 ) + 82 * + 75 END * 4 AS col1
----
95
NULL

query I rowsort
SELECT ALL 17 * + 27 * + 77
----
35343

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-647
SELECT + 2 AS col0, CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-647
SELECT + 2 AS col0, CAST ( NULL AS INTEGER )
----
2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-648
SELECT CASE ( + 49 ) WHEN 11 + - 21 * + 49 THEN NULL WHEN + 5 DIV + CAST( 96 * 10 AS SIGNED ) + CAST( - CAST( - COUNT( ALL + 39 ) AS SIGNED ) AS SIGNED ) THEN ( + 27 ) * 82 ELSE 80 END DIV + 1 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-648
SELECT CASE ( + 49 ) WHEN 11 + - 21 * + 49 THEN NULL WHEN + 5 / + CAST ( 96 * 10 AS INTEGER ) + CAST ( - CAST ( - COUNT ( ALL + 39 ) AS INTEGER ) AS INTEGER ) THEN ( + 27 ) * 82 ELSE 80 END / + 1 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT ALL + 39 * CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - ( + CAST( NULL AS SIGNED ) ) - CASE - 26 WHEN + 36 * 93 + 67 THEN 5 * 48 ELSE MAX( - 18 ) / 42 END * CASE + 84 * MIN( DISTINCT 62 ) + 8 WHEN 74 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL + 39 * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - ( + CAST ( NULL AS INTEGER ) ) - CASE - 26 WHEN + 36 * 93 + 67 THEN 5 * 48 ELSE MAX ( - 18 ) / 42 END * CASE + 84 * MIN ( DISTINCT 62 ) + 8 WHEN 74 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT + COUNT( * ) DIV + 69 * - + CASE + - 77 WHEN + 58 * + - 46 * - ( 15 ) THEN NULL ELSE COUNT( * ) * ( + 9 ) - 29 * + 22 END - - 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-650
SELECT + COUNT ( * ) / + 69 * - + CASE + - 77 WHEN + 58 * + - 46 * - ( 15 ) THEN NULL ELSE COUNT ( * ) * ( + 9 ) - 29 * + 22 END - - 24 AS col2
----
24

query I rowsort
SELECT DISTINCT 98 * + + 37
----
3626

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT DISTINCT 94 * - - 94 + + 82 * + COUNT( * ) AS col0, - 30 AS col2
----
8918
-30

skipif mysql # not compatible
query II rowsort label-652
SELECT DISTINCT 94 * - - 94 + + 82 * + COUNT ( * ) AS col0, - 30 AS col2
----
8918
-30

query II rowsort
SELECT DISTINCT - 70 col0, - 56
----
-70
-56

query I rowsort
SELECT ALL - 39 * 39 + 3
----
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-655
SELECT ALL SUM( ALL CAST( NULL AS SIGNED ) ) * + 80 + + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 80 + + 15 AS col1
----
NULL

query I rowsort
SELECT 18 * - 18 col2
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT 14 / 14 / + - SUM( ALL CASE + 90 WHEN - 66 / + 85 THEN 76 END ) - - 32 + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT 14 / 14 / + - SUM ( ALL CASE + 90 WHEN - 66 / + 85 THEN 76 END ) - - 32 + + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT 9 * NULLIF ( - 52, - 35 + 30 * - COALESCE ( - 90, NULLIF ( + 93, 39 + - 21 ), + 7 ) * 58 - - 11 ) * - COUNT( * ) + + 27 - + 77 AS col0
----
418

skipif mysql # not compatible
query I rowsort label-658
SELECT 9 * NULLIF ( - 52, - 35 + 30 * - COALESCE ( - 90, NULLIF ( + 93, 39 + - 21 ), + 7 ) * 58 - - 11 ) * - COUNT ( * ) + + 27 - + 77 AS col0
----
418

query I rowsort
SELECT - - 33 * + - 9 - 63 AS col1
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT MIN( DISTINCT + 15 ) * - 40 + + 41
----
-559

skipif mysql # not compatible
query I rowsort label-660
SELECT MIN ( DISTINCT + 15 ) * - 40 + + 41
----
-559

query I rowsort
SELECT 19 + - 7
----
12

query I rowsort
SELECT ALL - ( + 62 ) + - 14
----
-76

query II rowsort
SELECT ALL - - 31, ( - 75 ) * 19 + + - 65 * - 72 + + 75 AS col2
----
31
3330

query I rowsort
SELECT 45 + + + 34
----
79

query I rowsort
SELECT ALL - ( + 37 ) - + 1 AS col1
----
-38

query I rowsort
SELECT DISTINCT + - 75 col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-667
SELECT - + COUNT( * ) * + + CAST( 42 AS SIGNED ) * + + 53 + 90 * + - 73 + - 49 AS col0
----
-8845

skipif mysql # not compatible
query I rowsort label-667
SELECT - + COUNT ( * ) * + + CAST ( 42 AS INTEGER ) * + + 53 + 90 * + - 73 + - 49 AS col0
----
-8845

query II rowsort
SELECT - + 32 * 78 AS col2, + ( - 15 )
----
-2496
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT - 26 * - 1 + + 5 + + SUM( ALL 6 ) * - 91
----
-515

skipif mysql # not compatible
query I rowsort label-669
SELECT - 26 * - 1 + + 5 + + SUM ( ALL 6 ) * - 91
----
-515

onlyif mysql # aggregate syntax: 
query II rowsort label-670
SELECT 29 AS col1, COUNT( * ) + 62 + 47 + 85 * 98 * 97 * - 58
----
29
-46864470

skipif mysql # not compatible
query II rowsort label-670
SELECT 29 AS col1, COUNT ( * ) + 62 + 47 + 85 * 98 * 97 * - 58
----
29
-46864470

onlyif mysql # aggregate syntax: 
query III rowsort label-671
SELECT DISTINCT MIN( + 16 ) AS col0, - ( - 75 ) AS col2, - 54 AS col2
----
16
75
-54

skipif mysql # not compatible
query III rowsort label-671
SELECT DISTINCT MIN ( + 16 ) AS col0, - ( - 75 ) AS col2, - 54 AS col2
----
16
75
-54

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

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + 77 - COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT - 90 * + + 49 * + - COUNT( * )
----
4410

skipif mysql # not compatible
query I rowsort label-673
SELECT - 90 * + + 49 * + - COUNT ( * )
----
4410

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

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT + COUNT ( * ) / + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT - ( - 65 ) + + NULLIF ( - ( - - COALESCE ( - 80, - ( + 58 ) ) ), - COUNT( * ) * - 43 ) * - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-675
SELECT - ( - 65 ) + + NULLIF ( - ( - - COALESCE ( - 80, - ( + 58 ) ) ), - COUNT ( * ) * - 43 ) * - COUNT ( * ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT - NULLIF ( - + COUNT( * ), COUNT( * ) ) - NULLIF ( - 95, MIN( ALL + 16 ) )
----
96

skipif mysql # not compatible
query I rowsort label-676
SELECT - NULLIF ( - + COUNT ( * ), COUNT ( * ) ) - NULLIF ( - 95, MIN ( ALL + 16 ) )
----
96

query II rowsort
SELECT ALL ( + + 21 ), + 48 col1
----
21
48

query I rowsort
SELECT + 29 + - - 19 * - 60
----
-1111

query I rowsort
SELECT + 5 + NULLIF ( + + 52, - - AVG ( + + 8 ) * - 53 + - 96 ) - 68 * - 81 AS col1
----
5565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT ALL - 72 + + + 29 + - 88 + + - 79 * + CAST( + AVG ( ALL CASE + 36 WHEN 12 / 71 THEN 22 / 31 WHEN 34 THEN NULL END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL - 72 + + + 29 + - 88 + + - 79 * + CAST ( + AVG ( ALL CASE + 36 WHEN 12 / 71 THEN 22 / 31 WHEN 34 THEN NULL END ) AS INTEGER )
----
NULL

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

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

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

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

query II rowsort
SELECT ALL ( + 89 ) AS col0, 78 + 73 AS col0
----
89
151

query I rowsort
SELECT DISTINCT - 54 + - 58
----
-112

query II rowsort
SELECT ALL 90 * - 90 + - 75 AS col2, 97 * ( - 70 ) + - 87 AS col2
----
-8175
-6877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-686
SELECT ALL 96 * 98 + - - 88 + - CAST( ( 7 ) AS SIGNED ) + 23 * ( 38 )
----
10363

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL 96 * 98 + - - 88 + - CAST ( ( 7 ) AS INTEGER ) + 23 * ( 38 )
----
10363

query I rowsort
SELECT ALL 65 * + 94 + 46 + + 6 AS col2
----
6162

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

skipif mysql # not compatible
query I rowsort label-688
SELECT ( + - MAX ( 76 ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT - ( - ( 88 ) ) * - 36 * COUNT( * ) * 76 * + + 61 AS col0
----
-14686848

skipif mysql # not compatible
query I rowsort label-689
SELECT - ( - ( 88 ) ) * - 36 * COUNT ( * ) * 76 * + + 61 AS col0
----
-14686848

query I rowsort
SELECT + 39 + + 97
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT COALESCE ( - - 71, 7, + COUNT( * ) + - 76, - 49 ) * + + 21 col2
----
1491

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT COALESCE ( - - 71, 7, + COUNT ( * ) + - 76, - 49 ) * + + 21 col2
----
1491

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-692
SELECT DISTINCT + COALESCE ( + 81, - - 26 ) * + CAST( - 69 AS DECIMAL ) + 15 + AVG ( + CASE 79 WHEN 89 THEN 16 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT + COALESCE ( + 81, - - 26 ) * + CAST ( - 69 AS REAL ) + 15 + AVG ( + CASE 79 WHEN 89 THEN 16 END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT - - 66 * - 68 + + COUNT( * )
----
-4487

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT - - 66 * - 68 + + COUNT ( * )
----
-4487

query I rowsort
SELECT ALL + + 0 * 3 + + + 65
----
65

query II rowsort
SELECT DISTINCT - 72 * - 82 * 41 + ( + 88 ) AS col1, + 12 AS col1
----
242152
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-696
SELECT ALL + CASE ( - COUNT( * ) ) WHEN - 36 * CASE + + ( + 80 ) WHEN ( 39 ) THEN NULL ELSE - 8 END THEN NULL WHEN - 62 THEN 86 - + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + CASE ( - COUNT ( * ) ) WHEN - 36 * CASE + + ( + 80 ) WHEN ( 39 ) THEN NULL ELSE - 8 END THEN NULL WHEN - 62 THEN 86 - + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT + - NULLIF ( - 1, 78 ) DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-697
SELECT + - NULLIF ( - 1, 78 ) / 76
----
0

query I rowsort
SELECT + 38 - - 3 + 18 + + + 19 AS col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-699
SELECT - COALESCE ( 21, NULLIF ( - 32, - 89 ), + 69 DIV + - 89 ) DIV + 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-699
SELECT - COALESCE ( 21, NULLIF ( - 32, - 89 ), + 69 / + - 89 ) / + 91 col1
----
0

query I rowsort
SELECT - + 6 * + 92 + - 76 + - + 49 AS col2
----
-677

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-701
SELECT - COUNT( * ) * - - 47 col2, SUM( + + 12 ) DIV + - 93 * - 50 * + - COALESCE ( + 1, ( COUNT( * ) ) )
----
-47
0

skipif mysql # not compatible
query II rowsort label-701
SELECT - COUNT ( * ) * - - 47 col2, SUM ( + + 12 ) / + - 93 * - 50 * + - COALESCE ( + 1, ( COUNT ( * ) ) )
----
-47
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT + - CASE 32 WHEN - + 11 THEN - 86 WHEN - - 56 * + 36 + - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT + - CASE 32 WHEN - + 11 THEN - 86 WHEN - - 56 * + 36 + - COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-704
SELECT ALL - NULLIF ( + + 45, 1 * + + CAST( - 56 AS SIGNED ) + + 37 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - NULLIF ( + + 45, 1 * + + CAST ( - 56 AS INTEGER ) + + 37 ) AS col2
----
-45

query I rowsort
SELECT - - 26 - + 90 col2
----
-64

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

query I rowsort
SELECT ALL + 12 * - 22 AS col2
----
-264

query II rowsort
SELECT DISTINCT NULLIF ( - 21, 86 ), + 99 * - 78 AS col2
----
-21
-7722

query II rowsort
SELECT + 6 + - 18 + + + 13 + ( + - 78 ) * 80, 53 AS col2
----
-6239
53

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL NULLIF ( SUM( + 2 ), + ( 74 ) + - 76 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL NULLIF ( SUM ( + 2 ), + ( 74 ) + - 76 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - ( - MIN( + 93 ) ) + + NULLIF ( - ( - 43 ), + 76 )
----
136

skipif mysql # not compatible
query I rowsort label-711
SELECT - ( - MIN ( + 93 ) ) + + NULLIF ( - ( - 43 ), + 76 )
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-712
SELECT - 88 - - COUNT( - 40 ) AS col0, + 39
----
-87
39

skipif mysql # not compatible
query II rowsort label-712
SELECT - 88 - - COUNT ( - 40 ) AS col0, + 39
----
-87
39

onlyif mysql # DIV for integer division: 
query II rowsort label-713
SELECT - ( + 51 ) DIV 52 AS col1, 91 * 87 + - 43
----
0
7874

skipif mysql # not compatible
query II rowsort label-713
SELECT - ( + 51 ) / 52 AS col1, 91 * 87 + - 43
----
0
7874

query I rowsort
SELECT - 5 * ( + 59 ) * + 24 * - + 15 AS col2
----
106200

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT CASE + + NULLIF ( + 5, - 96 / - 25 * - COUNT( * ) ) WHEN + 95 - + - 48 * COUNT( * ) THEN + 98 WHEN + 32 * + 47 + 88 THEN 46 ELSE COUNT( * ) * 94 END
----
94

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT CASE + + NULLIF ( + 5, - 96 / - 25 * - COUNT ( * ) ) WHEN + 95 - + - 48 * COUNT ( * ) THEN + 98 WHEN + 32 * + 47 + 88 THEN 46 ELSE COUNT ( * ) * 94 END
----
94

query I rowsort
SELECT DISTINCT + 59 * - 63 AS col0
----
-3717

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT + 86 + NULLIF ( + ( + - 38 ), + + 50 ) + ( + ( + - SUM( ALL 71 ) ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT + 86 + NULLIF ( + ( + - 38 ), + + 50 ) + ( + ( + - SUM ( ALL 71 ) ) ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-718
SELECT 24 AS col0, + CASE - - 7 WHEN + - 48 THEN 45 ELSE NULL END / - + COUNT( * )
----
24
NULL

skipif mysql # not compatible
query II rowsort label-718
SELECT 24 AS col0, + CASE - - 7 WHEN + - 48 THEN 45 ELSE NULL END / - + COUNT ( * )
----
24
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-720
SELECT - 69 DIV 62
----
-1

skipif mysql # not compatible
query I rowsort label-720
SELECT - 69 / 62
----
-1

query I rowsort
SELECT DISTINCT - 68 + + - 69 AS col1
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-722
SELECT ALL ( CAST( MIN( 94 ) AS SIGNED ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL ( CAST ( MIN ( 94 ) AS INTEGER ) ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ALL CASE - + 4 WHEN + 46 * - - 53 + + + 22 THEN NULL WHEN 80 THEN 3 ELSE - MAX( DISTINCT 36 ) END + 37
----
1

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL CASE - + 4 WHEN + 46 * - - 53 + + + 22 THEN NULL WHEN 80 THEN 3 ELSE - MAX ( DISTINCT 36 ) END + 37
----
1

query I rowsort
SELECT ALL - 41 + - + 71 + - - 0
----
-112

query I rowsort
SELECT - 33 + - 99
----
-132

query II rowsort
SELECT + 39 * + 99 * - - 23 AS col2, + 20 col2
----
88803
20

query I rowsort
SELECT ALL + 78 * - 59 AS col0
----
-4602

query I rowsort
SELECT + 16 * - 39
----
-624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-729
SELECT ALL - COALESCE ( - 70, - 9 - + COUNT( * ), + 80, + 4 + - + 76 * 90 ) DIV + 19 + - 15
----
-12

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - COALESCE ( - 70, - 9 - + COUNT ( * ), + 80, + 4 + - + 76 * 90 ) / + 19 + - 15
----
-12

query I rowsort
SELECT 78 * - - COALESCE ( 46, + 90 ) + 80
----
3668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT ALL + 58 / 5 + - COUNT( - + 65 ) / + CAST( NULL AS SIGNED ) * - ( - 5 ) * - - ( + MAX( DISTINCT + 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL + 58 / 5 + - COUNT ( - + 65 ) / + CAST ( NULL AS INTEGER ) * - ( - 5 ) * - - ( + MAX ( DISTINCT + 48 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL + - 68 * CASE 33 WHEN + 50 THEN SUM( - + 84 ) END * + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL + - 68 * CASE 33 WHEN + 50 THEN SUM ( - + 84 ) END * + + 75 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-733
SELECT DISTINCT - 74 DIV - ( NULLIF ( - 48, - - AVG ( - - 10 ) ) ) - - - NULLIF ( + 75, - NULLIF ( - 34, 66 * + 30 ) * 63 ) * 55
----
-4126

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT - 74 / - ( NULLIF ( - 48, - - AVG ( - - 10 ) ) ) - - - NULLIF ( + 75, - NULLIF ( - 34, 66 * + 30 ) * 63 ) * 55
----
-4126

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL COUNT( * ) - - 92 + + COUNT( * ) * 3 * - 75
----
-132

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL COUNT ( * ) - - 92 + + COUNT ( * ) * 3 * - 75
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - 78 * + + SUM( DISTINCT + 62 )
----
-4836

skipif mysql # not compatible
query I rowsort label-735
SELECT - 78 * + + SUM ( DISTINCT + 62 )
----
-4836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-736
SELECT DISTINCT + 60 DIV + 42 + + 0 + NULLIF ( + SUM( ALL ( - 43 ) ), - NULLIF ( + 97, + ( + 29 ) + CAST( + 18 AS SIGNED ) ) ) * 64 AS col0
----
-2751

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT + 60 / + 42 + + 0 + NULLIF ( + SUM ( ALL ( - 43 ) ), - NULLIF ( + 97, + ( + 29 ) + CAST ( + 18 AS INTEGER ) ) ) * 64 AS col0
----
-2751

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

query I rowsort
SELECT - 97 * + 67 AS col0
----
-6499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-739
SELECT ALL 66 * ( + COALESCE ( - 0, + 29 - + 17 + COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL 66 * ( + COALESCE ( - 0, + 29 - + 17 + COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) ) )
----
0

query I rowsort
SELECT - 36 + + - 40
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-741
SELECT - 76 DIV + 25 - - - 2 + + COUNT( * ) - 29
----
-33

skipif mysql # not compatible
query I rowsort label-741
SELECT - 76 / + 25 - - - 2 + + COUNT ( * ) - 29
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT ALL + COUNT( * ) * - 54 + COUNT( * ) + + + COALESCE ( 28, + - COUNT( * ) * - 7 ) * 27 * 57 AS col0
----
43039

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL + COUNT ( * ) * - 54 + COUNT ( * ) + + + COALESCE ( 28, + - COUNT ( * ) * - 7 ) * 27 * 57 AS col0
----
43039

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT + - NULLIF ( - 92, + CASE + NULLIF ( 71, - - COALESCE ( + + 52, COUNT( * ) + + COUNT( * ) * COUNT( * ) ) ) WHEN + COUNT( * ) / + ( ( - 28 ) * 18 ) THEN - 79 + + 2 END * 25 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-743
SELECT + - NULLIF ( - 92, + CASE + NULLIF ( 71, - - COALESCE ( + + 52, COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) ) ) WHEN + COUNT ( * ) / + ( ( - 28 ) * 18 ) THEN - 79 + + 2 END * 25 ) AS col1
----
92

query II rowsort
SELECT ALL - 95 AS col0, + 87
----
-95
87

query II rowsort
SELECT DISTINCT - - 93 AS col0, + 54
----
93
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-746
SELECT - 86 + 30 DIV 11 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-746
SELECT - 86 + 30 / 11 * - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-747
SELECT DISTINCT - + CASE COALESCE ( + CAST( - - 63 AS SIGNED ), 69 - - 90 * + - COUNT( * ) ) WHEN 36 THEN 86 * + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT - + CASE COALESCE ( + CAST ( - - 63 AS INTEGER ), 69 - - 90 * + - COUNT ( * ) ) WHEN 36 THEN 86 * + 83 END
----
NULL

query I rowsort
SELECT + 77 * - 49 * - - 8 + - - ( 48 ) AS col1
----
-30136

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT 68 * - COALESCE ( + 72, 64, 19 ) * - 34 + + COUNT( * ) + 36 * + CASE - 7 WHEN MAX( - 52 ) + + ( - 65 ) THEN + 37 END + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT 68 * - COALESCE ( + 72, 64, 19 ) * - 34 + + COUNT ( * ) + 36 * + CASE - 7 WHEN MAX ( - 52 ) + + ( - 65 ) THEN + 37 END + 5
----
NULL

query I rowsort
SELECT 81 * - - 88 + 96 * 42 - - 55 + + 89
----
11304

query I rowsort
SELECT 13 + + - 40
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT ALL + CASE - + COUNT( * ) WHEN + COUNT( * ) * + + COUNT( * ) - CAST( + 41 AS SIGNED ) THEN 16 ELSE NULL END + 91 + - 32 * + ( - 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + CASE - + COUNT ( * ) WHEN + COUNT ( * ) * + + COUNT ( * ) - CAST ( + 41 AS INTEGER ) THEN 16 ELSE NULL END + 91 + - 32 * + ( - 26 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-753
SELECT DISTINCT 99 + NULLIF ( - COUNT( - 79 ), - NULLIF ( + - SUM( DISTINCT - 47 ), - ( - 52 ) ) DIV 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT 99 + NULLIF ( - COUNT ( - 79 ), - NULLIF ( + - SUM ( DISTINCT - 47 ), - ( - 52 ) ) / 34 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT DISTINCT 76 + + + 83 + - - COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT 76 + + + 83 + - - COUNT ( * )
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-755
SELECT ALL COUNT( * ) * - ( ( + + 48 ) ) DIV 5
----
-9

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL COUNT ( * ) * - ( ( + + 48 ) ) / 5
----
-9

query I rowsort
SELECT 9 + NULLIF ( + 18, - + AVG ( DISTINCT + 9 ) + - 8 * - + 69 + + - COALESCE ( - 95, 93 * 55 ) / - 78 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT 69 * + - MIN( 16 ) col0
----
-1104

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT 69 * + - MIN ( 16 ) col0
----
-1104

query I rowsort
SELECT 34 + + 22 + - 68 * - 2 AS col0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT DISTINCT - 37 - COUNT( DISTINCT + 18 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - 37 - COUNT ( DISTINCT + 18 ) AS col1
----
-38

query I rowsort
SELECT 44 + - + 7 AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT ALL - COALESCE ( + 35, ( + 66 ) + + + COALESCE ( 65, 85 * - 18 ), - + 21 + + 29 * - ( - 15 - + 33 ), + ( + ( + 18 ) ) ) DIV 8 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - COALESCE ( + 35, ( + 66 ) + + + COALESCE ( 65, 85 * - 18 ), - + 21 + + 29 * - ( - 15 - + 33 ), + ( + ( + 18 ) ) ) / 8 AS col2
----
-4

query I rowsort
SELECT 18 * + - 57 AS col1
----
-1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-763
SELECT ALL + 80 - 42 col0, + COALESCE ( 27, - 95 * - 39 + + 63 + + + COUNT( * ) * - 19 + - 70 ) + + CAST( NULL AS SIGNED )
----
38
NULL

skipif mysql # not compatible
query II rowsort label-763
SELECT ALL + 80 - 42 col0, + COALESCE ( 27, - 95 * - 39 + + 63 + + + COUNT ( * ) * - 19 + - 70 ) + + CAST ( NULL AS INTEGER )
----
38
NULL

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

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT - + COALESCE ( + ( - ( + COUNT ( * ) ) ), 78 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT - 89 * + ( + 18 ) * + - 64 - + COUNT( * )
----
102527

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT - 89 * + ( + 18 ) * + - 64 - + COUNT ( * )
----
102527

query I rowsort
SELECT ALL + 31 * 34 AS col1
----
1054

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-768
SELECT CAST( NULL AS SIGNED ) * - 0 AS col1, 82 + - 6 + - 97
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-768
SELECT CAST ( NULL AS INTEGER ) * - 0 AS col1, 82 + - 6 + - 97
----
NULL
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + 48 * COUNT( * ) + + 77
----
125

skipif mysql # not compatible
query I rowsort label-770
SELECT + 48 * COUNT ( * ) + + 77
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ( SUM( + 11 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-771
SELECT ( SUM ( + 11 ) ) AS col0
----
11

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

skipif mysql # not compatible
query II rowsort label-772
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ), + 98 AS col0
----
1
98

query I rowsort
SELECT ALL - 98 * ( 6 ) + 17
----
-571

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-774
SELECT DISTINCT - MAX( ALL - 80 ) + NULLIF ( - 71, 34 ) * 42 DIV + 1, - 98 + + 23 AS col0
----
-2902
-75

skipif mysql # not compatible
query II rowsort label-774
SELECT DISTINCT - MAX ( ALL - 80 ) + NULLIF ( - 71, 34 ) * 42 / + 1, - 98 + + 23 AS col0
----
-2902
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT COUNT( * ) - + + 32 + 97 * 18 AS col2
----
1715

skipif mysql # not compatible
query I rowsort label-775
SELECT COUNT ( * ) - + + 32 + 97 * 18 AS col2
----
1715

onlyif mysql # aggregate syntax: 
query III rowsort label-776
SELECT ALL - ( 1 ) AS col0, 73 * 75 * - 1, + + CASE + 15 WHEN + + 99 - 37 * ( + 67 + + 2 ) THEN NULL ELSE + MAX( ALL 50 ) END AS col1
----
-1
-5475
50

skipif mysql # not compatible
query III rowsort label-776
SELECT ALL - ( 1 ) AS col0, 73 * 75 * - 1, + + CASE + 15 WHEN + + 99 - 37 * ( + 67 + + 2 ) THEN NULL ELSE + MAX ( ALL 50 ) END AS col1
----
-1
-5475
50

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT COUNT( * ) * + 92 + COUNT( * ) - + - 58
----
151

skipif mysql # not compatible
query I rowsort label-777
SELECT COUNT ( * ) * + 92 + COUNT ( * ) - + - 58
----
151

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-779
SELECT 76 AS col1, - 57 + + CASE WHEN 54 IN ( + COALESCE ( + MIN( DISTINCT 66 ), 49 ) ) THEN 23 END * - 16
----
76
NULL

skipif mysql # not compatible
query II rowsort label-779
SELECT 76 AS col1, - 57 + + CASE WHEN 54 IN ( + COALESCE ( + MIN ( DISTINCT 66 ), 49 ) ) THEN 23 END * - 16
----
76
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-780
SELECT + 77 AS col0, - COUNT( * ) DIV - - 2 + - 75 AS col2
----
77
-75

skipif mysql # not compatible
query II rowsort label-780
SELECT + 77 AS col0, - COUNT ( * ) / - - 2 + - 75 AS col2
----
77
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-781
SELECT ( - 9 ) + - 35 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT ( - 9 ) + - 35 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 13 * + + 41
----
533

query II rowsort
SELECT 55, ( + 44 ) * 59 col2
----
55
2596

query I rowsort
SELECT ALL 88 + + 45
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-785
SELECT ALL COALESCE ( - 47, - 41 * - ( + + CAST( NULL AS SIGNED ) ), + 33 ) + - CASE - 6 WHEN - 75 THEN - + COUNT( * ) * + 62 END / COALESCE ( CASE - COUNT( * ) WHEN 87 * COUNT( * ) - + 19 THEN NULL WHEN - 94 + 66 THEN + 74 END, 39 + - COUNT( * ), - 23 / + 46 + ( - NULLIF ( + COUNT( * ), + 56 * 97 ) ) * - 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL COALESCE ( - 47, - 41 * - ( + + CAST ( NULL AS INTEGER ) ), + 33 ) + - CASE - 6 WHEN - 75 THEN - + COUNT ( * ) * + 62 END / COALESCE ( CASE - COUNT ( * ) WHEN 87 * COUNT ( * ) - + 19 THEN NULL WHEN - 94 + 66 THEN + 74 END, 39 + - COUNT ( * ), - 23 / + 46 + ( - NULLIF ( + COUNT ( * ), + 56 * 97 ) ) * - 90 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT CASE + + COUNT( * ) WHEN - - 32 * 87 THEN 41 ELSE + 82 END - - ( 0 )
----
82

skipif mysql # not compatible
query I rowsort label-786
SELECT CASE + + COUNT ( * ) WHEN - - 32 * 87 THEN 41 ELSE + 82 END - - ( 0 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ALL MAX( ALL - - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL MAX ( ALL - - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT ALL 35 + - MAX( ALL + 93 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL 35 + - MAX ( ALL + 93 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-789
SELECT - 34 * - COUNT( * ) + 37 AS col1, COUNT( * ) AS col0
----
71
1

skipif mysql # not compatible
query II rowsort label-789
SELECT - 34 * - COUNT ( * ) + 37 AS col1, COUNT ( * ) AS col0
----
71
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-790
SELECT ALL MAX( DISTINCT - 58 ) + + 27 DIV - - 73
----
-58

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL MAX ( DISTINCT - 58 ) + + 27 / - - 73
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT COUNT( DISTINCT 76 ) + + - ( - 27 )
----
28

skipif mysql # not compatible
query I rowsort label-791
SELECT COUNT ( DISTINCT 76 ) + + - ( - 27 )
----
28

query I rowsort
SELECT 2 + - 65
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT 37 - - + 99 * 55 * + COUNT( * ) * - + 0 AS col0, 73 + - ( - 37 ) * - 62
----
37
-2221

skipif mysql # not compatible
query II rowsort label-793
SELECT 37 - - + 99 * 55 * + COUNT ( * ) * - + 0 AS col0, 73 + - ( - 37 ) * - 62
----
37
-2221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT ALL MAX( DISTINCT - CASE CASE 7 WHEN 71 * + + COALESCE ( - + 16, - - 12, - 9 ) THEN NULL ELSE + 35 END WHEN + 66 / + 41 THEN NULL ELSE + CAST( NULL AS SIGNED ) * - 57 END ) - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL MAX ( DISTINCT - CASE CASE 7 WHEN 71 * + + COALESCE ( - + 16, - - 12, - 9 ) THEN NULL ELSE + 35 END WHEN + 66 / + 41 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * - 57 END ) - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT - MAX( ALL + + 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-795
SELECT - MAX ( ALL + + 10 ) AS col0
----
-10

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

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL 45 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 15 + + - 23
----
-8

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

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

query I rowsort
SELECT + + 71 * 73 * 68 * - + 10 * + + 66
----
-232613040

query II rowsort
SELECT - - 68 AS col0, 18 - 55 AS col1
----
68
-37

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

query II rowsort
SELECT - 66, - ( - 60 ) * 49 + + + 95 + 19 * + + 98 AS col0
----
-66
4897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-803
SELECT 5 DIV 48 + - - CASE - - MAX( + 71 ) WHEN - 87 THEN 76 * 46 * + SUM( ALL + 27 ) + NULLIF ( 97, ( 23 ) ) WHEN CASE + 99 WHEN 29 THEN 79 - COUNT( * ) WHEN - 5 DIV 58 + CAST( + SUM( - 31 ) + - 34 AS SIGNED ) * COALESCE ( 0, + 90 ) THEN + 51 ELSE - 28 END * 76 THEN + 2 * - 19 ELSE - 94 END DIV COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-803
SELECT 5 / 48 + - - CASE - - MAX ( + 71 ) WHEN - 87 THEN 76 * 46 * + SUM ( ALL + 27 ) + NULLIF ( 97, ( 23 ) ) WHEN CASE + 99 WHEN 29 THEN 79 - COUNT ( * ) WHEN - 5 / 58 + CAST ( + SUM ( - 31 ) + - 34 AS INTEGER ) * COALESCE ( 0, + 90 ) THEN + 51 ELSE - 28 END * 76 THEN + 2 * - 19 ELSE - 94 END / COUNT ( * )
----
-94

query I rowsort
SELECT - 88 * - 67
----
5896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-805
SELECT + 4 / - + 71 * - COUNT( + + 15 ) * 18 - - + 88 + 33 + 33 + 99 + + 44 - CAST( NULL AS SIGNED ) * - COALESCE ( 93, COALESCE ( + ( 98 ), 88 * COUNT( * ), + 27 ) * 6 ) + + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT + 4 / - + 71 * - COUNT ( + + 15 ) * 18 - - + 88 + 33 + 33 + 99 + + 44 - CAST ( NULL AS INTEGER ) * - COALESCE ( 93, COALESCE ( + ( 98 ), 88 * COUNT ( * ), + 27 ) * 6 ) + + 48 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-806
SELECT ALL 15 DIV - COALESCE ( - 50, + ( - - 40 ) )
----
0

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL 15 / - COALESCE ( - 50, + ( - - 40 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT - - COUNT( * ) + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-807
SELECT - - COUNT ( * ) + 13 AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-808
SELECT - NULLIF ( + 84, + - 80 ) * - 89 * + - CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) + - 1 * - 14 * MIN( DISTINCT 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT - NULLIF ( + 84, + - 80 ) * - 89 * + - CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) + - 1 * - 14 * MIN ( DISTINCT 73 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-809
SELECT 53 * + 59 + - + CAST( NULL AS SIGNED ) + 7 * 39 AS col0, 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-809
SELECT 53 * + 59 + - + CAST ( NULL AS INTEGER ) + 7 * 39 AS col0, 68
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + + COUNT( * ) * 79 + + - ( + - 69 )
----
148

skipif mysql # not compatible
query I rowsort label-810
SELECT + + COUNT ( * ) * 79 + + - ( + - 69 )
----
148

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

query I rowsort
SELECT + + 64 * - + 53 - - 0
----
-3392

query II rowsort
SELECT ALL + 34 AS col0, 62
----
34
62

query I rowsort
SELECT - 34 + - 32 + 15 * - - 31 col1
----
399

query I rowsort
SELECT - 4 + + + 89
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT + CASE 14 WHEN CASE + 4 WHEN - 18 THEN NULL WHEN NULLIF ( - 93, - 89 ) * 16 + - ( - 43 ) + 92 THEN + 98 / ( + 25 ) END THEN + COUNT( * ) + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT + CASE 14 WHEN CASE + 4 WHEN - 18 THEN NULL WHEN NULLIF ( - 93, - 89 ) * 16 + - ( - 43 ) + 92 THEN + 98 / ( + 25 ) END THEN + COUNT ( * ) + 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT DISTINCT 62 * - MAX( ALL - 25 ) + + 86, 80 AS col0
----
1636
80

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT 62 * - MAX ( ALL - 25 ) + + 86, 80 AS col0
----
1636
80

query I rowsort
SELECT DISTINCT 87 * + 97 + - - 9 AS col1
----
8448

query I rowsort
SELECT - 29 + + 4 + 61
----
36

query II rowsort
SELECT ALL + 73, 53 AS col0
----
73
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-822
SELECT - 5 + + 64 * - CAST( - - 70 AS SIGNED ) AS col2, - 96 AS col2
----
-4485
-96

skipif mysql # not compatible
query II rowsort label-822
SELECT - 5 + + 64 * - CAST ( - - 70 AS INTEGER ) AS col2, - 96 AS col2
----
-4485
-96

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

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

query I rowsort
SELECT DISTINCT - 25 * - 36 - ( + 92 )
----
808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-825
SELECT + 30 * + 60 + - 88 * 91 + - ( + 18 ) DIV + + ( + NULLIF ( - - 14, + 11 ) ) + COUNT( ALL - 11 ) + 46 DIV 26
----
-6207

skipif mysql # not compatible
query I rowsort label-825
SELECT + 30 * + 60 + - 88 * 91 + - ( + 18 ) / + + ( + NULLIF ( - - 14, + 11 ) ) + COUNT ( ALL - 11 ) + 46 / 26
----
-6207

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT + 75 + - ( - COUNT( * ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-826
SELECT + 75 + - ( - COUNT ( * ) ) AS col0
----
76

query I rowsort
SELECT - CASE - 11 WHEN - - 15 THEN - - 26 END
----
NULL

query I rowsort
SELECT DISTINCT + 37 * - + NULLIF ( - ( + - 29 ), - + 97 ) AS col2
----
-1073

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT + 39 DIV - + 16
----
-2

skipif mysql # not compatible
query I rowsort label-829
SELECT + 39 / - + 16
----
-2

query I rowsort
SELECT + 57 + 95 * - + 10
----
-893

onlyif mysql # aggregate syntax: 
query II rowsort label-831
SELECT DISTINCT 66, MAX( 74 ) AS col1
----
66
74

skipif mysql # not compatible
query II rowsort label-831
SELECT DISTINCT 66, MAX ( 74 ) AS col1
----
66
74

onlyif mysql # DIV for integer division: 
query II rowsort label-832
SELECT ALL 19 AS col0, 93 DIV + - COALESCE ( - 5, - - 42 ) AS col0
----
19
18

skipif mysql # not compatible
query II rowsort label-832
SELECT ALL 19 AS col0, 93 / + - COALESCE ( - 5, - - 42 ) AS col0
----
19
18

onlyif mysql # DIV for integer division: 
query I rowsort label-833
SELECT + - 94 DIV - 44 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-833
SELECT + - 94 / - 44 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT - 75 * + - 37 + COUNT( * ) AS col2
----
2776

skipif mysql # not compatible
query I rowsort label-834
SELECT - 75 * + - 37 + COUNT ( * ) AS col2
----
2776

query I rowsort
SELECT + 58 + 12
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-836
SELECT + 2 DIV ( - 1 ) + - 57, - 94 AS col2
----
-59
-94

skipif mysql # not compatible
query II rowsort label-836
SELECT + 2 / ( - 1 ) + - 57, - 94 AS col2
----
-59
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-837
SELECT - 11 AS col2, + COALESCE ( + + 89, - + CAST( - COUNT( * ) AS SIGNED ), + - 0 DIV - - 90 - + 26 + 79 * + 80 * - ( + COALESCE ( ( + 0 ), 94 ) ) DIV 61 ) - COUNT( + 36 ) * MAX( ALL - 0 ) AS col1
----
-11
89

skipif mysql # not compatible
query II rowsort label-837
SELECT - 11 AS col2, + COALESCE ( + + 89, - + CAST ( - COUNT ( * ) AS INTEGER ), + - 0 / - - 90 - + 26 + 79 * + 80 * - ( + COALESCE ( ( + 0 ), 94 ) ) / 61 ) - COUNT ( + 36 ) * MAX ( ALL - 0 ) AS col1
----
-11
89

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL - 48 + + + COUNT( * ) * - 12 * 59 + 61
----
-695

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - 48 + + + COUNT ( * ) * - 12 * 59 + 61
----
-695

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-840
SELECT DISTINCT ( - 27 ) + + CASE + CAST( NULL AS SIGNED ) WHEN + - 22 + - 63 THEN + - MIN( - 81 ) WHEN - 87 + + 4 * + COUNT( ALL 47 ) * COUNT( * ) THEN + 87 WHEN - 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT ( - 27 ) + + CASE + CAST ( NULL AS INTEGER ) WHEN + - 22 + - 63 THEN + - MIN ( - 81 ) WHEN - 87 + + 4 * + COUNT ( ALL 47 ) * COUNT ( * ) THEN + 87 WHEN - 58 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT DISTINCT 44 DIV + - 71 * + 61 + - 87 + + 28 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT 44 / + - 71 * + 61 + - 87 + + 28 AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-842
SELECT ALL 81 DIV 97 DIV + COALESCE ( 26, - COALESCE ( 68, - 24 ) * + - ( CAST( 24 AS SIGNED ) ), - 54 ) * 42 + + ( ( 80 ) - - 6 ) * + 87
----
7482

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL 81 / 97 / + COALESCE ( 26, - COALESCE ( 68, - 24 ) * + - ( CAST ( 24 AS INTEGER ) ), - 54 ) * 42 + + ( ( 80 ) - - 6 ) * + 87
----
7482

query I rowsort
SELECT - 89 * - 51 + + 16
----
4555

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-844
SELECT + 1 AS col2, COALESCE ( - 26, 47 * + + 10 DIV - - 69 + - MIN( DISTINCT + 22 ) * - + 67, 27 DIV + NULLIF ( 21, COALESCE ( + MIN( + 29 ), MIN( CAST( NULL AS DECIMAL ) ) ) + + 9 ) ) - + 12 AS col1
----
1
-38

skipif mysql # not compatible
query II rowsort label-844
SELECT + 1 AS col2, COALESCE ( - 26, 47 * + + 10 / - - 69 + - MIN ( DISTINCT + 22 ) * - + 67, 27 / + NULLIF ( 21, COALESCE ( + MIN ( + 29 ), MIN ( CAST ( NULL AS REAL ) ) ) + + 9 ) ) - + 12 AS col1
----
1
-38

query II rowsort
SELECT DISTINCT + 80 AS col2, 49 * - - 28
----
80
1372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-846
SELECT ALL + COALESCE ( COUNT( * ), - 90 * + - 37 ) DIV + + 47 * + COUNT( * ) + ( 20 ) + + 35
----
55

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + COALESCE ( COUNT ( * ), - 90 * + - 37 ) / + + 47 * + COUNT ( * ) + ( 20 ) + + 35
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-847
SELECT - ( + 2 ) * ( + - 1 ) + 49 - + CAST( NULL AS SIGNED ) / - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-847
SELECT - ( + 2 ) * ( + - 1 ) + 49 - + CAST ( NULL AS INTEGER ) / - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL + COUNT( * ) * + 46 * - 95 * 55
----
-240350

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL + COUNT ( * ) * + 46 * - 95 * 55
----
-240350

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

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT 76 / COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT ALL + 95 * + CAST( - - COALESCE ( + - 32, + 81 ) AS SIGNED )
----
-3040

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + 95 * + CAST ( - - COALESCE ( + - 32, + 81 ) AS INTEGER )
----
-3040

query II rowsort
SELECT ( - + 8 ) AS col0, + 17 AS col1
----
-8
17

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT + ( + 71 ) - - CASE - 53 WHEN 50 * COUNT( * ) * + + COALESCE ( 69, + 55 - 23, + 66 / - 64 + + 0 ) THEN 26 * 71 WHEN - 64 THEN + 99 * 92 ELSE NULL END + 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-852
SELECT + ( + 71 ) - - CASE - 53 WHEN 50 * COUNT ( * ) * + + COALESCE ( 69, + 55 - 23, + 66 / - 64 + + 0 ) THEN 26 * 71 WHEN - 64 THEN + 99 * 92 ELSE NULL END + 42 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - COUNT( * ) * ( - 4 ) + + 34 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-853
SELECT - COUNT ( * ) * ( - 4 ) + + 34 AS col1
----
38

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

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

query I rowsort
SELECT - 87 * + 89
----
-7743

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - 63 * + 68 * - COUNT( * )
----
4284

skipif mysql # not compatible
query I rowsort label-857
SELECT - 63 * + 68 * - COUNT ( * )
----
4284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-858
SELECT 27 - + - 84 - - SUM( ALL - 13 ) DIV - + 52 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-858
SELECT 27 - + - 84 - - SUM ( ALL - 13 ) / - + 52 AS col2
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-859
SELECT 37 + - 92 AS col2, 79 + - ( COUNT( * ) )
----
-55
78

skipif mysql # not compatible
query II rowsort label-859
SELECT 37 + - 92 AS col2, 79 + - ( COUNT ( * ) )
----
-55
78

query I rowsort
SELECT ALL 27 * - 35 col2
----
-945

query I rowsort
SELECT 43 * 64
----
2752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-862
SELECT + 73 * 74 * + + COUNT( * ) col2, + COALESCE ( 59, + CAST( NULL AS SIGNED ) ) col1
----
5402
59

skipif mysql # not compatible
query II rowsort label-862
SELECT + 73 * 74 * + + COUNT ( * ) col2, + COALESCE ( 59, + CAST ( NULL AS INTEGER ) ) col1
----
5402
59

query I rowsort
SELECT ALL - 52 + + 98
----
46

query I rowsort
SELECT ALL + + ( - 73 ) + - - 28 * - 82
----
-2369

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT 59 * + MIN( - ( 83 ) ) AS col1
----
-4897

skipif mysql # not compatible
query I rowsort label-865
SELECT 59 * + MIN ( - ( 83 ) ) AS col1
----
-4897

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL - COUNT( * ) + + 48 * - CASE - + 56 WHEN COUNT( 74 ) THEN - + MAX( ALL + - 31 ) + + 98 + - 38 + + 28 + + - COUNT( ALL 28 ) WHEN - 58 THEN 73 + + 1 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - COUNT ( * ) + + 48 * - CASE - + 56 WHEN COUNT ( 74 ) THEN - + MAX ( ALL + - 31 ) + + 98 + - 38 + + 28 + + - COUNT ( ALL 28 ) WHEN - 58 THEN 73 + + 1 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT ALL 66 DIV ( - - 27 ) + - COUNT( ALL + 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL 66 / ( - - 27 ) + - COUNT ( ALL + 58 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT - 36 DIV + 66 * + 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-868
SELECT - 36 / + 66 * + 15 AS col1
----
0

query I rowsort
SELECT ALL + 16 + 51
----
67

query I rowsort
SELECT 38 + - 41
----
-3

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

skipif mysql # not compatible
query I rowsort label-871
SELECT + 72 / - - COUNT ( * ) col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-872
SELECT + - ( COALESCE ( + - COUNT( * ), + - 41 * + - 41 + - + 10 + - + 60 * + - 80 * - 39 DIV - ( - 17 ) * + 42 + CAST( NULL AS SIGNED ) DIV + 73 ) ) DIV - 2 + ( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-872
SELECT + - ( COALESCE ( + - COUNT ( * ), + - 41 * + - 41 + - + 10 + - + 60 * + - 80 * - 39 / - ( - 17 ) * + 42 + CAST ( NULL AS INTEGER ) / + 73 ) ) / - 2 + ( 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL - COUNT( + 75 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - COUNT ( + 75 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT DISTINCT - - COUNT( - 92 ) AS col0, + 74 * + 45 * - 13 AS col1
----
1
-43290

skipif mysql # not compatible
query II rowsort label-874
SELECT DISTINCT - - COUNT ( - 92 ) AS col0, + 74 * + 45 * - 13 AS col1
----
1
-43290

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT NULLIF ( COUNT( * ), NULLIF ( - ( + CASE + 65 WHEN 3 THEN NULL WHEN NULLIF ( COUNT( ALL 34 ), 23 + - 92 ) THEN + + 8 - COUNT( + 38 ) END ), - 65 ) * 80 ) + - 16 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-875
SELECT NULLIF ( COUNT ( * ), NULLIF ( - ( + CASE + 65 WHEN 3 THEN NULL WHEN NULLIF ( COUNT ( ALL 34 ), 23 + - 92 ) THEN + + 8 - COUNT ( + 38 ) END ), - 65 ) * 80 ) + - 16 AS col0
----
-15

query I rowsort
SELECT 27 * - 6 + + 61 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT DISTINCT MAX( DISTINCT - 90 ) - + 63 col2
----
-153

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT MAX ( DISTINCT - 90 ) - + 63 col2
----
-153

query II rowsort
SELECT DISTINCT - 54, 77 * - - 61 AS col1
----
-54
4697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-879
SELECT - 60 * CASE ( + 82 ) WHEN - - 92 * - CAST( + 65 AS SIGNED ) + + 93 + - 50 THEN + + 18 END * + + 25 * - 58 + + CASE WHEN - MIN( DISTINCT 70 ) IS NOT NULL THEN 14 ELSE + 74 * + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT - 60 * CASE ( + 82 ) WHEN - - 92 * - CAST ( + 65 AS INTEGER ) + + 93 + - 50 THEN + + 18 END * + + 25 * - 58 + + CASE WHEN - MIN ( DISTINCT 70 ) IS NOT NULL THEN 14 ELSE + 74 * + 4 END
----
NULL

query I rowsort
SELECT ( + 16 ) * + - 21 + + NULLIF ( - 52, + - 55 ) + 3 AS col0
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT DISTINCT - MAX( - 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT - MAX ( - 95 ) AS col1
----
95

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

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

query II rowsort
SELECT ALL - 57, - 18 AS col2
----
-57
-18

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

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

query II rowsort
SELECT + 51, + 15 + - 98 * + + 21 AS col0
----
51
-2043

onlyif mysql # aggregate syntax: 
query II rowsort label-886
SELECT 37 + + ( 81 ) + COUNT( * ), + 88 AS col0
----
119
88

skipif mysql # not compatible
query II rowsort label-886
SELECT 37 + + ( 81 ) + COUNT ( * ), + 88 AS col0
----
119
88

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT ALL 22 DIV - - 12 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL 22 / - - 12 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT 43 DIV - 29 col2
----
-1

skipif mysql # not compatible
query I rowsort label-888
SELECT 43 / - 29 col2
----
-1

query II rowsort
SELECT ALL - 82 AS col0, - ( - + 35 ) * - 3
----
-82
-105

query I rowsort
SELECT DISTINCT 57 * + ( - 91 )
----
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - 77 * + SUM( ALL - 38 ) * 5 + - - 91 AS col2
----
14721

skipif mysql # not compatible
query I rowsort label-891
SELECT - 77 * + SUM ( ALL - 38 ) * 5 + - - 91 AS col2
----
14721

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT 27 * - - 82 * + MAX( - - 50 ) AS col0
----
110700

skipif mysql # not compatible
query I rowsort label-892
SELECT 27 * - - 82 * + MAX ( - - 50 ) AS col0
----
110700

query I rowsort
SELECT 33 + - - 84 AS col1
----
117

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

skipif mysql # not compatible
query I rowsort label-894
SELECT SUM ( DISTINCT - - 90 )
----
90

query I rowsort
SELECT ALL + - 81 + + 2 + + 89 * + 50
----
4371

query I rowsort
SELECT ALL - 23 + 96 AS col1
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT DISTINCT + MAX( ALL - - 13 ) + 5 + - 45 + + 37 + - + COALESCE ( + + ( - 84 ), - - 68 ) * + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT + MAX ( ALL - - 13 ) + 5 + - 45 + + 37 + - + COALESCE ( + + ( - 84 ), - - 68 ) * + + COUNT ( * )
----
94

query I rowsort
SELECT ALL + 20 + - 68 + + 65 + - 71 col2
----
-54

query I rowsort
SELECT - 20 + + - 8
----
-28

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

skipif mysql # not compatible
query I rowsort label-901
SELECT + COALESCE ( NULLIF ( - 67, - 22 ), + COUNT ( * ) )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-902
SELECT 53 * + COUNT( * ) * - + 26 AS col1, - ( + 32 ) DIV - + ( 7 ) col1
----
-1378
4

skipif mysql # not compatible
query II rowsort label-902
SELECT 53 * + COUNT ( * ) * - + 26 AS col1, - ( + 32 ) / - + ( 7 ) col1
----
-1378
4

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT + COUNT( * ) + - COUNT( * ) * + - 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-903
SELECT + COUNT ( * ) + - COUNT ( * ) * + - 4 AS col2
----
5

query I rowsort
SELECT ALL + 79 - + 49
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT ALL - - 14 - - COALESCE ( ( + MAX( DISTINCT - 92 ) ), + 7, + NULLIF ( 17, - COALESCE ( 10, 16 ) ) + COUNT( * ) )
----
-78

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL - - 14 - - COALESCE ( ( + MAX ( DISTINCT - 92 ) ), + 7, + NULLIF ( 17, - COALESCE ( 10, 16 ) ) + COUNT ( * ) )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-906
SELECT - COALESCE ( + 29, + + COUNT( * ) * + 85 * + 18 DIV + COALESCE ( CAST( + COUNT( * ) AS SIGNED ), + + 19, 58 ), 74, 30 * 95 ) * - 17 AS col2
----
493

skipif mysql # not compatible
query I rowsort label-906
SELECT - COALESCE ( + 29, + + COUNT ( * ) * + 85 * + 18 / + COALESCE ( CAST ( + COUNT ( * ) AS INTEGER ), + + 19, 58 ), 74, 30 * 95 ) * - 17 AS col2
----
493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-907
SELECT DISTINCT - CASE + + 74 WHEN + 37 / 68 + + + CAST( - - SUM( ALL + + CAST( NULL AS SIGNED ) ) AS DECIMAL ) THEN NULL ELSE - NULLIF ( 68, + 81 + + - CASE - 43 WHEN - + 52 THEN + 95 ELSE NULL END ) END * 9 AS col1
----
612

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - CASE + + 74 WHEN + 37 / 68 + + + CAST ( - - SUM ( ALL + + CAST ( NULL AS INTEGER ) ) AS REAL ) THEN NULL ELSE - NULLIF ( 68, + 81 + + - CASE - 43 WHEN - + 52 THEN + 95 ELSE NULL END ) END * 9 AS col1
----
612

query I rowsort
SELECT - 27 * + - 35 AS col1
----
945

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

onlyif mysql # aggregate syntax: 
query II rowsort label-910
SELECT COALESCE ( 14, NULLIF ( NULLIF ( COUNT( * ), + - 9 * + 63 ), + - 44 ) + - COUNT( * ) ), - 10 AS col1
----
14
-10

skipif mysql # not compatible
query II rowsort label-910
SELECT COALESCE ( 14, NULLIF ( NULLIF ( COUNT ( * ), + - 9 * + 63 ), + - 44 ) + - COUNT ( * ) ), - 10 AS col1
----
14
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-911
SELECT 22 * - 81 * + MIN( + - 82 ) AS col1, - 98 + - 91 col0
----
146124
-189

skipif mysql # not compatible
query II rowsort label-911
SELECT 22 * - 81 * + MIN ( + - 82 ) AS col1, - 98 + - 91 col0
----
146124
-189

query I rowsort
SELECT 12 * - 12 * - + CASE + 90 WHEN - 49 THEN 10 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT + COUNT( DISTINCT - 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT + COUNT ( DISTINCT - 36 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 69 * + 91
----
6279

query I rowsort
SELECT + 93 * + 61 AS col0
----
5673

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL + 33 * + + 41 * - 51 * + - COUNT( * ) + - 32
----
68971

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL + 33 * + + 41 * - 51 * + - COUNT ( * ) + - 32
----
68971

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

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

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

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

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

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

query I rowsort
SELECT ALL 80 + - 40 col1
----
40

query I rowsort
SELECT ALL 44 + - 96 + 52
----
0

query I rowsort
SELECT DISTINCT 43 + 52 + + 73 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL - + 66 * - + COUNT( * ) * + 85
----
5610

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL - + 66 * - + COUNT ( * ) * + 85
----
5610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-924
SELECT ALL 65 + + AVG ( ALL - 95 ) - 70 + + COALESCE ( CASE - + 12 WHEN - 1 THEN ( - 5 ) * - COUNT( * ) + - COUNT( * ) WHEN + COUNT( * ) THEN - + COUNT( ALL CAST( 61 AS SIGNED ) ) ELSE NULL END, 13 ) * CAST( NULL AS SIGNED ) / + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL 65 + + AVG ( ALL - 95 ) - 70 + + COALESCE ( CASE - + 12 WHEN - 1 THEN ( - 5 ) * - COUNT ( * ) + - COUNT ( * ) WHEN + COUNT ( * ) THEN - + COUNT ( ALL CAST ( 61 AS INTEGER ) ) ELSE NULL END, 13 ) * CAST ( NULL AS INTEGER ) / + 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT DISTINCT 70 DIV + 94 * + 82
----
0

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT 70 / + 94 * + 82
----
0

query I rowsort
SELECT - + 5 * - + 19
----
95

query I rowsort
SELECT ALL + ( - 31 ) * - + 23
----
713

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT + - 36 + - 11 + + ( + COUNT( * ) ) + - + ( - 69 ) * + 76 AS col1
----
5198

skipif mysql # not compatible
query I rowsort label-928
SELECT + - 36 + - 11 + + ( + COUNT ( * ) ) + - + ( - 69 ) * + 76 AS col1
----
5198

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT ALL CASE 90 WHEN 7 THEN - + 21 END * + + 72 / - NULLIF ( + MIN( ALL - 44 ), - + 96 * 30 * - 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL CASE 90 WHEN 7 THEN - + 21 END * + + 72 / - NULLIF ( + MIN ( ALL - 44 ), - + 96 * 30 * - 83 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-931
SELECT DISTINCT + 17 DIV + COUNT( * ) AS col0, + ( - 14 ) - - 71 DIV 47
----
17
-13

skipif mysql # not compatible
query II rowsort label-931
SELECT DISTINCT + 17 / + COUNT ( * ) AS col0, + ( - 14 ) - - 71 / 47
----
17
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + CASE COALESCE ( 33, - NULLIF ( CASE ( - - 50 ) WHEN 41 THEN NULL WHEN 41 THEN NULL ELSE - + COUNT( * ) / 38 + - - 41 END, + 64 ) * + 52, - NULLIF ( - 38, AVG ( ALL - 31 ) ) ) WHEN 98 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-932
SELECT + CASE COALESCE ( 33, - NULLIF ( CASE ( - - 50 ) WHEN 41 THEN NULL WHEN 41 THEN NULL ELSE - + COUNT ( * ) / 38 + - - 41 END, + 64 ) * + 52, - NULLIF ( - 38, AVG ( ALL - 31 ) ) ) WHEN 98 THEN NULL ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT ALL + 48 - + 81 * + 18 AS col2
----
-1410

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT - 43 - + - 92 DIV + 49 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-934
SELECT - 43 - + - 92 / + 49 AS col2
----
-42

query I rowsort
SELECT - 87 + - 10 AS col1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT - 0 - + CASE + 86 WHEN + ( COALESCE ( - 19, ( + CAST( NULL AS SIGNED ) ) - + + 64 ) ) THEN 87 WHEN - 2 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT - 0 - + CASE + 86 WHEN + ( COALESCE ( - 19, ( + CAST ( NULL AS INTEGER ) ) - + + 64 ) ) THEN 87 WHEN - 2 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-937
SELECT - 59 * + NULLIF ( - - CASE - - AVG ( - 96 ) WHEN 29 * - 63 * - CASE - 85 WHEN + + 35 THEN NULL WHEN NULLIF ( 87, + - CAST( - 54 AS SIGNED ) ) THEN - 60 END * CASE - 75 + - CASE + 68 WHEN - 72 THEN NULL ELSE 77 END WHEN 86 THEN NULL WHEN + 27 THEN 19 + - COUNT( * ) END + 99 THEN NULL WHEN + CAST( - NULLIF ( ( 92 ), + 84 ) AS SIGNED ) THEN NULL ELSE 90 END, + 12 ) * + 79
----
-419490

skipif mysql # not compatible
query I rowsort label-937
SELECT - 59 * + NULLIF ( - - CASE - - AVG ( - 96 ) WHEN 29 * - 63 * - CASE - 85 WHEN + + 35 THEN NULL WHEN NULLIF ( 87, + - CAST ( - 54 AS INTEGER ) ) THEN - 60 END * CASE - 75 + - CASE + 68 WHEN - 72 THEN NULL ELSE 77 END WHEN 86 THEN NULL WHEN + 27 THEN 19 + - COUNT ( * ) END + 99 THEN NULL WHEN + CAST ( - NULLIF ( ( 92 ), + 84 ) AS INTEGER ) THEN NULL ELSE 90 END, + 12 ) * + 79
----
-419490

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

query I rowsort
SELECT ALL - ( - 98 ) * + 59
----
5782

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT - 88 DIV - + 7
----
12

skipif mysql # not compatible
query I rowsort label-940
SELECT - 88 / - + 7
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT ALL + COALESCE ( - + COUNT( * ), - - 59 - + 53, 34 ) AS col2, 99 * - - 7 * - - 52 AS col2
----
-1
36036

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL + COALESCE ( - + COUNT ( * ), - - 59 - + 53, 34 ) AS col2, 99 * - - 7 * - - 52 AS col2
----
-1
36036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT - ( + + CAST( NULL AS SIGNED ) ) / - - NULLIF ( 10, - 57 + + 85 ) + 74 * - 83 + + + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT - ( + + CAST ( NULL AS INTEGER ) ) / - - NULLIF ( 10, - 57 + + 85 ) + 74 * - 83 + + + 69 AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL - COUNT ( * ) / COUNT ( * ) + - + 13
----
-14

query I rowsort
SELECT - 40 + - 29 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT - COUNT( * ) + - + 64 * 14 - + 16 AS col2
----
-913

skipif mysql # not compatible
query I rowsort label-946
SELECT - COUNT ( * ) + - + 64 * 14 - + 16 AS col2
----
-913

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT DISTINCT - ( - 10 ) * - + NULLIF ( - 30, + + 19 ) * 49 + - 64 DIV - + 76 * 7 AS col0
----
14700

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT - ( - 10 ) * - + NULLIF ( - 30, + + 19 ) * 49 + - 64 / - + 76 * 7 AS col0
----
14700

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT - 87 DIV 19 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-948
SELECT - 87 / 19 AS col1
----
-4

query I rowsort
SELECT - 4 * 86 AS col1
----
-344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT ALL + CASE NULLIF ( - 40, 64 ) WHEN + COUNT( * ) * - CAST( + 8 AS SIGNED ) THEN CAST( NULL AS SIGNED ) + 7 + + + COUNT( * ) * - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL + CASE NULLIF ( - 40, 64 ) WHEN + COUNT ( * ) * - CAST ( + 8 AS INTEGER ) THEN CAST ( NULL AS INTEGER ) + 7 + + + COUNT ( * ) * - 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-951
SELECT ( COUNT( ALL - 6 ) ) AS col0, 88
----
1
88

skipif mysql # not compatible
query II rowsort label-951
SELECT ( COUNT ( ALL - 6 ) ) AS col0, 88
----
1
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-952
SELECT NULLIF ( + CAST( NULL AS DECIMAL ), - 12 + + COUNT( * ) + - 35 ) * - 99 * 43 + - + 59 * 1 * 40 + - 38 + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT NULLIF ( + CAST ( NULL AS REAL ), - 12 + + COUNT ( * ) + - 35 ) * - 99 * 43 + - + 59 * 1 * 40 + - 38 + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ( SUM( + 67 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-953
SELECT ( SUM ( + 67 ) ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-954
SELECT ALL - 12 * + 49 * + CAST( - + 93 AS SIGNED ) + - - CAST( ( + 91 ) AS SIGNED ) - - MAX( + - 21 ) * 93, COUNT( + + 40 ) AS col1
----
52822
1

skipif mysql # not compatible
query II rowsort label-954
SELECT ALL - 12 * + 49 * + CAST ( - + 93 AS INTEGER ) + - - CAST ( ( + 91 ) AS INTEGER ) - - MAX ( + - 21 ) * 93, COUNT ( + + 40 ) AS col1
----
52822
1

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT DISTINCT 3 * ( 17 ) AS col1, + 38 * - COUNT( * ) AS col1
----
51
-38

skipif mysql # not compatible
query II rowsort label-955
SELECT DISTINCT 3 * ( 17 ) AS col1, + 38 * - COUNT ( * ) AS col1
----
51
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT ALL 62 * + 96 * - + 10 col2, + NULLIF ( + 50, + COUNT( * ) )
----
-59520
50

skipif mysql # not compatible
query II rowsort label-956
SELECT ALL 62 * + 96 * - + 10 col2, + NULLIF ( + 50, + COUNT ( * ) )
----
-59520
50

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

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

query I rowsort
SELECT + NULLIF ( - + ( 39 ), + 41 ) col1
----
-39

query I rowsort
SELECT ALL 59 * 96
----
5664

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-960
SELECT + - 50 * - CAST( 78 AS DECIMAL ) * CAST( NULL AS SIGNED ) + - 32 + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-960
SELECT + - 50 * - CAST ( 78 AS REAL ) * CAST ( NULL AS INTEGER ) + - 32 + 54 AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-963
SELECT DISTINCT - 23 AS col0, - 53 + - MAX( 61 )
----
-23
-114

skipif mysql # not compatible
query II rowsort label-963
SELECT DISTINCT - 23 AS col0, - 53 + - MAX ( 61 )
----
-23
-114

query I rowsort
SELECT + 82 * + ( - + 25 ) AS col1
----
-2050

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT ALL - 88 DIV 42 * ( 48 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - 88 / 42 * ( 48 ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-966
SELECT ALL CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * ( + + 25 ) THEN + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * ( + + 25 ) THEN + 19 END
----
NULL

query I rowsort
SELECT + - 38 * + + 29 - + + 53 * - 82
----
3244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-968
SELECT ALL MAX( DISTINCT - 12 ) DIV - - ( + ( + 8 ) ), - CAST( + CASE - - 79 WHEN + 30 THEN + 18 * + 96 ELSE + + 51 END AS SIGNED ) col0
----
-1
-51

skipif mysql # not compatible
query II rowsort label-968
SELECT ALL MAX ( DISTINCT - 12 ) / - - ( + ( + 8 ) ), - CAST ( + CASE - - 79 WHEN + 30 THEN + 18 * + 96 ELSE + + 51 END AS INTEGER ) col0
----
-1
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT - + SUM( - 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-969
SELECT - + SUM ( - 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT - 41 + - - SUM( DISTINCT - - 83 ) + + 87 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-970
SELECT - 41 + - - SUM ( DISTINCT - - 83 ) + + 87 AS col2
----
129

query I rowsort
SELECT + 85 * + 93
----
7905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-972
SELECT + 47 * - - CAST( + COUNT( * ) AS SIGNED ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT + 47 * - - CAST ( + COUNT ( * ) AS INTEGER ) / - 74
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT ALL + COUNT( * ) + + 63 - - 80 - + 49 + + 95 * + + COUNT( * ) + - COUNT( * ) + - 45 * + - 83 * COUNT( * ) + - 87 AS col2, 0 * + 80
----
3837
0

skipif mysql # not compatible
query II rowsort label-974
SELECT ALL + COUNT ( * ) + + 63 - - 80 - + 49 + + 95 * + + COUNT ( * ) + - COUNT ( * ) + - 45 * + - 83 * COUNT ( * ) + - 87 AS col2, 0 * + 80
----
3837
0

onlyif mysql # aggregate syntax: 
query II rowsort label-975
SELECT ALL 80 AS col2, - 33 + + MAX( - 33 ) AS col0
----
80
-66

skipif mysql # not compatible
query II rowsort label-975
SELECT ALL 80 AS col2, - 33 + + MAX ( - 33 ) AS col0
----
80
-66

query I rowsort
SELECT ALL 5 * 51 col2
----
255

query I rowsort
SELECT 37 * 19
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT COUNT( * ) - 86 + 9
----
-76

skipif mysql # not compatible
query I rowsort label-978
SELECT COUNT ( * ) - 86 + 9
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-979
SELECT ALL + CAST( NULL AS SIGNED ) + + 96, - 88 AS col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL + CAST ( NULL AS INTEGER ) + + 96, - 88 AS col0
----
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT - 22 * + 83 * + SUM( ALL + 68 ) - 12 AS col1
----
-124180

skipif mysql # not compatible
query I rowsort label-980
SELECT - 22 * + 83 * + SUM ( ALL + 68 ) - 12 AS col1
----
-124180

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT COALESCE ( + + SUM( 33 ), + ( - 22 ), 24 ) * + - 15 AS col2
----
-495

skipif mysql # not compatible
query I rowsort label-981
SELECT COALESCE ( + + SUM ( 33 ), + ( - 22 ), 24 ) * + - 15 AS col2
----
-495

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

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

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

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

query II rowsort
SELECT + 2, + 76 * - ( + - 61 ) AS col0
----
2
4636

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

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

query II rowsort
SELECT ALL - 71 + - 22 AS col2, - 20 + - + 35
----
-93
-55

query I rowsort
SELECT DISTINCT + 43 * + 55
----
2365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-988
SELECT 72 / CAST( + COUNT( * ) AS SIGNED ) / - - CAST( - 4 AS SIGNED ) * CAST( - 66 AS SIGNED ) * - 70 + + CAST( NULL AS SIGNED ) + + - 32 - CASE - 22 WHEN - COALESCE ( + 63, + NULLIF ( + 35, ( - CAST( NULL AS SIGNED ) ) ) ) * + 61 + 84 THEN - 48 + - 4 / - COUNT( * ) WHEN + 70 THEN NULL WHEN 65 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT 72 / CAST ( + COUNT ( * ) AS INTEGER ) / - - CAST ( - 4 AS INTEGER ) * CAST ( - 66 AS INTEGER ) * - 70 + + CAST ( NULL AS INTEGER ) + + - 32 - CASE - 22 WHEN - COALESCE ( + 63, + NULLIF ( + 35, ( - CAST ( NULL AS INTEGER ) ) ) ) * + 61 + 84 THEN - 48 + - 4 / - COUNT ( * ) WHEN + 70 THEN NULL WHEN 65 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 78 * - 49 AS col1
----
-3822

query I rowsort
SELECT ALL - - COALESCE ( + 86, - - 56 ) AS col2
----
86

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

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

query II rowsort
SELECT - 97 AS col2, + 95
----
-97
95

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT + - 60 * - + ( + COUNT( * ) ) + + 48 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-993
SELECT + - 60 * - + ( + COUNT ( * ) ) + + 48 AS col2
----
108

query I rowsort
SELECT 18 - NULLIF ( 11, + - 15 )
----
7

query II rowsort
SELECT + 40 * + 37 AS col2, 20 + + 69 AS col0
----
1480
89

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

query I rowsort
SELECT DISTINCT - 81 - + 90 * + 91 AS col2
----
-8271

query I rowsort
SELECT ALL + 59 * + 0 * 11 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-999
SELECT + CASE + COUNT( * ) WHEN 2 / + MAX( DISTINCT - 75 ) * + ( - COALESCE ( + - 61, - + 49 + - - 95 ) ) THEN + COUNT( * ) - - 85 * 81 WHEN + CASE - NULLIF ( + + 96, ( COUNT( * ) ) * 63 ) WHEN 61 THEN NULL ELSE - 87 + CAST( NULL AS SIGNED ) END * + 21 + 31 THEN NULL END + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT + CASE + COUNT ( * ) WHEN 2 / + MAX ( DISTINCT - 75 ) * + ( - COALESCE ( + - 61, - + 49 + - - 95 ) ) THEN + COUNT ( * ) - - 85 * 81 WHEN + CASE - NULLIF ( + + 96, ( COUNT ( * ) ) * 63 ) WHEN 61 THEN NULL ELSE - 87 + CAST ( NULL AS INTEGER ) END * + 21 + 31 THEN NULL END + 87 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1000
SELECT DISTINCT + 2 col2, 23 - + 5 + 31 + 55 + 52 * CAST( NULL AS SIGNED ) - + - ( + 16 )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-1000
SELECT DISTINCT + 2 col2, 23 - + 5 + 31 + 55 + 52 * CAST ( NULL AS INTEGER ) - + - ( + 16 )
----
2
NULL

query II rowsort
SELECT ALL 93 AS col0, 71 AS col1
----
93
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT 7 - + COUNT( * ) + - + 22 * + + 41 * 35 - - - 0 * - 51 * - 93 col1
----
-31564

skipif mysql # not compatible
query I rowsort label-1002
SELECT 7 - + COUNT ( * ) + - + 22 * + + 41 * 35 - - - 0 * - 51 * - 93 col1
----
-31564

query I rowsort
SELECT ALL - CASE - 81 WHEN - + 82 * - - ( + + 22 ) * + + CASE + - 63 WHEN - 52 THEN + 64 WHEN + 29 + - 59 THEN NULL END THEN - 54 END AS col2
----
NULL

query II rowsort
SELECT - - 99 AS col1, + 12 * + 83 + + + 82
----
99
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT CASE 18 WHEN - CASE - 41 WHEN - COUNT( * ) / + 27 + - 34 - + + 23 / + 7 THEN - SUM( - 62 ) WHEN 87 / + 67 THEN + 78 ELSE 94 * 30 + - COALESCE ( - 7 + AVG ( ALL - 3 ), + 44, - 77 * - COUNT( * ), 67 * + 3 ) / - 6 END THEN 69 + + 97 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT CASE 18 WHEN - CASE - 41 WHEN - COUNT ( * ) / + 27 + - 34 - + + 23 / + 7 THEN - SUM ( - 62 ) WHEN 87 / + 67 THEN + 78 ELSE 94 * 30 + - COALESCE ( - 7 + AVG ( ALL - 3 ), + 44, - 77 * - COUNT ( * ), 67 * + 3 ) / - 6 END THEN 69 + + 97 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL + 16 + - COALESCE ( 93, - + 18 ) + - 69 + 2 + + ( - 67 ) * + 56 + + 8 * 97 + 11 - + 52 * - SUM( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL + 16 + - COALESCE ( 93, - + 18 ) + - 69 + 2 + + ( - 67 ) * + 56 + + 8 * 97 + 11 - + 52 * - SUM ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 35 + 28
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1008
SELECT NULLIF ( + + COUNT( * ), - - 84 * - 97 - + - 44 - - + AVG ( 80 ) ) + - 8 - - + 16 + 51 DIV 2 * + - COUNT( * ) DIV - + ( CAST( - 76 AS SIGNED ) ) + - SUM( 38 )
----
-29

skipif mysql # not compatible
query I rowsort label-1008
SELECT NULLIF ( + + COUNT ( * ), - - 84 * - 97 - + - 44 - - + AVG ( 80 ) ) + - 8 - - + 16 + 51 / 2 * + - COUNT ( * ) / - + ( CAST ( - 76 AS INTEGER ) ) + - SUM ( 38 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1009
SELECT 18 + 32 AS col1, - 73 * + + 48 / + - 50 * - CAST( NULL AS SIGNED ) * + 93 AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1009
SELECT 18 + 32 AS col1, - 73 * + + 48 / + - 50 * - CAST ( NULL AS INTEGER ) * + 93 AS col0
----
50
NULL

query I rowsort
SELECT ( 94 ) + - 38 AS col1
----
56

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT COUNT( * ) + + 15 - COALESCE ( - SUM( ALL + 60 ), + - 11, 96 ) - + 82 AS col2, - 7 AS col2
----
-6
-7

skipif mysql # not compatible
query II rowsort label-1012
SELECT COUNT ( * ) + + 15 - COALESCE ( - SUM ( ALL + 60 ), + - 11, 96 ) - + 82 AS col2, - 7 AS col2
----
-6
-7

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

skipif mysql # not compatible
query II rowsort label-1013
SELECT 72 * - COUNT ( * ), 15 AS col1
----
-72
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT DISTINCT - NULLIF ( + - CAST( + 8 AS SIGNED ), - 42 )
----
8

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT - NULLIF ( + - CAST ( + 8 AS INTEGER ), - 42 )
----
8

query I rowsort
SELECT ALL 92 * 5 + - + 44
----
416

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT 66 DIV + 35 + - + 99
----
-98

skipif mysql # not compatible
query I rowsort label-1016
SELECT 66 / + 35 + - + 99
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT 39 * 5 * 88 * + - COUNT( * ) + + 24 + - 88 * + 33
----
-20040

skipif mysql # not compatible
query I rowsort label-1017
SELECT 39 * 5 * 88 * + - COUNT ( * ) + + 24 + - 88 * + 33
----
-20040

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT 88 * + + COUNT( DISTINCT 40 )
----
88

skipif mysql # not compatible
query I rowsort label-1018
SELECT 88 * + + COUNT ( DISTINCT 40 )
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1019
SELECT + 76 DIV 59 + - ( - 39 ) + + 96 AS col1, ( 15 ) * + 14 + + + 14 + - - CAST( NULL AS SIGNED )
----
136
NULL

skipif mysql # not compatible
query II rowsort label-1019
SELECT + 76 / 59 + - ( - 39 ) + + 96 AS col1, ( 15 ) * + 14 + + + 14 + - - CAST ( NULL AS INTEGER )
----
136
NULL

query I rowsort
SELECT DISTINCT + 54 * 20 + + ( - + 66 ) - + - 47 * + 89 + - ( 73 ) AS col1
----
5124

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT + - 55 * + COUNT( * ) * + 63
----
-3465

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT + - 55 * + COUNT ( * ) * + 63
----
-3465

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1023
SELECT COUNT( * ) * + + 70 col0, - 81
----
70
-81

skipif mysql # not compatible
query II rowsort label-1023
SELECT COUNT ( * ) * + + 70 col0, - 81
----
70
-81

query I rowsort
SELECT DISTINCT + + 63 * - 65
----
-4095

query I rowsort
SELECT + - 84 * 68 * + 34 - 81
----
-194289

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT + - NULLIF ( COUNT( ALL - 66 ), - 86 + + COUNT( * ) * + + 81 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1026
SELECT + - NULLIF ( COUNT ( ALL - 66 ), - 86 + + COUNT ( * ) * + + 81 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT 5 * - + 16 + - + 22 + 39 + 64 / - 44 + - CAST( NULL AS SIGNED ) + - NULLIF ( - 10, - 23 ) * - COALESCE ( 27, + + COUNT( * ) * 7 - + CASE + MIN( DISTINCT - - 95 ) WHEN - 26 * 64 THEN 66 / COUNT( * ) + + 48 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT 5 * - + 16 + - + 22 + 39 + 64 / - 44 + - CAST ( NULL AS INTEGER ) + - NULLIF ( - 10, - 23 ) * - COALESCE ( 27, + + COUNT ( * ) * 7 - + CASE + MIN ( DISTINCT - - 95 ) WHEN - 26 * 64 THEN 66 / COUNT ( * ) + + 48 ELSE NULL END )
----
NULL

query I rowsort
SELECT - 83 * + 83 + - 80 * - 58 AS col1
----
-2249

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT COALESCE ( - 21, - 19, + + COUNT( * ) + - + 19 + 9 * - - 9 )
----
-21

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT COALESCE ( - 21, - 19, + + COUNT ( * ) + - + 19 + 9 * - - 9 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1030
SELECT - 76 + + 92 + + 38 - + + 42 * - 7 DIV - COUNT( * )
----
-240

skipif mysql # not compatible
query I rowsort label-1030
SELECT - 76 + + 92 + + 38 - + + 42 * - 7 / - COUNT ( * )
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT DISTINCT - + 71 + - 86 * - - COUNT( * ) - COUNT( * ) - + 76 + + 45 * - COUNT( * )
----
-279

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT - + 71 + - 86 * - - COUNT ( * ) - COUNT ( * ) - + 76 + + 45 * - COUNT ( * )
----
-279

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

skipif mysql # not compatible
query I rowsort label-1032
SELECT - 0 - - MIN ( - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-1033
SELECT ALL 12 * - ( COUNT( * ) ) AS col1, 60 AS col2
----
-12
60

skipif mysql # not compatible
query II rowsort label-1033
SELECT ALL 12 * - ( COUNT ( * ) ) AS col1, 60 AS col2
----
-12
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL - 33 + + MIN( DISTINCT + COALESCE ( 36, ( + CAST( - + 15 AS SIGNED ) ) ) ) + + - 69 + - 58 * - + 4
----
166

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - 33 + + MIN ( DISTINCT + COALESCE ( 36, ( + CAST ( - + 15 AS INTEGER ) ) ) ) + + - 69 + - 58 * - + 4
----
166

query II rowsort
SELECT 57 AS col0, - 50
----
57
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT - 5 * + 44 * SUM( 36 ) AS col2
----
-7920

skipif mysql # not compatible
query I rowsort label-1036
SELECT - 5 * + 44 * SUM ( 36 ) AS col2
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL + CASE 4 WHEN + 18 * + + 33 * + 73 - + + COUNT( * ) THEN NULL ELSE - + COALESCE ( - + 38, - 84 * - 53 ) END + - - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL + CASE 4 WHEN + 18 * + + 33 * + 73 - + + COUNT ( * ) THEN NULL ELSE - + COALESCE ( - + 38, - 84 * - 53 ) END + - - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT 4 - MIN( ALL 93 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT 4 - MIN ( ALL 93 ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT + COALESCE ( - 76, - 56 ) * - CAST( - ( + 90 ) AS SIGNED ) AS col1
----
-6840

skipif mysql # not compatible
query I rowsort label-1039
SELECT + COALESCE ( - 76, - 56 ) * - CAST ( - ( + 90 ) AS INTEGER ) AS col1
----
-6840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL ( CASE 63 WHEN 48 THEN + - NULLIF ( + 11, - 30 - + CAST( + 17 AS SIGNED ) ) / - 76 + + + 80 + + 22 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL ( CASE 63 WHEN 48 THEN + - NULLIF ( + 11, - 30 - + CAST ( + 17 AS INTEGER ) ) / - 76 + + + 80 + + 22 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT - SUM( - - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-1041
SELECT - SUM ( - - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT - CASE - ( - AVG ( 3 ) ) WHEN - COUNT( * ) + COUNT( * ) + 71 THEN + 85 - - COUNT( * ) ELSE 21 END
----
-21

skipif mysql # not compatible
query I rowsort label-1042
SELECT - CASE - ( - AVG ( 3 ) ) WHEN - COUNT ( * ) + COUNT ( * ) + 71 THEN + 85 - - COUNT ( * ) ELSE 21 END
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT - CASE - MAX( DISTINCT + 81 ) WHEN 54 * - 0 + - 3 THEN - - 92 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT - CASE - MAX ( DISTINCT + 81 ) WHEN 54 * - 0 + - 3 THEN - - 92 END col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1044
SELECT ( + - MIN ( + ( - 39 ) ) )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1045
SELECT + 98 DIV 95
----
1

skipif mysql # not compatible
query I rowsort label-1045
SELECT + 98 / 95
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + SUM( ALL 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1046
SELECT + SUM ( ALL 44 ) AS col0
----
44

query I rowsort
SELECT + + 78 * - 44
----
-3432

query II rowsort
SELECT DISTINCT + + 87, + 76 AS col0
----
87
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT COUNT( * ) * + - 33 * + 21 - + 77 - - + 7
----
-763

skipif mysql # not compatible
query I rowsort label-1050
SELECT COUNT ( * ) * + - 33 * + 21 - + 77 - - + 7
----
-763

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - CASE 8 WHEN - COUNT( 33 ) + + - ( ( 31 ) ) THEN - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT - CASE 8 WHEN - COUNT ( 33 ) + + - ( ( 31 ) ) THEN - COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT NULLIF ( + 39, + 8 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT 51 * - COUNT( * ) + - 71 * 61 AS col2
----
-4382

skipif mysql # not compatible
query I rowsort label-1053
SELECT 51 * - COUNT ( * ) + - 71 * 61 AS col2
----
-4382

query II rowsort
SELECT ALL + COALESCE ( + + 96, 47 ) AS col2, + 48
----
96
48

query I rowsort
SELECT + 77 * 91 + + 34 * + - 67
----
4729

query I rowsort
SELECT DISTINCT + - 5 * - 23 + + 71 + 70 * 37
----
2776

query I rowsort
SELECT ALL 34 * 68 + + 71 - - - 60
----
2323

query I rowsort
SELECT DISTINCT + 43 * - + 36 * + 58 - 43 + 65 - - 94
----
-89668

query I rowsort
SELECT ALL - - 87 * 31 + + 72 + + 66
----
2835

query I rowsort
SELECT ALL + + ( - 46 ) * + - 54 * - 21 * 78 + ( 66 )
----
-4068726

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT + 6 + - + MIN( + + 63 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1061
SELECT + 6 + - + MIN ( + + 63 ) AS col2
----
-57

query I rowsort
SELECT DISTINCT COALESCE ( - 5, 0 * - - 56 - 20 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1063
SELECT ALL ( + 99 ), - 47 - 18 + COUNT( * ) * + 30 AS col2
----
99
-35

skipif mysql # not compatible
query II rowsort label-1063
SELECT ALL ( + 99 ), - 47 - 18 + COUNT ( * ) * + 30 AS col2
----
99
-35

query I rowsort
SELECT - 82 + + ( + 23 ) + 96 + 81 + - 54 * - 11 * + - 70 * - 0
----
118

query I rowsort
SELECT - 46 * - 61 AS col0
----
2806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT - CASE 74 WHEN 29 THEN + 13 WHEN CAST( 66 AS SIGNED ) * - + 97 THEN NULL END - + 15 + 92 / - COUNT( * ) * - 22 + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT - CASE 74 WHEN 29 THEN + 13 WHEN CAST ( 66 AS INTEGER ) * - + 97 THEN NULL END - + 15 + 92 / - COUNT ( * ) * - 22 + 47 col0
----
NULL

query I rowsort
SELECT - 10 * 81
----
-810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1068
SELECT ALL - 11 DIV MIN( DISTINCT - 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - 11 / MIN ( DISTINCT - 24 ) AS col2
----
0

query II rowsort
SELECT - 28 + 1 col2, - 76
----
-27
-76

query I rowsort
SELECT DISTINCT 40 * + - 61 AS col0
----
-2440

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

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

query I rowsort
SELECT - 92 + 32 AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1073
SELECT DISTINCT CAST( CAST( + + 64 AS SIGNED ) AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT CAST ( CAST ( + + 64 AS INTEGER ) AS INTEGER )
----
64

query I rowsort
SELECT - 68 + + 98 - 82 * - + 85 col2
----
7000

onlyif mysql # DIV for integer division: 
query I rowsort label-1075
SELECT + 74 - - 22 + + 30 DIV + 2 col2
----
111

skipif mysql # not compatible
query I rowsort label-1075
SELECT + 74 - - 22 + + 30 / + 2 col2
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT - NULLIF ( + COUNT( * ), - SUM( DISTINCT + 16 ) * + + COUNT( * ) + + 77 ) + + 15, + COUNT( + 91 ) col1
----
14
1

skipif mysql # not compatible
query II rowsort label-1076
SELECT - NULLIF ( + COUNT ( * ), - SUM ( DISTINCT + 16 ) * + + COUNT ( * ) + + 77 ) + + 15, + COUNT ( + 91 ) col1
----
14
1

query I rowsort
SELECT DISTINCT - 22 * + + 21
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT + COALESCE ( + - 51, - MAX( ALL 42 ), - - 87 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + COALESCE ( + - 51, - MAX ( ALL 42 ), - - 87 ) AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1079
SELECT DISTINCT + ( + + 25 ) DIV + - 47 + + CAST( - 62 AS SIGNED ) + 52
----
-10

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT + ( + + 25 ) / + - 47 + + CAST ( - 62 AS INTEGER ) + 52
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT ALL 21 DIV + 26 + - 10 + + 77 + 72 col2
----
139

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL 21 / + 26 + - 10 + + 77 + 72 col2
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1081
SELECT - 29 DIV - NULLIF ( COALESCE ( + 87, - 83, 82 ), COALESCE ( + - 24, - - CASE - + COUNT( * ) WHEN + COUNT( * ) THEN + 8 END + - + CAST( NULL AS SIGNED ) ) * - + 29 + + 69 ) + + - 98 + + - COUNT( 49 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-1081
SELECT - 29 / - NULLIF ( COALESCE ( + 87, - 83, 82 ), COALESCE ( + - 24, - - CASE - + COUNT ( * ) WHEN + COUNT ( * ) THEN + 8 END + - + CAST ( NULL AS INTEGER ) ) * - + 29 + + 69 ) + + - 98 + + - COUNT ( 49 ) AS col1
----
-99

query I rowsort
SELECT ALL 66 + + 66
----
132

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT ALL - CAST( - - 19 AS SIGNED ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - CAST ( - - 19 AS INTEGER ) AS col2
----
-19

query I rowsort
SELECT - 12 * - 89 + ( 57 )
----
1125

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL + 84 + MIN( ALL - + 30 ) + - + COUNT( * ) * + COALESCE ( + 14, - + 97 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + 84 + MIN ( ALL - + 30 ) + - + COUNT ( * ) * + COALESCE ( + 14, - + 97 ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1087
SELECT + CAST( NULL AS SIGNED ) * - NULLIF ( - 76, 91 * - - CAST( + CAST( - 52 AS SIGNED ) AS SIGNED ) ) * + + COUNT( * ) * ( + MAX( - + 62 ) ) + + COUNT( * ), - 87 AS col0
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-1087
SELECT + CAST ( NULL AS INTEGER ) * - NULLIF ( - 76, 91 * - - CAST ( + CAST ( - 52 AS INTEGER ) AS INTEGER ) ) * + + COUNT ( * ) * ( + MAX ( - + 62 ) ) + + COUNT ( * ), - 87 AS col0
----
NULL
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT - 20 * - 22 + + + 89 + + 44 + - ( - 60 ) * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 20 * - 22 + + + 89 + + 44 + - ( - 60 ) * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1089
SELECT 23 - - 30 AS col0, MAX( ALL + 34 ) * + + 67 * - COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ), + COUNT( * ) ) + + - 64 AS col0
----
53
-2342

skipif mysql # not compatible
query II rowsort label-1089
SELECT 23 - - 30 AS col0, MAX ( ALL + 34 ) * + + 67 * - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ), + COUNT ( * ) ) + + - 64 AS col0
----
53
-2342

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT DISTINCT - MAX( DISTINCT - 50 ) col0
----
50

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT - MAX ( DISTINCT - 50 ) col0
----
50

query II rowsort
SELECT ALL 29 AS col1, 7 * + 17 AS col0
----
29
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT MIN( DISTINCT + - 65 ) + 78
----
13

skipif mysql # not compatible
query I rowsort label-1092
SELECT MIN ( DISTINCT + - 65 ) + 78
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT - 98 * COUNT( * ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT - 98 * COUNT ( * ) AS col0
----
-98

query I rowsort
SELECT DISTINCT - 98 * ( 11 ) * - 19 * + + 99
----
2027718

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT 91 * - CASE + - CAST( NULL AS SIGNED ) WHEN + 21 - - 39 * + + MAX( 44 ) THEN NULL WHEN + + 59 / + COALESCE ( - COUNT( * ), - - 15, - + 86 ) * + + MAX( DISTINCT - CASE 6 WHEN + - COALESCE ( - + ( 59 ), + + CAST( NULL AS SIGNED ), + 35, CAST( NULL AS SIGNED ) ) * - 24 THEN NULL WHEN + 86 THEN 2 * CASE + 30 WHEN + ( - 57 ) THEN + 63 + + CASE - 6 WHEN - 22 / 48 THEN NULL WHEN - 95 THEN - ( - 74 ) ELSE 31 / - CAST( + 25 / 15 AS SIGNED ) END / - CAST( NULL AS SIGNED ) END ELSE NULL END ) * 15 + 30 * 61 THEN 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT 91 * - CASE + - CAST ( NULL AS INTEGER ) WHEN + 21 - - 39 * + + MAX ( 44 ) THEN NULL WHEN + + 59 / + COALESCE ( - COUNT ( * ), - - 15, - + 86 ) * + + MAX ( DISTINCT - CASE 6 WHEN + - COALESCE ( - + ( 59 ), + + CAST ( NULL AS INTEGER ), + 35, CAST ( NULL AS INTEGER ) ) * - 24 THEN NULL WHEN + 86 THEN 2 * CASE + 30 WHEN + ( - 57 ) THEN + 63 + + CASE - 6 WHEN - 22 / 48 THEN NULL WHEN - 95 THEN - ( - 74 ) ELSE 31 / - CAST ( + 25 / 15 AS INTEGER ) END / - CAST ( NULL AS INTEGER ) END ELSE NULL END ) * 15 + 30 * 61 THEN 2 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1096
SELECT CASE - + 28 WHEN + COUNT( - 13 ) THEN - + CAST( NULL AS DECIMAL ) END * 71 * - COUNT( * ) + + MIN( ALL + 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT CASE - + 28 WHEN + COUNT ( - 13 ) THEN - + CAST ( NULL AS REAL ) END * 71 * - COUNT ( * ) + + MIN ( ALL + 93 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1097
SELECT 97 + COUNT( * ) + + CAST( NULL AS DECIMAL ) + - CAST( + 81 AS SIGNED ) * - 33 / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT 97 + COUNT ( * ) + + CAST ( NULL AS REAL ) + - CAST ( + 81 AS INTEGER ) * - 33 / 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT DISTINCT + 53 DIV + NULLIF ( - - 40, + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT + 53 / + NULLIF ( - - 40, + COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT 81 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-1099
SELECT 81 / + 55
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT 51 - 60 - + 42 * 69 * - - 96 * + 9 + + ( COUNT( * ) ) AS col2
----
-2503880

skipif mysql # not compatible
query I rowsort label-1101
SELECT 51 - 60 - + 42 * 69 * - - 96 * + 9 + + ( COUNT ( * ) ) AS col2
----
-2503880

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT 10 * - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1102
SELECT 10 * - COUNT ( * ) AS col0
----
-10

query II rowsort
SELECT ALL + - 6 + - COALESCE ( + 85, + - 72, - 12 ) AS col1, + 98 + + + 78 * + - 59 col1
----
-91
-4504

query II rowsort
SELECT + - 87 AS col1, 57 + + 21
----
-87
78

query I rowsort
SELECT 89 * + 97 AS col1
----
8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT DISTINCT - - CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - - CAST ( 0 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1107
SELECT - - ( - MIN( 59 ) ) * + 62 + - + CAST( NULL AS DECIMAL ) - + 65 col2, - 54 AS col2
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-1107
SELECT - - ( - MIN ( 59 ) ) * + 62 + - + CAST ( NULL AS REAL ) - + 65 col2, - 54 AS col2
----
NULL
-54

query I rowsort
SELECT ALL + + 1 + - - 34 * + ( 81 )
----
2755

query I rowsort
SELECT DISTINCT - NULLIF ( 78, - 7 + + 81 ) AS col1
----
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT - - SUM( + 62 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT - - SUM ( + 62 ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT + NULLIF ( 29, + 77 ) * + 34 * COUNT( * ) - + - 78
----
1064

skipif mysql # not compatible
query I rowsort label-1112
SELECT + NULLIF ( 29, + 77 ) * + 34 * COUNT ( * ) - + - 78
----
1064

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT DISTINCT + 29 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT + 29 / + 56
----
0

query I rowsort
SELECT ALL 29 - + - 97 * + 19 AS col2
----
1872

query I rowsort
SELECT NULLIF ( - 16, + 31 ) * + + 39 AS col1
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT ALL COUNT( * ) * + ( + COALESCE ( COUNT( * ), 40, - 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL COUNT ( * ) * + ( + COALESCE ( COUNT ( * ), 40, - 51 ) )
----
1

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

skipif mysql # not compatible
query I rowsort label-1117
SELECT COUNT ( * ) / - 6 AS col0
----
0

query I rowsort
SELECT ( + 76 ) * 73 AS col0
----
5548

onlyif mysql # DIV for integer division: 
query I rowsort label-1119
SELECT - 51 * - - 98 + 27 DIV - 85
----
-4998

skipif mysql # not compatible
query I rowsort label-1119
SELECT - 51 * - - 98 + 27 / - 85
----
-4998

query I rowsort
SELECT 46 * + 7
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT COUNT( + 98 ) * COALESCE ( 22, COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-1121
SELECT COUNT ( + 98 ) * COALESCE ( 22, COUNT ( * ) )
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1122
SELECT 52 + - 73 / + 20 + COUNT( - + 77 ) / + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT 52 + - 73 / + 20 + COUNT ( - + 77 ) / + - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT - 91 AS col0, 40 AS col2
----
-91
40

query I rowsort
SELECT ( - 47 ) + + 97 AS col1
----
50

query II rowsort
SELECT ALL 96, + 24 AS col2
----
96
24

query II rowsort
SELECT DISTINCT 98, - 25 AS col1
----
98
-25

onlyif mysql # aggregate syntax: 
query III rowsort label-1127
SELECT DISTINCT 86 + - 21 + - SUM( ALL - 88 ) * - - 6 + - 19, + 18 AS col0, + + 31 AS col1
----
574
18
31

skipif mysql # not compatible
query III rowsort label-1127
SELECT DISTINCT 86 + - 21 + - SUM ( ALL - 88 ) * - - 6 + - 19, + 18 AS col0, + + 31 AS col1
----
574
18
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1128
SELECT 92 col0, + CAST( 84 AS SIGNED ) * + 51, + - COUNT( * ) AS col0
----
92
4284
-1

skipif mysql # not compatible
query III rowsort label-1128
SELECT 92 col0, + CAST ( 84 AS INTEGER ) * + 51, + - COUNT ( * ) AS col0
----
92
4284
-1

query I rowsort
SELECT ALL + 49 + + 92
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-1130
SELECT ALL 21 + - + 57 - ( - + 32 ) * - 47 + + ( - 68 ) DIV - + 40 - - + 54 + - 58 AS col1
----
-1543

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL 21 + - + 57 - ( - + 32 ) * - 47 + + ( - 68 ) / - + 40 - - + 54 + - 58 AS col1
----
-1543

query I rowsort
SELECT 6 + 35 * ( + 26 ) AS col0
----
916

query II rowsort
SELECT - + 79, - 42 AS col0
----
-79
-42

query I rowsort
SELECT ALL 98 + 99 + + 21 AS col1
----
218

query I rowsort
SELECT 66 + - 85
----
-19

query I rowsort
SELECT + 38 - + 86
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1136
SELECT - COUNT( * ) * - 72 * - 90 - - 63 AS col0, 63 * - 88 * 27 * 1
----
-6417
-149688

skipif mysql # not compatible
query II rowsort label-1136
SELECT - COUNT ( * ) * - 72 * - 90 - - 63 AS col0, 63 * - 88 * 27 * 1
----
-6417
-149688

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

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

query I rowsort
SELECT ALL + 28 * - 65
----
-1820

query I rowsort
SELECT - + 6 * ( + ( - COALESCE ( + 22, + + 40 ) ) ) + - 54 - + ( 74 ) AS col0
----
4

query I rowsort
SELECT - 82 * + + 35 - 43 + - + ( + 82 )
----
-2995

query I rowsort
SELECT + 84 * + 44
----
3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1142
SELECT CAST( + + 30 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1142
SELECT CAST ( + + 30 AS INTEGER ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT ALL - 68 * + COUNT( * ) + + 24 - 37
----
-81

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL - 68 * + COUNT ( * ) + + 24 - 37
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT MIN( DISTINCT 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1144
SELECT MIN ( DISTINCT 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT - + 46 + MIN( ALL - 22 ) * + 82
----
-1850

skipif mysql # not compatible
query I rowsort label-1145
SELECT - + 46 + MIN ( ALL - 22 ) * + 82
----
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT + - COUNT( DISTINCT 77 ) + + + 90
----
89

skipif mysql # not compatible
query I rowsort label-1146
SELECT + - COUNT ( DISTINCT 77 ) + + + 90
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1147
SELECT ALL + CASE 3 WHEN + + 57 THEN CAST( NULL AS SIGNED ) * 58 * - 59 * + 78 + - 38 / + 13 WHEN + - COUNT( - - 61 ) THEN + 89 * 55 + - COUNT( * ) ELSE NULL END * + 2 - - COUNT( * ) + - - 75 + 73 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + CASE 3 WHEN + + 57 THEN CAST ( NULL AS INTEGER ) * 58 * - 59 * + 78 + - 38 / + 13 WHEN + - COUNT ( - - 61 ) THEN + 89 * 55 + - COUNT ( * ) ELSE NULL END * + 2 - - COUNT ( * ) + - - 75 + 73 * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT - - 71 * + SUM( ALL + - 57 ) col2
----
-4047

skipif mysql # not compatible
query I rowsort label-1148
SELECT - - 71 * + SUM ( ALL + - 57 ) col2
----
-4047

query II rowsort
SELECT + 93 AS col2, - 85 AS col2
----
93
-85

query II rowsort
SELECT DISTINCT + 25 * - + 64 AS col2, 34 AS col0
----
-1600
34

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1152
SELECT + ( + 62 ) * + 97 * - - COUNT( * ) + 92 + + NULLIF ( - - CASE WHEN 12 IS NULL THEN NULL WHEN ( 98 + 25 >= NULL ) THEN NULL ELSE 63 * 41 END, + + 67 ) + 30 DIV + + 40 - + 74 col2
----
8615

skipif mysql # not compatible
query I rowsort label-1152
SELECT + ( + 62 ) * + 97 * - - COUNT ( * ) + 92 + + NULLIF ( - - CASE WHEN 12 IS NULL THEN NULL WHEN ( 98 + 25 >= NULL ) THEN NULL ELSE 63 * 41 END, + + 67 ) + 30 / + + 40 - + 74 col2
----
8615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1153
SELECT + COUNT( - 37 ) * - NULLIF ( + 87, + 48 DIV - MAX( DISTINCT 33 ) + - ( NULLIF ( 23, NULLIF ( 24, - 91 * - 36 * - CAST( NULL AS SIGNED ) + - + 61 + + ( - 26 ) ) ) ) + 15 ) * - 68 + COALESCE ( - - ( - COUNT( * ) ), + 44 DIV - 79, - ( + 16 ), 92 * 16 + 38 ) * - 58 AS col2
----
5974

skipif mysql # not compatible
query I rowsort label-1153
SELECT + COUNT ( - 37 ) * - NULLIF ( + 87, + 48 / - MAX ( DISTINCT 33 ) + - ( NULLIF ( 23, NULLIF ( 24, - 91 * - 36 * - CAST ( NULL AS INTEGER ) + - + 61 + + ( - 26 ) ) ) ) + 15 ) * - 68 + COALESCE ( - - ( - COUNT ( * ) ), + 44 / - 79, - ( + 16 ), 92 * 16 + 38 ) * - 58 AS col2
----
5974

query I rowsort
SELECT - 52 - + 98 * 17 AS col2
----
-1718

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + COALESCE ( + 22, COUNT( * ), + 26 * 61 + + CASE + - 15 WHEN - 38 THEN - 90 * - MIN( 53 ) + + 76 * ( 16 ) WHEN - 48 - - COALESCE ( - + 31, - - CASE WHEN NOT 55 IS NOT NULL THEN + COUNT( * ) * - MIN( - 50 ) * - 0 + COUNT( * ) / - 80 WHEN NULL IS NOT NULL THEN + 40 ELSE NULL END, - 42 ) + 56 THEN NULL END - - 46 * COUNT( ( 61 ) + 60 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1155
SELECT + COALESCE ( + 22, COUNT ( * ), + 26 * 61 + + CASE + - 15 WHEN - 38 THEN - 90 * - MIN ( 53 ) + + 76 * ( 16 ) WHEN - 48 - - COALESCE ( - + 31, - - CASE WHEN NOT 55 IS NOT NULL THEN + COUNT ( * ) * - MIN ( - 50 ) * - 0 + COUNT ( * ) / - 80 WHEN NULL IS NOT NULL THEN + 40 ELSE NULL END, - 42 ) + 56 THEN NULL END - - 46 * COUNT ( ( 61 ) + 60 ) ) AS col2
----
22

query I rowsort
SELECT DISTINCT NULLIF ( - 69, - 76 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT ALL + 80 + - - COUNT( * ) - CAST( + 5 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL + 80 + - - COUNT ( * ) - CAST ( + 5 AS INTEGER )
----
76

query II rowsort
SELECT ALL 33 + + - 82, 60 AS col1
----
-49
60

query I rowsort
SELECT ALL 80 * - + 70 * - 32 AS col0
----
179200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1160
SELECT + 91 * - 5, CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
-455
NULL

skipif mysql # not compatible
query II rowsort label-1160
SELECT + 91 * - 5, CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
-455
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL 73 + - 68 - - + 64 - - + 49 + + MAX( ALL - + 67 ) - - 36 * - 5 * 23 + - 13
----
-4102

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL 73 + - 68 - - + 64 - - + 49 + + MAX ( ALL - + 67 ) - - 36 * - 5 * 23 + - 13
----
-4102

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT + + 68 DIV + ( + ( + 36 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1162
SELECT + + 68 / + ( + ( + 36 ) ) AS col0
----
1

query I rowsort
SELECT + + 62 + + 69 * 85 * + 57 + 61
----
334428

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1164
SELECT - ( 98 ), + 98 + + CAST( - 89 AS SIGNED ) AS col0
----
-98
9

skipif mysql # not compatible
query II rowsort label-1164
SELECT - ( 98 ), + 98 + + CAST ( - 89 AS INTEGER ) AS col0
----
-98
9

query I rowsort
SELECT ALL 5 + - 89
----
-84

query I rowsort
SELECT ALL 32 * + 55 AS col2
----
1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT DISTINCT + - CASE + + 71 WHEN ( 45 ) * + - 96 + 14 + - 25 * + 76 * CASE + NULLIF ( - + CAST( NULL AS SIGNED ), - - COALESCE ( 59, + 27 * CAST( NULL AS SIGNED ) + - 43 ) ) WHEN CAST( 74 AS SIGNED ) + + 20 THEN COUNT( * ) END THEN + 39 END - + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + - CASE + + 71 WHEN ( 45 ) * + - 96 + 14 + - 25 * + 76 * CASE + NULLIF ( - + CAST ( NULL AS INTEGER ), - - COALESCE ( 59, + 27 * CAST ( NULL AS INTEGER ) + - 43 ) ) WHEN CAST ( 74 AS INTEGER ) + + 20 THEN COUNT ( * ) END THEN + 39 END - + ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT + + ( 76 ) - - - NULLIF ( + 32, - 66 * + + 94 ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT + 51 DIV - COUNT( * ) + + COUNT( - 28 )
----
-50

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 51 / - COUNT ( * ) + + COUNT ( - 28 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT ALL + - NULLIF ( - CASE COALESCE ( + 56, + + 85 ) WHEN + NULLIF ( 63, + COUNT( * ) ) THEN + 49 * 24 WHEN + 16 + 99 THEN + 41 + + CASE 13 WHEN - COUNT( * ) THEN + - 95 * 85 * 59 WHEN COUNT( * ) + - NULLIF ( - + 1, + 61 / + 50 ) THEN + 94 + 20 ELSE + 30 END WHEN - 91 * + 3 THEN NULL ELSE NULL END, + 0 + 61 * - 90 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + - NULLIF ( - CASE COALESCE ( + 56, + + 85 ) WHEN + NULLIF ( 63, + COUNT ( * ) ) THEN + 49 * 24 WHEN + 16 + 99 THEN + 41 + + CASE 13 WHEN - COUNT ( * ) THEN + - 95 * 85 * 59 WHEN COUNT ( * ) + - NULLIF ( - + 1, + 61 / + 50 ) THEN + 94 + 20 ELSE + 30 END WHEN - 91 * + 3 THEN NULL ELSE NULL END, + 0 + 61 * - 90 ) col2
----
NULL

query I rowsort
SELECT + 4 * ( + - 22 )
----
-88

query I rowsort
SELECT ALL 74 * - + 1 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + 50 * + 60 - - + COUNT( * )
----
3001

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 50 * + 60 - - + COUNT ( * )
----
3001

query I rowsort
SELECT - 29 * 40
----
-1160

query I rowsort
SELECT + 0 * + + 43 * - 7 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1176
SELECT - 64 + - - 26 + - 93 * - + CAST( 28 AS SIGNED ) AS col1
----
2566

skipif mysql # not compatible
query I rowsort label-1176
SELECT - 64 + - - 26 + - 93 * - + CAST ( 28 AS INTEGER ) AS col1
----
2566

query I rowsort
SELECT + 93 * - 63 AS col2
----
-5859

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT - CAST( - 17 AS SIGNED ) * + + 34 * - - 51
----
29478

skipif mysql # not compatible
query I rowsort label-1179
SELECT - CAST ( - 17 AS INTEGER ) * + + 34 * - - 51
----
29478

onlyif mysql # DIV for integer division: 
query I rowsort label-1180
SELECT ALL 5 * + - 27 DIV 27 + - + 57 + 25 - - - 34 + 88
----
17

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL 5 * + - 27 / 27 + - + 57 + 25 - - - 34 + 88
----
17

query II rowsort
SELECT ALL + 45 * 86 + 91, + 15 AS col2
----
3961
15

query I rowsort
SELECT NULLIF ( + 81, + 28 * - 87 )
----
81

query II rowsort
SELECT - NULLIF ( + 42, - - 90 ) col0, 39
----
-42
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1184
SELECT ALL CASE - - 58 WHEN + 97 THEN + + 8 * AVG ( - 43 ) + 27 * - 4 WHEN - 60 + + 46 * - 93 THEN NULL ELSE - 57 END * - 78 * 34 + - + CAST( NULL AS SIGNED ) + - CASE + 24 WHEN - 16 THEN 16 * ( - + 72 ) ELSE + 23 END + + - NULLIF ( 66, - 70 + + CAST( 41 + + 76 AS SIGNED ) / + ( + ( - 70 ) + + ( ( CASE - 13 WHEN - 55 THEN - 95 WHEN 47 - COUNT( * ) THEN 84 WHEN 7 THEN NULL END ) ) ) ) * 73 + 86 * - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL CASE - - 58 WHEN + 97 THEN + + 8 * AVG ( - 43 ) + 27 * - 4 WHEN - 60 + + 46 * - 93 THEN NULL ELSE - 57 END * - 78 * 34 + - + CAST ( NULL AS INTEGER ) + - CASE + 24 WHEN - 16 THEN 16 * ( - + 72 ) ELSE + 23 END + + - NULLIF ( 66, - 70 + + CAST ( 41 + + 76 AS INTEGER ) / + ( + ( - 70 ) + + ( ( CASE - 13 WHEN - 55 THEN - 95 WHEN 47 - COUNT ( * ) THEN 84 WHEN 7 THEN NULL END ) ) ) ) * 73 + 86 * - 44 AS col1
----
NULL

query I rowsort
SELECT 13 * + 70 + - + 67 - 33 - - 97 AS col2
----
907

query I rowsort
SELECT COALESCE ( - ( - - 31 ), - + 2 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1187
SELECT - CASE + 66 WHEN - 44 THEN NULL WHEN 64 * + 38 * - 17 - + - CAST( NULL AS DECIMAL ) * - 57 / + COUNT( * ) - 90 THEN ( - COUNT( * ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT - CASE + 66 WHEN - 44 THEN NULL WHEN 64 * + 38 * - 17 - + - CAST ( NULL AS REAL ) * - 57 / + COUNT ( * ) - 90 THEN ( - COUNT ( * ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 90 * 23
----
2070

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1190
SELECT 32 DIV + ( COALESCE ( - 78, - ( + + CASE + MIN( + - 89 ) WHEN - + 58 * 41 + + COUNT( * ) * 5 THEN 90 END ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1190
SELECT 32 / + ( COALESCE ( - 78, - ( + + CASE + MIN ( + - 89 ) WHEN - + 58 * 41 + + COUNT ( * ) * 5 THEN 90 END ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1191
SELECT - 13 AS col2, 13 * + 19 * + - 89 DIV + - COALESCE ( - COUNT( * ), + ( - - 27 ) )
----
-13
-21983

skipif mysql # not compatible
query II rowsort label-1191
SELECT - 13 AS col2, 13 * + 19 * + - 89 / + - COALESCE ( - COUNT ( * ), + ( - - 27 ) )
----
-13
-21983

query I rowsort
SELECT DISTINCT - 83 - + 30 AS col0
----
-113

query I rowsort
SELECT - 77 * - + 9
----
693

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

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

query I rowsort
SELECT ALL - 50 - 60 AS col0
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1196
SELECT + 0 + + 99 DIV - 64, COUNT( * ) DIV + 76 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-1196
SELECT + 0 + + 99 / - 64, COUNT ( * ) / + 76 AS col1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT CAST( + 86 AS SIGNED ) + + - 30 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1197
SELECT CAST ( + 86 AS INTEGER ) + + - 30 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT - COUNT( * ) - - - 5 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1198
SELECT - COUNT ( * ) - - - 5 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT + COUNT( * ) + - MAX( - 42 ) - 26 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1199
SELECT + COUNT ( * ) + - MAX ( - 42 ) - 26 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1200
SELECT ALL - + 85 AS col2, 94 * + NULLIF ( - ( - ( ( 19 ) ) ), + 10 + 9 - 72 + - CAST( NULL AS SIGNED ) )
----
-85
1786

skipif mysql # not compatible
query II rowsort label-1200
SELECT ALL - + 85 AS col2, 94 * + NULLIF ( - ( - ( ( 19 ) ) ), + 10 + 9 - 72 + - CAST ( NULL AS INTEGER ) )
----
-85
1786

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1201
SELECT + NULLIF ( SUM( DISTINCT - 72 ), - 41 / ( - + CAST( NULL AS DECIMAL ) ) + 91 + - COUNT( * ) ), 32 * 64 + 60 AS col2
----
-72
2108

skipif mysql # not compatible
query II rowsort label-1201
SELECT + NULLIF ( SUM ( DISTINCT - 72 ), - 41 / ( - + CAST ( NULL AS REAL ) ) + 91 + - COUNT ( * ) ), 32 * 64 + 60 AS col2
----
-72
2108

query I rowsort
SELECT DISTINCT 12 + + + 28
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL 70 + - + NULLIF ( COALESCE ( COUNT( * ), + 87 + NULLIF ( COUNT( * ), + 79 * 42 ), + 78 ), + ( - 24 ) )
----
69

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL 70 + - + NULLIF ( COALESCE ( COUNT ( * ), + 87 + NULLIF ( COUNT ( * ), + 79 * 42 ), + 78 ), + ( - 24 ) )
----
69

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

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

query I rowsort
SELECT 62 + 45 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT DISTINCT + 80 + + - MIN( 17 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT + 80 + + - MIN ( 17 ) AS col1
----
63

query II rowsort
SELECT + 1 * 15 + 57 * + - 39 AS col2, ( + - ( 29 ) )
----
-2208
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT COUNT( DISTINCT - + ( + 33 ) ) * - 92
----
-92

skipif mysql # not compatible
query I rowsort label-1208
SELECT COUNT ( DISTINCT - + ( + 33 ) ) * - 92
----
-92

query I rowsort
SELECT 6 + 43 * 4
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT ALL 98 DIV 5
----
19

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL 98 / 5
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1211
SELECT 22 + + CAST( - 14 AS SIGNED ) DIV - + ( - 41 )
----
22

skipif mysql # not compatible
query I rowsort label-1211
SELECT 22 + + CAST ( - 14 AS INTEGER ) / - + ( - 41 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL + MAX( 4 ) * + 8
----
32

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL + MAX ( 4 ) * + 8
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1213
SELECT ALL - COUNT( * ) * + + COUNT( * ) AS col2, + 53 * + 47 AS col0
----
-1
2491

skipif mysql # not compatible
query II rowsort label-1213
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) AS col2, + 53 * + 47 AS col0
----
-1
2491

query I rowsort
SELECT + 57 + 7
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT COALESCE ( + 16, - SUM( DISTINCT - 4 ), + - 41 * - - 23 * 17 - - - 64 * - - 83 - - 62 ) + - + 47
----
-31

skipif mysql # not compatible
query I rowsort label-1215
SELECT COALESCE ( + 16, - SUM ( DISTINCT - 4 ), + - 41 * - - 23 * 17 - - - 64 * - - 83 - - 62 ) + - + 47
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1216
SELECT + MAX( DISTINCT 65 ) * + - CAST( - ( + 15 ) AS SIGNED ), 0 AS col2
----
975
0

skipif mysql # not compatible
query II rowsort label-1216
SELECT + MAX ( DISTINCT 65 ) * + - CAST ( - ( + 15 ) AS INTEGER ), 0 AS col2
----
975
0

query I rowsort
SELECT - 23 * - + 69 + + + 68 AS col1
----
1655

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT - - MAX( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-1218
SELECT - - MAX ( - 93 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1219
SELECT 79 * 83 + - ( + - 79 ) AS col1, 63 + - COUNT( * ) + - COUNT( * ) DIV - 84 DIV + 40 + - 84 - 85
----
6636
-107

skipif mysql # not compatible
query II rowsort label-1219
SELECT 79 * 83 + - ( + - 79 ) AS col1, 63 + - COUNT ( * ) + - COUNT ( * ) / - 84 / + 40 + - 84 - 85
----
6636
-107

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1221
SELECT 58 * - 48 + - CAST( NULL AS DECIMAL ) - + COUNT( * ) / - 80 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1221
SELECT 58 * - 48 + - CAST ( NULL AS REAL ) - + COUNT ( * ) / - 80 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 89 * - 6 AS col0
----
534

query I rowsort
SELECT - NULLIF ( + 2, - 16 )
----
-2

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

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

query I rowsort
SELECT DISTINCT - - ( - 44 ) + + + 67 col0
----
23

query I rowsort
SELECT ALL - ( + - ( 94 ) ) + 90
----
184

query I rowsort
SELECT - 66 - + ( 32 ) - 30 * + + 19
----
-668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1228
SELECT CASE 69 WHEN + COUNT( * ) THEN NULL ELSE COUNT( ALL - CAST( NULL AS SIGNED ) ) END DIV + - 13 + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-1228
SELECT CASE 69 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( ALL - CAST ( NULL AS INTEGER ) ) END / + - 13 + - 37
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT + COALESCE ( - 5, + 1 DIV - + 50 ) DIV + 61 + + 97 * 23 + - 9 AS col1
----
2222

skipif mysql # not compatible
query I rowsort label-1229
SELECT + COALESCE ( - 5, + 1 / - + 50 ) / + 61 + + 97 * 23 + - 9 AS col1
----
2222

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT CASE + + 34 WHEN - 89 THEN + + COUNT( * ) * + + AVG ( + 15 ) - + - 43 WHEN - 19 + - + 16 THEN NULL END * + 59 - + - 75 + ( - - 16 ) + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT CASE + + 34 WHEN - 89 THEN + + COUNT ( * ) * + + AVG ( + 15 ) - + - 43 WHEN - 19 + - + 16 THEN NULL END * + 59 - + - 75 + ( - - 16 ) + 6 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT ALL 64 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL 64 / + 56
----
1

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

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

query I rowsort
SELECT 65 + 25 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL 10 * COUNT( * ) col1
----
10

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL 10 * COUNT ( * ) col1
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT + 34 * COUNT( * ) + + 37 * + 41
----
1551

skipif mysql # not compatible
query I rowsort label-1236
SELECT + 34 * COUNT ( * ) + + 37 * + 41
----
1551

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT COUNT( + + 10 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1237
SELECT COUNT ( + + 10 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1238
SELECT + COUNT( * ) AS col2, - 25 + 57 DIV + 60 * - 20 AS col2
----
1
-25

skipif mysql # not compatible
query II rowsort label-1238
SELECT + COUNT ( * ) AS col2, - 25 + 57 / + 60 * - 20 AS col2
----
1
-25

query I rowsort
SELECT ALL 53 * - 4 - + + 62 + - - 99 * + + 76
----
7250

query II rowsort
SELECT DISTINCT + 38 AS col0, + 46 AS col0
----
38
46

query II rowsort
SELECT ALL + 51, 58 AS col0
----
51
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT + MAX( + - 80 ) * 66 AS col0
----
-5280

skipif mysql # not compatible
query I rowsort label-1242
SELECT + MAX ( + - 80 ) * 66 AS col0
----
-5280

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

query I rowsort
SELECT + + 79 + - + 42
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1245
SELECT - + CAST( - AVG ( ALL + ( 34 ) ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-1245
SELECT - + CAST ( - AVG ( ALL + ( 34 ) ) AS INTEGER )
----
34

query I rowsort
SELECT - 9 * ( + 39 ) AS col1
----
-351

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1248
SELECT DISTINCT - 55, + SUM( - 34 ) * - - CASE AVG ( - 48 ) WHEN - 26 THEN - + 56 + + 71 END AS col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-1248
SELECT DISTINCT - 55, + SUM ( - 34 ) * - - CASE AVG ( - 48 ) WHEN - 26 THEN - + 56 + + 71 END AS col2
----
-55
NULL

query I rowsort
SELECT ALL + 18 + + + NULLIF ( 77, - - 76 * - 70 + - + 98 * + + 72 * 83 + + 58 )
----
95

query I rowsort
SELECT - 71 + - 83
----
-154

query II rowsort
SELECT + 33 AS col1, 42 + + + 44 * + 9
----
33
438

query I rowsort
SELECT ALL - 49 * - 49 AS col0
----
2401

query I rowsort
SELECT DISTINCT + 90 + - 28 col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT - COALESCE ( + + 60, + 52 ) + - NULLIF ( 39, + - COUNT( * ) )
----
-99

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT - COALESCE ( + + 60, + 52 ) + - NULLIF ( 39, + - COUNT ( * ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL - ( - 49 ) + COALESCE ( + - 32, + 60 * 94, + + COUNT( * ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - ( - 49 ) + COALESCE ( + - 32, + 60 * 94, + + COUNT ( * ) ) AS col2
----
17

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1257
SELECT - ( - - 21 ) + - + ( - - 79 ) * - 62 + MAX( + 3 ) DIV - 71 AS col2
----
4877

skipif mysql # not compatible
query I rowsort label-1257
SELECT - ( - - 21 ) + - + ( - - 79 ) * - 62 + MAX ( + 3 ) / - 71 AS col2
----
4877

query I rowsort
SELECT - - 2 + - - 74 * + - ( + 56 )
----
-4142

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

skipif mysql # not compatible
query I rowsort label-1259
SELECT - + 97 + ( - - COUNT ( * ) ) + + 88 AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT ALL + - 73 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL + - 73 / + 81 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1261
SELECT - COUNT( * ) DIV + + 45 col0, NULLIF ( + - 19, + 35 + 68 ) AS col2
----
0
-19

skipif mysql # not compatible
query II rowsort label-1261
SELECT - COUNT ( * ) / + + 45 col0, NULLIF ( + - 19, + 35 + 68 ) AS col2
----
0
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL + 62 + CASE - CASE + 83 WHEN - - 32 THEN NULL ELSE + 23 END WHEN - SUM( DISTINCT + 80 ) THEN - + 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL + 62 + CASE - CASE + 83 WHEN - - 32 THEN NULL ELSE + 23 END WHEN - SUM ( DISTINCT + 80 ) THEN - + 93 ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1264
SELECT ALL NULLIF ( - - COUNT( DISTINCT 68 ), - COALESCE ( COALESCE ( 0, + MAX( ALL - 13 ) ), + + NULLIF ( 59, - - 48 ) ) * + CASE ( COUNT( * ) ) WHEN 74 THEN NULL WHEN + + 27 THEN + NULLIF ( - - 86, 51 + + + ( 10 ) ) * + MAX( 66 ) + + 52 + + - CASE - 3 WHEN + 3 THEN NULL ELSE COALESCE ( 88, + 73 ) END + NULLIF ( - CAST( NULL AS DECIMAL ) + + 88, 31 ) END + - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL NULLIF ( - - COUNT ( DISTINCT 68 ), - COALESCE ( COALESCE ( 0, + MAX ( ALL - 13 ) ), + + NULLIF ( 59, - - 48 ) ) * + CASE ( COUNT ( * ) ) WHEN 74 THEN NULL WHEN + + 27 THEN + NULLIF ( - - 86, 51 + + + ( 10 ) ) * + MAX ( 66 ) + + 52 + + - CASE - 3 WHEN + 3 THEN NULL ELSE COALESCE ( 88, + 73 ) END + NULLIF ( - CAST ( NULL AS REAL ) + + 88, 31 ) END + - 79 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1265
SELECT DISTINCT AVG ( - - 39 ) DIV - CAST( NULL AS SIGNED ) + 52 + + + COUNT( * ) * + 61 AS col1, - COUNT( * ) - - MAX( + 97 ) + + - 83 DIV SUM( + 45 )
----
NULL
95

skipif mysql # not compatible
query II rowsort label-1265
SELECT DISTINCT AVG ( - - 39 ) / - CAST ( NULL AS INTEGER ) + 52 + + + COUNT ( * ) * + 61 AS col1, - COUNT ( * ) - - MAX ( + 97 ) + + - 83 / SUM ( + 45 )
----
NULL
95

query II rowsort
SELECT ALL + 61, + 75 * + 27 col2
----
61
2025

query I rowsort
SELECT DISTINCT + 17 * + - 97
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1268
SELECT ALL COALESCE ( + 93, + 94 + + ( + 1 ), + 61 ) / - COUNT( * ) * - 29 * + CAST( NULL AS SIGNED ) * + 40 - ( ( + - COUNT( * ) ) ) + + COUNT( * ) - - COUNT( * ) + - COUNT( * ) AS col1, 96 - - 77
----
NULL
173

skipif mysql # not compatible
query II rowsort label-1268
SELECT ALL COALESCE ( + 93, + 94 + + ( + 1 ), + 61 ) / - COUNT ( * ) * - 29 * + CAST ( NULL AS INTEGER ) * + 40 - ( ( + - COUNT ( * ) ) ) + + COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) AS col1, 96 - - 77
----
NULL
173

query II rowsort
SELECT - 30 * + 0 + 92 + + 17 - + 57 + - + 50 - - 23 AS col2, + 17 AS col2
----
25
17

query I rowsort
SELECT + 69 * + 23 AS col2
----
1587

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1271
SELECT 63 DIV - 51 + + - 90 * + - CAST( 75 AS SIGNED )
----
6749

skipif mysql # not compatible
query I rowsort label-1271
SELECT 63 / - 51 + + - 90 * + - CAST ( 75 AS INTEGER )
----
6749

query II rowsort
SELECT ( - - 55 ), 44 AS col2
----
55
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT + 9 * - + SUM( ALL - 8 )
----
72

skipif mysql # not compatible
query I rowsort label-1274
SELECT + 9 * - + SUM ( ALL - 8 )
----
72

query II rowsort
SELECT ALL + 96 AS col0, 61
----
96
61

query I rowsort
SELECT 91 * - + 36 * + 2 * - 92 + 23
----
602807

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT ALL + 67, COUNT( * ) col2
----
67
1

skipif mysql # not compatible
query II rowsort label-1277
SELECT ALL + 67, COUNT ( * ) col2
----
67
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1278
SELECT - 96 * + - COUNT( * ) AS col0, + 91 * - 22 * MIN( ALL + 65 )
----
96
-130130

skipif mysql # not compatible
query II rowsort label-1278
SELECT - 96 * + - COUNT ( * ) AS col0, + 91 * - 22 * MIN ( ALL + 65 )
----
96
-130130

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT DISTINCT 45 * + - COUNT( ALL - - 22 ) + + + 88 AS col2, 2 * 90 * 46 * - 58
----
43
-480240

skipif mysql # not compatible
query II rowsort label-1279
SELECT DISTINCT 45 * + - COUNT ( ALL - - 22 ) + + + 88 AS col2, 2 * 90 * 46 * - 58
----
43
-480240

query I rowsort
SELECT + 88 + + 77 - + 22 * 86
----
-1727

query II rowsort
SELECT ALL + - 72, 71 AS col1
----
-72
71

query I rowsort
SELECT DISTINCT 11 * 66 * 84 * - + 61 * ( 24 ) AS col2
----
-89280576

query II rowsort
SELECT 41 AS col1, 34 AS col0
----
41
34

query II rowsort
SELECT - - 42 AS col1, 54
----
42
54

query II rowsort
SELECT ALL 0 AS col0, 40 + ( + 39 ) AS col1
----
0
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL - COALESCE ( ( - - 60 ), - 91, + 32 ) * + 78 + + + NULLIF ( + 19, + 19 ) / - 21 / + 5 + + MAX( 32 ) + + - 79 * + - 70 / + + 80 * 53 - - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL - COALESCE ( ( - - 60 ), - 91, + 32 ) * + 78 + + + NULLIF ( + 19, + 19 ) / - 21 / + 5 + + MAX ( 32 ) + + - 79 * + - 70 / + + 80 * 53 - - 98
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + - 6 * 36 * - + COUNT( * ) AS col2
----
216

skipif mysql # not compatible
query I rowsort label-1288
SELECT + - 6 * 36 * - + COUNT ( * ) AS col2
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT - + 1 * + 24 DIV - + ( - 43 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1289
SELECT - + 1 * + 24 / - + ( - 43 ) col2
----
0

query I rowsort
SELECT + + NULLIF ( - 88, - - 64 ) * - - 33 * + 69 AS col1
----
-200376

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT DISTINCT + - 70 + CASE + COALESCE ( - COALESCE ( 46, - 30 ), - MIN( ALL - - 15 ) * + 89 * + + COUNT( DISTINCT 89 ), + 77 ) WHEN + 79 + - - 4 THEN + - 28 WHEN 90 THEN - - 63 END * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT + - 70 + CASE + COALESCE ( - COALESCE ( 46, - 30 ), - MIN ( ALL - - 15 ) * + 89 * + + COUNT ( DISTINCT 89 ), + 77 ) WHEN + 79 + - - 4 THEN + - 28 WHEN 90 THEN - - 63 END * 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1292
SELECT - COALESCE ( ( + MAX( ALL + 32 ) ), - - 61, - - 87 * - COALESCE ( + - NULLIF ( 19, 49 ), - 95, + 96 + COUNT( * ) * 97 * - - CAST( NULL AS SIGNED ) ) + + 51 - - - 27 ) * - 86 col0, 72 AS col1
----
2752
72

skipif mysql # not compatible
query II rowsort label-1292
SELECT - COALESCE ( ( + MAX ( ALL + 32 ) ), - - 61, - - 87 * - COALESCE ( + - NULLIF ( 19, 49 ), - 95, + 96 + COUNT ( * ) * 97 * - - CAST ( NULL AS INTEGER ) ) + + 51 - - - 27 ) * - 86 col0, 72 AS col1
----
2752
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT 46 - - 77 * + + ( 53 ) - + MIN( + + 76 )
----
4051

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT 46 - - 77 * + + ( 53 ) - + MIN ( + + 76 )
----
4051

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL + COUNT( * ) - + - COALESCE ( 47, - + 43 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + COUNT ( * ) - + - COALESCE ( 47, - + 43 ) AS col1
----
48

query I rowsort
SELECT + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 56 END * 82 + 15
----
4607

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT SUM( 71 ) + - 49
----
22

skipif mysql # not compatible
query I rowsort label-1296
SELECT SUM ( 71 ) + - 49
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT COUNT( * ) * 50 AS col1, - 76 AS col0
----
50
-76

skipif mysql # not compatible
query II rowsort label-1297
SELECT COUNT ( * ) * 50 AS col1, - 76 AS col0
----
50
-76

query I rowsort
SELECT 0 + - 73 + 13 AS col0
----
-60

query I rowsort
SELECT ALL - 32 - + 95 AS col2
----
-127

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT DISTINCT - SUM( - + 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT - SUM ( - + 73 ) AS col1
----
73

query I rowsort
SELECT DISTINCT - 87 * - - 65 AS col2
----
-5655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1303
SELECT 5 DIV + COUNT( * ) + 22 * - 89
----
-1953

skipif mysql # not compatible
query I rowsort label-1303
SELECT 5 / + COUNT ( * ) + 22 * - 89
----
-1953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1304
SELECT ALL - CASE WHEN NOT COALESCE ( 33, 49, - 81, - 10 ) NOT IN ( + 94, - AVG ( DISTINCT 78 ) + - COUNT( * ) ) THEN NULL ELSE + 12 DIV - - 20 END * + 63 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL - CASE WHEN NOT COALESCE ( 33, 49, - 81, - 10 ) NOT IN ( + 94, - AVG ( DISTINCT 78 ) + - COUNT ( * ) ) THEN NULL ELSE + 12 / - - 20 END * + 63 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1305
SELECT - SUM( + + 23 ) * 42 * - - 51 + + 51 + - COUNT( * ) + + 86 DIV - 44 * COUNT( * )
----
-49217

skipif mysql # not compatible
query I rowsort label-1305
SELECT - SUM ( + + 23 ) * 42 * - - 51 + + 51 + - COUNT ( * ) + + 86 / - 44 * COUNT ( * )
----
-49217

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT + COUNT( * ) * + NULLIF ( 25, - - COALESCE ( 93, + 72 / 40 ) / - 79 + 13 + - MAX( + 58 ) * 96 ) + 76 + + COALESCE ( + - 57, - 81 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + COUNT ( * ) * + NULLIF ( 25, - - COALESCE ( 93, + 72 / 40 ) / - 79 + 13 + - MAX ( + 58 ) * 96 ) + 76 + + COALESCE ( + - 57, - 81 ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1308
SELECT DISTINCT - + CAST( + - 51 AS SIGNED ), 59 * + 62 - + 73 AS col1
----
51
3585

skipif mysql # not compatible
query II rowsort label-1308
SELECT DISTINCT - + CAST ( + - 51 AS INTEGER ), 59 * + 62 - + 73 AS col1
----
51
3585

query I rowsort
SELECT DISTINCT - 23 + 40 + + 71 + - 32
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1310
SELECT DISTINCT - + SUM( - 76 ) AS col1, - 53
----
76
-53

skipif mysql # not compatible
query II rowsort label-1310
SELECT DISTINCT - + SUM ( - 76 ) AS col1, - 53
----
76
-53

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

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL + CAST ( NULL AS INTEGER ) + - 0 - COUNT ( * ) - + 74 * + + 75
----
NULL

query I rowsort
SELECT + 66 * 76 AS col2
----
5016

query I rowsort
SELECT - - 97 * - 95 + - 85
----
-9300

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

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

query II rowsort
SELECT - - ( - + 55 ) AS col2, - 85 AS col2
----
-55
-85

query I rowsort
SELECT - 19 + + - 2 col0
----
-21

query II rowsort
SELECT 64 - - - 57 col0, 63 * - + 87
----
7
-5481

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

query I rowsort
SELECT ALL 63 * + 80 AS col1
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - COUNT( * ) + - + 40 * 70 + - 15
----
-2816

skipif mysql # not compatible
query I rowsort label-1320
SELECT - COUNT ( * ) + - + 40 * 70 + - 15
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT - 2 * + NULLIF ( + 88, - COUNT( * ) / NULLIF ( - - 78, - + 9 * + 36 + - + 45 * + - SUM( DISTINCT - 14 ) ) + - COUNT( * ) - - 80 * - ( 62 ) / + 20 * - + 87 / + 70 + CASE 27 WHEN + - 28 * - 81 * - 7 + + + 86 * - 32 THEN NULL ELSE - - 3 END )
----
-176

skipif mysql # not compatible
query I rowsort label-1321
SELECT - 2 * + NULLIF ( + 88, - COUNT ( * ) / NULLIF ( - - 78, - + 9 * + 36 + - + 45 * + - SUM ( DISTINCT - 14 ) ) + - COUNT ( * ) - - 80 * - ( 62 ) / + 20 * - + 87 / + 70 + CASE 27 WHEN + - 28 * - 81 * - 7 + + + 86 * - 32 THEN NULL ELSE - - 3 END )
----
-176

query I rowsort
SELECT DISTINCT - - 39 * - 94
----
-3666

query I rowsort
SELECT ALL 86 - + 61 * - - 79 AS col0
----
-4733

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

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

query II rowsort
SELECT DISTINCT 34 - + - 13, 75 AS col0
----
47
75

query I rowsort
SELECT ALL 5 - - 22 * + 73 AS col2
----
1611

query II rowsort
SELECT 47 AS col0, 39
----
47
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1328
SELECT 71 DIV + NULLIF ( - 48, + 7 * - 24 - - - 98 + + 62 + + COUNT( * ) + - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-1328
SELECT 71 / + NULLIF ( - 48, + 7 * - 24 - - - 98 + + 62 + + COUNT ( * ) + - 51 )
----
-1

query I rowsort
SELECT 7 * - 6 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT 19 * 81 * 22 * - COUNT( * )
----
-33858

skipif mysql # not compatible
query I rowsort label-1330
SELECT 19 * 81 * 22 * - COUNT ( * )
----
-33858

query I rowsort
SELECT 26 + + 32 AS col0
----
58

query I rowsort
SELECT 96 * - + 61 * 85
----
-497760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1333
SELECT DISTINCT 63 DIV + - ( + ( - COALESCE ( CAST( - + 25 AS SIGNED ), 37 + + - COUNT( * ) ) ) ), + ( 19 ) * + ( + - 98 ) AS col2
----
-2
-1862

skipif mysql # not compatible
query II rowsort label-1333
SELECT DISTINCT 63 / + - ( + ( - COALESCE ( CAST ( - + 25 AS INTEGER ), 37 + + - COUNT ( * ) ) ) ), + ( 19 ) * + ( + - 98 ) AS col2
----
-2
-1862

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

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL + 0 * MIN ( - ( + 95 ) ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1335
SELECT CAST ( NULL AS INTEGER ) * + 20 / - COUNT ( DISTINCT - 73 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT COUNT( * ) * - 73 * - 60
----
4380

skipif mysql # not compatible
query I rowsort label-1336
SELECT COUNT ( * ) * - 73 * - 60
----
4380

query I rowsort
SELECT ALL 98 * - 91
----
-8918

query II rowsort
SELECT ALL 42 AS col2, 23 + 87
----
42
110

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

query I rowsort
SELECT 25 + + + 19 col1
----
44

query II rowsort
SELECT ( + 91 ) * 96 AS col0, + 34
----
8736
34

query I rowsort
SELECT 31 * 88 AS col0
----
2728

query II rowsort
SELECT 73 * - + 71 + - 29 AS col1, + 76 AS col1
----
-5212
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL MAX( - 1 ) + + ( + + COUNT( DISTINCT + 3 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL MAX ( - 1 ) + + ( + + COUNT ( DISTINCT + 3 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT SUM( - + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-1345
SELECT SUM ( - + 70 )
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL + ( - 54 ) + - CASE - SUM( - - 84 ) WHEN + 92 / - 89 THEN + 74 + + + 60 WHEN - 22 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + ( - 54 ) + - CASE - SUM ( - - 84 ) WHEN + 92 / - 89 THEN + 74 + + + 60 WHEN - 22 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT DISTINCT + 20 + + + 49 + 26 + - 91 * + + 26 + + - NULLIF ( + 95, - 55 + - NULLIF ( - - COALESCE ( + NULLIF ( 86, - COUNT( ALL - 89 ) / - CASE - + 65 WHEN - + 94 THEN NULL WHEN + ( + 4 ) * + 61 + + 4 THEN - - 53 ELSE NULL END ), + 59 * ( 94 ) / + 64 * - CAST( NULL AS SIGNED ) - + - 83 ), - 76 * 59 ) * 83 ) AS col0
----
-2366

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT + 20 + + + 49 + 26 + - 91 * + + 26 + + - NULLIF ( + 95, - 55 + - NULLIF ( - - COALESCE ( + NULLIF ( 86, - COUNT ( ALL - 89 ) / - CASE - + 65 WHEN - + 94 THEN NULL WHEN + ( + 4 ) * + 61 + + 4 THEN - - 53 ELSE NULL END ), + 59 * ( 94 ) / + 64 * - CAST ( NULL AS INTEGER ) - + - 83 ), - 76 * 59 ) * 83 ) AS col0
----
-2366

query I rowsort
SELECT ALL - + 41 * - + 2 col2
----
82

query I rowsort
SELECT DISTINCT - + ( - - 69 ) AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT DISTINCT - 28 * - CAST( NULL AS SIGNED ) + ( - 13 ) + + CAST( NULL AS SIGNED ) - + 4 * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT - 28 * - CAST ( NULL AS INTEGER ) + ( - 13 ) + + CAST ( NULL AS INTEGER ) - + 4 * 20 AS col2
----
NULL

query I rowsort
SELECT ALL + 70 * - 71
----
-4970

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

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

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

query I rowsort
SELECT 48 * - - 92
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT DISTINCT + 37 + + 72 * - CASE 59 WHEN - - COUNT( * ) THEN + 13 ELSE 96 - - CASE - COUNT( * ) WHEN - COUNT( * ) THEN - 82 WHEN + 94 * + 92 * + 5 THEN + - 83 + - COALESCE ( + - ( + 73 ), - 70 * 14 + + 89 - + 5 ) END END * - + 87 AS col1
----
87733

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT + 37 + + 72 * - CASE 59 WHEN - - COUNT ( * ) THEN + 13 ELSE 96 - - CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN - 82 WHEN + 94 * + 92 * + 5 THEN + - 83 + - COALESCE ( + - ( + 73 ), - 70 * 14 + + 89 - + 5 ) END END * - + 87 AS col1
----
87733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1357
SELECT DISTINCT - 79 - + + 56 + - COUNT( * ) + 66 * - 67 * - 90 DIV - COUNT( DISTINCT + + COALESCE ( CAST( NULL AS SIGNED ), - 69 ) )
----
-398116

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT - 79 - + + 56 + - COUNT ( * ) + 66 * - 67 * - 90 / - COUNT ( DISTINCT + + COALESCE ( CAST ( NULL AS INTEGER ), - 69 ) )
----
-398116

query I rowsort
SELECT DISTINCT - - ( 44 ) * - 63 * + + ( + 57 )
----
-158004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1359
SELECT ALL + - 37 * + - COALESCE ( - - ( - + ( - 18 ) ), - 1, + COALESCE ( 33, + 11, 46 * - + COALESCE ( + 20, - 45 + 46 DIV - 62 * + 37 ) + - COUNT( * ) - - COALESCE ( - - 22, + + CASE - 6 WHEN + 39 * - 73 + + - SUM( DISTINCT + 89 ) THEN + CAST( NULL AS SIGNED ) WHEN 49 THEN - ( 53 ) END ) + + COUNT( * ) * - NULLIF ( - 99 + - COALESCE ( + 63, + 56 * - 57 ), + 8 + + ( 98 - + 84 * - 92 ) ) * + 2 DIV - 72 ) + + 9 ) col0
----
666

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + - 37 * + - COALESCE ( - - ( - + ( - 18 ) ), - 1, + COALESCE ( 33, + 11, 46 * - + COALESCE ( + 20, - 45 + 46 / - 62 * + 37 ) + - COUNT ( * ) - - COALESCE ( - - 22, + + CASE - 6 WHEN + 39 * - 73 + + - SUM ( DISTINCT + 89 ) THEN + CAST ( NULL AS INTEGER ) WHEN 49 THEN - ( 53 ) END ) + + COUNT ( * ) * - NULLIF ( - 99 + - COALESCE ( + 63, + 56 * - 57 ), + 8 + + ( 98 - + 84 * - 92 ) ) * + 2 / - 72 ) + + 9 ) col0
----
666

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

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

query I rowsort
SELECT 28 * 23
----
644

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1362
SELECT ALL 19 AS col1, ( 1 ) + COUNT( * ) DIV + MAX( DISTINCT 56 ) * - - COUNT( * )
----
19
1

skipif mysql # not compatible
query II rowsort label-1362
SELECT ALL 19 AS col1, ( 1 ) + COUNT ( * ) / + MAX ( DISTINCT 56 ) * - - COUNT ( * )
----
19
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT ALL - CAST( - - CASE - + 93 WHEN + ( ( + + 98 ) ) THEN 81 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL - CAST ( - - CASE - + 93 WHEN + ( ( + + 98 ) ) THEN 81 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 45 WHEN - 69 THEN NULL WHEN - - 84 * 16 * + - 56 + + 4 THEN - 52 END
----
NULL

query II rowsort
SELECT 6, + 89 AS col0
----
6
89

query I rowsort
SELECT - 46 * - + ( 65 ) AS col2
----
2990

query I rowsort
SELECT + 70 * - 59
----
-4130

query I rowsort
SELECT DISTINCT 93 * - - 56 * 84
----
437472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT DISTINCT CASE - + CAST( NULL AS SIGNED ) WHEN + - 13 THEN NULL ELSE 46 + 79 END
----
125

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT CASE - + CAST ( NULL AS INTEGER ) WHEN + - 13 THEN NULL ELSE 46 + 79 END
----
125

query II rowsort
SELECT ALL - 4 * - 8, 82 AS col1
----
32
82

query I rowsort
SELECT DISTINCT - 86 * ( 21 )
----
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL CASE + 53 WHEN + COUNT( * ) THEN + + 32 WHEN - 75 THEN NULL WHEN 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL CASE + 53 WHEN + COUNT ( * ) THEN + + 32 WHEN - 75 THEN NULL WHEN 63 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL MIN( ALL 28 ) + - - 12
----
40

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL MIN ( ALL 28 ) + - - 12
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT + 4 DIV - - 29
----
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT + 4 / - - 29
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1376
SELECT - CASE + + COUNT( * ) WHEN + 49 THEN NULL ELSE - COUNT( * ) END AS col0, 45 * + 77
----
1
3465

skipif mysql # not compatible
query II rowsort label-1376
SELECT - CASE + + COUNT ( * ) WHEN + 49 THEN NULL ELSE - COUNT ( * ) END AS col0, 45 * + 77
----
1
3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1377
SELECT ALL CAST( + + ( + 89 ) AS DECIMAL ) + AVG ( ALL + CAST( + - CAST( + - 27 AS SIGNED ) AS SIGNED ) ) + - MAX( 57 ) + - 72 + + 0 + - NULLIF ( + + 94, + - 68 ) * + CAST( NULL AS SIGNED ) + + - COUNT( * ) + - - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL CAST ( + + ( + 89 ) AS REAL ) + AVG ( ALL + CAST ( + - CAST ( + - 27 AS INTEGER ) AS INTEGER ) ) + - MAX ( 57 ) + - 72 + + 0 + - NULLIF ( + + 94, + - 68 ) * + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + 50 + + + 3
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT ALL - 84 * - 13 + 61 + + COUNT( * )
----
1154

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL - 84 * - 13 + 61 + + COUNT ( * )
----
1154

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT - - COUNT( * ) * CASE WHEN NOT NULL IS NULL THEN COUNT( + 39 ) END / - - 46 + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT - - COUNT ( * ) * CASE WHEN NOT NULL IS NULL THEN COUNT ( + 39 ) END / - - 46 + - 88 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1381
SELECT + CAST( NULL AS SIGNED ) * - NULLIF ( + + 6, + NULLIF ( - COUNT( * ), 52 ) * CAST( + + COUNT( ALL + - CAST( NULL AS DECIMAL ) ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT + CAST ( NULL AS INTEGER ) * - NULLIF ( + + 6, + NULLIF ( - COUNT ( * ), 52 ) * CAST ( + + COUNT ( ALL + - CAST ( NULL AS REAL ) ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - 75 * + 79 + 99 + 91
----
-5735

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + + MIN( - - 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1383
SELECT + + MIN ( - - 18 ) AS col2
----
18

query I rowsort
SELECT - + 46 * - ( + - ( 47 ) ) + - 43 * - + 13
----
-1603

query I rowsort
SELECT DISTINCT - 60 * - + 42 + + 35 + + 23 - + + 25
----
2553

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT + COALESCE ( 83, + 44 * 4 DIV - 41 )
----
83

skipif mysql # not compatible
query I rowsort label-1386
SELECT + COALESCE ( 83, + 44 * 4 / - 41 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1387
SELECT ALL CAST( NULL AS SIGNED ) * - + 46 + + - 81 - + + COALESCE ( 80, 33, - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL CAST ( NULL AS INTEGER ) * - + 46 + + - 81 - + + COALESCE ( 80, 33, - 64 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT DISTINCT - + 64 * + COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT - + 64 * + COUNT ( * ) AS col1
----
-64

query II rowsort
SELECT DISTINCT + ( + 82 ) AS col0, + 73 AS col1
----
82
73

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT ALL 11 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 11 / - 25
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( + 75, + + 73 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT 92 * COUNT( - + 31 ) + - - ( 42 ) - - + NULLIF ( + COALESCE ( COUNT( * ), + + 19, - 32 ), - 99 + + 10 ) + 81 * + COUNT( - + 52 ) AS col1
----
216

skipif mysql # not compatible
query I rowsort label-1393
SELECT 92 * COUNT ( - + 31 ) + - - ( 42 ) - - + NULLIF ( + COALESCE ( COUNT ( * ), + + 19, - 32 ), - 99 + + 10 ) + 81 * + COUNT ( - + 52 ) AS col1
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT + 8 DIV 32 * 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT + 8 / 32 * 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL + - 22 * + MAX( DISTINCT + + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + - 22 * + MAX ( DISTINCT + + 0 ) AS col0
----
0

query I rowsort
SELECT - CASE + + 94 WHEN - 23 THEN - CASE 64 WHEN - 83 THEN NULL WHEN 67 THEN + + 71 END END + - 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1397
SELECT - ( 82 ) * ( + 39 ) DIV + + 37 + + + COUNT( - + 0 ) DIV + 66 + + 67 + - + 74 - + 81 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-1397
SELECT - ( 82 ) * ( + 39 ) / + + 37 + + + COUNT ( - + 0 ) / + 66 + + 67 + - + 74 - + 81 AS col2
----
-174

query I rowsort
SELECT - 46 - + 66 AS col0
----
-112

query I rowsort
SELECT ALL ( 43 ) AS col2
----
43

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

query I rowsort
SELECT - 17 + - + 64
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-1402
SELECT ALL + 72 * + + NULLIF ( - 45, - ( + - 32 ) ) col1, COUNT( * )
----
-3240
1

skipif mysql # not compatible
query II rowsort label-1402
SELECT ALL + 72 * + + NULLIF ( - 45, - ( + - 32 ) ) col1, COUNT ( * )
----
-3240
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT - COUNT( * ) * + SUM( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT - COUNT ( * ) * + SUM ( - 59 )
----
59

query I rowsort
SELECT ALL - 73 + + 61
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1405
SELECT - 10 + - 34 + + + 85 + + NULLIF ( - + 36, - 47 * MIN( DISTINCT - 93 ) + + + 2 / + + 59 ), + 4 AS col1
----
5
4

skipif mysql # not compatible
query II rowsort label-1405
SELECT - 10 + - 34 + + + 85 + + NULLIF ( - + 36, - 47 * MIN ( DISTINCT - 93 ) + + + 2 / + + 59 ), + 4 AS col1
----
5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT DISTINCT ( + MIN( 71 ) ) col1
----
71

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT ( + MIN ( 71 ) ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT - MIN( 80 ) * - 47 * 53 AS col1
----
199280

skipif mysql # not compatible
query I rowsort label-1407
SELECT - MIN ( 80 ) * - 47 * 53 AS col1
----
199280

query I rowsort
SELECT - 63 + - 77 AS col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT + COUNT( * ) + MAX( - ( + 11 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-1409
SELECT + COUNT ( * ) + MAX ( - ( + 11 ) )
----
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1411
SELECT DISTINCT - 55 + CAST( NULL AS SIGNED ) - 27 AS col0, + 7
----
NULL
7

skipif mysql # not compatible
query II rowsort label-1411
SELECT DISTINCT - 55 + CAST ( NULL AS INTEGER ) - 27 AS col0, + 7
----
NULL
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - 27 * 45 * - COUNT( * )
----
1215

skipif mysql # not compatible
query I rowsort label-1413
SELECT - 27 * 45 * - COUNT ( * )
----
1215

query I rowsort
SELECT ALL - 10 + + 33 * + CASE - 99 WHEN 83 THEN + 38 - - 84 / 54 * + 74 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 91 + + ( 28 ) AS col1, + 85
----
119
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT COUNT( ALL - 46 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1416
SELECT COUNT ( ALL - 46 ) AS col2
----
1

query I rowsort
SELECT - - ( - 9 ) * 30 AS col2
----
-270

query I rowsort
SELECT + - 34 * - - 34 * - COALESCE ( 47, - + 6 )
----
54332

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT DISTINCT 11 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT 11 / + 45
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1420
SELECT ( + 49 ) DIV + 41 + + 14 + 70 AS col1, - 82
----
85
-82

skipif mysql # not compatible
query II rowsort label-1420
SELECT ( + 49 ) / + 41 + + 14 + 70 AS col1, - 82
----
85
-82

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

skipif mysql # not compatible
query II rowsort label-1421
SELECT - COUNT ( * ) col2, + 37
----
-1
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT + 99 * + + 18 DIV - NULLIF ( - 6, 88 ) col1
----
297

skipif mysql # not compatible
query I rowsort label-1423
SELECT + 99 * + + 18 / - NULLIF ( - 6, 88 ) col1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL + + CASE + - 1 WHEN 83 THEN - 55 * + MIN( DISTINCT 38 ) ELSE NULL END / + - 59 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL + + CASE + - 1 WHEN 83 THEN - 55 * + MIN ( DISTINCT 38 ) ELSE NULL END / + - 59 + COUNT ( * )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT + 53 * 95 * + 87 + - 78 DIV + - 43 AS col0
----
438046

skipif mysql # not compatible
query I rowsort label-1426
SELECT + 53 * 95 * + 87 + - 78 / + - 43 AS col0
----
438046

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT DISTINCT + 60 * 20 DIV 65 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT + 60 * 20 / 65 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT MIN( + 66 ) + - NULLIF ( 9, - - 8 - - 66 ) + + - 23 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1428
SELECT MIN ( + 66 ) + - NULLIF ( 9, - - 8 - - 66 ) + + - 23 AS col1
----
34

query I rowsort
SELECT - 71 + 40 AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1430
SELECT CAST( + + 90 AS SIGNED ) * + + 70 AS col0, + COUNT( * ) + - 4
----
6300
-3

skipif mysql # not compatible
query II rowsort label-1430
SELECT CAST ( + + 90 AS INTEGER ) * + + 70 AS col0, + COUNT ( * ) + - 4
----
6300
-3

query I rowsort
SELECT ALL 47 * + 19
----
893

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT DISTINCT + CASE 6 WHEN - 57 THEN + + 87 ELSE COUNT( * ) END + - COUNT( * ) - - 22 + 11 col1
----
33

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT + CASE 6 WHEN - 57 THEN + + 87 ELSE COUNT ( * ) END + - COUNT ( * ) - - 22 + 11 col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1433
SELECT ( - - 19 ) DIV - 49 * + 97 * - + ( 86 ) AS col2, + 23 DIV 26 + - 13 + + COALESCE ( - 98, - 9, - COUNT( * ) ) col0
----
0
-111

skipif mysql # not compatible
query II rowsort label-1433
SELECT ( - - 19 ) / - 49 * + 97 * - + ( 86 ) AS col2, + 23 / 26 + - 13 + + COALESCE ( - 98, - 9, - COUNT ( * ) ) col0
----
0
-111

query II rowsort
SELECT - 23, + 26 AS col0
----
-23
26

query I rowsort
SELECT DISTINCT COALESCE ( + ( + 99 ), + ( - 44 ), - 70 ) + 83 + + - 28
----
154

query II rowsort
SELECT 79, + 79
----
79
79

query I rowsort
SELECT DISTINCT 10 + - 29
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT ALL + COALESCE ( - 51, + NULLIF ( - COUNT( * ), - - 76 * + ( - + 46 ) ) * - 4 + CAST( NULL AS SIGNED ) + + - 7 ) + ( - + 96 ) - + - 32 + + 93 + + 31 * + + 76
----
2334

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + COALESCE ( - 51, + NULLIF ( - COUNT ( * ), - - 76 * + ( - + 46 ) ) * - 4 + CAST ( NULL AS INTEGER ) + + - 7 ) + ( - + 96 ) - + - 32 + + 93 + + 31 * + + 76
----
2334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1439
SELECT CAST( NULL AS SIGNED ) - - + ( - 19 ) + - + 61 + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT CAST ( NULL AS INTEGER ) - - + ( - 19 ) + - + 61 + + 74
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT 25 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-1441
SELECT 25 / 60
----
0

query II rowsort
SELECT - 94, 88 + 20 AS col1
----
-94
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT + 97 + + COUNT( * ) + + 29 * + - MAX( - 86 ) + 12
----
2604

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT + 97 + + COUNT ( * ) + + 29 * + - MAX ( - 86 ) + 12
----
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT ALL + 69 * - - 38 DIV 62 DIV ( 52 )
----
0

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL + 69 * - - 38 / 62 / ( 52 )
----
0

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

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

query II rowsort
SELECT ALL 55 AS col0, + 34 + 39
----
55
73

query I rowsort
SELECT 60 * + - 26 AS col1
----
-1560

query II rowsort
SELECT 3 AS col0, 2 * + 41 * 83
----
3
6806

query II rowsort
SELECT DISTINCT - 5 AS col1, ( + ( + 92 ) )
----
-5
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL - - ( - 82 ) - + CASE ( ( + NULLIF ( + 79, - + 20 - - 17 ) ) ) WHEN + - ( + 94 ) THEN - - 73 + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - - ( - 82 ) - + CASE ( ( + NULLIF ( + 79, - + 20 - - 17 ) ) ) WHEN + - ( + 94 ) THEN - - 73 + COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 54 * - 96 * + 71
----
-368064

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT ALL + + 22 * 89 * + + COUNT( * ) AS col0
----
1958

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL + + 22 * 89 * + + COUNT ( * ) AS col0
----
1958

query I rowsort
SELECT ALL - 13 - - + 34 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1454
SELECT + 26 AS col0, MIN( + CAST( NULL AS SIGNED ) )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-1454
SELECT + 26 AS col0, MIN ( + CAST ( NULL AS INTEGER ) )
----
26
NULL

query II rowsort
SELECT ALL + - 55 * + + 28 * - ( + + 80 ) AS col0, + 62
----
123200
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) * 97 / + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 97 / + 98 AS col1
----
NULL

query I rowsort
SELECT ALL + + 30 * + 46 * 14
----
19320

query I rowsort
SELECT 53 * - 76 * + COALESCE ( - - 72, + 43 ) * - 78 + + 61 + - 73
----
22621236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1459
SELECT CAST( NULL AS SIGNED ) * + COALESCE ( - - CAST( - COUNT( * ) AS SIGNED ), - MAX( - 98 ) + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT CAST ( NULL AS INTEGER ) * + COALESCE ( - - CAST ( - COUNT ( * ) AS INTEGER ), - MAX ( - 98 ) + 71 )
----
NULL

query II rowsort
SELECT ALL - - 3 AS col0, NULLIF ( - 53, - + 62 ) * + 1 * - 20 col2
----
3
1060

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT ALL 30 DIV - NULLIF ( ( - 37 ), 8 - + 85 + + 74 * - 38 ) + + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL 30 / - NULLIF ( ( - 37 ), 8 - + 85 + + 74 * - 38 ) + + 12 AS col0
----
12

query I rowsort
SELECT 36 * - + 8 AS col0
----
-288

query II rowsort
SELECT ALL - 95 AS col1, - 92 + 30 col1
----
-95
-62

query II rowsort
SELECT 82 * 92, + 60 * + 68 AS col1
----
7544
4080

query I rowsort
SELECT ALL 88 * - 75 * ( 88 ) AS col2
----
-580800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1467
SELECT ALL 99 + NULLIF ( 45, 92 * 92 - + NULLIF ( 33, - 70 ) + - 64 * 38 * + - 78 * 47 ) - + + 99 + - NULLIF ( + 47, + 12 ) DIV + - COUNT( * ) AS col0, 87 col2
----
92
87

skipif mysql # not compatible
query II rowsort label-1467
SELECT ALL 99 + NULLIF ( 45, 92 * 92 - + NULLIF ( 33, - 70 ) + - 64 * 38 * + - 78 * 47 ) - + + 99 + - NULLIF ( + 47, + 12 ) / + - COUNT ( * ) AS col0, 87 col2
----
92
87

query I rowsort
SELECT 16 - + + 78
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1469
SELECT DISTINCT 34 + 45 AS col0, 83 - - CASE - + CASE 56 WHEN - 87 THEN NULL WHEN - + COUNT( * ) + + - 15 THEN + 88 ELSE NULL END WHEN COUNT( * ) THEN + - 5 - + 58 END
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1469
SELECT DISTINCT 34 + 45 AS col0, 83 - - CASE - + CASE 56 WHEN - 87 THEN NULL WHEN - + COUNT ( * ) + + - 15 THEN + 88 ELSE NULL END WHEN COUNT ( * ) THEN + - 5 - + 58 END
----
79
NULL

query I rowsort
SELECT ALL 69 + + - 59 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT 73 * - CASE + 33 WHEN 11 - - MAX( ALL 53 ) + - 14 THEN + SUM( + 4 ) * ( - + COUNT( ALL 62 ) ) END + - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT 73 * - CASE + 33 WHEN 11 - - MAX ( ALL 53 ) + - 14 THEN + SUM ( + 4 ) * ( - + COUNT ( ALL 62 ) ) END + - 51 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT - MIN ( - 75 ) col2
----
75

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

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

query I rowsort
SELECT ALL 79 - - 15 + 38
----
132

query I rowsort
SELECT 66 * - + 7 AS col1
----
-462

query I rowsort
SELECT 69 + 1 * + + 4
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1477
SELECT ( 5 ) + + COALESCE ( 74, + + 76 * AVG ( DISTINCT - - 28 ) * - - 83 * - - COUNT( + + 76 ) DIV 39 DIV + 5 * + + 59 - 8 + + 3 * - ( CAST( NULL AS SIGNED ) ) * - 95 - + 8 - + 11 + 23 * - COUNT( * ) * - 16 * - ( - MIN( DISTINCT COALESCE ( + 91, 9 ) ) ) - 59 + - 76 DIV + 63 DIV - 62 DIV 47 ) * ( - COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-1477
SELECT ( 5 ) + + COALESCE ( 74, + + 76 * AVG ( DISTINCT - - 28 ) * - - 83 * - - COUNT ( + + 76 ) / 39 / + 5 * + + 59 - 8 + + 3 * - ( CAST ( NULL AS INTEGER ) ) * - 95 - + 8 - + 11 + 23 * - COUNT ( * ) * - 16 * - ( - MIN ( DISTINCT COALESCE ( + 91, 9 ) ) ) - 59 + - 76 / + 63 / - 62 / 47 ) * ( - COUNT ( * ) )
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-1478
SELECT 23 DIV 7 AS col1, 1 AS col0
----
3
1

skipif mysql # not compatible
query II rowsort label-1478
SELECT 23 / 7 AS col1, 1 AS col0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL - COALESCE ( - - COUNT( * ), - COUNT( * ) ) * - 3
----
3

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - COALESCE ( - - COUNT ( * ), - COUNT ( * ) ) * - 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT 10 * - 45 * MIN( ALL - 83 ) AS col2
----
37350

skipif mysql # not compatible
query I rowsort label-1480
SELECT 10 * - 45 * MIN ( ALL - 83 ) AS col2
----
37350

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT DISTINCT ( NULLIF ( + + COUNT( DISTINCT + 41 ), + 84 / + 11 + 17 + - + 46 ) ) * - 54 + 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT ( NULLIF ( + + COUNT ( DISTINCT + 41 ), + 84 / + 11 + 17 + - + 46 ) ) * - 54 + 53 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT DISTINCT 46 * 42 + 9 + + + CAST( NULL AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT 46 * 42 + 9 + + + CAST ( NULL AS INTEGER ) * 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL - MIN( ALL - 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL - MIN ( ALL - 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT - 4 + - - CASE - - 26 WHEN + ( + 63 ) THEN + COUNT( DISTINCT 65 ) WHEN + COUNT( * ) + COUNT( * ) + 79 THEN 11 END * + 88 + + - 78 * + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 4 + - - CASE - - 26 WHEN + ( + 63 ) THEN + COUNT ( DISTINCT 65 ) WHEN + COUNT ( * ) + COUNT ( * ) + 79 THEN 11 END * + 88 + + - 78 * + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1485
SELECT ALL - COUNT( * ) DIV + 97, - COUNT( * ) DIV - 48
----
0
0

skipif mysql # not compatible
query II rowsort label-1485
SELECT ALL - COUNT ( * ) / + 97, - COUNT ( * ) / - 48
----
0
0

query II rowsort
SELECT ( - 55 ), 94 + - + 19 AS col1
----
-55
75

query II rowsort
SELECT - 31 * - 98 * + - COALESCE ( - 7, - 26 ) * - - ( 25 ) AS col0, NULLIF ( 51, - ( - 89 ) ) + + 34 * ( 89 )
----
531650
3077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1488
SELECT + + 89 / + ( 10 ) + - - 71 + - CAST( NULL AS SIGNED ) / - + COUNT( * ) * COALESCE ( 16, 72 * - - COUNT( * ) * + 17 - + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT + + 89 / + ( 10 ) + - - 71 + - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * COALESCE ( 16, 72 * - - COUNT ( * ) * + 17 - + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL 98 * - 61 * + + 91 + + 67 AS col2
----
-543931

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL - 60 * 4 + - CASE - 26 WHEN - + 55 THEN + 16 WHEN - 73 / - 2 * + - 16 * - 62 + - + COUNT( * ) THEN 96 + 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL - 60 * 4 + - CASE - 26 WHEN - + 55 THEN + 16 WHEN - 73 / - 2 * + - 16 * - 62 + - + COUNT ( * ) THEN 96 + 53 ELSE NULL END
----
NULL

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

query I rowsort
SELECT 77 * 23 + + 84
----
1855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + 84 * + 48 + - - CASE - 86 WHEN CAST( - - 51 AS SIGNED ) * + CAST( + 31 AS SIGNED ) * + 84 + 37 - 69 THEN NULL WHEN COUNT( ALL - 21 ) THEN + - 66 * + + CAST( NULL AS SIGNED ) / - 84 END * + 84 / + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + 84 * + 48 + - - CASE - 86 WHEN CAST ( - - 51 AS INTEGER ) * + CAST ( + 31 AS INTEGER ) * + 84 + 37 - 69 THEN NULL WHEN COUNT ( ALL - 21 ) THEN + - 66 * + + CAST ( NULL AS INTEGER ) / - 84 END * + 84 / + 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT SUM( CAST( - 60 AS SIGNED ) ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-1494
SELECT SUM ( CAST ( - 60 AS INTEGER ) ) col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT DISTINCT 81 DIV - + 81
----
-1

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT 81 / - + 81
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL 83 * 61 - COUNT( * )
----
5062

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL 83 * 61 - COUNT ( * )
----
5062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1498
SELECT + 21 DIV - COUNT( + 9 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1498
SELECT + 21 / - COUNT ( + 9 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT DISTINCT - 6 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT - 6 / 43
----
0

query I rowsort
SELECT DISTINCT 33 * - 47 * 96 AS col0
----
-148896

query I rowsort
SELECT DISTINCT 9 * - 14
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1502
SELECT - COALESCE ( - + 27, + + COUNT( * ) * + 55 + 17 - CAST( - - 73 AS SIGNED ), - + 63 ) AS col2, 1 + 50 AS col1
----
27
51

skipif mysql # not compatible
query II rowsort label-1502
SELECT - COALESCE ( - + 27, + + COUNT ( * ) * + 55 + 17 - CAST ( - - 73 AS INTEGER ), - + 63 ) AS col2, 1 + 50 AS col1
----
27
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT - 85 DIV 34
----
-2

skipif mysql # not compatible
query I rowsort label-1503
SELECT - 85 / 34
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT - MAX( 84 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-1504
SELECT - MAX ( 84 ) col1
----
-84

query I rowsort
SELECT + 62 - 7
----
55

query I rowsort
SELECT DISTINCT 73 * 67 * + 91 AS col0
----
445081

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

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

query II rowsort
SELECT DISTINCT - 66 AS col1, 41 col1
----
-66
41

query I rowsort
SELECT ALL ( 88 ) col0
----
88

query II rowsort
SELECT DISTINCT 49 AS col1, - 85 * + 65
----
49
-5525

query II rowsort
SELECT ALL 77, + 45 col1
----
77
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1512
SELECT - CAST( NULLIF ( MIN( ALL + - 33 ), 41 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-1512
SELECT - CAST ( NULLIF ( MIN ( ALL + - 33 ), 41 ) AS INTEGER )
----
33

query I rowsort
SELECT + 79 - 78
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT DISTINCT - 72 DIV 59 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT - 72 / 59 AS col1
----
-1

query I rowsort
SELECT - 6 * + ( - 88 )
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT COALESCE ( - - 76, 44, MAX( - 68 ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-1516
SELECT COALESCE ( - - 76, 44, MAX ( - 68 ) ) AS col2
----
76

query I rowsort
SELECT ALL 89 + + + 9
----
98

query I rowsort
SELECT DISTINCT - - 13 + - 33 AS col0
----
-20

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1520
SELECT ALL + 71 DIV - + 62 - + 53 + + 93 + - - 10 * + 11 AS col1, 13
----
149
13

skipif mysql # not compatible
query II rowsort label-1520
SELECT ALL + 71 / - + 62 - + 53 + + 93 + - - 10 * + 11 AS col1, 13
----
149
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL 65 * + 61 * 34 * + 88 * + 29 + - - 46 + + + COUNT( * )
----
344035167

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL 65 * + 61 * 34 * + 88 * + 29 + - - 46 + + + COUNT ( * )
----
344035167

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

skipif mysql # not compatible
query I rowsort label-1523
SELECT - CAST ( NULL AS REAL ) * + 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1524
SELECT DISTINCT - + COALESCE ( ( - - 23 ), - COUNT( * ), - 5, + COALESCE ( - MIN( + CAST( NULL AS SIGNED ) ), + - COUNT( * ) + - + 5 + + COUNT( * ) ) ) DIV 91 + - 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT - + COALESCE ( ( - - 23 ), - COUNT ( * ), - 5, + COALESCE ( - MIN ( + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) + - + 5 + + COUNT ( * ) ) ) / 91 + - 14 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT - 17 DIV - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1525
SELECT - 17 / - 72 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT 9 DIV - 36 - - COUNT( * ) * + + 54 * - 39
----
-2106

skipif mysql # not compatible
query I rowsort label-1526
SELECT 9 / - 36 - - COUNT ( * ) * + + 54 * - 39
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - 22 * - + COUNT( DISTINCT - 87 ) - + COALESCE ( + CASE + + 48 WHEN 71 THEN - 18 END, + 25 + 51 )
----
-54

skipif mysql # not compatible
query I rowsort label-1527
SELECT - 22 * - + COUNT ( DISTINCT - 87 ) - + COALESCE ( + CASE + + 48 WHEN 71 THEN - 18 END, + 25 + 51 )
----
-54

query I rowsort
SELECT - 80 * + 55 AS col2
----
-4400

query I rowsort
SELECT ALL - ( 98 ) * 44 * 30 + + - 39 AS col1
----
-129399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT ALL + ( - CASE - - CAST( + - 93 AS SIGNED ) WHEN - 99 THEN NULL WHEN - + COUNT( * ) THEN + 3 * 5 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL + ( - CASE - - CAST ( + - 93 AS INTEGER ) WHEN - 99 THEN NULL WHEN - + COUNT ( * ) THEN + 3 * 5 END ) AS col1
----
NULL

query I rowsort
SELECT - 44 * - + 16 * 40 col2
----
28160

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT - MAX( + - 57 ) * ( + SUM( ALL + 40 ) ) AS col0
----
2280

skipif mysql # not compatible
query I rowsort label-1532
SELECT - MAX ( + - 57 ) * ( + SUM ( ALL + 40 ) ) AS col0
----
2280

query I rowsort
SELECT 47 * + + 7 + + 2 + - 63 + - - 57 * + 49
----
3061

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT - COALESCE ( + NULLIF ( + 82, + 57 * - 2 ), - 6, - 28 * - + 86 + - 62 * + + COUNT( * ) + + 78 ) + 18
----
-64

skipif mysql # not compatible
query I rowsort label-1534
SELECT - COALESCE ( + NULLIF ( + 82, + 57 * - 2 ), - 6, - 28 * - + 86 + - 62 * + + COUNT ( * ) + + 78 ) + 18
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1535
SELECT COUNT( * ) * - COUNT( * ) - NULLIF ( - COUNT( * ), 71 * - 16 + - + CAST( NULL AS SIGNED ) ) + - 17 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1535
SELECT COUNT ( * ) * - COUNT ( * ) - NULLIF ( - COUNT ( * ), 71 * - 16 + - + CAST ( NULL AS INTEGER ) ) + - 17 AS col0
----
-17

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT DISTINCT CAST( ( - NULLIF ( COUNT( ALL 15 ), + 67 ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT CAST ( ( - NULLIF ( COUNT ( ALL 15 ), + 67 ) ) AS INTEGER ) AS col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1540
SELECT + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) / - - CAST( NULL AS SIGNED ) - + 6 * + SUM( ( CAST( - - 19 AS SIGNED ) ) ) - - - 33 / - 77 + - COUNT( * ) + COUNT( * ), 38 - + 86 AS col2
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-1540
SELECT + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) / - - CAST ( NULL AS INTEGER ) - + 6 * + SUM ( ( CAST ( - - 19 AS INTEGER ) ) ) - - - 33 / - 77 + - COUNT ( * ) + COUNT ( * ), 38 - + 86 AS col2
----
NULL
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1541
SELECT ALL NULLIF ( + 1, - NULLIF ( + ( - 32 ), - 32 ) + - + 15 ) * 84 * + 90 / - ( - COALESCE ( + 46, + 26 + - 79 * 25 * - 79, 87 ) ) + - + MAX( + + CAST( NULL AS SIGNED ) ) + - 15 + + NULLIF ( - COUNT( * ), - 31 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL NULLIF ( + 1, - NULLIF ( + ( - 32 ), - 32 ) + - + 15 ) * 84 * + 90 / - ( - COALESCE ( + 46, + 26 + - 79 * 25 * - 79, 87 ) ) + - + MAX ( + + CAST ( NULL AS INTEGER ) ) + - 15 + + NULLIF ( - COUNT ( * ), - 31 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL + 34 * + COUNT( * ) * - 93
----
-3162

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + 34 * + COUNT ( * ) * - 93
----
-3162

onlyif mysql # DIV for integer division: 
query I rowsort label-1543
SELECT 72 DIV + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1543
SELECT 72 / + 77 AS col2
----
0

query I rowsort
SELECT 31 + - 74 * - 59
----
4397

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

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

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

skipif mysql # not compatible
query I rowsort label-1546
SELECT - COUNT ( * ) / + 29 * - 39
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT DISTINCT ( - 35 ) + + - 95 + + 30 AS col0, 73 * CASE + - ( - + COUNT( * ) ) WHEN - + 11 - 0 + + 16 + 76 / - 37 + - - 65 * 60 + - 83 + + + CASE + - 93 WHEN 34 * ( - 65 ) THEN - + CASE + 57 WHEN + 55 * - 86 THEN + 60 * COUNT( * ) ELSE NULL END WHEN 18 * 64 / 66 + 5 - + 46 THEN NULL END * + 71 + + + 50 THEN ( + 95 ) END AS col0
----
-100
NULL

skipif mysql # not compatible
query II rowsort label-1548
SELECT DISTINCT ( - 35 ) + + - 95 + + 30 AS col0, 73 * CASE + - ( - + COUNT ( * ) ) WHEN - + 11 - 0 + + 16 + 76 / - 37 + - - 65 * 60 + - 83 + + + CASE + - 93 WHEN 34 * ( - 65 ) THEN - + CASE + 57 WHEN + 55 * - 86 THEN + 60 * COUNT ( * ) ELSE NULL END WHEN 18 * 64 / 66 + 5 - + 46 THEN NULL END * + 71 + + + 50 THEN ( + 95 ) END AS col0
----
-100
NULL

query I rowsort
SELECT - COALESCE ( - - 22, - 36 ) AS col0
----
-22

query I rowsort
SELECT DISTINCT - 66 * - + 39 * 27
----
69498

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT DISTINCT NULLIF ( + 34, COUNT( * ) + - + 4 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT NULLIF ( + 34, COUNT ( * ) + - + 4 ) col2
----
34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT NULLIF ( - ( + - 95 ), 42 ) + - + MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT NULLIF ( - ( + - 95 ), 42 ) + - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - 6 * + - MIN( DISTINCT + 72 ) + + - 82 * - ( - - ( + - 35 ) ) + + COUNT( * ) + 5 + + + 24 + + CASE 11 WHEN 2 THEN + COUNT( * ) * + 13 END + - 77 * COUNT( * ) * 43 + ( + CASE 0 WHEN + - 70 * + 22 + 76 THEN + ( - COUNT( * ) ) * - COALESCE ( - 19, + 18, + 64 / + 1 ) + - 36 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT - 6 * + - MIN ( DISTINCT + 72 ) + + - 82 * - ( - - ( + - 35 ) ) + + COUNT ( * ) + 5 + + + 24 + + CASE 11 WHEN 2 THEN + COUNT ( * ) * + 13 END + - 77 * COUNT ( * ) * 43 + ( + CASE 0 WHEN + - 70 * + 22 + 76 THEN + ( - COUNT ( * ) ) * - COALESCE ( - 19, + 18, + 64 / + 1 ) + - 36 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT + 46 * + - 37
----
-1702

onlyif mysql # DIV for integer division: 
query II rowsort label-1556
SELECT 14 DIV 45 * + + 15 * + 98 + + + 78 * - 10 AS col0, - 82 AS col0
----
-780
-82

skipif mysql # not compatible
query II rowsort label-1556
SELECT 14 / 45 * + + 15 * + 98 + + + 78 * - 10 AS col0, - 82 AS col0
----
-780
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT NULLIF ( CAST( NULL AS SIGNED ), - 88 ) - 81 + 61 + + 62 - - - 47 - + - 28 * + COUNT( * ) * - 5 / - + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - 88 ) - 81 + 61 + + 62 - - - 47 - + - 28 * + COUNT ( * ) * - 5 / - + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1558
SELECT ALL COUNT( * ) DIV CASE + + 5 WHEN + + 24 * + 8 THEN 63 * ( + - ( + 25 ) ) WHEN + + 4 * - COUNT( * ) DIV + COUNT( * ) * - 44 THEN NULL ELSE - 16 END
----
0

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL COUNT ( * ) / CASE + + 5 WHEN + + 24 * + 8 THEN 63 * ( + - ( + 25 ) ) WHEN + + 4 * - COUNT ( * ) / + COUNT ( * ) * - 44 THEN NULL ELSE - 16 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1559
SELECT DISTINCT + MAX( ALL + 85 ) - + 8 - + NULLIF ( - + 53, + 6 ) * 65 + + ( COALESCE ( + 54, 91, - NULLIF ( COUNT( * ), 62 * + - COUNT( * ) ) * - NULLIF ( 74, - COUNT( * ) * + + COUNT( * ) ) ) ) DIV - 2 col0
----
3495

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT + MAX ( ALL + 85 ) - + 8 - + NULLIF ( - + 53, + 6 ) * 65 + + ( COALESCE ( + 54, 91, - NULLIF ( COUNT ( * ), 62 * + - COUNT ( * ) ) * - NULLIF ( 74, - COUNT ( * ) * + + COUNT ( * ) ) ) ) / - 2 col0
----
3495

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT ALL + 51 DIV - 27
----
-1

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL + 51 / - 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + 56 * + - 6 * - 70 * - 23 + - - MIN( ALL + - 47 ) AS col1
----
-541007

skipif mysql # not compatible
query I rowsort label-1562
SELECT + 56 * + - 6 * - 70 * - 23 + - - MIN ( ALL + - 47 ) AS col1
----
-541007

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

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

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

skipif mysql # not compatible
query I rowsort label-1564
SELECT CAST ( NULL AS INTEGER ) / + 98
----
NULL

query I rowsort
SELECT 69 * + + 43
----
2967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1566
SELECT ALL - 14, COALESCE ( + NULLIF ( COUNT( * ), 7 * + 26 - - 27 ), - 92 DIV + 52, - - ( - AVG ( - CAST( + + 34 AS SIGNED ) ) ) ) DIV - 10 AS col0
----
-14
0

skipif mysql # not compatible
query II rowsort label-1566
SELECT ALL - 14, COALESCE ( + NULLIF ( COUNT ( * ), 7 * + 26 - - 27 ), - 92 / + 52, - - ( - AVG ( - CAST ( + + 34 AS INTEGER ) ) ) ) / - 10 AS col0
----
-14
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1567
SELECT + 43 AS col2, COUNT( * ) DIV - - 93 * - 78 AS col0
----
43
0

skipif mysql # not compatible
query II rowsort label-1567
SELECT + 43 AS col2, COUNT ( * ) / - - 93 * - 78 AS col0
----
43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT 85 + + COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-1568
SELECT 85 + + COUNT ( * ) col0
----
86

query I rowsort
SELECT 69 * - - 90
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL 97 + - + MAX( - 57 ) + - + 72 col0
----
82

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL 97 + - + MAX ( - 57 ) + - + 72 col0
----
82

query I rowsort
SELECT DISTINCT + 44 * - 94 col1
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ALL - 75 + - - NULLIF ( 72, - 60 + + COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL - 75 + - - NULLIF ( 72, - 60 + + COUNT ( * ) )
----
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1574
SELECT CASE + - COUNT( * ) WHEN NULLIF ( - + 94, + + 54 / 87 ) * + 42 THEN + 25 END * 48 + + - 53 AS col2, 27 * - 72 AS col2
----
NULL
-1944

skipif mysql # not compatible
query II rowsort label-1574
SELECT CASE + - COUNT ( * ) WHEN NULLIF ( - + 94, + + 54 / 87 ) * + 42 THEN + 25 END * 48 + + - 53 AS col2, 27 * - 72 AS col2
----
NULL
-1944

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT + SUM( ALL - 74 ) + 31 col0
----
-43

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + SUM ( ALL - 74 ) + 31 col0
----
-43

query I rowsort
SELECT ALL - + 8 + - - 39
----
31

query I rowsort
SELECT + 14 - - + 29
----
43

query I rowsort
SELECT ALL + 39 + + 78 AS col1
----
117

query I rowsort
SELECT + 27 - - NULLIF ( + 14, - CASE + 22 WHEN - - COALESCE ( 92, + - 95, - + 27 - + 20, 30 ) THEN NULL ELSE + 93 * 70 + - + 33 + + ( 52 ) * 85 * - - 82 * + + 82 END - + 97 + + + 2 )
----
41

query I rowsort
SELECT - 97 * + 95 col0
----
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL - - COUNT( * ) + + + 42 col0
----
43

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - - COUNT ( * ) + + + 42 col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT DISTINCT - 90 * 82 * + COUNT( * ) col1
----
-7380

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT - 90 * 82 * + COUNT ( * ) col1
----
-7380

onlyif mysql # aggregate syntax: 
query II rowsort label-1584
SELECT NULLIF ( 67, + COUNT( * ) ) col2, - SUM( + 1 ) + 7
----
67
6

skipif mysql # not compatible
query II rowsort label-1584
SELECT NULLIF ( 67, + COUNT ( * ) ) col2, - SUM ( + 1 ) + 7
----
67
6

query I rowsort
SELECT ALL + 79 + + 5 AS col1
----
84

query II rowsort
SELECT ALL + 56 * + ( - + 81 ) - - 40 + + ( + 55 ), + 18 AS col1
----
-4441
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1587
SELECT ALL 7 + - - ( 70 ) + 11 DIV - - CAST( - - 54 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL 7 + - - ( 70 ) + 11 / - - CAST ( - - 54 AS INTEGER ) AS col2
----
77

query I rowsort
SELECT + 77 - - - 61 + + - 96
----
-80

query I rowsort
SELECT DISTINCT + 29 * - 12
----
-348

query I rowsort
SELECT - 21 + 41
----
20

query I rowsort
SELECT + ( - 96 ) * 98 + 62
----
-9346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1592
SELECT ALL + CASE 17 WHEN COUNT( * ) * - 67 THEN CAST( 11 AS SIGNED ) WHEN - 21 + + + 96 * + 77 THEN + 68 END * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + CASE 17 WHEN COUNT ( * ) * - 67 THEN CAST ( 11 AS INTEGER ) WHEN - 21 + + + 96 * + 77 THEN + 68 END * + 72
----
NULL

query I rowsort
SELECT + 43 + + 40 col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1594
SELECT CAST( + 70 AS SIGNED ) + - MIN( ALL 94 )
----
-24

skipif mysql # not compatible
query I rowsort label-1594
SELECT CAST ( + 70 AS INTEGER ) + - MIN ( ALL 94 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT DISTINCT + COALESCE ( - 35, + ( 63 ) * - MIN( 56 ) * + 27 * - + 71 ) * - 22
----
770

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + COALESCE ( - 35, + ( 63 ) * - MIN ( 56 ) * + 27 * - + 71 ) * - 22
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT COUNT( * ) + + 45 + + - 47 * + + ( 98 )
----
-4560

skipif mysql # not compatible
query I rowsort label-1596
SELECT COUNT ( * ) + + 45 + + - 47 * + + ( 98 )
----
-4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1597
SELECT DISTINCT - ( CAST( - + SUM( 21 ) AS SIGNED ) ) col0, COALESCE ( + 99, - NULLIF ( + 76, + 99 + + 32 * + - 67 ), - - 6 - + 60 ) - + + COUNT( * ) + + COUNT( + 53 ) * + CAST( NULL AS SIGNED ) + 86
----
21
NULL

skipif mysql # not compatible
query II rowsort label-1597
SELECT DISTINCT - ( CAST ( - + SUM ( 21 ) AS INTEGER ) ) col0, COALESCE ( + 99, - NULLIF ( + 76, + 99 + + 32 * + - 67 ), - - 6 - + 60 ) - + + COUNT ( * ) + + COUNT ( + 53 ) * + CAST ( NULL AS INTEGER ) + 86
----
21
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL 51 * - - COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL 51 * - - COUNT ( * ) AS col1
----
51

query I rowsort
SELECT ( - 30 ) * + 42 AS col1
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT MAX( - - 84 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-1601
SELECT MAX ( - - 84 ) col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT 40 + NULLIF ( - - COALESCE ( - + CAST( NULL AS SIGNED ), + 64 * COUNT( DISTINCT + + 16 ) * - 45 ), - - 6 ) * - MAX( ALL + 1 ) - - - 3 AS col0
----
2917

skipif mysql # not compatible
query I rowsort label-1602
SELECT 40 + NULLIF ( - - COALESCE ( - + CAST ( NULL AS INTEGER ), + 64 * COUNT ( DISTINCT + + 16 ) * - 45 ), - - 6 ) * - MAX ( ALL + 1 ) - - - 3 AS col0
----
2917

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1604
SELECT CAST( 79 AS SIGNED ) DIV - + CAST( - 37 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-1604
SELECT CAST ( 79 AS INTEGER ) / - + CAST ( - 37 AS INTEGER )
----
2

query I rowsort
SELECT ( + + 91 ) + 51 + - 69 AS col1
----
73

query I rowsort
SELECT DISTINCT 50 * 83 AS col0
----
4150

query I rowsort
SELECT ALL - 83 * - 37 + 6
----
3077

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1608
SELECT ALL 63 * ( + 59 ) * - - CAST( NULL AS DECIMAL ) + + - 18 * - ( + - MAX( DISTINCT 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL 63 * ( + 59 ) * - - CAST ( NULL AS REAL ) + + - 18 * - ( + - MAX ( DISTINCT 25 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + 76 * + + 33 - COUNT( * ) + + 10 * 64 * - 46 - + + 57 AS col0
----
-26990

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 76 * + + 33 - COUNT ( * ) + + 10 * 64 * - 46 - + + 57 AS col0
----
-26990

query I rowsort
SELECT DISTINCT 14 * - 38 col0
----
-532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1611
SELECT ALL + SUM( DISTINCT 79 ) + - 75 + ( + CAST( NULL AS SIGNED ) ) + + 82 * - - 0 * + 28 / - COUNT( * ) + + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL + SUM ( DISTINCT 79 ) + - 75 + ( + CAST ( NULL AS INTEGER ) ) + + 82 * - - 0 * + 28 / - COUNT ( * ) + + - 5 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1612
SELECT ALL 91 + COALESCE ( + COALESCE ( 40, + + 14 * - 52 + ( - - MAX( ALL 25 ) ) + - 32 * - COUNT( * ) * - CAST( NULL AS SIGNED ) + - - 93, - 54 * COUNT( * ) ), + + 4 - 71 ) + + 76 / - 66 * - 35 * - 55 - + 22 - - + CAST( 89 AS SIGNED ) * + + CAST( NULL AS DECIMAL ) * + - 11 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL 91 + COALESCE ( + COALESCE ( 40, + + 14 * - 52 + ( - - MAX ( ALL 25 ) ) + - 32 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - - 93, - 54 * COUNT ( * ) ), + + 4 - 71 ) + + 76 / - 66 * - 35 * - 55 - + 22 - - + CAST ( 89 AS INTEGER ) * + + CAST ( NULL AS REAL ) * + - 11 + + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT + 55 DIV + - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 55 / + - 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT - + COUNT( * ) + + 20 * 99 * + 31 AS col1
----
61379

skipif mysql # not compatible
query I rowsort label-1614
SELECT - + COUNT ( * ) + + 20 * 99 * + 31 AS col1
----
61379

onlyif mysql # aggregate syntax: 
query II rowsort label-1615
SELECT + 48 * + - ( + 4 ) + + SUM( ALL - - 55 ) + 98, - 55 * - COUNT( * ) AS col2
----
-39
55

skipif mysql # not compatible
query II rowsort label-1615
SELECT + 48 * + - ( + 4 ) + + SUM ( ALL - - 55 ) + 98, - 55 * - COUNT ( * ) AS col2
----
-39
55

onlyif mysql # DIV for integer division: 
query II rowsort label-1616
SELECT DISTINCT 24 DIV 1 AS col2, 18 + 23 * - 59
----
24
-1339

skipif mysql # not compatible
query II rowsort label-1616
SELECT DISTINCT 24 / 1 AS col2, 18 + 23 * - 59
----
24
-1339

query I rowsort
SELECT ALL 28 + 42 AS col2
----
70

query I rowsort
SELECT + 98 + - 54 AS col0
----
44

query II rowsort
SELECT + + 46 AS col2, 59
----
46
59

query II rowsort
SELECT 0 AS col2, 53 / + 4 + - ( - - ( + + 32 ) ) + + 14 * + ( + 16 ) + 95 / - + 14 * 83 + - 15 / - CASE + ( - + 4 ) WHEN - 49 * + 37 THEN - 13 * - 94 / + 20 * + 13 END
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT + COUNT( * ) + 69 * - 53
----
-3656

skipif mysql # not compatible
query I rowsort label-1621
SELECT + COUNT ( * ) + 69 * - 53
----
-3656

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL NULLIF ( + 50, - COUNT( * ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL NULLIF ( + 50, - COUNT ( * ) ) AS col1
----
50

query II rowsort
SELECT ALL - 51 col2, 3
----
-51
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT + 25 + - 21 DIV - + 76 - + ( + + 41 )
----
-16

skipif mysql # not compatible
query I rowsort label-1624
SELECT + 25 + - 21 / - + 76 - + ( + + 41 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL 95 + - - 86 * + - 33 * MIN( - 49 ) * - - 8 - - 14 AS col2
----
1112605

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL 95 + - - 86 * + - 33 * MIN ( - 49 ) * - - 8 - - 14 AS col2
----
1112605

query II rowsort
SELECT DISTINCT + 97 AS col2, CASE - + 87 WHEN 11 THEN NULL WHEN + 44 + - 24 THEN 12 ELSE NULL END * + 68 col2
----
97
NULL

query I rowsort
SELECT DISTINCT + - NULLIF ( + - 90, + 67 ) * + 10 * 3 AS col0
----
2700

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT - - SUM( ALL 79 ) + - 82 + - SUM( ALL + 94 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-1629
SELECT - - SUM ( ALL 79 ) + - 82 + - SUM ( ALL + 94 ) AS col0
----
-97

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

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

query I rowsort
SELECT - + 22 + - 98 * + - 91 AS col1
----
8896

query I rowsort
SELECT ALL + + 76 * - 25
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT + 1 * MIN( + + 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-1633
SELECT + 1 * MIN ( + + 76 ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1634
SELECT - - 50, CAST( NULL AS SIGNED ) * - 41 / CAST( - 52 AS DECIMAL ) AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1634
SELECT - - 50, CAST ( NULL AS INTEGER ) * - 41 / CAST ( - 52 AS REAL ) AS col2
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT NULLIF ( - COUNT( * ), + 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1635
SELECT NULLIF ( - COUNT ( * ), + 67 ) AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1636
SELECT - CAST( NULL AS DECIMAL ) * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT - CAST ( NULL AS REAL ) * 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT - MIN( DISTINCT 0 ) * - 89 * + 27 * - 36
----
0

skipif mysql # not compatible
query I rowsort label-1637
SELECT - MIN ( DISTINCT 0 ) * - 89 * + 27 * - 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT - + COUNT( 43 ) + 56 col1
----
55

skipif mysql # not compatible
query I rowsort label-1638
SELECT - + COUNT ( 43 ) + 56 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT - 51 * - 84 * 53 * COUNT( ALL + - 12 )
----
227052

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT - 51 * - 84 * 53 * COUNT ( ALL + - 12 )
----
227052

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT DISTINCT COALESCE ( + 84, + 28 + + 55 * + 10 DIV - + 65 )
----
84

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT COALESCE ( + 84, + 28 + + 55 * + 10 / - + 65 )
----
84

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1642
SELECT ALL - CASE + 40 WHEN + 47 * 25 DIV - + 51 * ( 2 ) THEN NULL WHEN + - 98 THEN 67 ELSE - + 96 * COUNT( * ) END DIV - 77 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL - CASE + 40 WHEN + 47 * 25 / - + 51 * ( 2 ) THEN NULL WHEN + - 98 THEN 67 ELSE - + 96 * COUNT ( * ) END / - 77 AS col2
----
-1

query I rowsort
SELECT - 75 + - 62 AS col2
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1644
SELECT ALL - CAST( + - 1 AS SIGNED ) * 42 AS col0, 43 AS col1
----
42
43

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL - CAST ( + - 1 AS INTEGER ) * 42 AS col0, 43 AS col1
----
42
43

query I rowsort
SELECT ALL + 88 * 16 * 96 AS col0
----
135168

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT + 27 DIV - 4 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1646
SELECT + 27 / - 4 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT - CASE + 78 WHEN - 80 + 62 THEN - 50 WHEN - - 91 + - 44 - + COUNT( * ) THEN NULL WHEN - 20 THEN + 98 * MIN( - - 61 ) END - - - 12 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT - CASE + 78 WHEN - 80 + 62 THEN - 50 WHEN - - 91 + - 44 - + COUNT ( * ) THEN NULL WHEN - 20 THEN + 98 * MIN ( - - 61 ) END - - - 12 + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT - NULLIF ( 35, 94 / 73 - - COUNT( * ) ) * - - 12 + 56 * - + 3
----
-588

skipif mysql # not compatible
query I rowsort label-1648
SELECT - NULLIF ( 35, 94 / 73 - - COUNT ( * ) ) * - - 12 + 56 * - + 3
----
-588

query I rowsort
SELECT DISTINCT 22 * + + 45 + - 19 + + - 60
----
911

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL 91 * - ( - - 47 ) + SUM( DISTINCT - 3 ) * + + 36 + + 22 AS col0
----
-4363

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL 91 * - ( - - 47 ) + SUM ( DISTINCT - 3 ) * + + 36 + + 22 AS col0
----
-4363

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT + COUNT( * ) + COALESCE ( + - 13, + - COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-1651
SELECT + COUNT ( * ) + COALESCE ( + - 13, + - COUNT ( * ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT + CASE WHEN NOT 68 IS NOT NULL THEN - 91 + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT + CASE WHEN NOT 68 IS NOT NULL THEN - 91 + COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ( 89 ) col1
----
89

query I rowsort
SELECT ALL 34 * - - 81 + + 62
----
2816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT + ( - + CAST( NULL AS SIGNED ) ) * - ( 10 ) * + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT + ( - + CAST ( NULL AS INTEGER ) ) * - ( 10 ) * + 35 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT + + 61 + + + COUNT( + CAST( - 1 AS SIGNED ) )
----
62

skipif mysql # not compatible
query I rowsort label-1656
SELECT + + 61 + + + COUNT ( + CAST ( - 1 AS INTEGER ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT - 56 * 59 + - COUNT( * )
----
-3305

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT - 56 * 59 + - COUNT ( * )
----
-3305

query I rowsort
SELECT ALL 40 * - 2 AS col1
----
-80

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1660
SELECT ALL + - 60 * 78 + + + COUNT( ALL - + 24 ) - - 33, MAX( ALL - 61 ) + + 19 AS col0
----
-4646
-42

skipif mysql # not compatible
query II rowsort label-1660
SELECT ALL + - 60 * 78 + + + COUNT ( ALL - + 24 ) - - 33, MAX ( ALL - 61 ) + + 19 AS col0
----
-4646
-42

query I rowsort
SELECT ALL + 62 * - 80 + - 59
----
-5019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1662
SELECT + 45 / - - CASE + - COUNT( DISTINCT - 77 ) WHEN 18 THEN NULL ELSE - 30 / - COUNT( * ) * + CASE - 12 WHEN - 82 * 12 * + COUNT( * ) + 6 THEN - - CASE - - 72 WHEN 82 THEN + 68 - + CASE - ( ( + 35 ) ) WHEN CAST( COUNT( * ) AS SIGNED ) * + 86 + - 69 - - COUNT( * ) - - - AVG ( - NULLIF ( + - 91, - 71 ) ) + - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) THEN NULL ELSE NULLIF ( 17, - 34 ) END END END * 94 END + COALESCE ( 8, + 60 * 83 ) + - 63 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT + 45 / - - CASE + - COUNT ( DISTINCT - 77 ) WHEN 18 THEN NULL ELSE - 30 / - COUNT ( * ) * + CASE - 12 WHEN - 82 * 12 * + COUNT ( * ) + 6 THEN - - CASE - - 72 WHEN 82 THEN + 68 - + CASE - ( ( + 35 ) ) WHEN CAST ( COUNT ( * ) AS INTEGER ) * + 86 + - 69 - - COUNT ( * ) - - - AVG ( - NULLIF ( + - 91, - 71 ) ) + - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) THEN NULL ELSE NULLIF ( 17, - 34 ) END END END * 94 END + COALESCE ( 8, + 60 * 83 ) + - 63 * - 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1663
SELECT + MIN( 99 ) * - - CAST( NULL AS SIGNED ) + 47 + - + COALESCE ( - 59, + 9 ) - - COUNT( * ) - 40 * 55 - + 70 * - 79 * - 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT + MIN ( 99 ) * - - CAST ( NULL AS INTEGER ) + 47 + - + COALESCE ( - 59, + 9 ) - - COUNT ( * ) - 40 * 55 - + 70 * - 79 * - 17 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL + COUNT( * ) * - 89 + 79 - 48 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + COUNT ( * ) * - 89 + 79 - 48 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT + 98 * - - NULLIF ( + COUNT( * ), - - 36 + + 79 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1666
SELECT + 98 * - - NULLIF ( + COUNT ( * ), - - 36 + + 79 ) AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1667
SELECT - 73 * - 40 + + - COUNT( DISTINCT 92 ) + - 82 + + 63 DIV 41 * 28 col1
----
2865

skipif mysql # not compatible
query I rowsort label-1667
SELECT - 73 * - 40 + + - COUNT ( DISTINCT 92 ) + - 82 + + 63 / 41 * 28 col1
----
2865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT + 12 - + 12 + + + SUM( DISTINCT - 19 ) * + CAST( COUNT( * ) AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-1668
SELECT + 12 - + 12 + + + SUM ( DISTINCT - 19 ) * + CAST ( COUNT ( * ) AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT ALL + 79 DIV MAX( ALL 44 ) * - + MIN( - + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + 79 / MAX ( ALL 44 ) * - + MIN ( - + 10 )
----
10

query II rowsort
SELECT ALL ( + 63 ), ( - 51 ) * + + 62 * 36 - + 46 AS col2
----
63
-113878

query I rowsort
SELECT + - 41 + + - 25 * - 69 + + - ( + 64 )
----
1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1672
SELECT ALL - CAST( 19 AS SIGNED ) * - + 69 * + - COUNT( * )
----
-1311

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL - CAST ( 19 AS INTEGER ) * - + 69 * + - COUNT ( * )
----
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT COUNT( + + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT COUNT ( + + 42 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT - CAST( - CASE - 61 WHEN + - CASE 7 WHEN + ( - 51 ) + 3 THEN NULL WHEN + 94 THEN NULL WHEN - - 79 THEN 40 * 21 ELSE + + ( - 93 ) END * 2 * + 78 + + 95 THEN - NULLIF ( + + COUNT( * ), - + 36 * - COUNT( * ) ) + + + CAST( - + 66 AS SIGNED ) + + MIN( 14 ) ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1674
SELECT - CAST ( - CASE - 61 WHEN + - CASE 7 WHEN + ( - 51 ) + 3 THEN NULL WHEN + 94 THEN NULL WHEN - - 79 THEN 40 * 21 ELSE + + ( - 93 ) END * 2 * + 78 + + 95 THEN - NULLIF ( + + COUNT ( * ), - + 36 * - COUNT ( * ) ) + + + CAST ( - + 66 AS INTEGER ) + + MIN ( 14 ) ELSE NULL END AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL - MAX( - 81 ) * MAX( + 11 )
----
891

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL - MAX ( - 81 ) * MAX ( + 11 )
----
891

query I rowsort
SELECT ALL + 2 + - 85
----
-83

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

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

query I rowsort
SELECT DISTINCT ( + ( - 57 ) ) + - 98 + + 68
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT - 16 DIV + + 30
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT - 16 / + + 30
----
0

query I rowsort
SELECT ALL + 57 + - + 75 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL - 3 + - - 77 + - 10 * + COUNT( * ) * + - 39 * + + ( 86 ) AS col0
----
33614

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - 3 + - - 77 + - 10 * + COUNT ( * ) * + - 39 * + + ( 86 ) AS col0
----
33614

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1683
SELECT ALL - 30 DIV COUNT( * ) * + 41
----
-1230

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - 30 / COUNT ( * ) * + 41
----
-1230

query I rowsort
SELECT DISTINCT + 75 + + - 97 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT ALL + 58 + + + COUNT( * ) * + 7
----
65

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL + 58 + + + COUNT ( * ) * + 7
----
65

query I rowsort
SELECT ALL - 3 + + 62
----
59

query I rowsort
SELECT 68 * - 34 AS col0
----
-2312

query I rowsort
SELECT 75 + - 21
----
54

query I rowsort
SELECT ALL - 31 * + - 89
----
2759

query I rowsort
SELECT ALL 33 - + ( - 91 ) AS col0
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT DISTINCT - + CASE 28 WHEN - 28 - + + COUNT( ALL + 46 ) THEN NULL ELSE + + 67 END AS col0, - 19
----
-67
-19

skipif mysql # not compatible
query II rowsort label-1691
SELECT DISTINCT - + CASE 28 WHEN - 28 - + + COUNT ( ALL + 46 ) THEN NULL ELSE + + 67 END AS col0, - 19
----
-67
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT DISTINCT - CASE + - COUNT( * ) WHEN + MAX( - 98 ) + + - CASE MIN( DISTINCT + + CASE - 12 WHEN + 81 THEN - + 20 END ) WHEN - CAST( NULL AS SIGNED ) / + - ( CAST( NULL AS SIGNED ) ) THEN - 39 * COUNT( * ) * - 54 WHEN - 27 + 22 / + - 72 THEN - + 95 + - + 4 + + 28 + + 28 + + 84 * - 83 ELSE - + SUM( + - 23 ) END / + 38 THEN NULL ELSE - + 72 END AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - CASE + - COUNT ( * ) WHEN + MAX ( - 98 ) + + - CASE MIN ( DISTINCT + + CASE - 12 WHEN + 81 THEN - + 20 END ) WHEN - CAST ( NULL AS INTEGER ) / + - ( CAST ( NULL AS INTEGER ) ) THEN - 39 * COUNT ( * ) * - 54 WHEN - 27 + 22 / + - 72 THEN - + 95 + - + 4 + + 28 + + 28 + + 84 * - 83 ELSE - + SUM ( + - 23 ) END / + 38 THEN NULL ELSE - + 72 END AS col1
----
72

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

query I rowsort
SELECT 1 + 54
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1695
SELECT - 30 * 41 - 31 * - ( + 51 ) * + 37 / + + 78 + 42 + 28 * CAST( NULL AS DECIMAL ) + 68 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 30 * 41 - 31 * - ( + 51 ) * + 37 / + + 78 + 42 + 28 * CAST ( NULL AS REAL ) + 68 * + COUNT ( * )
----
NULL

query I rowsort
SELECT 93 * + 20
----
1860

query I rowsort
SELECT 11 * 15
----
165

query I rowsort
SELECT + 23 + + 10 AS col0
----
33

query I rowsort
SELECT ALL 20 * + 21
----
420

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT DISTINCT - 56 + ( 70 ) DIV - ( + 14 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - 56 + ( 70 ) / - ( + 14 ) AS col2
----
-61

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

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

query I rowsort
SELECT ALL ( 74 ) + 55 AS col0
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT DISTINCT 75 DIV + NULLIF ( 52, + 23 + - 90 * + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT 75 / + NULLIF ( 52, + 23 + - 90 * + 47 )
----
1

query I rowsort
SELECT 50 + + 93 + - 39
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT 45 + SUM( DISTINCT - 85 )
----
-40

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT 45 + SUM ( DISTINCT - 85 )
----
-40

query I rowsort
SELECT ALL ( + 75 ) + 27 AS col1
----
102

query I rowsort
SELECT DISTINCT 69 + ( 17 ) + + 50
----
136

onlyif mysql # DIV for integer division: 
query II rowsort label-1708
SELECT 63 * - + 1, 9 DIV 35 AS col2
----
-63
0

skipif mysql # not compatible
query II rowsort label-1708
SELECT 63 * - + 1, 9 / 35 AS col2
----
-63
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT ALL - COUNT( * ) + + CASE + - 84 WHEN + 46 THEN NULLIF ( - + MIN( DISTINCT 59 ), + 0 + - - COALESCE ( 22, - + CAST( NULL AS SIGNED ) ) ) * + 96 END - + - 21 * - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL - COUNT ( * ) + + CASE + - 84 WHEN + 46 THEN NULLIF ( - + MIN ( DISTINCT 59 ), + 0 + - - COALESCE ( 22, - + CAST ( NULL AS INTEGER ) ) ) * + 96 END - + - 21 * - - 33
----
NULL

query I rowsort
SELECT DISTINCT - 16 * - 56 AS col2
----
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1711
SELECT DISTINCT 33 * CAST( - 5 AS SIGNED )
----
-165

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT 33 * CAST ( - 5 AS INTEGER )
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT 53 + - COUNT( * ) AS col0, + 51
----
52
51

skipif mysql # not compatible
query II rowsort label-1712
SELECT 53 + - COUNT ( * ) AS col0, + 51
----
52
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT 88 * + 76 * + + COUNT( * ) AS col1
----
6688

skipif mysql # not compatible
query I rowsort label-1713
SELECT 88 * + 76 * + + COUNT ( * ) AS col1
----
6688

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT 94 + + ( + 12 ) * + 82 + COUNT( * ) * + 3 AS col0
----
1081

skipif mysql # not compatible
query I rowsort label-1714
SELECT 94 + + ( + 12 ) * + 82 + COUNT ( * ) * + 3 AS col0
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT ALL COUNT( * ) + - - 44 * 18
----
793

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL COUNT ( * ) + - - 44 * 18
----
793

onlyif mysql # aggregate syntax: 
query II rowsort label-1716
SELECT CASE - + 87 WHEN + 3 THEN NULL WHEN + 21 THEN - + ( 24 ) ELSE NULL END - + ( - - 99 ) * 91 AS col0, 3 * - COUNT( 61 ) AS col2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1716
SELECT CASE - + 87 WHEN + 3 THEN NULL WHEN + 21 THEN - + ( 24 ) ELSE NULL END - + ( - - 99 ) * 91 AS col0, 3 * - COUNT ( 61 ) AS col2
----
NULL
-3

query I rowsort
SELECT 13 * CASE + 87 WHEN - 32 THEN - 20 + 82 END col2
----
NULL

query I rowsort
SELECT ALL 32 - + 93
----
-61

query I rowsort
SELECT ALL - 64 - + 87 + + ( + - 26 )
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT ALL + 6 DIV - 28 + - - 22 * + 71 * + 79
----
123398

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + 6 / - 28 + - - 22 * + 71 * + 79
----
123398

query I rowsort
SELECT 46 * - + 87 * + ( - + 63 ) + - - 87 AS col1
----
252213

query I rowsort
SELECT DISTINCT - - 99 - 35 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT + 73 * + 70 + + 29 + - 0 * + COUNT( * )
----
5139

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + 73 * + 70 + + 29 + - 0 * + COUNT ( * )
----
5139

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL - COUNT( - 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - COUNT ( - 58 ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-1725
SELECT COUNT ( * ) * - - 66
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1726
SELECT CASE ( + 10 ) WHEN 51 / + 31 THEN + 40 * + 68 * + - CAST( NULL AS DECIMAL ) - - 3 END * + 5 * + + 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT CASE ( + 10 ) WHEN 51 / + 31 THEN + 40 * + 68 * + - CAST ( NULL AS REAL ) - - 3 END * + 5 * + + 72 col0
----
NULL

query I rowsort
SELECT + COALESCE ( 18, 92 )
----
18

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

query I rowsort
SELECT 46 + + 46 + + 58 + - 63
----
87

query I rowsort
SELECT DISTINCT - + 57 * 32 AS col0
----
-1824

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT DISTINCT - 10 * 76 DIV - - NULLIF ( + 86, - - 88 )
----
-8

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT - 10 * 76 / - - NULLIF ( + 86, - - 88 )
----
-8

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

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

query I rowsort
SELECT ALL - - ( - - 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT ALL + CAST( NULL AS SIGNED ) + 41 + 2 * 37 + + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + CAST ( NULL AS INTEGER ) + 41 + 2 * 37 + + - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT CASE 79 WHEN + 33 + MAX( DISTINCT 13 ) + 3 + 95 / - 99 THEN - - 24 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT CASE 79 WHEN + 33 + MAX ( DISTINCT 13 ) + 3 + 95 / - 99 THEN - - 24 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1736
SELECT DISTINCT - + COUNT( ALL - - 21 ), + 28 AS col2
----
-1
28

skipif mysql # not compatible
query II rowsort label-1736
SELECT DISTINCT - + COUNT ( ALL - - 21 ), + 28 AS col2
----
-1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - - NULLIF ( + NULLIF ( COUNT( * ), - 49 ), 55 * COUNT( * ) + 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1737
SELECT - - NULLIF ( + NULLIF ( COUNT ( * ), - 49 ), 55 * COUNT ( * ) + 33 ) col0
----
1

query I rowsort
SELECT + 87 + - 40 + 50 AS col2
----
97

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

skipif mysql # not compatible
query I rowsort label-1739
SELECT SUM ( DISTINCT - 95 )
----
-95

query I rowsort
SELECT DISTINCT 58 + - 24
----
34

query I rowsort
SELECT 44 - - 35 AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT 53 + 28 * 56 DIV 88 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1742
SELECT 53 + 28 * 56 / 88 AS col1
----
70

query I rowsort
SELECT ALL - 2 + + 9
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1744
SELECT DISTINCT + ( 19 ) DIV COUNT( * ) AS col2, 24
----
19
24

skipif mysql # not compatible
query II rowsort label-1744
SELECT DISTINCT + ( 19 ) / COUNT ( * ) AS col2, 24
----
19
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT ALL 87 + NULLIF ( - + 53, - - 72 ) + + 58 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL 87 + NULLIF ( - + 53, - - 72 ) + + 58 / CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + 30 * + + 83 AS col2
----
2490

query I rowsort
SELECT ALL - 75 + - - 52 AS col2
----
-23

query II rowsort
SELECT DISTINCT 86, 77 AS col0
----
86
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT ALL COALESCE ( - 88, 74 ) DIV - - 57
----
-1

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL COALESCE ( - 88, 74 ) / - - 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT + SUM( + + 42 ) + SUM( ALL 44 )
----
86

skipif mysql # not compatible
query I rowsort label-1750
SELECT + SUM ( + + 42 ) + SUM ( ALL 44 )
----
86

query I rowsort
SELECT ALL 91 - 12
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT DISTINCT 50 DIV + + 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT 50 / + + 7 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1753
SELECT ALL COUNT( * ) AS col1, + SUM( - + 46 ) * 4 * - - SUM( ALL + - 29 ) AS col0
----
1
5336

skipif mysql # not compatible
query II rowsort label-1753
SELECT ALL COUNT ( * ) AS col1, + SUM ( - + 46 ) * 4 * - - SUM ( ALL + - 29 ) AS col0
----
1
5336

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

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

query I rowsort
SELECT + 34 * - 95 + - 32 + + 97 col1
----
-3165

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL MAX( + 46 ) * + - 85 * - 51 col2
----
199410

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL MAX ( + 46 ) * + - 85 * - 51 col2
----
199410

onlyif mysql # DIV for integer division: 
query I rowsort label-1757
SELECT - 22 DIV + 28 - 86 + ( - 1 )
----
-87

skipif mysql # not compatible
query I rowsort label-1757
SELECT - 22 / + 28 - 86 + ( - 1 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT + + 94 * + + SUM( - 44 ) * - + 73
----
301928

skipif mysql # not compatible
query I rowsort label-1758
SELECT + + 94 * + + SUM ( - 44 ) * - + 73
----
301928

query I rowsort
SELECT ALL 95 * - - 36
----
3420

query I rowsort
SELECT + 65 + + - 53 + - 23 * - + 53 AS col1
----
1231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1761
SELECT ALL ( + - 96 ) * + - CAST( NULL AS SIGNED ) * + 84 - + - 87 * 76 / + 4 * - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL ( + - 96 ) * + - CAST ( NULL AS INTEGER ) * + 84 - + - 87 * 76 / + 4 * - 7 AS col1
----
NULL

query II rowsort
SELECT 45 AS col1, - 76
----
45
-76

query I rowsort
SELECT ALL + - 91 * + 84 + + + 33
----
-7611

query I rowsort
SELECT DISTINCT - + 25 * - 70 + + - 27 + 96 AS col2
----
1819

query I rowsort
SELECT - - 62 + + 83 * + 5 * - + 72
----
-29818

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT - COUNT( ALL + 31 ) * - - 38 + - 47
----
-85

skipif mysql # not compatible
query I rowsort label-1766
SELECT - COUNT ( ALL + 31 ) * - - 38 + - 47
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT 76 * + - 54 + - COUNT( * ) * + - 4 AS col0
----
-4100

skipif mysql # not compatible
query I rowsort label-1767
SELECT 76 * + - 54 + - COUNT ( * ) * + - 4 AS col0
----
-4100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1768
SELECT ALL 75 * + 58 * - 1 + + - 82 - 64 * - + 25 + - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL 75 * + 58 * - 1 + + - 82 - 64 * - + 25 + - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 64 * + + 22
----
-1408

query I rowsort
SELECT ALL + 43 * - CASE + + 65 WHEN - 77 THEN 45 END AS col2
----
NULL

query I rowsort
SELECT ALL + 34 * - 71
----
-2414

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

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

query I rowsort
SELECT DISTINCT + 61 * + 31
----
1891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT DISTINCT CAST( + + 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT CAST ( + + 61 AS INTEGER ) AS col2
----
61

query I rowsort
SELECT DISTINCT - 89 - - 13 AS col2
----
-76

query I rowsort
SELECT - 45 + + 19 + 92 AS col2
----
66

query II rowsort
SELECT 50, + COALESCE ( - 23, + 88, + 86 ) * 19 * - 58 col0
----
50
25346

query I rowsort
SELECT + 39 * + 44 * + + 68
----
116688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT ALL CAST( - 36 AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL CAST ( - 36 AS INTEGER ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1780
SELECT - COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) * + 18 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1780
SELECT - COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) * + 18 AS col1
----
-19

query I rowsort
SELECT - NULLIF ( + 81, - 5 + + - 33 * + NULLIF ( 21, - + 42 * - + 76 ) )
----
-81

query II rowsort
SELECT ALL 47 col2, 29 AS col2
----
47
29

query I rowsort
SELECT - 67 * + 59 AS col2
----
-3953

query I rowsort
SELECT + 73 + 78 + 9
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT + 96 + 38 DIV - 44
----
96

skipif mysql # not compatible
query I rowsort label-1785
SELECT + 96 + 38 / - 44
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1786
SELECT + 10 DIV + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT + 10 / + 29 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT + + 7 * - + COUNT( * ) * + - 66
----
462

skipif mysql # not compatible
query I rowsort label-1787
SELECT + + 7 * - + COUNT ( * ) * + - 66
----
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT + CASE - ( - COUNT( - 87 ) ) WHEN + + COALESCE ( - + 56, + COUNT( * ) ) + + 50 THEN + 98 ELSE NULL END - - 33 + + - CAST( NULL AS SIGNED ) * + COALESCE ( - ( - 40 ), - CASE + 52 WHEN - - 52 THEN NULL WHEN 77 * - 76 / 6 THEN NULL ELSE + + 55 END * 47 + - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT + CASE - ( - COUNT ( - 87 ) ) WHEN + + COALESCE ( - + 56, + COUNT ( * ) ) + + 50 THEN + 98 ELSE NULL END - - 33 + + - CAST ( NULL AS INTEGER ) * + COALESCE ( - ( - 40 ), - CASE + 52 WHEN - - 52 THEN NULL WHEN 77 * - 76 / 6 THEN NULL ELSE + + 55 END * 47 + - 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL + MAX( + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + MAX ( + 86 ) AS col2
----
86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT + + 57 DIV + 17
----
3

skipif mysql # not compatible
query I rowsort label-1791
SELECT + + 57 / + 17
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT ALL + 72 DIV 24 * 94 * - 95 + 81
----
-26709

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL + 72 / 24 * 94 * - 95 + 81
----
-26709

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL - 8 / 69 + - 13 + ( 40 ) / + - CASE + - AVG ( ALL - + 23 ) WHEN - MIN( ALL - - 71 ) THEN + COUNT( * ) * - 37 * 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - 8 / 69 + - 13 + ( 40 ) / + - CASE + - AVG ( ALL - + 23 ) WHEN - MIN ( ALL - - 71 ) THEN + COUNT ( * ) * - 37 * 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT + - 9 AS col1, SUM( - 3 ) * COALESCE ( + CASE - MIN( DISTINCT + 54 ) WHEN - - ( + 40 ) THEN 55 ELSE + 94 END, 99 )
----
-9
-282

skipif mysql # not compatible
query II rowsort label-1794
SELECT + - 9 AS col1, SUM ( - 3 ) * COALESCE ( + CASE - MIN ( DISTINCT + 54 ) WHEN - - ( + 40 ) THEN 55 ELSE + 94 END, 99 )
----
-9
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT DISTINCT + - SUM( DISTINCT + 7 ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT + - SUM ( DISTINCT + 7 ) col1
----
-7

query I rowsort
SELECT ALL - 27 * 96 AS col2
----
-2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1797
SELECT + 26 * 46 DIV 99 * + - 58 AS col1, COUNT( * )
----
-696
1

skipif mysql # not compatible
query II rowsort label-1797
SELECT + 26 * 46 / 99 * + - 58 AS col1, COUNT ( * )
----
-696
1

query I rowsort
SELECT + ( - ( 80 ) ) * - 84
----
6720

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT DISTINCT 73 * 49 + - 8 + + CASE WHEN - 10 <= NULL THEN NULL ELSE COALESCE ( + 54, 80 ) END AS col1, CASE + - 51 WHEN + - 12 * + ( 64 ) THEN 70 WHEN - 88 / - - 82 * - 21 + - - 99 THEN NULL END + ( - + 76 ) + + 40 * + COUNT( * ) * - 36 * + + 87 AS col0
----
3623
NULL

skipif mysql # not compatible
query II rowsort label-1799
SELECT DISTINCT 73 * 49 + - 8 + + CASE WHEN - 10 <= NULL THEN NULL ELSE COALESCE ( + 54, 80 ) END AS col1, CASE + - 51 WHEN + - 12 * + ( 64 ) THEN 70 WHEN - 88 / - - 82 * - 21 + - - 99 THEN NULL END + ( - + 76 ) + + 40 * + COUNT ( * ) * - 36 * + + 87 AS col0
----
3623
NULL

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

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

query I rowsort
SELECT + ( + COALESCE ( + 17, 91 ) )
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-1802
SELECT DISTINCT 71 * 21, 60 * 20 + - 34 + + - ( 41 ) * + - 79 + 36 DIV - + 15 AS col0
----
1491
4403

skipif mysql # not compatible
query II rowsort label-1802
SELECT DISTINCT 71 * 21, 60 * 20 + - 34 + + - ( 41 ) * + - 79 + 36 / - + 15 AS col0
----
1491
4403

query I rowsort
SELECT 79 * - - 43 AS col0
----
3397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT 50 * + 22 * CAST( + - AVG ( DISTINCT + + ( 51 ) ) AS SIGNED ) * - 12
----
673200

skipif mysql # not compatible
query I rowsort label-1804
SELECT 50 * + 22 * CAST ( + - AVG ( DISTINCT + + ( 51 ) ) AS INTEGER ) * - 12
----
673200

query I rowsort
SELECT 62 + + 95 + + 95
----
252

query I rowsort
SELECT 69 + 85 AS col2
----
154

query I rowsort
SELECT 4 * - 14 AS col1
----
-56

query I rowsort
SELECT 78 + + - ( - 96 )
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1809
SELECT CAST( NULL AS SIGNED ) * - + 5 + - AVG ( - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT CAST ( NULL AS INTEGER ) * - + 5 + - AVG ( - 11 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1810
SELECT 94 / COUNT ( * ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL 9 * - COUNT( DISTINCT - ( - CASE - 27 WHEN - ( - + 43 ) THEN NULL ELSE + - 95 END ) )
----
-9

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL 9 * - COUNT ( DISTINCT - ( - CASE - 27 WHEN - ( - + 43 ) THEN NULL ELSE + - 95 END ) )
----
-9

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

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

query I rowsort
SELECT 87 + - 79
----
8

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

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

query I rowsort
SELECT 93 * 69 AS col0
----
6417

query I rowsort
SELECT 29 * - 99 * CASE 51 WHEN - 36 + + - 7 THEN NULL ELSE + - 47 END
----
134937

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL - SUM( ALL - 73 ) + - 63 * + 64
----
-3959

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL - SUM ( ALL - 73 ) + - 63 * + 64
----
-3959

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT DISTINCT + + 21 + 93 + + - 86 DIV 37
----
112

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT + + 21 + 93 + + - 86 / 37
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1820
SELECT DISTINCT - ( - + CASE + 82 WHEN COUNT( * ) + + 61 THEN - CAST( + - COUNT( * ) AS SIGNED ) WHEN + 49 THEN NULL END ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT - ( - + CASE + 82 WHEN COUNT ( * ) + + 61 THEN - CAST ( + - COUNT ( * ) AS INTEGER ) WHEN + 49 THEN NULL END ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1821
SELECT ALL - + 8 + + 85 * 68 + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + - 0 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - + 8 + + 85 * 68 + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + - 0 * 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT COALESCE ( COUNT( * ), + NULLIF ( - 7, + CAST( - ( - COUNT( * ) ) AS SIGNED ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1822
SELECT COALESCE ( COUNT ( * ), + NULLIF ( - 7, + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL COUNT( * ) + - 45 + + - 97
----
-141

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL COUNT ( * ) + - 45 + + - 97
----
-141

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

skipif mysql # not compatible
query I rowsort label-1824
SELECT - 83 * + + ( - 54 ) * COUNT ( * ) AS col1
----
4482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT ALL - 40 + - 11 + + 9 * CAST( COUNT( * ) AS SIGNED ) + - 57
----
-99

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL - 40 + - 11 + + 9 * CAST ( COUNT ( * ) AS INTEGER ) + - 57
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT 34 DIV + + 24 + 11 + - 64
----
-52

skipif mysql # not compatible
query I rowsort label-1826
SELECT 34 / + + 24 + 11 + - 64
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1827
SELECT ( - + 31 ) + CAST( NULL AS DECIMAL ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT ( - + 31 ) + CAST ( NULL AS REAL ) + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1828
SELECT COUNT( DISTINCT + - 18 ) * CAST( + + NULLIF ( + 12, + - NULLIF ( - COUNT( * ), + 90 ) DIV COUNT( * ) DIV + COUNT( * ) * + 78 ) AS SIGNED ) DIV + ( - - 34 ) - + 5 + - + NULLIF ( - + 13, + 12 ) + - 96 - + 84 * + - 2 * + - 49
----
-8320

skipif mysql # not compatible
query I rowsort label-1828
SELECT COUNT ( DISTINCT + - 18 ) * CAST ( + + NULLIF ( + 12, + - NULLIF ( - COUNT ( * ), + 90 ) / COUNT ( * ) / + COUNT ( * ) * + 78 ) AS INTEGER ) / + ( - - 34 ) - + 5 + - + NULLIF ( - + 13, + 12 ) + - 96 - + 84 * + - 2 * + - 49
----
-8320

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL - CASE + + 3 WHEN - 61 * + + 11 + 3 * - - COUNT( * ) + + 82 THEN COUNT( * ) + COUNT( * ) WHEN + 17 THEN NULL WHEN + 80 * - 59 - + + 62 - - - 71 THEN + 70 ELSE 13 END AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL - CASE + + 3 WHEN - 61 * + + 11 + 3 * - - COUNT ( * ) + + 82 THEN COUNT ( * ) + COUNT ( * ) WHEN + 17 THEN NULL WHEN + 80 * - 59 - + + 62 - - - 71 THEN + 70 ELSE 13 END AS col2
----
-13

query II rowsort
SELECT + + 45 * - - 55 - + - 41 - - CASE - + ( - 27 ) WHEN + 22 THEN NULL ELSE - 47 END * ( + + 6 ) + + - 94 + - 42, - 6 * + + 31 AS col0
----
2098
-186

query I rowsort
SELECT DISTINCT - 82 * + 82 AS col1
----
-6724

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT SUM( + + 10 ) + + 99 col2
----
109

skipif mysql # not compatible
query I rowsort label-1832
SELECT SUM ( + + 10 ) + + 99 col2
----
109

query I rowsort
SELECT 59 * + COALESCE ( CASE + 96 WHEN - 38 THEN NULL WHEN + + 86 * - 6 THEN - - 14 END, - 42 )
----
-2478

query I rowsort
SELECT DISTINCT 69 * + - 58 AS col1
----
-4002

query II rowsort
SELECT + 66 AS col2, + 86
----
66
86

query I rowsort
SELECT 17 * - 94 * - 92 + - 64 * + - 65
----
151176

query II rowsort
SELECT DISTINCT - 17 AS col1, 40 * ( - NULLIF ( + - 93, 91 ) ) AS col1
----
-17
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT 33 * - COUNT( * ) * - - SUM( DISTINCT 98 ) * - 28 + - + COUNT( DISTINCT - 2 )
----
90551

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT 33 * - COUNT ( * ) * - - SUM ( DISTINCT 98 ) * - 28 + - + COUNT ( DISTINCT - 2 )
----
90551

query I rowsort
SELECT 97 * - 51 AS col1
----
-4947

query I rowsort
SELECT ALL 68 * - 42 AS col1
----
-2856

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

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT - ( - COUNT ( * ) ) / COUNT ( * )
----
1

query I rowsort
SELECT 23 + 85 AS col0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT 29 DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1843
SELECT 29 / + 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT MAX( ALL + 63 ) + + + 17 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT MAX ( ALL + 63 ) + + + 17 AS col2
----
80

query I rowsort
SELECT ALL + 82 + 0 + + 93 + 15 + - 93
----
97

query I rowsort
SELECT - 31 + + 4
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT ALL 1 + + CAST( + 35 AS SIGNED ) + + - 80 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL 1 + + CAST ( + 35 AS INTEGER ) + + - 80 AS col2
----
-44

query I rowsort
SELECT DISTINCT - 93 * + 16
----
-1488

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - - 56 * CASE - + 94 WHEN 53 THEN COUNT( ALL - 52 ) ELSE - 34 END
----
-1904

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - - 56 * CASE - + 94 WHEN 53 THEN COUNT ( ALL - 52 ) ELSE - 34 END
----
-1904

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL + + COALESCE ( - COUNT( * ), - 13 ) + 37
----
36

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + + COALESCE ( - COUNT ( * ), - 13 ) + 37
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT ALL - + 81 + 35 + - 34 DIV + 76 + 23
----
-23

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL - + 81 + 35 + - 34 / + 76 + 23
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT MIN( + 46 ) - + 9 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1853
SELECT MIN ( + 46 ) - + 9 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1854
SELECT DISTINCT + NULLIF ( + ( NULLIF ( - COUNT( * ), + + ( CAST( NULL AS DECIMAL ) ) ) ), 71 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT + NULLIF ( + ( NULLIF ( - COUNT ( * ), + + ( CAST ( NULL AS REAL ) ) ) ), 71 ) col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL COUNT( * ) * - 77 + 23 * + - 81 AS col0
----
-1940

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL COUNT ( * ) * - 77 + 23 * + - 81 AS col0
----
-1940

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

query I rowsort
SELECT + 98 * + + 98
----
9604

query I rowsort
SELECT DISTINCT + NULLIF ( - 73, - + 31 )
----
-73

query I rowsort
SELECT + 4 * - 59 * - 25 AS col0
----
5900

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

skipif mysql # not compatible
query II rowsort label-1861
SELECT ALL + COUNT ( * ) / - 49, + COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT ALL + 66 * + + 89 + - COUNT( * ) DIV 98
----
5874

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL + 66 * + + 89 + - COUNT ( * ) / 98
----
5874

query I rowsort
SELECT - 68 * + 95 AS col1
----
-6460

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1864
SELECT - CAST( NULL AS SIGNED ) + - - 66 AS col2, 81 DIV - 62
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1864
SELECT - CAST ( NULL AS INTEGER ) + - - 66 AS col2, 81 / - 62
----
NULL
-1

query I rowsort
SELECT - CASE + 39 WHEN + COALESCE ( + 9, + COALESCE ( 91, - + 76 - - - 92 ) ) THEN - 89 * + 42 * 88 ELSE - 74 * - 71 + 29 + + 7 * 4 END AS col2
----
-5311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1866
SELECT + 9 * + SUM( ALL - + CAST( - - 44 AS SIGNED ) ), ( + 68 ) AS col1
----
-396
68

skipif mysql # not compatible
query II rowsort label-1866
SELECT + 9 * + SUM ( ALL - + CAST ( - - 44 AS INTEGER ) ), ( + 68 ) AS col1
----
-396
68

query I rowsort
SELECT ALL 14 + 97 * + 30
----
2924

query I rowsort
SELECT + 20 + - 70 AS col1
----
-50

query I rowsort
SELECT DISTINCT 20 + - + 76
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1870
SELECT ALL SUM( CAST( 86 AS SIGNED ) ) + + 51 + + 55 + 70 DIV - + 85 * + COUNT( * ) AS col2
----
192

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL SUM ( CAST ( 86 AS INTEGER ) ) + + 51 + + 55 + 70 / - + 85 * + COUNT ( * ) AS col2
----
192

query I rowsort
SELECT ALL + ( + 37 ) col1
----
37

query I rowsort
SELECT + 86 * ( + - 14 ) AS col1
----
-1204

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT + - 95 + - + COUNT( * ) + 46 col1
----
-50

skipif mysql # not compatible
query I rowsort label-1873
SELECT + - 95 + - + COUNT ( * ) + 46 col1
----
-50

query I rowsort
SELECT - + COALESCE ( 85, + 37 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT + SUM( DISTINCT - + 99 ), - 41 + 60 - 58 * + 43 * + 81 AS col1
----
-99
-201995

skipif mysql # not compatible
query II rowsort label-1875
SELECT + SUM ( DISTINCT - + 99 ), - 41 + 60 - 58 * + 43 * + 81 AS col1
----
-99
-201995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1876
SELECT DISTINCT 35 + + 88 - + 1 + + - 68 * - - 84 * + + 0 DIV - + COUNT( * ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT 35 + + 88 - + 1 + + - 68 * - - 84 * + + 0 / - + COUNT ( * ) AS col1
----
122

query I rowsort
SELECT + + 34 * + 13 * + 79 AS col2
----
34918

query I rowsort
SELECT + 36 + + 46 + 33 + + 83
----
198

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL - 99 - - 38 * + + 21 - - - SUM( + 69 ) AS col2
----
630

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - 99 - - 38 * + + 21 - - - SUM ( + 69 ) AS col2
----
630

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

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

query I rowsort
SELECT - + 77 - - ( - 90 )
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1883
SELECT + CASE - 93 WHEN + COUNT( + 76 ) - CAST( + 78 AS SIGNED ) * + 28 THEN - NULLIF ( + ( 33 ), - 27 - 63 * 53 ) WHEN - NULLIF ( COUNT( + + CAST( NULL AS SIGNED ) ), ( 53 ) + ( + 59 ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT + CASE - 93 WHEN + COUNT ( + 76 ) - CAST ( + 78 AS INTEGER ) * + 28 THEN - NULLIF ( + ( 33 ), - 27 - 63 * 53 ) WHEN - NULLIF ( COUNT ( + + CAST ( NULL AS INTEGER ) ), ( 53 ) + ( + 59 ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1884
SELECT + 41 DIV 38 + + 66 + + 7 AS col1, 18 + - - 16 + + 49 - 85 * + 13 AS col0
----
74
-1022

skipif mysql # not compatible
query II rowsort label-1884
SELECT + 41 / 38 + + 66 + + 7 AS col1, 18 + - - 16 + + 49 - 85 * + 13 AS col0
----
74
-1022

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT + + 33 * - - 35 * - MAX( - + 21 ) AS col2
----
24255

skipif mysql # not compatible
query I rowsort label-1885
SELECT + + 33 * - - 35 * - MAX ( - + 21 ) AS col2
----
24255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1886
SELECT + 27 DIV + - MIN( - 37 ) + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-1886
SELECT + 27 / + - MIN ( - 37 ) + - 25
----
-25

query I rowsort
SELECT - 10 + 49
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL + CASE + MAX( DISTINCT - 26 ) WHEN + 39 THEN - 71 WHEN + 11 * - 54 THEN NULL END * + - COUNT( * ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + CASE + MAX ( DISTINCT - 26 ) WHEN + 39 THEN - 71 WHEN + 11 * - 54 THEN NULL END * + - COUNT ( * ) * + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 40 * + - 18 + + + 61 AS col1
----
-659

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1890
SELECT ( + MIN( ALL + 18 ) ) DIV - 79 * 12 + - + COALESCE ( + - 98, + 6 ), 25 * + 9 AS col1
----
98
225

skipif mysql # not compatible
query II rowsort label-1890
SELECT ( + MIN ( ALL + 18 ) ) / - 79 * 12 + - + COALESCE ( + - 98, + 6 ), 25 * + 9 AS col1
----
98
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1891
SELECT - 39 DIV + - COUNT( * ) col2
----
39

skipif mysql # not compatible
query I rowsort label-1891
SELECT - 39 / + - COUNT ( * ) col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1892
SELECT - ( + ( CASE COUNT( * ) WHEN 20 + + + ( 80 ) THEN 34 * - 81 END ) ) * - COALESCE ( - + 44, - - 37 + + + 97 + + 21 + + CAST( NULL AS SIGNED ) - 97 * + 94 / - 21 * - - 25 * 84 + + 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT - ( + ( CASE COUNT ( * ) WHEN 20 + + + ( 80 ) THEN 34 * - 81 END ) ) * - COALESCE ( - + 44, - - 37 + + + 97 + + 21 + + CAST ( NULL AS INTEGER ) - 97 * + 94 / - 21 * - - 25 * 84 + + 95 ) AS col1
----
NULL

query I rowsort
SELECT ( 73 ) col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT ALL - 95 * + NULLIF ( 62, - 2 ) * 44 + - 7 + - COUNT( * ) * + - 15 + + + MAX( DISTINCT 1 ) DIV - 65
----
-259152

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL - 95 * + NULLIF ( 62, - 2 ) * 44 + - 7 + - COUNT ( * ) * + - 15 + + + MAX ( DISTINCT 1 ) / - 65
----
-259152

query I rowsort
SELECT CASE 8 WHEN + NULLIF ( + - 0, + 47 ) * - 60 * + 1 THEN + 96 WHEN + 58 THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1897
SELECT ALL + CAST( ( + COUNT( * ) ) AS SIGNED ), + 53 * 47 col2
----
1
2491

skipif mysql # not compatible
query II rowsort label-1897
SELECT ALL + CAST ( ( + COUNT ( * ) ) AS INTEGER ), + 53 * 47 col2
----
1
2491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1898
SELECT DISTINCT 76 * - 76 + 63 + - CASE + - 4 WHEN - COUNT( ALL + 6 ) * 75 THEN + ( 36 ) ELSE + - ( - COUNT( * ) ) DIV + - NULLIF ( - - 35, - 1 ) END * - 64 AS col0
----
-5713

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT 76 * - 76 + 63 + - CASE + - 4 WHEN - COUNT ( ALL + 6 ) * 75 THEN + ( 36 ) ELSE + - ( - COUNT ( * ) ) / + - NULLIF ( - - 35, - 1 ) END * - 64 AS col0
----
-5713

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1899
SELECT - 73 DIV - + SUM( DISTINCT + + 53 ), - 61 + + COUNT( * ) + + + 44 - - 46 * + 32 * + MAX( DISTINCT - 4 ) * 22 + - 27 + + 64 - 72 + + 51 * 3 AS col1
----
1
-129434

skipif mysql # not compatible
query II rowsort label-1899
SELECT - 73 / - + SUM ( DISTINCT + + 53 ), - 61 + + COUNT ( * ) + + + 44 - - 46 * + 32 * + MAX ( DISTINCT - 4 ) * 22 + - 27 + + 64 - 72 + + 51 * 3 AS col1
----
1
-129434

query I rowsort
SELECT ALL + 68 * 79 + + 27
----
5399

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1901
SELECT COALESCE ( CAST( 78 AS SIGNED ), - CAST( - + 16 AS SIGNED ) ), - 48 AS col2
----
78
-48

skipif mysql # not compatible
query II rowsort label-1901
SELECT COALESCE ( CAST ( 78 AS INTEGER ), - CAST ( - + 16 AS INTEGER ) ), - 48 AS col2
----
78
-48

query I rowsort
SELECT - NULLIF ( + 20, + 83 + - - 15 ) AS col0
----
-20

query I rowsort
SELECT ALL 69 * - 32 + + 40 * 21
----
-1368

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT 13, 92 - - COUNT( * ) AS col1
----
13
93

skipif mysql # not compatible
query II rowsort label-1905
SELECT 13, 92 - - COUNT ( * ) AS col1
----
13
93

query I rowsort
SELECT + - 49 * + - 5
----
245

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1908
SELECT - 14 AS col2, + NULLIF ( 32, - 58 ) * - 15 - + 38 DIV - MIN( + 52 ) * + 75 + - 57 * + ( - 34 ) + + 26
----
-14
1484

skipif mysql # not compatible
query II rowsort label-1908
SELECT - 14 AS col2, + NULLIF ( 32, - 58 ) * - 15 - + 38 / - MIN ( + 52 ) * + 75 + - 57 * + ( - 34 ) + + 26
----
-14
1484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1909
SELECT DISTINCT ( - CAST( + + 89 AS SIGNED ) )
----
-89

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT ( - CAST ( + + 89 AS INTEGER ) )
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL + 28 - + CASE + 20 WHEN + 57 * - + COUNT( DISTINCT 99 ) THEN COUNT( * ) WHEN - + COALESCE ( - COUNT( * ), - 67 * - ( + 71 ) + + 71 / 63 + 57 ) / + 60 * 22 * - COUNT( * ) + 69 THEN NULL WHEN - 77 + - - 80 * + 17 * 81 THEN + + ( + - 27 ) * 8 + - AVG ( ALL + ( - - 97 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + 28 - + CASE + 20 WHEN + 57 * - + COUNT ( DISTINCT 99 ) THEN COUNT ( * ) WHEN - + COALESCE ( - COUNT ( * ), - 67 * - ( + 71 ) + + 71 / 63 + 57 ) / + 60 * 22 * - COUNT ( * ) + 69 THEN NULL WHEN - 77 + - - 80 * + 17 * 81 THEN + + ( + - 27 ) * 8 + - AVG ( ALL + ( - - 97 ) ) END
----
NULL

query I rowsort
SELECT 78 + - - ( - 62 ) AS col1
----
16

query I rowsort
SELECT 24 + + 59 AS col0
----
83

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

skipif mysql # not compatible
query I rowsort label-1914
SELECT 27 / + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT - 92 * - - COUNT( * ) + - 34 - - - MAX( DISTINCT + - 31 ) * ( + 73 )
----
2137

skipif mysql # not compatible
query I rowsort label-1915
SELECT - 92 * - - COUNT ( * ) + - 34 - - - MAX ( DISTINCT + - 31 ) * ( + 73 )
----
2137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL - - CASE + 97 WHEN + 82 + - COUNT( * ) THEN NULL WHEN 95 THEN 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - - CASE + 97 WHEN + 82 + - COUNT ( * ) THEN NULL WHEN 95 THEN 38 END
----
NULL

query I rowsort
SELECT DISTINCT 10 * + 77
----
770

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT 78 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT 78 / + 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT 13 * - + 70 DIV COALESCE ( + COUNT( * ), - 90 )
----
-910

skipif mysql # not compatible
query I rowsort label-1920
SELECT 13 * - + 70 / COALESCE ( + COUNT ( * ), - 90 )
----
-910

query I rowsort
SELECT ( - - 65 ) * + 69
----
4485

query II rowsort
SELECT 23 * 67 AS col0, - 38
----
1541
-38

query I rowsort
SELECT ALL + 49 + + - 14 AS col2
----
35

query II rowsort
SELECT 85 AS col0, 83 * - 28
----
85
-2324

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT 50 * - COUNT( * ) - 4 + - + 73 * + + 91 AS col1
----
-6697

skipif mysql # not compatible
query I rowsort label-1925
SELECT 50 * - COUNT ( * ) - 4 + - + 73 * + + 91 AS col1
----
-6697

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1926
SELECT DISTINCT - 74, CAST( + + 58 AS SIGNED ) AS col2
----
-74
58

skipif mysql # not compatible
query II rowsort label-1926
SELECT DISTINCT - 74, CAST ( + + 58 AS INTEGER ) AS col2
----
-74
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL COUNT( * ) + 20 * + 93 col0
----
1861

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL COUNT ( * ) + 20 * + 93 col0
----
1861

query I rowsort
SELECT DISTINCT + 5 + 31 AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT ALL - CAST( + NULLIF ( 28, - - 58 ) AS SIGNED ) + 94
----
66

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL - CAST ( + NULLIF ( 28, - - 58 ) AS INTEGER ) + 94
----
66

query II rowsort
SELECT 18 AS col1, + 78
----
18
78

query I rowsort
SELECT 38 * + 38 AS col2
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL - MAX( DISTINCT + - ( - ( + 80 ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - MAX ( DISTINCT + - ( - ( + 80 ) ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT NULLIF ( + - 6, - 88 ) + - 25 + - - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-1934
SELECT NULLIF ( + - 6, - 88 ) + - 25 + - - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - COUNT( * ) * COUNT( * ) - 40 * + 11 AS col2
----
-441

skipif mysql # not compatible
query I rowsort label-1935
SELECT - COUNT ( * ) * COUNT ( * ) - 40 * + 11 AS col2
----
-441

query I rowsort
SELECT - ( NULLIF ( - + ( - ( - 33 ) ), - 4 ) ) + 3 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1937
SELECT ALL - 73 - - 80 * + 67 + + - COALESCE ( COUNT( * ), - 10 * + - 29 * 50 + - CAST( NULL AS SIGNED ) DIV + 33 )
----
5286

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - 73 - - 80 * + 67 + + - COALESCE ( COUNT ( * ), - 10 * + - 29 * 50 + - CAST ( NULL AS INTEGER ) / + 33 )
----
5286

query II rowsort
SELECT - 77 * - 69 AS col0, - 6 + 36 + + 47 * + 25 col2
----
5313
1205

query I rowsort
SELECT 44 * - 44 AS col0
----
-1936

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT + COUNT( ALL + 34 ) + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1940
SELECT + COUNT ( ALL + 34 ) + 26 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT - COUNT( DISTINCT + 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-1941
SELECT - COUNT ( DISTINCT + 60 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL - 12 * + + 7 * - - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL - 12 * + + 7 * - - COUNT ( * )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1943
SELECT NULLIF ( - 75, - 24 * + - COUNT( * ) + + MAX( + 23 ) ) * COUNT( * ) AS col1, - 87 + + + ( CAST( AVG ( + + 96 ) AS SIGNED ) ) + 36 * - COUNT( * )
----
-75
-27

skipif mysql # not compatible
query II rowsort label-1943
SELECT NULLIF ( - 75, - 24 * + - COUNT ( * ) + + MAX ( + 23 ) ) * COUNT ( * ) AS col1, - 87 + + + ( CAST ( AVG ( + + 96 ) AS INTEGER ) ) + 36 * - COUNT ( * )
----
-75
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1944
SELECT + 18 + + CASE + 47 WHEN - ( - 88 ) / + + 86 + - ( + 10 ) THEN + 21 WHEN + 0 THEN NULL END + + CAST( - 57 AS SIGNED ) * - COUNT( * ) * - - 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT + 18 + + CASE + 47 WHEN - ( - 88 ) / + + 86 + - ( + 10 ) THEN + 21 WHEN + 0 THEN NULL END + + CAST ( - 57 AS INTEGER ) * - COUNT ( * ) * - - 79 col0
----
NULL

query II rowsort
SELECT ALL - 13 AS col2, - 10
----
-13
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT - 40 DIV + - 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT - 40 / + - 83 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT 3 * - + COUNT( 49 ) * + - CASE - - COUNT( * ) WHEN - + COUNT( * ) THEN - + 42 WHEN NULLIF ( 36, 26 ) THEN - - 85 + - 12 END AS col0, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-1947
SELECT 3 * - + COUNT ( 49 ) * + - CASE - - COUNT ( * ) WHEN - + COUNT ( * ) THEN - + 42 WHEN NULLIF ( 36, 26 ) THEN - - 85 + - 12 END AS col0, 22
----
NULL
22

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

skipif mysql # not compatible
query I rowsort label-1948
SELECT - COUNT ( * ) * 5
----
-5

query I rowsort
SELECT - 93 * + 48 * - - ( + 70 ) * 57 * - 90 + NULLIF ( + + 84, - 10 ) * - - 97 col0
----
1603030548

query II rowsort
SELECT - 38 AS col1, 48 * - 43 * - 96 col1
----
-38
198144

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - 67 + 85 + + + MIN( + 38 )
----
56

skipif mysql # not compatible
query I rowsort label-1951
SELECT - 67 + 85 + + + MIN ( + 38 )
----
56

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT + 16 - - - 96 + + - CAST( - + COUNT( * ) AS SIGNED ) + + - 86 * - 84 + + 44 - + - CAST( + - 40 AS SIGNED ) AS col1
----
7149

skipif mysql # not compatible
query I rowsort label-1954
SELECT + 16 - - - 96 + + - CAST ( - + COUNT ( * ) AS INTEGER ) + + - 86 * - 84 + + 44 - + - CAST ( + - 40 AS INTEGER ) AS col1
----
7149

query II rowsort
SELECT ALL - 5 * + 40 AS col1, 26
----
-200
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1956
SELECT ALL - ( + CAST( ( + - COUNT( DISTINCT - 63 ) ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - ( + CAST ( ( + - COUNT ( DISTINCT - 63 ) ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL COUNT( - 21 ) + 90
----
91

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL COUNT ( - 21 ) + 90
----
91

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

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT MAX ( ( 28 ) )
----
28

query I rowsort
SELECT ALL - 53 + 19 col1
----
-34

query I rowsort
SELECT 4 - + + 27 * - 69 * - 5
----
-9311

onlyif mysql # aggregate syntax: 
query II rowsort label-1961
SELECT + MAX( 7 ) AS col2, COUNT( - 1 ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-1961
SELECT + MAX ( 7 ) AS col2, COUNT ( - 1 ) AS col1
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT + MAX( + - 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1962
SELECT + MAX ( + - 46 ) AS col0
----
-46

query II rowsort
SELECT ALL 91 * + 74 AS col2, 51 * 97
----
6734
4947

query I rowsort
SELECT ALL 99 * 22 + + 35 AS col2
----
2213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT - ( + CASE + + 75 WHEN - 56 * 68 * + 45 * + 20 THEN - 19 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + 58 END ) * - - COALESCE ( + 56, + 17, COUNT( * ), + 67 ) + 39 AS col0
----
-3209

skipif mysql # not compatible
query I rowsort label-1965
SELECT - ( + CASE + + 75 WHEN - 56 * 68 * + 45 * + 20 THEN - 19 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 58 END ) * - - COALESCE ( + 56, + 17, COUNT ( * ), + 67 ) + 39 AS col0
----
-3209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL + 91 * 24 * - + CAST( 71 AS SIGNED ) - - - 80
----
-155144

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + 91 * 24 * - + CAST ( 71 AS INTEGER ) - - - 80
----
-155144

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT + MAX( DISTINCT - - 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1967
SELECT + MAX ( DISTINCT - - 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1968
SELECT ALL 56 * - - COUNT( * ) * + 86 AS col1, + MIN( - 51 )
----
4816
-51

skipif mysql # not compatible
query II rowsort label-1968
SELECT ALL 56 * - - COUNT ( * ) * + 86 AS col1, + MIN ( - 51 )
----
4816
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT 19 * + 55 * + 42 + - 14 * - + MIN( ALL + - 82 )
----
42742

skipif mysql # not compatible
query I rowsort label-1969
SELECT 19 * + 55 * + 42 + - 14 * - + MIN ( ALL + - 82 )
----
42742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT ALL CAST( NULL AS SIGNED ) * ( - 3 ) / + - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL CAST ( NULL AS INTEGER ) * ( - 3 ) / + - 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT COUNT( + NULLIF ( 66, + 18 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1971
SELECT COUNT ( + NULLIF ( 66, + 18 ) ) AS col0
----
1

query I rowsort
SELECT 57 + + 4 + + 69 - + - 75
----
205

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1975
SELECT CAST ( - + 23 AS INTEGER ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1976
SELECT ALL - MAX( ( 98 ) ) * - - ( - COUNT( * ) ) AS col2, - 94 * - ( - - 34 ) * + COUNT( DISTINCT + + 59 ) / - 74 + - CAST( NULL AS SIGNED )
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1976
SELECT ALL - MAX ( ( 98 ) ) * - - ( - COUNT ( * ) ) AS col2, - 94 * - ( - - 34 ) * + COUNT ( DISTINCT + + 59 ) / - 74 + - CAST ( NULL AS INTEGER )
----
98
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1977
SELECT - 11 * - 2 AS col1, CAST( NULL AS SIGNED ) AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-1977
SELECT - 11 * - 2 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL + COUNT( ALL + ( 17 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL + COUNT ( ALL + ( 17 ) ) AS col2
----
1

query I rowsort
SELECT ALL - + 30 * ( - 16 ) AS col2
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + + 95 * - 27 + - COUNT( * )
----
-2566

skipif mysql # not compatible
query I rowsort label-1980
SELECT + + 95 * - 27 + - COUNT ( * )
----
-2566

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1981
SELECT DISTINCT - 67 * + + 68 + - CAST( - + 75 AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT - 67 * + + 68 + - CAST ( - + 75 AS INTEGER ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 17 + - - 33
----
50

query I rowsort
SELECT - + 45 - + + 1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL + COUNT( * ) * 34 + 47 + - 79 * + 46 * + - 89 + ( - 16 ) * + 38 AS col1
----
322899

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL + COUNT ( * ) * 34 + 47 + - 79 * + 46 * + - 89 + ( - 16 ) * + 38 AS col1
----
322899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1985
SELECT DISTINCT - 18 + 42 - + + 41 DIV COUNT( * ) * - 79 + - 41 AS col1
----
3222

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT - 18 + 42 - + + 41 / COUNT ( * ) * - 79 + - 41 AS col1
----
3222

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

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT - - 88 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL + - COALESCE ( - 7, - 21 + 53 ) + + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + - COALESCE ( - 7, - 21 + 53 ) + + - COUNT ( * )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT ALL - ( - + 72 ) DIV SUM( + ( - 72 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - ( - + 72 ) / SUM ( + ( - 72 ) )
----
-1

query I rowsort
SELECT ALL - 74 + + 8 * + 81 AS col1
----
574

query I rowsort
SELECT DISTINCT - 15 + 70 * - + 35
----
-2465

onlyif mysql # aggregate syntax: 
query II rowsort label-1991
SELECT - 52 * 36 * + 66 AS col0, - 96 + NULLIF ( + ( 67 ), - 93 / SUM( ALL + + 12 ) ) + - ( 36 ) + - - 36 * - 3 * - 5 + + 87 col2
----
-123552
562

skipif mysql # not compatible
query II rowsort label-1991
SELECT - 52 * 36 * + 66 AS col0, - 96 + NULLIF ( + ( 67 ), - 93 / SUM ( ALL + + 12 ) ) + - ( 36 ) + - - 36 * - 3 * - 5 + + 87 col2
----
-123552
562

query I rowsort
SELECT - 57 + + + 25 * - - 29 * 49
----
35468

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

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

query II rowsort
SELECT - 13 AS col2, 40 AS col1
----
-13
40

query I rowsort
SELECT - 21 * - 16 AS col0
----
336

query I rowsort
SELECT ALL CASE + 73 WHEN 41 + - 68 THEN + + 7 ELSE + - 95 * + 38 END
----
-3610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1997
SELECT DISTINCT + 80 DIV + COUNT( * ) - + + 54 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT + 80 / + COUNT ( * ) - + + 54 AS col2
----
26

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2000
SELECT + 26 * 38 * - + 62, + COUNT( * ) AS col0
----
-61256
1

skipif mysql # not compatible
query II rowsort label-2000
SELECT + 26 * 38 * - + 62, + COUNT ( * ) AS col0
----
-61256
1

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

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

query I rowsort
SELECT - 55 * + 69 AS col2
----
-3795

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT ( - CASE - CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) WHEN - 6 * + 58 THEN NULL WHEN - - 99 THEN CASE + - 74 WHEN 27 THEN NULL ELSE - - 73 / - - 27 END * + 16 * 61 * - - 59 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT ( - CASE - CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) WHEN - 6 * + 58 THEN NULL WHEN - - 99 THEN CASE + - 74 WHEN 27 THEN NULL ELSE - - 73 / - - 27 END * + 16 * 61 * - - 59 END )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT 76 * - - 52 + - COUNT( * ) * - + 32 - + 45
----
3939

skipif mysql # not compatible
query I rowsort label-2007
SELECT 76 * - - 52 + - COUNT ( * ) * - + 32 - + 45
----
3939

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2008
SELECT DISTINCT + COUNT( * ) DIV - 49 * COUNT( * ), - 37 AS col2
----
0
-37

skipif mysql # not compatible
query II rowsort label-2008
SELECT DISTINCT + COUNT ( * ) / - 49 * COUNT ( * ), - 37 AS col2
----
0
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2009
SELECT ALL 56 DIV + MAX( - ( 5 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL 56 / + MAX ( - ( 5 ) )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT + - 85 DIV - + 83
----
1

skipif mysql # not compatible
query I rowsort label-2010
SELECT + - 85 / - + 83
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT CASE + 67 WHEN + COUNT( * ) - COALESCE ( + + 48, ( - 13 ) / - 49 + 20, 31 ) THEN NULL ELSE - - 40 END * + - 19 + 45 + - 5 * + 5 AS col0
----
-740

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT CASE + 67 WHEN + COUNT ( * ) - COALESCE ( + + 48, ( - 13 ) / - 49 + 20, 31 ) THEN NULL ELSE - - 40 END * + - 19 + 45 + - 5 * + 5 AS col0
----
-740

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2013
SELECT + - COALESCE ( + - 59, - - CAST( ( - 39 ) AS SIGNED ) ) DIV - + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2013
SELECT + - COALESCE ( + - 59, - - CAST ( ( - 39 ) AS INTEGER ) ) / - + 84 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT + 31 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT + 31 / - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT + SUM( - 3 ) + 30 + + 31 + - + 6 col0
----
52

skipif mysql # not compatible
query I rowsort label-2015
SELECT + SUM ( - 3 ) + 30 + + 31 + - + 6 col0
----
52

query I rowsort
SELECT DISTINCT 36 * - + ( ( + 87 ) ) * 85 + - ( + - ( + - ( 89 ) ) )
----
-266309

query II rowsort
SELECT - + 55, 39 + 33 AS col0
----
-55
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2018
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + - 38 DIV - + 59
----
1

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + - 38 / - + 59
----
1

query I rowsort
SELECT ALL 86 + 55
----
141

query I rowsort
SELECT ALL + + ( + 96 ) + + ( + + 58 ) + + + 5
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2021
SELECT - + COUNT( * ) AS col2, - 31 * - 82 * + 19 * - 0 + 45 + 36 - + + 70 - COUNT( * ) + + + 79 - + + NULLIF ( - + 49, + - NULLIF ( - 0, + 99 + + - 28 * ( - 34 ) ) * - 87 ) DIV + + ( - 93 )
----
-1
89

skipif mysql # not compatible
query II rowsort label-2021
SELECT - + COUNT ( * ) AS col2, - 31 * - 82 * + 19 * - 0 + 45 + 36 - + + 70 - COUNT ( * ) + + + 79 - + + NULLIF ( - + 49, + - NULLIF ( - 0, + 99 + + - 28 * ( - 34 ) ) * - 87 ) / + + ( - 93 )
----
-1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT - + COUNT( * ) * - + 38 * + + 67
----
2546

skipif mysql # not compatible
query I rowsort label-2022
SELECT - + COUNT ( * ) * - + 38 * + + 67
----
2546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT ALL COALESCE ( 58, - CAST( NULL AS SIGNED ) )
----
58

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL COALESCE ( 58, - CAST ( NULL AS INTEGER ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT + NULLIF ( - SUM( DISTINCT - + 83 ), - 65 ) * + 78
----
6474

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + NULLIF ( - SUM ( DISTINCT - + 83 ), - 65 ) * + 78
----
6474

onlyif mysql # aggregate syntax: 
query II rowsort label-2025
SELECT - 93 + + 82 AS col1, + CASE + MAX( - 91 ) WHEN 98 THEN + 80 END
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-2025
SELECT - 93 + + 82 AS col1, + CASE + MAX ( - 91 ) WHEN 98 THEN + 80 END
----
-11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT + COALESCE ( + 12, SUM( ALL + - 92 ) ) * - 70 * + 35 AS col1
----
-29400

skipif mysql # not compatible
query I rowsort label-2026
SELECT + COALESCE ( + 12, SUM ( ALL + - 92 ) ) * - 70 * + 35 AS col1
----
-29400

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

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

query I rowsort
SELECT ALL + 90 * 27 AS col1
----
2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT - 22 + + CAST( - 63 AS SIGNED ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2029
SELECT - 22 + + CAST ( - 63 AS INTEGER ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT COUNT( * ) * SUM( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT COUNT ( * ) * SUM ( + 17 )
----
17

query I rowsort
SELECT DISTINCT - 18 - + ( + + 66 ) * 73 * + 5
----
-24108

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2034
SELECT DISTINCT + ( 82 ) DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT + ( 82 ) / 62 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT 38 + CASE + - 74 WHEN + 82 * - + 94 - + 54 THEN + 64 ELSE + 71 + + COUNT( * ) END AS col2
----
110

skipif mysql # not compatible
query I rowsort label-2035
SELECT 38 + CASE + - 74 WHEN + 82 * - + 94 - + 54 THEN + 64 ELSE + 71 + + COUNT ( * ) END AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL - CASE ( 50 ) WHEN + + ( COUNT( * ) ) THEN + 46 ELSE 92 END
----
-92

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL - CASE ( 50 ) WHEN + + ( COUNT ( * ) ) THEN + 46 ELSE 92 END
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT COUNT( * ) * MAX( ALL - + 57 ) + 52
----
-5

skipif mysql # not compatible
query I rowsort label-2037
SELECT COUNT ( * ) * MAX ( ALL - + 57 ) + 52
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT ALL 96 * + + COALESCE ( + + ( + - 63 ), + ( + + 50 ), + COUNT( * ) / - 28 + 60 + - 8 / + 64 + + 15 ) / 81 + - - CAST( NULL AS SIGNED ) + - 77 + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL 96 * + + COALESCE ( + + ( + - 63 ), + ( + + 50 ), + COUNT ( * ) / - 28 + 60 + - 8 / + 64 + + 15 ) / 81 + - - CAST ( NULL AS INTEGER ) + - 77 + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 83 * - 24
----
-1992

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT CASE + 74 WHEN + 87 THEN NULL ELSE - - NULLIF ( + COUNT( * ), + 54 ) + - 86 + - 83 - + - 93 END * - - COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2040
SELECT CASE + 74 WHEN + 87 THEN NULL ELSE - - NULLIF ( + COUNT ( * ), + 54 ) + - 86 + - 83 - + - 93 END * - - COUNT ( * ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL - 45 + - 18 + - MIN( 73 ) AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - 45 + - 18 + - MIN ( 73 ) AS col2
----
-136

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

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

query I rowsort
SELECT 70 * + 1 col0
----
70

query I rowsort
SELECT + 71 * 88 + 28 + + 27 + - 2
----
6301

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT DISTINCT - 51 + - + 12 + - + 15 + - 87 + - ( + - 25 ) + + + COUNT( * )
----
-139

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT - 51 + - + 12 + - + 15 + - 87 + - ( + - 25 ) + + + COUNT ( * )
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT DISTINCT - 82 + + COALESCE ( - 39, ( + - CAST( + 49 AS SIGNED ) ) ) col2
----
-121

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT - 82 + + COALESCE ( - 39, ( + - CAST ( + 49 AS INTEGER ) ) ) col2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT DISTINCT + + 46 + + 89 - - + 60 + ( - 73 ) DIV - + 95 AS col2
----
195

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + + 46 + + 89 - - + 60 + ( - 73 ) / - + 95 AS col2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL - ( NULLIF ( + + COUNT( * ), 45 ) ) + + 82
----
81

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL - ( NULLIF ( + + COUNT ( * ), 45 ) ) + + 82
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT DISTINCT 74 DIV - + 40 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT 74 / - + 40 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2050
SELECT ALL + COUNT( ALL - CAST( - + 69 AS DECIMAL ) ) + - COUNT( * ) + - + COUNT( ALL + - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL + COUNT ( ALL - CAST ( - + 69 AS REAL ) ) + - COUNT ( * ) + - + COUNT ( ALL + - 10 )
----
-1

query I rowsort
SELECT ( - 98 ) * 86 AS col1
----
-8428

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT - 54 * + + COALESCE ( ( + 66 ), - - 46, COUNT( DISTINCT 12 ) * - - 95 ) * - + ( COALESCE ( MAX( ALL + 93 ), - MAX( DISTINCT - 45 ) ) ) * - 97 + 91 + - MIN( - 62 ) AS col1
----
-32150691

skipif mysql # not compatible
query I rowsort label-2052
SELECT - 54 * + + COALESCE ( ( + 66 ), - - 46, COUNT ( DISTINCT 12 ) * - - 95 ) * - + ( COALESCE ( MAX ( ALL + 93 ), - MAX ( DISTINCT - 45 ) ) ) * - 97 + 91 + - MIN ( - 62 ) AS col1
----
-32150691

query I rowsort
SELECT 97 * - 91 col1
----
-8827

onlyif mysql # aggregate syntax: 
query II rowsort label-2054
SELECT 32 * + MAX( - 64 ), 87 col0
----
-2048
87

skipif mysql # not compatible
query II rowsort label-2054
SELECT 32 * + MAX ( - 64 ), 87 col0
----
-2048
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2055
SELECT ALL 87 * COUNT( * ) * 18, - 34 AS col1
----
1566
-34

skipif mysql # not compatible
query II rowsort label-2055
SELECT ALL 87 * COUNT ( * ) * 18, - 34 AS col1
----
1566
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL COUNT( * ) * NULLIF ( - 64, - - 64 * - 65 - 66 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL COUNT ( * ) * NULLIF ( - 64, - - 64 * - 65 - 66 ) AS col1
----
-64

query II rowsort
SELECT DISTINCT 16 AS col0, 37 * - 10 + - ( + 78 ) AS col1
----
16
-448

query I rowsort
SELECT ALL + 59 * 46 * + 36
----
97704

query I rowsort
SELECT 38 + - 23
----
15

query I rowsort
SELECT 51 - + - 28 + 78 AS col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT 57 + - MIN( ALL - 61 )
----
118

skipif mysql # not compatible
query I rowsort label-2061
SELECT 57 + - MIN ( ALL - 61 )
----
118

query I rowsort
SELECT ALL + 60 * 53 * - 69 * - + 98
----
21503160

query II rowsort
SELECT 24, 98 AS col1
----
24
98

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

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

query I rowsort
SELECT 47 * + 12
----
564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT ALL CAST( + 75 AS SIGNED ) * - COALESCE ( + CAST( - 33 AS SIGNED ), + 2 ) * - 83 * + 16 + + - CAST( + NULLIF ( + 13, + - 56 ) AS SIGNED )
----
-3286813

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL CAST ( + 75 AS INTEGER ) * - COALESCE ( + CAST ( - 33 AS INTEGER ), + 2 ) * - 83 * + 16 + + - CAST ( + NULLIF ( + 13, + - 56 ) AS INTEGER )
----
-3286813

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT ALL - COUNT( * ) AS col2, 13 * + 8 AS col0
----
-1
104

skipif mysql # not compatible
query II rowsort label-2067
SELECT ALL - COUNT ( * ) AS col2, 13 * + 8 AS col0
----
-1
104

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT 66 DIV + 14
----
4

skipif mysql # not compatible
query I rowsort label-2068
SELECT 66 / + 14
----
4

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

query I rowsort
SELECT 73 * + 90 AS col0
----
6570

query I rowsort
SELECT ALL + 70 + 36
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT 56 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT 56 / 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT 92 DIV 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2073
SELECT 92 / 78 AS col0
----
1

query I rowsort
SELECT ALL - 98 + 73 * ( + 26 )
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT 63 - - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-2075
SELECT 63 - - COUNT ( * )
----
64

query I rowsort
SELECT ALL + 25 * + 22
----
550

query I rowsort
SELECT DISTINCT + 53 + - 40
----
13

query I rowsort
SELECT DISTINCT 0 + + 98 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT ALL + 26 * CAST( - 99 AS SIGNED ) AS col1
----
-2574

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL + 26 * CAST ( - 99 AS INTEGER ) AS col1
----
-2574

query I rowsort
SELECT 35 * 37 + 89 * 72 col2
----
7703

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

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

query I rowsort
SELECT 81 + ( 63 ) AS col1
----
144

query I rowsort
SELECT - 22 * - 52 - 24
----
1120

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT 26 - - 61 DIV 88 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2085
SELECT 26 - - 61 / 88 AS col1
----
26

query I rowsort
SELECT ALL - ( 25 ) - - 2 * 98
----
171

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

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

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

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL 93 / + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT - MIN( ALL ( 33 ) ) * MIN( DISTINCT - 65 ) + + 46
----
2191

skipif mysql # not compatible
query I rowsort label-2089
SELECT - MIN ( ALL ( 33 ) ) * MIN ( DISTINCT - 65 ) + + 46
----
2191

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL + COUNT( * ) - + 24 * + 48 AS col1
----
-1151

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + COUNT ( * ) - + 24 * + 48 AS col1
----
-1151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2091
SELECT DISTINCT 28 * ( COUNT( 65 ) DIV 90 )
----
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT 28 * ( COUNT ( 65 ) / 90 )
----
0

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

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - 73 / - COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT NULLIF ( SUM( + 0 ), + ( - COUNT( * ) ) ) * + 85
----
0

skipif mysql # not compatible
query I rowsort label-2093
SELECT NULLIF ( SUM ( + 0 ), + ( - COUNT ( * ) ) ) * + 85
----
0

query I rowsort
SELECT DISTINCT 92 * 39
----
3588

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT 22 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-2096
SELECT 22 / 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT 57 * MIN( ALL + 33 * ( 26 * 4 ) ) AS col2
----
195624

skipif mysql # not compatible
query I rowsort label-2097
SELECT 57 * MIN ( ALL + 33 * ( 26 * 4 ) ) AS col2
----
195624

query I rowsort
SELECT + 91 * 59
----
5369

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT + CASE + NULLIF ( 37, + 56 * 0 + - 98 / + 33 ) WHEN + COALESCE ( NULLIF ( SUM( 85 ), 70 ), 70 / + COUNT( * ) ) THEN - 26 END * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT + CASE + NULLIF ( 37, + 56 * 0 + - 98 / + 33 ) WHEN + COALESCE ( NULLIF ( SUM ( 85 ), 70 ), 70 / + COUNT ( * ) ) THEN - 26 END * 8 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 90 ) + + 81 * + 51 AS col0
----
4041

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT + CASE 0 WHEN + ( 73 ) + ( - ( + 57 ) + ( COUNT( * ) ) ) THEN - ( 75 ) * COUNT( * ) ELSE - 69 END * - 83
----
5727

skipif mysql # not compatible
query I rowsort label-2101
SELECT + CASE 0 WHEN + ( 73 ) + ( - ( + 57 ) + ( COUNT ( * ) ) ) THEN - ( 75 ) * COUNT ( * ) ELSE - 69 END * - 83
----
5727

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL + 29 + + NULLIF ( 80, + MIN( ALL 96 ) )
----
109

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL + 29 + + NULLIF ( 80, + MIN ( ALL 96 ) )
----
109

query I rowsort
SELECT ALL 43 + 8 AS col2
----
51

query I rowsort
SELECT + 49 + 3 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT + MAX( - 68 ) - 44
----
-112

skipif mysql # not compatible
query I rowsort label-2105
SELECT + MAX ( - 68 ) - 44
----
-112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2106
SELECT - + 23 + - MAX( DISTINCT 41 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT - + 23 + - MAX ( DISTINCT 41 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + ( NULLIF ( - 25, - NULLIF ( + COUNT( * ), 87 ) ) )
----
-25

skipif mysql # not compatible
query I rowsort label-2107
SELECT + ( NULLIF ( - 25, - NULLIF ( + COUNT ( * ), 87 ) ) )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT + + NULLIF ( - 3, 46 * COUNT( * ) ) * 5 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT + + NULLIF ( - 3, 46 * COUNT ( * ) ) * 5 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ALL + COUNT( 12 ) * 80 + - 49
----
31

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL + COUNT ( 12 ) * 80 + - 49
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT + 75 DIV ( - 93 ) + 86 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2110
SELECT + 75 / ( - 93 ) + 86 AS col1
----
86

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

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

query I rowsort
SELECT DISTINCT 41 * - 76 + CASE 15 WHEN + 64 - - 99 * - 9 THEN + 67 END / 91
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + NULLIF ( 72, + 35 ) * ( - COUNT( + 34 ) + + COUNT( * ) * + NULLIF ( 12, 16 ) ) + + COUNT( * )
----
793

skipif mysql # not compatible
query I rowsort label-2114
SELECT + NULLIF ( 72, + 35 ) * ( - COUNT ( + 34 ) + + COUNT ( * ) * + NULLIF ( 12, 16 ) ) + + COUNT ( * )
----
793

query I rowsort
SELECT DISTINCT + 23 * 44
----
1012

query I rowsort
SELECT ALL + 86 * - 78 - - 68
----
-6640

query I rowsort
SELECT - 78 * + 82 AS col1
----
-6396

query I rowsort
SELECT + 22 * 67
----
1474

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT ALL - - 47 * + 87 - + 49 DIV + 35 AS col2
----
4088

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL - - 47 * + 87 - + 49 / + 35 AS col2
----
4088

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

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

query I rowsort
SELECT - + 30 * - 13
----
390

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

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

query I rowsort
SELECT - 80 + 42 * 65 col0
----
2650

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

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

query I rowsort
SELECT ALL - 78 * 2 * 38
----
-5928

query I rowsort
SELECT - 22 - 69
----
-91

query I rowsort
SELECT - 39 * 87 AS col2
----
-3393

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

query I rowsort
SELECT ALL ( 15 ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2130
SELECT DISTINCT CAST( - ( - 87 ) AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT CAST ( - ( - 87 ) AS INTEGER ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT DISTINCT + COUNT( * ) + + + CASE + CASE - 54 WHEN CASE 71 WHEN + 36 / - 65 THEN 24 * + 73 + + 33 ELSE NULL END THEN + 88 + - ( - 48 ) WHEN 75 - + 19 THEN NULL WHEN 56 THEN NULL ELSE ( + 6 ) END WHEN 79 * + 73 THEN - 85 * + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT + COUNT ( * ) + + + CASE + CASE - 54 WHEN CASE 71 WHEN + 36 / - 65 THEN 24 * + 73 + + 33 ELSE NULL END THEN + 88 + - ( - 48 ) WHEN 75 - + 19 THEN NULL WHEN 56 THEN NULL ELSE ( + 6 ) END WHEN 79 * + 73 THEN - 85 * + 57 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2132
SELECT DISTINCT - 60 + - MAX( ALL 51 ) + + ( - NULLIF ( COALESCE ( - 81, 78 + 71 ), - CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) - + 6 ) ) * 96
----
7665

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT - 60 + - MAX ( ALL 51 ) + + ( - NULLIF ( COALESCE ( - 81, 78 + 71 ), - CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) - + 6 ) ) * 96
----
7665

query I rowsort
SELECT DISTINCT 38 + + 14
----
52

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 19
----
NULL

query I rowsort
SELECT ALL + 70 + 69
----
139

query I rowsort
SELECT DISTINCT - 15 + - 30 + 28 * + 27 AS col0
----
711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2138
SELECT ALL 37 + + 63 DIV COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL 37 + + 63 / COUNT ( * ) AS col0
----
100

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT DISTINCT - COUNT( * ) + - + 13 DIV 31
----
-1

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT - COUNT ( * ) + - + 13 / 31
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT + - 8 * - - MIN( 15 ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-2141
SELECT + - 8 * - - MIN ( 15 ) AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT - + COUNT( * ) + COALESCE ( 5, - 45, 14 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT - + COUNT ( * ) + COALESCE ( 5, - 45, 14 ) AS col0
----
4

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2144
SELECT DISTINCT - + 54 DIV - - CAST( 3 AS SIGNED ) - 29 col1
----
-47

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT - + 54 / - - CAST ( 3 AS INTEGER ) - 29 col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2145
SELECT ALL + - 89 DIV - 24 - + MIN( DISTINCT + NULLIF ( - 30, - 52 + - 19 ) )
----
33

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL + - 89 / - 24 - + MIN ( DISTINCT + NULLIF ( - 30, - 52 + - 19 ) )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2146
SELECT 56 DIV - 44 - + 32 + 91
----
58

skipif mysql # not compatible
query I rowsort label-2146
SELECT 56 / - 44 - + 32 + 91
----
58

query I rowsort
SELECT + - 50 * + 60 * - 27 + - 74 AS col2
----
80926

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT ALL - + 69 DIV ( + 54 ) - - ( 31 )
----
30

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - + 69 / ( + 54 ) - - ( 31 )
----
30

query I rowsort
SELECT DISTINCT - 12 * - 62
----
744

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT DISTINCT CAST( 26 AS SIGNED ) * CAST( 59 - 49 AS SIGNED )
----
260

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT CAST ( 26 AS INTEGER ) * CAST ( 59 - 49 AS INTEGER )
----
260

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT DISTINCT - 67 DIV 3 * - 98 AS col2
----
2156

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - 67 / 3 * - 98 AS col2
----
2156

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

query I rowsort
SELECT + - 23 * + - 83
----
1909

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - 28 - 11 - - 6 * 20 * COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2158
SELECT - 28 - 11 - - 6 * 20 * COUNT ( * ) AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT + 39 DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 39 / + 59 AS col2
----
0

query I rowsort
SELECT + 98 + - 58
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT + ( 13 ) DIV 30 + 4 * - 94
----
-376

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + ( 13 ) / 30 + 4 * - 94
----
-376

query I rowsort
SELECT 61 + 11 * + + 20 + 42
----
323

query I rowsort
SELECT ALL + 1 + - 22 AS col1
----
-21

query I rowsort
SELECT 38 * + 79 AS col2
----
3002

query I rowsort
SELECT DISTINCT NULLIF ( + 22, AVG ( ALL + 84 ) * 62 ) + 3 AS col0
----
25

query II rowsort
SELECT ALL 18 col0, 95
----
18
95

query I rowsort
SELECT 51 + 74 AS col0
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT ALL ( + 54 ) + - - 21 DIV + 16 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL ( + 54 ) + - - 21 / + 16 AS col1
----
55

query I rowsort
SELECT ALL + ( 28 ) + - 51 * + 49
----
-2471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT + 84 + COALESCE ( - 7, CAST( NULL AS SIGNED ) )
----
77

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT + 84 + COALESCE ( - 7, CAST ( NULL AS INTEGER ) )
----
77

query I rowsort
SELECT DISTINCT - 29 + CASE NULLIF ( 73, + 89 ) WHEN 40 THEN + 43 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT 47 + + 3 - - + NULLIF ( + COALESCE ( 84, + ( + CASE + 18 WHEN NULLIF ( + 18, 99 ) / + NULLIF ( 27, 94 ) - COUNT( * ) THEN - 12 END ) + - 38, + 84 * 77 + - COUNT( * ) ), - 84 ) + + 11 * + 45
----
629

skipif mysql # not compatible
query I rowsort label-2172
SELECT 47 + + 3 - - + NULLIF ( + COALESCE ( 84, + ( + CASE + 18 WHEN NULLIF ( + 18, 99 ) / + NULLIF ( 27, 94 ) - COUNT ( * ) THEN - 12 END ) + - 38, + 84 * 77 + - COUNT ( * ) ), - 84 ) + + 11 * + 45
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL + 66 + - 70 - + COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + 66 + - 70 - + COUNT ( * ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2174
SELECT - 41 AS col0, 83 * + 28 * ( - CAST( NULL AS SIGNED ) ) AS col2
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-2174
SELECT - 41 AS col0, 83 * + 28 * ( - CAST ( NULL AS INTEGER ) ) AS col2
----
-41
NULL

query I rowsort
SELECT 63 + 80 + - + 55
----
88

query II rowsort
SELECT ALL 97, - 32 AS col2
----
97
-32

query I rowsort
SELECT 22 + 53
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2178
SELECT ALL + NULLIF ( + - 44, + CAST( MAX( ALL 48 ) AS SIGNED ) * 58 ) - - 47 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL + NULLIF ( + - 44, + CAST ( MAX ( ALL 48 ) AS INTEGER ) * 58 ) - - 47 / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2179
SELECT ALL - 81 AS col0, 67 - - 33 DIV + 35
----
-81
67

skipif mysql # not compatible
query II rowsort label-2179
SELECT ALL - 81 AS col0, 67 - - 33 / + 35
----
-81
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2180
SELECT MAX( - - 35 ) + CAST( + AVG ( ALL 96 ) AS SIGNED )
----
131

skipif mysql # not compatible
query I rowsort label-2180
SELECT MAX ( - - 35 ) + CAST ( + AVG ( ALL 96 ) AS INTEGER )
----
131

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

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

query I rowsort
SELECT + 37 + - - 58
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT MIN( ALL - 86 ) * + 20 + COUNT( * ) AS col2
----
-1719

skipif mysql # not compatible
query I rowsort label-2183
SELECT MIN ( ALL - 86 ) * + 20 + COUNT ( * ) AS col2
----
-1719

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2184
SELECT 91 + 62 * CAST( NULL AS DECIMAL ) * 83 + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT 91 + 62 * CAST ( NULL AS REAL ) * 83 + + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL + 74 * ( + 16 ) + - COUNT( * )
----
1183

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL + 74 * ( + 16 ) + - COUNT ( * )
----
1183

query I rowsort
SELECT - ( - - 85 )
----
-85

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

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

query I rowsort
SELECT - 13 * - ( + - 49 ) - 79 AS col0
----
-716

query I rowsort
SELECT - + 98 / 19 + - - CASE 84 WHEN 37 * - 77 + ( 85 ) THEN + 72 ELSE NULL END + 77 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT ALL - - CASE 38 WHEN - 76 - 10 THEN + 70 - - COUNT( * ) ELSE + MIN( ALL + 78 ) END AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - - CASE 38 WHEN - 76 - 10 THEN + 70 - - COUNT ( * ) ELSE + MIN ( ALL + 78 ) END AS col2
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL - + 32 * - 63 * - 89 * 69 + + MIN( ALL - 78 ) col1
----
-12380334

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - + 32 * - 63 * - 89 * 69 + + MIN ( ALL - 78 ) col1
----
-12380334

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL - COUNT( ALL + 74 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL - COUNT ( ALL + 74 ) AS col1
----
-1

query I rowsort
SELECT ALL - + COALESCE ( + 76, 89 ) AS col0
----
-76

query II rowsort
SELECT + - 39 AS col2, 33 * + ( 72 )
----
-39
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL - COALESCE ( + + 16, - SUM( ALL + 17 ) ) + - 8
----
-24

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - COALESCE ( + + 16, - SUM ( ALL + 17 ) ) + - 8
----
-24

query I rowsort
SELECT DISTINCT - - 55 AS col0
----
55

query I rowsort
SELECT 16 * - 66
----
-1056

query I rowsort
SELECT CASE + 46 WHEN + ( + 18 ) + - 88 THEN 73 ELSE NULL END * - ( 53 + - 48 )
----
NULL

query I rowsort
SELECT ALL 4 + - - 80 * + - 40 col2
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL 62 + SUM( ALL 8 )
----
70

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL 62 + SUM ( ALL 8 )
----
70

query I rowsort
SELECT ALL CASE - - 49 WHEN + 13 THEN + 76 ELSE NULL END * + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT COALESCE ( - - 65, + 99 * - - COUNT( DISTINCT 70 ) - 68 * 84 ) + - 50 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2204
SELECT COALESCE ( - - 65, + 99 * - - COUNT ( DISTINCT 70 ) - 68 * 84 ) + - 50 AS col1
----
15

query II rowsort
SELECT 41 - - 12, 0 * + 6 AS col1
----
53
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT 70 * + NULLIF ( + - 66, + - COUNT( - 6 ) + NULLIF ( 58, 32 ) ) + 25
----
-4595

skipif mysql # not compatible
query I rowsort label-2206
SELECT 70 * + NULLIF ( + - 66, + - COUNT ( - 6 ) + NULLIF ( 58, 32 ) ) + 25
----
-4595

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT 86 DIV - + 66
----
-1

skipif mysql # not compatible
query I rowsort label-2207
SELECT 86 / - + 66
----
-1

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

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

query I rowsort
SELECT DISTINCT + 53 - - 29 col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2210
SELECT ALL 60 DIV + + CAST( - 91 AS SIGNED ) * - COUNT( ALL - 32 ) + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL 60 / + + CAST ( - 91 AS INTEGER ) * - COUNT ( ALL - 32 ) + - 56
----
-56

query I rowsort
SELECT DISTINCT + 63 - 47
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL - - 1 * + 52 * COALESCE ( 26, - CAST( NULL AS SIGNED ) * MIN( - 40 ), - 3 ) col2
----
1352

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - - 1 * + 52 * COALESCE ( 26, - CAST ( NULL AS INTEGER ) * MIN ( - 40 ), - 3 ) col2
----
1352

query II rowsort
SELECT - ( 54 ), 18 AS col1
----
-54
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT + + 34 * + NULLIF ( + ( + 11 ), 62 ) - COUNT( * ) AS col0
----
373

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + + 34 * + NULLIF ( + ( + 11 ), 62 ) - COUNT ( * ) AS col0
----
373

query I rowsort
SELECT DISTINCT - - 72 - - 54 + 89 + - + 56 AS col2
----
159

query I rowsort
SELECT ALL + - 9 * - - 62
----
-558

query I rowsort
SELECT - CASE - ( + 66 ) WHEN - 54 THEN NULL ELSE 0 END AS col1
----
0

query I rowsort
SELECT ALL - 29 * - 73 AS col1
----
2117

query I rowsort
SELECT + 51 * + 35
----
1785

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT 38 DIV 34 - - - 51 + - ( + 87 )
----
-137

skipif mysql # not compatible
query I rowsort label-2220
SELECT 38 / 34 - - - 51 + - ( + 87 )
----
-137

query I rowsort
SELECT + 87 * - 1 * - + 28 AS col2
----
2436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) * + 24 * + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) * + 24 * + 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT - 75 * - ( COUNT( * ) ) col2, ( - - 30 ) + + COUNT( * ) * + 75
----
75
105

skipif mysql # not compatible
query II rowsort label-2223
SELECT - 75 * - ( COUNT ( * ) ) col2, ( - - 30 ) + + COUNT ( * ) * + 75
----
75
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + 28 * + 56 * + + 45 * + 55 + + + 95 + - 89 * + 47 * + COUNT( * )
----
3876712

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + 28 * + 56 * + + 45 * + 55 + + + 95 + - 89 * + 47 * + COUNT ( * )
----
3876712

query I rowsort
SELECT - 61 * 1 - - 53 + + 23 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL + COUNT( DISTINCT + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + COUNT ( DISTINCT + 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL + 1 * 71 + + + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL + 1 * 71 + + + COUNT ( * ) AS col1
----
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2229
SELECT DISTINCT + 34 * - - MAX( DISTINCT - + 30 ) + + - 88 * - CAST( NULL AS SIGNED ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT + 34 * - - MAX ( DISTINCT - + 30 ) + + - 88 * - CAST ( NULL AS INTEGER ) * 29
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2231
SELECT ALL - CAST( NULL AS SIGNED ) * + 40 + + - 76 * - CAST( NULL AS SIGNED ) + + COUNT( * ) * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL - CAST ( NULL AS INTEGER ) * + 40 + + - 76 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2232
SELECT DISTINCT + 18 * - 67 DIV - COUNT( * ) * + COUNT( * ) + - 73 * 80 AS col0
----
-4634

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + 18 * - 67 / - COUNT ( * ) * + COUNT ( * ) + - 73 * 80 AS col0
----
-4634

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - 10 * - 30 + + 67 + COUNT( * )
----
368

skipif mysql # not compatible
query I rowsort label-2233
SELECT - 10 * - 30 + + 67 + COUNT ( * )
----
368

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + 23 * - 39 * + 97 - - COUNT( * ) * - 70 * 73 col1
----
-92119

skipif mysql # not compatible
query I rowsort label-2234
SELECT + 23 * - 39 * + 97 - - COUNT ( * ) * - 70 * 73 col1
----
-92119

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - 85 + COUNT( + 83 )
----
-84

skipif mysql # not compatible
query I rowsort label-2235
SELECT - 85 + COUNT ( + 83 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT CAST( + + COUNT( * ) AS SIGNED ) * - 42 - + - SUM( DISTINCT - + 4 )
----
-46

skipif mysql # not compatible
query I rowsort label-2236
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * - 42 - + - SUM ( DISTINCT - + 4 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT + CAST( 58 AS SIGNED ) + - 0 col1
----
58

skipif mysql # not compatible
query I rowsort label-2237
SELECT + CAST ( 58 AS INTEGER ) + - 0 col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT ALL ( CASE - - 5 WHEN - 40 THEN + - CASE CASE AVG ( + 20 ) WHEN COUNT( * ) THEN MAX( 52 ) WHEN NULLIF ( 45, 17 * 60 ) THEN 48 END WHEN 13 * 72 THEN COUNT( * ) * + ( - 17 ) WHEN COUNT( * ) + + MAX( DISTINCT CAST( NULL AS SIGNED ) ) THEN 80 / 99 + + COUNT( * ) ELSE 29 / 63 + ( COUNT( * ) ) END * - 26 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL ( CASE - - 5 WHEN - 40 THEN + - CASE CASE AVG ( + 20 ) WHEN COUNT ( * ) THEN MAX ( 52 ) WHEN NULLIF ( 45, 17 * 60 ) THEN 48 END WHEN 13 * 72 THEN COUNT ( * ) * + ( - 17 ) WHEN COUNT ( * ) + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN 80 / 99 + + COUNT ( * ) ELSE 29 / 63 + ( COUNT ( * ) ) END * - 26 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 19 * - + 73
----
-1387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT + CAST( NULL AS SIGNED ) + - 78 + + 1 + + 14 / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT + CAST ( NULL AS INTEGER ) + - 78 + + 1 + + 14 / + 14
----
NULL

query I rowsort
SELECT ALL 54 * - 61 AS col0
----
-3294

query II rowsort
SELECT DISTINCT 59, 19 * - 54 col2
----
59
-1026

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT + 7 * CASE + 84 WHEN + AVG ( ALL + 85 ) - 60 THEN + 67 WHEN + 85 THEN - 0 * 36 ELSE - NULLIF ( - MAX( DISTINCT 9 ), 3 - - NULLIF ( + 59, ( + 98 ) ) * 63 ) END AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + 7 * CASE + 84 WHEN + AVG ( ALL + 85 ) - 60 THEN + 67 WHEN + 85 THEN - 0 * 36 ELSE - NULLIF ( - MAX ( DISTINCT 9 ), 3 - - NULLIF ( + 59, ( + 98 ) ) * 63 ) END AS col2
----
63

query I rowsort
SELECT + 59 + + 48
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT + 33 DIV + 60 + - - 35
----
35

skipif mysql # not compatible
query I rowsort label-2245
SELECT + 33 / + 60 + - - 35
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2246
SELECT DISTINCT 21 DIV CASE + 30 WHEN - 20 THEN NULL WHEN - COUNT( * ) * - 97 + 52 THEN 88 * + COUNT( * ) ELSE 34 + 33 * ( + 67 ) END
----
0

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT 21 / CASE + 30 WHEN - 20 THEN NULL WHEN - COUNT ( * ) * - 97 + 52 THEN 88 * + COUNT ( * ) ELSE 34 + 33 * ( + 67 ) END
----
0

query I rowsort
SELECT ALL ( + 83 ) col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT + - 77 + + 79 * - - 44 + + COUNT( * ) DIV 30 * + COALESCE ( COUNT( * ) * + COALESCE ( + 31 DIV - 24, 45, 59 ), 84 * + 22, 22 + + 87 ) + 2 AS col0
----
3401

skipif mysql # not compatible
query I rowsort label-2248
SELECT + - 77 + + 79 * - - 44 + + COUNT ( * ) / 30 * + COALESCE ( COUNT ( * ) * + COALESCE ( + 31 / - 24, 45, 59 ), 84 * + 22, 22 + + 87 ) + 2 AS col0
----
3401

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT DISTINCT 87 + + SUM( - 55 )
----
32

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT 87 + + SUM ( - 55 )
----
32

query I rowsort
SELECT ALL 92 + - 18
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - COUNT( * ) + + - 65 + + 90 - - - COUNT( * ) * + - ( 66 ) * - COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2251
SELECT - COUNT ( * ) + + - 65 + + 90 - - - COUNT ( * ) * + - ( 66 ) * - COUNT ( * ) AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT ALL 5 + - 58 * - 74 * + - CAST( + 92 AS SIGNED ) + ( 25 ) col2
----
-394834

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL 5 + - 58 * - 74 * + - CAST ( + 92 AS INTEGER ) + ( 25 ) col2
----
-394834

query I rowsort
SELECT DISTINCT - 89 + - 43
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT - + 61 + - - 29 * + - COUNT( * ) col0
----
-90

skipif mysql # not compatible
query I rowsort label-2254
SELECT - + 61 + - - 29 * + - COUNT ( * ) col0
----
-90

query I rowsort
SELECT ALL + + 65 * - 39 AS col1
----
-2535

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2257
SELECT - + 0 + - - 61 - + CAST( + 43 AS SIGNED ) * - - CASE 33 WHEN 90 THEN + 48 END * NULLIF ( + 84 * - MAX( - 97 ), - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT - + 0 + - - 61 - + CAST ( + 43 AS INTEGER ) * - - CASE 33 WHEN 90 THEN + 48 END * NULLIF ( + 84 * - MAX ( - 97 ), - 91 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT ALL 94 * + 74 + CAST( NULL AS SIGNED ) - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL 94 * + 74 + CAST ( NULL AS INTEGER ) - + 65
----
NULL

query I rowsort
SELECT - 69 + 77 AS col2
----
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT - 45 DIV - 9 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2261
SELECT - 45 / - 9 AS col0
----
5

query I rowsort
SELECT DISTINCT + NULLIF ( - + 92, - - ( - 26 ) )
----
-92

query I rowsort
SELECT DISTINCT - 70 * + 12
----
-840

query I rowsort
SELECT ALL + NULLIF ( + + 37, - 91 / 32 ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT - 9 DIV - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT - 9 / - 52 AS col2
----
0

query I rowsort
SELECT - 27 * + 54 AS col1
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT - 70 * COUNT( * ) * + 97 AS col1
----
-6790

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - 70 * COUNT ( * ) * + 97 AS col1
----
-6790

query I rowsort
SELECT ALL - 52 * - - 39 AS col2
----
-2028

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT - 79 DIV 53 * 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2269
SELECT - 79 / 53 * 62 AS col0
----
-62

query I rowsort
SELECT ALL - 80 * + - 40
----
3200

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

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

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

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

query I rowsort
SELECT - ( ( + 26 ) ) - + - 2 + - 4
----
-28

query I rowsort
SELECT + 25 * - 75 AS col0
----
-1875

query I rowsort
SELECT COALESCE ( - ( - 82 ), - 80 )
----
82

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

query I rowsort
SELECT + - 92 + + - 69 + 7 + COALESCE ( - + 75, 62 )
----
-229

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT ALL 32 col0, 82 + - COUNT( * ) * + 60 - - 34
----
32
56

skipif mysql # not compatible
query II rowsort label-2278
SELECT ALL 32 col0, 82 + - COUNT ( * ) * + 60 - - 34
----
32
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT - + COUNT( * ) * + 94 - 10 * 64 * + 49 - - - 40
----
-31494

skipif mysql # not compatible
query I rowsort label-2279
SELECT - + COUNT ( * ) * + 94 - 10 * 64 * + 49 - - - 40
----
-31494

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

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

query I rowsort
SELECT ALL - 79 * + 8 + + 59 + 39
----
-534

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2282
SELECT DISTINCT - SUM( ALL - 11 ) + + + COUNT( + 58 ) AS col0, - 84 * 25 + 43 DIV 21 AS col1
----
12
-2098

skipif mysql # not compatible
query II rowsort label-2282
SELECT DISTINCT - SUM ( ALL - 11 ) + + + COUNT ( + 58 ) AS col0, - 84 * 25 + 43 / 21 AS col1
----
12
-2098

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + + MIN( DISTINCT - 21 ) - - 55
----
34

skipif mysql # not compatible
query I rowsort label-2283
SELECT + + MIN ( DISTINCT - 21 ) - - 55
----
34

query I rowsort
SELECT ALL 36 * - + ( + 74 ) + - + 51 col0
----
-2715

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT + ( 78 ) * - - 25 + 78 AS col0, 56 + + ( - NULLIF ( ( - 54 ), + 81 * 39 + - COUNT( * ) ) ) + 9 * + 83
----
2028
857

skipif mysql # not compatible
query II rowsort label-2285
SELECT + ( 78 ) * - - 25 + 78 AS col0, 56 + + ( - NULLIF ( ( - 54 ), + 81 * 39 + - COUNT ( * ) ) ) + 9 * + 83
----
2028
857

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL 80 + - ( - COALESCE ( COUNT( * ), NULLIF ( + - COALESCE ( + 36, 59 * + 47 + + COUNT( * ) ), - 84 * - 52 ) ) ) * + 83
----
163

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL 80 + - ( - COALESCE ( COUNT ( * ), NULLIF ( + - COALESCE ( + 36, 59 * + 47 + + COUNT ( * ) ), - 84 * - 52 ) ) ) * + 83
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT + COALESCE ( - 97, + COUNT( * ) + 29 - - - 13, + 51 ) + 2 * 91
----
85

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT + COALESCE ( - 97, + COUNT ( * ) + 29 - - - 13, + 51 ) + 2 * 91
----
85

query I rowsort
SELECT ALL + 71 + - 98 AS col0
----
-27

query II rowsort
SELECT 29 AS col0, - 54 AS col2
----
29
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT + - MIN( ALL - ( + 70 ) ) * - COUNT( * ) * 40 * - - MAX( ALL 32 ) * - 72 AS col2
----
6451200

skipif mysql # not compatible
query I rowsort label-2290
SELECT + - MIN ( ALL - ( + 70 ) ) * - COUNT ( * ) * 40 * - - MAX ( ALL 32 ) * - 72 AS col2
----
6451200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2291
SELECT 91 * 84 AS col2, CAST( NULL AS SIGNED ) - + + 53 - 8
----
7644
NULL

skipif mysql # not compatible
query II rowsort label-2291
SELECT 91 * 84 AS col2, CAST ( NULL AS INTEGER ) - + + 53 - 8
----
7644
NULL

query II rowsort
SELECT 72 col0, - 66
----
72
-66

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

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + 10 + - COUNT ( * ) AS col1
----
9

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

query I rowsort
SELECT 71 * + 41
----
2911

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT DISTINCT NULLIF ( - SUM( DISTINCT NULLIF ( - 69, + - 38 ) ), 4 ) DIV 16
----
4

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT NULLIF ( - SUM ( DISTINCT NULLIF ( - 69, + - 38 ) ), 4 ) / 16
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT DISTINCT + COUNT( * ) + + NULLIF ( - 62, - COUNT( * ) * + - 41 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( - 62, - COUNT ( * ) * + - 41 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL - 56 * 29 * SUM( - + 85 )
----
138040

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - 56 * 29 * SUM ( - + 85 )
----
138040

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT DISTINCT + 1 + 23 * + ( COUNT( * ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT + 1 + 23 * + ( COUNT ( * ) ) AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT 83 / - CAST( NULL AS SIGNED ) * - - 35 + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT 83 / - CAST ( NULL AS INTEGER ) * - - 35 + 65
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2302
SELECT NULLIF ( - 2, + CAST( + 98 AS DECIMAL ) * + NULLIF ( 6, 77 ) ) + 12
----
10

skipif mysql # not compatible
query I rowsort label-2302
SELECT NULLIF ( - 2, + CAST ( + 98 AS REAL ) * + NULLIF ( 6, 77 ) ) + 12
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT 50 + - + CAST( NULL AS SIGNED ) + - - 74 * 51 * - + 58 / 80 - - + 69 * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT 50 + - + CAST ( NULL AS INTEGER ) + - - 74 * 51 * - + 58 / 80 - - + 69 * 94
----
NULL

query I rowsort
SELECT 57 * 69 AS col2
----
3933

query I rowsort
SELECT 92 * - 88 * + + 80 AS col2
----
-647680

query I rowsort
SELECT + ( + 99 ) * 20 * 32 + 51
----
63411

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ALL - COALESCE ( 72, - COUNT( + + 46 ) * COUNT( * ) + 57 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - COALESCE ( 72, - COUNT ( + + 46 ) * COUNT ( * ) + 57 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT COUNT( * ) * - 81 * - - 64 + 8 col0
----
-5176

skipif mysql # not compatible
query I rowsort label-2308
SELECT COUNT ( * ) * - 81 * - - 64 + 8 col0
----
-5176

query I rowsort
SELECT 85 + - 14
----
71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT ALL - 49 DIV - 20
----
2

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL - 49 / - 20
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT MAX( + 86 ) * 70 * + 19
----
114380

skipif mysql # not compatible
query I rowsort label-2312
SELECT MAX ( + 86 ) * 70 * + 19
----
114380

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT 75 + MAX( 30 ) * 16 + 31 * - 33 AS col2
----
-468

skipif mysql # not compatible
query I rowsort label-2313
SELECT 75 + MAX ( 30 ) * 16 + 31 * - 33 AS col2
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT - 76 * + NULLIF ( 43, + 78 + - + 67 ) * - 9 - - ( COUNT( * ) )
----
29413

skipif mysql # not compatible
query I rowsort label-2314
SELECT - 76 * + NULLIF ( 43, + 78 + - + 67 ) * - 9 - - ( COUNT ( * ) )
----
29413

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT + 76 + + NULLIF ( + 3, + - ( + SUM( + 47 ) ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + 76 + + NULLIF ( + 3, + - ( + SUM ( + 47 ) ) ) AS col1
----
79

query I rowsort
SELECT ALL - ( - + 86 ) * - 82 col0
----
-7052

query I rowsort
SELECT DISTINCT - 55 + + - 36
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT + 90 DIV + NULLIF ( - - 60, - ( + - 97 ) DIV + 25 ) + - 70
----
-69

skipif mysql # not compatible
query I rowsort label-2319
SELECT + 90 / + NULLIF ( - - 60, - ( + - 97 ) / + 25 ) + - 70
----
-69

query I rowsort
SELECT DISTINCT + 75 + - + 32 AS col1
----
43

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

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

query I rowsort
SELECT + 57 + - 39
----
18

query I rowsort
SELECT - 40 * 90
----
-3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2324
SELECT - 97 * CAST( ( - SUM( ALL + - 76 ) ) AS SIGNED ) * 16 AS col1
----
-117952

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 97 * CAST ( ( - SUM ( ALL + - 76 ) ) AS INTEGER ) * 16 AS col1
----
-117952

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ALL - - ( + + 51 ) - + 30 + + COUNT( DISTINCT - - 21 ) * - 34
----
-13

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - - ( + + 51 ) - + 30 + + COUNT ( DISTINCT - - 21 ) * - 34
----
-13

query I rowsort
SELECT + 20 + - 25
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT ALL - 98 - + CAST( + - 44 AS SIGNED ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL - 98 - + CAST ( + - 44 AS INTEGER ) col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT MAX( - NULLIF ( + - 70, + + ( 25 ) + - ( 69 ) / + 26 ) ) + 43 col0
----
113

skipif mysql # not compatible
query I rowsort label-2328
SELECT MAX ( - NULLIF ( + - 70, + + ( 25 ) + - ( 69 ) / + 26 ) ) + 43 col0
----
113

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2331
SELECT ALL 50 DIV MIN( DISTINCT - 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL 50 / MIN ( DISTINCT - 74 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT SUM( DISTINCT NULLIF ( - - 79, + 93 ) ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2332
SELECT SUM ( DISTINCT NULLIF ( - - 79, + 93 ) ) AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT ( 99 ) DIV ( + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-2333
SELECT ( 99 ) / ( + 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT + NULLIF ( + 88, 68 + + - 38 + - + 83 * + COUNT( * ) ) * 85 * - - 70 - 58
----
523542

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT + NULLIF ( + 88, 68 + + - 38 + - + 83 * + COUNT ( * ) ) * 85 * - - 70 - 58
----
523542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2335
SELECT ALL - 53 * + + MIN( 26 ) col0, - NULLIF ( + 42, + + CAST( + 34 AS SIGNED ) ) * + + 93 * - CAST( NULL AS SIGNED ) AS col1
----
-1378
NULL

skipif mysql # not compatible
query II rowsort label-2335
SELECT ALL - 53 * + + MIN ( 26 ) col0, - NULLIF ( + 42, + + CAST ( + 34 AS INTEGER ) ) * + + 93 * - CAST ( NULL AS INTEGER ) AS col1
----
-1378
NULL

query I rowsort
SELECT 92 * - 95 * - 90 col2
----
786600

query I rowsort
SELECT ( + 94 ) * - 15 AS col1
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT SUM( ALL - 37 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-2338
SELECT SUM ( ALL - 37 ) col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT COUNT( ALL 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2339
SELECT COUNT ( ALL 82 ) AS col1
----
1

query I rowsort
SELECT 82 * 92
----
7544

query I rowsort
SELECT 17 * + 17
----
289

query I rowsort
SELECT DISTINCT 25 + - 59 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + COUNT( DISTINCT + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-2343
SELECT + COUNT ( DISTINCT + 38 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2344
SELECT COUNT( * ) AS col0, 75 + 52
----
1
127

skipif mysql # not compatible
query II rowsort label-2344
SELECT COUNT ( * ) AS col0, 75 + 52
----
1
127

query I rowsort
SELECT ALL 54 + + 62
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2346
SELECT + NULLIF ( + ( + COUNT( * ) ), - 1 * - 75 ) * COUNT( * ) DIV + 12 + - 40 + - 95
----
-135

skipif mysql # not compatible
query I rowsort label-2346
SELECT + NULLIF ( + ( + COUNT ( * ) ), - 1 * - 75 ) * COUNT ( * ) / + 12 + - 40 + - 95
----
-135

query I rowsort
SELECT DISTINCT + 84 + - 97 AS col2
----
-13

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

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT + 62 + + COUNT ( * ) AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT ALL + 45 DIV - - 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + 45 / - - 37 AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2350
SELECT ALL - 95 AS col1, 21 DIV - + 48
----
-95
0

skipif mysql # not compatible
query II rowsort label-2350
SELECT ALL - 95 AS col1, 21 / - + 48
----
-95
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2351
SELECT CAST( 2 AS SIGNED ) + - - CASE - 71 WHEN 16 / + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + - + ( - COALESCE ( - 98, - 75 ) ) THEN NULL WHEN 75 THEN NULL WHEN 74 * MAX( CAST( NULL AS DECIMAL ) * 21 ) THEN + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT CAST ( 2 AS INTEGER ) + - - CASE - 71 WHEN 16 / + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - + ( - COALESCE ( - 98, - 75 ) ) THEN NULL WHEN 75 THEN NULL WHEN 74 * MAX ( CAST ( NULL AS REAL ) * 21 ) THEN + 49 END
----
NULL

query II rowsort
SELECT 21, + 73 + + - 1 AS col2
----
21
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT 49 * - - 40 + + 68 + + 29 - - COUNT( * ) + - 14
----
2044

skipif mysql # not compatible
query I rowsort label-2353
SELECT 49 * - - 40 + + 68 + + 29 - - COUNT ( * ) + - 14
----
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT - + COUNT( * ) + + - COALESCE ( + ( 53 ), - 8 + + 86 )
----
-54

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - + COUNT ( * ) + + - COALESCE ( + ( 53 ), - 8 + + 86 )
----
-54

query II rowsort
SELECT 27 AS col2, 56 * + - 66 * 36 - + 17 + - 80 * + 70 + - 53 AS col1
----
27
-138726

query I rowsort
SELECT - ( - 27 ) + + 75 - - 98 * 98 - - 71 AS col1
----
9777

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL + 68 + + MIN( + 66 ) + 31 AS col1
----
165

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + 68 + + MIN ( + 66 ) + 31 AS col1
----
165

query II rowsort
SELECT ALL - 34 AS col0, - ( - COALESCE ( 28, 78 + + 63 ) )
----
-34
28

query I rowsort
SELECT DISTINCT + 52 * - 31 AS col1
----
-1612

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2360
SELECT DISTINCT 42 / + CASE - 24 WHEN 73 / + COUNT( * ) + - 13 * - 35 THEN NULL WHEN + - COALESCE ( 77, + 54 - - 66 * + ( 90 + NULLIF ( COUNT( * ), CAST( NULL AS DECIMAL ) ) ), - 26 * 9 ) THEN 27 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT 42 / + CASE - 24 WHEN 73 / + COUNT ( * ) + - 13 * - 35 THEN NULL WHEN + - COALESCE ( 77, + 54 - - 66 * + ( 90 + NULLIF ( COUNT ( * ), CAST ( NULL AS REAL ) ) ), - 26 * 9 ) THEN 27 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 45 * - 65 AS col1
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT - CASE COUNT( * ) WHEN + COUNT( * ) / + 76 * - COUNT( DISTINCT - + 76 ) + 90 * - 91 THEN + 86 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT - CASE COUNT ( * ) WHEN + COUNT ( * ) / + 76 * - COUNT ( DISTINCT - + 76 ) + 90 * - 91 THEN + 86 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL - + 70 - + - 40 AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2364
SELECT ALL - 69 DIV 57 DIV MAX( ALL - 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL - 69 / 57 / MAX ( ALL - 80 ) AS col0
----
0

query I rowsort
SELECT - - 63 * + 95
----
5985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2366
SELECT - COUNT( * ) DIV - 98 - - - CAST( - - 45 AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2366
SELECT - COUNT ( * ) / - 98 - - - CAST ( - - 45 AS INTEGER ) AS col0
----
-45

query I rowsort
SELECT ALL - 83 - - 1 + - 16 * - ( + 49 ) col0
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT - 4 - + + 33 + 83 + + 87 + - COUNT( * ) + - 63 - - NULLIF ( - 82, - 11 ) - 31 * + 60 * 67 AS col2
----
-124633

skipif mysql # not compatible
query I rowsort label-2368
SELECT - 4 - + + 33 + 83 + + 87 + - COUNT ( * ) + - 63 - - NULLIF ( - 82, - 11 ) - 31 * + 60 * 67 AS col2
----
-124633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT - MAX( + 60 ) * 38 * COALESCE ( + - 35, + - 1 + 73 + 78 + - 29 + NULLIF ( 99, CAST( 38 AS SIGNED ) ) * + 80 ) + 77 * - 50 AS col2
----
75950

skipif mysql # not compatible
query I rowsort label-2369
SELECT - MAX ( + 60 ) * 38 * COALESCE ( + - 35, + - 1 + 73 + 78 + - 29 + NULLIF ( 99, CAST ( 38 AS INTEGER ) ) * + 80 ) + 77 * - 50 AS col2
----
75950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2370
SELECT DISTINCT COALESCE ( + + 75, - CAST( - 99 AS SIGNED ) ) AS col1, 39 * ( - + 40 ) * - ( - 33 ) * 71
----
75
-3655080

skipif mysql # not compatible
query II rowsort label-2370
SELECT DISTINCT COALESCE ( + + 75, - CAST ( - 99 AS INTEGER ) ) AS col1, 39 * ( - + 40 ) * - ( - 33 ) * 71
----
75
-3655080

query I rowsort
SELECT DISTINCT 92 * 85 * + 50
----
391000

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2373
SELECT + COALESCE ( + COUNT( * ), SUM( 89 ) + COUNT( * ) * 98 ) * 69 AS col2, 11 * - 76 - 15 * - NULLIF ( + 30, 51 )
----
69
-386

skipif mysql # not compatible
query II rowsort label-2373
SELECT + COALESCE ( + COUNT ( * ), SUM ( 89 ) + COUNT ( * ) * 98 ) * 69 AS col2, 11 * - 76 - 15 * - NULLIF ( + 30, 51 )
----
69
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL COUNT( * ) * MIN( + 5 ) * COUNT( * ) * + + 87 * - - SUM( 92 ) + - 97
----
39923

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL COUNT ( * ) * MIN ( + 5 ) * COUNT ( * ) * + + 87 * - - SUM ( 92 ) + - 97
----
39923

query I rowsort
SELECT DISTINCT + 48 * - COALESCE ( 16, - 2 )
----
-768

query I rowsort
SELECT ALL 0 * + + 19 + - 70 + - 43
----
-113

query I rowsort
SELECT 21 * - 41 * + 94 * - 84 * + 8 - - - 15
----
54387633

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

query II rowsort
SELECT ( + 16 ) AS col0, + 16
----
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT ALL + COUNT( * ) * + 51 + + 44
----
95

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL + COUNT ( * ) * + 51 + + 44
----
95

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT ALL ( - 68 ) DIV + 3
----
-22

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL ( - 68 ) / + 3
----
-22

query I rowsort
SELECT + + ( + 39 ) + - 3 + - 86 * - 58 AS col0
----
5024

query I rowsort
SELECT ALL 3 * - + ( - 68 ) AS col2
----
204

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT + 12 DIV - - 16
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT + 12 / - - 16
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT + 16 * 10 + SUM( + 20 ) AS col0, - 61 * 33 * - 40
----
180
80520

skipif mysql # not compatible
query II rowsort label-2387
SELECT + 16 * 10 + SUM ( + 20 ) AS col0, - 61 * 33 * - 40
----
180
80520

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT + MIN( - 62 ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-2388
SELECT + MIN ( - 62 ) col0
----
-62

query I rowsort
SELECT DISTINCT - + 80 * COALESCE ( 19, 31, + 74 ) - + ( 40 )
----
-1560

query I rowsort
SELECT + - ( + + COALESCE ( - 2, + 37 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT + - NULLIF ( + 74, - 68 + - - COUNT( * ) ) - + - 83 + - - 52 + + + 99 * NULLIF ( + 23, - COUNT( * ) + COUNT( * ) )
----
2338

skipif mysql # not compatible
query I rowsort label-2391
SELECT + - NULLIF ( + 74, - 68 + - - COUNT ( * ) ) - + - 83 + - - 52 + + + 99 * NULLIF ( + 23, - COUNT ( * ) + COUNT ( * ) )
----
2338

query I rowsort
SELECT DISTINCT - 72 * + 48 - - + 7 * ( + 34 )
----
-3218

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL - CASE + 53 WHEN + 0 + - - 88 THEN + MIN( DISTINCT + - 92 ) WHEN + - 35 THEN NULL ELSE 33 END
----
-33

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL - CASE + 53 WHEN + 0 + - - 88 THEN + MIN ( DISTINCT + - 92 ) WHEN + - 35 THEN NULL ELSE 33 END
----
-33

query II rowsort
SELECT ( - 26 ), + COALESCE ( - 56, + - 12 * + 21, + 22 ) AS col2
----
-26
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT + + 5 * CASE - COUNT( * ) WHEN - 90 / - + 69 THEN + SUM( ALL - + ( + 6 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + + 5 * CASE - COUNT ( * ) WHEN - 90 / - + 69 THEN + SUM ( ALL - + ( + 6 ) ) END AS col1
----
NULL

query I rowsort
SELECT - 16 * - 58 AS col0
----
928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT + 55 + + 21 + - 5 + + 99 + MIN( ALL 6 ) - + CASE + + 20 WHEN + - 98 THEN NULL WHEN 48 * COALESCE ( + COUNT( - 58 ) * - COUNT( * ), - 80 ) THEN COUNT( * ) * CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT + 55 + + 21 + - 5 + + 99 + MIN ( ALL 6 ) - + CASE + + 20 WHEN + - 98 THEN NULL WHEN 48 * COALESCE ( + COUNT ( - 58 ) * - COUNT ( * ), - 80 ) THEN COUNT ( * ) * CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + 1 - 15 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL + COUNT( + - 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL + COUNT ( + - 36 ) AS col1
----
1

query I rowsort
SELECT + 4 + - 36 * + 74 + - 23
----
-2683

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT - 80 + - + 51 + - COUNT( * ) DIV + + 10 AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-2402
SELECT - 80 + - + 51 + - COUNT ( * ) / + + 10 AS col0
----
-131

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

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 86 / - 43
----
-2

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

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

query I rowsort
SELECT DISTINCT + 80 * + + 5
----
400

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

query I rowsort
SELECT ALL + 62 + - - 0 AS col2
----
62

query I rowsort
SELECT DISTINCT + 44 + + 49
----
93

query I rowsort
SELECT ALL - 90 + + NULLIF ( - 66, - 35 )
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2410
SELECT DISTINCT CAST( NULLIF ( - + 38, - - COUNT( * ) ) AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT CAST ( NULLIF ( - + 38, - - COUNT ( * ) ) AS INTEGER )
----
-38

query II rowsort
SELECT - ( + 44 ) * - 86 AS col0, 91 AS col1
----
3784
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2412
SELECT DISTINCT + CAST( + 66 AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT + CAST ( + 66 AS INTEGER ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * + 63 - + + CASE 57 WHEN + 58 / - - 54 THEN - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + 63 - + + CASE 57 WHEN + 58 / - - 54 THEN - 31 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT DISTINCT + COUNT( * ) * - 68 * 68 DIV - 52 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + COUNT ( * ) * - 68 * 68 / - 52 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2415
SELECT ALL - 57 DIV 46 * 82 * + - 5 * - + 47 + CASE - 95 WHEN 32 + - - 99 DIV + 87 + 39 THEN NULL ELSE + 28 * - 99 END
----
-22042

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL - 57 / 46 * 82 * + - 5 * - + 47 + CASE - 95 WHEN 32 + - - 99 / + 87 + 39 THEN NULL ELSE + 28 * - 99 END
----
-22042

query I rowsort
SELECT ALL + - 16 * + + 14 AS col0
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT - 1 * - 89 * + + COUNT( + 6 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2417
SELECT - 1 * - 89 * + + COUNT ( + 6 ) AS col1
----
89

query I rowsort
SELECT 35 * - 30
----
-1050

query I rowsort
SELECT DISTINCT 49 - 46
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL - COALESCE ( SUM( DISTINCT - 6 ), - COALESCE ( + ( - - 81 ), + 60 ) )
----
6

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - COALESCE ( SUM ( DISTINCT - 6 ), - COALESCE ( + ( - - 81 ), + 60 ) )
----
6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT - NULLIF ( + - 54, + CAST( NULL AS SIGNED ) )
----
54

skipif mysql # not compatible
query I rowsort label-2422
SELECT - NULLIF ( + - 54, + CAST ( NULL AS INTEGER ) )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2423
SELECT DISTINCT - + 74 - + + CAST( 20 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT - + 74 - + + CAST ( 20 AS INTEGER ) AS col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT DISTINCT - CAST( - AVG ( + - CASE - 98 WHEN - + 27 / - + 93 THEN 90 END ) AS SIGNED ) - + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - CAST ( - AVG ( + - CASE - 98 WHEN - + 27 / - + 93 THEN 90 END ) AS INTEGER ) - + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT ALL ( MIN( 85 ) ) * SUM( + - ( + + 28 ) )
----
-2380

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL ( MIN ( 85 ) ) * SUM ( + - ( + + 28 ) )
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT - COUNT( + - 18 ) * - - 19 * + COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2426
SELECT - COUNT ( + - 18 ) * - - 19 * + COUNT ( * ) AS col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2427
SELECT ALL + COUNT( - 46 ) DIV - 67 AS col0, + 18 AS col1
----
0
18

skipif mysql # not compatible
query II rowsort label-2427
SELECT ALL + COUNT ( - 46 ) / - 67 AS col0, + 18 AS col1
----
0
18

query II rowsort
SELECT + 26 AS col0, - 92 AS col0
----
26
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2429
SELECT DISTINCT 60 / - CASE 81 WHEN - + 35 * - 31 - 67 * + CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT 60 / - CASE 81 WHEN - + 35 * - 31 - 67 * + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT - 0 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT - 0 / - 89 AS col0
----
0

query I rowsort
SELECT + 39 * 16 * + ( - - 84 ) AS col0
----
52416

query I rowsort
SELECT ALL - 67 * + 11 * - 7 - - 25 AS col1
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT MIN( ALL - 11 ) * - 60 AS col1
----
660

skipif mysql # not compatible
query I rowsort label-2433
SELECT MIN ( ALL - 11 ) * - 60 AS col1
----
660

query I rowsort
SELECT + 22 + + 33
----
55

query I rowsort
SELECT ALL 6 + 92 + + + ( - 55 ) AS col1
----
43

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2437
SELECT CAST( + - 28 AS SIGNED ) * - + MAX( 46 ), 35 col1
----
1288
35

skipif mysql # not compatible
query II rowsort label-2437
SELECT CAST ( + - 28 AS INTEGER ) * - + MAX ( 46 ), 35 col1
----
1288
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL 39 + - CASE - + 61 WHEN 56 + + - 65 - + 25 THEN - 18 WHEN 9 THEN NULL ELSE + COUNT( * ) END * 7
----
32

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL 39 + - CASE - + 61 WHEN 56 + + - 65 - + 25 THEN - 18 WHEN 9 THEN NULL ELSE + COUNT ( * ) END * 7
----
32

query II rowsort
SELECT 97 AS col0, + ( 99 )
----
97
99

query I rowsort
SELECT ALL 15 + - - 11 + - 46
----
-20

query I rowsort
SELECT 1 * 52
----
52

query II rowsort
SELECT 78 col0, 82
----
78
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL COUNT( * ) + COALESCE ( + + COUNT( * ), + CAST( + 74 AS SIGNED ), - 6 ) * 29
----
30

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL COUNT ( * ) + COALESCE ( + + COUNT ( * ), + CAST ( + 74 AS INTEGER ), - 6 ) * 29
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT + 49 + - SUM( - 52 )
----
101

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT + 49 + - SUM ( - 52 )
----
101

query I rowsort
SELECT 91 - + 39 * - 30 AS col2
----
1261

query II rowsort
SELECT 27, + 0 * 17 AS col1
----
27
0

query I rowsort
SELECT DISTINCT - 85 * 45
----
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL + COUNT( * ) + - + 64 + CASE 41 WHEN - COUNT( * ) + - + 28 THEN NULL ELSE - 54 END - - 89 + - + CASE + MAX( ALL + + 20 ) WHEN + 10 / + 14 THEN - COUNT( - 68 ) WHEN 90 THEN NULL END + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + COUNT ( * ) + - + 64 + CASE 41 WHEN - COUNT ( * ) + - + 28 THEN NULL ELSE - 54 END - - 89 + - + CASE + MAX ( ALL + + 20 ) WHEN + 10 / + 14 THEN - COUNT ( - 68 ) WHEN 90 THEN NULL END + 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2449
SELECT ALL 76, + COUNT( * ) * - + 96 + + 33 col1
----
76
-63

skipif mysql # not compatible
query II rowsort label-2449
SELECT ALL 76, + COUNT ( * ) * - + 96 + + 33 col1
----
76
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2450
SELECT 10 DIV 8 AS col0, NULLIF ( - 36, - 49 ) * - + 5 - + COUNT( ALL 27 ) - + 73 * + 22
----
1
-1427

skipif mysql # not compatible
query II rowsort label-2450
SELECT 10 / 8 AS col0, NULLIF ( - 36, - 49 ) * - + 5 - + COUNT ( ALL 27 ) - + 73 * + 22
----
1
-1427

onlyif mysql # aggregate syntax: 
query II rowsort label-2451
SELECT ALL 83 AS col0, 25 + - 94 - COUNT( * ) * 85 AS col0
----
83
-154

skipif mysql # not compatible
query II rowsort label-2451
SELECT ALL 83 AS col0, 25 + - 94 - COUNT ( * ) * 85 AS col0
----
83
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-2452
SELECT 16 AS col2, MIN( DISTINCT - 0 )
----
16
0

skipif mysql # not compatible
query II rowsort label-2452
SELECT 16 AS col2, MIN ( DISTINCT - 0 )
----
16
0

query I rowsort
SELECT ALL + 31 - - + 79
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT 32 DIV + + 64 * + 60 + - + 48 + + 9 * + + 10 * + 48 AS col1
----
4272

skipif mysql # not compatible
query I rowsort label-2454
SELECT 32 / + + 64 * + 60 + - + 48 + + 9 * + + 10 * + 48 AS col1
----
4272

query I rowsort
SELECT 95 * + 13 - - - 15 AS col0
----
1220

query I rowsort
SELECT 91 * - - 71 col0
----
6461

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2457
SELECT - + COALESCE ( COUNT( * ), - CASE + + 0 WHEN - - 92 THEN NULL ELSE + - 59 END + - 3, ( 31 ) + + - 17 ) DIV - 97 * 1 - + 5 * - 10 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2457
SELECT - + COALESCE ( COUNT ( * ), - CASE + + 0 WHEN - - 92 THEN NULL ELSE + - 59 END + - 3, ( 31 ) + + - 17 ) / - 97 * 1 - + 5 * - 10 AS col0
----
50

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

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

query I rowsort
SELECT - - 64 * + + 60 + - 77
----
3763

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2460
SELECT CAST( NULL AS DECIMAL ), SUM( - + 47 ) * 58 AS col0
----
NULL
-2726

skipif mysql # not compatible
query II rowsort label-2460
SELECT CAST ( NULL AS REAL ), SUM ( - + 47 ) * 58 AS col0
----
NULL
-2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT ALL - - NULLIF ( - + 65, + COALESCE ( - CAST( 19 AS SIGNED ), 32, - + 4 * + - 81 / 58 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - - NULLIF ( - + 65, + COALESCE ( - CAST ( 19 AS INTEGER ), 32, - + 4 * + - 81 / 58 ) )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2462
SELECT - CAST( NULL AS SIGNED ) + 89 * + - 87 * - 5, + 28 * 18 AS col2
----
NULL
504

skipif mysql # not compatible
query II rowsort label-2462
SELECT - CAST ( NULL AS INTEGER ) + 89 * + - 87 * - 5, + 28 * 18 AS col2
----
NULL
504

onlyif mysql # aggregate syntax: 
query II rowsort label-2463
SELECT ALL - + 87, COALESCE ( + 3, - - MAX( ALL + 93 ) ) AS col2
----
-87
3

skipif mysql # not compatible
query II rowsort label-2463
SELECT ALL - + 87, COALESCE ( + 3, - - MAX ( ALL + 93 ) ) AS col2
----
-87
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT 21 + + - 13 - + + COUNT( * ) * 97
----
-89

skipif mysql # not compatible
query I rowsort label-2464
SELECT 21 + + - 13 - + + COUNT ( * ) * 97
----
-89

query I rowsort
SELECT ALL - + 97 * + 78 AS col0
----
-7566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT + CASE - - MAX( + CAST( 95 AS SIGNED ) ) WHEN COUNT( * ) THEN NULL ELSE + NULLIF ( COUNT( + 3 ), NULLIF ( + 21, + 44 * - 69 + - 29 * + 67 ) ) + 60 END * COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2466
SELECT + CASE - - MAX ( + CAST ( 95 AS INTEGER ) ) WHEN COUNT ( * ) THEN NULL ELSE + NULLIF ( COUNT ( + 3 ), NULLIF ( + 21, + 44 * - 69 + - 29 * + 67 ) ) + 60 END * COUNT ( * ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT - 29 * + 96 * + 8 + + 28 * NULLIF ( COUNT( + 62 ), - 14 )
----
-22244

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT - 29 * + 96 * + 8 + + 28 * NULLIF ( COUNT ( + 62 ), - 14 )
----
-22244

onlyif mysql # aggregate syntax: 
query II rowsort label-2468
SELECT + 54 AS col2, NULLIF ( + + 50, + COUNT( * ) ) + + 73
----
54
123

skipif mysql # not compatible
query II rowsort label-2468
SELECT + 54 AS col2, NULLIF ( + + 50, + COUNT ( * ) ) + + 73
----
54
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT - 5 * - 45 + - 52 - 30 * - 73 + + + 48 * ( + MIN( 44 ) ) + - 82 + - - 59 DIV - ( SUM( 39 ) * - COALESCE ( 62, 45, 76 DIV - 33 + - 15 * 71 ) - - 56 DIV 51 ) AS col1
----
4393

skipif mysql # not compatible
query I rowsort label-2469
SELECT - 5 * - 45 + - 52 - 30 * - 73 + + + 48 * ( + MIN ( 44 ) ) + - 82 + - - 59 / - ( SUM ( 39 ) * - COALESCE ( 62, 45, 76 / - 33 + - 15 * 71 ) - - 56 / 51 ) AS col1
----
4393

query I rowsort
SELECT - 7 * + 68 * + + 13
----
-6188

query I rowsort
SELECT ALL 76 + + 77 * - NULLIF ( + 72, 68 ) col1
----
-5468

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2472
SELECT COALESCE ( + ( + ( - CAST( + + 12 AS SIGNED ) ) ), - CAST( + 71 AS SIGNED ) * - + 25 DIV - - 7 ) + - - 32 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2472
SELECT COALESCE ( + ( + ( - CAST ( + + 12 AS INTEGER ) ) ), - CAST ( + 71 AS INTEGER ) * - + 25 / - - 7 ) + - - 32 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2473
SELECT DISTINCT + MIN( ALL + 70 ) + NULLIF ( + ( - 62 ), - - 40 ), COUNT( - COALESCE ( + 33, + CAST( NULL AS SIGNED ) ) ) col2
----
8
1

skipif mysql # not compatible
query II rowsort label-2473
SELECT DISTINCT + MIN ( ALL + 70 ) + NULLIF ( + ( - 62 ), - - 40 ), COUNT ( - COALESCE ( + 33, + CAST ( NULL AS INTEGER ) ) ) col2
----
8
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT 69 + - 20 DIV + + 10
----
67

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT 69 + - 20 / + + 10
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2475
SELECT ( - MAX( + 24 ) ) * COALESCE ( - 7, - CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col2, + 76 + + 59 AS col1
----
168
135

skipif mysql # not compatible
query II rowsort label-2475
SELECT ( - MAX ( + 24 ) ) * COALESCE ( - 7, - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col2, + 76 + + 59 AS col1
----
168
135

query I rowsort
SELECT ALL + 62 + - ( + 49 ) AS col1
----
13

query II rowsort
SELECT DISTINCT - 7 + + 27, ( + 91 ) AS col2
----
20
91

query I rowsort
SELECT 66 + + + 15 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT COUNT( * ) - 16 + + - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT COUNT ( * ) - 16 + + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 33 * - 16 * + - 91
----
48048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2481
SELECT 75 + + + COUNT( * ) DIV MIN( 68 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2481
SELECT 75 + + + COUNT ( * ) / MIN ( 68 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT 11 + MAX( ALL 57 ), 61 AS col0
----
68
61

skipif mysql # not compatible
query II rowsort label-2482
SELECT 11 + MAX ( ALL 57 ), 61 AS col0
----
68
61

query I rowsort
SELECT DISTINCT 26 * + ( + 27 )
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL SUM( 75 ) + 61
----
136

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL SUM ( 75 ) + 61
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT COUNT( + 4 ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-2485
SELECT COUNT ( + 4 ) + - 96
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT CASE + MAX( - - 64 ) WHEN + 24 THEN - 75 WHEN + MAX( ALL + 10 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT CASE + MAX ( - - 64 ) WHEN + 24 THEN - 75 WHEN + MAX ( ALL + 10 ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 61 * - 25
----
-1525

query I rowsort
SELECT 20 + - 28 AS col0
----
-8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2490
SELECT + 1 * - COUNT( * ), MIN( 30 ) + + 60 * 59 AS col1
----
-1
3570

skipif mysql # not compatible
query II rowsort label-2490
SELECT + 1 * - COUNT ( * ), MIN ( 30 ) + + 60 * 59 AS col1
----
-1
3570

query I rowsort
SELECT - 66 + + - 10 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL + SUM( + 42 ) col1
----
42

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL + SUM ( + 42 ) col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT ALL + + 49 * + + ( + 88 ) - COUNT( + 69 ) + + + 10 + - 49 * + + MAX( 91 ) * + CAST( + 13 AS SIGNED ) AS col0
----
-53646

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + + 49 * + + ( + 88 ) - COUNT ( + 69 ) + + + 10 + - 49 * + + MAX ( 91 ) * + CAST ( + 13 AS INTEGER ) AS col0
----
-53646

onlyif mysql # DIV for integer division: 
query I rowsort label-2494
SELECT ALL + NULLIF ( - 39, - 12 ) * - ( + 7 ) + + 20 - - 12 DIV 67 col1
----
293

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL + NULLIF ( - 39, - 12 ) * - ( + 7 ) + + 20 - - 12 / 67 col1
----
293

query I rowsort
SELECT ALL - 91 * + 3
----
-273

query II rowsort
SELECT DISTINCT 20 * 5 AS col1, + 95 * + 15 AS col0
----
100
1425

query I rowsort
SELECT + 94 * - 53 * - 36
----
179352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT - 61 * + CASE - COALESCE ( AVG ( ALL - 20 ), + 9 - 2 ) WHEN - 19 THEN NULL WHEN 11 * + CAST( + + 81 AS SIGNED ) THEN + 54 ELSE - 92 END + + 57 - + 32
----
5637

skipif mysql # not compatible
query I rowsort label-2498
SELECT - 61 * + CASE - COALESCE ( AVG ( ALL - 20 ), + 9 - 2 ) WHEN - 19 THEN NULL WHEN 11 * + CAST ( + + 81 AS INTEGER ) THEN + 54 ELSE - 92 END + + 57 - + 32
----
5637

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT + 8 * - + ( - CASE - - 53 WHEN - + 96 THEN NULL WHEN - + 4 * + 70 THEN COUNT( * ) + - 34 WHEN MIN( 78 ) THEN NULL ELSE - 46 END ) AS col1
----
-368

skipif mysql # not compatible
query I rowsort label-2499
SELECT + 8 * - + ( - CASE - - 53 WHEN - + 96 THEN NULL WHEN - + 4 * + 70 THEN COUNT ( * ) + - 34 WHEN MIN ( 78 ) THEN NULL ELSE - 46 END ) AS col1
----
-368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT CAST( - - 0 AS SIGNED ) / - 60 * + COUNT( * ) + 34 + COUNT( - + 66 ) + + CASE - 25 WHEN + 37 THEN 91 ELSE NULL END * + MAX( - CAST( NULL AS SIGNED ) ) * - 19 * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT CAST ( - - 0 AS INTEGER ) / - 60 * + COUNT ( * ) + 34 + COUNT ( - + 66 ) + + CASE - 25 WHEN + 37 THEN 91 ELSE NULL END * + MAX ( - CAST ( NULL AS INTEGER ) ) * - 19 * + 22 AS col0
----
NULL

query I rowsort
SELECT - 82 * - 33
----
2706

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT COUNT( * ) * 99 * - COUNT( * ) + + + 18 + + + 78 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2503
SELECT COUNT ( * ) * 99 * - COUNT ( * ) + + + 18 + + + 78 AS col0
----
-3

query I rowsort
SELECT - + 53 + - - 86 AS col2
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL - 67 * - - COUNT( * ) + - + 56
----
-123

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - 67 * - - COUNT ( * ) + - + 56
----
-123

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2508
SELECT - 27 + 96 + + - COALESCE ( - - CAST( 84 AS SIGNED ), - - COALESCE ( + 24, 0 * 56 ) * 55 * + + 59 DIV + 40 * + 2 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 27 + 96 + + - COALESCE ( - - CAST ( 84 AS INTEGER ), - - COALESCE ( + 24, 0 * 56 ) * 55 * + + 59 / + 40 * + 2 ) AS col0
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT ( - NULLIF ( + 43, COUNT( * ) * + - 48 ) ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT ( - NULLIF ( + 43, COUNT ( * ) * + - 48 ) ) col2
----
-43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT ALL - COALESCE ( + + 78, - COUNT( * ), - 86 - - 22 ) + - 35, 15 + 83 * 44 AS col2
----
-113
3667

skipif mysql # not compatible
query II rowsort label-2513
SELECT ALL - COALESCE ( + + 78, - COUNT ( * ), - 86 - - 22 ) + - 35, 15 + 83 * 44 AS col2
----
-113
3667

query I rowsort
SELECT ALL + 3 * + ( - 15 ) * + - 89 AS col2
----
4005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2515
SELECT - 67 DIV COUNT( * ) * - + COUNT( * ) * 31
----
2077

skipif mysql # not compatible
query I rowsort label-2515
SELECT - 67 / COUNT ( * ) * - + COUNT ( * ) * 31
----
2077

query I rowsort
SELECT ALL - 31 - + 94 * - + 14 AS col2
----
1285

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL ( ( + MIN( ALL - + 70 ) ) ) - + - 20 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL ( ( + MIN ( ALL - + 70 ) ) ) - + - 20 AS col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT + 37 DIV - - 9 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 37 / - - 9 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2519
SELECT DISTINCT + 59 DIV 84 * - 35 * MAX( - - 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + 59 / 84 * - 35 * MAX ( - - 94 ) AS col1
----
0

query I rowsort
SELECT - 8 + + 36 col2
----
28

query I rowsort
SELECT + 14 * 14 AS col1
----
196

query I rowsort
SELECT ALL ( - 15 ) * 69 AS col0
----
-1035

query I rowsort
SELECT - 84 * 26
----
-2184

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT - 1 DIV + + 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT - 1 / + + 39 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - 93 * 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 93 * 36 AS col0
----
NULL

query I rowsort
SELECT + 78 - + 43
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + + 75 - - - ( - + COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-2528
SELECT + + 75 - - - ( - + COUNT ( * ) )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2529
SELECT ALL + 53, + COUNT( 33 ) + - 5 AS col1
----
53
-4

skipif mysql # not compatible
query II rowsort label-2529
SELECT ALL + 53, + COUNT ( 33 ) + - 5 AS col1
----
53
-4

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

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

query I rowsort
SELECT + - 0 + - + 28 + NULLIF ( - - 55, + - 30 ) AS col1
----
27

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

skipif mysql # not compatible
query I rowsort label-2532
SELECT - MIN ( - + 84 )
----
84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2534
SELECT - + 41 / + - 2 + - 20 + - - CAST( NULL AS SIGNED ) + - + 53 * - 42 * - - ( + 13 ) * - CAST( + 94 AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT - + 41 / + - 2 + - 20 + - - CAST ( NULL AS INTEGER ) + - + 53 * - 42 * - - ( + 13 ) * - CAST ( + 94 AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 13 * + 10 * + 86 * + + 46 * - + 37 - 63 * 57 AS col0
----
-19031951

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

skipif mysql # not compatible
query I rowsort label-2536
SELECT + COUNT ( * ) / + 84 - - 66 * - - COUNT ( * )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2537
SELECT DISTINCT - COUNT( * ) DIV 24 + + 79 AS col0, 68 AS col2
----
79
68

skipif mysql # not compatible
query II rowsort label-2537
SELECT DISTINCT - COUNT ( * ) / 24 + + 79 AS col0, 68 AS col2
----
79
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2538
SELECT ALL - 12 / - - CAST( NULL AS DECIMAL ) + + - 69 + + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - 12 / - - CAST ( NULL AS REAL ) + + - 69 + + + 87 AS col1
----
NULL

query I rowsort
SELECT + CASE + 75 WHEN 15 / + 20 THEN - 0 WHEN + 52 THEN 28 / - 47 END AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT DISTINCT + 97 DIV - 37 + 87
----
85

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT + 97 / - 37 + 87
----
85

query I rowsort
SELECT + + 24 + 75 + 42 + + + ( + 77 ) * + 97
----
7610

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT DISTINCT - + 94 DIV 79 + - + 5 + + 31 + - 51 * - + NULLIF ( - 84, + COALESCE ( 97, 16 - 56 ) * NULLIF ( 95, + 20 ) ) + + 29 * 61
----
-2490

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT - + 94 / 79 + - + 5 + + 31 + - 51 * - + NULLIF ( - 84, + COALESCE ( 97, 16 - 56 ) * NULLIF ( 95, + 20 ) ) + + 29 * 61
----
-2490

query I rowsort
SELECT ALL 38 * - 4
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2545
SELECT + 17 * 25 * 94 + + 55 + CAST( NULL AS SIGNED ) + + 69 * COUNT( * ) + COALESCE ( - 69, - 38, - - 37 / + 16 * - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT + 17 * 25 * 94 + + 55 + CAST ( NULL AS INTEGER ) + + 69 * COUNT ( * ) + COALESCE ( - 69, - 38, - - 37 / + 16 * - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT + ( ( + 57 ) ) DIV + 29 + + 86
----
87

skipif mysql # not compatible
query I rowsort label-2546
SELECT + ( ( + 57 ) ) / + 29 + + 86
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT + CAST( - ( + + 84 ) AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2547
SELECT + CAST ( - ( + + 84 ) AS INTEGER ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2548
SELECT DISTINCT 80 * COALESCE ( + ( + + ( - 96 ) ), + COUNT( * ) DIV MAX( - 13 ) + + 74 + - 15 + + + COALESCE ( + + 70, CASE COUNT( CAST( NULL AS SIGNED ) ) WHEN 73 THEN + COUNT( * ) END ) * - 60 DIV - COUNT( * ), - 7 * ( - COALESCE ( 19, + ( + 56 ) * - COUNT( * ) + + 93 ) * 26 ) ) + - 77 AS col1
----
-7757

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT 80 * COALESCE ( + ( + + ( - 96 ) ), + COUNT ( * ) / MAX ( - 13 ) + + 74 + - 15 + + + COALESCE ( + + 70, CASE COUNT ( CAST ( NULL AS INTEGER ) ) WHEN 73 THEN + COUNT ( * ) END ) * - 60 / - COUNT ( * ), - 7 * ( - COALESCE ( 19, + ( + 56 ) * - COUNT ( * ) + + 93 ) * 26 ) ) + - 77 AS col1
----
-7757

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL - 13 * + - COALESCE ( + COUNT( * ), - COALESCE ( 57, + + 0 * 44 + + - 43 * 59, - 82 ) ) - - 48
----
61

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - 13 * + - COALESCE ( + COUNT ( * ), - COALESCE ( 57, + + 0 * 44 + + - 43 * 59, - 82 ) ) - - 48
----
61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT - 68 + - 8 + 41 - - 77 DIV + + 81 col1
----
-35

skipif mysql # not compatible
query I rowsort label-2552
SELECT - 68 + - 8 + 41 - - 77 / + + 81 col1
----
-35

query I rowsort
SELECT - 27 * 33 * 80 AS col0
----
-71280

query II rowsort
SELECT ALL + CASE 89 WHEN + 35 + - 75 THEN + - 40 * - 0 WHEN 47 THEN NULL ELSE NULL END, 37 - - - ( - - 48 ) AS col0
----
NULL
-11

query I rowsort
SELECT - 44 + - 68 + + 38 + + + 78 AS col1
----
4

query I rowsort
SELECT 91 + 92 col2
----
183

query I rowsort
SELECT ( + 67 ) * + 61 + 48 col0
----
4135

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT ALL + 72 * - 89 * + MAX( ALL + 58 )
----
-371664

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL + 72 * - 89 * + MAX ( ALL + 58 )
----
-371664

query I rowsort
SELECT 0 + 96 AS col1
----
96

query I rowsort
SELECT 36 - - - NULLIF ( + 49, + 30 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2561
SELECT 19 * - 25 * - MAX( DISTINCT 7 ) AS col2, - COUNT( * ) * + 81 - - - COUNT( * ) + + - 34 * 71 * + 23 + 45 AS col1
----
3325
-55559

skipif mysql # not compatible
query II rowsort label-2561
SELECT 19 * - 25 * - MAX ( DISTINCT 7 ) AS col2, - COUNT ( * ) * + 81 - - - COUNT ( * ) + + - 34 * 71 * + 23 + 45 AS col1
----
3325
-55559

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT 26 + + 82 + SUM( DISTINCT + - 81 ) + - 89 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-2562
SELECT 26 + + 82 + SUM ( DISTINCT + - 81 ) + - 89 AS col2
----
-62

query I rowsort
SELECT DISTINCT + 55 * 76
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - NULLIF ( - COUNT( * ), + + 61 + - 77 ) + - COUNT( + 47 )
----
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT - NULLIF ( - COUNT ( * ), + + 61 + - 77 ) + - COUNT ( + 47 )
----
0

query I rowsort
SELECT 27 + - 56 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - CASE WHEN NOT ( + - COUNT( ALL 77 ) IN ( + 17, + 27 / + COALESCE ( - COUNT( * ), - 55 ) * + 24 + COALESCE ( 16, + 45 ) + + COUNT( * ) * COUNT( * ) ) ) THEN NULL ELSE - COUNT( * ) - - 67 END * + SUM( + 77 * 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT - CASE WHEN NOT ( + - COUNT ( ALL 77 ) IN ( + 17, + 27 / + COALESCE ( - COUNT ( * ), - 55 ) * + 24 + COALESCE ( 16, + 45 ) + + COUNT ( * ) * COUNT ( * ) ) ) THEN NULL ELSE - COUNT ( * ) - - 67 END * + SUM ( + 77 * 27 ) AS col1
----
NULL

query I rowsort
SELECT 4 + - - 36 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT 7 * + + ( MAX( + 92 ) ) - 75 AS col0
----
569

skipif mysql # not compatible
query I rowsort label-2568
SELECT 7 * + + ( MAX ( + 92 ) ) - 75 AS col0
----
569

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT + 50 + - 24 DIV - - 74 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2569
SELECT + 50 + - 24 / - - 74 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT ALL + 83 + - 55 * + 92 * - + NULLIF ( + + CAST( NULL AS SIGNED ), + + 14 * - - 15 + - 37 ) * 61 * + 24 / CAST( NULL AS SIGNED ) + + + ( - 37 ) / + 95 * 17 - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + 83 + - 55 * + 92 * - + NULLIF ( + + CAST ( NULL AS INTEGER ), + + 14 * - - 15 + - 37 ) * 61 * + 24 / CAST ( NULL AS INTEGER ) + + + ( - 37 ) / + 95 * 17 - 26
----
NULL

query I rowsort
SELECT - - ( + NULLIF ( + ( - 27 ), + - ( 62 ) ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT 96 + - CASE - 11 WHEN COUNT( * ) + 39 + - 93 THEN 68 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT 96 + - CASE - 11 WHEN COUNT ( * ) + 39 + - 93 THEN 68 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT ALL - 8 + - 67 + COUNT( * ) * + 90 AS col0, 16
----
15
16

skipif mysql # not compatible
query II rowsort label-2573
SELECT ALL - 8 + - 67 + COUNT ( * ) * + 90 AS col0, 16
----
15
16

query I rowsort
SELECT DISTINCT - 50 * - 94 * - 54 col1
----
-253800

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

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + - COUNT ( * ) + + 98 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT DISTINCT - + ( + CASE + 89 WHEN - + 75 + + CAST( NULL AS SIGNED ) THEN NULL WHEN 15 * - COUNT( * ) THEN + + 34 / MAX( ALL + + NULLIF ( + + 63, - + ( + 10 ) ) ) + - + 20 END ) + - ( ( + 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - + ( + CASE + 89 WHEN - + 75 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 15 * - COUNT ( * ) THEN + + 34 / MAX ( ALL + + NULLIF ( + + 63, - + ( + 10 ) ) ) + - + 20 END ) + - ( ( + 83 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2577
SELECT - 26 + - 9 AS col2, - CAST( + NULLIF ( + ( + - ( - CAST( + COUNT( * ) AS SIGNED ) ) ), + 37 + - 73 + + 98 - - 22 ) AS SIGNED ) DIV - 24 - - 1 + + 86 * + 35
----
-35
3011

skipif mysql # not compatible
query II rowsort label-2577
SELECT - 26 + - 9 AS col2, - CAST ( + NULLIF ( + ( + - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) ), + 37 + - 73 + + 98 - - 22 ) AS INTEGER ) / - 24 - - 1 + + 86 * + 35
----
-35
3011

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - 83 - + MIN( 19 ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-2578
SELECT - 83 - + MIN ( 19 ) AS col0
----
-102

query I rowsort
SELECT - NULLIF ( - 29, 98 ) AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2580
SELECT CASE - 0 WHEN - 44 * + 59 + + COUNT( + + CAST( NULL AS DECIMAL ) ) + + + 75 * - 78 THEN + 24 ELSE NULL END * + - 18 + + 11 - - SUM( ALL + 55 ) + 67 + + CAST( NULL AS SIGNED ) / - 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT CASE - 0 WHEN - 44 * + 59 + + COUNT ( + + CAST ( NULL AS REAL ) ) + + + 75 * - 78 THEN + 24 ELSE NULL END * + - 18 + + 11 - - SUM ( ALL + 55 ) + 67 + + CAST ( NULL AS INTEGER ) / - 99 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2581
SELECT - CASE - 26 WHEN + - 34 + + 40 THEN NULL ELSE 59 + + - 68 * - 5 END / 81 * + - MAX( ALL CAST( NULL AS DECIMAL ) ) + + + 51 + - 22 + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT - CASE - 26 WHEN + - 34 + + 40 THEN NULL ELSE 59 + + - 68 * - 5 END / 81 * + - MAX ( ALL CAST ( NULL AS REAL ) ) + + + 51 + - 22 + - 18
----
NULL

query I rowsort
SELECT ( 29 ) * 47
----
1363

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

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

query I rowsort
SELECT 4 - 29
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2585
SELECT ALL - COUNT( * ) * COALESCE ( - COUNT( * ), + CASE + + ( 39 ) WHEN - 52 THEN NULL WHEN - COUNT( DISTINCT + 77 ) THEN + + NULLIF ( - + 68, CAST( + 22 AS DECIMAL ) * + COUNT( * ) ) * - 55 + COALESCE ( + 48, 81 ) + 83 ELSE - 13 END * - ( COUNT( * ) ), + 54 - - NULLIF ( 74 - - 71 DIV 26, COUNT( * ) ) ) * - 29
----
-29

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - COUNT ( * ) * COALESCE ( - COUNT ( * ), + CASE + + ( 39 ) WHEN - 52 THEN NULL WHEN - COUNT ( DISTINCT + 77 ) THEN + + NULLIF ( - + 68, CAST ( + 22 AS REAL ) * + COUNT ( * ) ) * - 55 + COALESCE ( + 48, 81 ) + 83 ELSE - 13 END * - ( COUNT ( * ) ), + 54 - - NULLIF ( 74 - - 71 / 26, COUNT ( * ) ) ) * - 29
----
-29

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2587
SELECT DISTINCT - COALESCE ( + + 30, + 6, + - CAST( NULL AS SIGNED ) + 58 DIV - - 14 ) * + 79
----
-2370

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - COALESCE ( + + 30, + 6, + - CAST ( NULL AS INTEGER ) + 58 / - - 14 ) * + 79
----
-2370

query I rowsort
SELECT DISTINCT 68 * + + 34
----
2312

onlyif mysql # DIV for integer division: 
query I rowsort label-2589
SELECT 94 DIV - - 72 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2589
SELECT 94 / - - 72 AS col0
----
1

query I rowsort
SELECT ALL 3 * 14 * + 23 AS col2
----
966

query I rowsort
SELECT 0 * 62 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT 68 * + 75 + COUNT( * ) + - ( + 51 ) - - 19 * + - 4
----
4974

skipif mysql # not compatible
query I rowsort label-2592
SELECT 68 * + 75 + COUNT ( * ) + - ( + 51 ) - - 19 * + - 4
----
4974

query I rowsort
SELECT - 93 * + 95 + 39 * - 92
----
-12423

query II rowsort
SELECT ALL 23 AS col2, - 86 AS col1
----
23
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT 19 DIV + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2595
SELECT 19 / + 72 AS col1
----
0

query I rowsort
SELECT 55 * - 62
----
-3410

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT - COUNT( * ), - 88 + - - 49 AS col2
----
-1
-39

skipif mysql # not compatible
query II rowsort label-2597
SELECT - COUNT ( * ), - 88 + - - 49 AS col2
----
-1
-39

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

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

query I rowsort
SELECT ALL + 41 + - 60
----
-19

query I rowsort
SELECT DISTINCT + 23 + - 26 AS col2
----
-3

query I rowsort
SELECT - ( + 52 ) * + + 76 + - - 22
----
-3930

query I rowsort
SELECT - NULLIF ( + 76, - 95 + + 4 )
----
-76

query I rowsort
SELECT ALL - ( + 52 ) + 30 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT + CAST( - + 94 AS SIGNED ) * + - 34 AS col1
----
3196

skipif mysql # not compatible
query I rowsort label-2604
SELECT + CAST ( - + 94 AS INTEGER ) * + - 34 AS col1
----
3196

query I rowsort
SELECT 19 * 1 AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2606
SELECT ALL - 12 + COUNT( + - 70 ) + 93 DIV 34 * + 80 * - 29 AS col2
----
-4651

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL - 12 + COUNT ( + - 70 ) + 93 / 34 * + 80 * - 29 AS col2
----
-4651

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

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - 63 + - COUNT ( * ) * - 20
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL - MIN( DISTINCT 36 ) + + 4 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL - MIN ( DISTINCT 36 ) + + 4 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT - COUNT( * ) + - - 93 + + 7 * - + 38 * - 19 * - 92 + - + 83
----
-464959

skipif mysql # not compatible
query I rowsort label-2609
SELECT - COUNT ( * ) + - - 93 + + 7 * - + 38 * - 19 * - 92 + - + 83
----
-464959

query I rowsort
SELECT - COALESCE ( - - 50, + 22 + - 87 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT DISTINCT COUNT( * ), - 60 * + 0 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2611
SELECT DISTINCT COUNT ( * ), - 60 * + 0 col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT NULLIF ( - 14, + COUNT( * ) ) * - - 59 AS col0
----
-826

skipif mysql # not compatible
query I rowsort label-2612
SELECT NULLIF ( - 14, + COUNT ( * ) ) * - - 59 AS col0
----
-826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL - CASE + 26 WHEN 36 + 10 + - NULLIF ( NULLIF ( + 81, + + COUNT( 1 ) ), + + 75 * + 36 + - CAST( NULL AS SIGNED ) * - 47 ) * - + CASE 51 WHEN 76 THEN COUNT( * ) END * + COUNT( * ) THEN 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL - CASE + 26 WHEN 36 + 10 + - NULLIF ( NULLIF ( + 81, + + COUNT ( 1 ) ), + + 75 * + 36 + - CAST ( NULL AS INTEGER ) * - 47 ) * - + CASE 51 WHEN 76 THEN COUNT ( * ) END * + COUNT ( * ) THEN 71 END
----
NULL

query I rowsort
SELECT + 81 + 89 - - 17
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2615
SELECT - + 45 * + - 51 - + 99 DIV 55 + - + 17 + - COUNT( * ) - ( + COUNT( 40 ) )
----
2275

skipif mysql # not compatible
query I rowsort label-2615
SELECT - + 45 * + - 51 - + 99 / 55 + - + 17 + - COUNT ( * ) - ( + COUNT ( 40 ) )
----
2275

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT COUNT( + 95 ) + - SUM( - 75 ) * + - 93 AS col1, 43 * + - 2
----
-6974
-86

skipif mysql # not compatible
query II rowsort label-2616
SELECT COUNT ( + 95 ) + - SUM ( - 75 ) * + - 93 AS col1, 43 * + - 2
----
-6974
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2617
SELECT - 79 DIV 53 + COUNT( * ) - + - 3 - + COUNT( * ) * - 76 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2617
SELECT - 79 / 53 + COUNT ( * ) - + - 3 - + COUNT ( * ) * - 76 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL + 81 * - COUNT( * ) - + 85
----
-166

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + 81 * - COUNT ( * ) - + 85
----
-166

query I rowsort
SELECT 1 * 75 AS col1
----
75

query I rowsort
SELECT - CASE 45 WHEN + ( - 24 ) * - + 69 THEN - 21 WHEN 35 THEN NULL ELSE + 37 - - 96 END * - 77 + + 13
----
10254

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT MIN( - + 27 ) * - COALESCE ( + - 18, - + 55, + 67 ) * + ( + + 92 ) - - 90 AS col0
----
-44622

skipif mysql # not compatible
query I rowsort label-2621
SELECT MIN ( - + 27 ) * - COALESCE ( + - 18, - + 55, + 67 ) * + ( + + 92 ) - - 90 AS col0
----
-44622

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2622
SELECT ALL ( - + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) * - 82 + ( + 54 ) * - 49 * + - ( + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL ( - + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) * - 82 + ( + 54 ) * - 49 * + - ( + 96 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT 81 DIV - 14 + 90
----
85

skipif mysql # not compatible
query I rowsort label-2624
SELECT 81 / - 14 + 90
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT + 48, 7 * + COUNT( + + ( 81 ) ) AS col1
----
48
7

skipif mysql # not compatible
query II rowsort label-2625
SELECT + 48, 7 * + COUNT ( + + ( 81 ) ) AS col1
----
48
7

query I rowsort
SELECT + 3 + 99 col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + 21 * 90 * + - COUNT( * )
----
-1890

skipif mysql # not compatible
query I rowsort label-2627
SELECT + 21 * 90 * + - COUNT ( * )
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL - 72 * + - SUM( - ( - 24 ) ) * - 20 * COUNT( * ) AS col1
----
-34560

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - 72 * + - SUM ( - ( - 24 ) ) * - 20 * COUNT ( * ) AS col1
----
-34560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2629
SELECT MIN( - - 34 ) AS col0, 6 / 7 - + 13 - + CAST( NULL AS SIGNED ) AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-2629
SELECT MIN ( - - 34 ) AS col0, 6 / 7 - + 13 - + CAST ( NULL AS INTEGER ) AS col2
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT - 2 * NULLIF ( - + 32, - MIN( ALL 98 ) + - 3 * + 42 * + 17 * + 78 + + - 39 ) + - 42 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2630
SELECT - 2 * NULLIF ( - + 32, - MIN ( ALL 98 ) + - 3 * + 42 * + 17 * + 78 + + - 39 ) + - 42 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT + COUNT( * ), ( + 58 ) + + 33 AS col0
----
1
91

skipif mysql # not compatible
query II rowsort label-2631
SELECT + COUNT ( * ), ( + 58 ) + + 33 AS col0
----
1
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT 9 * - COALESCE ( - 95, + 51 + - 17, ( + NULLIF ( CAST( NULL AS SIGNED ), - SUM( DISTINCT - 73 ) ) ) * - 9 ) + + 97 * - 80 * 63 * 10 * + + 65 AS col1
----
-317771145

skipif mysql # not compatible
query I rowsort label-2632
SELECT 9 * - COALESCE ( - 95, + 51 + - 17, ( + NULLIF ( CAST ( NULL AS INTEGER ), - SUM ( DISTINCT - 73 ) ) ) * - 9 ) + + 97 * - 80 * 63 * 10 * + + 65 AS col1
----
-317771145

query I rowsort
SELECT + 91 * - - 50 AS col2
----
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT - 89 * 45 + MIN( ALL - 11 ) + + 48
----
-3968

skipif mysql # not compatible
query I rowsort label-2634
SELECT - 89 * 45 + MIN ( ALL - 11 ) + + 48
----
-3968

onlyif mysql # DIV for integer division: 
query II rowsort label-2635
SELECT ALL + 84 AS col0, 81 DIV 74 AS col2
----
84
1

skipif mysql # not compatible
query II rowsort label-2635
SELECT ALL + 84 AS col0, 81 / 74 AS col2
----
84
1

query I rowsort
SELECT ALL + ( - 88 ) AS col1
----
-88

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

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

query I rowsort
SELECT ALL 49 + + NULLIF ( - 9, - - 33 ) AS col2
----
40

query I rowsort
SELECT + 55 + + - 72 * - 5 AS col0
----
415

query I rowsort
SELECT ALL 61 + + 4
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - 64 * - + SUM( DISTINCT 13 ) + 15
----
847

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 64 * - + SUM ( DISTINCT 13 ) + 15
----
847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2642
SELECT ALL 43 + + 16 + AVG ( ALL + - 6 ) * 70 * - NULLIF ( + + CAST( NULL AS SIGNED ), - COUNT( * ) + - + 30 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL 43 + + 16 + AVG ( ALL + - 6 ) * 70 * - NULLIF ( + + CAST ( NULL AS INTEGER ), - COUNT ( * ) + - + 30 * COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT + 7 / CASE - + ( 1 ) WHEN - 53 THEN NULL WHEN + 75 / - COUNT( + 63 ) THEN - 33 ELSE NULL END * - - 69 * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT + 7 / CASE - + ( 1 ) WHEN - 53 THEN NULL WHEN + 75 / - COUNT ( + 63 ) THEN - 33 ELSE NULL END * - - 69 * - 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2644
SELECT + 19 + 55 DIV + + 89 + + + MAX( DISTINCT - 64 ) + 78, + NULLIF ( + NULLIF ( + 62, - ( + COUNT( * ) ) ), - 0 * COUNT( * ) ) + - 78 AS col0
----
33
-16

skipif mysql # not compatible
query II rowsort label-2644
SELECT + 19 + 55 / + + 89 + + + MAX ( DISTINCT - 64 ) + 78, + NULLIF ( + NULLIF ( + 62, - ( + COUNT ( * ) ) ), - 0 * COUNT ( * ) ) + - 78 AS col0
----
33
-16

query I rowsort
SELECT + 36 + - NULLIF ( - 98, + + 54 )
----
134

query I rowsort
SELECT - 5 + + 6 col1
----
1

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

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL 75 + - + COUNT ( * ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT + ( - CASE - MIN( DISTINCT 16 ) WHEN - + 31 / + - 28 - - 7 * - 32 / + 26 + ( - 4 ) THEN 85 + + 91 * + + 44 WHEN 30 THEN NULL WHEN + 3 THEN 65 * 22 END ) * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT + ( - CASE - MIN ( DISTINCT 16 ) WHEN - + 31 / + - 28 - - 7 * - 32 / + 26 + ( - 4 ) THEN 85 + + 91 * + + 44 WHEN 30 THEN NULL WHEN + 3 THEN 65 * 22 END ) * - 39
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2650
SELECT DISTINCT - 14 + - - 67 * - 49 + ( + 55 ) + - 36 + 31 / ( CAST( NULL AS SIGNED ) ) * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT - 14 + - - 67 * - 49 + ( + 55 ) + - 36 + 31 / ( CAST ( NULL AS INTEGER ) ) * 32
----
NULL

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

query I rowsort
SELECT + + ( 67 ) + 41
----
108

query I rowsort
SELECT ALL + 81 + 75 - + - 52
----
208

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT - - 11 + COUNT( * ) AS col2, 48
----
12
48

skipif mysql # not compatible
query II rowsort label-2654
SELECT - - 11 + COUNT ( * ) AS col2, 48
----
12
48

query I rowsort
SELECT ALL - - 10 - - - 23 - - 95 * - 50 * + 43 AS col1
----
-204263

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT - 35 + + 52 + - 62 + - 2 - - + 34 + 72 * - + 16 + - ( - - MAX( - 39 ) ) * 65 DIV + - 23
----
-1275

skipif mysql # not compatible
query I rowsort label-2657
SELECT - 35 + + 52 + - 62 + - 2 - - + 34 + 72 * - + 16 + - ( - - MAX ( - 39 ) ) * 65 / + - 23
----
-1275

onlyif mysql # DIV for integer division: 
query II rowsort label-2658
SELECT - + 38 AS col1, ( 17 ) + - 94 + - - 84 - + - 9 DIV + 48 * 20 AS col0
----
-38
7

skipif mysql # not compatible
query II rowsort label-2658
SELECT - + 38 AS col1, ( 17 ) + - 94 + - - 84 - + - 9 / + 48 * 20 AS col0
----
-38
7

query I rowsort
SELECT - 48 + + 10 AS col2
----
-38

query II rowsort
SELECT - + 69 AS col2, + 92 * 74 * - 14
----
-69
-95312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2661
SELECT DISTINCT - CASE - COUNT( * ) WHEN - + CAST( NULL AS DECIMAL ) THEN 17 - 10 + + + ( - - 97 ) + 50 WHEN - + COUNT( * ) + - 86 THEN NULL ELSE + 85 END AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - + CAST ( NULL AS REAL ) THEN 17 - 10 + + + ( - - 97 ) + 50 WHEN - + COUNT ( * ) + - 86 THEN NULL ELSE + 85 END AS col0
----
-85

query I rowsort
SELECT ALL + NULLIF ( 93, - + 34 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT - MAX( ALL - + 68 ) * + - COALESCE ( 32, 46 * - 99 + + COUNT( * ) * + 77, + 93 ) AS col1
----
-2176

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - MAX ( ALL - + 68 ) * + - COALESCE ( 32, 46 * - 99 + + COUNT ( * ) * + 77, + 93 ) AS col1
----
-2176

onlyif mysql # DIV for integer division: 
query II rowsort label-2664
SELECT ALL - 13 DIV - 50 col1, - 41
----
0
-41

skipif mysql # not compatible
query II rowsort label-2664
SELECT ALL - 13 / - 50 col1, - 41
----
0
-41

query I rowsort
SELECT - 21 * + 93 AS col0
----
-1953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT ALL + ( - - NULLIF ( - 60, + + 10 - CAST( + 45 AS SIGNED ) ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + ( - - NULLIF ( - 60, + + 10 - CAST ( + 45 AS INTEGER ) ) ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT - 97 * - ( + + 60 ) * + - COUNT( * )
----
-5820

skipif mysql # not compatible
query I rowsort label-2667
SELECT - 97 * - ( + + 60 ) * + - COUNT ( * )
----
-5820

query II rowsort
SELECT ( + 50 ) AS col1, ( - - 20 ) AS col2
----
50
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2669
SELECT ALL + ( + + MAX( ALL + 24 ) ) DIV 34 DIV + COUNT( * ) * 89
----
0

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + ( + + MAX ( ALL + 24 ) ) / 34 / + COUNT ( * ) * 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT - 85 DIV - 35
----
2

skipif mysql # not compatible
query I rowsort label-2670
SELECT - 85 / - 35
----
2

query I rowsort
SELECT + 91 + + 94 + 83 AS col0
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT + 95 * - + NULLIF ( + + 75, + COUNT( * ) * + 37 / + 97 * 37 + + 94 )
----
-7125

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT + 95 * - + NULLIF ( + + 75, + COUNT ( * ) * + 37 / + 97 * 37 + + 94 )
----
-7125

query I rowsort
SELECT ALL + 22 * + + 79 + - 51
----
1687

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2674
SELECT - 14 - COUNT( * ) * - - 74 + - 79 + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT - 14 - COUNT ( * ) * - - 74 + - 79 + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2675
SELECT ALL - 50 * - - 58, COUNT( * ) AS col2
----
-2900
1

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL - 50 * - - 58, COUNT ( * ) AS col2
----
-2900
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT + COUNT( * ) * 9 + - 32 * + + 45 AS col1
----
-1431

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT + COUNT ( * ) * 9 + - 32 * + + 45 AS col1
----
-1431

query I rowsort
SELECT + CASE 83 WHEN - 11 THEN 44 * - 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT + 12 * - COUNT( + 50 ) + - COALESCE ( - ( + 62 ), + 69 * + 1 + - 12 * + + 27 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT + 12 * - COUNT ( + 50 ) + - COALESCE ( - ( + 62 ), + 69 * + 1 + - 12 * + + 27 ) AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2679
SELECT + COALESCE ( + COALESCE ( + + 91, + 64 ), + 0, 75 DIV 32 * - - 92 - - - 12 + + - CASE - ( - COUNT( * ) ) WHEN + 55 THEN 59 ELSE - 53 * + 30 * 68 + + ( + 3 ) END DIV + 60 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-2679
SELECT + COALESCE ( + COALESCE ( + + 91, + 64 ), + 0, 75 / 32 * - - 92 - - - 12 + + - CASE - ( - COUNT ( * ) ) WHEN + 55 THEN 59 ELSE - 53 * + 30 * 68 + + ( + 3 ) END / + 60 ) AS col2
----
91

query I rowsort
SELECT - 95 * - - ( + 49 )
----
-4655

query I rowsort
SELECT 42 * + 54 * 18 * - 88 + + ( + 52 ) col0
----
-3592460

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

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

query I rowsort
SELECT + ( 44 ) * + - 13
----
-572

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2684
SELECT + 50 + - + 94 + - + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) DIV - COALESCE ( 47, - + 62 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2684
SELECT + 50 + - + 94 + - + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) / - COALESCE ( 47, - + 62 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT + + 89 * - 35 + 33 DIV + ( - ( - 84 ) )
----
-3115

skipif mysql # not compatible
query I rowsort label-2685
SELECT + + 89 * - 35 + 33 / + ( - ( - 84 ) )
----
-3115

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT ALL - 19 DIV 13 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - 19 / 13 / + 17
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT + - CAST( NULL AS SIGNED ) - + + COALESCE ( + + 71, - 81 / - + 45 * + 85 ) + - 14 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT + - CAST ( NULL AS INTEGER ) - + + COALESCE ( + + 71, - 81 / - + 45 * + 85 ) + - 14 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT ALL - COALESCE ( + CAST( + 81 AS SIGNED ), ( + 18 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL - COALESCE ( + CAST ( + 81 AS INTEGER ), ( + 18 ) )
----
-81

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

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

query I rowsort
SELECT 61 * + 99
----
6039

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT - 38 DIV + + 58 - 80 + + + 63 * + 95 - + COUNT( * ) AS col1
----
5904

skipif mysql # not compatible
query I rowsort label-2693
SELECT - 38 / + + 58 - 80 + + + 63 * + 95 - + COUNT ( * ) AS col1
----
5904

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2696
SELECT 95 AS col2, + CAST( - + 42 AS SIGNED ) * + 41 AS col2
----
95
-1722

skipif mysql # not compatible
query II rowsort label-2696
SELECT 95 AS col2, + CAST ( - + 42 AS INTEGER ) * + 41 AS col2
----
95
-1722

query II rowsort
SELECT 18 * - - 8 + + + 64 AS col0, - 72 AS col1
----
208
-72

query II rowsort
SELECT ALL - 65, 8 col0
----
-65
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2699
SELECT - 81 DIV - 60 + + MIN( + - 43 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2699
SELECT - 81 / - 60 + + MIN ( + - 43 ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2700
SELECT ALL - NULLIF ( - - COALESCE ( 2, - + MAX( DISTINCT + 98 ) * - + 57 DIV + 47 DIV + - 65 * 78 * - - 77 + + 51 ), COUNT( * ) * + CASE + 56 WHEN - 29 THEN - 37 END ), 73 AS col1
----
-2
73

skipif mysql # not compatible
query II rowsort label-2700
SELECT ALL - NULLIF ( - - COALESCE ( 2, - + MAX ( DISTINCT + 98 ) * - + 57 / + 47 / + - 65 * 78 * - - 77 + + 51 ), COUNT ( * ) * + CASE + 56 WHEN - 29 THEN - 37 END ), 73 AS col1
----
-2
73

query I rowsort
SELECT 25 + + 83 + - 93
----
15

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

skipif mysql # not compatible
query I rowsort label-2702
SELECT CAST ( NULL AS INTEGER ) * 67 col2
----
NULL

query I rowsort
SELECT 64 * - - 35
----
2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT CASE + 61 WHEN - 68 THEN - 64 * ( - + 66 ) / - 56 * - CAST( + + 26 AS SIGNED ) END * + - 15 + - 61 + 88 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT CASE + 61 WHEN - 68 THEN - 64 * ( - + 66 ) / - 56 * - CAST ( + + 26 AS INTEGER ) END * + - 15 + - 61 + 88 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT SUM( DISTINCT + NULLIF ( + 87, 39 + + 19 ) ) * - 56 + - 71 + 60 AS col1
----
-4883

skipif mysql # not compatible
query I rowsort label-2705
SELECT SUM ( DISTINCT + NULLIF ( + 87, 39 + + 19 ) ) * - 56 + - 71 + 60 AS col1
----
-4883

query I rowsort
SELECT 54 * 55 AS col2
----
2970

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

query I rowsort
SELECT 58 + 12 + - 12
----
58

query I rowsort
SELECT DISTINCT + - 14 - - 57 + 59 * - 1 + 3
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2710
SELECT DISTINCT 93 * - CASE + + 82 WHEN + - 99 + 37 THEN + + 60 / - MIN( - 72 ) + - + 9 + NULLIF ( - 52, - 62 * - CAST( + COUNT( ALL ( - COALESCE ( 31, - - ( + CAST( - 36 AS SIGNED ) ) ) ) ) AS SIGNED ) * + ( - 24 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT 93 * - CASE + + 82 WHEN + - 99 + 37 THEN + + 60 / - MIN ( - 72 ) + - + 9 + NULLIF ( - 52, - 62 * - CAST ( + COUNT ( ALL ( - COALESCE ( 31, - - ( + CAST ( - 36 AS INTEGER ) ) ) ) ) AS INTEGER ) * + ( - 24 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 22 * 94
----
-2068

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2713
SELECT + ( 22 ) * + 10 + + CAST( NULL AS SIGNED ) AS col0, 71 DIV + 50
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2713
SELECT + ( 22 ) * + 10 + + CAST ( NULL AS INTEGER ) AS col0, 71 / + 50
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT + MAX( 76 ) * + 44 AS col2
----
3344

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + MAX ( 76 ) * + 44 AS col2
----
3344

query I rowsort
SELECT CASE + 8 WHEN 38 THEN NULL ELSE 83 END + + 31
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT ALL + 32 AS col2, MIN( DISTINCT + 96 ) AS col0
----
32
96

skipif mysql # not compatible
query II rowsort label-2716
SELECT ALL + 32 AS col2, MIN ( DISTINCT + 96 ) AS col0
----
32
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2717
SELECT DISTINCT 26, - COUNT( * ) + - CAST( 64 AS SIGNED ) col0
----
26
-65

skipif mysql # not compatible
query II rowsort label-2717
SELECT DISTINCT 26, - COUNT ( * ) + - CAST ( 64 AS INTEGER ) col0
----
26
-65

query I rowsort
SELECT COALESCE ( + 33, 88, - 50 ) * 84 col2
----
2772

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

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

query I rowsort
SELECT 53 + + 36
----
89

query II rowsort
SELECT - 38 AS col1, + COALESCE ( + 11, + - 69 - 16 )
----
-38
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT - NULLIF ( + + 14, - + CAST( - 52 AS SIGNED ) ) * - ( + 3 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2722
SELECT - NULLIF ( + + 14, - + CAST ( - 52 AS INTEGER ) ) * - ( + 3 ) AS col1
----
42

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

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

query I rowsort
SELECT - - NULLIF ( - CASE - 59 WHEN + 89 THEN - 39 / 23 WHEN 60 * - 59 THEN NULL END, 26 ) AS col2
----
NULL

query I rowsort
SELECT ALL ( + + 44 ) * - + 93 * 83 AS col1
----
-339636

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT ( + + 72 ) DIV + - 87 * - ( 57 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2726
SELECT ( + + 72 ) / + - 87 * - ( 57 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT DISTINCT 91 DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT 91 / + 33
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2728
SELECT COALESCE ( + ( + 18 ), - - 6 ) + - CAST( - - 72 AS SIGNED ) + 12 + 51 * + 67 * 37 AS col0
----
126387

skipif mysql # not compatible
query I rowsort label-2728
SELECT COALESCE ( + ( + 18 ), - - 6 ) + - CAST ( - - 72 AS INTEGER ) + 12 + 51 * + 67 * 37 AS col0
----
126387

query II rowsort
SELECT 39 * 17 AS col1, 5 AS col1
----
663
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT ALL - 50 DIV 64 * - + 76
----
0

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL - 50 / 64 * - + 76
----
0

query I rowsort
SELECT 45 + - 37 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL 38 + + SUM( + 10 ) + + 23 * - - 93 - - - COUNT( ( + + 72 ) ) col1
----
2186

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL 38 + + SUM ( + 10 ) + + 23 * - - 93 - - - COUNT ( ( + + 72 ) ) col1
----
2186

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT SUM( - - COALESCE ( - 72, ( - 70 ) ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2733
SELECT SUM ( - - COALESCE ( - 72, ( - 70 ) ) ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT 29 - COUNT( * ) AS col1, 44
----
28
44

skipif mysql # not compatible
query II rowsort label-2734
SELECT 29 - COUNT ( * ) AS col1, 44
----
28
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT 78 DIV + - 72 + + + 87 col0
----
86

skipif mysql # not compatible
query I rowsort label-2735
SELECT 78 / + - 72 + + + 87 col0
----
86

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

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

query II rowsort
SELECT ALL + 79 - + 17, - 2 AS col0
----
62
-2

query I rowsort
SELECT ALL + 61 - + + 62 col1
----
-1

query I rowsort
SELECT - ( - + 43 ) - + 90
----
-47

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

query I rowsort
SELECT ALL 26 - - ( + - 4 )
----
22

query I rowsort
SELECT 21 * - - 98
----
2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2743
SELECT + MAX( + 33 ) * 90 + - 0 AS col1, CAST( NULL AS SIGNED ) AS col0
----
2970
NULL

skipif mysql # not compatible
query II rowsort label-2743
SELECT + MAX ( + 33 ) * 90 + - 0 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
2970
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + COALESCE ( COUNT( * ), + - 53, 33 * - - 94 * 31 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2744
SELECT + COALESCE ( COUNT ( * ), + - 53, 33 * - - 94 * 31 ) col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2746
SELECT + COUNT( * ) * - 30 + - CASE NULLIF ( + 62, - COUNT( * ) ) WHEN - 43 - + 69 THEN + + 18 WHEN - 46 THEN + - 98 * + ( - 75 ) * - ( - 62 ) + 44 + + - 75 * + + 95 + - MIN( - 22 ) DIV 58 ELSE - 73 END
----
43

skipif mysql # not compatible
query I rowsort label-2746
SELECT + COUNT ( * ) * - 30 + - CASE NULLIF ( + 62, - COUNT ( * ) ) WHEN - 43 - + 69 THEN + + 18 WHEN - 46 THEN + - 98 * + ( - 75 ) * - ( - 62 ) + 44 + + - 75 * + + 95 + - MIN ( - 22 ) / 58 ELSE - 73 END
----
43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT ALL - - COUNT( * ) DIV - 63 * 56 + COUNT( * ) + NULLIF ( - 98, 67 ) * 21
----
-2057

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - - COUNT ( * ) / - 63 * 56 + COUNT ( * ) + NULLIF ( - 98, 67 ) * 21
----
-2057

query I rowsort
SELECT - 41 - 47 AS col2
----
-88

query I rowsort
SELECT 90 * - 40 + + + 17
----
-3583

query I rowsort
SELECT DISTINCT - + 61 * + 76 + 73
----
-4563

query I rowsort
SELECT DISTINCT + - ( - 57 ) * + 29 AS col1
----
1653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT DISTINCT + COUNT( DISTINCT 53 ) + CAST( - 54 AS SIGNED ) + + - 37 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + COUNT ( DISTINCT 53 ) + CAST ( - 54 AS INTEGER ) + + - 37 AS col2
----
-90

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

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

query I rowsort
SELECT - 81 * - 33 + - 97
----
2576

query I rowsort
SELECT ALL + + 32 + + 4 AS col0
----
36

query I rowsort
SELECT - + 11 + + 37
----
26

query I rowsort
SELECT - - 37 + 86
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT - + CASE - + 2 WHEN 44 + - + 66 THEN - 73 + + 59 - COALESCE ( - + 70, + + 30 ) + - COALESCE ( - 53, 16 ) + - - COUNT( * ) + 78 * + + 15 * 24 + - - ( - 74 ) - + 13 * 76 * + NULLIF ( 64, - 56 * 83 ) END + - CAST( - COALESCE ( + 29, CAST( + ( + COUNT( * ) ) AS SIGNED ), + MAX( 55 ) ) - 40 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT - + CASE - + 2 WHEN 44 + - + 66 THEN - 73 + + 59 - COALESCE ( - + 70, + + 30 ) + - COALESCE ( - 53, 16 ) + - - COUNT ( * ) + 78 * + + 15 * 24 + - - ( - 74 ) - + 13 * 76 * + NULLIF ( 64, - 56 * 83 ) END + - CAST ( - COALESCE ( + 29, CAST ( + ( + COUNT ( * ) ) AS INTEGER ), + MAX ( 55 ) ) - 40 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 45 + 77 AS col0
----
32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2762
SELECT DISTINCT CASE - 32 WHEN 96 + + COUNT( * ) + 96 THEN 7 + 47 + 10 END + MIN( DISTINCT + 5 ) + + 13 AS col0, - 84 - + COUNT( * ) - + 42 + 44 * + 14 + + COUNT( * ) AS col1
----
NULL
490

skipif mysql # not compatible
query II rowsort label-2762
SELECT DISTINCT CASE - 32 WHEN 96 + + COUNT ( * ) + 96 THEN 7 + 47 + 10 END + MIN ( DISTINCT + 5 ) + + 13 AS col0, - 84 - + COUNT ( * ) - + 42 + 44 * + 14 + + COUNT ( * ) AS col1
----
NULL
490

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT DISTINCT COALESCE ( - + 87, + COUNT( * ) * - 26 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT COALESCE ( - + 87, + COUNT ( * ) * - 26 ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2764
SELECT DISTINCT - COALESCE ( 72, - COUNT( * ) DIV CASE + 87 WHEN 41 THEN + 25 * - 78 + 74 END * 39 - + - 65 + - 95 ) + COUNT( * ), - 15 * - 22 AS col1
----
-71
330

skipif mysql # not compatible
query II rowsort label-2764
SELECT DISTINCT - COALESCE ( 72, - COUNT ( * ) / CASE + 87 WHEN 41 THEN + 25 * - 78 + 74 END * 39 - + - 65 + - 95 ) + COUNT ( * ), - 15 * - 22 AS col1
----
-71
330

query I rowsort
SELECT DISTINCT 85 * - - 93
----
7905

query I rowsort
SELECT + 91 + + 19
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT ALL - CAST( + - 39 AS SIGNED ) + - COUNT( * ) * 89 col1
----
-50

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - CAST ( + - 39 AS INTEGER ) + - COUNT ( * ) * 89 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + 8 * COUNT( + 49 )
----
8

skipif mysql # not compatible
query I rowsort label-2768
SELECT + 8 * COUNT ( + 49 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT - 55 + 76 - + 96 + + ( + - 64 ) * - COALESCE ( 17, MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * - - ( - ( 60 ) ) - - 48 - + - 57 + - 33 * + - 14 * - 88, + CASE - + 53 WHEN - 11 THEN + 15 END )
----
1013

skipif mysql # not compatible
query I rowsort label-2769
SELECT - 55 + 76 - + 96 + + ( + - 64 ) * - COALESCE ( 17, MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - - ( - ( 60 ) ) - - 48 - + - 57 + - 33 * + - 14 * - 88, + CASE - + 53 WHEN - 11 THEN + 15 END )
----
1013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2770
SELECT CASE + COALESCE ( - 49, + - MAX( DISTINCT + + 84 ) ) WHEN + + 35 + + 95 * 53 * - SUM( ALL - 87 ) THEN NULL WHEN + + 96 + 37 + - CAST( - - AVG ( ALL - - 74 ) AS SIGNED ) + + SUM( - 8 ) + + COUNT( DISTINCT + 36 ) THEN NULL ELSE - 58 * - 28 END DIV CAST( + 69 AS SIGNED ) - - COUNT( * ) * COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2770
SELECT CASE + COALESCE ( - 49, + - MAX ( DISTINCT + + 84 ) ) WHEN + + 35 + + 95 * 53 * - SUM ( ALL - 87 ) THEN NULL WHEN + + 96 + 37 + - CAST ( - - AVG ( ALL - - 74 ) AS INTEGER ) + + SUM ( - 8 ) + + COUNT ( DISTINCT + 36 ) THEN NULL ELSE - 58 * - 28 END / CAST ( + 69 AS INTEGER ) - - COUNT ( * ) * COUNT ( * ) AS col0
----
24

query I rowsort
SELECT + 72 * + 31
----
2232

query I rowsort
SELECT + COALESCE ( + - 81, + + ( 78 ) + 40 )
----
-81

query I rowsort
SELECT + ( - + 8 ) + NULLIF ( + 31, + 20 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT ALL COUNT( * ) * SUM( DISTINCT + 90 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL COUNT ( * ) * SUM ( DISTINCT + 90 ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 65 * + 54
----
-3510

query I rowsort
SELECT 93 * - 14 + 22
----
-1280

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT ALL 36 DIV 74 * + ( + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL 36 / 74 * + ( + 60 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT + COALESCE ( 91, 91 DIV + 87 DIV - 95 + + 24 + - 36 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2778
SELECT + COALESCE ( 91, 91 / + 87 / - 95 + + 24 + - 36 ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2779
SELECT + 34 / CAST( - 47 AS SIGNED ) * 68 / + 22 + 6 + + - 77 + + NULLIF ( + 21, + AVG ( DISTINCT - 77 ) ) * - + 77 * 15 * + + 0 + MIN( CAST( NULL AS SIGNED ) ) AS col0, 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-2779
SELECT + 34 / CAST ( - 47 AS INTEGER ) * 68 / + 22 + 6 + + - 77 + + NULLIF ( + 21, + AVG ( DISTINCT - 77 ) ) * - + 77 * 15 * + + 0 + MIN ( CAST ( NULL AS INTEGER ) ) AS col0, 52
----
NULL
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT DISTINCT + CAST( + 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT + CAST ( + 76 AS INTEGER )
----
76

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

query I rowsort
SELECT + NULLIF ( 40, + 15 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT + 89 + + 63 - - COUNT( DISTINCT - + 68 ) - - - 60
----
93

skipif mysql # not compatible
query I rowsort label-2783
SELECT + 89 + + 63 - - COUNT ( DISTINCT - + 68 ) - - - 60
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2784
SELECT 4 * COALESCE ( - 13, - 9, COALESCE ( + 72, - + COUNT( * ) * - 52 ) + + ( - 84 ) ) + 34 col0, NULLIF ( 76, + 75 - - AVG ( ALL 75 ) ) + 3 * + 55
----
-18
241

skipif mysql # not compatible
query II rowsort label-2784
SELECT 4 * COALESCE ( - 13, - 9, COALESCE ( + 72, - + COUNT ( * ) * - 52 ) + + ( - 84 ) ) + 34 col0, NULLIF ( 76, + 75 - - AVG ( ALL 75 ) ) + 3 * + 55
----
-18
241

query I rowsort
SELECT ALL 60 * + 12
----
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2786
SELECT + NULLIF ( + - CAST( NULL AS SIGNED ), 79 / + 49 ) * - ( COUNT( * ) ) + + 62 + CASE + - COUNT( * ) WHEN - NULLIF ( + 1, + COUNT( * ) / COUNT( * ) * + - 2 ) THEN - + COALESCE ( - CAST( NULL AS DECIMAL ), 83 + - - COUNT( ALL + 95 ) * - - 41 ) WHEN + 51 / + CAST( NULL AS SIGNED ) THEN NULL END + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT + NULLIF ( + - CAST ( NULL AS INTEGER ), 79 / + 49 ) * - ( COUNT ( * ) ) + + 62 + CASE + - COUNT ( * ) WHEN - NULLIF ( + 1, + COUNT ( * ) / COUNT ( * ) * + - 2 ) THEN - + COALESCE ( - CAST ( NULL AS REAL ), 83 + - - COUNT ( ALL + 95 ) * - - 41 ) WHEN + 51 / + CAST ( NULL AS INTEGER ) THEN NULL END + 17
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT + + 26 + + 45 + - ( + COUNT( * ) ) + - 15 * 51 * - 33 * + 79 AS col0
----
1994425

skipif mysql # not compatible
query I rowsort label-2788
SELECT + + 26 + + 45 + - ( + COUNT ( * ) ) + - 15 * 51 * - 33 * + 79 AS col0
----
1994425

query I rowsort
SELECT CASE + - 3 WHEN + - ( + 94 ) THEN 51 ELSE - - 23 END * + + 82 + + COALESCE ( 60, 99 * - 81 ) * - 22 AS col0
----
566

query I rowsort
SELECT + - 41 * - 38
----
1558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT CAST( - 51 AS SIGNED ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-2791
SELECT CAST ( - 51 AS INTEGER ) col1
----
-51

query I rowsort
SELECT - 88 + - 34 * 75
----
-2638

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

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 2 + COUNT ( * ) AS col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT COALESCE ( - ( + 81 ), - - 35 DIV - 79 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2795
SELECT COALESCE ( - ( + 81 ), - - 35 / - 79 ) AS col1
----
-81

query I rowsort
SELECT - 15 + 9 AS col1
----
-6

query I rowsort
SELECT DISTINCT - 47 * 99
----
-4653

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT ALL 27 DIV - 22 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL 27 / - 22 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT DISTINCT CASE + + ( - + COUNT( * ) ) WHEN - 19 THEN 26 WHEN - 19 - 90 + - 92 THEN NULL ELSE - - 79 END + - + 91 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT CASE + + ( - + COUNT ( * ) ) WHEN - 19 THEN 26 WHEN - 19 - 90 + - 92 THEN NULL ELSE - - 79 END + - + 91 AS col1
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT - COUNT( * ) * + 69 * + + 3
----
-207

skipif mysql # not compatible
query I rowsort label-2801
SELECT - COUNT ( * ) * + 69 * + + 3
----
-207

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

skipif mysql # not compatible
query II rowsort label-2802
SELECT 98 AS col0, CAST ( + ( - ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) / - + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 51 )
----
98
NULL

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

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

query II rowsort
SELECT 36, 68 AS col0
----
36
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT - 79 * - - CASE + COUNT( * ) WHEN + - ( - 2 ) THEN 59 END * - 17 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT - 79 * - - CASE + COUNT ( * ) WHEN + - ( - 2 ) THEN 59 END * - 17 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 85 + + + ( + - 6 )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2807
SELECT - 60, 38 DIV 42 * + 51 + + MIN( - 96 ) AS col0
----
-60
-96

skipif mysql # not compatible
query II rowsort label-2807
SELECT - 60, 38 / 42 * + 51 + + MIN ( - 96 ) AS col0
----
-60
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2808
SELECT ALL - 60 - - CAST( NULL AS SIGNED ) AS col2, + 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-2808
SELECT ALL - 60 - - CAST ( NULL AS INTEGER ) AS col2, + 25
----
NULL
25

query I rowsort
SELECT - 49 * 61
----
-2989

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT ( - MIN( - 34 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT ( - MIN ( - 34 ) ) AS col1
----
34

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

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

query I rowsort
SELECT - 19 * + 23 AS col1
----
-437

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

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

query II rowsort
SELECT + 86 AS col0, 44
----
86
44

query I rowsort
SELECT 13 * - 75 - - + 75
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT DISTINCT + 85 * - 9 + 12 + 22 DIV + 57
----
-753

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT + 85 * - 9 + 12 + 22 / + 57
----
-753

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT + + 16 + + ( CASE 8 WHEN + 47 THEN NULL WHEN + 99 * - + COUNT( * ) + + - 80 THEN NULL WHEN + 32 + - 13 / + AVG ( ALL - 88 ) THEN - + 45 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT + + 16 + + ( CASE 8 WHEN + 47 THEN NULL WHEN + 99 * - + COUNT ( * ) + + - 80 THEN NULL WHEN + 32 + - 13 / + AVG ( ALL - 88 ) THEN - + 45 ELSE NULL END )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL - MIN( + 21 ) + + - ( - COALESCE ( + + 3, 9, + 97 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - MIN ( + 21 ) + + - ( - COALESCE ( + + 3, 9, + 97 ) )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2822
SELECT ALL - + COUNT( * ) col0, - NULLIF ( 47, - + 57 )
----
-1
-47

skipif mysql # not compatible
query II rowsort label-2822
SELECT ALL - + COUNT ( * ) col0, - NULLIF ( 47, - + 57 )
----
-1
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2823
SELECT ALL 33 + + COUNT( * ) + - 3 DIV + 31 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL 33 + + COUNT ( * ) + - 3 / + 31 AS col0
----
34

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

query II rowsort
SELECT 35 AS col0, 43 * - - 30
----
35
1290

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

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

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

query II rowsort
SELECT + 46 AS col2, - 7
----
46
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2829
SELECT + 39 - - 77 AS col1, - 99 * - COUNT( * )
----
116
99

skipif mysql # not compatible
query II rowsort label-2829
SELECT + 39 - - 77 AS col1, - 99 * - COUNT ( * )
----
116
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT 17 + - ( - - MIN( 20 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT 17 + - ( - - MIN ( 20 ) ) AS col0
----
-3

query I rowsort
SELECT ALL - 48 + 44 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ( COALESCE ( + 68, + 18, + COUNT( * ) * - + SUM( 36 ) + - + 72 - 79 ) ) + - 98
----
-30

skipif mysql # not compatible
query I rowsort label-2833
SELECT ( COALESCE ( + 68, + 18, + COUNT ( * ) * - + SUM ( 36 ) + - + 72 - 79 ) ) + - 98
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2834
SELECT 64 - COUNT( - 78 ) DIV 57 * 81 AS col0, - 98 * + MIN( - + 53 ) AS col1
----
64
5194

skipif mysql # not compatible
query II rowsort label-2834
SELECT 64 - COUNT ( - 78 ) / 57 * 81 AS col0, - 98 * + MIN ( - + 53 ) AS col1
----
64
5194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT 38 + COUNT( * ) * + 79 + + NULLIF ( - 51, 22 + + - 76 + 53 * 42 * - - 51 + - 73 + - 85 - - COUNT( * ) + CAST( + + 25 AS SIGNED ) + - - 45 * - ( + 43 ) * - 47 * - - COUNT( * ) * CAST( NULL AS SIGNED ) * + COUNT( * ) / 69 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2835
SELECT 38 + COUNT ( * ) * + 79 + + NULLIF ( - 51, 22 + + - 76 + 53 * 42 * - - 51 + - 73 + - 85 - - COUNT ( * ) + CAST ( + + 25 AS INTEGER ) + - - 45 * - ( + 43 ) * - 47 * - - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 69 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT NULLIF ( - + 99, + 3 + - 86 * + SUM( ALL + + 92 ) ) + - 10 * - 18 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2836
SELECT NULLIF ( - + 99, + 3 + - 86 * + SUM ( ALL + + 92 ) ) + - 10 * - 18 AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ( + 61 ) DIV 29 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2837
SELECT ( + 61 ) / 29 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2838
SELECT ALL + COUNT( * ) * - + 89, 65 + + COUNT( * ) + 84 + + - CAST( NULL AS DECIMAL ) * - 57 col1
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-2838
SELECT ALL + COUNT ( * ) * - + 89, 65 + + COUNT ( * ) + 84 + + - CAST ( NULL AS REAL ) * - 57 col1
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT 73 + - + 20 - + - 97 + 63 * COUNT( * ) * SUM( DISTINCT - - ( - - 72 ) ) * - 17 - + 74 * - 77 * - 23 + 22 + + 28 + + 51
----
-207915

skipif mysql # not compatible
query I rowsort label-2839
SELECT 73 + - + 20 - + - 97 + 63 * COUNT ( * ) * SUM ( DISTINCT - - ( - - 72 ) ) * - 17 - + 74 * - 77 * - 23 + 22 + + 28 + + 51
----
-207915

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL 7 * - CASE + 3 WHEN ( - 69 ) THEN + SUM( ALL + 45 ) + + - 57 * + 8 WHEN + NULLIF ( 16, + - 63 ) THEN 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL 7 * - CASE + 3 WHEN ( - 69 ) THEN + SUM ( ALL + 45 ) + + - 57 * + 8 WHEN + NULLIF ( 16, + - 63 ) THEN 47 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2841
SELECT 80 DIV CAST( - 22 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-2841
SELECT 80 / CAST ( - 22 AS INTEGER )
----
-3

query I rowsort
SELECT 54 + 38
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT CAST( - CAST( - + 31 AS SIGNED ) AS SIGNED ) + - 4
----
27

skipif mysql # not compatible
query I rowsort label-2843
SELECT CAST ( - CAST ( - + 31 AS INTEGER ) AS INTEGER ) + - 4
----
27

query I rowsort
SELECT + 84 * - 36 * - 34
----
102816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT + CASE - + 83 WHEN - - COALESCE ( 42, + 50 + + 83, - MIN( DISTINCT - + 81 ) ) + + 98 + 21 * + + COUNT( + 68 ) * + 70 * + 42 THEN + + ( + 5 ) WHEN 75 * + 68 * CASE - ( + 34 ) WHEN - CAST( - 22 AS SIGNED ) THEN + 61 END * 59 THEN NULL ELSE NULL END * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT + CASE - + 83 WHEN - - COALESCE ( 42, + 50 + + 83, - MIN ( DISTINCT - + 81 ) ) + + 98 + 21 * + + COUNT ( + 68 ) * + 70 * + 42 THEN + + ( + 5 ) WHEN 75 * + 68 * CASE - ( + 34 ) WHEN - CAST ( - 22 AS INTEGER ) THEN + 61 END * 59 THEN NULL ELSE NULL END * - 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2846
SELECT ALL + - NULLIF ( + 25, - + COUNT( 13 ) * 0 * - COUNT( * ) + + + COUNT( * ) + - - ( + 39 ) ) + - COALESCE ( - 24, - MIN( 43 ), 15 ) + 52 + - COUNT( * ) DIV 91 * + + 79 * COUNT( * ) * + - 77 + + 72
----
123

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + - NULLIF ( + 25, - + COUNT ( 13 ) * 0 * - COUNT ( * ) + + + COUNT ( * ) + - - ( + 39 ) ) + - COALESCE ( - 24, - MIN ( 43 ), 15 ) + 52 + - COUNT ( * ) / 91 * + + 79 * COUNT ( * ) * + - 77 + + 72
----
123

query I rowsort
SELECT - ( - + 5 ) * + 37
----
185

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2849
SELECT ALL - 4 + - 83 AS col2, MIN( DISTINCT - - 89 ) AS col1
----
-87
89

skipif mysql # not compatible
query II rowsort label-2849
SELECT ALL - 4 + - 83 AS col2, MIN ( DISTINCT - - 89 ) AS col1
----
-87
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2850
SELECT 6 + + 40 DIV + - 34
----
5

skipif mysql # not compatible
query I rowsort label-2850
SELECT 6 + + 40 / + - 34
----
5

query I rowsort
SELECT ALL + - 25 * + - ( + 99 ) * 65 AS col2
----
160875

query I rowsort
SELECT + + 1 * - - 84 + - 61 + 75 * - - 53 + + - 28
----
3970

query II rowsort
SELECT 96 - - 30 AS col0, + 80 AS col2
----
126
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + 29 * + 74 + + 20 * ( COUNT( * ) )
----
2166

skipif mysql # not compatible
query I rowsort label-2854
SELECT + 29 * + 74 + + 20 * ( COUNT ( * ) )
----
2166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2855
SELECT ALL - + 12 + + ( + 70 ) + - 5 * - 82 * + 80 * - - COALESCE ( + + 94, - 38 * 5 * + + CAST( + - 48 AS SIGNED ), - COUNT( ALL 75 ) + - + 47 ) * - 27 + COUNT( * ) + - CAST( NULL AS SIGNED ) + + + 18 * - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - + 12 + + ( + 70 ) + - 5 * - 82 * + 80 * - - COALESCE ( + + 94, - 38 * 5 * + + CAST ( + - 48 AS INTEGER ), - COUNT ( ALL 75 ) + - + 47 ) * - 27 + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + + 18 * - + 47
----
NULL

query II rowsort
SELECT ALL + 80 * - - 44 + + 64 * 79 * + 98, + NULLIF ( 88, - 56 * + 14 ) * + 21 AS col1
----
499008
1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT DISTINCT - 11 + - + 28 / + 5 / CAST( - - 92 AS SIGNED ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT - 11 + - + 28 / + 5 / CAST ( - - 92 AS INTEGER ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2858
SELECT DISTINCT - - MIN( - - 89 ), + 41 * + 36 AS col0
----
89
1476

skipif mysql # not compatible
query II rowsort label-2858
SELECT DISTINCT - - MIN ( - - 89 ), + 41 * + 36 AS col0
----
89
1476

query I rowsort
SELECT ALL - + ( 79 ) col1
----
-79

query I rowsort
SELECT - 37 + 30 AS col2
----
-7

query I rowsort
SELECT - + 0 * - 43 + + 73 - 55 + - 76
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT DISTINCT - CAST( - CASE 38 WHEN 46 * + COUNT( * ) + 12 + - 82 THEN NULL WHEN - 25 THEN + 2 + - - 13 + + 5 * - COUNT( * ) * 77 * - 16 ELSE + 73 END AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - CAST ( - CASE 38 WHEN 46 * + COUNT ( * ) + 12 + - 82 THEN NULL WHEN - 25 THEN + 2 + - - 13 + + 5 * - COUNT ( * ) * 77 * - 16 ELSE + 73 END AS INTEGER )
----
73

query I rowsort
SELECT 19 * 79
----
1501

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2864
SELECT ( + ( - 36 ) ) * CAST( - 50 AS SIGNED ) DIV + + 24
----
75

skipif mysql # not compatible
query I rowsort label-2864
SELECT ( + ( - 36 ) ) * CAST ( - 50 AS INTEGER ) / + + 24
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT ALL 68 - + - ( + CAST( + 38 AS SIGNED ) ) * 34
----
1360

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL 68 - + - ( + CAST ( + 38 AS INTEGER ) ) * 34
----
1360

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT ALL 20 * 55 DIV 32 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL 20 * 55 / 32 AS col2
----
34

query I rowsort
SELECT DISTINCT 67 * - 46 AS col2
----
-3082

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL 84 * CASE + COUNT( * ) WHEN 74 * 41 * - 55 THEN + 36 ELSE NULL END * + + 87 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL 84 * CASE + COUNT ( * ) WHEN 74 * 41 * - 55 THEN + 36 ELSE NULL END * + + 87 * - + COUNT ( * )
----
NULL

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

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

query II rowsort
SELECT 4, + ( - - 20 ) AS col1
----
4
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2871
SELECT 8 * CAST( COUNT( * ) AS SIGNED ), COUNT( * ) AS col1
----
8
1

skipif mysql # not compatible
query II rowsort label-2871
SELECT 8 * CAST ( COUNT ( * ) AS INTEGER ), COUNT ( * ) AS col1
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT DISTINCT COUNT( * ) + 41
----
42

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT COUNT ( * ) + 41
----
42

query I rowsort
SELECT ALL - + 65 + - - 85 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL + + 2 + - ( - CAST( NULL AS SIGNED ) ) + - - COUNT( DISTINCT - + 28 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + + 2 + - ( - CAST ( NULL AS INTEGER ) ) + - - COUNT ( DISTINCT - + 28 ) col1
----
NULL

query I rowsort
SELECT ALL - - 90 * 25 AS col0
----
2250

query I rowsort
SELECT + 62 * - - 10 * + + 76 AS col0
----
47120

query I rowsort
SELECT - - 64 * + + 57 col1
----
3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2878
SELECT + CAST( NULL AS SIGNED ) * + + 40 + - + COUNT( * ) + - 43 * - + ( + CASE + 1 WHEN - 37 THEN + 72 * + 47 ELSE NULL END ) + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT + CAST ( NULL AS INTEGER ) * + + 40 + - + COUNT ( * ) + - 43 * - + ( + CASE + 1 WHEN - 37 THEN + 72 * + 47 ELSE NULL END ) + + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT + + COALESCE ( 75, - - 52, MIN( ALL 72 ) * + - 93 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + + COALESCE ( 75, - - 52, MIN ( ALL 72 ) * + - 93 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT DISTINCT - - 33 * + - 97 * - 33 - - 56 + + 50 * - 79 - COUNT( * ) + 9 AS col1
----
101747

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT - - 33 * + - 97 * - 33 - - 56 + + 50 * - 79 - COUNT ( * ) + 9 AS col1
----
101747

query I rowsort
SELECT - 12 * 21
----
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2882
SELECT + 41 AS col2, + 15 * - 28 * - CASE 32 WHEN COUNT( * ) * + 49 + AVG ( - 80 ) THEN + 94 * + 73 * - 11 DIV + 48 ELSE - 74 END
----
41
-31080

skipif mysql # not compatible
query II rowsort label-2882
SELECT + 41 AS col2, + 15 * - 28 * - CASE 32 WHEN COUNT ( * ) * + 49 + AVG ( - 80 ) THEN + 94 * + 73 * - 11 / + 48 ELSE - 74 END
----
41
-31080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2883
SELECT DISTINCT - - CAST( + + 89 AS DECIMAL ) * - - 67 * + COUNT( * ) + + COUNT( * ) - CAST( NULL AS SIGNED ) * - COUNT( * ) - ( 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT - - CAST ( + + 89 AS REAL ) * - - 67 * + COUNT ( * ) + + COUNT ( * ) - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - ( 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL 78 * - - 27 - + COUNT( * ) col0
----
2105

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL 78 * - - 27 - + COUNT ( * ) col0
----
2105

query II rowsort
SELECT 51, 29 col1
----
51
29

query I rowsort
SELECT - + COALESCE ( - 96, NULLIF ( - 19, 57 ), + 31 ) * + 94 - - 18 col2
----
9042

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2887
SELECT - + 46 * + CAST( - 39 AS SIGNED ) col1, 23
----
1794
23

skipif mysql # not compatible
query II rowsort label-2887
SELECT - + 46 * + CAST ( - 39 AS INTEGER ) col1, 23
----
1794
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT + - COALESCE ( + + 46, + + COUNT( * ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2888
SELECT + - COALESCE ( + + 46, + + COUNT ( * ) ) AS col1
----
-46

query II rowsort
SELECT + ( - - 94 ) * 35 + - - 87 AS col1, - 71 AS col2
----
3377
-71

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

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

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

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

query I rowsort
SELECT ALL COALESCE ( 50, + - 57 * + 73, + - 33 ) AS col0
----
50

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

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

query II rowsort
SELECT ALL + 74 * - 1 AS col2, 87 * + 49 col2
----
-74
4263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT + COALESCE ( - 17, + - CAST( NULL AS SIGNED ) * + + 61 - + + ( + - 1 ) ) * - 73 + - 56
----
1185

skipif mysql # not compatible
query I rowsort label-2895
SELECT + COALESCE ( - 17, + - CAST ( NULL AS INTEGER ) * + + 61 - + + ( + - 1 ) ) * - 73 + - 56
----
1185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT DISTINCT ( - - CAST( + + 77 AS SIGNED ) )
----
77

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT ( - - CAST ( + + 77 AS INTEGER ) )
----
77

query I rowsort
SELECT ALL - 2 + - 34 + - 64 AS col2
----
-100

query I rowsort
SELECT - 90 + - 44 * + 59 AS col1
----
-2686

query I rowsort
SELECT + ( - 55 ) * + 97 AS col1
----
-5335

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

skipif mysql # not compatible
query I rowsort label-2900
SELECT - SUM ( DISTINCT CAST ( - 75 AS INTEGER ) )
----
75

query I rowsort
SELECT + ( + - 99 ) + - 38 AS col1
----
-137

query I rowsort
SELECT ALL + 39 + ( 3 )
----
42

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

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL CAST ( - + 21 AS INTEGER ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT ALL 7 + + 60 AS col1, + 11 * + 79 + + COUNT( - 31 )
----
67
870

skipif mysql # not compatible
query II rowsort label-2904
SELECT ALL 7 + + 60 AS col1, + 11 * + 79 + + COUNT ( - 31 )
----
67
870

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT - COUNT( * ) + - 69 + - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - COUNT ( * ) + - 69 + - COUNT ( * )
----
-71

query I rowsort
SELECT DISTINCT 81 * 88
----
7128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT + - 24 * + + CAST( - + CASE - 32 WHEN 58 THEN NULL ELSE + 84 END AS SIGNED ) * - + 74 + - + 11
----
-149195

skipif mysql # not compatible
query I rowsort label-2908
SELECT + - 24 * + + CAST ( - + CASE - 32 WHEN 58 THEN NULL ELSE + 84 END AS INTEGER ) * - + 74 + - + 11
----
-149195

query I rowsort
SELECT + - 19 * - 6 AS col2
----
114

query I rowsort
SELECT DISTINCT + - 57 col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT DISTINCT + - 89 / + COUNT( * ) + - 44 - + 97 + + 10 + + 17 + MAX( ALL + + 67 ) * 91 * - 24 + + CAST( NULL AS SIGNED ) + + - 84 * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT + - 89 / + COUNT ( * ) + - 44 - + 97 + + 10 + + 17 + MAX ( ALL + + 67 ) * 91 * - 24 + + CAST ( NULL AS INTEGER ) + + - 84 * - 54
----
NULL

query I rowsort
SELECT + 49 * - + 5 + - - 85 + - 21
----
-181

query I rowsort
SELECT DISTINCT - 30 * 35 - - 50 + 62
----
-938

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT 84 DIV 49 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT 84 / 49 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2915
SELECT ALL + + SUM( ALL 65 ) AS col0, 25
----
65
25

skipif mysql # not compatible
query II rowsort label-2915
SELECT ALL + + SUM ( ALL 65 ) AS col0, 25
----
65
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2916
SELECT + + 97 DIV - - 45 col1, CASE + - 79 WHEN MAX( ALL - - 55 ) THEN + CAST( NULL AS SIGNED ) + - 35 * - 49 WHEN + 68 THEN NULL END AS col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2916
SELECT + + 97 / - - 45 col1, CASE + - 79 WHEN MAX ( ALL - - 55 ) THEN + CAST ( NULL AS INTEGER ) + - 35 * - 49 WHEN + 68 THEN NULL END AS col0
----
2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2917
SELECT - + 92 * + CASE + 21 WHEN + COUNT( * ) THEN + COUNT( * ) / + + 14 WHEN - CASE + + COUNT( * ) WHEN - 69 * - CAST( + - MAX( DISTINCT - 51 ) AS SIGNED ) THEN NULL ELSE + CAST( 35 AS SIGNED ) * + 51 * - - 49 END THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT - + 92 * + CASE + 21 WHEN + COUNT ( * ) THEN + COUNT ( * ) / + + 14 WHEN - CASE + + COUNT ( * ) WHEN - 69 * - CAST ( + - MAX ( DISTINCT - 51 ) AS INTEGER ) THEN NULL ELSE + CAST ( 35 AS INTEGER ) * + 51 * - - 49 END THEN - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2918
SELECT ALL - 86 * - CAST( - - 98 AS SIGNED ) DIV - COUNT( ALL - 96 ) + + COUNT( * ) + - + 19 AS col2
----
-8446

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - 86 * - CAST ( - - 98 AS INTEGER ) / - COUNT ( ALL - 96 ) + + COUNT ( * ) + - + 19 AS col2
----
-8446

query I rowsort
SELECT + 71 + - 7 * - + 31
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT - + 63 * - - MAX( ALL 39 ) + ( - 31 ) AS col1
----
-2488

skipif mysql # not compatible
query I rowsort label-2920
SELECT - + 63 * - - MAX ( ALL 39 ) + ( - 31 ) AS col1
----
-2488

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT + NULLIF ( - - COUNT( * ), + - 95 + - AVG ( ALL 75 ) ) * + 13 * - + ( CASE + - 47 WHEN + 43 THEN 45 ELSE NULL END ) * - SUM( DISTINCT + 76 ) - - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT + NULLIF ( - - COUNT ( * ), + - 95 + - AVG ( ALL 75 ) ) * + 13 * - + ( CASE + - 47 WHEN + 43 THEN 45 ELSE NULL END ) * - SUM ( DISTINCT + 76 ) - - - 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2923
SELECT ALL 84 * CAST( + 18 AS SIGNED ) DIV + + 40 + + 17 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL 84 * CAST ( + 18 AS INTEGER ) / + + 40 + + 17 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT ALL ( + NULLIF ( - 24, + 81 ) ) * + 16 / 2 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL ( + NULLIF ( - 24, + 81 ) ) * + 16 / 2 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

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

query I rowsort
SELECT - 67 * - 77 AS col1
----
5159

query I rowsort
SELECT - 72 + - 5
----
-77

query I rowsort
SELECT ALL - 98 * - 42
----
4116

query I rowsort
SELECT ALL - 71 + + 43
----
-28

query I rowsort
SELECT 89 * + 4 AS col0
----
356

query I rowsort
SELECT ALL - 98 * + + 79 * - 30
----
232260

query I rowsort
SELECT DISTINCT 66 + + 14
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT - MIN( 19 ) * - 36 * + 89
----
60876

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - MIN ( 19 ) * - 36 * + 89
----
60876

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT DISTINCT + 26 * - COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT + 26 * - COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT - 31 - + ( - - 11 )
----
-42

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

skipif mysql # not compatible
query I rowsort label-2937
SELECT 74 / 24
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2938
SELECT ALL 84 / CAST( NULL AS DECIMAL ) * - ( + - 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL 84 / CAST ( NULL AS REAL ) * - ( + - 58 ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT 63 * CASE 64 WHEN + 55 THEN NULL WHEN - COUNT( * ) THEN - - 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT 63 * CASE 64 WHEN + 55 THEN NULL WHEN - COUNT ( * ) THEN - - 48 END AS col0
----
NULL

query I rowsort
SELECT ALL + 51 * 32 * - 41
----
-66912

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL 11 - + + 23 * + - COUNT( * ) + - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL 11 - + + 23 * + - COUNT ( * ) + - COUNT ( * ) AS col1
----
33

query I rowsort
SELECT + 89 + 4
----
93

query I rowsort
SELECT ALL + 1 * + 63 * + 77 + - + 95
----
4756

query I rowsort
SELECT 74 + - 84 AS col1
----
-10

query I rowsort
SELECT ALL 73 * - + 13 AS col1
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT + + MIN( + 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2947
SELECT + + MIN ( + 48 ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT - 30 * + CASE - 98 WHEN + COALESCE ( 13, - - 38, - 85 * + CAST( NULL AS SIGNED ) * - COUNT( * ) + + - 97 * + 70 * - COALESCE ( - 33, COUNT( * ) ) + - 96 ) * 38 THEN - 29 / - COUNT( * ) WHEN 15 THEN - - 5 + - + 99 + - 46 * + 77 + + 82 + - COUNT( * ) + + 73 * + MIN( DISTINCT - 0 * + 14 ) * - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT - 30 * + CASE - 98 WHEN + COALESCE ( 13, - - 38, - 85 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + - 97 * + 70 * - COALESCE ( - 33, COUNT ( * ) ) + - 96 ) * 38 THEN - 29 / - COUNT ( * ) WHEN 15 THEN - - 5 + - + 99 + - 46 * + 77 + + 82 + - COUNT ( * ) + + 73 * + MIN ( DISTINCT - 0 * + 14 ) * - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL 0 * + 92 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT DISTINCT - CAST( 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT - CAST ( 57 AS INTEGER )
----
-57

onlyif mysql # aggregate syntax: 
query III rowsort label-2952
SELECT - 96 / + - CASE WHEN NOT + 95 <> ( 56 ) THEN + 26 - - 95 + 77 * - + 82 END, + 6 AS col2, - 15 * + - COUNT( * ) AS col0
----
NULL
6
15

skipif mysql # not compatible
query III rowsort label-2952
SELECT - 96 / + - CASE WHEN NOT + 95 <> ( 56 ) THEN + 26 - - 95 + 77 * - + 82 END, + 6 AS col2, - 15 * + - COUNT ( * ) AS col0
----
NULL
6
15

query II rowsort
SELECT ALL 45 + + 96 AS col0, 62
----
141
62

query II rowsort
SELECT + 36 AS col2, + 30 AS col0
----
36
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2955
SELECT 77 AS col0, COUNT( * )
----
77
1

skipif mysql # not compatible
query II rowsort label-2955
SELECT 77 AS col0, COUNT ( * )
----
77
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2956
SELECT COUNT( + + 49 ) + - - 79 + - - CAST( + COUNT( * ) AS SIGNED ) + COALESCE ( + - 4, - 8 ) DIV - ( - + COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-2956
SELECT COUNT ( + + 49 ) + - - 79 + - - CAST ( + COUNT ( * ) AS INTEGER ) + COALESCE ( + - 4, - 8 ) / - ( - + COUNT ( * ) )
----
77

query I rowsort
SELECT ALL 9 + - + 26 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT NULLIF ( + - COUNT( + - NULLIF ( + ( - 18 ), + 78 * + 57 * + 37 + 88 ) ), 64 ) * + 26 - - CAST( NULL AS SIGNED ) - + 34 * 41 + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT NULLIF ( + - COUNT ( + - NULLIF ( + ( - 18 ), + 78 * + 57 * + 37 + 88 ) ), 64 ) * + 26 - - CAST ( NULL AS INTEGER ) - + 34 * 41 + 99
----
NULL

query II rowsort
SELECT 71 AS col1, 84 * 6 - + 56 - 48 AS col1
----
71
400

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT + 53 AS col0, SUM( DISTINCT - 32 ) - NULLIF ( + + COUNT( * ), - MIN( - 82 ) / + COUNT( * ) - + ( + 60 ) * 81 * 90 - - 9 ) AS col1
----
53
-33

skipif mysql # not compatible
query II rowsort label-2960
SELECT + 53 AS col0, SUM ( DISTINCT - 32 ) - NULLIF ( + + COUNT ( * ), - MIN ( - 82 ) / + COUNT ( * ) - + ( + 60 ) * 81 * 90 - - 9 ) AS col1
----
53
-33

query I rowsort
SELECT ALL 61 + - + 75 AS col1
----
-14

query I rowsort
SELECT ALL 37 * + 92
----
3404

query I rowsort
SELECT 73 * ( NULLIF ( - 54, + + 9 ) )
----
-3942

query III rowsort
SELECT 90, - 48 AS col1, + ( 84 ) col1
----
90
-48
84

query I rowsort
SELECT DISTINCT 66 * 78 * + 51 AS col1
----
262548

onlyif mysql # aggregate syntax: 
query II rowsort label-2966
SELECT ALL + 39 + 88 + - + 49 - + COUNT( 87 ) + + 15 * - - 10 * 67 * + NULLIF ( - - 40, - NULLIF ( + + CASE COUNT( * ) WHEN - 24 * + 66 THEN 10 END, + - 35 + 25 ) ) * - 30, - 92 * + COUNT( * ) AS col0
----
-12059923
-92

skipif mysql # not compatible
query II rowsort label-2966
SELECT ALL + 39 + 88 + - + 49 - + COUNT ( 87 ) + + 15 * - - 10 * 67 * + NULLIF ( - - 40, - NULLIF ( + + CASE COUNT ( * ) WHEN - 24 * + 66 THEN 10 END, + - 35 + 25 ) ) * - 30, - 92 * + COUNT ( * ) AS col0
----
-12059923
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ( - - 12 ) - + SUM( ALL + - 10 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2967
SELECT ( - - 12 ) - + SUM ( ALL + - 10 ) AS col2
----
22

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

query II rowsort
SELECT DISTINCT 26, 86 * + 83 AS col0
----
26
7138

query II rowsort
SELECT DISTINCT 29, + 71 AS col1
----
29
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2971
SELECT 24 * - + ( + CASE 1 WHEN - NULLIF ( + 57, + + 87 + + MAX( ALL + + 55 ) ) + + COUNT( * ) * 35 - - COUNT( ( 13 ) ) THEN - + 1 / - 92 * + 63 END ) * + CAST( + - 14 AS SIGNED ) AS col1, 37 AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-2971
SELECT 24 * - + ( + CASE 1 WHEN - NULLIF ( + 57, + + 87 + + MAX ( ALL + + 55 ) ) + + COUNT ( * ) * 35 - - COUNT ( ( 13 ) ) THEN - + 1 / - 92 * + 63 END ) * + CAST ( + - 14 AS INTEGER ) AS col1, 37 AS col0
----
NULL
37

query II rowsort
SELECT ALL + 83 AS col1, 68
----
83
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT - 28 + + 46 DIV 88
----
-28

skipif mysql # not compatible
query I rowsort label-2973
SELECT - 28 + + 46 / 88
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2974
SELECT 86 - + MIN( 53 ) DIV - 56 + + 39
----
125

skipif mysql # not compatible
query I rowsort label-2974
SELECT 86 - + MIN ( 53 ) / - 56 + + 39
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT MIN( + 2 ) + 29
----
31

skipif mysql # not compatible
query I rowsort label-2975
SELECT MIN ( + 2 ) + 29
----
31

query I rowsort
SELECT ALL - ( + 96 ) - - 43 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2977
SELECT 19 * + 27 + + MIN( 16 ) DIV - 43 DIV - COUNT( - - 47 ) AS col1
----
513

skipif mysql # not compatible
query I rowsort label-2977
SELECT 19 * + 27 + + MIN ( 16 ) / - 43 / - COUNT ( - - 47 ) AS col1
----
513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL CASE - - 83 WHEN 42 + + 13 + + 76 * COUNT( * ) + COUNT( * ) + - 22 / 8 THEN - ( - CAST( NULL AS SIGNED ) ) * + + ( ( 92 ) ) + + ( 37 ) - 13 / COUNT( - - 28 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL CASE - - 83 WHEN 42 + + 13 + + 76 * COUNT ( * ) + COUNT ( * ) + - 22 / 8 THEN - ( - CAST ( NULL AS INTEGER ) ) * + + ( ( 92 ) ) + + ( 37 ) - 13 / COUNT ( - - 28 ) END AS col2
----
NULL

query I rowsort
SELECT ( - 3 ) + - - 40 AS col1
----
37

query I rowsort
SELECT DISTINCT + 52 * + 30 AS col0
----
1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2981
SELECT DISTINCT COUNT( * ), 19 * 11 * + 45 * + - 99 * - + CAST( NULL AS SIGNED ) * + + SUM( - 46 ) * - 20 + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * + 49 / - COALESCE ( 33, - MAX( DISTINCT - 1 ) ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2981
SELECT DISTINCT COUNT ( * ), 19 * 11 * + 45 * + - 99 * - + CAST ( NULL AS INTEGER ) * + + SUM ( - 46 ) * - 20 + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + 49 / - COALESCE ( 33, - MAX ( DISTINCT - 1 ) ) AS col0
----
1
NULL

query I rowsort
SELECT DISTINCT + + 74 * - 65 + 0 AS col1
----
-4810

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + 54 + - 28 + - 81 * - 90 * + COUNT( * )
----
7316

skipif mysql # not compatible
query I rowsort label-2984
SELECT + 54 + - 28 + - 81 * - 90 * + COUNT ( * )
----
7316

query I rowsort
SELECT - 28 + + 66 AS col1
----
38

query II rowsort
SELECT 68 * + - 24 AS col1, 51 AS col2
----
-1632
51

query I rowsort
SELECT ALL - + NULLIF ( - - 50, 23 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL - - 19 * 77 + - MIN( DISTINCT - + ( - 6 ) )
----
1457

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - - 19 * 77 + - MIN ( DISTINCT - + ( - 6 ) )
----
1457

query I rowsort
SELECT ALL 36 * - + 69 + - + 94
----
-2578

query I rowsort
SELECT DISTINCT - - 29 AS col2
----
29

query I rowsort
SELECT DISTINCT + + 54 * + - 72 + + 21 + + 73
----
-3794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT DISTINCT - 78 * + COUNT( * ) + - CAST( - + 66 AS SIGNED ) * + - CASE + 3 WHEN - 72 THEN + - 36 END * - - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - 78 * + COUNT ( * ) + - CAST ( - + 66 AS INTEGER ) * + - CASE + 3 WHEN - 72 THEN + - 36 END * - - 56 AS col0
----
NULL

query II rowsort
SELECT ALL 7 * + COALESCE ( ( + 89 ), + 67 ) * - 82 + - + 76, + ( - + 57 ) col1
----
-51162
-57

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

skipif mysql # not compatible
query I rowsort label-2994
SELECT MIN ( DISTINCT - - 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT COUNT( DISTINCT - 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2995
SELECT COUNT ( DISTINCT - 91 ) AS col2
----
1

query I rowsort
SELECT + 63 * 63 + - 51
----
3918

query I rowsort
SELECT - 81 * + 63 + + 30 AS col1
----
-5073

onlyif mysql # DIV for integer division: 
query II rowsort label-2998
SELECT DISTINCT + 98 * 65 DIV - 64 col1, 67
----
-99
67

skipif mysql # not compatible
query II rowsort label-2998
SELECT DISTINCT + 98 * 65 / - 64 col1, 67
----
-99
67

query I rowsort
SELECT + 37 + - - 32 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT + ( 23 ) * + - COUNT( ALL - - ( + + ( - ( + 75 ) ) ) ) * 96 AS col0
----
-2208

skipif mysql # not compatible
query I rowsort label-3000
SELECT + ( 23 ) * + - COUNT ( ALL - - ( + + ( - ( + 75 ) ) ) ) * 96 AS col0
----
-2208

query I rowsort
SELECT + ( 6 ) + + 35 AS col2
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-3002
SELECT ALL 19 - - 70 AS col2, + 55 * 9 DIV - 10 AS col1
----
89
-49

skipif mysql # not compatible
query II rowsort label-3002
SELECT ALL 19 - - 70 AS col2, + 55 * 9 / - 10 AS col1
----
89
-49

query I rowsort
SELECT 44 * + 81 * - + 84 + 77
----
-299299

query I rowsort
SELECT ALL 95 - + 23
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3005
SELECT DISTINCT MIN( 54 ) DIV - 11 AS col1, + 10 col2
----
-4
10

skipif mysql # not compatible
query II rowsort label-3005
SELECT DISTINCT MIN ( 54 ) / - 11 AS col1, + 10 col2
----
-4
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT + ( + ( - - 52 ) ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT + ( + ( - - 52 ) ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT ALL 48 * - + 94, 87 * MAX( - + 2 ) AS col2
----
-4512
-174

skipif mysql # not compatible
query II rowsort label-3007
SELECT ALL 48 * - + 94, 87 * MAX ( - + 2 ) AS col2
----
-4512
-174

query I rowsort
SELECT DISTINCT NULLIF ( + 16, + 24 ) * + 45
----
720

query I rowsort
SELECT + - 37 * + 32 AS col1
----
-1184

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

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

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

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

query I rowsort
SELECT DISTINCT + 23 * 55 + - - 90 + 78 AS col2
----
1433

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

query II rowsort
SELECT ALL - COALESCE ( - ( + 78 ), + 71 + + 50 ) AS col0, ( - 98 )
----
78
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + - 10 - - SUM( - 53 ) * + - 39 col1
----
2057

skipif mysql # not compatible
query I rowsort label-3015
SELECT + - 10 - - SUM ( - 53 ) * + - 39 col1
----
2057

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT MAX( ALL + - 14 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-3016
SELECT MAX ( ALL + - 14 ) col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - CASE - 26 WHEN ( + 42 ) * + 41 / - COUNT( * ) + 90 + + - COUNT( ALL - 97 ) + - + 66 / + ( 89 ) THEN - 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT - CASE - 26 WHEN ( + 42 ) * + 41 / - COUNT ( * ) + 90 + + - COUNT ( ALL - 97 ) + - + 66 / + ( 89 ) THEN - 42 ELSE NULL END
----
NULL

query II rowsort
SELECT - 21 + 95 AS col2, 33
----
74
33

query I rowsort
SELECT ALL NULLIF ( - ( + 25 ), + 89 )
----
-25

query I rowsort
SELECT DISTINCT + 80 + - - 58 + 76 AS col2
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3021
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col1, + 77 * 14 - + + ( + 43 ) AS col0
----
NULL
1035

skipif mysql # not compatible
query II rowsort label-3021
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col1, + 77 * 14 - + + ( + 43 ) AS col0
----
NULL
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL + 58 + - COUNT( * ) * 60
----
-2

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL + 58 + - COUNT ( * ) * 60
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT DISTINCT + 47 + COUNT( DISTINCT - 30 )
----
48

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT + 47 + COUNT ( DISTINCT - 30 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3024
SELECT ALL ( - 18 ) DIV - + ( + + 81 ) + COALESCE ( + 0, + CAST( NULL AS SIGNED ), - - CAST( NULL AS SIGNED ), COALESCE ( - ( + - 95 ), + - 0 * + - 81 * - - 22 - + + 40 + 67 * - 17 * + COUNT( * ) + + COUNT( * ) ) ) + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL ( - 18 ) / - + ( + + 81 ) + COALESCE ( + 0, + CAST ( NULL AS INTEGER ), - - CAST ( NULL AS INTEGER ), COALESCE ( - ( + - 95 ), + - 0 * + - 81 * - - 22 - + + 40 + 67 * - 17 * + COUNT ( * ) + + COUNT ( * ) ) ) + 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT - CASE - + 58 WHEN - 47 + + 42 * 11 THEN NULL WHEN - COUNT( DISTINCT 82 ) THEN NULLIF ( - 4, + - 63 ) ELSE NULL END / 37 + - + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT - CASE - + 58 WHEN - 47 + + 42 * 11 THEN NULL WHEN - COUNT ( DISTINCT 82 ) THEN NULLIF ( - 4, + - 63 ) ELSE NULL END / 37 + - + 92 AS col1
----
NULL

query I rowsort
SELECT - 50 + - - NULLIF ( - - 77, + 10 ) * + + 24
----
1798

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT CAST( NULL AS SIGNED ) / + 25 + MAX( DISTINCT + 35 ) * - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT CAST ( NULL AS INTEGER ) / + 25 + MAX ( DISTINCT + 35 ) * - 33 AS col2
----
NULL

query I rowsort
SELECT ALL 21 * - + 77 * + + 21 - 16
----
-33973

query II rowsort
SELECT ALL + NULLIF ( - 5, + 59 ) AS col1, - 92
----
-5
-92

query II rowsort
SELECT + 52 AS col0, 55
----
52
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT COUNT( * ) * + + MAX( + + ( - + 68 ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT COUNT ( * ) * + + MAX ( + + ( - + 68 ) ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT + COALESCE ( 26, + 72 + + + COUNT( * ), - 85 )
----
26

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + COALESCE ( 26, + 72 + + + COUNT ( * ), - 85 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT CASE 44 WHEN - 36 / 59 + + + COUNT( * ) + + 65 * + - 43 + + - 43 / + 47 THEN - - 0 * 27 * + 64 * - 48 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT CASE 44 WHEN - 36 / 59 + + + COUNT ( * ) + + 65 * + - 43 + + - 43 / + 47 THEN - - 0 * 27 * + 64 * - 48 ELSE NULL END col2
----
NULL

query II rowsort
SELECT + 77 * + 97 * + 1 - + - 69 AS col2, NULLIF ( 41, - NULLIF ( + 19, - + 96 * + + 67 ) ) AS col1
----
7538
41

query I rowsort
SELECT DISTINCT + 67 * - 4
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ( SUM( ALL - 21 ) ) * 76 - 46 AS col2
----
-1642

skipif mysql # not compatible
query I rowsort label-3039
SELECT ( SUM ( ALL - 21 ) ) * 76 - 46 AS col2
----
-1642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT - CAST( 16 AS SIGNED ) + - + 39
----
-55

skipif mysql # not compatible
query I rowsort label-3040
SELECT - CAST ( 16 AS INTEGER ) + - + 39
----
-55

query I rowsort
SELECT NULLIF ( + 90, + - 56 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT CASE + ( 67 ) WHEN - 91 THEN - + ( - + 82 ) + 36 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT CASE + ( 67 ) WHEN - 91 THEN - + ( - + 82 ) + 36 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT + COUNT( * ) * - 95 DIV COUNT( - + 22 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3043
SELECT + COUNT ( * ) * - 95 / COUNT ( - + 22 ) AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3044
SELECT DISTINCT - ( 14 ) DIV - SUM( DISTINCT + 6 ) - - 80
----
82

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT - ( 14 ) / - SUM ( DISTINCT + 6 ) - - 80
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT 0 * - 78 * + + 36 - NULLIF ( 60, + CASE - 6 WHEN + + 28 THEN - 89 / + 52 ELSE NULL END * - MIN( DISTINCT + 31 ) + + 52 + - 36 * - COUNT( * ) / 42 + - 78 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3045
SELECT 0 * - 78 * + + 36 - NULLIF ( 60, + CASE - 6 WHEN + + 28 THEN - 89 / + 52 ELSE NULL END * - MIN ( DISTINCT + 31 ) + + 52 + - 36 * - COUNT ( * ) / 42 + - 78 ) AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT DISTINCT 39 DIV 68 * - + 98
----
0

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT 39 / 68 * - + 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3047
SELECT + CAST( + - COUNT( DISTINCT + 34 ) AS SIGNED ), - 38 * + 67 * - CASE - 80 WHEN 61 THEN COUNT( * ) END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3047
SELECT + CAST ( + - COUNT ( DISTINCT + 34 ) AS INTEGER ), - 38 * + 67 * - CASE - 80 WHEN 61 THEN COUNT ( * ) END AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + NULLIF ( + - 64, - + ( + ( - 17 ) ) ) * MIN( - 75 ) + - - COUNT( * )
----
4801

skipif mysql # not compatible
query I rowsort label-3048
SELECT + NULLIF ( + - 64, - + ( + ( - 17 ) ) ) * MIN ( - 75 ) + - - COUNT ( * )
----
4801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3049
SELECT ALL 66 * - 79 * NULLIF ( - COUNT( * ), - SUM( + 41 ) / - CAST( - + 47 AS SIGNED ) ) - - + 61 AS col0
----
5275

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL 66 * - 79 * NULLIF ( - COUNT ( * ), - SUM ( + 41 ) / - CAST ( - + 47 AS INTEGER ) ) - - + 61 AS col0
----
5275

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT - 5 DIV + 4 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3050
SELECT - 5 / + 4 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT ALL 79 + - 66 * - COUNT( DISTINCT + - 15 )
----
145

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL 79 + - 66 * - COUNT ( DISTINCT + - 15 )
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3052
SELECT ALL 19 * - + COALESCE ( - 31, - - 1 * - 95 + + - COUNT( * ) - + 41 * + MAX( ALL - - 89 ) * + 44 + + 89 * COUNT( * ) + ( ( 44 ) ) + - 82 + + CAST( - + 97 AS SIGNED ) * - 73 ) + - 47 * - CAST( NULL AS SIGNED ) AS col2, 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3052
SELECT ALL 19 * - + COALESCE ( - 31, - - 1 * - 95 + + - COUNT ( * ) - + 41 * + MAX ( ALL - - 89 ) * + 44 + + 89 * COUNT ( * ) + ( ( 44 ) ) + - 82 + + CAST ( - + 97 AS INTEGER ) * - 73 ) + - 47 * - CAST ( NULL AS INTEGER ) AS col2, 56
----
NULL
56

query I rowsort
SELECT DISTINCT - 51 + 29
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT - - CASE + COUNT( * ) WHEN + 95 THEN + 39 + 9 * + 40 + + 83 - - - 11 WHEN - + 36 THEN COUNT( * ) * - 77 * 17 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT - - CASE + COUNT ( * ) WHEN + 95 THEN + 39 + 9 * + 40 + + 83 - - - 11 WHEN - + 36 THEN COUNT ( * ) * - 77 * 17 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + ( ( 80 ) ) AS col1, + 24 AS col1
----
80
24

query I rowsort
SELECT + 38 + - 62 AS col1
----
-24

query I rowsort
SELECT 99 * - 15 AS col2
----
-1485

query I rowsort
SELECT DISTINCT + 70 - 17
----
53

query I rowsort
SELECT ALL + 52 * + 84
----
4368

query I rowsort
SELECT 83 * + 28 AS col2
----
2324

query I rowsort
SELECT ALL + 43 * + 98 * + 40
----
168560

query I rowsort
SELECT + 73 * 89 + 14 AS col0
----
6511

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

skipif mysql # not compatible
query I rowsort label-3064
SELECT 2 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT 80 DIV + 75 + MAX( DISTINCT + - 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-3065
SELECT 80 / + 75 + MAX ( DISTINCT + - 40 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT 79 + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3066
SELECT 79 + - COUNT ( * )
----
78

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

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

query I rowsort
SELECT 88 + - 5 * 58 * 58 + + CASE - + 70 WHEN 42 THEN + - AVG ( DISTINCT + 54 ) ELSE NULL END * - 53 + - 24 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3069
SELECT 24 - - 50 AS col0, - 85 + + + COUNT( * ) AS col2
----
74
-84

skipif mysql # not compatible
query II rowsort label-3069
SELECT 24 - - 50 AS col0, - 85 + + + COUNT ( * ) AS col2
----
74
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT 27 DIV - 45 * - 77
----
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT 27 / - 45 * - 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3071
SELECT CASE + - 26 WHEN - MIN( + - 6 ) THEN NULL WHEN + - ( CASE 79 WHEN + 45 + - 69 / - NULLIF ( + 61, - COALESCE ( + 20, - 81 * - 54 / - COALESCE ( - CAST( - + 6 AS DECIMAL ), + + 91 ) + + COUNT( * ) + + - COUNT( * ) * - + 82 - + 46 ) + - 78 ) THEN 88 / ( 79 ) * 25 * 51 WHEN ( 89 ) THEN 17 ELSE NULL END ) THEN NULL WHEN + 69 * 75 THEN 13 * - 41 END * - 84 + - 76 / 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT CASE + - 26 WHEN - MIN ( + - 6 ) THEN NULL WHEN + - ( CASE 79 WHEN + 45 + - 69 / - NULLIF ( + 61, - COALESCE ( + 20, - 81 * - 54 / - COALESCE ( - CAST ( - + 6 AS REAL ), + + 91 ) + + COUNT ( * ) + + - COUNT ( * ) * - + 82 - + 46 ) + - 78 ) THEN 88 / ( 79 ) * 25 * 51 WHEN ( 89 ) THEN 17 ELSE NULL END ) THEN NULL WHEN + 69 * 75 THEN 13 * - 41 END * - 84 + - 76 / 55 AS col0
----
NULL

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

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

query I rowsort
SELECT - 60 * - CASE + + ( - 28 ) WHEN + - 19 THEN + 37 ELSE - ( + 96 ) END + + + 98 AS col1
----
-5662

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT 17 DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3074
SELECT 17 / 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + 31 + - + 23 + - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3075
SELECT + 31 + - + 23 + - COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT + 7 + + 91 * - + COUNT( * ) * + - 62
----
5649

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT + 7 + + 91 * - + COUNT ( * ) * + - 62
----
5649

onlyif mysql # aggregate syntax: 
query II rowsort label-3077
SELECT + 58 * - 85 * - + 67 + 36 AS col1, COUNT( * ) * + 54
----
330346
54

skipif mysql # not compatible
query II rowsort label-3077
SELECT + 58 * - 85 * - + 67 + 36 AS col1, COUNT ( * ) * + 54
----
330346
54

query II rowsort
SELECT ALL + 74 + + 82 AS col0, - 42 * - + 88 AS col1
----
156
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT NULLIF ( + 39, + CASE - + 44 WHEN + - 45 + 64 THEN NULL WHEN + COUNT( * ) / - 79 * - 54 THEN - - COUNT( * ) WHEN + COUNT( * ) THEN NULL END ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3079
SELECT NULLIF ( + 39, + CASE - + 44 WHEN + - 45 + 64 THEN NULL WHEN + COUNT ( * ) / - 79 * - 54 THEN - - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL END ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT 40 + 89 * - + COUNT( ALL + + COALESCE ( 96, 49 / - 79, + + 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-3080
SELECT 40 + 89 * - + COUNT ( ALL + + COALESCE ( 96, 49 / - 79, + + 49 ) )
----
-49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT COUNT( * ) * + 8 col1, - COUNT( * ) + + - 29 col2
----
8
-30

skipif mysql # not compatible
query II rowsort label-3082
SELECT COUNT ( * ) * + 8 col1, - COUNT ( * ) + + - 29 col2
----
8
-30

query I rowsort
SELECT ALL - + 13 + - ( 12 ) col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT - MAX( DISTINCT - 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT - MAX ( DISTINCT - 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3085
SELECT ALL + 97 + - 84 * - 26 + 82 AS col2, + 79 * - + CASE + 86 WHEN - COALESCE ( + MIN( DISTINCT - - 64 ), - 80 ) THEN - 22 - + 94 END AS col1
----
2363
NULL

skipif mysql # not compatible
query II rowsort label-3085
SELECT ALL + 97 + - 84 * - 26 + 82 AS col2, + 79 * - + CASE + 86 WHEN - COALESCE ( + MIN ( DISTINCT - - 64 ), - 80 ) THEN - 22 - + 94 END AS col1
----
2363
NULL

query I rowsort
SELECT 91 - 65
----
26

query I rowsort
SELECT - 40 - 69 + 69
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT CAST( NULL AS SIGNED ) * COALESCE ( - ( + ( - 63 ) ), + 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( - ( + ( - 63 ) ), + 40 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 97 * + 22 * + 45
----
96030

query I rowsort
SELECT ALL 9 * - NULLIF ( - - 28, - - ( - ( 79 ) ) ) AS col0
----
-252

query I rowsort
SELECT 83 * - 50 AS col1
----
-4150

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT 85 * - + COUNT( * ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT 85 * - + COUNT ( * ) col0
----
-85

query I rowsort
SELECT DISTINCT 44 - + 26 AS col2
----
18

query II rowsort
SELECT DISTINCT 47 col1, 90 + + 65 AS col0
----
47
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3095
SELECT COUNT( * ) - - CAST( 67 AS SIGNED ) - + 37 + + MIN( - 24 ) * - - CASE - 59 WHEN - + 66 / NULLIF ( + 45, - 7 * 60 + - + 8 ) THEN - 48 + + 44 END * 24 + + - 94 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT COUNT ( * ) - - CAST ( 67 AS INTEGER ) - + 37 + + MIN ( - 24 ) * - - CASE - 59 WHEN - + 66 / NULLIF ( + 45, - 7 * 60 + - + 8 ) THEN - 48 + + 44 END * 24 + + - 94 * 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT ALL - 43 AS col1, - 87 * + 34 * + COUNT( * )
----
-43
-2958

skipif mysql # not compatible
query II rowsort label-3096
SELECT ALL - 43 AS col1, - 87 * + 34 * + COUNT ( * )
----
-43
-2958

query I rowsort
SELECT 82 * - - 23
----
1886

query I rowsort
SELECT 17 * + - 91 AS col0
----
-1547

query I rowsort
SELECT + 6 * 6 + + 85
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3100
SELECT - 56 DIV + + 4 + + + 93, - COUNT( * ) col2
----
79
-1

skipif mysql # not compatible
query II rowsort label-3100
SELECT - 56 / + + 4 + + + 93, - COUNT ( * ) col2
----
79
-1

query I rowsort
SELECT ALL - 22 * + 51 AS col2
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT + MAX( - 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3102
SELECT + MAX ( - 26 ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT + - CAST( + 16 AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3103
SELECT + - CAST ( + 16 AS INTEGER ) AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT ALL + CAST( - 64 AS SIGNED ) + - 91
----
-155

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + CAST ( - 64 AS INTEGER ) + - 91
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT - NULLIF ( - 11, - 43 ) * + COUNT( - 29 ) - + 5 col2
----
6

skipif mysql # not compatible
query I rowsort label-3105
SELECT - NULLIF ( - 11, - 43 ) * + COUNT ( - 29 ) - + 5 col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT 78 DIV - 5 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3106
SELECT 78 / - 5 AS col1
----
-15

query II rowsort
SELECT ALL - - 65 + - 21 * 87 AS col1, - 66
----
-1762
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3108
SELECT + CAST( - 96 AS SIGNED ) * - ( 1 ) * + 5 + COUNT( * ) AS col1
----
481

skipif mysql # not compatible
query I rowsort label-3108
SELECT + CAST ( - 96 AS INTEGER ) * - ( 1 ) * + 5 + COUNT ( * ) AS col1
----
481

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT ALL - + COALESCE ( MIN( DISTINCT + NULLIF ( - 99, + + 25 ) ), + + 60, - 60 )
----
99

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - + COALESCE ( MIN ( DISTINCT + NULLIF ( - 99, + + 25 ) ), + + 60, - 60 )
----
99

query I rowsort
SELECT - 95 + + 15 + + + 96 + - 44
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT CASE - COUNT( * ) WHEN + - 56 THEN - 52 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT CASE - COUNT ( * ) WHEN + - 56 THEN - 52 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 42 + + 89 + + 29 AS col2
----
160

query I rowsort
SELECT DISTINCT 83 + 78 + + + 62 * + + 12 AS col2
----
905

query II rowsort
SELECT + + 4, 87 col0
----
4
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT 27 + - - COALESCE ( - 28, - + COUNT( 42 ) + - 25 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3116
SELECT 27 + - - COALESCE ( - 28, - + COUNT ( 42 ) + - 25 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT - 98 + + 78 + 29 DIV + 37 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3117
SELECT - 98 + + 78 + 29 / + 37 AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3118
SELECT + - 80 * 60 + - 48 DIV - 69 - - COUNT( * ) * + + 62 AS col0
----
-4738

skipif mysql # not compatible
query I rowsort label-3118
SELECT + - 80 * 60 + - 48 / - 69 - - COUNT ( * ) * + + 62 AS col0
----
-4738

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT - 25 + - + COUNT( * ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-3119
SELECT - 25 + - + COUNT ( * ) col1
----
-26

query I rowsort
SELECT + + COALESCE ( + 27, + ( - - 38 ) ) - + - 98 col0
----
125

query I rowsort
SELECT - 38 + - + 9 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT ALL 84 AS col0, COUNT( * ) + + 20 * + COUNT( * )
----
84
21

skipif mysql # not compatible
query II rowsort label-3122
SELECT ALL 84 AS col0, COUNT ( * ) + + 20 * + COUNT ( * )
----
84
21

query I rowsort
SELECT ALL NULLIF ( 39, + 54 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT CASE 99 WHEN + 70 * + 62 + + 48 + 16 + + 72 THEN - - 92 * - ( + - COUNT( * ) ) + + 8 ELSE + CASE + 41 WHEN - 6 THEN + 39 + - - 70 + + 22 ELSE NULL END + + - 56 - + 29 * - 83 * 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT CASE 99 WHEN + 70 * + 62 + + 48 + 16 + + 72 THEN - - 92 * - ( + - COUNT ( * ) ) + + 8 ELSE + CASE + 41 WHEN - 6 THEN + 39 + - - 70 + + 22 ELSE NULL END + + - 56 - + 29 * - 83 * 63 END
----
NULL

query I rowsort
SELECT + 73 + + + 53
----
126

query II rowsort
SELECT ALL 93 AS col0, + 15 + 72 AS col0
----
93
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT ALL - 26 DIV 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - 26 / 34 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT + 67 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-3128
SELECT + 67 / - 69
----
0

query II rowsort
SELECT - 2 AS col1, - 82
----
-2
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3130
SELECT - NULLIF ( - COUNT( * ), - 38 + CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3130
SELECT - NULLIF ( - COUNT ( * ), - 38 + CAST ( NULL AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - 55 + COUNT( * ) + + 89 * - + COUNT( * ) + - + ( + 56 )
----
-199

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 55 + COUNT ( * ) + + 89 * - + COUNT ( * ) + - + ( + 56 )
----
-199

query I rowsort
SELECT + 19 + - 91 AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3133
SELECT ALL COALESCE ( - 68, 88 ) * COALESCE ( - 7, - 33 + - + 25 - + 66 * + - 75 + + ( + + COUNT( + + ( + 73 ) ) ) - COUNT( * ) * - 46 DIV 65 * - 73 DIV + 11 - + - 69 + + COALESCE ( - 84, 24 * + 13 * - 70 * - - 98 * - 40 ) + - - 25 * - CASE WHEN NOT NULL IS NOT NULL THEN CASE - 72 WHEN + 89 THEN 9 * + MIN( ALL 97 * 76 ) + + MIN( ALL 84 ) WHEN + 48 - - 49 THEN + 66 END END ) * 26 AS col0
----
12376

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL COALESCE ( - 68, 88 ) * COALESCE ( - 7, - 33 + - + 25 - + 66 * + - 75 + + ( + + COUNT ( + + ( + 73 ) ) ) - COUNT ( * ) * - 46 / 65 * - 73 / + 11 - + - 69 + + COALESCE ( - 84, 24 * + 13 * - 70 * - - 98 * - 40 ) + - - 25 * - CASE WHEN NOT NULL IS NOT NULL THEN CASE - 72 WHEN + 89 THEN 9 * + MIN ( ALL 97 * 76 ) + + MIN ( ALL 84 ) WHEN + 48 - - 49 THEN + 66 END END ) * 26 AS col0
----
12376

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT + 31 DIV + 92 * - + 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT + 31 / + 92 * - + 35 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT ALL - 94 * 98 * + + 12 * + + 52 * + COUNT( * ) * + - COUNT( * ) + + 61 AS col1
----
5748349

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL - 94 * 98 * + + 12 * + + 52 * + COUNT ( * ) * + - COUNT ( * ) + + 61 AS col1
----
5748349

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT ALL - 44 * - - MAX( - 70 ) + + 44, 21 AS col0
----
3124
21

skipif mysql # not compatible
query II rowsort label-3137
SELECT ALL - 44 * - - MAX ( - 70 ) + + 44, 21 AS col0
----
3124
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + 25 + - 83 + - + 26 * + ( + 92 ) + 43 * - - 84 * - + COUNT( * )
----
-6062

skipif mysql # not compatible
query I rowsort label-3138
SELECT + 25 + - 83 + - + 26 * + ( + 92 ) + 43 * - - 84 * - + COUNT ( * )
----
-6062

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

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

query III rowsort
SELECT ALL + 62 AS col2, - ( - 17 ) * - 82 AS col0, - 15 AS col2
----
62
-1394
-15

query I rowsort
SELECT NULLIF ( - + 78, + 31 + - + 93 ) AS col0
----
-78

query I rowsort
SELECT ALL + 67 * + 49 + - 32
----
3251

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT + - 21 - - + COUNT( 37 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-3143
SELECT + - 21 - - + COUNT ( 37 ) AS col0
----
-20

query II rowsort
SELECT DISTINCT + NULLIF ( 71, - ( 47 ) ) AS col0, 93 AS col1
----
71
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT + COUNT( * ) * - SUM( 40 ) * - 74 + 74 + + + 2 * - - 26 * - 68 + - 69 AS col2
----
-571

skipif mysql # not compatible
query I rowsort label-3145
SELECT + COUNT ( * ) * - SUM ( 40 ) * - 74 + 74 + + + 2 * - - 26 * - 68 + - 69 AS col2
----
-571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT DISTINCT COUNT( * ) * CAST( + - 3 AS SIGNED ) * + COUNT( * ) + - 82 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT COUNT ( * ) * CAST ( + - 3 AS INTEGER ) * + COUNT ( * ) + - 82 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL 25 * + COUNT( * ) + 9 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL 25 * + COUNT ( * ) + 9 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3148
SELECT ALL - COUNT( * ) * - - 14 + - 91 + - + COALESCE ( + 1, + - 9 + - + 57 ) + + SUM( DISTINCT + 90 ) + - 65 * CAST( - 36 AS SIGNED )
----
2324

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - COUNT ( * ) * - - 14 + - 91 + - + COALESCE ( + 1, + - 9 + - + 57 ) + + SUM ( DISTINCT + 90 ) + - 65 * CAST ( - 36 AS INTEGER )
----
2324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT + 15 + - - CAST( 4 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-3149
SELECT + 15 + - - CAST ( 4 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT DISTINCT + CASE + 95 WHEN - - 27 + + + SUM( 57 ) THEN NULL WHEN - CASE + - 61 WHEN COUNT( * ) * + + 27 + + 98 + - 40 THEN NULL ELSE + 11 END * + 11 - - 71 + + 65 * 58 THEN - - 98 * 21 * 63 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + CASE + 95 WHEN - - 27 + + + SUM ( 57 ) THEN NULL WHEN - CASE + - 61 WHEN COUNT ( * ) * + + 27 + + 98 + - 40 THEN NULL ELSE + 11 END * + 11 - - 71 + + 65 * 58 THEN - - 98 * 21 * 63 END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 12 * 83 + 57 + + + 1 AS col1
----
1054

onlyif mysql # DIV for integer division: 
query II rowsort label-3152
SELECT + - ( 30 ) DIV + + 33 + 11, + ( 73 ) - - 65 + - + 65 AS col1
----
11
73

skipif mysql # not compatible
query II rowsort label-3152
SELECT + - ( 30 ) / + + 33 + 11, + ( 73 ) - - 65 + - + 65 AS col1
----
11
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3153
SELECT - - 19 * + MAX( DISTINCT - 59 ) * 6, - 45 AS col2
----
-6726
-45

skipif mysql # not compatible
query II rowsort label-3153
SELECT - - 19 * + MAX ( DISTINCT - 59 ) * 6, - 45 AS col2
----
-6726
-45

query II rowsort
SELECT - 63, - 1 + + - 43 - - COALESCE ( - 66, - 5 * - 24 + - + 99 + + + 61 ) + 15 * + - 33 * + 75 * - + 67 AS col0
----
-63
2487265

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT + MAX( DISTINCT - 21 ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-3155
SELECT + MAX ( DISTINCT - 21 ) col1
----
-21

query I rowsort
SELECT - + NULLIF ( - 43, - 85 ) + + 17 * - 46 + + 39 - + - ( - 97 )
----
-797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3157
SELECT ALL 25, - CAST( - 84 AS SIGNED ) * - COUNT( * ) AS col1
----
25
-84

skipif mysql # not compatible
query II rowsort label-3157
SELECT ALL 25, - CAST ( - 84 AS INTEGER ) * - COUNT ( * ) AS col1
----
25
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT DISTINCT + + 20 DIV 22 + + 75
----
75

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT + + 20 / 22 + + 75
----
75

query I rowsort
SELECT ALL NULLIF ( + 8, - 28 * 72 * 0 * - 33 / + - 65 + - - 46 ) AS col1
----
8

query I rowsort
SELECT - 32 * - - 15 + + 32 col1
----
-448

query II rowsort
SELECT ALL 31 AS col1, - 43 AS col0
----
31
-43

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

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

query I rowsort
SELECT ALL ( + + 64 ) col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT DISTINCT CASE - + 37 WHEN COUNT( * ) + 70 THEN + 13 / CAST( - ( - 19 ) AS SIGNED ) + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT CASE - + 37 WHEN COUNT ( * ) + 70 THEN + 13 / CAST ( - ( - 19 ) AS INTEGER ) + 44 ELSE NULL END
----
NULL

query II rowsort
SELECT + 85 * 76 AS col1, - 82
----
6460
-82

query I rowsort
SELECT DISTINCT - 39 * 39 * 72 AS col0
----
-109512

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL - COUNT( * ) * + 9 * 68 * - 86
----
52632

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - COUNT ( * ) * + 9 * 68 * - 86
----
52632

query II rowsort
SELECT + 61 + + 43, + 39 * + 65 AS col1
----
104
2535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT DISTINCT CAST( + 75 AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT CAST ( + 75 AS INTEGER ) AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT ALL - COUNT( * ) + + + NULLIF ( + CASE - + CAST( 83 AS SIGNED ) WHEN - 1 THEN NULL WHEN + 79 * + 82 THEN - NULLIF ( CASE - + COUNT( ALL - 19 ) WHEN - 41 THEN - - MIN( + 24 ) + - - SUM( DISTINCT 0 ) WHEN + COUNT( * ) THEN NULL END, 68 ) + - 96 END, + - COUNT( * ) / + 79 * - - CASE + 91 WHEN - COUNT( * ) THEN + COUNT( * ) END + 36 ) + + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - COUNT ( * ) + + + NULLIF ( + CASE - + CAST ( 83 AS INTEGER ) WHEN - 1 THEN NULL WHEN + 79 * + 82 THEN - NULLIF ( CASE - + COUNT ( ALL - 19 ) WHEN - 41 THEN - - MIN ( + 24 ) + - - SUM ( DISTINCT 0 ) WHEN + COUNT ( * ) THEN NULL END, 68 ) + - 96 END, + - COUNT ( * ) / + 79 * - - CASE + 91 WHEN - COUNT ( * ) THEN + COUNT ( * ) END + 36 ) + + + 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3171
SELECT - 25 * 37 * 84 * + - ( + CAST( NULL AS SIGNED ) ) AS col2, + MAX( DISTINCT - 47 )
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-3171
SELECT - 25 * 37 * 84 * + - ( + CAST ( NULL AS INTEGER ) ) AS col2, + MAX ( DISTINCT - 47 )
----
NULL
-47

query I rowsort
SELECT - 84 - - 27 - 96
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-3173
SELECT ALL ( 62 ), - 51 * + COUNT( * ) AS col1
----
62
-51

skipif mysql # not compatible
query II rowsort label-3173
SELECT ALL ( 62 ), - 51 * + COUNT ( * ) AS col1
----
62
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3174
SELECT - 89 * + - MIN( ALL - - 63 ) AS col2, 52 + - + 37
----
5607
15

skipif mysql # not compatible
query II rowsort label-3174
SELECT - 89 * + - MIN ( ALL - - 63 ) AS col2, 52 + - + 37
----
5607
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3175
SELECT DISTINCT + 77 DIV ( + COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT + 77 / ( + COUNT ( * ) )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT DISTINCT 36 DIV 2 * + - 44 + + 59 * 9 + 10 AS col2
----
-251

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT 36 / 2 * + - 44 + + 59 * 9 + 10 AS col2
----
-251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3177
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) DIV + 65 + + 54
----
54

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) / + 65 + + 54
----
54

query I rowsort
SELECT + 91 * NULLIF ( - + 96, - - 96 + - + 39 + + 38 + 43 * 38 ) AS col0
----
-8736

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT + NULLIF ( + 12, - + 9 + - 35 ) DIV 96 + 90 col1
----
90

skipif mysql # not compatible
query I rowsort label-3179
SELECT + NULLIF ( + 12, - + 9 + - 35 ) / 96 + 90 col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3180
SELECT ALL + COUNT( * ) DIV - + CAST( - 43 AS SIGNED ) - - ( 64 ) * - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + COUNT ( * ) / - + CAST ( - 43 AS INTEGER ) - - ( 64 ) * - + COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + SUM( + - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-3181
SELECT + SUM ( + - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3182
SELECT + COALESCE ( + 65, + COUNT( * ) ) AS col0, 5 AS col2
----
65
5

skipif mysql # not compatible
query II rowsort label-3182
SELECT + COALESCE ( + 65, + COUNT ( * ) ) AS col0, 5 AS col2
----
65
5

query II rowsort
SELECT + ( + 60 ) AS col2, - 28 + - 23 + - 83 * - - 73 AS col2
----
60
-6110

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT + + 72 * + 65 + + 93 * - - COUNT( * ) AS col1
----
4773

skipif mysql # not compatible
query I rowsort label-3184
SELECT + + 72 * + 65 + + 93 * - - COUNT ( * ) AS col1
----
4773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT - 49 * - CASE + 50 WHEN + 94 + + AVG ( - 40 ) THEN NULL WHEN - 83 * + - 83 * CAST( + 0 AS SIGNED ) - - - 14 THEN + 18 * 32 - - + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT - 49 * - CASE + 50 WHEN + 94 + + AVG ( - 40 ) THEN NULL WHEN - 83 * + - 83 * CAST ( + 0 AS INTEGER ) - - - 14 THEN + 18 * 32 - - + 66 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT 38 * - 12 - ( + MAX( ALL - NULLIF ( - - 34, + - 71 - 48 ) ) ) AS col0
----
-422

skipif mysql # not compatible
query I rowsort label-3186
SELECT 38 * - 12 - ( + MAX ( ALL - NULLIF ( - - 34, + - 71 - 48 ) ) ) AS col0
----
-422

query I rowsort
SELECT DISTINCT 3 * + 46 + - 44 col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL + + NULLIF ( 20, AVG ( DISTINCT 29 ) ) * - 58 + + 46 - - 85 + - 1 * + + 42 + 87 + + COUNT( * ) - - + 7 * 48
----
-647

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + + NULLIF ( 20, AVG ( DISTINCT 29 ) ) * - 58 + + 46 - - 85 + - 1 * + + 42 + 87 + + COUNT ( * ) - - + 7 * 48
----
-647

query I rowsort
SELECT + 43 + - - 62
----
105

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

skipif mysql # not compatible
query I rowsort label-3190
SELECT CAST ( NULL AS INTEGER ) * - + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3191
SELECT 11 + + + 73 + 91 DIV - 89 + ( + 14 ) * + SUM( ALL 25 ) * + NULLIF ( - + 46, - 53 ) AS col1
----
-16017

skipif mysql # not compatible
query I rowsort label-3191
SELECT 11 + + + 73 + 91 / - 89 + ( + 14 ) * + SUM ( ALL 25 ) * + NULLIF ( - + 46, - 53 ) AS col1
----
-16017

query II rowsort
SELECT ALL 34, 61 AS col1
----
34
61

query I rowsort
SELECT 82 + - + ( 22 ) + - 67
----
-7

query I rowsort
SELECT + 88 * + COALESCE ( - 14, + + 6 ) + 74 AS col0
----
-1158

query I rowsort
SELECT ALL - 63 + + 22
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT DISTINCT 49 DIV - + COALESCE ( + 67, 80 )
----
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT 49 / - + COALESCE ( + 67, 80 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3197
SELECT DISTINCT - 36 + - + 92 - + - 57 + 51 + + 94 * - COUNT( * ), - 1 + - + 84 + - + CAST( NULL AS SIGNED ) * - 23 + + 2 AS col1
----
-114
NULL

skipif mysql # not compatible
query II rowsort label-3197
SELECT DISTINCT - 36 + - + 92 - + - 57 + 51 + + 94 * - COUNT ( * ), - 1 + - + 84 + - + CAST ( NULL AS INTEGER ) * - 23 + + 2 AS col1
----
-114
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3199
SELECT ALL 23 AS col0, + 86 * - + NULLIF ( 97, 64 ) + - NULLIF ( COUNT( * ), + - 32 * 12 * + 4 * - 62 ) - - 86 AS col1
----
23
-8257

skipif mysql # not compatible
query II rowsort label-3199
SELECT ALL 23 AS col0, + 86 * - + NULLIF ( 97, 64 ) + - NULLIF ( COUNT ( * ), + - 32 * 12 * + 4 * - 62 ) - - 86 AS col1
----
23
-8257

query II rowsort
SELECT 32 + 63 * + - 86 AS col2, 75 * 63
----
-5386
4725

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT DISTINCT - 19 - + 21 - 25 DIV - 47 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT - 19 - + 21 - 25 / - 47 AS col1
----
-40

query I rowsort
SELECT 56 * + - 32 AS col1
----
-1792

query I rowsort
SELECT ALL - NULLIF ( 71, - 85 ) AS col1
----
-71

query I rowsort
SELECT 74 * - 88
----
-6512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3205
SELECT - 50 + - + 65 - - 18 * CASE - CAST( - 57 AS DECIMAL ) WHEN - - COUNT( * ) THEN NULL ELSE 17 * - 36 + 12 END
----
-10915

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 50 + - + 65 - - 18 * CASE - CAST ( - 57 AS REAL ) WHEN - - COUNT ( * ) THEN NULL ELSE 17 * - 36 + 12 END
----
-10915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3206
SELECT ALL - - 79 DIV + + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL - - 79 / + + COUNT ( * ) AS col1
----
79

query I rowsort
SELECT + 70 * + ( 96 ) + + - 93 + 75
----
6702

query I rowsort
SELECT - 34 + + 50 AS col0
----
16

query I rowsort
SELECT DISTINCT + 81 * 80
----
6480

query I rowsort
SELECT ALL - - ( 20 ) col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3211
SELECT 4 * + COUNT( * ) DIV - 33, 73 DIV - 5 AS col1
----
0
-14

skipif mysql # not compatible
query II rowsort label-3211
SELECT 4 * + COUNT ( * ) / - 33, 73 / - 5 AS col1
----
0
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - - SUM( ALL 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - - SUM ( ALL 52 ) AS col1
----
52

query II rowsort
SELECT ALL - + 97 col0, CASE - 2 WHEN + 73 * + - 99 THEN NULL ELSE - ( + 11 ) END + - 76 col0
----
-97
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT + 29 * 63 * - NULLIF ( + 85, + CASE + COUNT( * ) WHEN 5 * - COUNT( * ) / - ( + + 22 ) + + 89 THEN COALESCE ( - 53, COUNT( * ), + ( + COUNT( * ) ) - + ( + 90 ) * - 86 ) WHEN - ( - - ( + + 3 ) ) THEN - CASE - + 71 WHEN + 13 + - ( + 82 ) THEN NULL ELSE - + 26 END * - + NULLIF ( - 45, 36 ) - - 64 * + 55 END - + 98 )
----
-155295

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + 29 * 63 * - NULLIF ( + 85, + CASE + COUNT ( * ) WHEN 5 * - COUNT ( * ) / - ( + + 22 ) + + 89 THEN COALESCE ( - 53, COUNT ( * ), + ( + COUNT ( * ) ) - + ( + 90 ) * - 86 ) WHEN - ( - - ( + + 3 ) ) THEN - CASE - + 71 WHEN + 13 + - ( + 82 ) THEN NULL ELSE - + 26 END * - + NULLIF ( - 45, 36 ) - - 64 * + 55 END - + 98 )
----
-155295

query I rowsort
SELECT + 41 * 81 AS col0
----
3321

onlyif mysql # aggregate syntax: 
query II rowsort label-3216
SELECT DISTINCT - + 15 AS col2, - MIN( + 54 ) * + - 80 AS col2
----
-15
4320

skipif mysql # not compatible
query II rowsort label-3216
SELECT DISTINCT - + 15 AS col2, - MIN ( + 54 ) * + - 80 AS col2
----
-15
4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3217
SELECT COUNT( * ) + 47 * - CAST( NULL AS SIGNED ) * + 37 AS col2, - 49 * 57 AS col0
----
NULL
-2793

skipif mysql # not compatible
query II rowsort label-3217
SELECT COUNT ( * ) + 47 * - CAST ( NULL AS INTEGER ) * + 37 AS col2, - 49 * 57 AS col0
----
NULL
-2793

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3219
SELECT NULLIF ( - + SUM( ( CAST( NULL AS DECIMAL ) ) ), 10 * COUNT( * ) ) * - CAST( + 0 AS SIGNED ) + - 95 + 3 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT NULLIF ( - + SUM ( ( CAST ( NULL AS REAL ) ) ), 10 * COUNT ( * ) ) * - CAST ( + 0 AS INTEGER ) + - 95 + 3 * 53
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL MIN ( - 30 )
----
-30

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

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT COUNT ( * ) + + 56 col2
----
57

query I rowsort
SELECT 33 + + 4 + - 64 + + 37 * + - 67
----
-2506

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3223
SELECT - MAX( DISTINCT + 12 ) AS col2, - 93 DIV 31
----
-12
-3

skipif mysql # not compatible
query II rowsort label-3223
SELECT - MAX ( DISTINCT + 12 ) AS col2, - 93 / 31
----
-12
-3

query I rowsort
SELECT DISTINCT 25 * + + 23
----
575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3225
SELECT 17 - CASE CAST( - 61 AS SIGNED ) WHEN CAST( - ( 44 ) AS DECIMAL ) THEN NULL WHEN + MAX( 56 ) THEN + 13 + + 27 + + + COUNT( + 9 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT 17 - CASE CAST ( - 61 AS INTEGER ) WHEN CAST ( - ( 44 ) AS REAL ) THEN NULL WHEN + MAX ( 56 ) THEN + 13 + + 27 + + + COUNT ( + 9 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 60 * - 32
----
-1920

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

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT ( + + 42 ) + + + COUNT ( * ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT NULLIF ( - + NULLIF ( 61, - - 16 + 52 / - + 74 ), 88 * - + MIN( DISTINCT + + 20 ) ) - - SUM( DISTINCT + - 79 ) col0
----
-140

skipif mysql # not compatible
query I rowsort label-3228
SELECT NULLIF ( - + NULLIF ( 61, - - 16 + 52 / - + 74 ), 88 * - + MIN ( DISTINCT + + 20 ) ) - - SUM ( DISTINCT + - 79 ) col0
----
-140

query I rowsort
SELECT 68 + + 49 AS col1
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3230
SELECT DISTINCT 54 - - + COUNT( * ) - + + 29 DIV - + 52
----
55

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT 54 - - + COUNT ( * ) - + + 29 / - + 52
----
55

query I rowsort
SELECT ALL + 69 - + 62 - + 9 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT DISTINCT - 14 DIV - 29 * 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - 14 / - 29 * 29 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3233
SELECT DISTINCT COALESCE ( - - ( - 32 ), - - CAST( NULL AS SIGNED ) DIV + 85 ) - + 62 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT COALESCE ( - - ( - 32 ), - - CAST ( NULL AS INTEGER ) / + 85 ) - + 62 AS col2
----
-94

query I rowsort
SELECT ALL - 4 * ( - + 17 ) AS col0
----
68

query II rowsort
SELECT DISTINCT + - ( + 84 ) * - 10 * - 81 AS col1, 32
----
-68040
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3236
SELECT - CAST( NULL AS SIGNED ) * - - 36 / 51 * 56, - 77 AS col0
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-3236
SELECT - CAST ( NULL AS INTEGER ) * - - 36 / 51 * 56, - 77 AS col0
----
NULL
-77

query I rowsort
SELECT ALL - 52 * - 54 * - 19 * 5 AS col0
----
-266760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL + + COALESCE ( - ( + 26 ), 59 * + + COUNT( * ), + 32 )
----
-26

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL + + COALESCE ( - ( + 26 ), 59 * + + COUNT ( * ), + 32 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3240
SELECT DISTINCT + NULLIF ( + CASE - + COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) * - + 71 THEN CAST( NULL AS SIGNED ) END, - 44 ) AS col0, 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-3240
SELECT DISTINCT + NULLIF ( + CASE - + COUNT ( * ) WHEN - CAST ( NULL AS REAL ) * - + 71 THEN CAST ( NULL AS INTEGER ) END, - 44 ) AS col0, 18
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT - - ( + COUNT( * ) ) * - 72 + MAX( - 66 )
----
-138

skipif mysql # not compatible
query I rowsort label-3241
SELECT - - ( + COUNT ( * ) ) * - 72 + MAX ( - 66 )
----
-138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3242
SELECT DISTINCT - + 34 DIV 72, - CAST( - - 70 AS SIGNED ) AS col2
----
0
-70

skipif mysql # not compatible
query II rowsort label-3242
SELECT DISTINCT - + 34 / 72, - CAST ( - - 70 AS INTEGER ) AS col2
----
0
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3243
SELECT - 78 + 57 * + + MAX( DISTINCT + 66 ) / + CAST( NULL AS SIGNED ) * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT - 78 + 57 * + + MAX ( DISTINCT + 66 ) / + CAST ( NULL AS INTEGER ) * 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT DISTINCT - 90 DIV - - ( 2 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - 90 / - - ( 2 ) AS col1
----
-45

query I rowsort
SELECT - 8 - - 43 + - + 57 * + 9 AS col2
----
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + MAX( + 7 ) + ( + 56 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3246
SELECT + MAX ( + 7 ) + ( + 56 ) AS col2
----
63

query I rowsort
SELECT - 49 + - 69 - + + 4 AS col2
----
-122

query I rowsort
SELECT - 25 + - + 31
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + 31 - + ( + 80 ) + - COALESCE ( - MAX( ALL - - 64 ), 67 )
----
15

skipif mysql # not compatible
query I rowsort label-3249
SELECT + 31 - + ( + 80 ) + - COALESCE ( - MAX ( ALL - - 64 ), 67 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3250
SELECT + 1 + - 89 * - 89 col1, + 44 * COUNT( * ) - + + 61 AS col0
----
7922
-17

skipif mysql # not compatible
query II rowsort label-3250
SELECT + 1 + - 89 * - 89 col1, + 44 * COUNT ( * ) - + + 61 AS col0
----
7922
-17

query I rowsort
SELECT ALL ( - + 49 ) AS col1
----
-49

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

query I rowsort
SELECT + 95 * 68 col1
----
6460

query I rowsort
SELECT ALL 6 * 47
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT + 71 + - 95 - + 73 - - + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-3255
SELECT + 71 + - 95 - + 73 - - + COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3256
SELECT ALL - 47 * + - 28 * - 33, COUNT( * ) AS col1
----
-43428
1

skipif mysql # not compatible
query II rowsort label-3256
SELECT ALL - 47 * + - 28 * - 33, COUNT ( * ) AS col1
----
-43428
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + + 41 + + MAX( 54 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3257
SELECT + + 41 + + MAX ( 54 ) AS col0
----
95

query II rowsort
SELECT - 87, + 66 AS col1
----
-87
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL MIN( DISTINCT - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL MIN ( DISTINCT - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + - 67 + COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3260
SELECT + - 67 + COUNT ( * ) AS col1
----
-66

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

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

query I rowsort
SELECT + + 92 + - 75
----
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT + - COALESCE ( + CAST( - + 16 AS SIGNED ), + SUM( - ( - + 77 ) ) * + 32, - - 92 )
----
16

skipif mysql # not compatible
query I rowsort label-3264
SELECT + - COALESCE ( + CAST ( - + 16 AS INTEGER ), + SUM ( - ( - + 77 ) ) * + 32, - - 92 )
----
16

query I rowsort
SELECT 51 * 35 + + - 16 AS col0
----
1769

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL NULLIF ( + COUNT( ALL + 28 ), - 6 ) / + + CASE 35 WHEN 28 THEN + - 40 / - - 7 END * + 67 + 15 * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL NULLIF ( + COUNT ( ALL + 28 ), - 6 ) / + + CASE 35 WHEN 28 THEN + - 40 / - - 7 END * + 67 + 15 * 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3267
SELECT + 17 AS col0, ( CAST( - - 21 AS SIGNED ) ) AS col0
----
17
21

skipif mysql # not compatible
query II rowsort label-3267
SELECT + 17 AS col0, ( CAST ( - - 21 AS INTEGER ) ) AS col0
----
17
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - + 85 + + COALESCE ( - 7, CASE - 86 WHEN 20 + - COALESCE ( + 47, + NULLIF ( + - 97, 94 * 45 ), 57, + - COUNT( * ) + + COUNT( * ) ) + + 33 * + 89 THEN NULL WHEN - 25 THEN + + 44 + 32 + + 7 * - 83 * - 14 END - COUNT( * ) - + NULLIF ( - + 26, - 72 ) ) + ( - SUM( ALL 13 ) ) - - 33
----
-72

skipif mysql # not compatible
query I rowsort label-3269
SELECT - + 85 + + COALESCE ( - 7, CASE - 86 WHEN 20 + - COALESCE ( + 47, + NULLIF ( + - 97, 94 * 45 ), 57, + - COUNT ( * ) + + COUNT ( * ) ) + + 33 * + 89 THEN NULL WHEN - 25 THEN + + 44 + 32 + + 7 * - 83 * - 14 END - COUNT ( * ) - + NULLIF ( - + 26, - 72 ) ) + ( - SUM ( ALL 13 ) ) - - 33
----
-72

query I rowsort
SELECT DISTINCT - ( + 83 ) * - 23 * + - 51
----
-97359

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3272
SELECT ALL 95 * - + MIN( - - CAST( NULL AS SIGNED ) ) + + COUNT( * ) + COUNT( * ) * 5 + + CAST( NULL AS DECIMAL ) + - + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL 95 * - + MIN ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + COUNT ( * ) * 5 + + CAST ( NULL AS REAL ) + - + 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT DISTINCT + 88, COUNT( - 57 ) AS col2
----
88
1

skipif mysql # not compatible
query II rowsort label-3273
SELECT DISTINCT + 88, COUNT ( - 57 ) AS col2
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL + 40 * - 88 + + + SUM( ( - + 93 ) )
----
-3613

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + 40 * - 88 + + + SUM ( ( - + 93 ) )
----
-3613

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT - MAX( + 96 ) * - - 72 + + 74 AS col0
----
-6838

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - MAX ( + 96 ) * - - 72 + + 74 AS col0
----
-6838

query I rowsort
SELECT + 73 * - 50
----
-3650

query II rowsort
SELECT - 79 * + 18 AS col2, 59
----
-1422
59

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

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

query I rowsort
SELECT COALESCE ( 18, 41 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT + 30 * - 32 * - - COUNT( * ) * - 30 - - + 97
----
28897

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT + 30 * - 32 * - - COUNT ( * ) * - 30 - - + 97
----
28897

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

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

query I rowsort
SELECT - 43 * - ( - 13 ) AS col0
----
-559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3283
SELECT ALL 0 * - COALESCE ( - + 75, + + 24 + + 55 ) - - - CASE 93 WHEN + SUM( DISTINCT + 61 ) * + + CASE + - 69 WHEN + 36 + + + 56 THEN - 86 + + + 67 + + - 76 * COUNT( * ) DIV 65 WHEN - 54 THEN - 71 + 74 + 18 END THEN + 49 ELSE - - 97 END - CASE - + 62 WHEN 56 * + 24 THEN - 37 * 11 * + - 40 + 35 + 0 * - - COUNT( * ) DIV + 64 + + - 97 - 55 * 45 ELSE - 57 + - 37 END + + 55 * + 69 * + 39 * - 47
----
-6956238

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL 0 * - COALESCE ( - + 75, + + 24 + + 55 ) - - - CASE 93 WHEN + SUM ( DISTINCT + 61 ) * + + CASE + - 69 WHEN + 36 + + + 56 THEN - 86 + + + 67 + + - 76 * COUNT ( * ) / 65 WHEN - 54 THEN - 71 + 74 + 18 END THEN + 49 ELSE - - 97 END - CASE - + 62 WHEN 56 * + 24 THEN - 37 * 11 * + - 40 + 35 + 0 * - - COUNT ( * ) / + 64 + + - 97 - 55 * 45 ELSE - 57 + - 37 END + + 55 * + 69 * + 39 * - 47
----
-6956238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3284
SELECT DISTINCT + 14 * - + ( + 90 ) * COUNT( * ) * CAST( - 97 AS SIGNED ) / - + 58 + - + ( CASE + 64 WHEN + 75 THEN - + ( 98 ) END ) + + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT + 14 * - + ( + 90 ) * COUNT ( * ) * CAST ( - 97 AS INTEGER ) / - + 58 + - + ( CASE + 64 WHEN + 75 THEN - + ( 98 ) END ) + + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3285
SELECT COUNT( * ), + ( - COALESCE ( 30, - 50 ) ) AS col1
----
1
-30

skipif mysql # not compatible
query II rowsort label-3285
SELECT COUNT ( * ), + ( - COALESCE ( 30, - 50 ) ) AS col1
----
1
-30

query II rowsort
SELECT DISTINCT + 15 * + 81 AS col2, - 26
----
1215
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3287
SELECT 42 DIV + 1 DIV + COUNT( ALL - 58 ) col0, - 4 + - + 12 + - ( ( 84 ) ) * ( 34 ) AS col0
----
42
-2872

skipif mysql # not compatible
query II rowsort label-3287
SELECT 42 / + 1 / + COUNT ( ALL - 58 ) col0, - 4 + - + 12 + - ( ( 84 ) ) * ( 34 ) AS col0
----
42
-2872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT SUM( + + 18 ) DIV - 70 * SUM( DISTINCT 63 ) + + 12 + COALESCE ( - 88, - - 76 ) + 24 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3288
SELECT SUM ( + + 18 ) / - 70 * SUM ( DISTINCT 63 ) + + 12 + COALESCE ( - 88, - - 76 ) + 24 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3289
SELECT ALL 77, COALESCE ( + + 21, COUNT( * ), 19 ) * 68 + + + NULLIF ( 96, + 50 ) AS col0
----
77
1524

skipif mysql # not compatible
query II rowsort label-3289
SELECT ALL 77, COALESCE ( + + 21, COUNT ( * ), 19 ) * 68 + + + NULLIF ( 96, + 50 ) AS col0
----
77
1524

query II rowsort
SELECT ALL 21 AS col2, 16 col2
----
21
16

query I rowsort
SELECT 41 - - - 16
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT CASE - 68 WHEN 19 + - 81 + + MIN( 52 ) * COUNT( * ) THEN NULL ELSE 52 END + - + 32, 34 AS col0
----
20
34

skipif mysql # not compatible
query II rowsort label-3292
SELECT CASE - 68 WHEN 19 + - 81 + + MIN ( 52 ) * COUNT ( * ) THEN NULL ELSE 52 END + - + 32, 34 AS col0
----
20
34

query III rowsort
SELECT - 93, ( - 49 ) + - - 88 AS col2, - 39 * 90 * + + ( - 4 ) col1
----
-93
39
14040

query I rowsort
SELECT ALL ( - 68 ) AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3295
SELECT ALL - COALESCE ( + 64, CAST( + 49 AS SIGNED ) ), + 60 AS col0
----
-64
60

skipif mysql # not compatible
query II rowsort label-3295
SELECT ALL - COALESCE ( + 64, CAST ( + 49 AS INTEGER ) ), + 60 AS col0
----
-64
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT 1 + + 89 + + - 63 - 78 + - COUNT( * ) * - 19 + - - 88
----
56

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT 1 + + 89 + + - 63 - 78 + - COUNT ( * ) * - 19 + - - 88
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT 56 - 1 DIV + ( + - 92 ) - - - 39 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3298
SELECT 56 - 1 / + ( + - 92 ) - - - 39 AS col2
----
17

query I rowsort
SELECT DISTINCT 45 + 93
----
138

query I rowsort
SELECT + 19 - + 38 * 47 col0
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + COALESCE ( + 27, COUNT( * ) + 22 ) + 17 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + COALESCE ( + 27, COUNT ( * ) + 22 ) + 17 AS col0
----
44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT 66 DIV - 63 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3303
SELECT 66 / - 63 col0
----
-1

query I rowsort
SELECT - 16 * - ( ( - ( 49 ) ) ) * 60 + + - ( - 79 ) * - + 13 + - 50
----
-48117

query II rowsort
SELECT ALL - ( - 75 ) AS col2, 83 AS col0
----
75
83

onlyif mysql # aggregate syntax: 
query III rowsort label-3306
SELECT + - 59 AS col0, + 24 + - 45 * + + 9, + COUNT( ALL + 73 ) AS col1
----
-59
-381
1

skipif mysql # not compatible
query III rowsort label-3306
SELECT + - 59 AS col0, + 24 + - 45 * + + 9, + COUNT ( ALL + 73 ) AS col1
----
-59
-381
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3307
SELECT ALL - + 52, + 14 DIV - 91 col0
----
-52
0

skipif mysql # not compatible
query II rowsort label-3307
SELECT ALL - + 52, + 14 / - 91 col0
----
-52
0

query I rowsort
SELECT 27 * - ( + 5 ) * + - 54 * + 43 col2
----
313470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT - 47 * + 67 + - CAST( NULL AS SIGNED ) + + 0 + - CAST( - 84 AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT - 47 * + 67 + - CAST ( NULL AS INTEGER ) + + 0 + - CAST ( - 84 AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 84 * + 68 + - 58 AS col2
----
-5770

query I rowsort
SELECT 43 * + + 96 AS col1
----
4128

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

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

query I rowsort
SELECT 52 * - NULLIF ( - + 90, + 76 - + 88 )
----
4680

query II rowsort
SELECT ALL - CASE + + ( 73 ) WHEN ( - 94 ) THEN ( 31 ) END AS col1, 20 * + 56
----
NULL
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT NULLIF ( - 36, - 23 + - 94 ) + - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3315
SELECT NULLIF ( - 36, - 23 + - 94 ) + - COUNT ( * ) AS col2
----
-37

query I rowsort
SELECT 68 * + - 52
----
-3536

query I rowsort
SELECT 71 + - - 85
----
156

query I rowsort
SELECT 80 + + - 38
----
42

query I rowsort
SELECT 58 * + 63 AS col0
----
3654

query I rowsort
SELECT ALL 89 + + 33 * 11
----
452

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL - - 57 + + 92 - + COUNT( * ) * + - 13
----
162

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - - 57 + + 92 - + COUNT ( * ) * + - 13
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT - + MIN( - - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3322
SELECT - + MIN ( - - 33 ) AS col2
----
-33

query I rowsort
SELECT ALL - NULLIF ( + 47, + 5 * + + 95 * 75 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT + NULLIF ( 27, + 41 / + + 25 * - CAST( NULL AS SIGNED ) * - 96 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3324
SELECT + NULLIF ( 27, + 41 / + + 25 * - CAST ( NULL AS INTEGER ) * - 96 ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT 25 + + MAX( ALL + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT 25 + + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT - + 90 * + + COUNT ( DISTINCT - 11 ) AS col2
----
-90

query I rowsort
SELECT 35 + + 68
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT - CAST( NULL AS SIGNED ) - 98 + - ( + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT - CAST ( NULL AS INTEGER ) - 98 + - ( + 23 )
----
NULL

query I rowsort
SELECT 81 + + ( + 57 )
----
138

query I rowsort
SELECT ALL + 68 * 99 AS col1
----
6732

query I rowsort
SELECT DISTINCT - - 85 - 59 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT + 67 + + 37 * - 62 - - + CASE - 74 WHEN ( + MAX( - 42 ) ) + ( - + 68 ) + - + 62 THEN + 55 * 77 WHEN - 24 THEN NULL END + - - 30 + - + CAST( NULL AS SIGNED ) * ( - + ( 3 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT + 67 + + 37 * - 62 - - + CASE - 74 WHEN ( + MAX ( - 42 ) ) + ( - + 68 ) + - + 62 THEN + 55 * 77 WHEN - 24 THEN NULL END + - - 30 + - + CAST ( NULL AS INTEGER ) * ( - + ( 3 ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3333
SELECT 73 * - - 75 + CAST( NULL AS SIGNED ) + - 77 / + - MAX( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT 73 * - - 75 + CAST ( NULL AS INTEGER ) + - 77 / + - MAX ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3335
SELECT DISTINCT + 59 DIV COUNT( * ) * + COUNT( + 55 ), - 35 * + COUNT( DISTINCT - + 14 ) col0
----
59
-35

skipif mysql # not compatible
query II rowsort label-3335
SELECT DISTINCT + 59 / COUNT ( * ) * + COUNT ( + 55 ), - 35 * + COUNT ( DISTINCT - + 14 ) col0
----
59
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3336
SELECT ALL - 72 AS col0, - 14 * CAST( 64 AS SIGNED ) AS col0
----
-72
-896

skipif mysql # not compatible
query II rowsort label-3336
SELECT ALL - 72 AS col0, - 14 * CAST ( 64 AS INTEGER ) AS col0
----
-72
-896

query I rowsort
SELECT ( - - 93 ) + - - 17 * 15
----
348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT CAST( - ( - - COUNT( * ) ) AS SIGNED ) * + - 7 + 87 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) * + - 7 + 87 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT MAX( + - 33 ) + 17 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3339
SELECT MAX ( + - 33 ) + 17 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT NULLIF ( + ( COUNT( - 88 ) ), + - COUNT( * ) ) * - - SUM( ALL - 28 ) * - - 34 + - ( - + CASE + COUNT( * ) WHEN + SUM( NULLIF ( - + 13, 2 ) ) - - + 16 THEN + + 21 + 73 END ) / - 47 / + ( + 21 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT NULLIF ( + ( COUNT ( - 88 ) ), + - COUNT ( * ) ) * - - SUM ( ALL - 28 ) * - - 34 + - ( - + CASE + COUNT ( * ) WHEN + SUM ( NULLIF ( - + 13, 2 ) ) - - + 16 THEN + + 21 + 73 END ) / - 47 / + ( + 21 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL + 41 * + 57 * + COUNT( * ) * + + MIN( ( + ( - 59 ) ) ) AS col2
----
-137883

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + 41 * + 57 * + COUNT ( * ) * + + MIN ( ( + ( - 59 ) ) ) AS col2
----
-137883

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT 32 DIV + 97 * 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3343
SELECT 32 / + 97 * 97 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT + 89 DIV NULLIF ( + 49, + + 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3344
SELECT + 89 / NULLIF ( + 49, + + 15 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 95 + + + 72 AS col2
----
167

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT SUM( - + 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3347
SELECT SUM ( - + 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3348
SELECT + CASE - - CAST( - - 33 AS DECIMAL ) WHEN - 13 THEN - 82 ELSE NULL END * 18 * + - AVG ( DISTINCT - CAST( + NULLIF ( - 55, CAST( NULL AS SIGNED ) + - 72 ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT + CASE - - CAST ( - - 33 AS REAL ) WHEN - 13 THEN - 82 ELSE NULL END * 18 * + - AVG ( DISTINCT - CAST ( + NULLIF ( - 55, CAST ( NULL AS INTEGER ) + - 72 ) AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3349
SELECT + CASE + + 12 WHEN AVG ( ALL + 50 ) * ( + + 23 ) * + 53 + + 93 THEN NULL WHEN + 84 / + 34 + CAST( NULL AS SIGNED ) - - CASE 35 WHEN + + COUNT( * ) + + CAST( + + 60 AS SIGNED ) * + - 3 / + - 76 THEN + - COUNT( * ) + + COALESCE ( - 13, - + 55 * COUNT( * ) * + + 23, - - 55 + 96 ) WHEN - CAST( NULL AS DECIMAL ) + 0 THEN - ( - 52 ) + 87 * NULLIF ( 51, 88 + COUNT( * ) + - ( + NULLIF ( ( 60 ), 38 ) ) / - 94 ) * - ( - 59 * + 43 + - 55 ) + 85 END THEN - 70 - 23 * + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT + CASE + + 12 WHEN AVG ( ALL + 50 ) * ( + + 23 ) * + 53 + + 93 THEN NULL WHEN + 84 / + 34 + CAST ( NULL AS INTEGER ) - - CASE 35 WHEN + + COUNT ( * ) + + CAST ( + + 60 AS INTEGER ) * + - 3 / + - 76 THEN + - COUNT ( * ) + + COALESCE ( - 13, - + 55 * COUNT ( * ) * + + 23, - - 55 + 96 ) WHEN - CAST ( NULL AS REAL ) + 0 THEN - ( - 52 ) + 87 * NULLIF ( 51, 88 + COUNT ( * ) + - ( + NULLIF ( ( 60 ), 38 ) ) / - 94 ) * - ( - 59 * + 43 + - 55 ) + 85 END THEN - 70 - 23 * + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL - CASE - 68 WHEN - 18 + - ( 53 ) THEN NULL WHEN - - 75 THEN - 10 * + 78 + - + 89 END + + 20
----
NULL

query I rowsort
SELECT ALL + 35 + + 33 col1
----
68

query II rowsort
SELECT DISTINCT 34, - 17 * + 83 AS col0
----
34
-1411

query I rowsort
SELECT DISTINCT + 66 + - 83
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3354
SELECT + ( - COUNT( DISTINCT - 40 ) ), - 3 col1
----
-1
-3

skipif mysql # not compatible
query II rowsort label-3354
SELECT + ( - COUNT ( DISTINCT - 40 ) ), - 3 col1
----
-1
-3

query II rowsort
SELECT NULLIF ( + 68, + - 21 ) col0, 74 AS col1
----
68
74

query II rowsort
SELECT - - 70 AS col1, CASE - 30 WHEN + 78 THEN NULL WHEN - - 68 THEN - 18 * + 65 * ( - 30 ) + + 93 * + - 46 ELSE NULL END
----
70
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3357
SELECT ALL 24 AS col0, COUNT( * ) + 85 col2
----
24
86

skipif mysql # not compatible
query II rowsort label-3357
SELECT ALL 24 AS col0, COUNT ( * ) + 85 col2
----
24
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - - COUNT( ALL 82 ) + + + COUNT( * ) + + 81 + - + 0 * - + 41 * - COALESCE ( + 87, - MIN( + 39 ), - - 99 )
----
83

skipif mysql # not compatible
query I rowsort label-3358
SELECT - - COUNT ( ALL 82 ) + + + COUNT ( * ) + + 81 + - + 0 * - + 41 * - COALESCE ( + 87, - MIN ( + 39 ), - - 99 )
----
83

query II rowsort
SELECT DISTINCT + 21 AS col0, + 85 col0
----
21
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL - 92 - - 89 + + 32 + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL - 92 - - 89 + + 32 + COUNT ( * )
----
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3361
SELECT - 51 * + NULLIF ( + 52, + ( + CAST( NULL AS DECIMAL ) ) - ( + - COUNT( * ) ) ) AS col1
----
-2652

skipif mysql # not compatible
query I rowsort label-3361
SELECT - 51 * + NULLIF ( + 52, + ( + CAST ( NULL AS REAL ) ) - ( + - COUNT ( * ) ) ) AS col1
----
-2652

query II rowsort
SELECT - + 53 * + 14 + + - 79, + 12 AS col0
----
-821
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3363
SELECT ALL - + 33 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - + 33 / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 6, + - 41 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3365
SELECT - - ( + - 48 ) - - MAX( CAST( NULL AS SIGNED ) ) + - - 96 * + + 63 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT - - ( + - 48 ) - - MAX ( CAST ( NULL AS INTEGER ) ) + - - 96 * + + 63 * 66 AS col1
----
NULL

query I rowsort
SELECT ALL + + 20 * + - 64 * - + ( + 4 ) AS col0
----
5120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3367
SELECT - 17 - - 54 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT - 17 - - 54 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT - 22 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3368
SELECT - 22 / - 78
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT - 9 * COUNT( * ) col0, + 75 col2
----
-9
75

skipif mysql # not compatible
query II rowsort label-3369
SELECT - 9 * COUNT ( * ) col0, + 75 col2
----
-9
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3370
SELECT ( + + CAST( CASE 48 WHEN + - COUNT( * ) THEN 5 WHEN + 15 - 84 THEN NULL END AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT ( + + CAST ( CASE 48 WHEN + - COUNT ( * ) THEN 5 WHEN + 15 - 84 THEN NULL END AS INTEGER ) ) col2
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT 8 * 38
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3374
SELECT ( COUNT( * ) ) AS col1, + 62 * 38 * - - 36 DIV COUNT( * )
----
1
84816

skipif mysql # not compatible
query II rowsort label-3374
SELECT ( COUNT ( * ) ) AS col1, + 62 * 38 * - - 36 / COUNT ( * )
----
1
84816

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT + 48 * + NULLIF ( - 55, + 12 * 15 * + - COUNT( * ) * 22 + + 65 - - ( - 30 ) + + 7 - 15 * - 53 * 20 + - 49 + 60 * + - 77 ) col0, + COUNT( * ) AS col0
----
-2640
1

skipif mysql # not compatible
query II rowsort label-3376
SELECT + 48 * + NULLIF ( - 55, + 12 * 15 * + - COUNT ( * ) * 22 + + 65 - - ( - 30 ) + + 7 - 15 * - 53 * 20 + - 49 + 60 * + - 77 ) col0, + COUNT ( * ) AS col0
----
-2640
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT + 44 * - COUNT( * ) + 30 * COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 44 * - COUNT ( * ) + 30 * COUNT ( * ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3378
SELECT + CASE - 37 WHEN - 2 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - + SUM( - CASE ( - 45 ) WHEN + 6 + 14 THEN - 13 + - + CAST( - - 93 AS DECIMAL ) ELSE NULL END ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT + CASE - 37 WHEN - 2 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - + SUM ( - CASE ( - 45 ) WHEN + 6 + 14 THEN - 13 + - + CAST ( - - 93 AS REAL ) ELSE NULL END ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL 37 * COALESCE ( + - 75, + MAX( + 2 ), - - 8 ) + + 41 AS col2
----
-2734

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL 37 * COALESCE ( + - 75, + MAX ( + 2 ), - - 8 ) + + 41 AS col2
----
-2734

query I rowsort
SELECT ALL 81 * 88 + - - 89 AS col1
----
7217

query I rowsort
SELECT ALL + ( 52 ) col0
----
52

query I rowsort
SELECT - 69 * - 24 + 63 AS col2
----
1719

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL - 99 * - SUM( + - ( + 22 ) ) + + 68 + - 3
----
-2113

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - 99 * - SUM ( + - ( + 22 ) ) + + 68 + - 3
----
-2113

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + 77 * + 59 + + 62 - - COUNT( * ) * - CASE 63 WHEN - 13 * + ( + - COUNT( * ) ) / + 23 + - + COALESCE ( + 10, 89 ) THEN NULL ELSE - 46 END
----
4651

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 77 * + 59 + + 62 - - COUNT ( * ) * - CASE 63 WHEN - 13 * + ( + - COUNT ( * ) ) / + 23 + - + COALESCE ( + 10, 89 ) THEN NULL ELSE - 46 END
----
4651

query I rowsort
SELECT + 46 * + 45 - + 75 AS col2
----
1995

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL + 63 - + + 8 + - 81 + - NULLIF ( - 54, 54 + - MIN( + 25 ) ) * - 13 AS col1
----
-728

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + 63 - + + 8 + - 81 + - NULLIF ( - 54, 54 + - MIN ( + 25 ) ) * - 13 AS col1
----
-728

query II rowsort
SELECT + + 57 * - 41 * - ( - 68 ) AS col2, + 59 AS col2
----
-158916
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT DISTINCT + 18 * 23 * CASE - 28 WHEN - + 98 THEN + 10 ELSE - 37 END * - 35 - 91 + + CAST( + 56 AS SIGNED ) + + 27 AS col1
----
536122

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + 18 * 23 * CASE - 28 WHEN - + 98 THEN + 10 ELSE - 37 END * - 35 - 91 + + CAST ( + 56 AS INTEGER ) + + 27 AS col1
----
536122

query I rowsort
SELECT + 93 * + - 31 AS col0
----
-2883

query I rowsort
SELECT - + 87 col1
----
-87

query I rowsort
SELECT + - 80 + 80 * + 68 AS col0
----
5360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT + 26 + + COUNT( * ) * 90 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-3396
SELECT + 26 + + COUNT ( * ) * 90 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - 32 - - 8 - - + COUNT( * ) * 5
----
-19

skipif mysql # not compatible
query I rowsort label-3397
SELECT - 32 - - 8 - - + COUNT ( * ) * 5
----
-19

query II rowsort
SELECT 97 AS col0, + 77
----
97
77

query I rowsort
SELECT ALL - 87 * - - 86
----
-7482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3400
SELECT DISTINCT - 69 * - CAST( NULL AS SIGNED ) * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT - 69 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT ALL 21 DIV + 41 + 13 * - - 8 - + 79 - - 79 * - + ( - COUNT( * ) ) + - 22
----
82

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL 21 / + 41 + 13 * - - 8 - + 79 - - 79 * - + ( - COUNT ( * ) ) + - 22
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + ( COUNT( * ) ) * + 41 * - 30 + + ( - 11 )
----
-1241

skipif mysql # not compatible
query I rowsort label-3402
SELECT + ( COUNT ( * ) ) * + 41 * - 30 + + ( - 11 )
----
-1241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT ALL + CAST( NULL AS SIGNED ) + + + 99 * + 20 / 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 99 * + 20 / 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT COUNT( * ) DIV 89 + 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-3404
SELECT COUNT ( * ) / 89 + 73 AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3405
SELECT COALESCE ( + MIN( DISTINCT 91 ), + - CAST( NULL AS SIGNED ), + 28 ) * - 90 * COUNT( * ) + + 9 + + + ( + + 72 )
----
-8109

skipif mysql # not compatible
query I rowsort label-3405
SELECT COALESCE ( + MIN ( DISTINCT 91 ), + - CAST ( NULL AS INTEGER ), + 28 ) * - 90 * COUNT ( * ) + + 9 + + + ( + + 72 )
----
-8109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3406
SELECT 87 + + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT 87 + + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 97 + ( + + 43 ) AS col2
----
-54

query II rowsort
SELECT ALL - 79 + - + COALESCE ( - - 88, + 66, - 82 ), - 61 * - 7 * + - 57 - + 14 AS col1
----
-167
-24353

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

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

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

query I rowsort
SELECT 96 * - 35
----
-3360

query I rowsort
SELECT ALL - ( - 19 ) + - - 92 AS col1
----
111

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

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

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

query I rowsort
SELECT 10 - 77 * + + 19
----
-1453

query I rowsort
SELECT + 44 * 45 col1
----
1980

query I rowsort
SELECT DISTINCT - - 91 * - + CASE + 79 WHEN - 92 + 73 * 17 THEN + + 15 ELSE + 97 END
----
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL COUNT( * ) - 19 * - + 60 * COUNT( * )
----
1141

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL COUNT ( * ) - 19 * - + 60 * COUNT ( * )
----
1141

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT - 10 * + 98 - - 78 DIV + - 47
----
-981

skipif mysql # not compatible
query I rowsort label-3419
SELECT - 10 * + 98 - - 78 / + - 47
----
-981

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL - + ( + 19 ) * - MAX( DISTINCT 20 )
----
380

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - + ( + 19 ) * - MAX ( DISTINCT 20 )
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT 79 - + + COUNT( ALL - 18 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3421
SELECT 79 - + + COUNT ( ALL - 18 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT 10 + SUM( - - 15 )
----
25

skipif mysql # not compatible
query I rowsort label-3422
SELECT 10 + SUM ( - - 15 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT + 77 DIV + 33 + - + ( 4 )
----
-2

skipif mysql # not compatible
query I rowsort label-3423
SELECT + 77 / + 33 + - + ( 4 )
----
-2

query I rowsort
SELECT 59 * + - 16 + - 10 AS col0
----
-954

query I rowsort
SELECT + 60 * 66 AS col1
----
3960

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3427
SELECT 35 * - ( - ( - 51 ) ) + + 75, - 38 - - - CAST( - + 90 AS SIGNED ) AS col1
----
-1710
52

skipif mysql # not compatible
query II rowsort label-3427
SELECT 35 * - ( - ( - 51 ) ) + + 75, - 38 - - - CAST ( - + 90 AS INTEGER ) AS col1
----
-1710
52

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

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

query I rowsort
SELECT - COALESCE ( ( + - 33 ), 9 ) * - ( COALESCE ( NULLIF ( + 1, - NULLIF ( - - CASE - 4 WHEN - 87 THEN 40 + - 70 / - 1 + 65 * - 69 ELSE NULL END, + 35 ) ), - 79 ) ) AS col2
----
-33

query II rowsort
SELECT ALL 78, - 71 + + 44 col1
----
78
-27

query I rowsort
SELECT DISTINCT 44 + + 41
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT SUM( + 99 ) * + + 29
----
2871

skipif mysql # not compatible
query I rowsort label-3432
SELECT SUM ( + 99 ) * + + 29
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ( - NULLIF ( + + 3, + + 51 * - 52 - - 12 ) ) - 38 * 84 + - COUNT( * ) AS col1
----
-3196

skipif mysql # not compatible
query I rowsort label-3433
SELECT ( - NULLIF ( + + 3, + + 51 * - 52 - - 12 ) ) - 38 * 84 + - COUNT ( * ) AS col1
----
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT ALL 31 + + 72 DIV + 41 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL 31 + + 72 / + 41 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT MAX( + + 92 ) - + 35 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3435
SELECT MAX ( + + 92 ) - + 35 AS col1
----
57

query I rowsort
SELECT 87 * + ( - 28 ) AS col1
----
-2436

query I rowsort
SELECT DISTINCT + 38 * + + 39 * 91 AS col0
----
134862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3438
SELECT ALL 65 - - SUM( ALL - - 54 ) - - 8 + - 85 * - 80 * 17 * ( ( + - CAST( 62 AS SIGNED ) ) ), - 56 AS col2
----
-7167073
-56

skipif mysql # not compatible
query II rowsort label-3438
SELECT ALL 65 - - SUM ( ALL - - 54 ) - - 8 + - 85 * - 80 * 17 * ( ( + - CAST ( 62 AS INTEGER ) ) ), - 56 AS col2
----
-7167073
-56

query I rowsort
SELECT ALL - 45 * - + 0
----
0

query II rowsort
SELECT ALL - COALESCE ( + 82, - 12, + 70 ), 4 * 52 * 35 AS col0
----
-82
7280

query I rowsort
SELECT 25 + 49
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3442
SELECT DISTINCT - MIN( + 29 ) AS col2, - 89 + - - 5 col2, - 18 DIV - CAST( + 63 AS SIGNED ) + 68 AS col2
----
-29
-84
68

skipif mysql # not compatible
query III rowsort label-3442
SELECT DISTINCT - MIN ( + 29 ) AS col2, - 89 + - - 5 col2, - 18 / - CAST ( + 63 AS INTEGER ) + 68 AS col2
----
-29
-84
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3443
SELECT ALL + CASE WHEN NOT COUNT( * ) IS NOT NULL THEN 81 - + 21 ELSE + + 28 + - 86 END * 38 DIV CAST( COUNT( * ) AS SIGNED )
----
-2204

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN 81 - + 21 ELSE + + 28 + - 86 END * 38 / CAST ( COUNT ( * ) AS INTEGER )
----
-2204

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT ALL - - 69 AS col0, NULLIF ( 3, 17 + + NULLIF ( - COUNT( * ), + - 90 * 10 + + 36 ) ) AS col0
----
69
3

skipif mysql # not compatible
query II rowsort label-3444
SELECT ALL - - 69 AS col0, NULLIF ( 3, 17 + + NULLIF ( - COUNT ( * ), + - 90 * 10 + + 36 ) ) AS col0
----
69
3

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

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

query II rowsort
SELECT 94 + - CASE 82 WHEN - + 66 * + - 79 THEN - 73 - 76 / - + 71 + - 50 END, ( + 17 ) AS col0
----
NULL
17

onlyif mysql # DIV for integer division: 
query II rowsort label-3447
SELECT ALL - + 91 AS col2, - 71 DIV 55
----
-91
-1

skipif mysql # not compatible
query II rowsort label-3447
SELECT ALL - + 91 AS col2, - 71 / 55
----
-91
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT + 35 + - 79 * + COUNT( * ) * NULLIF ( - 70, 37 ) AS col0
----
5565

skipif mysql # not compatible
query I rowsort label-3449
SELECT + 35 + - 79 * + COUNT ( * ) * NULLIF ( - 70, 37 ) AS col0
----
5565

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

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

query I rowsort
SELECT ALL + - 14 * + 21 AS col0
----
-294

query I rowsort
SELECT - 84 + 81
----
-3

query II rowsort
SELECT - 27 AS col1, + 64 - + 85
----
-27
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-3454
SELECT - 2 * - 16 + 9 * 14 * 77 + + 95 * - ( ( + 20 ) ) AS col0, 0 DIV + ( + 1 ) * + 41 col0
----
7834
0

skipif mysql # not compatible
query II rowsort label-3454
SELECT - 2 * - 16 + 9 * 14 * 77 + + 95 * - ( ( + 20 ) ) AS col0, 0 / + ( + 1 ) * + 41 col0
----
7834
0

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT ALL 91 + + ( CAST( - + 84 AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL 91 + + ( CAST ( - + 84 AS INTEGER ) )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3459
SELECT 52 + 94 DIV 31
----
55

skipif mysql # not compatible
query I rowsort label-3459
SELECT 52 + 94 / 31
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT DISTINCT - 41 + - MIN( 37 ) AS col1, 24 * 95 * - 68 AS col2
----
-78
-155040

skipif mysql # not compatible
query II rowsort label-3460
SELECT DISTINCT - 41 + - MIN ( 37 ) AS col1, 24 * 95 * - 68 AS col2
----
-78
-155040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3461
SELECT + CASE + 91 WHEN + 34 * - + 86 - NULLIF ( + 88, + 26 + - 16 ) THEN NULL WHEN - + 76 THEN ( + MAX( - 25 ) ) * + COUNT( * ) + + 50 ELSE + - 82 END + + COALESCE ( + 2, + 53 + - 94 DIV - + 17 * - - 44 ) * 34 - + + COUNT( * ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-3461
SELECT + CASE + 91 WHEN + 34 * - + 86 - NULLIF ( + 88, + 26 + - 16 ) THEN NULL WHEN - + 76 THEN ( + MAX ( - 25 ) ) * + COUNT ( * ) + + 50 ELSE + - 82 END + + COALESCE ( + 2, + 53 + - 94 / - + 17 * - - 44 ) * 34 - + + COUNT ( * ) col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL NULLIF ( 36, - COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL NULLIF ( 36, - COUNT ( * ) )
----
36

query II rowsort
SELECT - 61 + 43, - 18 AS col2
----
-18
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3464
SELECT - NULLIF ( + 10, 83 ) + + 86 * - 62 * - + 97 * - 89 AS col0, COUNT( * ) AS col1
----
-46031166
1

skipif mysql # not compatible
query II rowsort label-3464
SELECT - NULLIF ( + 10, 83 ) + + 86 * - 62 * - + 97 * - 89 AS col0, COUNT ( * ) AS col1
----
-46031166
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3465
SELECT + CAST( NULL AS SIGNED ) - - 94 + + CAST( NULL AS SIGNED ) * + - COALESCE ( - - 91, - + 91 + + + 27 / + + 23, + + 7 ) / - NULLIF ( SUM( + 89 ), - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT + CAST ( NULL AS INTEGER ) - - 94 + + CAST ( NULL AS INTEGER ) * + - COALESCE ( - - 91, - + 91 + + + 27 / + + 23, + + 7 ) / - NULLIF ( SUM ( + 89 ), - 87 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3466
SELECT - COALESCE ( - - 57, COUNT( * ), + 95 + - COUNT( * ), - - 15 * - ( NULLIF ( 49, + - COALESCE ( + 36, + 12, - - 21 - + - 75, 97 ) * + - NULLIF ( 7, + + 61 + - 69 * + 93 ) ) ) DIV - ( + 12 ) * + 36 DIV + COUNT( * ) + ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3466
SELECT - COALESCE ( - - 57, COUNT ( * ), + 95 + - COUNT ( * ), - - 15 * - ( NULLIF ( 49, + - COALESCE ( + 36, + 12, - - 21 - + - 75, 97 ) * + - NULLIF ( 7, + + 61 + - 69 * + 93 ) ) ) / - ( + 12 ) * + 36 / + COUNT ( * ) + ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-57

query I rowsort
SELECT + 13 + - 6
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL 25 + - - COUNT( * ) * MIN( + 12 ) + 63
----
100

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL 25 + - - COUNT ( * ) * MIN ( + 12 ) + 63
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT ALL NULLIF ( - COUNT( 11 ), + 16 * 3 + 74 - 17 ), COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-3469
SELECT ALL NULLIF ( - COUNT ( 11 ), + 16 * 3 + 74 - 17 ), COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT + 7 + + NULLIF ( - + 85, + - 87 * - - 42 / + 5 ) * + 56 AS col0
----
-4753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT + 53 * - 19 / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT + 53 * - 19 / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT CASE 84 WHEN + + 51 + - 37 + - COUNT( * ) THEN 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT CASE 84 WHEN + + 51 + - 37 + - COUNT ( * ) THEN 56 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3473
SELECT CASE ( - - 78 ) WHEN - + ( + SUM( DISTINCT + 37 ) ) / 79 / 82 THEN - CAST( NULL AS SIGNED ) + - 47 WHEN + 31 * + - 25 THEN + 58 + + + COUNT( * ) WHEN + 33 + - COALESCE ( + 3, + 46 + + 88 ) THEN NULL ELSE - ( - 93 ) END
----
93

skipif mysql # not compatible
query I rowsort label-3473
SELECT CASE ( - - 78 ) WHEN - + ( + SUM ( DISTINCT + 37 ) ) / 79 / 82 THEN - CAST ( NULL AS INTEGER ) + - 47 WHEN + 31 * + - 25 THEN + 58 + + + COUNT ( * ) WHEN + 33 + - COALESCE ( + 3, + 46 + + 88 ) THEN NULL ELSE - ( - 93 ) END
----
93

query I rowsort
SELECT - 29 + 20 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3475
SELECT DISTINCT + CAST( - 61 AS SIGNED ) AS col1, - 38 * + 65 * + 15 AS col1
----
-61
-37050

skipif mysql # not compatible
query II rowsort label-3475
SELECT DISTINCT + CAST ( - 61 AS INTEGER ) AS col1, - 38 * + 65 * + 15 AS col1
----
-61
-37050

query I rowsort
SELECT ALL + + 91 * + 22 * + + 70 + + + 65
----
140205

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT DISTINCT + 31 * - COUNT( + 53 ) + 87
----
56

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT + 31 * - COUNT ( + 53 ) + 87
----
56

query I rowsort
SELECT - - 20 * 65
----
1300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3480
SELECT ALL - 0 * 1 DIV - MIN( - ( - + 23 ) ) * 94 + COUNT( * ) + + 66 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - 0 * 1 / - MIN ( - ( - + 23 ) ) * 94 + COUNT ( * ) + + 66 AS col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3481
SELECT + MAX( - 55 ) - - 3 AS col1, 87 + COALESCE ( + - 75, 59 + + COUNT( + - 45 ) + + 70 + 53 ) + - ( - - 72 ) AS col2
----
-52
-60

skipif mysql # not compatible
query II rowsort label-3481
SELECT + MAX ( - 55 ) - - 3 AS col1, 87 + COALESCE ( + - 75, 59 + + COUNT ( + - 45 ) + + 70 + 53 ) + - ( - - 72 ) AS col2
----
-52
-60

query I rowsort
SELECT + - ( - 28 ) * - - 69 AS col0
----
1932

onlyif mysql # DIV for integer division: 
query I rowsort label-3483
SELECT DISTINCT - - 70 * + - 19 + + - 20 DIV + + 40
----
-1330

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT - - 70 * + - 19 + + - 20 / + + 40
----
-1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT ALL - COALESCE ( 21, - 75 ) * + COUNT( * ) + 0 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - COALESCE ( 21, - 75 ) * + COUNT ( * ) + 0 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3486
SELECT - 31 + 94 + + - 15 * - COUNT( * ) DIV + ( + 33 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3486
SELECT - 31 + 94 + + - 15 * - COUNT ( * ) / + ( + 33 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3487
SELECT - NULLIF ( 68, 90 + + CAST( NULL AS SIGNED ) + - 12 * - 64 ) - + - 61 + - 3 DIV - 74 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3487
SELECT - NULLIF ( 68, 90 + + CAST ( NULL AS INTEGER ) + - 12 * - 64 ) - + - 61 + - 3 / - 74 AS col1
----
-7

query I rowsort
SELECT ALL + 83 + 3 AS col2
----
86

query I rowsort
SELECT DISTINCT + 65 + - + 74 AS col1
----
-9

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

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

query II rowsort
SELECT 21 AS col0, - 72
----
21
-72

query I rowsort
SELECT ALL + 83 + 97 * + 12 AS col1
----
1247

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3493
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 75 * - 94
----
NULL
7050

skipif mysql # not compatible
query II rowsort label-3493
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 75 * - 94
----
NULL
7050

query I rowsort
SELECT DISTINCT + 38 * + 55
----
2090

query I rowsort
SELECT DISTINCT + 65 - + 19
----
46

query II rowsort
SELECT ALL 0 AS col2, 41
----
0
41

query I rowsort
SELECT ALL - 47 - - 85 AS col1
----
38

query II rowsort
SELECT - 55 AS col0, 1
----
-55
1

query I rowsort
SELECT - 30 * - 17
----
510

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT + 53 DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT + 53 / 72 AS col1
----
0

query I rowsort
SELECT - ( ( + + 57 ) ) + - 99 * - - 86
----
-8571

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT + 88 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 88 / + 92
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( 91, 61 )
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3504
SELECT + + NULLIF ( + 0, + ( + 11 ) * 16 ) DIV + 50 col1, CASE 58 WHEN - 44 THEN 97 WHEN - 38 THEN NULL ELSE - + ( + 6 ) END AS col1
----
0
-6

skipif mysql # not compatible
query II rowsort label-3504
SELECT + + NULLIF ( + 0, + ( + 11 ) * 16 ) / + 50 col1, CASE 58 WHEN - 44 THEN 97 WHEN - 38 THEN NULL ELSE - + ( + 6 ) END AS col1
----
0
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - NULLIF ( - + 33, 0 ) * - 95 - + 18 - + - COUNT( * ) * - + 76 + - 48 + COUNT( * ) AS col0
----
-3276

skipif mysql # not compatible
query I rowsort label-3506
SELECT - NULLIF ( - + 33, 0 ) * - 95 - + 18 - + - COUNT ( * ) * - + 76 + - 48 + COUNT ( * ) AS col0
----
-3276

query II rowsort
SELECT ALL + + 7, 28 AS col2
----
7
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT + CAST( NULL AS SIGNED ) / + 20 * - NULLIF ( 58, + 51 ) - + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT + CAST ( NULL AS INTEGER ) / + 20 * - NULLIF ( 58, + 51 ) - + 56 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3509
SELECT ALL + 35 * - + CAST( NULL AS SIGNED ) * - NULLIF ( - + 37, + - 1 + - + 58 ) * + - 79 * ( + SUM( ALL + - ( + 39 ) ) ) + + ( ( + CAST( + 45 AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + 35 * - + CAST ( NULL AS INTEGER ) * - NULLIF ( - + 37, + - 1 + - + 58 ) * + - 79 * ( + SUM ( ALL + - ( + 39 ) ) ) + + ( ( + CAST ( + 45 AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT + 90 - - 68 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT NULLIF ( + COUNT( * ), + 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3511
SELECT NULLIF ( + COUNT ( * ), + 30 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT + - ( 69 ) * - + COUNT( * ) * 59 + + CAST( + 97 AS SIGNED ) AS col2
----
4168

skipif mysql # not compatible
query I rowsort label-3512
SELECT + - ( 69 ) * - + COUNT ( * ) * 59 + + CAST ( + 97 AS INTEGER ) AS col2
----
4168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT DISTINCT + - 12 DIV + 78 + + - COALESCE ( - 54, - 43 + - SUM( - 90 ), - 97 )
----
54

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT + - 12 / + 78 + + - COALESCE ( - 54, - 43 + - SUM ( - 90 ), - 97 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3514
SELECT ALL - - COUNT( * ) DIV 32 DIV 2 + 14 + + + COUNT( ALL + 39 ) + - 11 col0
----
4

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - - COUNT ( * ) / 32 / 2 + 14 + + + COUNT ( ALL + 39 ) + - 11 col0
----
4

query I rowsort
SELECT + 51 * - - 24 + 98 * - 97 + + 20 + 60 + - + 59
----
-8261

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT COUNT( - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-3516
SELECT COUNT ( - 56 )
----
1

query I rowsort
SELECT + - 63 + - 88 * - 17 * - + 89
----
-133207

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3519
SELECT + + 47 DIV - COUNT( * ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-3519
SELECT + + 47 / - COUNT ( * ) col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT ALL + NULLIF ( 24, 26 + - - 21 - - + 31 * + 23 ) * COUNT( * ) * + 74 + - COUNT( * ) - COUNT( * ) * - - COUNT( * ) col0, 38 + - 3
----
1774
35

skipif mysql # not compatible
query II rowsort label-3520
SELECT ALL + NULLIF ( 24, 26 + - - 21 - - + 31 * + 23 ) * COUNT ( * ) * + 74 + - COUNT ( * ) - COUNT ( * ) * - - COUNT ( * ) col0, 38 + - 3
----
1774
35

query I rowsort
SELECT ALL + 28 + + 63 * 17 AS col0
----
1099

query I rowsort
SELECT + - 95 * - 54 - 0 + - + 40
----
5090

query II rowsort
SELECT ALL - 23 AS col1, 99 * - 32 + + 22
----
-23
-3146

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT COUNT( * ) * - 25 + ( + 27 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3524
SELECT COUNT ( * ) * - 25 + ( + 27 ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3525
SELECT + COALESCE ( + COUNT( * ), + 70 * - NULLIF ( - + COUNT( - + NULLIF ( 15, - - 5 * 73 ) ), - 97 ) * + + 14 DIV - 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3525
SELECT + COALESCE ( + COUNT ( * ), + 70 * - NULLIF ( - + COUNT ( - + NULLIF ( 15, - - 5 * 73 ) ), - 97 ) * + + 14 / - 66 ) AS col2
----
1

query I rowsort
SELECT ( + 82 ) + 59 * - 57
----
-3281

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT 55 DIV + + NULLIF ( ( + 22 ), + 77 )
----
2

skipif mysql # not compatible
query I rowsort label-3527
SELECT 55 / + + NULLIF ( ( + 22 ), + 77 )
----
2

query I rowsort
SELECT 90 * + 77
----
6930

query I rowsort
SELECT 88 * - 56 * 68 + - 43
----
-335147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3530
SELECT ALL 78 - - 41 * 33 DIV CAST( + 83 AS SIGNED ) * + 75 - - 30 - + 57
----
1251

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL 78 - - 41 * 33 / CAST ( + 83 AS INTEGER ) * + 75 - - 30 - + 57
----
1251

query I rowsort
SELECT DISTINCT 13 * - 66 * + 78 AS col0
----
-66924

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT 86 + - + 23 * - ( + ( + CASE WHEN NOT + 62 IS NULL THEN + CASE - - 39 WHEN - MAX( DISTINCT - - 76 ) THEN - CASE + 36 WHEN - CASE - MAX( - 26 ) WHEN 47 THEN + 27 END THEN NULL ELSE COUNT( * ) END / - COUNT( * ) ELSE NULL END / - 61 ELSE 76 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT 86 + - + 23 * - ( + ( + CASE WHEN NOT + 62 IS NULL THEN + CASE - - 39 WHEN - MAX ( DISTINCT - - 76 ) THEN - CASE + 36 WHEN - CASE - MAX ( - 26 ) WHEN 47 THEN + 27 END THEN NULL ELSE COUNT ( * ) END / - COUNT ( * ) ELSE NULL END / - 61 ELSE 76 END ) ) AS col1
----
NULL

query I rowsort
SELECT 96 + 71 * + NULLIF ( + - 4, - 25 )
----
-188

query I rowsort
SELECT 86 + - - 77
----
163

query I rowsort
SELECT 21 - - ( 34 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT DISTINCT - 16 * + COUNT( * ) AS col2, + MIN( + 68 )
----
-16
68

skipif mysql # not compatible
query II rowsort label-3536
SELECT DISTINCT - 16 * + COUNT ( * ) AS col2, + MIN ( + 68 )
----
-16
68

query I rowsort
SELECT 95 + + - 29
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT DISTINCT - 35 DIV - - ( 41 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT - 35 / - - ( 41 ) AS col0
----
0

query II rowsort
SELECT 5 * + 9, 75 * 88 AS col0
----
45
6600

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT DISTINCT - 17 * - CASE - 24 WHEN - - 93 THEN NULL ELSE - 83 DIV 25 END
----
-51

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT - 17 * - CASE - 24 WHEN - - 93 THEN NULL ELSE - 83 / 25 END
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT - 61 + + COUNT( * ), 34 - - - COUNT( * ) AS col2
----
-60
33

skipif mysql # not compatible
query II rowsort label-3541
SELECT - 61 + + COUNT ( * ), 34 - - - COUNT ( * ) AS col2
----
-60
33

query I rowsort
SELECT ALL - 64 * 34 * 30 AS col1
----
-65280

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT - COUNT( * ) * - 19 * + + MAX( DISTINCT - + 35 ) AS col1
----
-665

skipif mysql # not compatible
query I rowsort label-3543
SELECT - COUNT ( * ) * - 19 * + + MAX ( DISTINCT - + 35 ) AS col1
----
-665

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

skipif mysql # not compatible
query I rowsort label-3544
SELECT - COUNT ( * ) / + - 26 + - 68 AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3545
SELECT + ( ( - + 38 ) ) DIV - + 3 * + NULLIF ( + 1, - - 20 * 49 * + 85 + ( - + 41 ) * - 70 DIV 24 * CAST( NULL AS SIGNED ) ) + + 90 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-3545
SELECT + ( ( - + 38 ) ) / - + 3 * + NULLIF ( + 1, - - 20 * 49 * + 85 + ( - + 41 ) * - 70 / 24 * CAST ( NULL AS INTEGER ) ) + + 90 AS col2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT CAST( - 62 AS SIGNED ) * 99 AS col1
----
-6138

skipif mysql # not compatible
query I rowsort label-3546
SELECT CAST ( - 62 AS INTEGER ) * 99 AS col1
----
-6138

query II rowsort
SELECT + 11 + - + 10 AS col0, 77 AS col2
----
1
77

query I rowsort
SELECT DISTINCT - 70 + 79 col1
----
9

query I rowsort
SELECT ALL + + 28 + 80 * + ( - - 29 ) * + CASE - + 28 WHEN - 12 THEN + + 49 - - + ( 91 ) WHEN - 77 + - 26 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 77 * - 65 AS col1
----
5005

query I rowsort
SELECT 79 + - ( - 35 ) - + 39
----
75

query I rowsort
SELECT + 27 * - + 26 + 4 * + - 24 + - 75 * + 17 * - 76
----
96102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3553
SELECT COUNT( DISTINCT 77 ) - - CAST( COUNT( * ) AS SIGNED ) * + 86 AS col1, 80
----
87
80

skipif mysql # not compatible
query II rowsort label-3553
SELECT COUNT ( DISTINCT 77 ) - - CAST ( COUNT ( * ) AS INTEGER ) * + 86 AS col1, 80
----
87
80

query II rowsort
SELECT 90 AS col0, - 39 AS col1
----
90
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT 71 * + 70 * + COUNT( * ) * ( - 91 ) * - ( + - 9 )
----
-4070430

skipif mysql # not compatible
query I rowsort label-3556
SELECT 71 * + 70 * + COUNT ( * ) * ( - 91 ) * - ( + - 9 )
----
-4070430

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT ALL 2 DIV 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL 2 / 58 AS col0
----
0

query I rowsort
SELECT + 63 * 46 + - NULLIF ( + 14, - 58 ) AS col1
----
2884

query I rowsort
SELECT 61 * + + ( + 24 ) col0
----
1464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT ALL 66 DIV - COUNT( * ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL 66 / - COUNT ( * ) col1
----
-66

query I rowsort
SELECT 21 + 48 AS col1
----
69

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

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL 65 * COUNT ( + + 97 ) * 80 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3563
SELECT ALL + ( + CASE + + 65 WHEN 77 THEN NULL WHEN CAST( + 75 AS DECIMAL ) THEN + 5 WHEN - 30 THEN NULL END ) + - CASE 84 WHEN - 38 - - COUNT( * ) - + - 86 THEN - 52 WHEN + - 19 + + 85 THEN NULL END + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + ( + CASE + + 65 WHEN 77 THEN NULL WHEN CAST ( + 75 AS REAL ) THEN + 5 WHEN - 30 THEN NULL END ) + - CASE 84 WHEN - 38 - - COUNT ( * ) - + - 86 THEN - 52 WHEN + - 19 + + 85 THEN NULL END + + 14
----
NULL

query I rowsort
SELECT ALL 59 * + 59
----
3481

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT - SUM( - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3565
SELECT - SUM ( - 21 ) AS col1
----
21

query I rowsort
SELECT ( + 67 ) * - + 68 * + - 58 AS col1
----
264248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT + 12 - + CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT + 12 - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL + COUNT( * ) * - COUNT( * ) * + 82 + 53
----
-29

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + 82 + 53
----
-29

query I rowsort
SELECT DISTINCT - 25 * - - 97
----
-2425

query I rowsort
SELECT DISTINCT - 65 * + 99 + + 62 AS col1
----
-6373

query I rowsort
SELECT - + 70 * + + 47 AS col0
----
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3572
SELECT - + NULLIF ( + CASE + 95 WHEN - CAST( - - ( COALESCE ( + 64, + + CAST( - NULLIF ( - + 58, - - 32 + - - COUNT( * ) * + 69 ) AS SIGNED ) / + + MAX( - 26 ) + - COUNT( * ) + + + SUM( + - 65 ) + - COUNT( * ), + 36 ) ) AS DECIMAL ) * + COUNT( * ) * - COUNT( * ) THEN NULL ELSE - - CASE - - 47 WHEN 72 THEN + 89 END END, + COUNT( * ) ) + + AVG ( DISTINCT - 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT - + NULLIF ( + CASE + 95 WHEN - CAST ( - - ( COALESCE ( + 64, + + CAST ( - NULLIF ( - + 58, - - 32 + - - COUNT ( * ) * + 69 ) AS INTEGER ) / + + MAX ( - 26 ) + - COUNT ( * ) + + + SUM ( + - 65 ) + - COUNT ( * ), + 36 ) ) AS REAL ) * + COUNT ( * ) * - COUNT ( * ) THEN NULL ELSE - - CASE - - 47 WHEN 72 THEN + 89 END END, + COUNT ( * ) ) + + AVG ( DISTINCT - 31 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3573
SELECT ALL 0 * - ( + 77 ) - 12 + - COUNT( * ) DIV 19 * - COUNT( * ) + - - 87 * - - 6
----
510

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL 0 * - ( + 77 ) - 12 + - COUNT ( * ) / 19 * - COUNT ( * ) + - - 87 * - - 6
----
510

query I rowsort
SELECT - 55 + - + ( + 53 ) col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT 40 * ( - - COUNT( * ) ) - - - COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3575
SELECT 40 * ( - - COUNT ( * ) ) - - - COUNT ( * ) AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT ALL + 24 DIV - + 30 * 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL + 24 / - + 30 * 85 AS col1
----
0

query I rowsort
SELECT ALL 61 * - 43
----
-2623

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT - 67 * + 22 DIV - 2 AS col2
----
737

skipif mysql # not compatible
query I rowsort label-3578
SELECT - 67 * + 22 / - 2 AS col2
----
737

query I rowsort
SELECT DISTINCT + 6 * 79 col2
----
474

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

skipif mysql # not compatible
query I rowsort label-3580
SELECT + COUNT ( ALL + 84 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3581
SELECT DISTINCT + CAST( NULL AS DECIMAL ), - 38 * COUNT( - - 53 ) AS col2
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-3581
SELECT DISTINCT + CAST ( NULL AS REAL ), - 38 * COUNT ( - - 53 ) AS col2
----
NULL
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - 31 * + SUM( + 40 )
----
-1240

skipif mysql # not compatible
query I rowsort label-3583
SELECT - 31 * + SUM ( + 40 )
----
-1240

query I rowsort
SELECT + 37 * - ( 18 )
----
-666

query I rowsort
SELECT DISTINCT 60 * + 90
----
5400

query I rowsort
SELECT ALL + 34 * - 13 * + 69
----
-30498

query I rowsort
SELECT + 40 * + + 35 + + 97 AS col2
----
1497

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3588
SELECT + 95 + - CAST( - 42 AS SIGNED ) DIV - 35
----
94

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 95 + - CAST ( - 42 AS INTEGER ) / - 35
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT - CASE COUNT( * ) WHEN + 43 THEN + COALESCE ( ( + ( CAST( NULL AS SIGNED ) ) ), + 66 ) * + - 27 + + ( - 91 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT - CASE COUNT ( * ) WHEN + 43 THEN + COALESCE ( ( + ( CAST ( NULL AS INTEGER ) ) ), + 66 ) * + - 27 + + ( - 91 ) END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT 18 + COUNT ( * ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL COUNT( 61 ) + - - 10 + + COUNT( * ) * - 41 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL COUNT ( 61 ) + - - 10 + + COUNT ( * ) * - 41 AS col1
----
-30

query I rowsort
SELECT ALL 53 + + 95
----
148

query I rowsort
SELECT + 59 + 43 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT + 57 + MIN( + + 80 )
----
137

skipif mysql # not compatible
query I rowsort label-3594
SELECT + 57 + MIN ( + + 80 )
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + MAX( 15 ) + + COUNT( * ) + - 92 + + 88 * + NULLIF ( 47, + - ( + 21 ) + + 39 ) + - + 88 - 99
----
3873

skipif mysql # not compatible
query I rowsort label-3595
SELECT + MAX ( 15 ) + + COUNT ( * ) + - 92 + + 88 * + NULLIF ( 47, + - ( + 21 ) + + 39 ) + - + 88 - 99
----
3873

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT + 66 - + - 24 + + 93 + + - COUNT( * ) AS col2
----
182

skipif mysql # not compatible
query I rowsort label-3596
SELECT + 66 - + - 24 + + 93 + + - COUNT ( * ) AS col2
----
182

query I rowsort
SELECT DISTINCT + 14 * 97 * 48
----
65184

query I rowsort
SELECT + 9 + 31
----
40

query I rowsort
SELECT - 79 + + + 88 + 92 AS col0
----
101

query I rowsort
SELECT ALL 84 * + + 14 * + 91 * 77 AS col2
----
8240232

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT - - 62, 1 * - + MIN( ALL 93 ) AS col1
----
62
-93

skipif mysql # not compatible
query II rowsort label-3601
SELECT - - 62, 1 * - + MIN ( ALL 93 ) AS col1
----
62
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT - 54 * 32 + MAX( CAST( 86 AS SIGNED ) ) AS col1
----
-1642

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - 54 * 32 + MAX ( CAST ( 86 AS INTEGER ) ) AS col1
----
-1642

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL - 96 * + - CASE + 32 WHEN + COUNT( * ) THEN + 79 END - - 0 + ( - 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - 96 * + - CASE + 32 WHEN + COUNT ( * ) THEN + 79 END - - 0 + ( - 54 ) AS col0
----
NULL

query I rowsort
SELECT + - 85 + - 5
----
-90

query II rowsort
SELECT ALL 29 - + 97 AS col2, 48 AS col2
----
-68
48

query II rowsort
SELECT - + 73 AS col0, - 4 AS col1
----
-73
-4

query I rowsort
SELECT + 12 * 98 * - 84
----
-98784

query II rowsort
SELECT 87 AS col1, + ( + 31 ) AS col1
----
87
31

query III rowsort
SELECT + 25, + 33 col0, + 86 col2
----
25
33
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3610
SELECT + - 11, - COUNT( * ) + - + 82 + + 44 DIV + - 47 + + - 33 * - - 59 AS col1
----
-11
-2030

skipif mysql # not compatible
query II rowsort label-3610
SELECT + - 11, - COUNT ( * ) + - + 82 + + 44 / + - 47 + + - 33 * - - 59 AS col1
----
-11
-2030

query I rowsort
SELECT ALL - NULLIF ( ( 85 ), + 91 ) / + CASE - 75 WHEN 86 THEN - - 27 WHEN + 59 THEN NULL END / - 51 + + 55 - 32 col0
----
NULL

query I rowsort
SELECT + + 58 * - 47 AS col0
----
-2726

query II rowsort
SELECT + - 57 AS col2, - 14 + - 42 * + + 30 AS col1
----
-57
-1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3614
SELECT ALL CAST( - + 70 AS SIGNED ) DIV - - 86 + - COUNT( * ) - + 95
----
-96

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL CAST ( - + 70 AS INTEGER ) / - - 86 + - COUNT ( * ) - + 95
----
-96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3616
SELECT - ( - 23 ) DIV 23 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3616
SELECT - ( - 23 ) / 23 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT + 20 * + 40 * - 15 * + + ( SUM( ALL - - 36 ) ) AS col0
----
-432000

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT + 20 * + 40 * - 15 * + + ( SUM ( ALL - - 36 ) ) AS col0
----
-432000

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT - 37 DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT - 37 / 96 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL + CASE - 26 WHEN + 36 THEN + 83 * - COUNT( * ) + + CASE + AVG ( + - 37 ) WHEN + - 21 THEN 31 + CASE + + 64 WHEN + 42 * + 15 * + - 93 THEN ( + 4 ) WHEN + + 24 / 51 * + 76 + + - 6 + - 97 * + + NULLIF ( 43, + 5 + - ( + - 36 ) - 60 * 22 ) THEN + 17 / 15 ELSE 61 - + 4 END + - + ( - + 9 ) ELSE + 63 END + 73 * - ( + 14 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + CASE - 26 WHEN + 36 THEN + 83 * - COUNT ( * ) + + CASE + AVG ( + - 37 ) WHEN + - 21 THEN 31 + CASE + + 64 WHEN + 42 * + 15 * + - 93 THEN ( + 4 ) WHEN + + 24 / 51 * + 76 + + - 6 + - 97 * + + NULLIF ( 43, + 5 + - ( + - 36 ) - 60 * 22 ) THEN + 17 / 15 ELSE 61 - + 4 END + - + ( - + 9 ) ELSE + 63 END + 73 * - ( + 14 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL 86 * 43 + - - CASE + + COUNT( * ) WHEN ( - 88 ) * + - 40 + + 50 + + 8 THEN - - SUM( DISTINCT - 14 ) ELSE + 83 END + + + 2
----
3783

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL 86 * 43 + - - CASE + + COUNT ( * ) WHEN ( - 88 ) * + - 40 + + 50 + + 8 THEN - - SUM ( DISTINCT - 14 ) ELSE + 83 END + + + 2
----
3783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3622
SELECT DISTINCT MAX( + 22 ) * - CASE + - 63 WHEN - 73 / + CAST( NULL AS SIGNED ) THEN NULL WHEN - 98 * 32 THEN + 55 END * 18 + COUNT( DISTINCT 22 ) + - - 46 * + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT MAX ( + 22 ) * - CASE + - 63 WHEN - 73 / + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 98 * 32 THEN + 55 END * 18 + COUNT ( DISTINCT 22 ) + - - 46 * + 83 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT - 71 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 71 / - - 88
----
0

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

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

query I rowsort
SELECT + 47 * 47 col0
----
2209

onlyif mysql # aggregate syntax: 
query II rowsort label-3626
SELECT - ( - 2 ) AS col1, NULLIF ( - COUNT( * ), + 37 + - 81 ) * - COUNT( ALL - 79 ) * + 13 + - - ( 68 )
----
2
81

skipif mysql # not compatible
query II rowsort label-3626
SELECT - ( - 2 ) AS col1, NULLIF ( - COUNT ( * ), + 37 + - 81 ) * - COUNT ( ALL - 79 ) * + 13 + - - ( 68 )
----
2
81

query I rowsort
SELECT ALL 24 * - 20 col0
----
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT - + CAST( 32 AS SIGNED ) * + 93 + + 96 col0
----
-2880

skipif mysql # not compatible
query I rowsort label-3628
SELECT - + CAST ( 32 AS INTEGER ) * + 93 + + 96 col0
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL - 94 - SUM( 85 ) AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL - 94 - SUM ( 85 ) AS col1
----
-179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3630
SELECT DISTINCT 69 DIV NULLIF ( - 31, - CASE - 21 WHEN + 93 * + + 66 + - + 69 + + 32 + - + COUNT( DISTINCT - + 79 ) + - 29 * - CASE - 58 WHEN - 28 * 12 THEN + 70 ELSE NULL END * + 4 * - 24 * + 97 DIV + + 60 THEN NULL WHEN + 21 THEN + 62 * + 73 END DIV + 78 ) + + - 15
----
-17

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT 69 / NULLIF ( - 31, - CASE - 21 WHEN + 93 * + + 66 + - + 69 + + 32 + - + COUNT ( DISTINCT - + 79 ) + - 29 * - CASE - 58 WHEN - 28 * 12 THEN + 70 ELSE NULL END * + 4 * - 24 * + 97 / + + 60 THEN NULL WHEN + 21 THEN + 62 * + 73 END / + 78 ) + + - 15
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3631
SELECT ALL ( + - 91 ) - + - 71 * COALESCE ( + 66, + 54, + NULLIF ( - - 89, + 65 ) * + 64 ) * - CAST( NULL AS DECIMAL ) + + + 35 AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3631
SELECT ALL ( + - 91 ) - + - 71 * COALESCE ( + 66, + 54, + NULLIF ( - - 89, + 65 ) * + 64 ) * - CAST ( NULL AS REAL ) + + + 35 AS col0, + COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3632
SELECT 57 + - 95 * 11 DIV 8 * - CAST( - COUNT( * ) AS SIGNED ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-3632
SELECT 57 + - 95 * 11 / 8 * - CAST ( - COUNT ( * ) AS INTEGER ) col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - 96 - + - 46 + - - SUM( DISTINCT + + 86 )
----
36

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 96 - + - 46 + - - SUM ( DISTINCT + + 86 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT COUNT( * ) + SUM( + 82 ) + + - 95
----
-12

skipif mysql # not compatible
query I rowsort label-3634
SELECT COUNT ( * ) + SUM ( + 82 ) + + - 95
----
-12

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT COUNT( + CAST( NULL AS SIGNED ) ) * 26 * - 63 * + 84
----
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) * 26 * - 63 * + 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3637
SELECT ALL - 98 DIV MAX( 28 ) + + 45 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - 98 / MAX ( 28 ) + + 45 AS col2
----
42

query II rowsort
SELECT - 46 * ( NULLIF ( + 99, + - 50 * - + ( - 94 ) / 73 + + 25 / + 44 ) ) AS col1, 91 col1
----
-4554
91

query I rowsort
SELECT 72 * + - 31 * + 51
----
-113832

query II rowsort
SELECT ALL - 48 * + 41, - 32 * + ( + - 57 ) AS col1
----
-1968
1824

query I rowsort
SELECT DISTINCT - 90 * - 84 * + ( + + 14 )
----
105840

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL - + 20 / - CASE + COUNT( * ) WHEN - 54 THEN NULL WHEN 79 * 98 THEN + 49 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - + 20 / - CASE + COUNT ( * ) WHEN - 54 THEN NULL WHEN 79 * 98 THEN + 49 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3643
SELECT ALL - 25 AS col0, 97 DIV 65 + - 26
----
-25
-25

skipif mysql # not compatible
query II rowsort label-3643
SELECT ALL - 25 AS col0, 97 / 65 + - 26
----
-25
-25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3644
SELECT CAST( - 14 AS DECIMAL ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT CAST ( - 14 AS REAL ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT 99 + + COUNT( * ) + + - COUNT( * ) + + 52
----
151

skipif mysql # not compatible
query I rowsort label-3645
SELECT 99 + + COUNT ( * ) + + - COUNT ( * ) + + 52
----
151

query II rowsort
SELECT + 27 AS col1, - 46
----
27
-46

query I rowsort
SELECT ALL 43 + + 98 * + + 91 AS col2
----
8961

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT + 51 DIV 43 + + 98
----
99

skipif mysql # not compatible
query I rowsort label-3648
SELECT + 51 / 43 + + 98
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT COUNT( - + 86 ) + + 8 + 30 * + + 36 AS col2
----
1089

skipif mysql # not compatible
query I rowsort label-3649
SELECT COUNT ( - + 86 ) + + 8 + 30 * + + 36 AS col2
----
1089

query I rowsort
SELECT + 63 * 54 * + 49 + + 49 AS col0
----
166747

query I rowsort
SELECT DISTINCT COALESCE ( + 63, - 91 ) + 81
----
144

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

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

query II rowsort
SELECT + 51, + 48 AS col0
----
51
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3654
SELECT DISTINCT MAX( DISTINCT + 14 ) + + CAST( NULL AS SIGNED ) / + 25, - 81 col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-3654
SELECT DISTINCT MAX ( DISTINCT + 14 ) + + CAST ( NULL AS INTEGER ) / + 25, - 81 col2
----
NULL
-81

query I rowsort
SELECT ALL - 71 * + 47 * - 67 * - - 49 AS col1
----
10955371

query I rowsort
SELECT 34 + - 59 col2
----
-25

query II rowsort
SELECT DISTINCT - 72 AS col1, 41
----
-72
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL - MAX( DISTINCT + + 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - MAX ( DISTINCT + + 27 ) AS col1
----
-27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT 14 * - CAST( - NULLIF ( + 37, + MAX( 33 ) * - 47 + - - 32 + SUM( DISTINCT + + 80 ) * - + 87 / 2 - + 25 + - - 49 * + 55 ) AS SIGNED )
----
518

skipif mysql # not compatible
query I rowsort label-3660
SELECT 14 * - CAST ( - NULLIF ( + 37, + MAX ( 33 ) * - 47 + - - 32 + SUM ( DISTINCT + + 80 ) * - + 87 / 2 - + 25 + - - 49 * + 55 ) AS INTEGER )
----
518

query I rowsort
SELECT DISTINCT - 27 - 7 AS col2
----
-34

query I rowsort
SELECT ALL - 65 * + 46 AS col0
----
-2990

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + 5 * + - COUNT( * ) * + 67
----
-335

skipif mysql # not compatible
query I rowsort label-3663
SELECT + 5 * + - COUNT ( * ) * + 67
----
-335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3664
SELECT ALL - ( - SUM( + 58 ) ) DIV + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL - ( - SUM ( + 58 ) ) / + 68 AS col2
----
0

query I rowsort
SELECT 23 + - 42 AS col1
----
-19

query I rowsort
SELECT ALL + ( + - 63 ) - - 6 * 7 * + 85
----
3507

query I rowsort
SELECT ALL - 4 * 95 * - 22
----
8360

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT + CASE + 0 WHEN + ( - COALESCE ( + - 41, - COUNT( * ) * ( - + ( - - 69 ) ) ) ) + 10 + + - 84 - + 83 THEN + 3 + + 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT + CASE + 0 WHEN + ( - COALESCE ( + - 41, - COUNT ( * ) * ( - + ( - - 69 ) ) ) ) + 10 + + - 84 - + 83 THEN + 3 + + 73 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3669
SELECT SUM ( DISTINCT - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT COUNT( - 51 ) * + COUNT( ALL - ( + 20 ) ) * + 67 + + 39 * + 39 AS col0
----
1588

skipif mysql # not compatible
query I rowsort label-3670
SELECT COUNT ( - 51 ) * + COUNT ( ALL - ( + 20 ) ) * + 67 + + 39 * + 39 AS col0
----
1588

query I rowsort
SELECT + 55 + - 48 AS col1
----
7

query I rowsort
SELECT ALL + 13 * + + 33 AS col2
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT 2 + + ( + + COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-3673
SELECT 2 + + ( + + COUNT ( * ) )
----
3

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

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

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

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

query I rowsort
SELECT DISTINCT - 69 * - 65
----
4485

query I rowsort
SELECT + 21 * - + 23 AS col2
----
-483

onlyif mysql # aggregate syntax: 
query II rowsort label-3678
SELECT - + 25, COUNT( * ) * 31 * + 50 AS col0
----
-25
1550

skipif mysql # not compatible
query II rowsort label-3678
SELECT - + 25, COUNT ( * ) * 31 * + 50 AS col0
----
-25
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT 17 + - + 16 * + + MAX( - 54 )
----
881

skipif mysql # not compatible
query I rowsort label-3679
SELECT 17 + - + 16 * + + MAX ( - 54 )
----
881

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL - MAX( ALL - COALESCE ( + ( - 18 ), - 3 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL - MAX ( ALL - COALESCE ( + ( - 18 ), - 3 ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - + COALESCE ( + - 77, + ( COUNT( * ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-3681
SELECT - + COALESCE ( + - 77, + ( COUNT ( * ) ) )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3682
SELECT 80 * MAX( DISTINCT 89 ) DIV - ( 27 ) AS col2
----
-263

skipif mysql # not compatible
query I rowsort label-3682
SELECT 80 * MAX ( DISTINCT 89 ) / - ( 27 ) AS col2
----
-263

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

skipif mysql # not compatible
query I rowsort label-3683
SELECT MAX ( - + 77 )
----
-77

query I rowsort
SELECT DISTINCT 34 * - 44 + + 67 + + 61 + 77 AS col1
----
-1291

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT DISTINCT - MAX( DISTINCT 2 ), - MIN( DISTINCT + 44 ) AS col0
----
-2
-44

skipif mysql # not compatible
query II rowsort label-3685
SELECT DISTINCT - MAX ( DISTINCT 2 ), - MIN ( DISTINCT + 44 ) AS col0
----
-2
-44

query I rowsort
SELECT DISTINCT + 39 * 97 + + 18
----
3801

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT DISTINCT 78 * + CASE - 3 WHEN + + 77 + + 36 THEN 35 * 84 + + 14 + + 56 + + 7 WHEN + NULLIF ( + 83, NULLIF ( - + 35, 98 + + SUM( + 83 ) ) ) THEN NULL END * + 28 * + + 2 + + + 38 + - 56 - - + 7 + + + NULLIF ( - 6, 0 ) * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT 78 * + CASE - 3 WHEN + + 77 + + 36 THEN 35 * 84 + + 14 + + 56 + + 7 WHEN + NULLIF ( + 83, NULLIF ( - + 35, 98 + + SUM ( + 83 ) ) ) THEN NULL END * + 28 * + + 2 + + + 38 + - 56 - - + 7 + + + NULLIF ( - 6, 0 ) * 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL CASE COUNT( * ) WHEN 36 THEN NULL ELSE - 43 END * + 68 AS col0
----
-2924

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL CASE COUNT ( * ) WHEN 36 THEN NULL ELSE - 43 END * + 68 AS col0
----
-2924

query I rowsort
SELECT 12 * - 34 + - 98
----
-506

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT 95 * 44 * + COUNT( * ) col0
----
4180

skipif mysql # not compatible
query I rowsort label-3691
SELECT 95 * 44 * + COUNT ( * ) col0
----
4180

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT NULLIF ( - 99, + 14 / + 68 - - COUNT( * ) - ( - ( 15 ) ) ) + + 94 AS col0, 44
----
-5
44

skipif mysql # not compatible
query II rowsort label-3692
SELECT NULLIF ( - 99, + 14 / + 68 - - COUNT ( * ) - ( - ( 15 ) ) ) + + 94 AS col0, 44
----
-5
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT MAX( DISTINCT + 54 ) + + 59 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT MAX ( DISTINCT + 54 ) + + 59 AS col1
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT + NULLIF ( 8, - 65 * - - CAST( - - 59 AS SIGNED ) + + - 26 )
----
8

skipif mysql # not compatible
query I rowsort label-3694
SELECT + NULLIF ( 8, - 65 * - - CAST ( - - 59 AS INTEGER ) + + - 26 )
----
8

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

skipif mysql # not compatible
query I rowsort label-3695
SELECT COUNT ( * ) - + + 48 / 38 * + 98 / ( + 83 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3696
SELECT ALL - CAST( NULL AS SIGNED ) * + 17 AS col0, - 47
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-3696
SELECT ALL - CAST ( NULL AS INTEGER ) * + 17 AS col0, - 47
----
NULL
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT + CASE + 65 WHEN + - 49 THEN + COUNT( - NULLIF ( - + 80, - 92 ) ) - - 99 ELSE + 71 END, + SUM( ALL 48 ) * - 80 AS col1
----
71
-3840

skipif mysql # not compatible
query II rowsort label-3697
SELECT + CASE + 65 WHEN + - 49 THEN + COUNT ( - NULLIF ( - + 80, - 92 ) ) - - 99 ELSE + 71 END, + SUM ( ALL 48 ) * - 80 AS col1
----
71
-3840

query I rowsort
SELECT + CASE 79 WHEN 24 + + - 49 THEN 80 WHEN ( 19 ) THEN NULL END
----
NULL

query I rowsort
SELECT - 16 - 50 + + - 65 AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL MIN( ALL 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL MIN ( ALL 51 ) AS col0
----
51

query I rowsort
SELECT ALL ( 43 ) col0
----
43

query I rowsort
SELECT + 65 - 72 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT - + COUNT( * ) * + - NULLIF ( 21, 79 * - 30 * - 61 * - + 87 ) * 32 + + 61 * 90 * 8 * + 23 * + 16 AS col0
----
16163232

skipif mysql # not compatible
query I rowsort label-3703
SELECT - + COUNT ( * ) * + - NULLIF ( 21, 79 * - 30 * - 61 * - + 87 ) * 32 + + 61 * 90 * 8 * + 23 * + 16 AS col0
----
16163232

query I rowsort
SELECT DISTINCT + NULLIF ( 24, - 87 ) col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3705
SELECT ALL - - COUNT( + + 43 ) DIV - + 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL - - COUNT ( + + 43 ) / - + 13 AS col0
----
0

query I rowsort
SELECT - 19 * 23 AS col1
----
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL - + 66 + + + SUM( ALL - 27 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - + 66 + + + SUM ( ALL - 27 ) AS col1
----
-93

query II rowsort
SELECT ALL - ( + 88 ) AS col1, 28
----
-88
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT + - COUNT( * ) + + + 25 / - + 73 - + + CASE - - 40 WHEN 37 / - + SUM( ALL + + 28 ) * + 85 * - + 34 + - 48 + + 58 THEN + - 47 / - 83 + 50 + + 73 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT + - COUNT ( * ) + + + 25 / - + 73 - + + CASE - - 40 WHEN 37 / - + SUM ( ALL + + 28 ) * + 85 * - + 34 + - 48 + + 58 THEN + - 47 / - 83 + 50 + + 73 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3710
SELECT - + CAST( 84 AS SIGNED ) + + - ( 80 ) AS col0, + 6 + - + 75 - + COUNT( * )
----
-164
-70

skipif mysql # not compatible
query II rowsort label-3710
SELECT - + CAST ( 84 AS INTEGER ) + + - ( 80 ) AS col0, + 6 + - + 75 - + COUNT ( * )
----
-164
-70

query I rowsort
SELECT - + 46 * - 43
----
1978

query I rowsort
SELECT ALL + 66 + + - 63 * + 89 col0
----
-5541

query I rowsort
SELECT - 8 + - + 24 * + 26 * - 13 + - - 29 * + + 40
----
9264

query II rowsort
SELECT + 78 - - 88 + 96 * 96 * + 96 AS col1, 26 AS col1
----
884902
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3715
SELECT ALL ( + - CAST( - 35 AS SIGNED ) ), 50 AS col1
----
35
50

skipif mysql # not compatible
query II rowsort label-3715
SELECT ALL ( + - CAST ( - 35 AS INTEGER ) ), 50 AS col1
----
35
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT + 61 + - ( + + 67 ) + - + COUNT( * ) * + ( + 56 ) * + - 26 AS col0
----
1450

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT + 61 + - ( + + 67 ) + - + COUNT ( * ) * + ( + 56 ) * + - 26 AS col0
----
1450

query I rowsort
SELECT DISTINCT - 98 * - 51 * - - 34 * + 64 * - CASE WHEN NULL BETWEEN NULL AND NULL THEN NULL ELSE + 23 END
----
-250139904

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT ALL - COUNT( * ) * + + COUNT( * ) - - 94 AS col0, - 71 * - 95 * + 51 AS col1
----
93
343995

skipif mysql # not compatible
query II rowsort label-3722
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) - - 94 AS col0, - 71 * - 95 * + 51 AS col1
----
93
343995

query I rowsort
SELECT - 19 * + 27
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT + 24 * - SUM( ALL 71 ) * - 77
----
131208

skipif mysql # not compatible
query I rowsort label-3724
SELECT + 24 * - SUM ( ALL 71 ) * - 77
----
131208

onlyif mysql # DIV for integer division: 
query II rowsort label-3725
SELECT 45 DIV 30 + - + 74, 25 - + 83 AS col1
----
-73
-58

skipif mysql # not compatible
query II rowsort label-3725
SELECT 45 / 30 + - + 74, 25 - + 83 AS col1
----
-73
-58

query I rowsort
SELECT + COALESCE ( - 31, + + 72 * 17, - 38 ) AS col2
----
-31

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

skipif mysql # not compatible
query I rowsort label-3727
SELECT + 88 * - - COUNT ( * ) * 59 AS col1
----
5192

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT ALL + ( + - 6 ) * - 60 DIV + - 59 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL + ( + - 6 ) * - 60 / + - 59 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT DISTINCT + 27 * - CASE - CAST( + - 11 AS SIGNED ) WHEN 92 THEN NULL WHEN - 24 * + - 5 * + - 96 THEN - - COUNT( * ) + + - CASE 87 WHEN - - COALESCE ( - + SUM( ALL - 67 ), - + 0 ) THEN - COUNT( * ) * + CAST( NULL AS SIGNED ) + - + 24 ELSE NULL END ELSE NULL END * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + 27 * - CASE - CAST ( + - 11 AS INTEGER ) WHEN 92 THEN NULL WHEN - 24 * + - 5 * + - 96 THEN - - COUNT ( * ) + + - CASE 87 WHEN - - COALESCE ( - + SUM ( ALL - 67 ), - + 0 ) THEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - + 24 ELSE NULL END ELSE NULL END * 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT + MAX( ALL - 74 ) * 53
----
-3922

skipif mysql # not compatible
query I rowsort label-3730
SELECT + MAX ( ALL - 74 ) * 53
----
-3922

query I rowsort
SELECT + 17 + 80 * 22 AS col0
----
1777

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT + COUNT( * ) + 66
----
67

skipif mysql # not compatible
query I rowsort label-3732
SELECT + COUNT ( * ) + 66
----
67

query I rowsort
SELECT - NULLIF ( - 80, - 58 )
----
80

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

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

query I rowsort
SELECT + ( - 48 ) + + 5 col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT + MIN( DISTINCT - 68 ) * + MIN( 34 )
----
-2312

skipif mysql # not compatible
query I rowsort label-3736
SELECT + MIN ( DISTINCT - 68 ) * + MIN ( 34 )
----
-2312

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - SUM( 36 ) + 9 col2
----
-27

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - SUM ( 36 ) + 9 col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT + MAX( ALL 37 ) + ( 85 - COALESCE ( CASE 5 WHEN COALESCE ( + COALESCE ( CAST( NULL AS SIGNED ), + ( - 54 ) ), - 54 ) THEN SUM( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 2 THEN 27 * + 46 + + 48 END, 71 ) )
----
51

skipif mysql # not compatible
query I rowsort label-3738
SELECT + MAX ( ALL 37 ) + ( 85 - COALESCE ( CASE 5 WHEN COALESCE ( + COALESCE ( CAST ( NULL AS INTEGER ), + ( - 54 ) ), - 54 ) THEN SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 2 THEN 27 * + 46 + + 48 END, 71 ) )
----
51

query I rowsort
SELECT DISTINCT 74 * 52 AS col1
----
3848

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT - 45 + 86 DIV 89
----
-45

skipif mysql # not compatible
query I rowsort label-3740
SELECT - 45 + 86 / 89
----
-45

query I rowsort
SELECT DISTINCT 68 + 28 AS col2
----
96

query I rowsort
SELECT ALL 27 + 70
----
97

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

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

query I rowsort
SELECT - 97 + - 55 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT + COUNT( ( + 67 ) ) + + 74 * 13
----
963

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT + COUNT ( ( + 67 ) ) + + 74 * 13
----
963

query I rowsort
SELECT DISTINCT COALESCE ( 43, 75, - 99 + 71 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3747
SELECT ALL 91 + - MAX( + 30 ) * COALESCE ( ( - 83 ) - + 53, - SUM( 20 ) DIV CAST( NULL AS SIGNED ) )
----
4171

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL 91 + - MAX ( + 30 ) * COALESCE ( ( - 83 ) - + 53, - SUM ( 20 ) / CAST ( NULL AS INTEGER ) )
----
4171

query I rowsort
SELECT DISTINCT + 30 + + 64
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT DISTINCT 26 + CAST( + 56 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT 26 + CAST ( + 56 AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ALL + COUNT( * ) + + 95 * 11
----
1046

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL + COUNT ( * ) + + 95 * 11
----
1046

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT - 55 DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-3751
SELECT - 55 / + 42
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3752
SELECT ALL + COUNT( * ) DIV NULLIF ( + 30, 55 )
----
0

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + COUNT ( * ) / NULLIF ( + 30, 55 )
----
0

query I rowsort
SELECT + ( - 47 ) * - 84 AS col0
----
3948

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3754
SELECT DISTINCT + NULLIF ( 80, - CAST( NULL AS DECIMAL ) ) DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + NULLIF ( 80, - CAST ( NULL AS REAL ) ) / - 19
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT ALL - 91 / COUNT( ALL + 45 ) - AVG ( - CAST( NULL AS SIGNED ) + 72 ) * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - 91 / COUNT ( ALL + 45 ) - AVG ( - CAST ( NULL AS INTEGER ) + 72 ) * + 27
----
NULL

query I rowsort
SELECT - 19 - 88 AS col0
----
-107

query I rowsort
SELECT - 95 * 29
----
-2755

query I rowsort
SELECT ALL - 40 * + 2 AS col1
----
-80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL - COALESCE ( - CAST( - 83 AS SIGNED ), 95 * - MIN( 23 ) ) - + COALESCE ( 13, 44 * - 15 )
----
-96

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL - COALESCE ( - CAST ( - 83 AS INTEGER ), 95 * - MIN ( 23 ) ) - + COALESCE ( 13, 44 * - 15 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT - CASE NULLIF ( ( 1 ), - 69 ) WHEN 53 THEN COUNT( * ) WHEN 84 * + 34 THEN 96 * + ( 8 ) + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT - CASE NULLIF ( ( 1 ), - 69 ) WHEN 53 THEN COUNT ( * ) WHEN 84 * + 34 THEN 96 * + ( 8 ) + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT ALL + MIN( DISTINCT + 8 ) * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + MIN ( DISTINCT + 8 ) * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 40 * + ( 20 ) AS col1
----
800

query I rowsort
SELECT ALL + COALESCE ( - ( 96 ), - 15 ) * + 30
----
-2880

query I rowsort
SELECT 30 * 9
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT MAX( + 97 ) * 47 col0
----
4559

skipif mysql # not compatible
query I rowsort label-3766
SELECT MAX ( + 97 ) * 47 col0
----
4559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3767
SELECT DISTINCT + - NULLIF ( 11, 93 * + 31 + 3 DIV - COUNT( * ) ) DIV 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT + - NULLIF ( 11, 93 * + 31 + 3 / - COUNT ( * ) ) / 19 AS col2
----
0

query I rowsort
SELECT - 51 - - 31
----
-20

query I rowsort
SELECT ALL - 25 * + 98
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT SUM( 48 ) * 9
----
432

skipif mysql # not compatible
query I rowsort label-3770
SELECT SUM ( 48 ) * 9
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT ALL + + 70 + 66 * ( CASE 59 WHEN 2 THEN NULLIF ( 48, 76 ) + - CASE - 20 WHEN CAST( - 35 AS SIGNED ) THEN 61 + 12 END WHEN 29 * COALESCE ( 64, + 4 + + 80 ) THEN NULL ELSE + 32 + 95 * + 43 END )
----
271792

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + + 70 + 66 * ( CASE 59 WHEN 2 THEN NULLIF ( 48, 76 ) + - CASE - 20 WHEN CAST ( - 35 AS INTEGER ) THEN 61 + 12 END WHEN 29 * COALESCE ( 64, + 4 + + 80 ) THEN NULL ELSE + 32 + 95 * + 43 END )
----
271792

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

query I rowsort
SELECT ALL - 34 + 86 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL + + MIN( ALL CASE 41 WHEN + 62 + 56 * 96 THEN NULL WHEN + 95 THEN 26 WHEN 7 THEN + 36 * + 8 END ) + - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL + + MIN ( ALL CASE 41 WHEN + 62 + 56 * 96 THEN NULL WHEN + 95 THEN 26 WHEN 7 THEN + 36 * + 8 END ) + - 82 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT ALL + 1 + - COALESCE ( NULLIF ( - ( 36 ), - 14 + - 7 ), - ( + ( CAST( NULL AS SIGNED ) ) ) * 90 + - 47 * 85 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + 1 + - COALESCE ( NULLIF ( - ( 36 ), - 14 + - 7 ), - ( + ( CAST ( NULL AS INTEGER ) ) ) * 90 + - 47 * 85 ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT - CASE + 95 WHEN MAX( - 88 ) * + AVG ( 22 ) THEN ( 52 ) / - CASE + 2 WHEN - 94 + 53 * AVG ( ALL 7 * + CAST( CASE 35 WHEN - 53 * 40 THEN 90 END * + 62 AS SIGNED ) + - 2 ) THEN - 84 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT - CASE + 95 WHEN MAX ( - 88 ) * + AVG ( 22 ) THEN ( 52 ) / - CASE + 2 WHEN - 94 + 53 * AVG ( ALL 7 * + CAST ( CASE 35 WHEN - 53 * 40 THEN 90 END * + 62 AS INTEGER ) + - 2 ) THEN - 84 END END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3777
SELECT - 40 * + NULLIF ( CASE 72 WHEN + 70 + - 75 * + AVG ( 9 ) THEN NULL WHEN SUM( - 98 ) THEN NULL ELSE + 62 DIV COUNT( - 43 ) - 54 END, 91 * 42 ) AS col0
----
-320

skipif mysql # not compatible
query I rowsort label-3777
SELECT - 40 * + NULLIF ( CASE 72 WHEN + 70 + - 75 * + AVG ( 9 ) THEN NULL WHEN SUM ( - 98 ) THEN NULL ELSE + 62 / COUNT ( - 43 ) - 54 END, 91 * 42 ) AS col0
----
-320

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

skipif mysql # not compatible
query I rowsort label-3778
SELECT 23 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT - NULLIF ( 33, - 29 * ( COUNT( * ) * - 93 ) ) DIV COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-3779
SELECT - NULLIF ( 33, - 29 * ( COUNT ( * ) * - 93 ) ) / COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL 93 + + 56 / + CASE 75 WHEN COUNT( * ) THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL 93 + + 56 / + CASE 75 WHEN COUNT ( * ) THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 56 - 46 * + ( - 23 ) AS col2
----
1114

onlyif mysql # DIV for integer division: 
query I rowsort label-3782
SELECT DISTINCT - 82 DIV + ( 15 )
----
-5

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT - 82 / + ( 15 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT ( + COUNT( DISTINCT - 55 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT ( + COUNT ( DISTINCT - 55 ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT ALL - NULLIF ( + NULLIF ( COUNT( * ), 44 ), 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL - NULLIF ( + NULLIF ( COUNT ( * ), 44 ), 48 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL - NULLIF ( - COUNT( * ), SUM( + 32 ) + ( 83 ) * + 41 ) + + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - NULLIF ( - COUNT ( * ), SUM ( + 32 ) + ( 83 ) * + 41 ) + + 29 AS col2
----
30

query I rowsort
SELECT 15 - 41 AS col2
----
-26

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

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

query I rowsort
SELECT ALL NULLIF ( 55, ( - 47 ) ) - - 54
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT CASE 73 WHEN 65 THEN AVG ( DISTINCT + 55 ) * + 14 END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT CASE 73 WHEN 65 THEN AVG ( DISTINCT + 55 ) * + 14 END * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 98 + 81 AS col2
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT 5 + + + 62 + + CASE + 41 WHEN 89 / NULLIF ( - CASE + COALESCE ( - COUNT( * ), 70 + 50, - 71 / 4 ) WHEN 18 THEN NULL ELSE - 72 END, + 78 * 2 ) THEN 18 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT 5 + + + 62 + + CASE + 41 WHEN 89 / NULLIF ( - CASE + COALESCE ( - COUNT ( * ), 70 + 50, - 71 / 4 ) WHEN 18 THEN NULL ELSE - 72 END, + 78 * 2 ) THEN 18 ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3792
SELECT 43 * + - CAST ( COUNT ( * ) AS INTEGER )
----
-43

query I rowsort
SELECT ( - + 22 ) + 15 * - 58 AS col1
----
-892

query I rowsort
SELECT DISTINCT NULLIF ( - - 5, - 71 * 14 ) * 66
----
330

query I rowsort
SELECT - 71 * - 41 * 69 + + 57
----
200916

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT ALL + 81 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL + 81 / - 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3797
SELECT 40 DIV - - MAX( 99 )
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT 40 / - - MAX ( 99 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3798
SELECT - COUNT( * ) DIV + 75 * 46 + + 19
----
19

skipif mysql # not compatible
query I rowsort label-3798
SELECT - COUNT ( * ) / + 75 * 46 + + 19
----
19

query I rowsort
SELECT 23 * 29 AS col0
----
667

query I rowsort
SELECT 59 + + 97
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT ALL - 82 DIV 72
----
-1

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL - 82 / 72
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT 65 DIV 7 * - 77 AS col1
----
-693

skipif mysql # not compatible
query I rowsort label-3802
SELECT 65 / 7 * - 77 AS col1
----
-693

query I rowsort
SELECT + COALESCE ( - 59, 44 ) * 93 + 23 AS col0
----
-5464

query I rowsort
SELECT DISTINCT - 64 * + 20 * 46 AS col0
----
-58880

query I rowsort
SELECT ALL + 10 * - 3 AS col2
----
-30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT + 49 + - + 63 + COUNT( * ) DIV 62
----
-14

skipif mysql # not compatible
query I rowsort label-3807
SELECT + 49 + - + 63 + COUNT ( * ) / 62
----
-14

query I rowsort
SELECT ALL - 85 + 6 * 5 AS col2
----
-55

query I rowsort
SELECT DISTINCT - - NULLIF ( + 38, - 69 * - 16 + 42 ) col2
----
38

query I rowsort
SELECT DISTINCT + + ( - - 80 ) + + 85 AS col1
----
165

query I rowsort
SELECT ALL - + 72 + + 1 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT + COUNT( * ) + + 98 + 13 * - ( 68 * 73 + 80 ) * 3
----
-196617

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT + COUNT ( * ) + + 98 + 13 * - ( 68 * 73 + 80 ) * 3
----
-196617

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL + - 42 + COUNT( * ) - 21 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL + - 42 + COUNT ( * ) - 21 AS col0
----
-62

query I rowsort
SELECT + 47 + - 97 AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT CAST( + COALESCE ( + 68, SUM( ALL + 58 ) ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-3815
SELECT CAST ( + COALESCE ( + 68, SUM ( ALL + 58 ) ) AS INTEGER )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT 71 + - CAST( 87 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-3816
SELECT 71 + - CAST ( 87 AS INTEGER )
----
-16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL + + COUNT( + CASE + 51 WHEN NULLIF ( 50, - ( - 37 ) ) THEN 14 * 25 ELSE NULL END ) - - 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + + COUNT ( + CASE + 51 WHEN NULLIF ( 50, - ( - 37 ) ) THEN 14 * 25 ELSE NULL END ) - - 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL 27 - + 2 * COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL 27 - + 2 * COUNT ( * ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT DISTINCT - - CASE 67 WHEN CASE - 53 WHEN + 86 THEN 65 + - 27 WHEN COUNT( * ) + + 51 THEN NULL ELSE NULL END / 47 THEN + 88 ELSE NULL END * ( 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - - CASE 67 WHEN CASE - 53 WHEN + 86 THEN 65 + - 27 WHEN COUNT ( * ) + + 51 THEN NULL ELSE NULL END / 47 THEN + 88 ELSE NULL END * ( 0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT - MAX( ALL - 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - MAX ( ALL - 3 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT DISTINCT - + NULLIF ( + 50, 63 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - + NULLIF ( + 50, 63 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3823
SELECT DISTINCT + CASE + - 30 WHEN + + CAST( + 51 AS SIGNED ) * + 61 THEN - 25 WHEN 20 * - 47 THEN NULL WHEN - 52 THEN NULL END * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT + CASE + - 30 WHEN + + CAST ( + 51 AS INTEGER ) * + 61 THEN - 25 WHEN 20 * - 47 THEN NULL WHEN - 52 THEN NULL END * 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL - 12 - COALESCE ( + - NULLIF ( + 52, + 87 * - MAX( - 39 ) ), 89 )
----
40

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL - 12 - COALESCE ( + - NULLIF ( + 52, + 87 * - MAX ( - 39 ) ), 89 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT 95 / - CASE 76 WHEN + 80 * 40 + 78 THEN - CAST( - COUNT( * ) AS SIGNED ) * - 6 WHEN CAST( NULL AS SIGNED ) + + ( COUNT( * ) + CASE 45 + 48 WHEN + 46 THEN NULL WHEN + 87 THEN + 86 + COUNT( * ) ELSE NULL END ) THEN NULL END * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT 95 / - CASE 76 WHEN + 80 * 40 + 78 THEN - CAST ( - COUNT ( * ) AS INTEGER ) * - 6 WHEN CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) + CASE 45 + 48 WHEN + 46 THEN NULL WHEN + 87 THEN + 86 + COUNT ( * ) ELSE NULL END ) THEN NULL END * 17
----
NULL

query II rowsort
SELECT 36 AS col0, + 46
----
36
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT NULLIF ( + + COUNT( * ), + - 93 + 78 ) + - 68
----
-67

skipif mysql # not compatible
query I rowsort label-3827
SELECT NULLIF ( + + COUNT ( * ), + - 93 + 78 ) + - 68
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT 8 DIV + - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT 8 / + - 63 AS col0
----
0

query I rowsort
SELECT 43 * - 96 * CASE + 64 WHEN 6 - 79 THEN 45 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT ALL 90 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL 90 / + 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT - 32, + 79 + + COUNT( - 26 ) * COUNT( * ) col1
----
-32
80

skipif mysql # not compatible
query II rowsort label-3831
SELECT - 32, + 79 + + COUNT ( - 26 ) * COUNT ( * ) col1
----
-32
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT - MAX( DISTINCT + 64 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-3832
SELECT - MAX ( DISTINCT + 64 ) col1
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT ALL 88 AS col0, + 53 - - COUNT( * )
----
88
54

skipif mysql # not compatible
query II rowsort label-3833
SELECT ALL 88 AS col0, + 53 - - COUNT ( * )
----
88
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3834
SELECT + 89 * - - COALESCE ( + + COUNT( * ), + 82, ( + CASE COALESCE ( + 54, - NULLIF ( COUNT( * ), - 55 ) + MIN( ALL 73 ), COUNT( * ) * - COALESCE ( - 0 * + ( - 49 ), - 96 * 73 + 96 ) ) WHEN 62 * + COUNT( - CASE 60 WHEN - CASE 31 WHEN 62 + ( 54 ) THEN NULL WHEN - 28 THEN NULL ELSE - 84 * + 62 END * 32 THEN + 89 WHEN 24 DIV - 66 THEN NULL WHEN 6 THEN NULL ELSE NULL END DIV - 50 ) THEN CASE + COUNT( * ) WHEN 7 + 42 THEN 9 ELSE + COUNT( * ) DIV - COUNT( * ) END WHEN 37 THEN NULL END ) * + 95 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3834
SELECT + 89 * - - COALESCE ( + + COUNT ( * ), + 82, ( + CASE COALESCE ( + 54, - NULLIF ( COUNT ( * ), - 55 ) + MIN ( ALL 73 ), COUNT ( * ) * - COALESCE ( - 0 * + ( - 49 ), - 96 * 73 + 96 ) ) WHEN 62 * + COUNT ( - CASE 60 WHEN - CASE 31 WHEN 62 + ( 54 ) THEN NULL WHEN - 28 THEN NULL ELSE - 84 * + 62 END * 32 THEN + 89 WHEN 24 / - 66 THEN NULL WHEN 6 THEN NULL ELSE NULL END / - 50 ) THEN CASE + COUNT ( * ) WHEN 7 + 42 THEN 9 ELSE + COUNT ( * ) / - COUNT ( * ) END WHEN 37 THEN NULL END ) * + 95 ) AS col0
----
89

query I rowsort
SELECT DISTINCT 18 * + 10 AS col1
----
180

query I rowsort
SELECT - 53 * + - 62 AS col0
----
3286

query I rowsort
SELECT DISTINCT 65 + - 80
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT - MAX( 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3838
SELECT - MAX ( 41 ) AS col0
----
-41

query I rowsort
SELECT + 94 * - 87 AS col1
----
-8178

query I rowsort
SELECT + 6 - 53 * + 66 AS col1
----
-3492

query II rowsort
SELECT + 10 AS col2, + 91 AS col1
----
10
91

query I rowsort
SELECT ALL 17 * - + 93 AS col0
----
-1581

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL 72 * MAX( ALL + 46 ) + - 33 AS col1
----
3279

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL 72 * MAX ( ALL + 46 ) + - 33 AS col1
----
3279

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL + 24 * ( - 65 ) * - ( COUNT( * ) ) + - 57 AS col0
----
1503

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL + 24 * ( - 65 ) * - ( COUNT ( * ) ) + - 57 AS col0
----
1503

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT ALL - 53 * 57 * 28 + + MAX( DISTINCT 8 )
----
-84580

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - 53 * 57 * 28 + + MAX ( DISTINCT 8 )
----
-84580

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT DISTINCT - + ( + + 22 ) DIV 49 - + CASE 37 WHEN 67 - + 64 * - 21 THEN NULL ELSE - COALESCE ( 8, - 24 + - 43 ) END
----
8

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - + ( + + 22 ) / 49 - + CASE 37 WHEN 67 - + 64 * - 21 THEN NULL ELSE - COALESCE ( 8, - 24 + - 43 ) END
----
8

query I rowsort
SELECT ALL + 88 * + 12 + CASE ( 28 ) WHEN 37 THEN NULL ELSE 73 END + 22 AS col1
----
1151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3851
SELECT DISTINCT - 74 * - + 39 * + - 0 + + 47 * - 56 + NULLIF ( + 79, + 64 ) DIV COALESCE ( - CAST( NULL AS SIGNED ), + 42 ) AS col1
----
-2631

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT - 74 * - + 39 * + - 0 + + 47 * - 56 + NULLIF ( + 79, + 64 ) / COALESCE ( - CAST ( NULL AS INTEGER ), + 42 ) AS col1
----
-2631

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT + SUM( + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-3852
SELECT + SUM ( + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT + - 93 * + COUNT( * ) + + + 12 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3853
SELECT + - 93 * + COUNT ( * ) + + + 12 AS col1
----
-81

query I rowsort
SELECT - - 88 * 77 AS col0
----
6776

query I rowsort
SELECT ALL - + ( 76 ) * 54 AS col2
----
-4104

query II rowsort
SELECT - 63, 68 * 69 + + 81 * + 77 AS col2
----
-63
10929

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT + - 59 * 0 - + 92 + MIN( DISTINCT 6 )
----
-86

skipif mysql # not compatible
query I rowsort label-3857
SELECT + - 59 * 0 - + 92 + MIN ( DISTINCT 6 )
----
-86

query II rowsort
SELECT + 13 AS col0, 75 + 18 - - 30
----
13
123

query I rowsort
SELECT DISTINCT + + 46 * - 0 * - 40 * + 45 - - 60
----
60

query I rowsort
SELECT ALL + - NULLIF ( + 19, - 9 ) AS col1
----
-19

query II rowsort
SELECT + + 32 AS col2, - 31 col1
----
32
-31

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

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

query I rowsort
SELECT ALL - 47 * + 78 * - 1
----
3666

query II rowsort
SELECT DISTINCT + - 60 col2, 19 col0
----
-60
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT + - 26 * + 38 + + COUNT( * ) - COUNT( * )
----
-988

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT + - 26 * + 38 + + COUNT ( * ) - COUNT ( * )
----
-988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3866
SELECT 77 AS col1, 98 * + CAST( NULL AS SIGNED ) col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3866
SELECT 77 AS col1, 98 * + CAST ( NULL AS INTEGER ) col2
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT - 2 * + - CASE + CASE - + NULLIF ( - 11, NULLIF ( + 99, + 85 * + 77 ) ) WHEN + COUNT( * ) * - 63 - CASE + 2 WHEN 33 - 79 THEN + 66 - + ( - COUNT( DISTINCT 41 ) ) WHEN 39 * - 12 THEN NULL WHEN + COUNT( * ) * - NULLIF ( - 94, - COUNT( * ) ) + - 98 THEN ( - 66 ) ELSE NULL END THEN 4 - - 12 END WHEN - 7 THEN 70 END * + 21 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT - 2 * + - CASE + CASE - + NULLIF ( - 11, NULLIF ( + 99, + 85 * + 77 ) ) WHEN + COUNT ( * ) * - 63 - CASE + 2 WHEN 33 - 79 THEN + 66 - + ( - COUNT ( DISTINCT 41 ) ) WHEN 39 * - 12 THEN NULL WHEN + COUNT ( * ) * - NULLIF ( - 94, - COUNT ( * ) ) + - 98 THEN ( - 66 ) ELSE NULL END THEN 4 - - 12 END WHEN - 7 THEN 70 END * + 21 col0
----
NULL

query I rowsort
SELECT - 8 * + + 1 AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3869
SELECT - 20 - + + COALESCE ( COUNT( * ), - + 56 - 36 * + 8, + 70 * - 15 ) + 70 DIV + 16 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3869
SELECT - 20 - + + COALESCE ( COUNT ( * ), - + 56 - 36 * + 8, + 70 * - 15 ) + 70 / + 16 AS col0
----
-17

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

query I rowsort
SELECT - 72 * - + 32 AS col2
----
2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL - CAST( - 13 AS SIGNED ) * 57
----
741

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - CAST ( - 13 AS INTEGER ) * 57
----
741

query I rowsort
SELECT ALL CASE 81 WHEN + - 84 - - 1 THEN 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT - COUNT( DISTINCT + 9 ) - + - 52 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3874
SELECT - COUNT ( DISTINCT + 9 ) - + - 52 AS col2
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3875
SELECT - 25 DIV + 56, 16 AS col2
----
0
16

skipif mysql # not compatible
query II rowsort label-3875
SELECT - 25 / + 56, 16 AS col2
----
0
16

query I rowsort
SELECT ALL - 91 * 80 * ( - 59 ) AS col1
----
429520

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT - 42 - + CASE - COUNT( * ) WHEN - COUNT( * ) * - 87 THEN NULL ELSE + COUNT( * ) END
----
-43

skipif mysql # not compatible
query I rowsort label-3877
SELECT - 42 - + CASE - COUNT ( * ) WHEN - COUNT ( * ) * - 87 THEN NULL ELSE + COUNT ( * ) END
----
-43

query I rowsort
SELECT - 12 + + 26 * + + COALESCE ( + 85, 96 * 45 ) AS col2
----
2198

query I rowsort
SELECT ALL + 18 + + ( 2 ) * - - 62 AS col2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT - 89 DIV 33 * - + 43
----
86

skipif mysql # not compatible
query I rowsort label-3880
SELECT - 89 / 33 * - + 43
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3881
SELECT + COUNT( ALL + + 60 ) DIV 68 col1
----
0

skipif mysql # not compatible
query I rowsort label-3881
SELECT + COUNT ( ALL + + 60 ) / 68 col1
----
0

query I rowsort
SELECT - 6 + 17 - + 7 AS col0
----
4

query II rowsort
SELECT + 71 * 93 AS col2, + 10 * 49 * 12 AS col2
----
6603
5880

query I rowsort
SELECT - 82 + - - 92
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL - CAST( NULL AS SIGNED ) + + 41 * + MAX( + - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL - CAST ( NULL AS INTEGER ) + + 41 * + MAX ( + - 61 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT + COUNT( + ( 20 ) ) + + 33 * - 70 AS col1
----
-2309

skipif mysql # not compatible
query I rowsort label-3887
SELECT + COUNT ( + ( 20 ) ) + + 33 * - 70 AS col1
----
-2309

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT ALL - COUNT( * ) * - 9, - 96 AS col1
----
9
-96

skipif mysql # not compatible
query II rowsort label-3889
SELECT ALL - COUNT ( * ) * - 9, - 96 AS col1
----
9
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3890
SELECT + + CAST( NULL AS SIGNED ) / + 47 - - CASE + - COUNT( * ) WHEN CASE - 48 WHEN 3 THEN - 72 WHEN + 60 THEN NULL END THEN NULL WHEN - 57 THEN 93 * + 2 ELSE NULL END + + CAST( - CASE SUM( ALL - 50 ) WHEN + 25 * 97 + 39 THEN 97 ELSE NULL END + 72 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT + + CAST ( NULL AS INTEGER ) / + 47 - - CASE + - COUNT ( * ) WHEN CASE - 48 WHEN 3 THEN - 72 WHEN + 60 THEN NULL END THEN NULL WHEN - 57 THEN 93 * + 2 ELSE NULL END + + CAST ( - CASE SUM ( ALL - 50 ) WHEN + 25 * 97 + 39 THEN 97 ELSE NULL END + 72 AS INTEGER )
----
NULL

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

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

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

query I rowsort
SELECT ALL 46 * + 82 * + + 61
----
230092

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT + 79 * 36 + - MIN( ALL + - 80 ) + 65 AS col0
----
2989

skipif mysql # not compatible
query I rowsort label-3894
SELECT + 79 * 36 + - MIN ( ALL + - 80 ) + 65 AS col0
----
2989

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3895
SELECT DISTINCT + ( 90 ) col1, - COUNT( * ) DIV + + 58 * + 93 AS col0
----
90
0

skipif mysql # not compatible
query II rowsort label-3895
SELECT DISTINCT + ( 90 ) col1, - COUNT ( * ) / + + 58 * + 93 AS col0
----
90
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3896
SELECT DISTINCT + - 69 DIV + 68 - - 20 + 3 * + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + - 69 / + 68 - - 20 + 3 * + COUNT ( * ) AS col2
----
22

query I rowsort
SELECT DISTINCT - 9 * - 70 * - + 16 AS col0
----
-10080

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT ALL + - 0 DIV 69 * COALESCE ( - 94, 56 * - ( + 65 * - 4 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + - 0 / 69 * COALESCE ( - 94, 56 * - ( + 65 * - 4 ) )
----
0

query I rowsort
SELECT + - ( + 71 ) + + 89 + - 26 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT + - CAST( NULL AS SIGNED ) * + + COALESCE ( + 78, 26 * 33 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT + - CAST ( NULL AS INTEGER ) * + + COALESCE ( + 78, 26 * 33 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3902
SELECT ALL + NULLIF ( - 78, - + 46 ) DIV + + COUNT( * )
----
-78

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

query I rowsort
SELECT ALL 76 * NULLIF ( 86, + - 73 * - 49 )
----
6536

query I rowsort
SELECT + 45 + 85 AS col2
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3905
SELECT + MIN( - COALESCE ( + + ( + 43 ), + 9 - + 64 DIV 53, + ( 68 ) + - 33 ) ) * 6
----
-258

skipif mysql # not compatible
query I rowsort label-3905
SELECT + MIN ( - COALESCE ( + + ( + 43 ), + 9 - + 64 / 53, + ( 68 ) + - 33 ) ) * 6
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - 19 * - 1 * COUNT( DISTINCT + + 3 )
----
19

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 19 * - 1 * COUNT ( DISTINCT + + 3 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT 14 + 25 DIV 80 * + - ( + 92 )
----
14

skipif mysql # not compatible
query I rowsort label-3907
SELECT 14 + 25 / 80 * + - ( + 92 )
----
14

query I rowsort
SELECT DISTINCT - 13 * + - NULLIF ( + 62, 64 + - - 28 ) AS col2
----
806

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

skipif mysql # not compatible
query I rowsort label-3909
SELECT 33 * COUNT ( * ) / 1 AS col0
----
33

query I rowsort
SELECT ALL 55 + - 39 + 17
----
33

query I rowsort
SELECT ALL + 22 + - - 66 * + 97
----
6424

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT 49 + - ( NULLIF ( + - ( + 20 ), + COUNT( ALL - 3 ) * 5 ) ) * 9
----
229

skipif mysql # not compatible
query I rowsort label-3912
SELECT 49 + - ( NULLIF ( + - ( + 20 ), + COUNT ( ALL - 3 ) * 5 ) ) * 9
----
229

query I rowsort
SELECT 59 + 40 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT - 77 + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT - 77 + - COUNT ( * )
----
-78

query II rowsort
SELECT - 97 AS col1, 43 * - 75 * - + 18 * - 71 * + 74 AS col1
----
-97
-304994700

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL - 60 + - MIN( DISTINCT - + ( + 75 ) )
----
15

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL - 60 + - MIN ( DISTINCT - + ( + 75 ) )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT 49 * - + CAST( NULL AS SIGNED ) / + 2 / 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT 49 * - + CAST ( NULL AS INTEGER ) / + 2 / 8 AS col2
----
NULL

query I rowsort
SELECT ALL + 51 * + + 44 AS col1
----
2244

query I rowsort
SELECT DISTINCT + 33 * - 39
----
-1287

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3920
SELECT DISTINCT - 6 + + 27 + + - 57 * CAST( NULL AS DECIMAL ) * + 16 + - CAST( 80 + 59 / + 16 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT - 6 + + 27 + + - 57 * CAST ( NULL AS REAL ) * + 16 + - CAST ( 80 + 59 / + 16 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 42 + - + 67
----
-25

query I rowsort
SELECT DISTINCT + 48 * + - 46 + + 39
----
-2169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3923
SELECT - 91 * SUM( + 24 ) * ( SUM( - 45 ) ) + 59 DIV 47
----
98281

skipif mysql # not compatible
query I rowsort label-3923
SELECT - 91 * SUM ( + 24 ) * ( SUM ( - 45 ) ) + 59 / 47
----
98281

query I rowsort
SELECT - 61 * 62 AS col1
----
-3782

query I rowsort
SELECT ALL - 57 - + 42 AS col2
----
-99

query I rowsort
SELECT 46 - + 42
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT ALL COUNT( * ) DIV + - MAX( + NULLIF ( + ( - 81 ), - ( 14 ) - + 1 * 78 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL COUNT ( * ) / + - MAX ( + NULLIF ( + ( - 81 ), - ( 14 ) - + 1 * 78 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3928
SELECT ALL - CASE - COUNT( * ) WHEN 84 THEN NULL WHEN - + 92 THEN + + 37 - - ( + 4 ) * - COUNT( * ) ELSE 92 END DIV 39
----
-2

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - CASE - COUNT ( * ) WHEN 84 THEN NULL WHEN - + 92 THEN + + 37 - - ( + 4 ) * - COUNT ( * ) ELSE 92 END / 39
----
-2

query I rowsort
SELECT + 27 * + + 9 col0
----
243

query I rowsort
SELECT ALL - COALESCE ( + 75, 29 * - + 14 ) AS col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3931
SELECT DISTINCT - 56 AS col1, + 34 + + 82 / + + CAST( NULL AS SIGNED ) AS col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-3931
SELECT DISTINCT - 56 AS col1, + 34 + + 82 / + + CAST ( NULL AS INTEGER ) AS col2
----
-56
NULL

query I rowsort
SELECT DISTINCT - 63 - - 11 AS col2
----
-52

query II rowsort
SELECT ALL - - 93 AS col2, 84
----
93
84

query I rowsort
SELECT + CASE - 10 WHEN + + 17 THEN + 27 ELSE NULL END - - 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT - NULLIF ( - COALESCE ( - - 39, - + 87 * - 24, 75 ), ( ( 90 ) ) ) * - COALESCE ( 37 * CAST( + 1 AS SIGNED ), 74 )
----
-1443

skipif mysql # not compatible
query I rowsort label-3935
SELECT - NULLIF ( - COALESCE ( - - 39, - + 87 * - 24, 75 ), ( ( 90 ) ) ) * - COALESCE ( 37 * CAST ( + 1 AS INTEGER ), 74 )
----
-1443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT + MAX( ALL 25 ) * - - ( CAST( ( 16 ) AS SIGNED ) ) * - CASE - 63 WHEN - 33 THEN NULLIF ( 44, - 47 * + 91 ) * 8 + 71 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + MAX ( ALL 25 ) * - - ( CAST ( ( 16 ) AS INTEGER ) ) * - CASE - 63 WHEN - 33 THEN NULLIF ( 44, - 47 * + 91 ) * 8 + 71 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + ( - 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT COALESCE ( + COUNT( * ), + 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3938
SELECT COALESCE ( + COUNT ( * ), + 15 ) AS col0
----
1

query I rowsort
SELECT 85 * 36 * - 72 + + 10 + 30 * 78
----
-217970

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT + 43 * + + 94 + 7 + - 81 + - COUNT( * ) * - 79 AS col1
----
4047

skipif mysql # not compatible
query I rowsort label-3940
SELECT + 43 * + + 94 + 7 + - 81 + - COUNT ( * ) * - 79 AS col1
----
4047

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT ALL - CASE WHEN SUM( DISTINCT - 80 ) < + ( + 49 ) + 85 THEN NULL WHEN 59 < - 5 * 21 THEN - 99 + - 37 * - 11 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL - CASE WHEN SUM ( DISTINCT - 80 ) < + ( + 49 ) + 85 THEN NULL WHEN 59 < - 5 * 21 THEN - 99 + - 37 * - 11 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 79 + - 67 + - 3 + - 0 + - 22 * 31 * + 94 * 46 AS col1
----
-2948959

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT NULLIF ( - 26, + 27 ) DIV - + 50 + - - 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3943
SELECT NULLIF ( - 26, + 27 ) / - + 50 + - - 14 AS col1
----
14

query I rowsort
SELECT ALL 61 + + 34
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL 48 + - COUNT( * ) + - 70
----
-23

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL 48 + - COUNT ( * ) + - 70
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3946
SELECT NULLIF ( COUNT( * ), - 88 ) DIV + CAST( NULLIF ( 30, + 87 + + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3946
SELECT NULLIF ( COUNT ( * ), - 88 ) / + CAST ( NULLIF ( 30, + 87 + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3947
SELECT CAST( 48 AS SIGNED ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT CAST ( 48 AS INTEGER ) / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT NULLIF ( COUNT( * ), + 33 ) - + 60 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3948
SELECT NULLIF ( COUNT ( * ), + 33 ) - + 60 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL 1 + + + COUNT( * ) * + + 0
----
1

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL 1 + + + COUNT ( * ) * + + 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT 55 * - - SUM( + + 60 ) * - - 95 - - 36 + + - 40 * 91 AS col1
----
309896

skipif mysql # not compatible
query I rowsort label-3950
SELECT 55 * - - SUM ( + + 60 ) * - - 95 - - 36 + + - 40 * 91 AS col1
----
309896

query I rowsort
SELECT ( ( - 58 ) ) * + - 3 AS col0
----
174

query II rowsort
SELECT - 92 AS col1, CASE + - COALESCE ( 14, + 32 ) WHEN - - 85 THEN - 64 WHEN - 84 THEN - 20 WHEN - 96 / + 59 THEN NULL ELSE + 10 * 82 END
----
-92
820

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3953
SELECT CAST( NULL AS DECIMAL ) + - 48 * - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT CAST ( NULL AS REAL ) + - 48 * - - 68
----
NULL

query I rowsort
SELECT ALL + 19 * - + 83 * - 29
----
45733

query II rowsort
SELECT 89, 65 col2
----
89
65

query II rowsort
SELECT DISTINCT 54, 99 * 45 AS col1
----
54
4455

query I rowsort
SELECT ALL - 92 - - 90
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT 74 - MIN( DISTINCT + 32 )
----
42

skipif mysql # not compatible
query I rowsort label-3958
SELECT 74 - MIN ( DISTINCT + 32 )
----
42

query II rowsort
SELECT 5 AS col0, - 14 AS col1
----
5
-14

query I rowsort
SELECT ALL 35 * - - 86 * 13
----
39130

query II rowsort
SELECT 81 AS col0, 47
----
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT 58 + + 14 + + 93 * MIN( - 8 ) + - - 37 col0
----
-635

skipif mysql # not compatible
query I rowsort label-3962
SELECT 58 + + 14 + + 93 * MIN ( - 8 ) + - - 37 col0
----
-635

query I rowsort
SELECT + 89 + + 65
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT - - 74 AS col0, + SUM( DISTINCT 78 ) * + 0
----
74
0

skipif mysql # not compatible
query II rowsort label-3964
SELECT - - 74 AS col0, + SUM ( DISTINCT 78 ) * + 0
----
74
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3965
SELECT ALL + ( + 54 ) AS col2, 12 DIV 84
----
54
0

skipif mysql # not compatible
query II rowsort label-3965
SELECT ALL + ( + 54 ) AS col2, 12 / 84
----
54
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3966
SELECT ALL + + 58 * NULLIF ( - 96, 28 ) * + COALESCE ( - - CAST( 71 AS SIGNED ), 69 + 86 DIV - 54 ) + 58 * + 45
----
-392718

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + + 58 * NULLIF ( - 96, 28 ) * + COALESCE ( - - CAST ( 71 AS INTEGER ), 69 + 86 / - 54 ) + 58 * + 45
----
-392718

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + 16 + + - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3967
SELECT + 16 + + - COUNT ( * ) AS col2
----
15

query II rowsort
SELECT ALL - 51 AS col0, 20 col2
----
-51
20

query I rowsort
SELECT - 25 * 49 col0
----
-1225

query I rowsort
SELECT DISTINCT + - 8 * + 55
----
-440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT - COUNT( * ) DIV + 51 + + 47 col1
----
47

skipif mysql # not compatible
query I rowsort label-3971
SELECT - COUNT ( * ) / + 51 + + 47 col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3972
SELECT SUM( 6 ) * CAST( NULL AS SIGNED ) * 5 * - 30 / + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT SUM ( 6 ) * CAST ( NULL AS INTEGER ) * 5 * - 30 / + 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT - COUNT( * ) * NULLIF ( - + COALESCE ( + - COALESCE ( - 26, 20 ), - 74 * 71 + 33, 86 ), - 69 ) + + 96 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-3973
SELECT - COUNT ( * ) * NULLIF ( - + COALESCE ( + - COALESCE ( - 26, 20 ), - 74 * 71 + 33, 86 ), - 69 ) + + 96 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL - COUNT( * ) * - 27 + + 39
----
66

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - COUNT ( * ) * - 27 + + 39
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT COALESCE ( + - 54, - - 78 * + + CAST( + COALESCE ( + COUNT( DISTINCT 33 ), 37 + 92 ) AS SIGNED ), 41 ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-3975
SELECT COALESCE ( + - 54, - - 78 * + + CAST ( + COALESCE ( + COUNT ( DISTINCT 33 ), 37 + 92 ) AS INTEGER ), 41 ) col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL 33 * + 37 + + + COUNT( * ) + - - 99
----
1321

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL 33 * + 37 + + + COUNT ( * ) + - - 99
----
1321

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL 1 * SUM( 95 ) * 22 + 32 AS col0
----
2122

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL 1 * SUM ( 95 ) * 22 + 32 AS col0
----
2122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3978
SELECT - 39 * + ( + 46 ) * ( COUNT( * ) ) / + 74 * + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + + COUNT( + 86 ) * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT - 39 * + ( + 46 ) * ( COUNT ( * ) ) / + 74 * + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + + COUNT ( + 86 ) * 35 AS col1
----
NULL

query I rowsort
SELECT - 51 * - + ( 33 ) + - - 79
----
1762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3980
SELECT ALL - 34 * + + COUNT( * ) + - 39 DIV + + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - 34 * + + COUNT ( * ) + - 39 / + + COUNT ( * ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT ALL 76 * - CASE + CAST( NULL AS SIGNED ) WHEN + ( - + NULLIF ( - + CASE - 55 WHEN 23 THEN 31 END, CASE 12 WHEN 93 THEN - 93 WHEN - 5 + 34 THEN NULL ELSE - ( + 38 ) * - 51 + - 66 * 69 END ) ) THEN + 59 * - CASE MAX( 35 ) WHEN 98 THEN 52 * + 3 WHEN 6 + - 4 THEN NULL END WHEN - 53 * + 32 THEN - 76 + - COUNT( * ) END + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL 76 * - CASE + CAST ( NULL AS INTEGER ) WHEN + ( - + NULLIF ( - + CASE - 55 WHEN 23 THEN 31 END, CASE 12 WHEN 93 THEN - 93 WHEN - 5 + 34 THEN NULL ELSE - ( + 38 ) * - 51 + - 66 * 69 END ) ) THEN + 59 * - CASE MAX ( 35 ) WHEN 98 THEN 52 * + 3 WHEN 6 + - 4 THEN NULL END WHEN - 53 * + 32 THEN - 76 + - COUNT ( * ) END + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3982
SELECT - COUNT( * ) + + + 96 + - - 47 DIV + + 81
----
95

skipif mysql # not compatible
query I rowsort label-3982
SELECT - COUNT ( * ) + + + 96 + - - 47 / + + 81
----
95

query I rowsort
SELECT ALL + ( - 79 ) + 3
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT - 5 - - COALESCE ( 31, - + COUNT( * ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - 5 - - COALESCE ( 31, - + COUNT ( * ) ) AS col2
----
26

query II rowsort
SELECT ALL 47 - - 55 AS col2, + 3
----
102
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT + MAX( - + 35 ) + 94 + 60 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-3986
SELECT + MAX ( - + 35 ) + 94 + 60 AS col2
----
119

query II rowsort
SELECT + 29 + - 8 AS col0, - 35
----
21
-35

query I rowsort
SELECT + COALESCE ( + - NULLIF ( - + 61, 85 ), - - 67 + - + 44 + - 81 ) + - 92 AS col0
----
-31

query I rowsort
SELECT + 76 * + 94 AS col1
----
7144

query I rowsort
SELECT + 82 + - ( + 70 ) AS col0
----
12

query I rowsort
SELECT DISTINCT 46 - + 64 col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT ALL COALESCE ( + 49, 3, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - - 68
----
3332

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL COALESCE ( + 49, 3, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - - 68
----
3332

query I rowsort
SELECT ALL - 66 * 80 * ( - 16 )
----
84480

query I rowsort
SELECT + + 60 * 47 col2
----
2820

query I rowsort
SELECT ALL 70 * - + 38 + 51 AS col0
----
-2609

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT - COALESCE ( - 99, + - ( - - COUNT( * ) ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT - COALESCE ( - 99, + - ( - - COUNT ( * ) ) ) AS col1
----
99

query I rowsort
SELECT + + 58 * - 72 * + 40 * + 94 col1
----
-15701760

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - - 77 + - 43 * 69 * - COUNT( * ) + - 36 + + 26 + - 68 - 50 * - 85 AS col1
----
7216

skipif mysql # not compatible
query I rowsort label-3998
SELECT - - 77 + - 43 * 69 * - COUNT ( * ) + - 36 + + 26 + - 68 - 50 * - 85 AS col1
----
7216

query I rowsort
SELECT DISTINCT - 72 + 26 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT - + COALESCE ( + 19, CAST( - COUNT( * ) AS SIGNED ) * + 34 * - - 80 * - COUNT( * ) ) * + 59 AS col0
----
-1121

skipif mysql # not compatible
query I rowsort label-4000
SELECT - + COALESCE ( + 19, CAST ( - COUNT ( * ) AS INTEGER ) * + 34 * - - 80 * - COUNT ( * ) ) * + 59 AS col0
----
-1121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4001
SELECT ALL + 77 DIV + 86 * - COUNT( * ) + - CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + 77 / + 86 * - COUNT ( * ) + - CAST ( + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT 33 * 68 - + COUNT( * )
----
2243

skipif mysql # not compatible
query I rowsort label-4002
SELECT 33 * 68 - + COUNT ( * )
----
2243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4003
SELECT DISTINCT NULLIF ( + 89, + + NULLIF ( CASE 31 WHEN + + 38 THEN 88 WHEN - 62 - COUNT( * ) THEN NULL WHEN 86 DIV + 84 THEN + CAST( NULL AS SIGNED ) * 28 END, + 48 * 5 ) ) DIV - 78 + + 93
----
92

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT NULLIF ( + 89, + + NULLIF ( CASE 31 WHEN + + 38 THEN 88 WHEN - 62 - COUNT ( * ) THEN NULL WHEN 86 / + 84 THEN + CAST ( NULL AS INTEGER ) * 28 END, + 48 * 5 ) ) / - 78 + + 93
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4004
SELECT DISTINCT - - CAST( COUNT( * ) AS SIGNED ) DIV - + 80 + - + 84 + 61
----
-23

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) / - + 80 + - + 84 + 61
----
-23

query I rowsort
SELECT ALL - - 13 * - + 25 + 59 col2
----
-266

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT DISTINCT + - 89 DIV + - 4 - 77 + + 39
----
-16

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT + - 89 / + - 4 - 77 + + 39
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4007
SELECT ALL + 19 DIV - 89 + + 93 + + COUNT( * ) * - - COUNT( * ) AS col2, + 47 * 95 + - 49 * 11 AS col2
----
94
3926

skipif mysql # not compatible
query II rowsort label-4007
SELECT ALL + 19 / - 89 + + 93 + + COUNT ( * ) * - - COUNT ( * ) AS col2, + 47 * 95 + - 49 * 11 AS col2
----
94
3926

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT ALL CAST( NULL AS SIGNED ) / + 59 + ( + 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL CAST ( NULL AS INTEGER ) / + 59 + ( + 91 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT ALL - 87 * + 38 * - + MAX( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - 87 * + 38 * - + MAX ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT - ( + COUNT( * ) ) DIV + 51 + + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-4010
SELECT - ( + COUNT ( * ) ) / + 51 + + - 56
----
-56

query I rowsort
SELECT ALL + 6 * - ( - - 32 ) + 84 AS col1
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT - 7 DIV - 15 col2
----
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT - 7 / - 15 col2
----
0

query I rowsort
SELECT ( + + 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT + SUM( ALL - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-4014
SELECT + SUM ( ALL - 10 )
----
-10

query I rowsort
SELECT ALL + ( + - COALESCE ( + - 51, - + 98 ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL + COUNT( * ) * + 8 - + + 54 + + 59 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL + COUNT ( * ) * + 8 - + + 54 + + 59 AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT ALL - 1 DIV + 60 * + - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL - 1 / + 60 * + - 25 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + SUM( + + COALESCE ( - 39, + 94, + 99 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-4018
SELECT + SUM ( + + COALESCE ( - 39, + 94, + 99 ) )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT NULLIF ( + 53, + - 4 ), COUNT( * ) AS col2
----
53
1

skipif mysql # not compatible
query II rowsort label-4019
SELECT NULLIF ( + 53, + - 4 ), COUNT ( * ) AS col2
----
53
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT DISTINCT CAST( - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT CAST ( - 97 AS INTEGER )
----
-97

query I rowsort
SELECT ALL - 29 * - - 64 AS col0
----
-1856

onlyif mysql # aggregate syntax: 
query II rowsort label-4022
SELECT COUNT( * ) col1, + 31 * 24 * 33 * - - 2 + - 93 * + + 77 * - 18 * COUNT( * )
----
1
178002

skipif mysql # not compatible
query II rowsort label-4022
SELECT COUNT ( * ) col1, + 31 * 24 * 33 * - - 2 + - 93 * + + 77 * - 18 * COUNT ( * )
----
1
178002

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT + 14 * - COUNT( * ) - - 48
----
34

skipif mysql # not compatible
query I rowsort label-4023
SELECT + 14 * - COUNT ( * ) - - 48
----
34

query I rowsort
SELECT ALL 64 * + 11
----
704

query I rowsort
SELECT ALL - 29 * 46 AS col1
----
-1334

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL SUM( + - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL SUM ( + - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + + 98 - + COUNT( * ) - MIN( + - 30 ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-4027
SELECT + + 98 - + COUNT ( * ) - MIN ( + - 30 ) AS col2
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT + - 23 - - 3 DIV + NULLIF ( 13, - 69 * - - ( - 7 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-4028
SELECT + - 23 - - 3 / + NULLIF ( 13, - 69 * - - ( - 7 ) )
----
-23

query II rowsort
SELECT - 66 AS col1, + 87 AS col0
----
-66
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4030
SELECT + + 48 + + 59 + - + 83 * 7 DIV + - CAST( 17 AS SIGNED ) + - 76 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4030
SELECT + + 48 + + 59 + - + 83 * 7 / + - CAST ( 17 AS INTEGER ) + - 76 AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4031
SELECT ALL - 43 + + + 42 - 25 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL - 43 + + + 42 - 25 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 93 + + - 39
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4033
SELECT ALL 70 + 89 DIV 83 + 69 + - SUM( 86 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL 70 + 89 / 83 + 69 + - SUM ( 86 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT DISTINCT NULLIF ( ( + 85 ), - 66 ) * + CAST( + CAST( - 88 AS SIGNED ) AS SIGNED )
----
-7480

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT NULLIF ( ( + 85 ), - 66 ) * + CAST ( + CAST ( - 88 AS INTEGER ) AS INTEGER )
----
-7480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT 39 + + 38 + + ( COALESCE ( - 69, - 50 + + COUNT( * ) + - + 86 + + COALESCE ( CAST( NULL AS SIGNED ), - ( + 70 ) ) ) ) * 40 AS col1
----
-2683

skipif mysql # not compatible
query I rowsort label-4035
SELECT 39 + + 38 + + ( COALESCE ( - 69, - 50 + + COUNT ( * ) + - + 86 + + COALESCE ( CAST ( NULL AS INTEGER ), - ( + 70 ) ) ) ) * 40 AS col1
----
-2683

query I rowsort
SELECT ALL + 2 + 92 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + COALESCE ( + 96, 30 ) + - + SUM( DISTINCT - + 7 ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + COALESCE ( + 96, 30 ) + - + SUM ( DISTINCT - + 7 ) AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4038
SELECT - 73 DIV - - 30 + COUNT( - 69 ) + + 40 DIV + 7 + + 99 + 33
----
136

skipif mysql # not compatible
query I rowsort label-4038
SELECT - 73 / - - 30 + COUNT ( - 69 ) + + 40 / + 7 + + 99 + 33
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT 62 + MIN( + 27 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4039
SELECT 62 + MIN ( + 27 ) AS col2
----
89

query I rowsort
SELECT DISTINCT 26 + 60
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL ( CASE - 71 WHEN + NULLIF ( ( - COUNT( * ) ), - - 70 + + + 34 ) THEN 16 ELSE NULL END ) + + 11 * + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL ( CASE - 71 WHEN + NULLIF ( ( - COUNT ( * ) ), - - 70 + + + 34 ) THEN 16 ELSE NULL END ) + + 11 * + 49 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4042
SELECT 43 * - - 94 AS col1, 36 * + 28 + 32 + - 2 DIV - 50 AS col1
----
4042
1040

skipif mysql # not compatible
query II rowsort label-4042
SELECT 43 * - - 94 AS col1, 36 * + 28 + 32 + - 2 / - 50 AS col1
----
4042
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT MIN( DISTINCT + - 31 ) * - - 19 * 31 + + + 77
----
-18182

skipif mysql # not compatible
query I rowsort label-4043
SELECT MIN ( DISTINCT + - 31 ) * - - 19 * 31 + + + 77
----
-18182

query I rowsort
SELECT DISTINCT - 14 * 34
----
-476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4045
SELECT ALL - COALESCE ( + 59, - + 59 - + + CAST( NULL AS SIGNED ) * 19 * + + 49 )
----
-59

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL - COALESCE ( + 59, - + 59 - + + CAST ( NULL AS INTEGER ) * 19 * + + 49 )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT ALL - 5 * 37, + MAX( DISTINCT 19 ) * COUNT( * ) + + - 25 AS col2
----
-185
-6

skipif mysql # not compatible
query II rowsort label-4046
SELECT ALL - 5 * 37, + MAX ( DISTINCT 19 ) * COUNT ( * ) + + - 25 AS col2
----
-185
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT 68 * NULLIF ( - - NULLIF ( 72, - 83 / 32 ), + - ( CAST( NULL AS SIGNED ) ) * - + 64 * - 37 - 66 / 54 ) * - 18 AS col2
----
-88128

skipif mysql # not compatible
query I rowsort label-4047
SELECT 68 * NULLIF ( - - NULLIF ( 72, - 83 / 32 ), + - ( CAST ( NULL AS INTEGER ) ) * - + 64 * - 37 - 66 / 54 ) * - 18 AS col2
----
-88128

query I rowsort
SELECT 74 + + 42 + 0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL - NULLIF ( 85, - + COUNT( * ) * + COUNT( * ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL - NULLIF ( 85, - + COUNT ( * ) * + COUNT ( * ) ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT DISTINCT + 88 * - 12 AS col2, MIN( ALL + 67 )
----
-1056
67

skipif mysql # not compatible
query II rowsort label-4050
SELECT DISTINCT + 88 * - 12 AS col2, MIN ( ALL + 67 )
----
-1056
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT 74 + 20 DIV - - 7 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4051
SELECT 74 + 20 / - - 7 AS col2
----
76

query II rowsort
SELECT 9 - + - 20, 18 - + ( 93 ) AS col2
----
29
-75

query I rowsort
SELECT ALL - COALESCE ( - - 59, 0 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT + 48 * 22 + + - 75 * + - COUNT( * ) col0
----
1131

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 48 * 22 + + - 75 * + - COUNT ( * ) col0
----
1131

query I rowsort
SELECT ALL 76 * + 24 AS col0
----
1824

query I rowsort
SELECT ALL - 43 * 26
----
-1118

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT DISTINCT + ( + + 33 ) DIV - + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT + ( + + 33 ) / - + 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT 59 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT 59 / - + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT + CASE + + 68 WHEN - CAST( - 62 AS SIGNED ) THEN + 9 ELSE NULL END + + 19 + + 13 + + + 72 - + CAST( NULL AS SIGNED ) + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT + CASE + + 68 WHEN - CAST ( - 62 AS INTEGER ) THEN + 9 ELSE NULL END + + 19 + + 13 + + + 72 - + CAST ( NULL AS INTEGER ) + 3 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT - - COALESCE ( - 63, + 7, 84 DIV - 77 )
----
-63

skipif mysql # not compatible
query I rowsort label-4060
SELECT - - COALESCE ( - 63, + 7, 84 / - 77 )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4061
SELECT + CAST( NULL AS SIGNED ) * - 71 AS col1, 43 + + 84 AS col0
----
NULL
127

skipif mysql # not compatible
query II rowsort label-4061
SELECT + CAST ( NULL AS INTEGER ) * - 71 AS col1, 43 + + 84 AS col0
----
NULL
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4062
SELECT - COUNT( * ) + + 15 + - - 63 + 25 * - CASE COALESCE ( 54, 14, CAST( - 0 AS SIGNED ) ) WHEN - 38 THEN - 17 * 97 ELSE 11 * + 16 END
----
-4323

skipif mysql # not compatible
query I rowsort label-4062
SELECT - COUNT ( * ) + + 15 + - - 63 + 25 * - CASE COALESCE ( 54, 14, CAST ( - 0 AS INTEGER ) ) WHEN - 38 THEN - 17 * 97 ELSE 11 * + 16 END
----
-4323

query II rowsort
SELECT 15 * + - 30, 63 - ( - 25 ) AS col2
----
-450
88

query I rowsort
SELECT ALL + - 42 + + 66 * + + 44
----
2862

query II rowsort
SELECT DISTINCT - 53 * - + 87 col2, - 65
----
4611
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL - COUNT( * ) + - 61 * - 94
----
5733

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - COUNT ( * ) + - 61 * - 94
----
5733

query I rowsort
SELECT - + NULLIF ( - 53, + + 22 + + - COALESCE ( + 17, + 75 * - ( - - ( + ( + 69 ) ) ) * - 10 ) + 24 / + 54 * 54 )
----
53

query I rowsort
SELECT ALL - + 30 * - 41 - + - 73 col1
----
1303

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT 18 * + - COUNT( * ) * + 34 * 59 + - - MIN( DISTINCT - 62 ) AS col1
----
-36170

skipif mysql # not compatible
query I rowsort label-4069
SELECT 18 * + - COUNT ( * ) * + 34 * 59 + - - MIN ( DISTINCT - 62 ) AS col1
----
-36170

query I rowsort
SELECT ALL 78 * - 56 * - 32 AS col0
----
139776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4071
SELECT 9 DIV + COUNT( * ) - + 7 + 1 DIV + + 4 * 98 * + 8 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4071
SELECT 9 / + COUNT ( * ) - + 7 + 1 / + + 4 * 98 * + 8 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT ALL - COUNT( * ) * COUNT( * ) - COUNT( * ) + + NULLIF ( + 83, - - 53 - - CAST( NULL AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL - COUNT ( * ) * COUNT ( * ) - COUNT ( * ) + + NULLIF ( + 83, - - 53 - - CAST ( NULL AS INTEGER ) )
----
81

query I rowsort
SELECT DISTINCT 72 * + 11 * + 58 AS col0
----
45936

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4074
SELECT ALL - COUNT( * ), + COUNT( * ) + + 65 * + - 37 + - 9 + + 52 DIV 13 * + 26 * 99 + 52 AS col0
----
-1
7935

skipif mysql # not compatible
query II rowsort label-4074
SELECT ALL - COUNT ( * ), + COUNT ( * ) + + 65 * + - 37 + - 9 + + 52 / 13 * + 26 * 99 + 52 AS col0
----
-1
7935

query I rowsort
SELECT ALL 42 * 99 AS col2
----
4158

query I rowsort
SELECT DISTINCT 1 * - 52
----
-52

query I rowsort
SELECT 78 * + 7 * ( + 82 ) col0
----
44772

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT MAX( + - 55 ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-4078
SELECT MAX ( + - 55 ) col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT MAX( ALL + 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4079
SELECT MAX ( ALL + 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT 36 * + MAX( - 98 ) AS col1
----
-3528

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT 36 * + MAX ( - 98 ) AS col1
----
-3528

query I rowsort
SELECT 3 * - 80 AS col0
----
-240

query I rowsort
SELECT DISTINCT 0 * + 99 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4083
SELECT CASE + 59 WHEN 50 - - 19 THEN + 94 END * CAST( NULL AS DECIMAL ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT CASE + 59 WHEN 50 - - 19 THEN + 94 END * CAST ( NULL AS REAL ) * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + NULLIF ( + + NULLIF ( COUNT( ALL + - 76 ), + 75 * + - 97 - 4 ), - 61 + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4084
SELECT + NULLIF ( + + NULLIF ( COUNT ( ALL + - 76 ), + 75 * + - 97 - 4 ), - 61 + + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL 29 + + - 36 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4086
SELECT DISTINCT 87 + 27 * + MAX( ALL + CAST( NULL AS SIGNED ) ) + + MIN( - + 57 ) + COUNT( * ) + - 85 + + - COALESCE ( - - 97, CAST( NULL AS SIGNED ) ) * 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT 87 + 27 * + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + MIN ( - + 57 ) + COUNT ( * ) + - 85 + + - COALESCE ( - - 97, CAST ( NULL AS INTEGER ) ) * 24 AS col1
----
NULL

query I rowsort
SELECT 5 * + ( 23 ) - 6 col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT DISTINCT CAST( - 2 AS SIGNED ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT CAST ( - 2 AS INTEGER ) col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL + - 7 + COUNT( * ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + - 7 + COUNT ( * ) col0
----
-6

query I rowsort
SELECT ALL + 15 + + 51 col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT - - 46 + 48 - + CAST( NULL AS SIGNED ) + - CASE + - COUNT( * ) WHEN + 41 + - 48 THEN COUNT( * ) * - - 53 * - 0 WHEN + 92 + 97 THEN 45 * 98 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT - - 46 + 48 - + CAST ( NULL AS INTEGER ) + - CASE + - COUNT ( * ) WHEN + 41 + - 48 THEN COUNT ( * ) * - - 53 * - 0 WHEN + 92 + 97 THEN 45 * 98 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 34, - 14 / + 16 ) AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4093
SELECT 11 AS col0, - 52 DIV + MIN( + + ( + + ( + 22 ) ) ) + COUNT( * ) AS col2
----
11
-1

skipif mysql # not compatible
query II rowsort label-4093
SELECT 11 AS col0, - 52 / + MIN ( + + ( + + ( + 22 ) ) ) + COUNT ( * ) AS col2
----
11
-1

query I rowsort
SELECT DISTINCT 48 * 23 * + ( - - 47 ) col1
----
51888

query I rowsort
SELECT ALL + 60 + - - 51 AS col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4096
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + NULLIF ( + 94, + 5 ) * + CAST( NULL AS SIGNED ) + - 20 + 56 * - ( + ( - MIN( DISTINCT 85 ) ) ) * - 40 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( + 94, + 5 ) * + CAST ( NULL AS INTEGER ) + - 20 + 56 * - ( + ( - MIN ( DISTINCT 85 ) ) ) * - 40 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT + + 65 - + CASE 96 WHEN + 0 / + COUNT( * ) * - 15 - - 47 * - 43 THEN + - ( COALESCE ( 38, - 55 * 26, - 56 / + AVG ( DISTINCT - 5 ) + - 96 ) ) WHEN - 44 + - ( - 32 ) THEN NULL END + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + + 65 - + CASE 96 WHEN + 0 / + COUNT ( * ) * - 15 - - 47 * - 43 THEN + - ( COALESCE ( 38, - 55 * 26, - 56 / + AVG ( DISTINCT - 5 ) + - 96 ) ) WHEN - 44 + - ( - 32 ) THEN NULL END + 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4098
SELECT - 49 + 34 + + ( + + CASE + 71 WHEN + 92 THEN NULL WHEN - CASE - CAST( 46 AS SIGNED ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN CASE 55 WHEN + 79 THEN NULL WHEN AVG ( 34 ) - 39 * - 20 THEN - 62 END DIV - 6 THEN NULL ELSE + 40 * - 89 END + 38 THEN + COUNT( * ) * + 26 ELSE + 61 * ( + 59 DIV + 27 ) + 85 END ) AS col2
----
192

skipif mysql # not compatible
query I rowsort label-4098
SELECT - 49 + 34 + + ( + + CASE + 71 WHEN + 92 THEN NULL WHEN - CASE - CAST ( 46 AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN CASE 55 WHEN + 79 THEN NULL WHEN AVG ( 34 ) - 39 * - 20 THEN - 62 END / - 6 THEN NULL ELSE + 40 * - 89 END + 38 THEN + COUNT ( * ) * + 26 ELSE + 61 * ( + 59 / + 27 ) + 85 END ) AS col2
----
192

query I rowsort
SELECT - 18 - + - 91
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4100
SELECT 54, CAST( + 48 AS SIGNED ) * - 57 AS col1
----
54
-2736

skipif mysql # not compatible
query II rowsort label-4100
SELECT 54, CAST ( + 48 AS INTEGER ) * - 57 AS col1
----
54
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - COUNT( * ) + - 95 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4101
SELECT - COUNT ( * ) + - 95 AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT - + 19 * CAST( 51 AS SIGNED )
----
-969

skipif mysql # not compatible
query I rowsort label-4102
SELECT - + 19 * CAST ( 51 AS INTEGER )
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - + COUNT( * ) * 50 + - 66
----
-116

skipif mysql # not compatible
query I rowsort label-4103
SELECT - + COUNT ( * ) * 50 + - 66
----
-116

query I rowsort
SELECT ALL + 8 * 1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - - ( + 28 ) + + - SUM( 7 ) - + 12 * + ( + 25 ) * MAX( ALL 34 ) - 54 AS col1
----
-10233

skipif mysql # not compatible
query I rowsort label-4105
SELECT - - ( + 28 ) + + - SUM ( 7 ) - + 12 * + ( + 25 ) * MAX ( ALL 34 ) - 54 AS col1
----
-10233

query I rowsort
SELECT ALL + + 52 * + - 67
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - COUNT( * ) + + 9 * - 35
----
-316

skipif mysql # not compatible
query I rowsort label-4107
SELECT - COUNT ( * ) + + 9 * - 35
----
-316

query II rowsort
SELECT ALL 55 * - 90 AS col1, 81 * 95
----
-4950
7695

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL + ( - 3 ) * + - COUNT( * ) * - 75 AS col2
----
-225

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + ( - 3 ) * + - COUNT ( * ) * - 75 AS col2
----
-225

query I rowsort
SELECT ALL + 14 * + 37
----
518

query I rowsort
SELECT + 89 + + ( 45 ) col2
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4112
SELECT DISTINCT + CAST( NULL AS SIGNED ), 73 AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-4112
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 73 AS col0
----
NULL
73

query I rowsort
SELECT + 34 * + 22 * 49 + 40 AS col2
----
36692

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT + 83 DIV 58 * + 41
----
41

skipif mysql # not compatible
query I rowsort label-4114
SELECT + 83 / 58 * + 41
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT ALL SUM( DISTINCT - + 16 ) DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL SUM ( DISTINCT - + 16 ) / + 62
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT + COUNT( * ) AS col1, 83 + + + 49 col0
----
1
132

skipif mysql # not compatible
query II rowsort label-4116
SELECT + COUNT ( * ) AS col1, 83 + + + 49 col0
----
1
132

onlyif mysql # DIV for integer division: 
query II rowsort label-4117
SELECT ( - + 70 ) DIV - 8 + + 89 col2, 49 AS col2
----
97
49

skipif mysql # not compatible
query II rowsort label-4117
SELECT ( - + 70 ) / - 8 + + 89 col2, 49 AS col2
----
97
49

query I rowsort
SELECT ALL NULLIF ( + 22, - NULLIF ( CASE 34 WHEN - AVG ( - + ( - 28 ) ) THEN + 70 WHEN + 73 * - + 90 THEN NULL WHEN 12 * 10 THEN NULL ELSE NULL END, 23 ) + - 55 ) * ( 18 )
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4119
SELECT ALL - 50 * + + ( + + 7 ) * + + 64 + 5 - - 35 - + 26 + + 98 - 17 * + CASE COALESCE ( COUNT( * ), + 83 ) WHEN - 68 * + 22 THEN 40 - 63 WHEN - 82 THEN NULL WHEN 90 THEN - COUNT( * ) + - ( 36 + 69 * - COUNT( * ) ) END / MAX( ALL - CAST( 7 AS SIGNED ) ) + + CASE + 56 WHEN COUNT( * ) * - 27 THEN - COUNT( * ) * 33 ELSE NULL END * - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - 50 * + + ( + + 7 ) * + + 64 + 5 - - 35 - + 26 + + 98 - 17 * + CASE COALESCE ( COUNT ( * ), + 83 ) WHEN - 68 * + 22 THEN 40 - 63 WHEN - 82 THEN NULL WHEN 90 THEN - COUNT ( * ) + - ( 36 + 69 * - COUNT ( * ) ) END / MAX ( ALL - CAST ( 7 AS INTEGER ) ) + + CASE + 56 WHEN COUNT ( * ) * - 27 THEN - COUNT ( * ) * 33 ELSE NULL END * - 94 AS col1
----
NULL

query I rowsort
SELECT + 41 + - + 8 + - CASE - 8 WHEN + 29 THEN + 54 / + 92 ELSE NULL END + + 58
----
NULL

query I rowsort
SELECT NULLIF ( + 35, 77 + - 17 + 17 * - 13 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT 71 * - 49 + - + 13 * - CAST( NULL AS SIGNED ) + - + 27 * + - 81 - 80 - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT 71 * - 49 + - + 13 * - CAST ( NULL AS INTEGER ) + - + 27 * + - 81 - 80 - 56 AS col2
----
NULL

query I rowsort
SELECT ALL - 46 * - 86 + + - 20 AS col1
----
3936

query II rowsort
SELECT ALL + 86 * - 40 AS col0, 79 col1
----
-3440
79

query II rowsort
SELECT ALL + + 97, 84 AS col1
----
97
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4126
SELECT 7, NULLIF ( - COUNT( * ), + 86 * ( 68 ) * - 71 + 11 * + CASE 87 WHEN - 14 * + 9 THEN 43 + + 41 * 83 WHEN + 36 THEN NULL ELSE - 32 + + 71 END + COALESCE ( - 74 + 21, 91 ) * 62 ) * + 22 AS col1
----
7
-22

skipif mysql # not compatible
query II rowsort label-4126
SELECT 7, NULLIF ( - COUNT ( * ), + 86 * ( 68 ) * - 71 + 11 * + CASE 87 WHEN - 14 * + 9 THEN 43 + + 41 * 83 WHEN + 36 THEN NULL ELSE - 32 + + 71 END + COALESCE ( - 74 + 21, 91 ) * 62 ) * + 22 AS col1
----
7
-22

query I rowsort
SELECT DISTINCT + - 4 * 31
----
-124

query II rowsort
SELECT 13 col0, 48
----
13
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4129
SELECT DISTINCT + + 59 * + - 93 - + COUNT( 38 ) AS col1, - 27 DIV + 1 col1
----
-5488
-27

skipif mysql # not compatible
query II rowsort label-4129
SELECT DISTINCT + + 59 * + - 93 - + COUNT ( 38 ) AS col1, - 27 / + 1 col1
----
-5488
-27

query I rowsort
SELECT - + 34 + 47
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4131
SELECT ( COALESCE ( CAST( NULL AS SIGNED ), + 78 DIV + COUNT( * ) ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4131
SELECT ( COALESCE ( CAST ( NULL AS INTEGER ), + 78 / + COUNT ( * ) ) ) AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT - - 59 + - 16 DIV - + COALESCE ( 72, - + MAX( DISTINCT 70 ) ) * - 49 + + 46
----
105

skipif mysql # not compatible
query I rowsort label-4132
SELECT - - 59 + - 16 / - + COALESCE ( 72, - + MAX ( DISTINCT 70 ) ) * - 49 + + 46
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT + - 48 / + CASE 9 WHEN + 14 * + COALESCE ( COUNT( * ), + - 41 ) + + COUNT( * ) * - + 42 * ( - 3 ) / - 17 + ( - COUNT( * ) - 59 * - ( ( - 11 ) * + ( + 75 / 80 ) ) ) THEN NULL WHEN 91 THEN + COALESCE ( + 33, - COALESCE ( ( 7 ), COUNT( * ), - COUNT( ( 39 ) ) + - COUNT( * ) ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT + - 48 / + CASE 9 WHEN + 14 * + COALESCE ( COUNT ( * ), + - 41 ) + + COUNT ( * ) * - + 42 * ( - 3 ) / - 17 + ( - COUNT ( * ) - 59 * - ( ( - 11 ) * + ( + 75 / 80 ) ) ) THEN NULL WHEN 91 THEN + COALESCE ( + 33, - COALESCE ( ( 7 ), COUNT ( * ), - COUNT ( ( 39 ) ) + - COUNT ( * ) ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 37 - - 4 col2
----
41

query I rowsort
SELECT DISTINCT - 10 * 95 * 16
----
-15200

onlyif mysql # aggregate syntax: 
query III rowsort label-4136
SELECT - 42 col0, - 23 * MAX( DISTINCT + - 29 ) col0, - 0 * NULLIF ( + 52, MIN( - - 43 ) ) AS col1
----
-42
667
0

skipif mysql # not compatible
query III rowsort label-4136
SELECT - 42 col0, - 23 * MAX ( DISTINCT + - 29 ) col0, - 0 * NULLIF ( + 52, MIN ( - - 43 ) ) AS col1
----
-42
667
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT ALL + 81, - COUNT( * ) + + 40 * - 46 AS col1
----
81
-1841

skipif mysql # not compatible
query II rowsort label-4137
SELECT ALL + 81, - COUNT ( * ) + + 40 * - 46 AS col1
----
81
-1841

query I rowsort
SELECT - 92 * + 20 + 60 + + ( 42 )
----
-1738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4139
SELECT + COUNT( COALESCE ( - 9, - 61 ) ) + + 22 + - 37 + - - 7 DIV COUNT( * ) * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4139
SELECT + COUNT ( COALESCE ( - 9, - 61 ) ) + + 22 + - 37 + - - 7 / COUNT ( * ) * + COUNT ( * )
----
-7

query II rowsort
SELECT + COALESCE ( + ( + 54 ), + - 14, 64 ) * 50 + - 79, 72 AS col2
----
2621
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT - CAST( NULL AS SIGNED ) + - + 23 * - MIN( 50 ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT - CAST ( NULL AS INTEGER ) + - + 23 * - MIN ( 50 ) + + 64
----
NULL

query I rowsort
SELECT DISTINCT + 1 + 75
----
76

query I rowsort
SELECT ALL + 83 + - ( 61 ) AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4144
SELECT 84 DIV + MAX( 76 ) - 69
----
-68

skipif mysql # not compatible
query I rowsort label-4144
SELECT 84 / + MAX ( 76 ) - 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL + MIN( ( + 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL + MIN ( ( + 66 ) )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4146
SELECT ALL 17 DIV + 85 + + 98 + + 32 * + CASE - + 31 WHEN + 89 * + 60 - + 74 * + COALESCE ( + CASE + 35 WHEN 50 * - SUM( - 89 * NULLIF ( 99, 76 ) ) THEN NULL ELSE 84 * - 59 END, 55, + 67, + 82 DIV - 58 ) * + MIN( 18 ) + COUNT( * ) THEN NULL ELSE - 33 * - 73 - 20 END - - 15 * + 8
----
76666

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL 17 / + 85 + + 98 + + 32 * + CASE - + 31 WHEN + 89 * + 60 - + 74 * + COALESCE ( + CASE + 35 WHEN 50 * - SUM ( - 89 * NULLIF ( 99, 76 ) ) THEN NULL ELSE 84 * - 59 END, 55, + 67, + 82 / - 58 ) * + MIN ( 18 ) + COUNT ( * ) THEN NULL ELSE - 33 * - 73 - 20 END - - 15 * + 8
----
76666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4147
SELECT ALL - 6 DIV + - 81 * + 61 * + 85 + 83 * - - COUNT( * ) + + 20 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - 6 / + - 81 * + 61 * + 85 + 83 * - - COUNT ( * ) + + 20 AS col1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT CAST( - - 60 AS SIGNED ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4148
SELECT CAST ( - - 60 AS INTEGER ) AS col0
----
60

query I rowsort
SELECT 99 * 57 AS col2
----
5643

query I rowsort
SELECT + - ( - + 97 ) AS col2
----
97

query II rowsort
SELECT DISTINCT + COALESCE ( - + 39, - NULLIF ( + - 84, + 3 ) + - - 46 ) + - 92 AS col0, - 84 * + 7
----
-131
-588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT NULLIF ( + CAST( - + ( COUNT( * ) ) AS SIGNED ), + 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-4152
SELECT NULLIF ( + CAST ( - + ( COUNT ( * ) ) AS INTEGER ), + 82 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT DISTINCT + CAST( 82 AS SIGNED ) * + ( - COALESCE ( - + 63, - 55 ) )
----
5166

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + CAST ( 82 AS INTEGER ) * + ( - COALESCE ( - + 63, - 55 ) )
----
5166

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT 60 * + + COUNT( * ) * + + 41 AS col0
----
2460

skipif mysql # not compatible
query I rowsort label-4154
SELECT 60 * + + COUNT ( * ) * + + 41 AS col0
----
2460

query I rowsort
SELECT ALL + 33 * ( - NULLIF ( + - 69, + 88 ) )
----
2277

query I rowsort
SELECT - ( 18 ) col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT 24 * COUNT( * ), 62 * + - 29 AS col2
----
24
-1798

skipif mysql # not compatible
query II rowsort label-4157
SELECT 24 * COUNT ( * ), 62 * + - 29 AS col2
----
24
-1798

query I rowsort
SELECT + 44 * + 63 - 18 AS col2
----
2754

query I rowsort
SELECT - 53 + + 18 AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT - 81 + + CAST( 75 AS SIGNED ) * 76 * + 52
----
296319

skipif mysql # not compatible
query I rowsort label-4160
SELECT - 81 + + CAST ( 75 AS INTEGER ) * 76 * + 52
----
296319

query I rowsort
SELECT 41 + + - 54 + - 95 * + 45 AS col1
----
-4288

query I rowsort
SELECT ( - 89 ) - - 86 + - 52
----
-55

query I rowsort
SELECT 87 + + 63 AS col2
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4164
SELECT 94 DIV COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-4164
SELECT 94 / COUNT ( * )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4165
SELECT DISTINCT 13 + - CAST( NULLIF ( - 95, + 44 * + 10 * + AVG ( - 65 ) + - - NULLIF ( - SUM( ALL 76 ), - - 71 ) * - 90 ) AS SIGNED ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT 13 + - CAST ( NULLIF ( - 95, + 44 * + 10 * + AVG ( - 65 ) + - - NULLIF ( - SUM ( ALL 76 ), - - 71 ) * - 90 ) AS INTEGER ) AS col2
----
108

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4166
SELECT ALL 72 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL 72 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4167
SELECT 77 + + COUNT( - 77 ) AS col2, - 87 + - - CASE - COUNT( * ) WHEN - + 32 + + 26 + 23 - - ( + 85 ) THEN NULL ELSE CASE + 82 WHEN 45 + 24 THEN NULL WHEN - ( 55 ) * - 64 + + 30 THEN 76 + + 62 ELSE NULL END END * 4
----
78
NULL

skipif mysql # not compatible
query II rowsort label-4167
SELECT 77 + + COUNT ( - 77 ) AS col2, - 87 + - - CASE - COUNT ( * ) WHEN - + 32 + + 26 + 23 - - ( + 85 ) THEN NULL ELSE CASE + 82 WHEN 45 + 24 THEN NULL WHEN - ( 55 ) * - 64 + + 30 THEN 76 + + 62 ELSE NULL END END * 4
----
78
NULL

query I rowsort
SELECT DISTINCT 77 + - ( - 81 ) * 79
----
6476

onlyif mysql # aggregate syntax: 
query II rowsort label-4169
SELECT 98 AS col1, + MAX( 68 ) AS col0
----
98
68

skipif mysql # not compatible
query II rowsort label-4169
SELECT 98 AS col1, + MAX ( 68 ) AS col0
----
98
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4170
SELECT DISTINCT + COUNT( ( + ( + - 74 ) ) ) + - COUNT( * ) + - - 32 DIV + + COALESCE ( + + 13, + 19 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + COUNT ( ( + ( + - 74 ) ) ) + - COUNT ( * ) + - - 32 / + + COALESCE ( + + 13, + 19 ) AS col0
----
2

query II rowsort
SELECT 79 col1, 80 col1
----
79
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4172
SELECT DISTINCT - COUNT( * ) DIV - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - COUNT ( * ) / - 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT 22 + 94 * - 21 + + COUNT( * ) AS col0
----
-1951

skipif mysql # not compatible
query I rowsort label-4173
SELECT 22 + 94 * - 21 + + COUNT ( * ) AS col0
----
-1951

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4174
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - - CAST( - 17 AS SIGNED ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT - CAST ( NULL AS REAL ) * - - CAST ( - 17 AS INTEGER ) * + 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4175
SELECT - 92 DIV + COUNT( * ) + + 13 AS col2, + 47 AS col0
----
-79
47

skipif mysql # not compatible
query II rowsort label-4175
SELECT - 92 / + COUNT ( * ) + + 13 AS col2, + 47 AS col0
----
-79
47

query II rowsort
SELECT ALL - 80 AS col0, 50
----
-80
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4177
SELECT + COUNT( * ) + + - ( - 57 ) AS col1, - 23
----
58
-23

skipif mysql # not compatible
query II rowsort label-4177
SELECT + COUNT ( * ) + + - ( - 57 ) AS col1, - 23
----
58
-23

query I rowsort
SELECT DISTINCT + - 33 - + 85
----
-118

query I rowsort
SELECT DISTINCT - + 71 * - - 89 * 91 AS col1
----
-575029

query I rowsort
SELECT 59 + + 87 * + ( + 41 )
----
3626

query I rowsort
SELECT ALL - - 21 * - 48 AS col2
----
-1008

query I rowsort
SELECT - 85 + + - 88 + - 86 * + + 68 * 59
----
-345205

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4183
SELECT - COUNT( * ) DIV - MIN( DISTINCT - ( + + 70 ) ) * - 23 * COALESCE ( + 69, 83 ) AS col0, 32 * + 72 * + 75 * + 65
----
0
11232000

skipif mysql # not compatible
query II rowsort label-4183
SELECT - COUNT ( * ) / - MIN ( DISTINCT - ( + + 70 ) ) * - 23 * COALESCE ( + 69, 83 ) AS col0, 32 * + 72 * + 75 * + 65
----
0
11232000

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT - CASE + 91 WHEN 54 THEN ( + ( COUNT( * ) ) ) WHEN 92 + + - 60 THEN + 44 * + + 13 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - CASE + 91 WHEN 54 THEN ( + ( COUNT ( * ) ) ) WHEN 92 + + - 60 THEN + 44 * + + 13 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4185
SELECT ALL - CASE CAST( + + COUNT( * ) AS SIGNED ) WHEN 56 THEN 42 * - 40 WHEN - + 1 / - + 96 + + 71 + + - 67 THEN NULL WHEN - 76 THEN NULL ELSE + 57 END
----
-57

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - CASE CAST ( + + COUNT ( * ) AS INTEGER ) WHEN 56 THEN 42 * - 40 WHEN - + 1 / - + 96 + + 71 + + - 67 THEN NULL WHEN - 76 THEN NULL ELSE + 57 END
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL - 71 * - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL - 71 * - COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL + 60 * - COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + 60 * - COUNT ( * ) AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4188
SELECT 54 + - COUNT( * ) DIV - ( 29 )
----
54

skipif mysql # not compatible
query I rowsort label-4188
SELECT 54 + - COUNT ( * ) / - ( 29 )
----
54

query I rowsort
SELECT - 27 * - 26 + + 84 + + ( + 16 )
----
802

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT 56 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT 56 / 66
----
0

query I rowsort
SELECT - 1 + - 39
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - COUNT( - - 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4192
SELECT - COUNT ( - - 25 ) AS col1
----
-1

query I rowsort
SELECT 97 * - 4
----
-388

query I rowsort
SELECT ALL 72 + + 20 - + 38 + 76
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT ALL + 56 + - + CASE + CAST( NULL AS SIGNED ) WHEN - 20 THEN - - 16 END + 60 + + + ( 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + 56 + - + CASE + CAST ( NULL AS INTEGER ) WHEN - 20 THEN - - 16 END + 60 + + + ( 6 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4196
SELECT ALL 25 + + COUNT( * ), - 74 * - + COUNT( * ) + 67 + - + 31 AS col1
----
26
110

skipif mysql # not compatible
query II rowsort label-4196
SELECT ALL 25 + + COUNT ( * ), - 74 * - + COUNT ( * ) + 67 + - + 31 AS col1
----
26
110

query I rowsort
SELECT 87 * + 84 AS col2
----
7308

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL - 84 + + COUNT( * ) + 66 col2
----
-17

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - 84 + + COUNT ( * ) + 66 col2
----
-17

query I rowsort
SELECT DISTINCT 60 + - 40 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL COALESCE ( - + 9, + - 6 * 70 ) + + COUNT( * ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL COALESCE ( - + 9, + - 6 * 70 ) + + COUNT ( * ) col0
----
-8

query I rowsort
SELECT 77 + - + 43
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT COUNT( * ) * 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4202
SELECT COUNT ( * ) * 42 AS col1
----
42

query I rowsort
SELECT + 18 + + 46 AS col2
----
64

query I rowsort
SELECT DISTINCT 24 + - - 1 - + 55
----
-30

query I rowsort
SELECT - CASE ( + 79 ) WHEN - - 89 THEN - 64 WHEN 64 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT - 70 * - ( - - 6 ) * - 83 AS col1
----
-34860

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + 41 - 50 - + - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4207
SELECT + 41 - 50 - + - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT + 34 * + 13
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL + 76 * COUNT( * ) + + 94 - 91 - 40
----
39

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL + 76 * COUNT ( * ) + + 94 - 91 - 40
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT - + CASE - + 6 WHEN 84 - - 27 + + 13 THEN NULL WHEN - 86 THEN - 48 + + 59 ELSE - 50 END * + + COUNT( + 40 ) + 29 * + + MIN( + 30 ) * + 18
----
15710

skipif mysql # not compatible
query I rowsort label-4210
SELECT - + CASE - + 6 WHEN 84 - - 27 + + 13 THEN NULL WHEN - 86 THEN - 48 + + 59 ELSE - 50 END * + + COUNT ( + 40 ) + 29 * + + MIN ( + 30 ) * + 18
----
15710

query I rowsort
SELECT - 56 * + 69
----
-3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4212
SELECT ALL - 16 DIV + - COUNT( * ) + - 26 + + 28 AS col0, CASE - 20 WHEN + MAX( - 90 ) * 59 - - 42 * 71 + + CAST( 35 AS DECIMAL ) + + MAX( ALL + 88 ) THEN 93 WHEN + CASE - 79 WHEN + ( CAST( NULL AS SIGNED ) ) DIV 23 THEN - 75 ELSE 36 - + 87 * + 0 END THEN 89 * 0 ELSE 45 END AS col2
----
18
45

skipif mysql # not compatible
query II rowsort label-4212
SELECT ALL - 16 / + - COUNT ( * ) + - 26 + + 28 AS col0, CASE - 20 WHEN + MAX ( - 90 ) * 59 - - 42 * 71 + + CAST ( 35 AS REAL ) + + MAX ( ALL + 88 ) THEN 93 WHEN + CASE - 79 WHEN + ( CAST ( NULL AS INTEGER ) ) / 23 THEN - 75 ELSE 36 - + 87 * + 0 END THEN 89 * 0 ELSE 45 END AS col2
----
18
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL - + ( - 71 ) * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - + ( - 71 ) * COUNT ( * )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4214
SELECT + + ( 77 ) * CASE 44 WHEN - 46 + + COALESCE ( + CAST( COUNT( * ) AS SIGNED ), + 9 * - 45 ) THEN NULL ELSE - 42 END / - - CAST( NULL AS SIGNED ) - - + ( + COUNT( * ) ) - COUNT( DISTINCT + 70 + + 58 / + 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT + + ( 77 ) * CASE 44 WHEN - 46 + + COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), + 9 * - 45 ) THEN NULL ELSE - 42 END / - - CAST ( NULL AS INTEGER ) - - + ( + COUNT ( * ) ) - COUNT ( DISTINCT + 70 + + 58 / + 41 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL 1 * + COUNT( * ) + - - 32
----
33

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL 1 * + COUNT ( * ) + - - 32
----
33

query I rowsort
SELECT + 2 + - 6 AS col0
----
-4

query I rowsort
SELECT - 5 * - - 94 + + 98
----
-372

query I rowsort
SELECT ALL 88 * - + 94 + + 34 + - 9
----
-8247

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT SUM( - 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4219
SELECT SUM ( - 26 ) AS col0
----
-26

query I rowsort
SELECT DISTINCT ( + + 9 ) AS col2
----
9

query I rowsort
SELECT DISTINCT + 70 + - - 0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT ALL + 24 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + 24 / + 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT - ( - - 39 ) + + COUNT( * ) + 35 DIV 81 + ( - COALESCE ( + 27, + COALESCE ( + - ( - 62 ), - 66, 29 * - - COUNT( * ) ) ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4223
SELECT - ( - - 39 ) + + COUNT ( * ) + 35 / 81 + ( - COALESCE ( + 27, + COALESCE ( + - ( - 62 ), - 66, 29 * - - COUNT ( * ) ) ) ) AS col1
----
-65

query I rowsort
SELECT - 7 + - 93
----
-100

query I rowsort
SELECT ALL 19 + + 94
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL + COUNT( * ) * - 46 * - 2 * - 15 col1
----
-1380

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + COUNT ( * ) * - 46 * - 2 * - 15 col1
----
-1380

query I rowsort
SELECT + 1 + + 47 AS col2
----
48

query I rowsort
SELECT DISTINCT + 7 * - - 49
----
343

onlyif mysql # DIV for integer division: 
query II rowsort label-4229
SELECT 31, + 65 + 41 + + 22 DIV 74 * + 30 AS col0
----
31
106

skipif mysql # not compatible
query II rowsort label-4229
SELECT 31, + 65 + 41 + + 22 / 74 * + 30 AS col0
----
31
106

query I rowsort
SELECT + 17 + - NULLIF ( - 85, 62 ) - + 44 + 21 * - 72 - - - 25 * - 87 + + 6 - + 25
----
702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT CAST( + 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT CAST ( + 40 AS INTEGER ) AS col0
----
40

query I rowsort
SELECT ALL 5 * - 28 AS col0
----
-140

query I rowsort
SELECT + 11 * - 95 AS col1
----
-1045

query I rowsort
SELECT - 57 + - + 99 AS col1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + 31 + + COUNT( * ) * NULLIF ( 10, + 13 )
----
41

skipif mysql # not compatible
query I rowsort label-4235
SELECT + 31 + + COUNT ( * ) * NULLIF ( 10, + 13 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + 44 + 98 * COUNT( * ) - 95 * - MAX( + 12 ) AS col2
----
1282

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 44 + 98 * COUNT ( * ) - 95 * - MAX ( + 12 ) AS col2
----
1282

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4237
SELECT ALL 14 * + - 55 DIV - COUNT( * ), + 10 col1
----
770
10

skipif mysql # not compatible
query II rowsort label-4237
SELECT ALL 14 * + - 55 / - COUNT ( * ), + 10 col1
----
770
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + + ( MIN( ALL ( - ( - 38 ) ) ) ) + + 0 col2
----
38

skipif mysql # not compatible
query I rowsort label-4238
SELECT + + ( MIN ( ALL ( - ( - 38 ) ) ) ) + + 0 col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT DISTINCT - - COUNT( * ) DIV - 6 * - 24 + - 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT - - COUNT ( * ) / - 6 * - 24 + - 86 AS col0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT ALL 61 DIV + CASE - - 50 WHEN + - COUNT( * ) THEN - 24 ELSE + COUNT( * ) END + 21 + + MIN( ALL 68 ) * + + SUM( DISTINCT - 74 ) col0
----
-4950

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL 61 / + CASE - - 50 WHEN + - COUNT ( * ) THEN - 24 ELSE + COUNT ( * ) END + 21 + + MIN ( ALL 68 ) * + + SUM ( DISTINCT - 74 ) col0
----
-4950

query II rowsort
SELECT + + 63 * - 79 + 12 AS col2, 92 AS col0
----
-4965
92

query I rowsort
SELECT + - 80 * - + 20 + - 90
----
1510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT ALL - MAX( + 48 ) * + CASE 33 WHEN 69 THEN + 0 DIV - 5 * MAX( ALL - 29 ) * 10 + + + CASE - NULLIF ( + 83, + + SUM( - 88 ) ) WHEN - 23 + 64 THEN - 72 - COUNT( - 91 ) WHEN COALESCE ( - 72, - ( CASE WHEN NOT + 78 IS NOT NULL THEN 67 ELSE 78 END ) DIV COUNT( * ) ) THEN + 51 + - 64 DIV + MAX( DISTINCT + 14 ) END * + 84 ELSE - 64 + 13 DIV + 55 END + COUNT( * ) AS col2
----
3073

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - MAX ( + 48 ) * + CASE 33 WHEN 69 THEN + 0 / - 5 * MAX ( ALL - 29 ) * 10 + + + CASE - NULLIF ( + 83, + + SUM ( - 88 ) ) WHEN - 23 + 64 THEN - 72 - COUNT ( - 91 ) WHEN COALESCE ( - 72, - ( CASE WHEN NOT + 78 IS NOT NULL THEN 67 ELSE 78 END ) / COUNT ( * ) ) THEN + 51 + - 64 / + MAX ( DISTINCT + 14 ) END * + 84 ELSE - 64 + 13 / + 55 END + COUNT ( * ) AS col2
----
3073

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT - MAX( + - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4244
SELECT - MAX ( + - 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT - - ( CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT - - ( CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4246
SELECT + 39 AS col2, + 18 * 36 * + 44 + + ( + - COUNT( * ) ) + CASE WHEN NOT + 47 IS NOT NULL THEN + - CAST( NULL AS SIGNED ) - + + 55 * - COUNT( * ) * - 36 + - - 27 ELSE + 62 * 95 END * + 19 col2
----
39
140421

skipif mysql # not compatible
query II rowsort label-4246
SELECT + 39 AS col2, + 18 * 36 * + 44 + + ( + - COUNT ( * ) ) + CASE WHEN NOT + 47 IS NOT NULL THEN + - CAST ( NULL AS INTEGER ) - + + 55 * - COUNT ( * ) * - 36 + - - 27 ELSE + 62 * 95 END * + 19 col2
----
39
140421

query I rowsort
SELECT + 36 * + 88
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL - 70 * - 41 - - 66 + + 65 + + COUNT( * ) * - 30 * 1 * + COUNT( * )
----
2971

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - 70 * - 41 - - 66 + + 65 + + COUNT ( * ) * - 30 * 1 * + COUNT ( * )
----
2971

query I rowsort
SELECT ALL - 46 * + 22 + + 65
----
-947

onlyif mysql # aggregate syntax: 
query II rowsort label-4250
SELECT + 17 AS col1, MAX( + 39 )
----
17
39

skipif mysql # not compatible
query II rowsort label-4250
SELECT + 17 AS col1, MAX ( + 39 )
----
17
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT COALESCE ( 96, - - SUM( - 29 ) )
----
96

skipif mysql # not compatible
query I rowsort label-4251
SELECT COALESCE ( 96, - - SUM ( - 29 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - 25 * + - 57 * + COUNT( * ) * + + ( - 30 ) col0
----
-42750

skipif mysql # not compatible
query I rowsort label-4252
SELECT - 25 * + - 57 * + COUNT ( * ) * + + ( - 30 ) col0
----
-42750

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT + 39 - + NULLIF ( COUNT( * ), + 8 - 0 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + 39 - + NULLIF ( COUNT ( * ), + 8 - 0 ) AS col0
----
38

query II rowsort
SELECT - 27 AS col2, - 17 * - 93
----
-27
1581

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT ALL + COALESCE ( + + 66, - + ( - 32 ) DIV - 77 * - COUNT( * ) DIV - 47 ) - + 55 + - ( + 65 ) + - + 90 * + 44 * - 89 AS col2
----
352386

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + COALESCE ( + + 66, - + ( - 32 ) / - 77 * - COUNT ( * ) / - 47 ) - + 55 + - ( + 65 ) + - + 90 * + 44 * - 89 AS col2
----
352386

query I rowsort
SELECT 93 * + + 56 AS col2
----
5208

query II rowsort
SELECT 3, 58 AS col2
----
3
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT ALL + 21 - - 38, 21 - - COUNT( ALL 49 ) + 33 * - 32 AS col0
----
59
-1034

skipif mysql # not compatible
query II rowsort label-4258
SELECT ALL + 21 - - 38, 21 - - COUNT ( ALL 49 ) + 33 * - 32 AS col0
----
59
-1034

query I rowsort
SELECT 18 * - 48 AS col1
----
-864

query I rowsort
SELECT DISTINCT + ( - 65 ) * + 10 AS col1
----
-650

query II rowsort
SELECT - 48, - 34 - - ( + ( - 50 ) ) AS col0
----
-48
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4262
SELECT 37 DIV ( CAST( + ( - COUNT( DISTINCT 11 ) ) AS SIGNED ) ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-4262
SELECT 37 / ( CAST ( + ( - COUNT ( DISTINCT 11 ) ) AS INTEGER ) ) col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4263
SELECT 11 + - COUNT( * ) DIV - 42 * COUNT( * ) + - 32 - - 27 * - 63 AS col1
----
-1722

skipif mysql # not compatible
query I rowsort label-4263
SELECT 11 + - COUNT ( * ) / - 42 * COUNT ( * ) + - 32 - - 27 * - 63 AS col1
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT 18 * + - 69 * COUNT( * )
----
-1242

skipif mysql # not compatible
query I rowsort label-4264
SELECT 18 * + - 69 * COUNT ( * )
----
-1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4265
SELECT CAST( NULL AS SIGNED ) / CASE - 53 WHEN - + 26 THEN - 73 + + 29 ELSE NULL END, 41 - - + 96 + + - COUNT( * ) - COUNT( * ) AS col0
----
NULL
135

skipif mysql # not compatible
query II rowsort label-4265
SELECT CAST ( NULL AS INTEGER ) / CASE - 53 WHEN - + 26 THEN - 73 + + 29 ELSE NULL END, 41 - - + 96 + + - COUNT ( * ) - COUNT ( * ) AS col0
----
NULL
135

onlyif mysql # aggregate syntax: 
query II rowsort label-4266
SELECT MAX( DISTINCT 58 ) AS col0, CASE 51 WHEN + 45 + 44 THEN NULL WHEN - 58 / + - MAX( - 88 ) * 6 + 32 + 55 * - ( - - 16 ) THEN - - 73 WHEN - + NULLIF ( + 3, NULLIF ( - COUNT( * ), SUM( 70 ) ) * 95 ) THEN NULL END * - 96 AS col2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4266
SELECT MAX ( DISTINCT 58 ) AS col0, CASE 51 WHEN + 45 + 44 THEN NULL WHEN - 58 / + - MAX ( - 88 ) * 6 + 32 + 55 * - ( - - 16 ) THEN - - 73 WHEN - + NULLIF ( + 3, NULLIF ( - COUNT ( * ), SUM ( 70 ) ) * 95 ) THEN NULL END * - 96 AS col2
----
58
NULL

query I rowsort
SELECT - ( 23 ) * - + 83 AS col1
----
1909

query I rowsort
SELECT DISTINCT - ( + + COALESCE ( + - 52, - - 56 + + 26 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + - NULLIF ( + 63, SUM( DISTINCT + 42 ) ) + - 45 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + - NULLIF ( + 63, SUM ( DISTINCT + 42 ) ) + - 45 AS col1
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4270
SELECT NULLIF ( - 47, - NULLIF ( - COUNT( * ), - - 43 + + + 44 * + + 92 ) * 95 * - - 66 + + 79 ) * + COALESCE ( 91, 99, + 71 + 70 + CAST( NULL AS SIGNED ) + + SUM( ALL 93 ) ) * COALESCE ( 69, 43 ) + + 58 * + 8
----
-294649

skipif mysql # not compatible
query I rowsort label-4270
SELECT NULLIF ( - 47, - NULLIF ( - COUNT ( * ), - - 43 + + + 44 * + + 92 ) * 95 * - - 66 + + 79 ) * + COALESCE ( 91, 99, + 71 + 70 + CAST ( NULL AS INTEGER ) + + SUM ( ALL 93 ) ) * COALESCE ( 69, 43 ) + + 58 * + 8
----
-294649

query I rowsort
SELECT DISTINCT NULLIF ( - 99, + 72 ) + + 15 AS col0
----
-84

query I rowsort
SELECT + 54 * 9
----
486

query I rowsort
SELECT + - CASE 38 WHEN - ( 97 ) THEN + 44 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4274
SELECT - 13 DIV + + 22 + 8 * 54 - - + ( + 74 ) + 98 AS col2, + COUNT( * ) + + + COALESCE ( COUNT( * ), - + CAST( NULL AS SIGNED ) ) + - CAST( - 61 AS SIGNED ) * + 63 * + - CAST( - 92 AS SIGNED ) AS col1
----
604
353558

skipif mysql # not compatible
query II rowsort label-4274
SELECT - 13 / + + 22 + 8 * 54 - - + ( + 74 ) + 98 AS col2, + COUNT ( * ) + + + COALESCE ( COUNT ( * ), - + CAST ( NULL AS INTEGER ) ) + - CAST ( - 61 AS INTEGER ) * + 63 * + - CAST ( - 92 AS INTEGER ) AS col1
----
604
353558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT DISTINCT - + 5 + + CAST( 34 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - + 5 + + CAST ( 34 AS INTEGER )
----
29

query I rowsort
SELECT ALL 50 * 53
----
2650

onlyif mysql # DIV for integer division: 
query I rowsort label-4277
SELECT - 20 DIV + 79 * + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT - 20 / + 79 * + 31 AS col2
----
0

query I rowsort
SELECT ALL - 37 + + 77 + + 69
----
109

query I rowsort
SELECT ALL - 57 - - 67
----
10

query I rowsort
SELECT ALL 13 * - 57 col0
----
-741

query I rowsort
SELECT 52 * + - 0 - + 51 AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT COUNT( - 31 ) + + SUM( ALL + + 63 ) DIV + 96 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4282
SELECT COUNT ( - 31 ) + + SUM ( ALL + + 63 ) / + 96 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ( + - NULLIF ( 62, + + 79 + - MIN( ALL - + 40 ) ) ) * - 67
----
4154

skipif mysql # not compatible
query I rowsort label-4283
SELECT ( + - NULLIF ( 62, + + 79 + - MIN ( ALL - + 40 ) ) ) * - 67
----
4154

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL COUNT( * ) - - MAX( DISTINCT + + 84 ) * - + 81 AS col2
----
-6803

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL COUNT ( * ) - - MAX ( DISTINCT + + 84 ) * - + 81 AS col2
----
-6803

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ( - 85 ) * 64 - - + 71 + - 39 - - ( - COUNT( * ) ) * + + 96
----
-5504

skipif mysql # not compatible
query I rowsort label-4285
SELECT ( - 85 ) * 64 - - + 71 + - 39 - - ( - COUNT ( * ) ) * + + 96
----
-5504

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT 93 DIV + 1
----
93

skipif mysql # not compatible
query I rowsort label-4286
SELECT 93 / + 1
----
93

query I rowsort
SELECT 28 * - 90
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT COUNT( * ) + 11 - 72 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4288
SELECT COUNT ( * ) + 11 - 72 AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT 31 + + + 79 DIV - 34 + + + 13 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4289
SELECT 31 + + + 79 / - 34 + + + 13 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT 47 + + + COUNT( * ) + + 78 + + 6 col2
----
132

skipif mysql # not compatible
query I rowsort label-4290
SELECT 47 + + + COUNT ( * ) + + 78 + + 6 col2
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT ALL - CAST( + 17 AS SIGNED ) * 67 AS col2
----
-1139

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - CAST ( + 17 AS INTEGER ) * 67 AS col2
----
-1139

query II rowsort
SELECT 18 * + 52 AS col2, + COALESCE ( + 15, + 29 - + 3, 88 - - 76 )
----
936
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT - MAX( DISTINCT - 26 ) col1, + 14 + + 66
----
26
80

skipif mysql # not compatible
query II rowsort label-4293
SELECT - MAX ( DISTINCT - 26 ) col1, + 14 + + 66
----
26
80

query II rowsort
SELECT ALL 35 * + + 36, ( - - 29 ) AS col1
----
1260
29

query I rowsort
SELECT ALL - 4 * + - 74
----
296

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4296
SELECT ( + - 57 ), + CAST( NULL AS SIGNED ) AS col1
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-4296
SELECT ( + - 57 ), + CAST ( NULL AS INTEGER ) AS col1
----
-57
NULL

query I rowsort
SELECT - - ( 42 ) col1
----
42

query II rowsort
SELECT 28 - + 23 AS col1, + 44
----
5
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT DISTINCT + ( - - 3 ) + - - ( - COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT + ( - - 3 ) + - - ( - COUNT ( * ) ) AS col0
----
2

query I rowsort
SELECT DISTINCT - 10 * - 19
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT ALL + 52 * + 18 - + - 32 + + CAST( - 27 AS SIGNED ) * + 29 + + - 88 * + COUNT( * ) + 7
----
104

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + 52 * + 18 - + - 32 + + CAST ( - 27 AS INTEGER ) * + 29 + + - 88 * + COUNT ( * ) + 7
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4302
SELECT DISTINCT + 69 * - + COUNT( * ) * 15 + + 98 + + + 55 + - + 66 * - NULLIF ( - - CAST( NULL AS SIGNED ), - 16 + 65 * - 1 ) * 75 - + + 74 - - 87 * - 6 + - 12 * - COUNT( * ) - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT + 69 * - + COUNT ( * ) * 15 + + 98 + + + 55 + - + 66 * - NULLIF ( - - CAST ( NULL AS INTEGER ), - 16 + 65 * - 1 ) * 75 - + + 74 - - 87 * - 6 + - 12 * - COUNT ( * ) - 73 AS col0
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( - ( 6 ), - 40 ) * + ( - + 68 )
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT + 86 * 81 + + 85 + + COUNT( * ) col0
----
7052

skipif mysql # not compatible
query I rowsort label-4304
SELECT + 86 * 81 + + 85 + + COUNT ( * ) col0
----
7052

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT 69 * + 10 * - ( - COUNT( * ) ) + - 1 * + COUNT( * ) * 19 - NULLIF ( 58, - + 29 ) AS col0
----
613

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT 69 * + 10 * - ( - COUNT ( * ) ) + - 1 * + COUNT ( * ) * 19 - NULLIF ( 58, - + 29 ) AS col0
----
613

query I rowsort
SELECT DISTINCT 40 * + 30 * + ( ( - - 82 ) ) * - COALESCE ( - 24, - NULLIF ( - 52, 48 ) ) + + 95 * - + 63 - 28 * + 98 AS col2
----
2352871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4307
SELECT + 84 * + CAST( + + SUM( DISTINCT 28 ) AS SIGNED ) AS col0, - 21 AS col1
----
2352
-21

skipif mysql # not compatible
query II rowsort label-4307
SELECT + 84 * + CAST ( + + SUM ( DISTINCT 28 ) AS INTEGER ) AS col0, - 21 AS col1
----
2352
-21

query II rowsort
SELECT + 12 col2, + ( + - 79 ) AS col2
----
12
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT 57 * - MIN( DISTINCT + - 81 ) + - COALESCE ( - 15, 15, - - 42 + + 26 ) * - 64
----
3657

skipif mysql # not compatible
query I rowsort label-4309
SELECT 57 * - MIN ( DISTINCT + - 81 ) + - COALESCE ( - 15, 15, - - 42 + + 26 ) * - 64
----
3657

query I rowsort
SELECT ALL + ( - 12 ) col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT - CAST( NULL AS SIGNED ) * + 31 * 34 + - - NULLIF ( + 40, + - 34 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT - CAST ( NULL AS INTEGER ) * + 31 * 34 + - - NULLIF ( + 40, + - 34 ) AS col0
----
NULL

query I rowsort
SELECT + 54 + - + 16 - - 1
----
39

query I rowsort
SELECT ALL + ( + - 68 ) col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT DISTINCT + CAST( - 14 AS SIGNED ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT + CAST ( - 14 AS INTEGER ) AS col0
----
-14

query I rowsort
SELECT ALL - 94 * - 23 AS col1
----
2162

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT + 35 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-4316
SELECT + 35 / 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT COUNT( - - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-4317
SELECT COUNT ( - - 0 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT DISTINCT 59 * - + COALESCE ( 59, - + COUNT( * ) * - + 76 * 86 + 45 * + + SUM( DISTINCT - CAST( - 78 AS SIGNED ) ) )
----
-3481

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT 59 * - + COALESCE ( 59, - + COUNT ( * ) * - + 76 * 86 + 45 * + + SUM ( DISTINCT - CAST ( - 78 AS INTEGER ) ) )
----
-3481

query I rowsort
SELECT + 82 * - 67
----
-5494

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT + 88 * - - COUNT( * ) * - 74 col1
----
-6512

skipif mysql # not compatible
query I rowsort label-4320
SELECT + 88 * - - COUNT ( * ) * - 74 col1
----
-6512

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT DISTINCT 97 AS col2, - CASE MAX( 48 ) WHEN 84 / - MIN( DISTINCT - 80 ) + + - ( NULLIF ( 55, 39 * + COUNT( * ) ) ) + 79 + - 59 THEN + 16 WHEN + ( 48 ) THEN + - 20 + - 45 * COUNT( 12 ) END
----
97
65

skipif mysql # not compatible
query II rowsort label-4321
SELECT DISTINCT 97 AS col2, - CASE MAX ( 48 ) WHEN 84 / - MIN ( DISTINCT - 80 ) + + - ( NULLIF ( 55, 39 * + COUNT ( * ) ) ) + 79 + - 59 THEN + 16 WHEN + ( 48 ) THEN + - 20 + - 45 * COUNT ( 12 ) END
----
97
65

query I rowsort
SELECT DISTINCT 87 + + - 93 * + 52 AS col2
----
-4749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL 46 + NULLIF ( 17, - CASE 99 WHEN 26 * + 87 + - 46 THEN - AVG ( - + 47 ) WHEN - + 79 THEN NULL ELSE ( - 53 ) END * - 35 + + - COALESCE ( + - 20, - - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * + 38, 14 * COUNT( * ) + COALESCE ( 85, - CASE + ( + 57 ) WHEN CASE AVG ( 79 ) WHEN 37 THEN + 17 - - CAST( NULL AS SIGNED ) WHEN + 96 THEN NULL END THEN - ( + COUNT( ALL + 74 ) ) + 70 ELSE 51 - 18 END ) * + 64 ) / - 3 ) + - 54
----
9

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL 46 + NULLIF ( 17, - CASE 99 WHEN 26 * + 87 + - 46 THEN - AVG ( - + 47 ) WHEN - + 79 THEN NULL ELSE ( - 53 ) END * - 35 + + - COALESCE ( + - 20, - - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * + 38, 14 * COUNT ( * ) + COALESCE ( 85, - CASE + ( + 57 ) WHEN CASE AVG ( 79 ) WHEN 37 THEN + 17 - - CAST ( NULL AS INTEGER ) WHEN + 96 THEN NULL END THEN - ( + COUNT ( ALL + 74 ) ) + 70 ELSE 51 - 18 END ) * + 64 ) / - 3 ) + - 54
----
9

query I rowsort
SELECT DISTINCT 16 + + 31
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT DISTINCT 98 + COALESCE ( 39, - - 33 + + + 71 DIV + + 3 ) * 50
----
2048

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT 98 + COALESCE ( 39, - - 33 + + + 71 / + + 3 ) * 50
----
2048

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL - 8 * MAX( - CASE 12 WHEN - 15 THEN - 35 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - 8 * MAX ( - CASE 12 WHEN - 15 THEN - 35 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4327
SELECT - 33 AS col0, - 61 * + - CASE - NULLIF ( 81, 79 * - + 84 / 27 * 89 ) WHEN ( 30 ) + + + 0 THEN + + 49 + + CAST( NULL AS SIGNED ) * - 37 + - CAST( - 35 AS SIGNED ) * - 56 ELSE NULL END * 55
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-4327
SELECT - 33 AS col0, - 61 * + - CASE - NULLIF ( 81, 79 * - + 84 / 27 * 89 ) WHEN ( 30 ) + + + 0 THEN + + 49 + + CAST ( NULL AS INTEGER ) * - 37 + - CAST ( - 35 AS INTEGER ) * - 56 ELSE NULL END * 55
----
-33
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4328
SELECT ALL + 39 + + + MAX( ALL + 40 ) - - 96 * + NULLIF ( + - 98, + 92 - - COALESCE ( - 13, 34 ) - + 42 / + 36 + COUNT( ALL - 70 ) ) * ( + 81 ) + - CASE + 41 WHEN + 52 + - NULLIF ( COUNT( * ), COUNT( - CAST( NULL AS SIGNED ) ) * CAST( - 23 AS DECIMAL ) ) * + 45 THEN 22 * - CASE 63 * ( - 67 ) WHEN 15 / - 35 THEN NULL ELSE - COUNT( * ) END ELSE NULL END * ( + SUM( ALL 31 ) ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + 39 + + + MAX ( ALL + 40 ) - - 96 * + NULLIF ( + - 98, + 92 - - COALESCE ( - 13, 34 ) - + 42 / + 36 + COUNT ( ALL - 70 ) ) * ( + 81 ) + - CASE + 41 WHEN + 52 + - NULLIF ( COUNT ( * ), COUNT ( - CAST ( NULL AS INTEGER ) ) * CAST ( - 23 AS REAL ) ) * + 45 THEN 22 * - CASE 63 * ( - 67 ) WHEN 15 / - 35 THEN NULL ELSE - COUNT ( * ) END ELSE NULL END * ( + SUM ( ALL 31 ) ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4329
SELECT DISTINCT - + 84 * ( + - 72 ), COUNT( * ) * NULLIF ( + 31, - 86 ) col0
----
6048
31

skipif mysql # not compatible
query II rowsort label-4329
SELECT DISTINCT - + 84 * ( + - 72 ), COUNT ( * ) * NULLIF ( + 31, - 86 ) col0
----
6048
31

query I rowsort
SELECT DISTINCT + 17 + + 19
----
36

query II rowsort
SELECT + 34 AS col1, 39 + + 90
----
34
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - ( - 21 ) + 32 * - 79 * COUNT( DISTINCT - 92 ) * + + COUNT( DISTINCT 20 ) AS col2
----
-2507

skipif mysql # not compatible
query I rowsort label-4332
SELECT - ( - 21 ) + 32 * - 79 * COUNT ( DISTINCT - 92 ) * + + COUNT ( DISTINCT 20 ) AS col2
----
-2507

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4333
SELECT - - 12, 83 * + - CAST( + 46 AS SIGNED ) AS col1
----
12
-3818

skipif mysql # not compatible
query II rowsort label-4333
SELECT - - 12, 83 * + - CAST ( + 46 AS INTEGER ) AS col1
----
12
-3818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT - 27 * 88 + - 25 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 27 * 88 + - 25 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT - + MAX( DISTINCT + 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4335
SELECT - + MAX ( DISTINCT + 14 ) AS col1
----
-14

query I rowsort
SELECT ALL - NULLIF ( NULLIF ( - 67, - 64 ), - - 40 + + + 10 ) AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT + + ( - - 15 ) / - ( - 21 ) + + CASE 35 WHEN + 52 THEN - 21 WHEN 50 * ( + ( - + 29 ) ) + + + 90 THEN - - 56 ELSE + 42 * - + 79 / 46 + - CAST( NULL AS SIGNED ) / 67 END + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT + + ( - - 15 ) / - ( - 21 ) + + CASE 35 WHEN + 52 THEN - 21 WHEN 50 * ( + ( - + 29 ) ) + + + 90 THEN - - 56 ELSE + 42 * - + 79 / 46 + - CAST ( NULL AS INTEGER ) / 67 END + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT DISTINCT - 70 - - + 27 + - + 57 - - - MIN( - - CAST( NULL AS SIGNED ) ) * - 99 * MAX( ALL + + 43 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT - 70 - - + 27 + - + 57 - - - MIN ( - - CAST ( NULL AS INTEGER ) ) * - 99 * MAX ( ALL + + 43 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 54 * - 71
----
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - + COUNT( * ) + - 51 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4340
SELECT - + COUNT ( * ) + - 51 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT + CASE - 21 WHEN + CAST( - 29 AS SIGNED ) / + - 77 THEN NULL WHEN - + 97 THEN NULL WHEN - 73 THEN 83 + COUNT( * ) - 40 ELSE + 0 END
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT + CASE - 21 WHEN + CAST ( - 29 AS INTEGER ) / + - 77 THEN NULL WHEN - + 97 THEN NULL WHEN - 73 THEN 83 + COUNT ( * ) - 40 ELSE + 0 END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT DISTINCT - CASE + + 27 WHEN - 46 - - 7 THEN NULL ELSE + NULLIF ( NULLIF ( - ( - 25 ), + 77 - - 98 + + CAST( NULL AS SIGNED ) ), - 62 + - - COUNT( * ) + 27 * + 33 ) END * - - 44 * + 1 + + 40 - NULLIF ( CAST( - COUNT( * ) AS SIGNED ), 37 / 95 ) * 4
----
-1056

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT - CASE + + 27 WHEN - 46 - - 7 THEN NULL ELSE + NULLIF ( NULLIF ( - ( - 25 ), + 77 - - 98 + + CAST ( NULL AS INTEGER ) ), - 62 + - - COUNT ( * ) + 27 * + 33 ) END * - - 44 * + 1 + + 40 - NULLIF ( CAST ( - COUNT ( * ) AS INTEGER ), 37 / 95 ) * 4
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT + MIN( - + ( - 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-4343
SELECT + MIN ( - + ( - 81 ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT DISTINCT + - CAST( + 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + - CAST ( + 53 AS INTEGER )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4345
SELECT CAST( - 81 AS SIGNED ) * + CASE + 25 WHEN - SUM( + 49 ) - MIN( CAST( - 73 AS DECIMAL ) ) THEN NULL ELSE - 35 END + + - 37 - + + 96 * + CAST( NULL AS SIGNED ) - + 69 AS col2, CASE - ( - ( - - COALESCE ( - + 67, 31 * + 23 ) ) ) WHEN + 8 * - 68 + COUNT( ALL - 50 ) THEN + ( 76 ) * - ( - 33 ) + 12 ELSE - 77 * 7 END AS col1
----
NULL
-539

skipif mysql # not compatible
query II rowsort label-4345
SELECT CAST ( - 81 AS INTEGER ) * + CASE + 25 WHEN - SUM ( + 49 ) - MIN ( CAST ( - 73 AS REAL ) ) THEN NULL ELSE - 35 END + + - 37 - + + 96 * + CAST ( NULL AS INTEGER ) - + 69 AS col2, CASE - ( - ( - - COALESCE ( - + 67, 31 * + 23 ) ) ) WHEN + 8 * - 68 + COUNT ( ALL - 50 ) THEN + ( 76 ) * - ( - 33 ) + 12 ELSE - 77 * 7 END AS col1
----
NULL
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-4346
SELECT - ( - 41 ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT - ( - 41 ) / + 53
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4347
SELECT ALL + CASE + ( - COUNT( * ) ) WHEN + 24 THEN + COUNT( * ) * - + 60 WHEN 25 THEN NULL ELSE NULL END AS col0, - 76
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-4347
SELECT ALL + CASE + ( - COUNT ( * ) ) WHEN + 24 THEN + COUNT ( * ) * - + 60 WHEN 25 THEN NULL ELSE NULL END AS col0, - 76
----
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT + MAX( ALL - - 3 ) * + 41
----
123

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + MAX ( ALL - - 3 ) * + 41
----
123

query I rowsort
SELECT - 94 * - 7 AS col2
----
658

query I rowsort
SELECT - 6 + 39 - - - 19 + 44 + - - 73 * 5
----
423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT 26 * - 59 - + 40 - + CAST( + 64 AS SIGNED )
----
-1638

skipif mysql # not compatible
query I rowsort label-4351
SELECT 26 * - 59 - + 40 - + CAST ( + 64 AS INTEGER )
----
-1638

query I rowsort
SELECT - 82 + - 3 - + - 5 col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4353
SELECT COALESCE ( - 97, COALESCE ( + 89, + 49 + CAST( NULL AS SIGNED ), 53 * 35 + - COUNT( * ) ), - 47 DIV 39 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4353
SELECT COALESCE ( - 97, COALESCE ( + 89, + 49 + CAST ( NULL AS INTEGER ), 53 * 35 + - COUNT ( * ) ), - 47 / 39 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT 36 * COUNT( * ) + + 99
----
135

skipif mysql # not compatible
query I rowsort label-4354
SELECT 36 * COUNT ( * ) + + 99
----
135

query I rowsort
SELECT + 64 * - 17
----
-1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT - AVG ( ALL + 77 ) * - 20 * - ( - - COUNT( * ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT - AVG ( ALL + 77 ) * - 20 * - ( - - COUNT ( * ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4357
SELECT DISTINCT + 50 * + CAST( NULL AS SIGNED ) * + COUNT( * ) + 29 AS col2, 64
----
NULL
64

skipif mysql # not compatible
query II rowsort label-4357
SELECT DISTINCT + 50 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 29 AS col2, 64
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT MIN( ALL - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4358
SELECT MIN ( ALL - 7 ) AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT DISTINCT + CASE - 90 WHEN + 6 THEN NULL WHEN - - 89 + - 45 - - - 74 THEN - 72 WHEN - + 3 * 19 THEN + 94 ELSE ( CAST( NULL AS SIGNED ) ) END * CAST( NULL AS SIGNED ) / + + ( + 24 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + CASE - 90 WHEN + 6 THEN NULL WHEN - - 89 + - 45 - - - 74 THEN - 72 WHEN - + 3 * 19 THEN + 94 ELSE ( CAST ( NULL AS INTEGER ) ) END * CAST ( NULL AS INTEGER ) / + + ( + 24 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT - CAST( NULL AS SIGNED ) * + - 51 * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT - CAST ( NULL AS INTEGER ) * + - 51 * - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4361
SELECT + COUNT( - 3 ) * + 49 + - + CAST( NULL AS SIGNED ) * + COUNT( + ( 60 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT + COUNT ( - 3 ) * + 49 + - + CAST ( NULL AS INTEGER ) * + COUNT ( + ( 60 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4362
SELECT - 28 * + COALESCE ( + - CAST( COUNT( * ) AS SIGNED ), ( - 73 ) + - - 36 * + 28, + + 35 DIV - 86 * - 52 + + 52 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4362
SELECT - 28 * + COALESCE ( + - CAST ( COUNT ( * ) AS INTEGER ), ( - 73 ) + - - 36 * + 28, + + 35 / - 86 * - 52 + + 52 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT - + NULLIF ( + - COUNT( * ), + + 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4363
SELECT - + NULLIF ( + - COUNT ( * ), + + 9 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT DISTINCT + CAST( 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + CAST ( 80 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT + - 21 * 47 + + COUNT( * )
----
-986

skipif mysql # not compatible
query I rowsort label-4365
SELECT + - 21 * 47 + + COUNT ( * )
----
-986

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT ALL + 52 - - COUNT( * ) AS col0, + 66 AS col2
----
53
66

skipif mysql # not compatible
query II rowsort label-4366
SELECT ALL + 52 - - COUNT ( * ) AS col0, + 66 AS col2
----
53
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT + + COUNT( * ) * + 79 + - 11
----
68

skipif mysql # not compatible
query I rowsort label-4367
SELECT + + COUNT ( * ) * + 79 + - 11
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL - CAST( - MAX( 69 ) AS SIGNED ) col1
----
69

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - CAST ( - MAX ( 69 ) AS INTEGER ) col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT - 39 + - 15 + - - MAX( + 83 ) col1
----
29

skipif mysql # not compatible
query I rowsort label-4369
SELECT - 39 + - 15 + - - MAX ( + 83 ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT COUNT( * ) + + 83 * + 14 + + COUNT( * )
----
1164

skipif mysql # not compatible
query I rowsort label-4370
SELECT COUNT ( * ) + + 83 * + 14 + + COUNT ( * )
----
1164

query I rowsort
SELECT + 66 * 39 col2
----
2574

query I rowsort
SELECT ALL - 9 * - 3 + - 82 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT 93 * ( - COUNT( * ) ) + - 59 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-4373
SELECT 93 * ( - COUNT ( * ) ) + - 59 AS col1
----
-152

query I rowsort
SELECT ALL 31 * + 19 * + 53
----
31217

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT - 10 DIV + + 32 + - ( 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4375
SELECT - 10 / + + 32 + - ( 32 )
----
-32

query II rowsort
SELECT 22 + + ( 21 ) col0, 35 * 0
----
43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT - COUNT( DISTINCT + 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - COUNT ( DISTINCT + 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4378
SELECT 31 DIV - COUNT( ALL + + 46 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4378
SELECT 31 / - COUNT ( ALL + + 46 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT ( + 3 ) * NULLIF ( - COUNT( * ), - COUNT( ALL - + 44 ) ) * + 23 + 53, 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4379
SELECT ( + 3 ) * NULLIF ( - COUNT ( * ), - COUNT ( ALL - + 44 ) ) * + 23 + 53, 16 AS col1
----
NULL
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT + 58 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + 58 / + 79
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4381
SELECT ALL - ( + 63 ) + COUNT( * ) AS col0, + 76 + + 85 + - + 17 + + 26
----
-62
170

skipif mysql # not compatible
query II rowsort label-4381
SELECT ALL - ( + 63 ) + COUNT ( * ) AS col0, + 76 + + 85 + - + 17 + + 26
----
-62
170

query II rowsort
SELECT + 31, 4 AS col2
----
31
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT COUNT( * ) * - - MAX( ALL + 7 ) + + - 78 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4383
SELECT COUNT ( * ) * - - MAX ( ALL + 7 ) + + - 78 AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT CAST( NULL AS SIGNED ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT CAST ( NULL AS INTEGER ) / + 89
----
NULL

query I rowsort
SELECT ALL - 59 * 69
----
-4071

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL + COUNT( * ) + 38
----
39

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + COUNT ( * ) + 38
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4387
SELECT DISTINCT - 86 + - 52 + 15 DIV + + 92 * + 65 col1, + CAST( + AVG ( ALL + 14 ) AS SIGNED )
----
-138
14

skipif mysql # not compatible
query II rowsort label-4387
SELECT DISTINCT - 86 + - 52 + 15 / + + 92 * + 65 col1, + CAST ( + AVG ( ALL + 14 ) AS INTEGER )
----
-138
14

query I rowsort
SELECT ALL ( - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - CASE - ( + + COUNT( * ) ) WHEN - 51 / - CASE - 43 WHEN 43 THEN NULL ELSE + - 78 - + 20 + + COUNT( * ) + - 44 END THEN + 97 * + + 29 * 83 + - 54 WHEN - 64 THEN + 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT - CASE - ( + + COUNT ( * ) ) WHEN - 51 / - CASE - 43 WHEN 43 THEN NULL ELSE + - 78 - + 20 + + COUNT ( * ) + - 44 END THEN + 97 * + + 29 * 83 + - 54 WHEN - 64 THEN + 82 ELSE NULL END
----
NULL

query I rowsort
SELECT - - NULLIF ( + 51, - 69 / 10 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT - - COUNT( DISTINCT - 46 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4391
SELECT - - COUNT ( DISTINCT - 46 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + COUNT( 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4392
SELECT + COUNT ( 39 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL MIN( - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL MIN ( - + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL 87 * + ( COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL 87 * + ( COUNT ( * ) )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT DISTINCT + - 58 DIV - 5
----
11

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + - 58 / - 5
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL - - SUM( DISTINCT - 93 ) - + 46 col2
----
-139

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - - SUM ( DISTINCT - 93 ) - + 46 col2
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL + COUNT( * ) * + 83 + - 57 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL + COUNT ( * ) * + 83 + - 57 AS col2
----
26

query I rowsort
SELECT ALL + + 83 * - - ( + 97 )
----
8051

query II rowsort
SELECT DISTINCT + 57 AS col1, + 43 col0
----
57
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4400
SELECT ( - 24 ) DIV 41 + + MIN( + - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4400
SELECT ( - 24 ) / 41 + + MIN ( + - 66 ) AS col1
----
-66

query I rowsort
SELECT - ( 80 ) * + 5 AS col0
----
-400

query II rowsort
SELECT ALL 15, - 94 * + 43 col1
----
15
-4042

query I rowsort
SELECT - ( CASE + + 90 WHEN 73 THEN + CASE - - 48 WHEN - - 39 THEN NULL ELSE AVG ( DISTINCT 40 ) END END )
----
NULL

query I rowsort
SELECT 21 * 0 AS col2
----
0

query I rowsort
SELECT DISTINCT - - 41 + 22 AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4406
SELECT 23 + COUNT( - 28 ) + + - 77 * - 62 * 71 * - COUNT( * ) * - 27 + - ( - 53 ) DIV + 94
----
9151782

skipif mysql # not compatible
query I rowsort label-4406
SELECT 23 + COUNT ( - 28 ) + + - 77 * - 62 * 71 * - COUNT ( * ) * - 27 + - ( - 53 ) / + 94
----
9151782

onlyif mysql # DIV for integer division: 
query I rowsort label-4407
SELECT ALL 37 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL 37 / - 89
----
0

query I rowsort
SELECT 12 * + 94 AS col2
----
1128

query I rowsort
SELECT ALL - 62 + + 46 - - - 31 + + 60
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT NULLIF ( + COUNT( * ), ( - 66 ) ) * - + 64
----
-64

skipif mysql # not compatible
query I rowsort label-4410
SELECT NULLIF ( + COUNT ( * ), ( - 66 ) ) * - + 64
----
-64

query II rowsort
SELECT DISTINCT - 63, + 84 - - 49 AS col2
----
-63
133

query I rowsort
SELECT 2 + - + 29 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT SUM( - 70 ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-4413
SELECT SUM ( - 70 ) col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL COUNT( + 12 ) + + 88 + + + 35 * - 61 + + 21
----
-2025

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL COUNT ( + 12 ) + + 88 + + + 35 * - 61 + + 21
----
-2025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT DISTINCT 0 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT 0 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT DISTINCT CAST( + - 88 AS SIGNED ) * 84
----
-7392

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT CAST ( + - 88 AS INTEGER ) * 84
----
-7392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT ALL COUNT( * ) + + ( + CAST( 19 AS SIGNED ) )
----
20

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL COUNT ( * ) + + ( + CAST ( 19 AS INTEGER ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + MIN( 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4418
SELECT + MIN ( 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL + 0 - + + MAX( ALL - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + 0 - + + MAX ( ALL - 56 ) AS col2
----
56

query II rowsort
SELECT + 50 AS col1, + 27 + 56
----
50
83

query I rowsort
SELECT + 85 * 1 - + 21 * + 90 * 44
----
-83075

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT ALL 63 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL 63 / + 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4423
SELECT 46 + + + 52 + + 71 + CAST( 26 AS SIGNED ) * + - 12 * - CASE 36 WHEN + 99 + - + 95 THEN + + CAST( NULL AS DECIMAL ) END * + + 31 + 94 + + - AVG ( DISTINCT - - 75 ) * 57 * - 86 * 12 + + COUNT( * ) + - 33 + + 57 * 77 * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT 46 + + + 52 + + 71 + CAST ( 26 AS INTEGER ) * + - 12 * - CASE 36 WHEN + 99 + - + 95 THEN + + CAST ( NULL AS REAL ) END * + + 31 + 94 + + - AVG ( DISTINCT - - 75 ) * 57 * - 86 * 12 + + COUNT ( * ) + - 33 + + 57 * 77 * - 32
----
NULL

query I rowsort
SELECT 81 - + 87
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4425
SELECT ALL 93 DIV COUNT( * ) + 76
----
169

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL 93 / COUNT ( * ) + 76
----
169

query I rowsort
SELECT - 46 + + - ( 70 )
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL COUNT( * ) * + 68 * + 18 AS col2
----
1224

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL COUNT ( * ) * + 68 * + 18 AS col2
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT 20 * + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT 20 * + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT - ( + + 18 ) + + + COUNT( * ) + + + 48 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4429
SELECT - ( + + 18 ) + + + COUNT ( * ) + + + 48 AS col0
----
31

query II rowsort
SELECT ALL 98 AS col1, 43
----
98
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4431
SELECT - 9, 93 * - AVG ( - 32 ) + - + 96 + - COUNT( * ) - - 56 * CAST( NULL AS SIGNED ) * - + 81 - 45 * 68 + - 51 col2
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-4431
SELECT - 9, 93 * - AVG ( - 32 ) + - + 96 + - COUNT ( * ) - - 56 * CAST ( NULL AS INTEGER ) * - + 81 - 45 * 68 + - 51 col2
----
-9
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4432
SELECT ALL ( 78 ), - 11 * - 14 + - 86 + - 46 * + + COALESCE ( - 90, 82 DIV - CASE 30 WHEN + + 37 THEN + 73 - + COUNT( * ) - - - 76 WHEN - + SUM( ALL + - 17 ) THEN + + COUNT( ALL 97 ) END ) + 26 AS col1
----
78
4234

skipif mysql # not compatible
query II rowsort label-4432
SELECT ALL ( 78 ), - 11 * - 14 + - 86 + - 46 * + + COALESCE ( - 90, 82 / - CASE 30 WHEN + + 37 THEN + 73 - + COUNT ( * ) - - - 76 WHEN - + SUM ( ALL + - 17 ) THEN + + COUNT ( ALL 97 ) END ) + 26 AS col1
----
78
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + NULLIF ( 81, - COUNT( * ) + 77 * + 34 )
----
81

skipif mysql # not compatible
query I rowsort label-4433
SELECT + NULLIF ( 81, - COUNT ( * ) + 77 * + 34 )
----
81

query I rowsort
SELECT - COALESCE ( + + 25, 52 * + 27 + - + 24 ) * 32 AS col0
----
-800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4435
SELECT - - CAST( + 17 AS SIGNED ) AS col1, - 77
----
17
-77

skipif mysql # not compatible
query II rowsort label-4435
SELECT - - CAST ( + 17 AS INTEGER ) AS col1, - 77
----
17
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT - - 89 + COUNT( * ) * 57 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-4436
SELECT - - 89 + COUNT ( * ) * 57 AS col1
----
146

query II rowsort
SELECT ALL - 56 col0, - 67
----
-56
-67

query II rowsort
SELECT + 32, 68 AS col0
----
32
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT NULLIF ( + COUNT( * ), + 70 - + 35 - - 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4439
SELECT NULLIF ( + COUNT ( * ), + 70 - + 35 - - 76 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT - 40 + + + MIN( DISTINCT 34 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - 40 + + + MIN ( DISTINCT 34 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4441
SELECT - + 12 + - - 30 * - 37 - + 40, COUNT( + 44 ) * + 14 + - 39 + 67 AS col2
----
-1162
42

skipif mysql # not compatible
query II rowsort label-4441
SELECT - + 12 + - - 30 * - 37 - + 40, COUNT ( + 44 ) * + 14 + - 39 + 67 AS col2
----
-1162
42

query I rowsort
SELECT ALL + + 51 + - ( 15 ) col2
----
36

query I rowsort
SELECT ALL - + 89 + - 61 - - COALESCE ( + + 33, + 81 ) + + 94
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT - - ( + - 86 ) DIV - - 15
----
-5

skipif mysql # not compatible
query I rowsort label-4444
SELECT - - ( + - 86 ) / - - 15
----
-5

query I rowsort
SELECT ALL 31 + + 79 AS col1
----
110

query I rowsort
SELECT DISTINCT - 58 * 9 col0
----
-522

query I rowsort
SELECT - 7 + - + 31
----
-38

query II rowsort
SELECT + 13 + + 32 AS col1, 32 AS col1
----
45
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4449
SELECT ALL - CAST( NULL AS SIGNED ) + + - 73 AS col1, 52 + + 44 DIV + 81 AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 73 AS col1, 52 + + 44 / + 81 AS col1
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ( + NULLIF ( - 73, + + 84 * 46 + - 89 * + MIN( DISTINCT 25 ) ) )
----
-73

skipif mysql # not compatible
query I rowsort label-4450
SELECT ( + NULLIF ( - 73, + + 84 * 46 + - 89 * + MIN ( DISTINCT 25 ) ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT - 77 + + COALESCE ( - 68, COUNT( * ), + 20 )
----
-145

skipif mysql # not compatible
query I rowsort label-4451
SELECT - 77 + + COALESCE ( - 68, COUNT ( * ), + 20 )
----
-145

query I rowsort
SELECT - 36 * - 88 AS col2
----
3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT ALL - COALESCE ( + + 41, CAST( NULL AS SIGNED ) ) * CASE - 70 WHEN 36 * ( ( 72 ) ) * 41 THEN NULL WHEN - - 43 THEN NULL WHEN + 64 * 7 THEN 75 END + COUNT( * ) - ( + 30 ) + - MAX( DISTINCT 88 ) * - ( + 3 ) * + - 37 * - 91 + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - COALESCE ( + + 41, CAST ( NULL AS INTEGER ) ) * CASE - 70 WHEN 36 * ( ( 72 ) ) * 41 THEN NULL WHEN - - 43 THEN NULL WHEN + 64 * 7 THEN 75 END + COUNT ( * ) - ( + 30 ) + - MAX ( DISTINCT 88 ) * - ( + 3 ) * + - 37 * - 91 + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL 94 * + 97 - + - 4 + + MIN( - + ( 7 ) )
----
9115

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL 94 * + 97 - + - 4 + + MIN ( - + ( 7 ) )
----
9115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4455
SELECT + MAX( ALL + CASE - + 65 WHEN + + 39 + - + ( + 33 ) THEN NULL ELSE + CASE + 46 WHEN + 27 THEN NULL WHEN - + 44 THEN - - 68 DIV 0 + + 49 ELSE - 54 END + - - 62 DIV 17 * - + 19 END ) AS col2, - 0 + + 8
----
-111
8

skipif mysql # not compatible
query II rowsort label-4455
SELECT + MAX ( ALL + CASE - + 65 WHEN + + 39 + - + ( + 33 ) THEN NULL ELSE + CASE + 46 WHEN + 27 THEN NULL WHEN - + 44 THEN - - 68 / 0 + + 49 ELSE - 54 END + - - 62 / 17 * - + 19 END ) AS col2, - 0 + + 8
----
-111
8

query I rowsort
SELECT + COALESCE ( 35, - 60 + 6 )
----
35

query I rowsort
SELECT + 19 * 77 + - 33 AS col2
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL NULLIF ( 85, - - 83 ) * + 79 * - CASE 46 WHEN + 25 THEN 44 WHEN NULLIF ( 98, + - 98 - - 53 ) * - 32 THEN - ( + 19 ) ELSE NULL END - - + 9 + - - COUNT( * ) + + 86 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL NULLIF ( 85, - - 83 ) * + 79 * - CASE 46 WHEN + 25 THEN 44 WHEN NULLIF ( 98, + - 98 - - 53 ) * - 32 THEN - ( + 19 ) ELSE NULL END - - + 9 + - - COUNT ( * ) + + 86 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT + MIN( ALL - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4459
SELECT + MIN ( ALL - 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT + 52 + - 55 AS col1, - COUNT( DISTINCT + + 5 ) AS col0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-4460
SELECT + 52 + - 55 AS col1, - COUNT ( DISTINCT + + 5 ) AS col0
----
-3
-1

query I rowsort
SELECT + + 9 * - ( 16 )
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT DISTINCT - CAST( + 70 AS SIGNED ) * - 82 AS col0
----
5740

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT - CAST ( + 70 AS INTEGER ) * - 82 AS col0
----
5740

query I rowsort
SELECT ALL 4 * - + 39 - + 67 AS col2
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT ALL + - CASE ( COALESCE ( - COALESCE ( - 26, - 80 ), - AVG ( - - 94 ), + CAST( + 42 AS SIGNED ), + 84 ) ) WHEN - + 64 THEN + COUNT( * ) ELSE - 81 END AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + - CASE ( COALESCE ( - COALESCE ( - 26, - 80 ), - AVG ( - - 94 ), + CAST ( + 42 AS INTEGER ), + 84 ) ) WHEN - + 64 THEN + COUNT ( * ) ELSE - 81 END AS col1
----
81

onlyif mysql # aggregate syntax: 
query III rowsort label-4465
SELECT ALL + 54 * - 1, - COUNT( * ) AS col2, - 54 + + - COUNT( * ) AS col1
----
-54
-1
-55

skipif mysql # not compatible
query III rowsort label-4465
SELECT ALL + 54 * - 1, - COUNT ( * ) AS col2, - 54 + + - COUNT ( * ) AS col1
----
-54
-1
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + COALESCE ( + - CASE + COUNT( DISTINCT + 20 ) WHEN - - 5 + - 76 THEN NULL WHEN 82 / - COUNT( * ) + + + 92 - - 12 THEN - 97 - + 56 END, + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4466
SELECT + COALESCE ( + - CASE + COUNT ( DISTINCT + 20 ) WHEN - - 5 + - 76 THEN NULL WHEN 82 / - COUNT ( * ) + + + 92 - - 12 THEN - 97 - + 56 END, + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4467
SELECT ALL + + NULLIF ( + - 82, - + 20 + + + NULLIF ( + CAST( - + 2 AS DECIMAL ), COUNT( * ) ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL + + NULLIF ( + - 82, - + 20 + + + NULLIF ( + CAST ( - + 2 AS REAL ), COUNT ( * ) ) ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + 6 / - - CASE + - 87 WHEN 15 THEN + 52 / COUNT( 5 ) + + 3 WHEN MIN( ALL + + 4 ) + 63 THEN 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT + 6 / - - CASE + - 87 WHEN 15 THEN + 52 / COUNT ( 5 ) + + 3 WHEN MIN ( ALL + + 4 ) + 63 THEN 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - + 2 + + + MAX( DISTINCT + 61 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-4469
SELECT - + 2 + + + MAX ( DISTINCT + 61 ) col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT + 10 + - 72 DIV - - 42 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + 10 + - 72 / - - 42 AS col0
----
9

query I rowsort
SELECT DISTINCT NULLIF ( - 66, + 22 ) * + 49
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL ( + COUNT( DISTINCT - 14 ) ) + + 37 * + 21 * 91 AS col2
----
70708

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL ( + COUNT ( DISTINCT - 14 ) ) + + 37 * + 21 * 91 AS col2
----
70708

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL - 97 + + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL - 97 + + COUNT ( * )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4474
SELECT ALL - 86 * + ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) + - - CAST( NULL AS SIGNED ), + 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-4474
SELECT ALL - 86 * + ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + - - CAST ( NULL AS INTEGER ), + 17 AS col1
----
NULL
17

query I rowsort
SELECT + 7 * - 56 AS col2
----
-392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT - CAST( CASE 77 WHEN + 61 THEN - - 62 + - + ( - 84 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT - CAST ( CASE 77 WHEN + 61 THEN - - 62 + - + ( - 84 ) END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT DISTINCT + CAST( + 65 AS SIGNED ) + 72 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + CAST ( + 65 AS INTEGER ) + 72 AS col2
----
137

query I rowsort
SELECT DISTINCT ( - + 74 ) AS col1
----
-74

query II rowsort
SELECT 12 AS col1, - 68 + 27 col1
----
12
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT ALL CAST( - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL CAST ( - 40 AS INTEGER )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4481
SELECT ALL COALESCE ( 53, COUNT( * ) DIV + + CAST( - - 69 AS SIGNED ) DIV + COALESCE ( + SUM( DISTINCT 94 ), - COUNT( * ) * + 14 + - COALESCE ( + 90, ( + 76 ), - NULLIF ( 79, - + 67 * - 6 + - + 87 + CAST( NULL AS SIGNED ) DIV 41 ), + 5 + - + 43 - - MIN( ALL - 27 ) * ( + 50 + COALESCE ( - 16 + - ( 94 - - 44 ), + SUM( ALL 52 ) ) ) ) + 46 ) - ( + 37 ) + + 89 )
----
53

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL COALESCE ( 53, COUNT ( * ) / + + CAST ( - - 69 AS INTEGER ) / + COALESCE ( + SUM ( DISTINCT 94 ), - COUNT ( * ) * + 14 + - COALESCE ( + 90, ( + 76 ), - NULLIF ( 79, - + 67 * - 6 + - + 87 + CAST ( NULL AS INTEGER ) / 41 ), + 5 + - + 43 - - MIN ( ALL - 27 ) * ( + 50 + COALESCE ( - 16 + - ( 94 - - 44 ), + SUM ( ALL 52 ) ) ) ) + 46 ) - ( + 37 ) + + 89 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT - 0 - - MAX( 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT - 0 - - MAX ( 70 ) AS col1
----
70

query I rowsort
SELECT - 76 * + - 62 col0
----
4712

query I rowsort
SELECT - 82 * ( 17 ) AS col1
----
-1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4485
SELECT DISTINCT - 0 * - - COUNT( * ) * + MIN( ALL 78 ), - CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4485
SELECT DISTINCT - 0 * - - COUNT ( * ) * + MIN ( ALL 78 ), - CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT CAST( + + 82 AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4486
SELECT CAST ( + + 82 AS INTEGER ) AS col0
----
82

query II rowsort
SELECT - 46 * 23 * + 68, 23 AS col1
----
-71944
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT + CASE + 18 WHEN COALESCE ( - 67, + - 68 + MAX( - - 77 ) - + - 95 * 83 ) THEN + + 74 + - 48 WHEN 38 THEN NULL WHEN + - 80 THEN + NULLIF ( + COUNT( * ), - ( + COUNT( * ) ) ) WHEN + + 41 THEN NULL ELSE 5 END * - 25 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT + CASE + 18 WHEN COALESCE ( - 67, + - 68 + MAX ( - - 77 ) - + - 95 * 83 ) THEN + + 74 + - 48 WHEN 38 THEN NULL WHEN + - 80 THEN + NULLIF ( + COUNT ( * ), - ( + COUNT ( * ) ) ) WHEN + + 41 THEN NULL ELSE 5 END * - 25 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 77 * - 59 - - - 4 * + 72
----
-4831

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4490
SELECT CAST( NULL AS SIGNED ), 35 - 33 + + - 94 + - 50 * + 13 + + COUNT( * ) * + CAST( NULL AS SIGNED ) * - + 71 * + 98 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4490
SELECT CAST ( NULL AS INTEGER ), 35 - 33 + + - 94 + - 50 * + 13 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - + 71 * + 98 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT DISTINCT + COUNT( * ) AS col2, 28 + + ( + 16 )
----
1
44

skipif mysql # not compatible
query II rowsort label-4491
SELECT DISTINCT + COUNT ( * ) AS col2, 28 + + ( + 16 )
----
1
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT ALL SUM( ALL 5 ) * - + MIN( 72 ), 87 AS col1
----
-360
87

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL SUM ( ALL 5 ) * - + MIN ( 72 ), 87 AS col1
----
-360
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT 11 DIV - 51 + - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4493
SELECT 11 / - 51 + - 89 AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT DISTINCT + + ( + - ( + 35 ) ) DIV - 99 + + 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + + ( + - ( + 35 ) ) / - 99 + + 6 AS col0
----
6

query I rowsort
SELECT ALL 11 + - 4 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT 60 + - - CASE - 91 WHEN + COUNT( * ) THEN 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT 60 + - - CASE - 91 WHEN + COUNT ( * ) THEN 82 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT - 85 * - 91 * 78 * - + 96 - - + MAX( ( - - 14 ) ) AS col2
----
-57919666

skipif mysql # not compatible
query I rowsort label-4497
SELECT - 85 * - 91 * 78 * - + 96 - - + MAX ( ( - - 14 ) ) AS col2
----
-57919666

query II rowsort
SELECT + 94 AS col2, 94 + + - 5
----
94
89

query I rowsort
SELECT 50 - + 92 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL - COUNT( * ) * - - 41 col1
----
-41

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL - COUNT ( * ) * - - 41 col1
----
-41

query I rowsort
SELECT DISTINCT + 25 + - 40
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT COUNT( * ) + + 39 + - + ( - 15 )
----
55

skipif mysql # not compatible
query I rowsort label-4502
SELECT COUNT ( * ) + + 39 + - + ( - 15 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4503
SELECT DISTINCT - CASE + MIN( - + 98 ) WHEN + 71 + + 15 THEN - + SUM( DISTINCT 18 ) * + 23 WHEN - - 58 * - + 61 * + - COALESCE ( + - CAST( - - COUNT( * ) AS SIGNED ), - 69 * + 48, + 50 * + NULLIF ( - + 45, + - 50 ) + - - COALESCE ( + + ( ( - 82 ) ), + 24 * COUNT( ALL + 29 ) ) + + ( 91 ) * 27 ) + - 38 THEN NULL ELSE + 51 / CASE + COUNT( * ) * 77 WHEN - 47 / + 44 THEN 95 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - CASE + MIN ( - + 98 ) WHEN + 71 + + 15 THEN - + SUM ( DISTINCT 18 ) * + 23 WHEN - - 58 * - + 61 * + - COALESCE ( + - CAST ( - - COUNT ( * ) AS INTEGER ), - 69 * + 48, + 50 * + NULLIF ( - + 45, + - 50 ) + - - COALESCE ( + + ( ( - 82 ) ), + 24 * COUNT ( ALL + 29 ) ) + + ( 91 ) * 27 ) + - 38 THEN NULL ELSE + 51 / CASE + COUNT ( * ) * 77 WHEN - 47 / + 44 THEN 95 END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT CAST( - + 67 AS SIGNED ) + 75 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4504
SELECT CAST ( - + 67 AS INTEGER ) + 75 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + 58 + MIN( + 99 ) - - 27
----
184

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 58 + MIN ( + 99 ) - - 27
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL COUNT( * ) + + 50 + + 69 + + 98 - 85 - - + COUNT( * ) * - - 18 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL COUNT ( * ) + + 50 + + 69 + + 98 - 85 - - + COUNT ( * ) * - - 18 AS col1
----
151

query I rowsort
SELECT 39 + - - 82
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-4508
SELECT ALL + 42 AS col2, + ( + + 76 ) DIV - + 74 + - - ( - 80 ) AS col0
----
42
-81

skipif mysql # not compatible
query II rowsort label-4508
SELECT ALL + 42 AS col2, + ( + + 76 ) / - + 74 + - - ( - 80 ) AS col0
----
42
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT COUNT( * ) DIV SUM( + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT COUNT ( * ) / SUM ( + 23 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4510
SELECT ALL CASE + COUNT( 83 ) WHEN 1 * + 74 * ( + 51 ) + + 30 THEN NULL WHEN CAST( MAX( 12 ) AS SIGNED ) THEN + - COUNT( * ) + 77 / + COUNT( * ) WHEN - 15 THEN NULL ELSE - 41 END / CAST( NULL AS SIGNED ) + 21 * MAX( ALL + 82 ) - 74 + 81, + 20 AS col1
----
NULL
20

skipif mysql # not compatible
query II rowsort label-4510
SELECT ALL CASE + COUNT ( 83 ) WHEN 1 * + 74 * ( + 51 ) + + 30 THEN NULL WHEN CAST ( MAX ( 12 ) AS INTEGER ) THEN + - COUNT ( * ) + 77 / + COUNT ( * ) WHEN - 15 THEN NULL ELSE - 41 END / CAST ( NULL AS INTEGER ) + 21 * MAX ( ALL + 82 ) - 74 + 81, + 20 AS col1
----
NULL
20

query I rowsort
SELECT COALESCE ( - 87, - 8 ) * + 62 * + 23 * - 72 * - 53
----
-473420592

query I rowsort
SELECT ALL ( - 0 ) * 97 * - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT DISTINCT MAX( - ( - NULLIF ( - - 27, - + 69 * + 65 - - 1 ) ) ) - - MIN( + - 19 ) - + - 74 * + 92 AS col2
----
6816

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT MAX ( - ( - NULLIF ( - - 27, - + 69 * + 65 - - 1 ) ) ) - - MIN ( + - 19 ) - + - 74 * + 92 AS col2
----
6816

query II rowsort
SELECT 37 + 48, - 11 + - + 5 + - 78 * + - 99 col0
----
85
7706

query I rowsort
SELECT DISTINCT 60 - + 97
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT + 68 - + COUNT( + 77 )
----
67

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT + 68 - + COUNT ( + 77 )
----
67

query I rowsort
SELECT ALL 12 * 5
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ( CASE - 29 WHEN - COUNT( * ) THEN NULL WHEN + 22 / - - 23 * + 11 - + - 24 THEN - NULLIF ( - + 73, + 40 ) ELSE NULL END ) / 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ( CASE - 29 WHEN - COUNT ( * ) THEN NULL WHEN + 22 / - - 23 * + 11 - + - 24 THEN - NULLIF ( - + 73, + 40 ) ELSE NULL END ) / 50 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT 66 DIV - 82 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT 66 / - 82 * + 16
----
0

query I rowsort
SELECT DISTINCT 47 * + 28
----
1316

query I rowsort
SELECT 62 + - 42 + - + 53 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT - SUM( ALL + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - SUM ( ALL + 8 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4523
SELECT 78 DIV 12 + + 84 + + COUNT( + 52 ) * COUNT( * ) * - + 34
----
56

skipif mysql # not compatible
query I rowsort label-4523
SELECT 78 / 12 + + 84 + + COUNT ( + 52 ) * COUNT ( * ) * - + 34
----
56

query I rowsort
SELECT ALL + 48 * + - 97 + 22
----
-4634

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL + - COUNT( * ) + + + 18 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + - COUNT ( * ) + + + 18 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4526
SELECT DISTINCT + 4 + - + CASE 80 WHEN + COUNT( * ) - + NULLIF ( - 28, + 67 * 21 ) * - 84 + + - 27 THEN - 46 END + - - ( - 21 ) / - + 2 * + 10 * - CAST( + SUM( + 71 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT + 4 + - + CASE 80 WHEN + COUNT ( * ) - + NULLIF ( - 28, + 67 * 21 ) * - 84 + + - 27 THEN - 46 END + - - ( - 21 ) / - + 2 * + 10 * - CAST ( + SUM ( + 71 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4527
SELECT ALL - 96 + + 84 + + COUNT( * ) * COUNT( * ), COUNT( * ) DIV - + 77 AS col1
----
-11
0

skipif mysql # not compatible
query II rowsort label-4527
SELECT ALL - 96 + + 84 + + COUNT ( * ) * COUNT ( * ), COUNT ( * ) / - + 77 AS col1
----
-11
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT ALL - + ( + 5 ) * - ( - + COUNT( * ) ) * + CAST( 99 AS SIGNED )
----
-495

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL - + ( + 5 ) * - ( - + COUNT ( * ) ) * + CAST ( 99 AS INTEGER )
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + 21 + ( + COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + 21 + ( + COUNT ( * ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL + COUNT( * ) + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + COUNT ( * ) + - 31
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT ALL 54 DIV MAX( DISTINCT + + 84 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL 54 / MAX ( DISTINCT + + 84 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + ( - - 99 ) + - 37
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4533
SELECT ALL + 61 + + CAST( NULL AS SIGNED ) col2, + 14 AS col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-4533
SELECT ALL + 61 + + CAST ( NULL AS INTEGER ) col2, + 14 AS col1
----
NULL
14

query I rowsort
SELECT - 81 - - 85 * + - 25 * + 89
----
-189206

query I rowsort
SELECT 21 * + 51 + - + 32
----
1039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT - CAST( 44 AS SIGNED ) * + - CAST( NULL AS SIGNED ) - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT - CAST ( 44 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) - 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4537
SELECT + ( + 80 ) * + NULLIF ( - CAST( - 91 AS SIGNED ), - 54 + + - 50 * + - 36 ) * - 4 AS col0, - COUNT( * )
----
-29120
-1

skipif mysql # not compatible
query II rowsort label-4537
SELECT + ( + 80 ) * + NULLIF ( - CAST ( - 91 AS INTEGER ), - 54 + + - 50 * + - 36 ) * - 4 AS col0, - COUNT ( * )
----
-29120
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT + 8 + - NULLIF ( - MAX( + 87 ), + 43 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4538
SELECT + 8 + - NULLIF ( - MAX ( + 87 ), + 43 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT + COUNT( * ) * - 34
----
-34

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + COUNT ( * ) * - 34
----
-34

query I rowsort
SELECT ALL NULLIF ( - - 80, - 11 ) - 79 + + 40 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT COUNT( * ) * 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4541
SELECT COUNT ( * ) * 59 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4542
SELECT CASE + + 85 WHEN - 24 THEN CASE - + 63 WHEN - 6 THEN NULL WHEN + 80 THEN 97 END + + ( CASE - - COUNT( * ) WHEN 27 * - + ( + 49 ) THEN + COUNT( DISTINCT + CAST( + 67 AS SIGNED ) ) * + 53 WHEN - 33 * - COUNT( * ) THEN 89 + + 49 WHEN + + 59 THEN NULL END ) ELSE 65 * - CASE 48 WHEN 69 THEN NULL WHEN + 74 THEN ( 2 ) WHEN 93 * 37 - 79 THEN 16 ELSE NULL END END * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT CASE + + 85 WHEN - 24 THEN CASE - + 63 WHEN - 6 THEN NULL WHEN + 80 THEN 97 END + + ( CASE - - COUNT ( * ) WHEN 27 * - + ( + 49 ) THEN + COUNT ( DISTINCT + CAST ( + 67 AS INTEGER ) ) * + 53 WHEN - 33 * - COUNT ( * ) THEN 89 + + 49 WHEN + + 59 THEN NULL END ) ELSE 65 * - CASE 48 WHEN 69 THEN NULL WHEN + 74 THEN ( 2 ) WHEN 93 * 37 - 79 THEN 16 ELSE NULL END END * 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT 72 + - COUNT( * ) + + 72 * + 7 * - ( - - 16 ) * + 24
----
-193465

skipif mysql # not compatible
query I rowsort label-4543
SELECT 72 + - COUNT ( * ) + + 72 * + 7 * - ( - - 16 ) * + 24
----
-193465

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT COALESCE ( + 22, - 39 * - - 43, - + COALESCE ( + - ( + 9 ), 20, + SUM( DISTINCT + + 82 ) * - 58 - - - 21 + - + 35 ) ) * 10 + 83 + 48
----
351

skipif mysql # not compatible
query I rowsort label-4544
SELECT COALESCE ( + 22, - 39 * - - 43, - + COALESCE ( + - ( + 9 ), 20, + SUM ( DISTINCT + + 82 ) * - 58 - - - 21 + - + 35 ) ) * 10 + 83 + 48
----
351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT CAST( 9 AS SIGNED ) * - CASE + 23 WHEN + + 94 THEN NULL WHEN - 82 THEN - - 65 * - - 92 WHEN + 19 / 57 / - COUNT( * ) - 18 THEN NULL ELSE + - 41 * + + 57 END
----
21033

skipif mysql # not compatible
query I rowsort label-4545
SELECT CAST ( 9 AS INTEGER ) * - CASE + 23 WHEN + + 94 THEN NULL WHEN - 82 THEN - - 65 * - - 92 WHEN + 19 / 57 / - COUNT ( * ) - 18 THEN NULL ELSE + - 41 * + + 57 END
----
21033

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT MAX( DISTINCT - 33 ) - - NULLIF ( + 94, 34 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4546
SELECT MAX ( DISTINCT - 33 ) - - NULLIF ( + 94, 34 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL 17 * + 15 * - COALESCE ( - 73, + 29 * + COUNT( * ) )
----
18615

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL 17 * + 15 * - COALESCE ( - 73, + 29 * + COUNT ( * ) )
----
18615

onlyif mysql # DIV for integer division: 
query I rowsort label-4548
SELECT ALL 29 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL 29 / - 51
----
0

query I rowsort
SELECT ALL - 83 * 23
----
-1909

query I rowsort
SELECT + 4 + 9
----
13

query I rowsort
SELECT - 10 * + + NULLIF ( + 92, + 76 * 63 ) AS col0
----
-920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4552
SELECT + - 21 * - - 28 - + + 30 * + CAST( NULL AS DECIMAL ) + - 90 * - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT + - 21 * - - 28 - + + 30 * + CAST ( NULL AS REAL ) + - 90 * - 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4553
SELECT ALL + 0 AS col2, - COUNT( * ) * + 63 + + + 34 + 85 AS col1
----
0
56

skipif mysql # not compatible
query II rowsort label-4553
SELECT ALL + 0 AS col2, - COUNT ( * ) * + 63 + + + 34 + 85 AS col1
----
0
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4554
SELECT 11 * 8 + 52, + COUNT( * ) * CASE + + 22 WHEN + CAST( - 98 AS SIGNED ) THEN NULL WHEN - 3 * + 98 + - 94 - 14 + + + COALESCE ( + 35, CASE - + 78 WHEN - + 91 THEN - ( + - COUNT( * ) ) * + 59 ELSE NULL END ) THEN + 79 * - 54 + + + 9 + + 52 + 23 * ( - 25 ) ELSE NULL END AS col2
----
140
NULL

skipif mysql # not compatible
query II rowsort label-4554
SELECT 11 * 8 + 52, + COUNT ( * ) * CASE + + 22 WHEN + CAST ( - 98 AS INTEGER ) THEN NULL WHEN - 3 * + 98 + - 94 - 14 + + + COALESCE ( + 35, CASE - + 78 WHEN - + 91 THEN - ( + - COUNT ( * ) ) * + 59 ELSE NULL END ) THEN + 79 * - 54 + + + 9 + + 52 + 23 * ( - 25 ) ELSE NULL END AS col2
----
140
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT MAX( ALL - 65 ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-4555
SELECT MAX ( ALL - 65 ) col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4556
SELECT ALL + + COUNT( * ) * + - COUNT( * ) * - COALESCE ( + 74, COUNT( DISTINCT + 31 ) DIV - 48 * - + 37 * MAX( ALL + NULLIF ( - 27, 71 + - 18 ) ), + + 86 ) - - + 53 AS col0, 95 AS col0
----
127
95

skipif mysql # not compatible
query II rowsort label-4556
SELECT ALL + + COUNT ( * ) * + - COUNT ( * ) * - COALESCE ( + 74, COUNT ( DISTINCT + 31 ) / - 48 * - + 37 * MAX ( ALL + NULLIF ( - 27, 71 + - 18 ) ), + + 86 ) - - + 53 AS col0, 95 AS col0
----
127
95

query I rowsort
SELECT - 38 * 74 + + 70 + 97 AS col1
----
-2645

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL - + 31 * 32 + COUNT( * ) + + + 99 AS col2
----
-892

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - + 31 * 32 + COUNT ( * ) + + + 99 AS col2
----
-892

query I rowsort
SELECT DISTINCT + - 96 * 99 - 90 * 13 AS col1
----
-10674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4560
SELECT + - CAST( NULL AS SIGNED ) + + - NULLIF ( - ( - 15 ), + - MAX( + - 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT + - CAST ( NULL AS INTEGER ) + + - NULLIF ( - ( - 15 ), + - MAX ( + - 53 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4561
SELECT - 38 * 98 DIV + CAST( + - 58 AS SIGNED ) - - 13 col1
----
77

skipif mysql # not compatible
query I rowsort label-4561
SELECT - 38 * 98 / + CAST ( + - 58 AS INTEGER ) - - 13 col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT ALL + + 29 * - + 35 DIV + 7
----
-145

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL + + 29 * - + 35 / + 7
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-4563
SELECT - COUNT( + + 66 ) * - + 53 * - 49 + - + 59 - 38 col2, 53
----
-2694
53

skipif mysql # not compatible
query II rowsort label-4563
SELECT - COUNT ( + + 66 ) * - + 53 * - 49 + - + 59 - 38 col2, 53
----
-2694
53

query I rowsort
SELECT - + COALESCE ( 98, - ( + 63 ) + 66 ) + 84 AS col2
----
-14

query I rowsort
SELECT DISTINCT + ( - 3 ) AS col1
----
-3

query I rowsort
SELECT DISTINCT + - ( - - 33 )
----
-33

query I rowsort
SELECT - 13 + + 53 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4568
SELECT DISTINCT COALESCE ( - 98, + 10 DIV + - COUNT( * ), - 40 )
----
-98

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT COALESCE ( - 98, + 10 / + - COUNT ( * ), - 40 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT - 89 + - - 96 + + COALESCE ( + + 41, + - CASE + 75 WHEN 13 THEN + 52 + COALESCE ( - 84, + 89 * + + ( - - 20 ) * + 83 + - - 92 + + 95, - NULLIF ( - + 53, - + 89 ) ) + - - CASE 23 WHEN 26 THEN + + 0 ELSE NULL END + 42 ELSE 65 END * - + 97 DIV - 91 - COALESCE ( + 54 + - 34, 81 * - 63 + - 91, 37 ) * 93 + - 93 * 87 ) + - 38 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 89 + - - 96 + + COALESCE ( + + 41, + - CASE + 75 WHEN 13 THEN + 52 + COALESCE ( - 84, + 89 * + + ( - - 20 ) * + 83 + - - 92 + + 95, - NULLIF ( - + 53, - + 89 ) ) + - - CASE 23 WHEN 26 THEN + + 0 ELSE NULL END + 42 ELSE 65 END * - + 97 / - 91 - COALESCE ( + 54 + - 34, 81 * - 63 + - 91, 37 ) * 93 + - 93 * 87 ) + - 38 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL COALESCE ( - 71, ( - ( - - 64 ) ) - + - ( COUNT( * ) ), - 33 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL COALESCE ( - 71, ( - ( - - 64 ) ) - + - ( COUNT ( * ) ), - 33 ) AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT - 7 DIV - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4571
SELECT - 7 / - 12 AS col0
----
0

query II rowsort
SELECT 15 AS col2, + 41 * 50
----
15
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + CASE 70 WHEN 62 / + COALESCE ( ( 78 ), COUNT( - + 0 ) * + + COUNT( * ) ) * + COUNT( 73 ) * - - COUNT( + ( 0 ) ) THEN CASE 72 WHEN COUNT( * ) THEN NULL WHEN - - 38 + 79 + - COUNT( * ) * 97 * + 97 / - SUM( DISTINCT - 32 ) THEN 63 END * COUNT( * ) + + 52 ELSE + 42 * + 81 END * + 44
----
149688

skipif mysql # not compatible
query I rowsort label-4573
SELECT + CASE 70 WHEN 62 / + COALESCE ( ( 78 ), COUNT ( - + 0 ) * + + COUNT ( * ) ) * + COUNT ( 73 ) * - - COUNT ( + ( 0 ) ) THEN CASE 72 WHEN COUNT ( * ) THEN NULL WHEN - - 38 + 79 + - COUNT ( * ) * 97 * + 97 / - SUM ( DISTINCT - 32 ) THEN 63 END * COUNT ( * ) + + 52 ELSE + 42 * + 81 END * + 44
----
149688

query I rowsort
SELECT ALL ( - + ( + 22 ) )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4575
SELECT - CAST( NULL AS DECIMAL ) * - 28 * - COUNT( * ) + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT - CAST ( NULL AS REAL ) * - 28 * - COUNT ( * ) + 49
----
NULL

query I rowsort
SELECT ALL ( CASE + 69 WHEN ( - 4 ) THEN + 63 + - 9 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + ( + COUNT( * ) ) + - ( - 34 )
----
35

skipif mysql # not compatible
query I rowsort label-4577
SELECT + ( + COUNT ( * ) ) + - ( - 34 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4578
SELECT - COALESCE ( + - COUNT( * ), CAST( NULL AS SIGNED ) DIV + - 41 + - COUNT( * ) ) * - + COUNT( * ) DIV + CAST( 95 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT - COALESCE ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) / + - 41 + - COUNT ( * ) ) * - + COUNT ( * ) / + CAST ( 95 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4579
SELECT + CAST( MIN( - + 1 ) AS SIGNED ) * 3 * 51 + - + 7, 11 AS col2
----
-160
11

skipif mysql # not compatible
query II rowsort label-4579
SELECT + CAST ( MIN ( - + 1 ) AS INTEGER ) * 3 * 51 + - + 7, 11 AS col2
----
-160
11

query I rowsort
SELECT DISTINCT - 33 + - 88 AS col0
----
-121

query I rowsort
SELECT DISTINCT 70 + 19
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL - 24 + COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - 24 + COUNT ( * ) AS col1
----
-23

query II rowsort
SELECT ALL 0, 55 AS col1
----
0
55

query I rowsort
SELECT + 87 + ( + 67 ) AS col0
----
154

query I rowsort
SELECT DISTINCT + ( 3 ) + 42
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL 86 + + COUNT( DISTINCT 45 ) + + ( - 86 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL 86 + + COUNT ( DISTINCT 45 ) + + ( - 86 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4587
SELECT - 28 AS col2, COUNT( * ) AS col2
----
-28
1

skipif mysql # not compatible
query II rowsort label-4587
SELECT - 28 AS col2, COUNT ( * ) AS col2
----
-28
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4588
SELECT + COUNT( ALL - 12 ) * + - 78 + 66 + - 45 * - 85 AS col2, - 3 - 75 DIV - 87 AS col2
----
3813
-3

skipif mysql # not compatible
query II rowsort label-4588
SELECT + COUNT ( ALL - 12 ) * + - 78 + 66 + - 45 * - 85 AS col2, - 3 - 75 / - 87 AS col2
----
3813
-3

query I rowsort
SELECT DISTINCT + NULLIF ( + + 77, - 75 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT DISTINCT 48 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT 48 / + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL + 5 * - MAX( DISTINCT 3 ) * 62 col0
----
-930

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + 5 * - MAX ( DISTINCT 3 ) * 62 col0
----
-930

query II rowsort
SELECT 70 col2, NULLIF ( - + 12, 93 ) AS col2
----
70
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT ALL - + 54 DIV - + 68 - - 76 * 30 DIV - COUNT( * ) + - 80 AS col1
----
-2360

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - + 54 / - + 68 - - 76 * 30 / - COUNT ( * ) + - 80 AS col1
----
-2360

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT DISTINCT + + MAX( 8 ) AS col1, + COUNT( * ) col2
----
8
1

skipif mysql # not compatible
query II rowsort label-4594
SELECT DISTINCT + + MAX ( 8 ) AS col1, + COUNT ( * ) col2
----
8
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT CAST( + - MAX( - 4 ) AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4595
SELECT CAST ( + - MAX ( - 4 ) AS INTEGER ) AS col0
----
4

query I rowsort
SELECT + 50 * - 32 + ( - 49 )
----
-1649

query I rowsort
SELECT + 19 + - + 26
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL 89 * COUNT( ALL + + 22 )
----
89

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL 89 * COUNT ( ALL + + 22 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4599
SELECT + + 61 AS col1, 1 + CAST( NULL AS SIGNED ) AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-4599
SELECT + + 61 AS col1, 1 + CAST ( NULL AS INTEGER ) AS col0
----
61
NULL

query I rowsort
SELECT - 98 * - 0 + - 5 + - + 95 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-4601
SELECT DISTINCT + + COUNT( * ), 60 AS col0
----
1
60

skipif mysql # not compatible
query II rowsort label-4601
SELECT DISTINCT + + COUNT ( * ), 60 AS col0
----
1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL + 15 * 68 - + 4 + 75 * + COUNT( * ) AS col0
----
1091

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + 15 * 68 - + 4 + 75 * + COUNT ( * ) AS col0
----
1091

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT + + COUNT( * ) * + - MIN( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-4603
SELECT + + COUNT ( * ) * + - MIN ( - 87 )
----
87

query I rowsort
SELECT ALL + + 69 col0
----
69

query I rowsort
SELECT ALL - - NULLIF ( + 49, 13 ) * 7
----
343

query I rowsort
SELECT - 22 * + 73 + 47
----
-1559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT DISTINCT - 72 * - 52 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - 72 * - 52 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 66 * 18 AS col2
----
-1188

query I rowsort
SELECT + 77 - - 13 * + 23 AS col1
----
376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT NULLIF ( - + COALESCE ( + - 97, 42 * + 21 * ( 38 ) * MIN( ALL - 34 ), - 7 DIV + + 66 + 16 ), - + 45 )
----
97

skipif mysql # not compatible
query I rowsort label-4610
SELECT NULLIF ( - + COALESCE ( + - 97, 42 * + 21 * ( 38 ) * MIN ( ALL - 34 ), - 7 / + + 66 + 16 ), - + 45 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + 95 * 14 * - - COUNT( * ) col0
----
1330

skipif mysql # not compatible
query I rowsort label-4611
SELECT + 95 * 14 * - - COUNT ( * ) col0
----
1330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT 68 * + COUNT( * ) + + - 52 DIV - + 76
----
68

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT 68 * + COUNT ( * ) + + - 52 / - + 76
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL - 55 * + COUNT( - + 76 ) * + - 22
----
1210

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL - 55 * + COUNT ( - + 76 ) * + - 22
----
1210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT NULLIF ( - ( + - CASE 51 WHEN - COALESCE ( 5, + 73 ) THEN NULL ELSE + + CAST( NULL AS SIGNED ) + + + 25 END ), + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT NULLIF ( - ( + - CASE 51 WHEN - COALESCE ( 5, + 73 ) THEN NULL ELSE + + CAST ( NULL AS INTEGER ) + + + 25 END ), + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( 48, - - 27 * + 68 + + 81 + + 17 * - 84 * + ( + ( + 57 ) ), + 0 ) - + 49 + 26 - 13
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT ALL + 83 + - 85 DIV - 78
----
84

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + 83 + - 85 / - 78
----
84

query I rowsort
SELECT DISTINCT + 10 + - 69 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-4618
SELECT ALL - 19 DIV + - 75, + 2 * - 62 AS col0
----
0
-124

skipif mysql # not compatible
query II rowsort label-4618
SELECT ALL - 19 / + - 75, + 2 * - 62 AS col0
----
0
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT 81 DIV 47 * + COALESCE ( - 80, - COUNT( * ) * - - 73 * + 98 ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT 81 / 47 * + COALESCE ( - 80, - COUNT ( * ) * - - 73 * + 98 ) / - 95
----
0

query I rowsort
SELECT ALL - 47 + - ( 86 )
----
-133

query I rowsort
SELECT DISTINCT - 10 + 48 - + 90 AS col0
----
-52

query II rowsort
SELECT 62 * 20, - 45 AS col1
----
1240
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-4623
SELECT ALL - 20 DIV 22, + 97 AS col1
----
0
97

skipif mysql # not compatible
query II rowsort label-4623
SELECT ALL - 20 / 22, + 97 AS col1
----
0
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4624
SELECT 71 DIV + 15 col1, + 14 - + NULLIF ( 46, + 87 )
----
4
-32

skipif mysql # not compatible
query II rowsort label-4624
SELECT 71 / + 15 col1, + 14 - + NULLIF ( 46, + 87 )
----
4
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT 7 / - - 83 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT 7 / - - 83 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT NULLIF ( + 33, 50 + - 96 ) - COUNT( * ) * + 78
----
-45

skipif mysql # not compatible
query I rowsort label-4626
SELECT NULLIF ( + 33, 50 + - 96 ) - COUNT ( * ) * + 78
----
-45

query II rowsort
SELECT 16 * + - 61 AS col1, + 94 * - 18 col1
----
-976
-1692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4628
SELECT ALL - COUNT( * ) + - - CAST( NULL AS SIGNED ) - + 59 * - 85 + + 92 + - 48 * AVG ( DISTINCT ( + 47 ) ) * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) - + 59 * - 85 + + 92 + - 48 * AVG ( DISTINCT ( + 47 ) ) * - 75
----
NULL

query II rowsort
SELECT DISTINCT 89 + 60 AS col2, 85 * 33
----
149
2805

onlyif mysql # aggregate syntax: 
query III rowsort label-4630
SELECT ALL - 14 * - COUNT( * ) AS col1, 92 AS col1, 29
----
14
92
29

skipif mysql # not compatible
query III rowsort label-4630
SELECT ALL - 14 * - COUNT ( * ) AS col1, 92 AS col1, 29
----
14
92
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT ALL + ( - 56 ) * - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + ( - 56 ) * - COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL - - COUNT( * ) - 40 * COUNT( * ) + + 2 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL - - COUNT ( * ) - 40 * COUNT ( * ) + + 2 AS col0
----
-37

query I rowsort
SELECT ALL 20 - + 85 col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT DISTINCT MAX( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4635
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) * CAST( NULL AS SIGNED ) * - - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - 50 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - 96, 78 )
----
-96

query I rowsort
SELECT ( - + 35 ) AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT + ( + SUM( DISTINCT + 95 ) ) DIV + + 39 + - + 93
----
-91

skipif mysql # not compatible
query I rowsort label-4638
SELECT + ( + SUM ( DISTINCT + 95 ) ) / + + 39 + - + 93
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4639
SELECT ALL - 82 DIV + - 54 + + + SUM( ALL - + 83 ) + + - 85 + + ( - + CAST( 30 AS SIGNED ) ) + 4 * - + ( 74 ) * - 1 + - 8 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL - 82 / + - 54 + + + SUM ( ALL - + 83 ) + + - 85 + + ( - + CAST ( 30 AS INTEGER ) ) + 4 * - + ( 74 ) * - 1 + - 8 AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT ALL - 38 DIV - + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - 38 / - + 83 AS col2
----
0

query II rowsort
SELECT ALL - 32 * - - 95 * - 54 + - 54 + - - 24 AS col2, 36 col2
----
164130
36

query I rowsort
SELECT 98 + + 5 AS col2
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT ALL + 58 * 40 AS col0, - COUNT( * ) AS col1
----
2320
-1

skipif mysql # not compatible
query II rowsort label-4643
SELECT ALL + 58 * 40 AS col0, - COUNT ( * ) AS col1
----
2320
-1

query I rowsort
SELECT - 20 * - 13 col1
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT + - 75 * - 17 + - + 79 + - + COUNT( * ) AS col0
----
1195

skipif mysql # not compatible
query I rowsort label-4645
SELECT + - 75 * - 17 + - + 79 + - + COUNT ( * ) AS col0
----
1195

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT COUNT( * ) + 65 + - 69 * - + ( + 83 ) * 10 * + 67 * 16 * 14 AS col2
----
859508226

skipif mysql # not compatible
query I rowsort label-4646
SELECT COUNT ( * ) + 65 + - 69 * - + ( + 83 ) * 10 * + 67 * 16 * 14 AS col2
----
859508226

query I rowsort
SELECT 40 + + 99
----
139

query I rowsort
SELECT 75 + + 29
----
104

query II rowsort
SELECT 67, - 40 * 15 AS col1
----
67
-600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT DISTINCT 83 + MIN( ALL - 30 ) + - + 49 DIV 71 * - 72 DIV 46 col2
----
53

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT 83 + MIN ( ALL - 30 ) + - + 49 / 71 * - 72 / 46 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL 42 + + - MIN( ALL + ( 2 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL 42 + + - MIN ( ALL + ( 2 ) ) AS col1
----
40

query I rowsort
SELECT ALL 12 + - 75 * - 29
----
2187

query I rowsort
SELECT DISTINCT 88 + - + 25 + - 90 + - + ( + + 60 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL + SUM( ALL - ( 8 ) ) + COUNT( * ) + - - 76 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + SUM ( ALL - ( 8 ) ) + COUNT ( * ) + - - 76 AS col2
----
69

query I rowsort
SELECT ALL 6 + - + 80 + - 35 * - 0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT - COUNT( * ) + + - 19
----
-20

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT - COUNT ( * ) + + - 19
----
-20

query I rowsort
SELECT 62 + + + 66 + - - 37 AS col0
----
165

query II rowsort
SELECT ALL 88, 36 AS col0
----
88
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT MIN( ALL 33 ) * + - 51
----
-1683

skipif mysql # not compatible
query I rowsort label-4659
SELECT MIN ( ALL 33 ) * + - 51
----
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT 10 + - MAX( DISTINCT + 39 ) + - 93 + + 26
----
-96

skipif mysql # not compatible
query I rowsort label-4660
SELECT 10 + - MAX ( DISTINCT + 39 ) + - 93 + + 26
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4661
SELECT ALL - COUNT( * ) + 34 + - 58, CASE + 67 WHEN - 98 THEN + MIN( DISTINCT + ( - - 89 ) ) / - 11 + + 25 WHEN + 63 + + 8 THEN NULL ELSE NULL END / 69 * - 57 col0
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-4661
SELECT ALL - COUNT ( * ) + 34 + - 58, CASE + 67 WHEN - 98 THEN + MIN ( DISTINCT + ( - - 89 ) ) / - 11 + + 25 WHEN + 63 + + 8 THEN NULL ELSE NULL END / 69 * - 57 col0
----
-25
NULL

query I rowsort
SELECT ALL + 61 + + 5
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4663
SELECT - COUNT( ( - - CAST( + 78 AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4663
SELECT - COUNT ( ( - - CAST ( + 78 AS INTEGER ) ) )
----
-1

query I rowsort
SELECT 97 + + 26 AS col1
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-4665
SELECT 0 * 79 * - COUNT( * ) AS col0, - 96 + - 74 AS col1
----
0
-170

skipif mysql # not compatible
query II rowsort label-4665
SELECT 0 * 79 * - COUNT ( * ) AS col0, - 96 + - 74 AS col1
----
0
-170

query I rowsort
SELECT - 52 + - - NULLIF ( + 54, - 35 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4667
SELECT - 65 + - 87 - - - 67 col1, - NULLIF ( 69, - CASE - 16 WHEN + - 76 THEN NULL ELSE - 59 * - 88 / + + COUNT( * ) * + COUNT( DISTINCT 33 ) * + ( MAX( DISTINCT + 16 ) ) + 61 * - - 35 * - - 15 * + - CASE COUNT( * ) WHEN - - 51 / - + CASE - 1 WHEN COUNT( * ) THEN + COUNT( * ) + + - COALESCE ( 73, + 82, + CAST( 98 AS SIGNED ) ) / - 95 WHEN + COUNT( DISTINCT 41 ) THEN 41 * ( + 45 ) ELSE + 4 * 62 END * MAX( + 80 + 82 / + 39 ) THEN NULL WHEN - 3 + 61 THEN + 92 END * - COUNT( * ) - COALESCE ( + MAX( ALL - 45 ), - 31 ) END )
----
-219
-69

skipif mysql # not compatible
query II rowsort label-4667
SELECT - 65 + - 87 - - - 67 col1, - NULLIF ( 69, - CASE - 16 WHEN + - 76 THEN NULL ELSE - 59 * - 88 / + + COUNT ( * ) * + COUNT ( DISTINCT 33 ) * + ( MAX ( DISTINCT + 16 ) ) + 61 * - - 35 * - - 15 * + - CASE COUNT ( * ) WHEN - - 51 / - + CASE - 1 WHEN COUNT ( * ) THEN + COUNT ( * ) + + - COALESCE ( 73, + 82, + CAST ( 98 AS INTEGER ) ) / - 95 WHEN + COUNT ( DISTINCT 41 ) THEN 41 * ( + 45 ) ELSE + 4 * 62 END * MAX ( + 80 + 82 / + 39 ) THEN NULL WHEN - 3 + 61 THEN + 92 END * - COUNT ( * ) - COALESCE ( + MAX ( ALL - 45 ), - 31 ) END )
----
-219
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT ALL - - 2 - - 63 + + + 37 * + 68 + + CASE WHEN NULL IS NULL THEN 10 END * - SUM( ALL - + 10 ) AS col1, 80
----
2681
80

skipif mysql # not compatible
query II rowsort label-4668
SELECT ALL - - 2 - - 63 + + + 37 * + 68 + + CASE WHEN NULL IS NULL THEN 10 END * - SUM ( ALL - + 10 ) AS col1, 80
----
2681
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT ALL + 88 DIV 67
----
1

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + 88 / 67
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4670
SELECT 65 * + - CAST( 64 AS SIGNED ), + 18 col1
----
-4160
18

skipif mysql # not compatible
query II rowsort label-4670
SELECT 65 * + - CAST ( 64 AS INTEGER ), + 18 col1
----
-4160
18

query I rowsort
SELECT - + ( - ( 67 ) ) col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT + 1 + + + 51 + - 30 + + 93 - - 11 * 18 * - - COUNT( * ) DIV - - NULLIF ( + 89, + - 76 ) DIV 43 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-4672
SELECT + 1 + + + 51 + - 30 + + 93 - - 11 * 18 * - - COUNT ( * ) / - - NULLIF ( + 89, + - 76 ) / 43 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT COUNT( * ) * 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4673
SELECT COUNT ( * ) * 43 AS col2
----
43

query I rowsort
SELECT ALL + ( + 64 ) AS col0
----
64

query I rowsort
SELECT DISTINCT + 3 * + 61
----
183

query I rowsort
SELECT 13 * + - 89 AS col1
----
-1157

query II rowsort
SELECT + + 46, 24 AS col0
----
46
24

query I rowsort
SELECT ALL 68 * + + 10 + + ( - 85 ) AS col1
----
595

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT SUM( 0 ) * + NULLIF ( + 86, 92 * + 42 / COUNT( * ) + - AVG ( DISTINCT - - 52 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4679
SELECT SUM ( 0 ) * + NULLIF ( + 86, 92 * + 42 / COUNT ( * ) + - AVG ( DISTINCT - - 52 ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4680
SELECT DISTINCT 1 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT 1 / + 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL 36 * MAX( + 48 ) AS col2
----
1728

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL 36 * MAX ( + 48 ) AS col2
----
1728

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4682
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) * + 74 + 2 AS col0, 31 AS col2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) * + 74 + 2 AS col0, 31 AS col2
----
NULL
31

query I rowsort
SELECT DISTINCT 72 * 0 + + 84
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4684
SELECT DISTINCT + 37 DIV + 61, COUNT( DISTINCT + + 79 ) * - 8 AS col0
----
0
-8

skipif mysql # not compatible
query II rowsort label-4684
SELECT DISTINCT + 37 / + 61, COUNT ( DISTINCT + + 79 ) * - 8 AS col0
----
0
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT + COUNT( DISTINCT - + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-4685
SELECT + COUNT ( DISTINCT - + 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL 0 * + CASE - + 54 WHEN 92 + - - 38 THEN - COUNT( DISTINCT - + 82 ) * COALESCE ( - - COUNT( * ), + - 11 ) + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL 0 * + CASE - + 54 WHEN 92 + - - 38 THEN - COUNT ( DISTINCT - + 82 ) * COALESCE ( - - COUNT ( * ), + - 11 ) + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4687
SELECT + 46 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-4687
SELECT + 46 / 84
----
0

query I rowsort
SELECT + ( - 43 ) * 87
----
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT + 64 + + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4689
SELECT + 64 + + - COUNT ( * ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4690
SELECT DISTINCT 58 - CASE + ( SUM( + 85 ) ) WHEN CAST( + 68 AS DECIMAL ) THEN NULL ELSE 81 END + + CAST( + 1 AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT 58 - CASE + ( SUM ( + 85 ) ) WHEN CAST ( + 68 AS REAL ) THEN NULL ELSE 81 END + + CAST ( + 1 AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT DISTINCT + + ( + 59 ) * 46 col2
----
2714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT - + COALESCE ( + + 91, 73, 63 * + 1 + - 29 + + COALESCE ( 69, + COUNT( - + 82 ) * 57 * + 4 * 20 ) * - + COALESCE ( + ( + + 3 ), + ( + 24 ) + + 80 ), + - ( 88 ) * - - 75 + + COUNT( * ) - 20 + + COUNT( * ) DIV SUM( DISTINCT COALESCE ( + 64, + + 59 * - 19 + 83 * 24 ) ) DIV + 30 )
----
-91

skipif mysql # not compatible
query I rowsort label-4692
SELECT - + COALESCE ( + + 91, 73, 63 * + 1 + - 29 + + COALESCE ( 69, + COUNT ( - + 82 ) * 57 * + 4 * 20 ) * - + COALESCE ( + ( + + 3 ), + ( + 24 ) + + 80 ), + - ( 88 ) * - - 75 + + COUNT ( * ) - 20 + + COUNT ( * ) / SUM ( DISTINCT COALESCE ( + 64, + + 59 * - 19 + 83 * 24 ) ) / + 30 )
----
-91

query I rowsort
SELECT + - 43 + + COALESCE ( + 94, + - 73 - 33 ) AS col2
----
51

query I rowsort
SELECT - - ( - + 47 ) * + 58 * 28 AS col2
----
-76328

query I rowsort
SELECT + + 26 * + 59
----
1534

query I rowsort
SELECT ALL + 82 * 82 AS col2
----
6724

query I rowsort
SELECT DISTINCT + 55 * - - 11 + - + 42 AS col2
----
563

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT ( + + CASE + - 27 WHEN - ( 78 ) THEN - + ( + COUNT( * ) ) / + 40 + - 2 ELSE 58 END )
----
58

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT ( + + CASE + - 27 WHEN - ( 78 ) THEN - + ( + COUNT ( * ) ) / + 40 + - 2 ELSE 58 END )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4699
SELECT - + ( - ( - 0 ) ) * ( COUNT( * ) ), - 58 - 75 + + 89 - + MIN( 22 ) DIV + 14 + + MAX( ALL 16 ) * - + ( + - 46 ) AS col1
----
0
691

skipif mysql # not compatible
query II rowsort label-4699
SELECT - + ( - ( - 0 ) ) * ( COUNT ( * ) ), - 58 - 75 + + 89 - + MIN ( 22 ) / + 14 + + MAX ( ALL 16 ) * - + ( + - 46 ) AS col1
----
0
691

onlyif mysql # DIV for integer division: 
query I rowsort label-4700
SELECT ALL + 99 DIV + - ( + 13 ) + - 77 + + - 36 * COALESCE ( - - 99, + 52, 76 )
----
-3648

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL + 99 / + - ( + 13 ) + - 77 + + - 36 * COALESCE ( - - 99, + 52, 76 )
----
-3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT - - 36 * CAST( - 20 AS SIGNED ) * - - 66 * - 41 + + - 65 AS col2
----
1948255

skipif mysql # not compatible
query I rowsort label-4701
SELECT - - 36 * CAST ( - 20 AS INTEGER ) * - - 66 * - 41 + + - 65 AS col2
----
1948255

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT - - 45 * + 36 * - 62 + COUNT( * ) AS col1
----
-100439

skipif mysql # not compatible
query I rowsort label-4702
SELECT - - 45 * + 36 * - 62 + COUNT ( * ) AS col1
----
-100439

query I rowsort
SELECT - 15 * 71
----
-1065

query II rowsort
SELECT ( + - ( - - ( ( 31 ) ) ) ) AS col0, - 3
----
-31
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4705
SELECT - NULLIF ( - 76, - 29 ) DIV CAST( + + 53 AS SIGNED ) + 16
----
17

skipif mysql # not compatible
query I rowsort label-4705
SELECT - NULLIF ( - 76, - 29 ) / CAST ( + + 53 AS INTEGER ) + 16
----
17

query I rowsort
SELECT DISTINCT + 50 * - 64 * - 65 * + 58 AS col2
----
12064000

query I rowsort
SELECT ALL 25 * 10 + - 57 AS col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL + COUNT( * ) * 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + COUNT ( * ) * 13 AS col2
----
13

query I rowsort
SELECT - COALESCE ( + 16, + 31 ) + - COALESCE ( 16, + 33 ) AS col0
----
-32

query II rowsort
SELECT DISTINCT + 14 AS col0, 57 + - ( 57 )
----
14
0

query I rowsort
SELECT ( + - 37 )
----
-37

query II rowsort
SELECT ALL + 26, + 9 AS col2
----
26
9

query I rowsort
SELECT ALL + 33 * - - 89
----
2937

query I rowsort
SELECT NULLIF ( + 36, + 65 )
----
36

query I rowsort
SELECT NULLIF ( + 19, + ( - 8 ) )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4716
SELECT + NULLIF ( + - 81, - 64 ) col2, COUNT( * ) + + - 89 col0
----
-81
-88

skipif mysql # not compatible
query II rowsort label-4716
SELECT + NULLIF ( + - 81, - 64 ) col2, COUNT ( * ) + + - 89 col0
----
-81
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4717
SELECT + 23 + - CASE 83 WHEN + 33 + - ( + 47 ) + 94 THEN - 15 * - CAST( 9 AS SIGNED ) DIV - ( - + COUNT( * ) ) ELSE COUNT( ALL + - 58 ) - - 73 - - 7 END col0, + 74
----
-58
74

skipif mysql # not compatible
query II rowsort label-4717
SELECT + 23 + - CASE 83 WHEN + 33 + - ( + 47 ) + 94 THEN - 15 * - CAST ( 9 AS INTEGER ) / - ( - + COUNT ( * ) ) ELSE COUNT ( ALL + - 58 ) - - 73 - - 7 END col0, + 74
----
-58
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT - CAST( NULL AS SIGNED ) * - - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT - CAST ( NULL AS INTEGER ) * - - 93 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT ALL COALESCE ( - 41, - 86 ) DIV 71 * ( - + 45 )
----
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL COALESCE ( - 41, - 86 ) / 71 * ( - + 45 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT 98 * - COUNT( * ) + 21 AS col0, 70 AS col1
----
-77
70

skipif mysql # not compatible
query II rowsort label-4720
SELECT 98 * - COUNT ( * ) + 21 AS col0, 70 AS col1
----
-77
70

query I rowsort
SELECT + 87 + - - 42 AS col1
----
129

query I rowsort
SELECT + 4 * 55
----
220

onlyif mysql # DIV for integer division: 
query I rowsort label-4723
SELECT ALL + 89 DIV + - 3 col1
----
-29

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + 89 / + - 3 col1
----
-29

query II rowsort
SELECT + 76, 42 + 4 AS col1
----
76
46

query I rowsort
SELECT + 70 * - 84 AS col1
----
-5880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT + - ( + 11 ) + + + 49 + - - COUNT( * ) DIV - COUNT( * ) + 49
----
86

skipif mysql # not compatible
query I rowsort label-4726
SELECT + - ( + 11 ) + + + 49 + - - COUNT ( * ) / - COUNT ( * ) + 49
----
86

query I rowsort
SELECT ALL - 95 + + 42 * + 20
----
745

query II rowsort
SELECT DISTINCT 38 AS col0, + 66
----
38
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL + COUNT( * ) + - 53 * + 60 * ( - 76 ) * - 16 * + 47
----
-181743359

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + COUNT ( * ) + - 53 * + 60 * ( - 76 ) * - 16 * + 47
----
-181743359

query I rowsort
SELECT - - ( - 59 ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4731
SELECT ALL - 59 + + CAST( NULL AS DECIMAL ) * ( 82 ) / - CAST( + - NULLIF ( + 75, - + 63 * + COUNT( * ) + - 8 + - - COUNT( ALL - + ( - 44 ) ) * + COUNT( * ) * - + 48 ) AS DECIMAL ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL - 59 + + CAST ( NULL AS REAL ) * ( 82 ) / - CAST ( + - NULLIF ( + 75, - + 63 * + COUNT ( * ) + - 8 + - - COUNT ( ALL - + ( - 44 ) ) * + COUNT ( * ) * - + 48 ) AS REAL ) + + 76
----
NULL

query I rowsort
SELECT + 16 * + + 9 * - 17 - + 69 AS col2
----
-2517

query I rowsort
SELECT + 86 + ( - 19 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT COUNT( * ) AS col2, + 93 AS col2
----
1
93

skipif mysql # not compatible
query II rowsort label-4734
SELECT COUNT ( * ) AS col2, + 93 AS col2
----
1
93

query I rowsort
SELECT ALL 74 * NULLIF ( + 39, + NULLIF ( + 28, 42 - - 30 + - + 8 ) ) AS col1
----
2886

onlyif mysql # aggregate syntax: 
query II rowsort label-4736
SELECT - 17 AS col2, + COUNT( * )
----
-17
1

skipif mysql # not compatible
query II rowsort label-4736
SELECT - 17 AS col2, + COUNT ( * )
----
-17
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4737
SELECT DISTINCT 18 + - + ( + COALESCE ( - - SUM( DISTINCT CAST( NULL AS SIGNED ) ), CAST( + - 42 AS SIGNED ) + + 43, NULLIF ( - 63, 87 ) - - ( + COUNT( * ) ) * + 65 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT 18 + - + ( + COALESCE ( - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ), CAST ( + - 42 AS INTEGER ) + + 43, NULLIF ( - 63, 87 ) - - ( + COUNT ( * ) ) * + 65 ) ) AS col0
----
17

query I rowsort
SELECT DISTINCT + + ( - 79 ) * - 88 AS col2
----
6952

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT - 60 + - CASE + - 73 WHEN COUNT( * ) THEN 59 END - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT - 60 + - CASE + - 73 WHEN COUNT ( * ) THEN 59 END - + 12
----
NULL

query I rowsort
SELECT ALL 89 * 80
----
7120

query II rowsort
SELECT ALL - 46, + 91 * + - 46 AS col2
----
-46
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL 83 - + COUNT( * ) * - 7 + - - CASE - 69 WHEN - + 67 / 67 + - 55 + + COALESCE ( - 77, + - COUNT( * ), COUNT( * ) ) + + 93 - - 48 * + - MAX( - - 61 ) - 46 + + 84 THEN NULL WHEN 64 * + + 61 THEN + CASE + 85 WHEN + 0 - + + 4 * - + 8 * + 53 THEN NULL ELSE 81 END * 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL 83 - + COUNT ( * ) * - 7 + - - CASE - 69 WHEN - + 67 / 67 + - 55 + + COALESCE ( - 77, + - COUNT ( * ), COUNT ( * ) ) + + 93 - - 48 * + - MAX ( - - 61 ) - 46 + + 84 THEN NULL WHEN 64 * + + 61 THEN + CASE + 85 WHEN + 0 - + + 4 * - + 8 * + 53 THEN NULL ELSE 81 END * 27 END AS col1
----
NULL

query II rowsort
SELECT ALL - 29 AS col1, + 97
----
-29
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT 65 DIV + - 92 * + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT 65 / + - 92 * + 34 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT 0 DIV - + 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-4745
SELECT 0 / - + 69 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT ALL - 92 DIV 93 * 16 DIV 98 * + 19
----
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - 92 / 93 * 16 / 98 * + 19
----
0

query I rowsort
SELECT 10 * 4
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT 82 - + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT 82 - + COUNT ( * )
----
81

query I rowsort
SELECT ALL + 2 * - 63 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-4750
SELECT 31 AS col1, COUNT( 26 )
----
31
1

skipif mysql # not compatible
query II rowsort label-4750
SELECT 31 AS col1, COUNT ( 26 )
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL + COUNT( * ) * + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL + COUNT ( * ) * + 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL - MIN( 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL - MIN ( 24 )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4753
SELECT NULLIF ( - 36, + + 82 ) * - COUNT( * ) + - 30 + 1 AS col1, 77 AS col2
----
7
77

skipif mysql # not compatible
query II rowsort label-4753
SELECT NULLIF ( - 36, + + 82 ) * - COUNT ( * ) + - 30 + 1 AS col1, 77 AS col2
----
7
77

query II rowsort
SELECT + 51, + ( - 93 ) AS col0
----
51
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT + 93 AS col1, 75 * - - COALESCE ( 4, - 79 + + + 88, + - MAX( + 34 ) ) AS col2
----
93
300

skipif mysql # not compatible
query II rowsort label-4755
SELECT + 93 AS col1, 75 * - - COALESCE ( 4, - 79 + + + 88, + - MAX ( + 34 ) ) AS col2
----
93
300

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - 99 + - SUM( - + 26 )
----
-73

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - 99 + - SUM ( - + 26 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL + NULLIF ( - ( SUM( ALL - + 41 ) ), + 6 * + COUNT( * ) + - 25 + + 77 * + ( - COUNT( * ) ) + + - 46 + + 30 / - + COALESCE ( + 99, 39 ) - - - 87 + - CAST( NULL AS SIGNED ) + - NULLIF ( + COUNT( * ), 65 ) / + ( - + 90 ) ) + - 24
----
17

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + NULLIF ( - ( SUM ( ALL - + 41 ) ), + 6 * + COUNT ( * ) + - 25 + + 77 * + ( - COUNT ( * ) ) + + - 46 + + 30 / - + COALESCE ( + 99, 39 ) - - - 87 + - CAST ( NULL AS INTEGER ) + - NULLIF ( + COUNT ( * ), 65 ) / + ( - + 90 ) ) + - 24
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT + 96 + - + COUNT( * ) * + - 48 * - 90
----
-4224

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + 96 + - + COUNT ( * ) * + - 48 * - 90
----
-4224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4759
SELECT CASE 22 WHEN 2 THEN NULL WHEN - - 17 THEN - + ( - 62 ) * + NULLIF ( - - COUNT( * ), + 64 ) DIV + + COUNT( * ) + SUM( + - 48 ) * + 50 ELSE + ( - 57 ) + + 20 + 22 END + 81 DIV 80 AS col1, - MIN( ALL + 97 ) + - 49 + - CASE - + 93 WHEN 96 + - - 73 THEN + 48 + - + CASE + 72 WHEN 0 - COUNT( * ) THEN - 49 END ELSE NULL END + 31 * + 94 * 33
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-4759
SELECT CASE 22 WHEN 2 THEN NULL WHEN - - 17 THEN - + ( - 62 ) * + NULLIF ( - - COUNT ( * ), + 64 ) / + + COUNT ( * ) + SUM ( + - 48 ) * + 50 ELSE + ( - 57 ) + + 20 + 22 END + 81 / 80 AS col1, - MIN ( ALL + 97 ) + - 49 + - CASE - + 93 WHEN 96 + - - 73 THEN + 48 + - + CASE + 72 WHEN 0 - COUNT ( * ) THEN - 49 END ELSE NULL END + 31 * + 94 * 33
----
-14
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT - 87 - - 46 AS col0, - 12
----
-41
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT - COUNT( * ) DIV - - 89
----
0

skipif mysql # not compatible
query I rowsort label-4762
SELECT - COUNT ( * ) / - - 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT - CAST( 41 AS SIGNED ) * 37
----
-1517

skipif mysql # not compatible
query I rowsort label-4763
SELECT - CAST ( 41 AS INTEGER ) * 37
----
-1517

query I rowsort
SELECT DISTINCT + 72 * + 47 AS col0
----
3384

query I rowsort
SELECT ALL 44 * - 27 + + 84 col2
----
-1104

query I rowsort
SELECT + 84 * - ( - 14 )
----
1176

query I rowsort
SELECT 57 - - ( + 96 ) - - - 79 * + 24 * - - COALESCE ( + - ( 20 ), + 64 + + 61 + + 98 ) + + ( + 68 ) AS col1
----
38141

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - MIN( + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-4768
SELECT - MIN ( + 72 )
----
-72

query I rowsort
SELECT ALL + 22 + + 91
----
113

query I rowsort
SELECT + 37 - + - 48
----
85

query I rowsort
SELECT DISTINCT - 11 * 34 * + 58
----
-21692

query I rowsort
SELECT + 50 * 55
----
2750

query I rowsort
SELECT ALL - ( - 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT - COUNT( * ) AS col1, - 75 AS col0
----
-1
-75

skipif mysql # not compatible
query II rowsort label-4774
SELECT - COUNT ( * ) AS col1, - 75 AS col0
----
-1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL 3 - CASE COUNT( * ) WHEN 2 THEN 17 * 2 WHEN + COUNT( * ) THEN NULL END + + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL 3 - CASE COUNT ( * ) WHEN 2 THEN 17 * 2 WHEN + COUNT ( * ) THEN NULL END + + + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT 55 + + 14 DIV MIN( ALL 67 ) * - - 71 - - - 54
----
1

skipif mysql # not compatible
query I rowsort label-4776
SELECT 55 + + 14 / MIN ( ALL 67 ) * - - 71 - - - 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT 91 * + + COUNT( * ) * - 33
----
-3003

skipif mysql # not compatible
query I rowsort label-4777
SELECT 91 * + + COUNT ( * ) * - 33
----
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4778
SELECT SUM( - + 50 ) + NULLIF ( - 14, 64 + + 9 + - CAST( - COUNT( * ) AS SIGNED ) + - - MAX( + - 58 ) ) DIV 2 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4778
SELECT SUM ( - + 50 ) + NULLIF ( - 14, 64 + + 9 + - CAST ( - COUNT ( * ) AS INTEGER ) + - - MAX ( + - 58 ) ) / 2 AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT - ( + - 35 ) DIV 46 - - 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4779
SELECT - ( + - 35 ) / 46 - - 57 AS col1
----
57

query I rowsort
SELECT ALL 36 * + 47 * - 12 * + 22 AS col1
----
-446688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT MIN( DISTINCT - - CAST( + 89 AS SIGNED ) ) * + - 77 + + 66 + - - 27
----
-6760

skipif mysql # not compatible
query I rowsort label-4781
SELECT MIN ( DISTINCT - - CAST ( + 89 AS INTEGER ) ) * + - 77 + + 66 + - - 27
----
-6760

query I rowsort
SELECT 81 * + 30 AS col1
----
2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) / + + 27 + 24 * - 93 * + COUNT( * ) * + 21 + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) / + + 27 + 24 * - 93 * + COUNT ( * ) * + 21 + 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT 94 * - + CAST( + 73 AS SIGNED ) * - 38 AS col2
----
260756

skipif mysql # not compatible
query I rowsort label-4784
SELECT 94 * - + CAST ( + 73 AS INTEGER ) * - 38 AS col2
----
260756

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT 0 + - MIN( ALL + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4785
SELECT 0 + - MIN ( ALL + 60 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT DISTINCT 35 * - CAST( + COUNT( * ) AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT 35 * - CAST ( + COUNT ( * ) AS INTEGER )
----
-35

query I rowsort
SELECT 7 * - 54 + + - 25 AS col0
----
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT - MAX( ( - 82 ) )
----
82

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT - MAX ( ( - 82 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT COUNT( * ) * 43 * + - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4789
SELECT COUNT ( * ) * 43 * + - COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT 44 + - 14 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4791
SELECT DISTINCT + - 64 + - COALESCE ( 10, ( + 60 ) * + ( + COUNT( ALL 77 ) ) + - - 81 * 48 * + - MIN( ALL - 24 ) + - 82 + + 84 ) * - + 12 AS col0, 0
----
56
0

skipif mysql # not compatible
query II rowsort label-4791
SELECT DISTINCT + - 64 + - COALESCE ( 10, ( + 60 ) * + ( + COUNT ( ALL 77 ) ) + - - 81 * 48 * + - MIN ( ALL - 24 ) + - 82 + + 84 ) * - + 12 AS col0, 0
----
56
0

query I rowsort
SELECT ALL - 69 + + + 49
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4793
SELECT ALL + + COUNT( * ) + + CAST( NULL AS SIGNED ) + - + 21 * CAST( COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - + 21 * CAST ( COUNT ( * ) AS INTEGER )
----
NULL

query II rowsort
SELECT ( - 74 ) AS col2, + 1 + - 54 AS col2
----
-74
-53

query I rowsort
SELECT ALL - 3 * 27 + 60 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + COUNT( 56 )
----
1

skipif mysql # not compatible
query I rowsort label-4796
SELECT + COUNT ( 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL + - 22 + 13 + COUNT( * ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + - 22 + 13 + COUNT ( * ) col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT - 76 * + MIN( + 39 )
----
-2964

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - 76 * + MIN ( + 39 )
----
-2964

query I rowsort
SELECT + 68 * - 32 AS col1
----
-2176

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT 26 + + + 62 + + COUNT( * ) * + 7
----
95

skipif mysql # not compatible
query I rowsort label-4800
SELECT 26 + + + 62 + + COUNT ( * ) * + 7
----
95

query I rowsort
SELECT ALL + - 96 + 92 - + 10
----
-14

query I rowsort
SELECT ALL - - NULLIF ( 88, + 5 * AVG ( - - 9 ) ) + + 16
----
104

query I rowsort
SELECT - + 88 * 79
----
-6952

query I rowsort
SELECT - 34 + - 67 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT 74 * + + 2 - NULLIF ( - 14, + - COUNT( * ) * + + 7 - - - 62 + + 62 * - COUNT( * ) ) + - + 13 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT 74 * + + 2 - NULLIF ( - 14, + - COUNT ( * ) * + + 7 - - - 62 + + 62 * - COUNT ( * ) ) + - + 13 AS col2
----
149

query I rowsort
SELECT ALL + + 4 - - - 81 + 38 * 48 AS col1
----
1747

query I rowsort
SELECT ALL 92 * - 80
----
-7360

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT - 62 + - ( + + COALESCE ( - + 14, + SUM( + + 86 ) ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4808
SELECT - 62 + - ( + + COALESCE ( - + 14, + SUM ( + + 86 ) ) )
----
-48

query I rowsort
SELECT + 71 + - + 36 * + 24 + 61 col1
----
-732

query I rowsort
SELECT - NULLIF ( - 89, + 70 ) * + + 1
----
89

query I rowsort
SELECT + 48 + + 51 AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4812
SELECT DISTINCT 63 AS col0, - 50 * + ( + + 47 ) + + 2 * + CAST( - 49 AS SIGNED ) + + + 42 AS col0
----
63
-2406

skipif mysql # not compatible
query II rowsort label-4812
SELECT DISTINCT 63 AS col0, - 50 * + ( + + 47 ) + + 2 * + CAST ( - 49 AS INTEGER ) + + + 42 AS col0
----
63
-2406

query I rowsort
SELECT ALL - 29 * 36
----
-1044

query I rowsort
SELECT ALL + 75 * - + 56
----
-4200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4815
SELECT DISTINCT + ( - COALESCE ( - 89, 30 + - 0 DIV - - CAST( + 63 AS SIGNED ) + - - COUNT( * ) * 86 DIV + 39, 84 + 80 + - - 36 + - 44 * - COUNT( * ) * - 23 ) )
----
89

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + ( - COALESCE ( - 89, 30 + - 0 / - - CAST ( + 63 AS INTEGER ) + - - COUNT ( * ) * 86 / + 39, 84 + 80 + - - 36 + - 44 * - COUNT ( * ) * - 23 ) )
----
89

query II rowsort
SELECT ALL + 45 AS col0, - 75 * 21
----
45
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT + 5 * - COUNT( * ) * - 21
----
105

skipif mysql # not compatible
query I rowsort label-4817
SELECT + 5 * - COUNT ( * ) * - 21
----
105

query I rowsort
SELECT + 55 * + 63 - 10
----
3455

query II rowsort
SELECT ALL + 61 AS col0, + 14 AS col2
----
61
14

query I rowsort
SELECT + 69 * 4
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT CASE + + ( + COUNT( * ) ) WHEN MIN( - - ( - 27 ) ) - 51 THEN - 95 WHEN + 81 THEN - - 61 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT CASE + + ( + COUNT ( * ) ) WHEN MIN ( - - ( - 27 ) ) - 51 THEN - 95 WHEN + 81 THEN - - 61 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL COUNT( * ) * - + 97 * + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL COUNT ( * ) * - + 97 * + COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL + 5 * + + ( - 93 ) + 66 + + MIN( DISTINCT - NULLIF ( + 87, 7 + + 19 ) ) + 75
----
-411

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + 5 * + + ( - 93 ) + 66 + + MIN ( DISTINCT - NULLIF ( + 87, 7 + + 19 ) ) + 75
----
-411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT CAST( NULL AS SIGNED ) * - 35 - + 84 - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT CAST ( NULL AS INTEGER ) * - 35 - + 84 - 11
----
NULL

query I rowsort
SELECT + 7 * 35 AS col1
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT + + SUM( - 5 ) + - - 35 + + 93
----
123

skipif mysql # not compatible
query I rowsort label-4826
SELECT + + SUM ( - 5 ) + - - 35 + + 93
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL + + MIN( DISTINCT - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + + MIN ( DISTINCT - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - ( COUNT( * ) ) * + 24 + + + 95 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-4828
SELECT - ( COUNT ( * ) ) * + 24 + + + 95 AS col2
----
71

query I rowsort
SELECT - - 77 - - 97 * - 26 AS col0
----
-2445

query I rowsort
SELECT DISTINCT 44 * - 52 - + 23 * - + 34 + - 80 + 73 - + 30 AS col2
----
-1543

query I rowsort
SELECT + 10 * + 47 * - - 58 * 68
----
1853680

query I rowsort
SELECT DISTINCT + ( + - 17 ) AS col1
----
-17

query I rowsort
SELECT - ( + - 72 ) + 51 * 91
----
4713

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL - COUNT( * ) * + 72 * + - 65 * SUM( - 13 ) col1
----
-60840

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - COUNT ( * ) * + 72 * + - 65 * SUM ( - 13 ) col1
----
-60840

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL COUNT( * ) - - 98
----
99

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL COUNT ( * ) - - 98
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT - - MIN( DISTINCT 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4836
SELECT - - MIN ( DISTINCT 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT + + COUNT( * ) - 38
----
-37

skipif mysql # not compatible
query I rowsort label-4837
SELECT + + COUNT ( * ) - 38
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - - ( + - 37 ) * + 65 * SUM( ALL - - 87 )
----
-209235

skipif mysql # not compatible
query I rowsort label-4838
SELECT - - ( + - 37 ) * + 65 * SUM ( ALL - - 87 )
----
-209235

query I rowsort
SELECT ALL - 70 * + + 35 AS col1
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT + ( NULLIF ( - NULLIF ( + 11, + 94 ), NULLIF ( - 72, 90 ) * 39 - - COUNT( * ) - - - 75 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-4840
SELECT + ( NULLIF ( - NULLIF ( + 11, + 94 ), NULLIF ( - 72, 90 ) * 39 - - COUNT ( * ) - - - 75 ) )
----
-11

query I rowsort
SELECT DISTINCT ( - + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4842
SELECT - NULLIF ( 13, - 16 * - COUNT( * ) + - 80 / - 57 ) * + COUNT( * ) col2, - 55 + + 56
----
-13
1

skipif mysql # not compatible
query II rowsort label-4842
SELECT - NULLIF ( 13, - 16 * - COUNT ( * ) + - 80 / - 57 ) * + COUNT ( * ) col2, - 55 + + 56
----
-13
1

query I rowsort
SELECT ALL ( + + 87 ) AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4844
SELECT DISTINCT CASE - CAST( NULL AS DECIMAL ) WHEN - - COUNT( * ) THEN + CASE 2 WHEN - 23 + + 39 - 3 THEN NULL ELSE + 90 + - 14 END * 51 WHEN + 87 + + NULLIF ( 94, + 3 / + COUNT( ALL + - 2 ) * 5 + 53 + + - 0 ) THEN + ( COUNT( * ) ) WHEN + - 80 + - COUNT( * ) * - 41 * 28 + - 77 + - CASE + COALESCE ( + 0, + 98 ) WHEN 51 + + 12 + + 29 - - 21 / + 57 THEN NULL WHEN + 80 THEN CAST( NULL AS SIGNED ) END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT CASE - CAST ( NULL AS REAL ) WHEN - - COUNT ( * ) THEN + CASE 2 WHEN - 23 + + 39 - 3 THEN NULL ELSE + 90 + - 14 END * 51 WHEN + 87 + + NULLIF ( 94, + 3 / + COUNT ( ALL + - 2 ) * 5 + 53 + + - 0 ) THEN + ( COUNT ( * ) ) WHEN + - 80 + - COUNT ( * ) * - 41 * 28 + - 77 + - CASE + COALESCE ( + 0, + 98 ) WHEN 51 + + 12 + + 29 - - 21 / + 57 THEN NULL WHEN + 80 THEN CAST ( NULL AS INTEGER ) END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL + ( - COUNT( * ) ) * - - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL + ( - COUNT ( * ) ) * - - 42 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - 88 * NULLIF ( - + COUNT( * ), + 15 ) * + + 9 - 67 * - 4 - - 97 AS col1
----
1157

skipif mysql # not compatible
query I rowsort label-4846
SELECT - 88 * NULLIF ( - + COUNT ( * ), + 15 ) * + + 9 - 67 * - 4 - - 97 AS col1
----
1157

query I rowsort
SELECT DISTINCT ( 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4848
SELECT ALL + COUNT( * ) + - 16 DIV + - 79 col1
----
1

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL + COUNT ( * ) + - 16 / + - 79 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4849
SELECT - COUNT( * ) DIV COUNT( * ) - ( 76 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4849
SELECT - COUNT ( * ) / COUNT ( * ) - ( 76 ) AS col0
----
-77

query I rowsort
SELECT 44 * + + 71 + - 44 AS col0
----
3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4851
SELECT ALL - 72 DIV 72 + + + COUNT( * ) * - + 71 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - 72 / 72 + + + COUNT ( * ) * - + 71 AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4852
SELECT - 5 DIV - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4852
SELECT - 5 / - COUNT ( * ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4853
SELECT ALL - 22 / + 39 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - 22 / + 39 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT DISTINCT - 78 / - COUNT( * ) * - - 86 * CAST( NULL AS SIGNED ) * + CAST( + 74 AS SIGNED ) + - ( - COALESCE ( - + 48, + - ( ( + - 85 ) ), + 31 + + + 75 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT - 78 / - COUNT ( * ) * - - 86 * CAST ( NULL AS INTEGER ) * + CAST ( + 74 AS INTEGER ) + - ( - COALESCE ( - + 48, + - ( ( + - 85 ) ), + 31 + + + 75 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT COUNT( * ) * - - 30 + + CASE - COUNT( * ) WHEN + - 45 THEN 60 END + + 68 * COALESCE ( - - 47, + 58 - - + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( * ) * - - 30 + + CASE - COUNT ( * ) WHEN + - 45 THEN 60 END + + 68 * COALESCE ( - - 47, + 58 - - + 25 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4856
SELECT + 51 * - - 82 + - 2 DIV + - 29 AS col0, + 28
----
4182
28

skipif mysql # not compatible
query II rowsort label-4856
SELECT + 51 * - - 82 + - 2 / + - 29 AS col0, + 28
----
4182
28

query I rowsort
SELECT - - 87 * - 76 col2
----
-6612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4858
SELECT - 38 DIV - - COUNT( - 75 ) + + 68 + + + 39
----
69

skipif mysql # not compatible
query I rowsort label-4858
SELECT - 38 / - - COUNT ( - 75 ) + + 68 + + + 39
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT DISTINCT 6 - + CAST( NULL AS SIGNED ) - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT 6 - + CAST ( NULL AS INTEGER ) - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL 11 - 23 - - 45 DIV 28 - + 41
----
-52

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL 11 - 23 - - 45 / 28 - + 41
----
-52

query I rowsort
SELECT - 80 * + 0 * + - 12 * - - 82 * - 10
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT ALL COUNT( * ) - CAST( NULL AS SIGNED ) - + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL COUNT ( * ) - CAST ( NULL AS INTEGER ) - + 2 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 93 * + + 27 * + 99
----
248589

query I rowsort
SELECT DISTINCT 68 * + - ( + 32 ) AS col2
----
-2176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4865
SELECT ALL - SUM( DISTINCT - CAST( - 93 AS SIGNED ) ) - + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - SUM ( DISTINCT - CAST ( - 93 AS INTEGER ) ) - + COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4866
SELECT 7 + + 84 * - + 88 DIV + COUNT( * )
----
-7385

skipif mysql # not compatible
query I rowsort label-4866
SELECT 7 + + 84 * - + 88 / + COUNT ( * )
----
-7385

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ( + MIN( 18 ) ) * - + 79
----
-1422

skipif mysql # not compatible
query I rowsort label-4867
SELECT ( + MIN ( 18 ) ) * - + 79
----
-1422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT 96 - + 47 * + + ( - - 42 ) * + - CASE - + 72 WHEN - 29 THEN + COALESCE ( 7, 8 + 87 - - + 35 - + + 2 ) * + CAST( NULL AS SIGNED ) / - 57 / - - ( + COUNT( * ) ) * 71 WHEN - COUNT( * ) THEN + 26 / 2 * - - COUNT( * ) END + + NULLIF ( 41, 35 ) + - 3 * - 51 + 73 * AVG ( ALL + NULLIF ( 70, 95 ) ) + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT 96 - + 47 * + + ( - - 42 ) * + - CASE - + 72 WHEN - 29 THEN + COALESCE ( 7, 8 + 87 - - + 35 - + + 2 ) * + CAST ( NULL AS INTEGER ) / - 57 / - - ( + COUNT ( * ) ) * 71 WHEN - COUNT ( * ) THEN + 26 / 2 * - - COUNT ( * ) END + + NULLIF ( 41, 35 ) + - 3 * - 51 + 73 * AVG ( ALL + NULLIF ( 70, 95 ) ) + 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4869
SELECT 42 + - COUNT( * ), 67 + - 65 AS col2
----
41
2

skipif mysql # not compatible
query II rowsort label-4869
SELECT 42 + - COUNT ( * ), 67 + - 65 AS col2
----
41
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT ALL 40 DIV + - 46 + - 0
----
0

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL 40 / + - 46 + - 0
----
0

query I rowsort
SELECT 90 + - + 10
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT 3 - 96 + - COUNT( * ) * + 66 + 73 + 20
----
-66

skipif mysql # not compatible
query I rowsort label-4872
SELECT 3 - 96 + - COUNT ( * ) * + 66 + 73 + 20
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - ( + 46 ) * + + COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - ( + 46 ) * + + COUNT ( * ) AS col1
----
-46

query II rowsort
SELECT - 65 AS col2, + 28 AS col0
----
-65
28

query I rowsort
SELECT 25 + + 15 AS col0
----
40

query I rowsort
SELECT DISTINCT + 57 + - + 84 * 96 - 18 + + 39
----
-7986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT CAST( NULL AS SIGNED ) * - ( 50 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT CAST ( NULL AS INTEGER ) * - ( 50 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL + COUNT( * ) + + 28
----
29

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + COUNT ( * ) + + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT SUM( DISTINCT - 48 ) * + 42 + + + 48
----
-1968

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT SUM ( DISTINCT - 48 ) * + 42 + + + 48
----
-1968

query I rowsort
SELECT ALL 11 + + + 42 AS col0
----
53

query I rowsort
SELECT 34 * + + 89
----
3026

query I rowsort
SELECT DISTINCT + 95 + - NULLIF ( - + 79, AVG ( ALL - 1 ) - + 29 ) AS col0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT - COUNT( ALL - 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - COUNT ( ALL - 2 )
----
-1

query I rowsort
SELECT + 94 * - + 30 - + 96
----
-2916

query I rowsort
SELECT DISTINCT - 88 - + 73 - - 79 * - 16
----
-1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT ALL - + COALESCE ( 86, SUM( DISTINCT 20 ) * - 91, + 10 ) - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - + COALESCE ( 86, SUM ( DISTINCT 20 ) * - 91, + 10 ) - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COALESCE ( 12, COUNT( * ), + 37 ) * 75 - 87 * - 37
----
4119

skipif mysql # not compatible
query I rowsort label-4887
SELECT COALESCE ( 12, COUNT ( * ), + 37 ) * 75 - 87 * - 37
----
4119

query I rowsort
SELECT ALL - 44 * + 71 * 53
----
-165572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4889
SELECT + SUM( CAST( NULL AS SIGNED ) ) - - - 95, + 13 AS col1
----
NULL
13

skipif mysql # not compatible
query II rowsort label-4889
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) - - - 95, + 13 AS col1
----
NULL
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT ALL - ( + NULLIF ( - + COUNT( * ), + CASE + 89 WHEN + CASE 74 WHEN 73 + MIN( + - 39 ) THEN + + 64 END THEN NULL WHEN COUNT( * ) * + CAST( + 56 AS SIGNED ) THEN - 70 + - + SUM( - 19 ) WHEN + + 76 + + 27 THEN NULL ELSE - + COUNT( * ) END * - 91 * - 27 * + + SUM( DISTINCT - - 6 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - ( + NULLIF ( - + COUNT ( * ), + CASE + 89 WHEN + CASE 74 WHEN 73 + MIN ( + - 39 ) THEN + + 64 END THEN NULL WHEN COUNT ( * ) * + CAST ( + 56 AS INTEGER ) THEN - 70 + - + SUM ( - 19 ) WHEN + + 76 + + 27 THEN NULL ELSE - + COUNT ( * ) END * - 91 * - 27 * + + SUM ( DISTINCT - - 6 ) ) )
----
1

query I rowsort
SELECT ALL - + ( - 78 ) AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4892
SELECT - 19 * - MAX( DISTINCT - 30 ) * + - 9 + + 19 * CASE - CAST( NULL AS SIGNED ) WHEN - 20 THEN ( + - 53 ) + COUNT( * ) WHEN - - COUNT( * ) THEN + 88 + 43 ELSE - + NULLIF ( + 55, - 80 * + 58 + COUNT( * ) ) END * 79 - + SUM( - - 5 ) AS col0
----
-77430

skipif mysql # not compatible
query I rowsort label-4892
SELECT - 19 * - MAX ( DISTINCT - 30 ) * + - 9 + + 19 * CASE - CAST ( NULL AS INTEGER ) WHEN - 20 THEN ( + - 53 ) + COUNT ( * ) WHEN - - COUNT ( * ) THEN + 88 + 43 ELSE - + NULLIF ( + 55, - 80 * + 58 + COUNT ( * ) ) END * 79 - + SUM ( - - 5 ) AS col0
----
-77430

query I rowsort
SELECT 88 * + 6 AS col0
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT + COALESCE ( - 7, - 87 ) * + - COUNT( * ) * + - 24 * - 49 + COUNT( * ) AS col0
----
8233

skipif mysql # not compatible
query I rowsort label-4894
SELECT + COALESCE ( - 7, - 87 ) * + - COUNT ( * ) * + - 24 * - 49 + COUNT ( * ) AS col0
----
8233

query I rowsort
SELECT 80 - + 5
----
75

query I rowsort
SELECT 11 + + 92 col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT 84 * - CAST( NULL AS SIGNED ) - - 21 - + COUNT( * ) * MAX( + 65 ) / - + COUNT( * ) * + - 86 - - + 37 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT 84 * - CAST ( NULL AS INTEGER ) - - 21 - + COUNT ( * ) * MAX ( + 65 ) / - + COUNT ( * ) * + - 86 - - + 37 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT ALL MIN( DISTINCT CAST( 90 AS SIGNED ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL MIN ( DISTINCT CAST ( 90 AS INTEGER ) ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL 7 + 89 * CAST( NULL AS SIGNED ) - COUNT( * ) * - 84 / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL 7 + 89 * CAST ( NULL AS INTEGER ) - COUNT ( * ) * - 84 / - - COUNT ( * )
----
NULL

query I rowsort
SELECT 0 * 7 * 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL MAX( ALL 58 )
----
58

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL MAX ( ALL 58 )
----
58

query II rowsort
SELECT 42, 47 AS col1
----
42
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL 71 + - SUM( - 86 )
----
157

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL 71 + - SUM ( - 86 )
----
157

query II rowsort
SELECT - 63 AS col0, - 41
----
-63
-41

query I rowsort
SELECT DISTINCT 6 + - 75
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4906
SELECT 15 * ( 69 ) DIV + CASE + - NULLIF ( 8, - + 92 ) WHEN + 20 THEN NULL WHEN + MAX( ALL - 49 ) * SUM( - 34 ) + - CAST( NULL AS SIGNED ) + + 66 * + COUNT( * ) + COUNT( * ) THEN NULL ELSE 74 * + + 73 * 83 * 38 END
----
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT 15 * ( 69 ) / + CASE + - NULLIF ( 8, - + 92 ) WHEN + 20 THEN NULL WHEN + MAX ( ALL - 49 ) * SUM ( - 34 ) + - CAST ( NULL AS INTEGER ) + + 66 * + COUNT ( * ) + COUNT ( * ) THEN NULL ELSE 74 * + + 73 * 83 * 38 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4907
SELECT DISTINCT 58 DIV - COUNT( DISTINCT + + 12 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT 58 / - COUNT ( DISTINCT + + 12 ) AS col0
----
-58

query I rowsort
SELECT 34 - - - 49 * - 18 AS col2
----
916

query I rowsort
SELECT ALL 5 + 37 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4910
SELECT - CASE - 81 WHEN 6 THEN + - 3 WHEN + + 89 THEN + 82 ELSE - 10 END AS col1, CAST( NULL AS SIGNED )
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4910
SELECT - CASE - 81 WHEN 6 THEN + - 3 WHEN + + 89 THEN + 82 ELSE - 10 END AS col1, CAST ( NULL AS INTEGER )
----
10
NULL

query I rowsort
SELECT ALL + 8 - - 99 AS col2
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT 99 AS col2, NULLIF ( - + COUNT( * ), - 97 / - MAX( ALL - + 91 ) * + 36 ) * - COUNT( * )
----
99
1

skipif mysql # not compatible
query II rowsort label-4912
SELECT 99 AS col2, NULLIF ( - + COUNT ( * ), - 97 / - MAX ( ALL - + 91 ) * + 36 ) * - COUNT ( * )
----
99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4913
SELECT - 42 AS col0, - COUNT( * ) DIV + + COUNT( * ) + 85 AS col2
----
-42
84

skipif mysql # not compatible
query II rowsort label-4913
SELECT - 42 AS col0, - COUNT ( * ) / + + COUNT ( * ) + 85 AS col2
----
-42
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT COUNT( * ) + - 37 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4914
SELECT COUNT ( * ) + - 37 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT CAST( NULL AS SIGNED ) + - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT CAST ( NULL AS INTEGER ) + - 47 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT - - CAST( NULL AS SIGNED ) / 14 + - 28 + - 44 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT - - CAST ( NULL AS INTEGER ) / 14 + - 28 + - 44 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT - - 90 - 5 - + - COUNT( * ) - + 78 * COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4917
SELECT - - 90 - 5 - + - COUNT ( * ) - + 78 * COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT + - MAX( NULLIF ( - 82, 17 * + + ( - - 19 ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT + - MAX ( NULLIF ( - 82, 17 * + + ( - - 19 ) ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL + 15 * + - COUNT( * ) + - 82 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL + 15 * + - COUNT ( * ) + - 82 AS col0
----
-97

query I rowsort
SELECT - + ( - 80 ) + + 1 - 93
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT + + SUM( + COALESCE ( - 8, - 58 ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT + + SUM ( + COALESCE ( - 8, - 58 ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT 54 * - ( + 36 ) + 24 - 65 * - 14 + COUNT( * ) + + 64 AS col1
----
-945

skipif mysql # not compatible
query I rowsort label-4922
SELECT 54 * - ( + 36 ) + 24 - 65 * - 14 + COUNT ( * ) + + 64 AS col1
----
-945

query II rowsort
SELECT + - 13, 88 AS col0
----
-13
88

query I rowsort
SELECT - 99 * 35 + + 83 AS col1
----
-3382

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + - 29 * + 74 + + ( + 38 ) + + CASE + MAX( - 3 ) WHEN 93 * - - 77 + - COUNT( * ) * + 26 + - 88 * + 21 THEN 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT + - 29 * + 74 + + ( + 38 ) + + CASE + MAX ( - 3 ) WHEN 93 * - - 77 + - COUNT ( * ) * + 26 + - 88 * + 21 THEN 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT - MIN( - + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4926
SELECT - MIN ( - + 81 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4927
SELECT + + COUNT( * ) DIV + 59 + + 13
----
13

skipif mysql # not compatible
query I rowsort label-4927
SELECT + + COUNT ( * ) / + 59 + + 13
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT - + 77 DIV - 65 + + 75
----
76

skipif mysql # not compatible
query I rowsort label-4928
SELECT - + 77 / - 65 + + 75
----
76

query I rowsort
SELECT - + 72 * + 83 AS col0
----
-5976

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - + COUNT( * ) + - + 85
----
-86

skipif mysql # not compatible
query I rowsort label-4930
SELECT - + COUNT ( * ) + - + 85
----
-86

query I rowsort
SELECT DISTINCT - 50 * + 99
----
-4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT ALL - ( - CASE + 56 WHEN CAST( + 95 AS SIGNED ) * + COUNT( * ) * + - ( - 23 ) THEN 3 WHEN 98 THEN 32 WHEN 66 THEN NULL END ) * + 4 * - 20 + + + 84 + - 51 / 60 * 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL - ( - CASE + 56 WHEN CAST ( + 95 AS INTEGER ) * + COUNT ( * ) * + - ( - 23 ) THEN 3 WHEN 98 THEN 32 WHEN 66 THEN NULL END ) * + 4 * - 20 + + + 84 + - 51 / 60 * 19 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + 74 * - 29 + NULLIF ( - 7, + COUNT( * ) ) col2
----
-2153

skipif mysql # not compatible
query I rowsort label-4933
SELECT + 74 * - 29 + NULLIF ( - 7, + COUNT ( * ) ) col2
----
-2153

query I rowsort
SELECT - 89 + NULLIF ( - 54, 9 ) AS col0
----
-143

query II rowsort
SELECT - 48 * - 91, - 0 * + 39 AS col1
----
4368
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + 59 + + COUNT( * ) + - + ( + MIN( DISTINCT - + 59 ) ) * + COUNT( * ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-4936
SELECT + 59 + + COUNT ( * ) + - + ( + MIN ( DISTINCT - + 59 ) ) * + COUNT ( * ) AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT - COALESCE ( - COUNT( * ), + + 90 ) + 44
----
45

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + + 90 ) + 44
----
45

query I rowsort
SELECT ALL ( - 79 ) col1
----
-79

query I rowsort
SELECT ALL 17 + + ( - 19 ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4940
SELECT - 23 + COUNT( * ), 20 * - - CAST( NULL AS SIGNED ) * 93 + - 63 AS col1
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-4940
SELECT - 23 + COUNT ( * ), 20 * - - CAST ( NULL AS INTEGER ) * 93 + - 63 AS col1
----
-22
NULL

query I rowsort
SELECT DISTINCT ( + 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL - NULLIF ( 53, SUM( + 17 ) ) * + 52 * COUNT( * ) AS col0
----
-2756

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - NULLIF ( 53, SUM ( + 17 ) ) * + 52 * COUNT ( * ) AS col0
----
-2756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT + 75 + CASE - + 3 WHEN + CAST( NULL AS SIGNED ) THEN 97 WHEN + - 41 THEN NULL WHEN NULLIF ( - - 48, - + 8 ) + 91 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 75 + CASE - + 3 WHEN + CAST ( NULL AS INTEGER ) THEN 97 WHEN + - 41 THEN NULL WHEN NULLIF ( - - 48, - + 8 ) + 91 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 87 * + + 62 * - 43 AS col2
----
231942

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4945
SELECT - MAX( ALL - 50 ) col2, 27 DIV - + 97 AS col0
----
50
0

skipif mysql # not compatible
query II rowsort label-4945
SELECT - MAX ( ALL - 50 ) col2, 27 / - + 97 AS col0
----
50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT + - 50 * + + 27 * - 54 * - ( - COUNT( * ) ) * 27 + - 47
----
1968253

skipif mysql # not compatible
query I rowsort label-4946
SELECT + - 50 * + + 27 * - 54 * - ( - COUNT ( * ) ) * 27 + - 47
----
1968253

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT ALL 77 DIV COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL 77 / COUNT ( * )
----
77

query II rowsort
SELECT DISTINCT - 6 * - 74 + 24, - 11 * 37 AS col1
----
468
-407

query I rowsort
SELECT ALL 0 * 37 AS col0
----
0

query I rowsort
SELECT + + 73 - - 16
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + 87 * - 36 + - COUNT( * )
----
-3133

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 87 * - 36 + - COUNT ( * )
----
-3133

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ALL 57 * COUNT( * ) * 68
----
3876

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL 57 * COUNT ( * ) * 68
----
3876

query I rowsort
SELECT 98 * - 22 * + 28 - + - 57 AS col2
----
-60311

query I rowsort
SELECT DISTINCT - ( ( - 47 ) ) * 8 AS col1
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + - 48 * - ( + - COUNT( * ) ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-4955
SELECT + - 48 * - ( + - COUNT ( * ) ) col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4956
SELECT - CAST( + 75 AS SIGNED ) * - - CASE - ( - CAST( + ( + + 50 ) AS SIGNED ) ) WHEN + 63 THEN NULL WHEN - 59 THEN NULL ELSE 18 END * 21 - + 72 + + - NULLIF ( + - ( + + COUNT( * ) ), - 76 + + 35 * - - 50 + 12 + - CAST( + - COALESCE ( + 4, - 76 * + 54 ) AS DECIMAL ) ) + 33
----
-28388

skipif mysql # not compatible
query I rowsort label-4956
SELECT - CAST ( + 75 AS INTEGER ) * - - CASE - ( - CAST ( + ( + + 50 ) AS INTEGER ) ) WHEN + 63 THEN NULL WHEN - 59 THEN NULL ELSE 18 END * 21 - + 72 + + - NULLIF ( + - ( + + COUNT ( * ) ), - 76 + + 35 * - - 50 + 12 + - CAST ( + - COALESCE ( + 4, - 76 * + 54 ) AS REAL ) ) + 33
----
-28388

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT ALL - - 55 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL - - 55 / - 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4958
SELECT + COUNT( 45 ) * + + 57 + - 21 + + 70 - + 68 * + + CAST( - 42 AS SIGNED ) * + ( + 30 ) * - - CAST( + 7 AS DECIMAL ) DIV - 88 + + CAST( NULL AS SIGNED ) + + + NULLIF ( + 37, 4 ) + - 23, - 43 * 60 + + 23 DIV COUNT( * ) * 52 AS col0
----
NULL
-1384

skipif mysql # not compatible
query II rowsort label-4958
SELECT + COUNT ( 45 ) * + + 57 + - 21 + + 70 - + 68 * + + CAST ( - 42 AS INTEGER ) * + ( + 30 ) * - - CAST ( + 7 AS REAL ) / - 88 + + CAST ( NULL AS INTEGER ) + + + NULLIF ( + 37, 4 ) + - 23, - 43 * 60 + + 23 / COUNT ( * ) * 52 AS col0
----
NULL
-1384

query I rowsort
SELECT COALESCE ( - + 62, 42 * - 63 * + + 41 - - 95 * + 52 + 69 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT - 59 + + 36 + + + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT - 59 + + 36 + + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT - 18 - + 16 + - - CAST( NULL AS SIGNED ) / 70 / + NULLIF ( 13, - 29 + 28 + - 53 ) * - + 73 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT - 18 - + 16 + - - CAST ( NULL AS INTEGER ) / 70 / + NULLIF ( 13, - 29 + 28 + - 53 ) * - + 73 * 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT DISTINCT + ( - 50 ) * + CAST( - 45 AS SIGNED )
----
2250

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + ( - 50 ) * + CAST ( - 45 AS INTEGER )
----
2250

query I rowsort
SELECT - 58 + 82
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT ALL + 53 DIV 41 * + 24 * - - 7 * + ( - + 39 )
----
-6552

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + 53 / 41 * + 24 * - - 7 * + ( - + 39 )
----
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - MIN( ALL + 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4965
SELECT - MIN ( ALL + 3 ) AS col2
----
-3

query I rowsort
SELECT - 46 * + 64
----
-2944

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT - 64 + - 33 DIV - - 46 col0
----
-64

skipif mysql # not compatible
query I rowsort label-4967
SELECT - 64 + - 33 / - - 46 col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT - 69 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT - 69 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4969
SELECT COUNT( * ) AS col2, 53
----
1
53

skipif mysql # not compatible
query II rowsort label-4969
SELECT COUNT ( * ) AS col2, 53
----
1
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4970
SELECT 34 + + - MIN( - 82 ) + - + 6 + 30 DIV + 47, 99 col0
----
110
99

skipif mysql # not compatible
query II rowsort label-4970
SELECT 34 + + - MIN ( - 82 ) + - + 6 + 30 / + 47, 99 col0
----
110
99

query I rowsort
SELECT 86 * + 72 AS col1
----
6192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT ALL + 77 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + 77 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 65 * - 66
----
-4290

query I rowsort
SELECT + 97 + + ( + ( + 1 ) )
----
98

query I rowsort
SELECT + COALESCE ( - 77, - 20 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT CAST( MIN( DISTINCT - + 21 ) AS SIGNED ) + - 8 * + 62
----
-517

skipif mysql # not compatible
query I rowsort label-4976
SELECT CAST ( MIN ( DISTINCT - + 21 ) AS INTEGER ) + - 8 * + 62
----
-517

query I rowsort
SELECT + 24 + + - 63
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT 86 - - 19 - - + 15 + + COUNT( * ) + + 78 * - COUNT( * ) * 96 AS col0
----
-7367

skipif mysql # not compatible
query I rowsort label-4978
SELECT 86 - - 19 - - + 15 + + COUNT ( * ) + + 78 * - COUNT ( * ) * 96 AS col0
----
-7367

query I rowsort
SELECT DISTINCT - ( + - 21 ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4980
SELECT + - 92 DIV - 69 + + 73 + + CASE + 13 WHEN + + ( - 93 ) THEN + CAST( NULL AS SIGNED ) WHEN - - ( + 36 ) THEN NULL ELSE - 60 END + + - 88 + - 65 + 16 DIV 31
----
-139

skipif mysql # not compatible
query I rowsort label-4980
SELECT + - 92 / - 69 + + 73 + + CASE + 13 WHEN + + ( - 93 ) THEN + CAST ( NULL AS INTEGER ) WHEN - - ( + 36 ) THEN NULL ELSE - 60 END + + - 88 + - 65 + 16 / 31
----
-139

query I rowsort
SELECT ALL + 72 + - NULLIF ( + 30, 43 + 15 ) AS col0
----
42

query I rowsort
SELECT DISTINCT - 14 + + 70 * + + 80
----
5586

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL 91 + - + COUNT( * ) - + 45
----
45

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL 91 + - + COUNT ( * ) - + 45
----
45

query I rowsort
SELECT + 74 + 79
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4985
SELECT ALL - 0 * + MIN( ALL + 36 ) * - NULLIF ( 87, + + ( + COUNT( * ) ) * - - 28 + + - 42 - + 75 + - - COUNT( * ) * 37 / + - 97 ) AS col0, - 40
----
0
-40

skipif mysql # not compatible
query II rowsort label-4985
SELECT ALL - 0 * + MIN ( ALL + 36 ) * - NULLIF ( 87, + + ( + COUNT ( * ) ) * - - 28 + + - 42 - + 75 + - - COUNT ( * ) * 37 / + - 97 ) AS col0, - 40
----
0
-40

query I rowsort
SELECT CASE + 53 WHEN - 35 * - AVG ( + 83 ) * + 18 THEN - + 8 * - - 32 * + + NULLIF ( + + 92, + 94 ) - + 25 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( ( 21 ) ) + - 38 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4988
SELECT CASE + 40 WHEN + 77 THEN + CAST( NULL AS SIGNED ) WHEN - 72 * + - 81 * COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT CASE + 40 WHEN + 77 THEN + CAST ( NULL AS INTEGER ) WHEN - 72 * + - 81 * COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - + 5, 39 ) col1
----
5

query I rowsort
SELECT 22 + ( + 26 )
----
48

query I rowsort
SELECT 38 + 58 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT NULLIF ( + 23, + ( + - 15 ) * - - ( - 89 ) + - - 89 + - 81 + - 11 ) * 31 + + - COALESCE ( COUNT( * ), + 26 ) AS col2
----
712

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT NULLIF ( + 23, + ( + - 15 ) * - - ( - 89 ) + - - 89 + - 81 + - 11 ) * 31 + + - COALESCE ( COUNT ( * ), + 26 ) AS col2
----
712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4993
SELECT ALL + CAST( - 97 AS SIGNED ) - 23 DIV + - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL + CAST ( - 97 AS INTEGER ) - 23 / + - COUNT ( * ) AS col2
----
-74

query I rowsort
SELECT COALESCE ( + 36, 82 * 22 ) * 1 * 43 * - 74
----
-114552

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL MAX( ALL + + 12 ) * + + 89 + 71 + - 12 * + 49 AS col2
----
551

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL MAX ( ALL + + 12 ) * + + 89 + 71 + - 12 * + 49 AS col2
----
551

query I rowsort
SELECT - 80 * + 92 + - - 24
----
-7336

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT 44 + 45 * + + ( + + 61 ) - 79 + - SUM( DISTINCT 60 )
----
2650

skipif mysql # not compatible
query I rowsort label-4997
SELECT 44 + 45 * + + ( + + 61 ) - 79 + - SUM ( DISTINCT 60 )
----
2650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT 54 * - NULLIF ( + + 50, - - 56 * CASE + 4 WHEN - - 57 THEN 43 * + CAST( - - 22 AS SIGNED ) + - 69 WHEN + - 39 THEN NULL END + + 41 )
----
-2700

skipif mysql # not compatible
query I rowsort label-4998
SELECT 54 * - NULLIF ( + + 50, - - 56 * CASE + 4 WHEN - - 57 THEN 43 * + CAST ( - - 22 AS INTEGER ) + - 69 WHEN + - 39 THEN NULL END + + 41 )
----
-2700

query I rowsort
SELECT 28 - - 56 + + 60
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5000
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) DIV + CASE + 10 WHEN MAX( 50 ) THEN - 62 ELSE NULL END, 3 * 25 DIV - + ( 20 ) * + - COUNT( * ) AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5000
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) / + CASE + 10 WHEN MAX ( 50 ) THEN - 62 ELSE NULL END, 3 * 25 / - + ( 20 ) * + - COUNT ( * ) AS col2
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT + 42 * - 4 + - + COUNT( * ) AS col1
----
-169

skipif mysql # not compatible
query I rowsort label-5001
SELECT + 42 * - 4 + - + COUNT ( * ) AS col1
----
-169

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5002
SELECT DISTINCT CAST( NULL AS DECIMAL ) / 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT CAST ( NULL AS REAL ) / 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT 59 + + + SUM( + 87 ) col0
----
146

skipif mysql # not compatible
query I rowsort label-5003
SELECT 59 + + + SUM ( + 87 ) col0
----
146

query I rowsort
SELECT ALL + + 64 + 44 + - ( + - 39 )
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT + 56 DIV + 6 + 48 - 19 * + 24 col2
----
-399

skipif mysql # not compatible
query I rowsort label-5005
SELECT + 56 / + 6 + 48 - 19 * + 24 col2
----
-399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5006
SELECT - MIN( DISTINCT + - 7 ) * - COALESCE ( + CAST( - 34 AS SIGNED ), COALESCE ( - - 92, - 29 * 31, 2 + - 7 ), - - 2 ) * + - 4 + - 30 + + 4 * + 27 * - MIN( DISTINCT - 16 ) + 64
----
810

skipif mysql # not compatible
query I rowsort label-5006
SELECT - MIN ( DISTINCT + - 7 ) * - COALESCE ( + CAST ( - 34 AS INTEGER ), COALESCE ( - - 92, - 29 * 31, 2 + - 7 ), - - 2 ) * + - 4 + - 30 + + 4 * + 27 * - MIN ( DISTINCT - 16 ) + 64
----
810

query I rowsort
SELECT - 65 + + + COALESCE ( + 8, + 74 * + 52 ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT 11 * + 41 + + - 54 + CASE + 37 WHEN - AVG ( + 84 ) THEN NULL WHEN - - NULLIF ( - + CAST( NULL AS SIGNED ), COUNT( * ) * - + 42 / - - SUM( 55 ) ) THEN - - 46 ELSE + 32 END + + - 97 * - 8 - MIN( 34 ) * - + 87 + - 49
----
4114

skipif mysql # not compatible
query I rowsort label-5008
SELECT 11 * + 41 + + - 54 + CASE + 37 WHEN - AVG ( + 84 ) THEN NULL WHEN - - NULLIF ( - + CAST ( NULL AS INTEGER ), COUNT ( * ) * - + 42 / - - SUM ( 55 ) ) THEN - - 46 ELSE + 32 END + + - 97 * - 8 - MIN ( 34 ) * - + 87 + - 49
----
4114

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT + - COUNT( * ) + + ( - 85 ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + - COUNT ( * ) + + ( - 85 ) col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT - COUNT( CAST( + 24 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5010
SELECT - COUNT ( CAST ( + 24 AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5011
SELECT + 45 * 89 + + 53 * - + 64 * + ( - SUM( DISTINCT + + 88 ) ), 35 AS col0
----
302501
35

skipif mysql # not compatible
query II rowsort label-5011
SELECT + 45 * 89 + + 53 * - + 64 * + ( - SUM ( DISTINCT + + 88 ) ), 35 AS col0
----
302501
35

query I rowsort
SELECT ALL + 4 * - 95 * + 92 col0
----
-34960

query I rowsort
SELECT DISTINCT + - 47 + - 96 + 34 col1
----
-109

query I rowsort
SELECT ALL - ( + ( - 83 ) ) * - + 45 + ( 30 ) + - 23 * 31 AS col2
----
-4418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT + 88 * - 58 * + ( + ( - + CAST( NULL AS SIGNED ) ) ) - - 68 + - + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT + 88 * - 58 * + ( + ( - + CAST ( NULL AS INTEGER ) ) ) - - 68 + - + 60 AS col1
----
NULL

query II rowsort
SELECT - 38 + 70 AS col0, - 92 AS col0
----
32
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT + COUNT( * ) * + - 91 + + 21 * - 63 * - 38 AS col2
----
50183

skipif mysql # not compatible
query I rowsort label-5017
SELECT + COUNT ( * ) * + - 91 + + 21 * - 63 * - 38 AS col2
----
50183

query I rowsort
SELECT ALL 94 * + - 38 col0
----
-3572

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT DISTINCT - 81 DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT - 81 / - 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + MIN( DISTINCT 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5020
SELECT + MIN ( DISTINCT 5 ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5021
SELECT ALL 41 DIV + + CAST( 71 AS SIGNED ) * - COALESCE ( - ( - - COUNT( * ) ), - 80 + + + 57 + 5 )
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL 41 / + + CAST ( 71 AS INTEGER ) * - COALESCE ( - ( - - COUNT ( * ) ), - 80 + + + 57 + 5 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5022
SELECT 54 DIV + - MAX( - 8 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5022
SELECT 54 / + - MAX ( - 8 ) AS col1
----
6

query I rowsort
SELECT - 64 * + 24 AS col1
----
-1536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5024
SELECT - 14 * + - NULLIF ( - + 38, + COUNT( * ) * 49 ) + 67 DIV + + 3
----
-510

skipif mysql # not compatible
query I rowsort label-5024
SELECT - 14 * + - NULLIF ( - + 38, + COUNT ( * ) * 49 ) + 67 / + + 3
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + NULLIF ( + COUNT( * ), + 89 * + 92 + - 58 ) * 60
----
60

skipif mysql # not compatible
query I rowsort label-5025
SELECT + NULLIF ( + COUNT ( * ), + 89 * + 92 + - 58 ) * 60
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL CAST( NULL AS SIGNED ) * - + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT + MAX( - - 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5027
SELECT + MAX ( - - 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT SUM( ALL - + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5028
SELECT SUM ( ALL - + 33 ) AS col1
----
-33

query II rowsort
SELECT 63 * 96 - - 7 AS col1, 85 AS col0
----
6055
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT ALL CAST( + 89 AS SIGNED ) * - - 36
----
3204

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL CAST ( + 89 AS INTEGER ) * - - 36
----
3204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT DISTINCT MAX( 88 ) + + COUNT( + ( CAST( NULL AS SIGNED ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT MAX ( 88 ) + + COUNT ( + ( CAST ( NULL AS INTEGER ) ) )
----
88

query II rowsort
SELECT 87, 13 + ( ( + - 24 ) ) AS col1
----
87
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT ALL 92 + + - ( + 89 ) + 85 + 34 * + ( - COUNT( * ) ) * 32 AS col2, 76 AS col0
----
-1000
76

skipif mysql # not compatible
query II rowsort label-5033
SELECT ALL 92 + + - ( + 89 ) + 85 + 34 * + ( - COUNT ( * ) ) * 32 AS col2, 76 AS col0
----
-1000
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT + CAST( - + 13 AS SIGNED ) * + 94 * + + 60 + 9
----
-73311

skipif mysql # not compatible
query I rowsort label-5034
SELECT + CAST ( - + 13 AS INTEGER ) * + 94 * + + 60 + 9
----
-73311

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT ALL 23 DIV ( - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL 23 / ( - 32 )
----
0

query I rowsort
SELECT - + 5 * 79 * - 56 AS col1
----
22120

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL + 25 + - COUNT( + + 34 )
----
24

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + 25 + - COUNT ( + + 34 )
----
24

query I rowsort
SELECT + - 19 - + 9
----
-28

query I rowsort
SELECT DISTINCT 8 * 80 col1
----
640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT ALL COUNT( * ) + CAST( - 87 AS SIGNED ) + 0
----
-86

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL COUNT ( * ) + CAST ( - 87 AS INTEGER ) + 0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT - CAST( + - 44 AS SIGNED ) + - 72 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5041
SELECT - CAST ( + - 44 AS INTEGER ) + - 72 AS col0
----
-28

query I rowsort
SELECT - 65 * - - 29
----
-1885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT + 9 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT + 9 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - + ( - 69 ) - - SUM( + + 24 )
----
93

skipif mysql # not compatible
query I rowsort label-5044
SELECT - + ( - 69 ) - - SUM ( + + 24 )
----
93

query I rowsort
SELECT - 23 + + + 55 AS col1
----
32

query I rowsort
SELECT - - 28 - + 12 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT + + COUNT( * ), ( - + 37 ) + + 12 AS col2
----
1
-25

skipif mysql # not compatible
query II rowsort label-5047
SELECT + + COUNT ( * ), ( - + 37 ) + + 12 AS col2
----
1
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - + 43 * + 32 * + ( + COUNT( * ) )
----
-1376

skipif mysql # not compatible
query I rowsort label-5048
SELECT - + 43 * + 32 * + ( + COUNT ( * ) )
----
-1376

query I rowsort
SELECT ALL + + 19 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL 53 * + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL 53 * + - COUNT ( * )
----
-53

query I rowsort
SELECT - 59 + - - 81 - - 54 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5052
SELECT ALL - CASE 3 WHEN + 73 / + + MAX( - 94 ) THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN + MIN( - - 50 ) * - 32 * - 54 ELSE NULL END * - 76 / 64, 51 AS col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-5052
SELECT ALL - CASE 3 WHEN + 73 / + + MAX ( - 94 ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN + MIN ( - - 50 ) * - 32 * - 54 ELSE NULL END * - 76 / 64, 51 AS col0
----
NULL
51

query I rowsort
SELECT - 77 * + 50 * + + 52 AS col0
----
-200200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5054
SELECT - 10 * - 1 + + MIN( + 3 ) DIV + NULLIF ( 1, 90 ) - 60
----
-47

skipif mysql # not compatible
query I rowsort label-5054
SELECT - 10 * - 1 + + MIN ( + 3 ) / + NULLIF ( 1, 90 ) - 60
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT + MIN( DISTINCT + + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-5055
SELECT + MIN ( DISTINCT + + 56 )
----
56

query I rowsort
SELECT ( - 84 ) col2
----
-84

query I rowsort
SELECT + COALESCE ( - 17, - 16 )
----
-17

query I rowsort
SELECT - 41 + + 57 AS col2
----
16

query II rowsort
SELECT DISTINCT + 5 AS col2, + 54 AS col2
----
5
54

query I rowsort
SELECT ALL - 10 * + 2 + 8 AS col2
----
-12

query I rowsort
SELECT DISTINCT + 77 * + 68 + - 37 * 9
----
4903

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT + 34 * 73 * CASE - - 60 WHEN + 88 THEN + 16 ELSE 76 DIV + 64 - + 75 + 79 + - 84 END + + 83 + - COALESCE ( 43, - 9 ) AS col0
----
-196038

skipif mysql # not compatible
query I rowsort label-5062
SELECT + 34 * 73 * CASE - - 60 WHEN + 88 THEN + 16 ELSE 76 / + 64 - + 75 + 79 + - 84 END + + 83 + - COALESCE ( 43, - 9 ) AS col0
----
-196038

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT + MIN( - - 39 ) + 60
----
99

skipif mysql # not compatible
query I rowsort label-5063
SELECT + MIN ( - - 39 ) + 60
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT ALL 58 * COUNT( * ) + - + 65 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL 58 * COUNT ( * ) + - + 65 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5065
SELECT + - COUNT( * ) DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-5065
SELECT + - COUNT ( * ) / - 24
----
0

query I rowsort
SELECT + - COALESCE ( + 45, - + 82 ) + + 29 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5067
SELECT ALL 84 * + CAST( NULL AS SIGNED ) / - MIN( ALL + 8 ) + + CAST( + - 91 AS SIGNED ) AS col2, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5067
SELECT ALL 84 * + CAST ( NULL AS INTEGER ) / - MIN ( ALL + 8 ) + + CAST ( + - 91 AS INTEGER ) AS col2, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5068
SELECT DISTINCT - 23 AS col0, - 65 * - - COUNT( * ) DIV 68
----
-23
0

skipif mysql # not compatible
query II rowsort label-5068
SELECT DISTINCT - 23 AS col0, - 65 * - - COUNT ( * ) / 68
----
-23
0

query I rowsort
SELECT DISTINCT - 26 + - 71 AS col0
----
-97

query I rowsort
SELECT + 27 + 56 - - 51
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL 97 - + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL 97 - + COUNT ( * )
----
96

query I rowsort
SELECT NULLIF ( + 62, 27 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL COALESCE ( + 89, COUNT( * ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL COALESCE ( + 89, COUNT ( * ) ) AS col1
----
89

query I rowsort
SELECT - - 32 + + 40
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL 46 - + 1 + ( - + 36 ) + + MAX( DISTINCT - 70 ) * + SUM( DISTINCT 94 ) * + ( - 62 ) * + ( 88 ) * + 25 AS col2
----
897512009

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL 46 - + 1 + ( - + 36 ) + + MAX ( DISTINCT - 70 ) * + SUM ( DISTINCT 94 ) * + ( - 62 ) * + ( 88 ) * + 25 AS col2
----
897512009

query II rowsort
SELECT DISTINCT 8, 68 AS col1
----
8
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5077
SELECT ALL + 33 AS col1, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-5077
SELECT ALL + 33 AS col1, COUNT ( * )
----
33
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5078
SELECT + 29 DIV - 47, + 30 + + + 6 DIV 50 * + 67 * - + 19 AS col0
----
0
30

skipif mysql # not compatible
query II rowsort label-5078
SELECT + 29 / - 47, + 30 + + + 6 / 50 * + 67 * - + 19 AS col0
----
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT - - COUNT( * ) * 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT - - COUNT ( * ) * 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT + 50 * - 94 * - 28 * COUNT( * ) AS col2
----
131600

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT + 50 * - 94 * - 28 * COUNT ( * ) AS col2
----
131600

onlyif mysql # aggregate syntax: 
query II rowsort label-5081
SELECT ALL - 69 AS col2, + 81 * + ( + 75 ) / - CASE 32 WHEN - - ( - 67 ) THEN 78 * 33 + + 75 / 91 * + 29 END / - 48 / + + COUNT( * ) * + + COUNT( - - 94 ) + + 10 * 16 * 14
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-5081
SELECT ALL - 69 AS col2, + 81 * + ( + 75 ) / - CASE 32 WHEN - - ( - 67 ) THEN 78 * 33 + + 75 / 91 * + 29 END / - 48 / + + COUNT ( * ) * + + COUNT ( - - 94 ) + + 10 * 16 * 14
----
-69
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5082
SELECT ALL SUM( - 38 ) * + COUNT( * ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL SUM ( - 38 ) * + COUNT ( * ) / 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5083
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 29 AS col1, + COUNT( * ) * - 32 * - + ( - 66 )
----
NULL
-2112

skipif mysql # not compatible
query II rowsort label-5083
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 29 AS col1, + COUNT ( * ) * - 32 * - + ( - 66 )
----
NULL
-2112

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT 63 * - - ( + COALESCE ( 30, - 0 DIV + 10 ) ) - - + 66 - 93
----
1863

skipif mysql # not compatible
query I rowsort label-5084
SELECT 63 * - - ( + COALESCE ( 30, - 0 / + 10 ) ) - - + 66 - 93
----
1863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5085
SELECT ( + COUNT( * ) ) DIV + 10 + - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5085
SELECT ( + COUNT ( * ) ) / + 10 + - 27 AS col1
----
-27

query I rowsort
SELECT 37 + - - NULLIF ( - 49, 65 / - + 29 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5087
SELECT DISTINCT + 18 + - 49 + COUNT( * ) * NULLIF ( + - 63, NULLIF ( + 40, - 31 * + MIN( + 76 ) ) ) AS col0, 83 * + - 98
----
-94
-8134

skipif mysql # not compatible
query II rowsort label-5087
SELECT DISTINCT + 18 + - 49 + COUNT ( * ) * NULLIF ( + - 63, NULLIF ( + 40, - 31 * + MIN ( + 76 ) ) ) AS col0, 83 * + - 98
----
-94
-8134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5088
SELECT 69 * + ( + 27 ) DIV COUNT( * ) AS col1
----
1863

skipif mysql # not compatible
query I rowsort label-5088
SELECT 69 * + ( + 27 ) / COUNT ( * ) AS col1
----
1863

query I rowsort
SELECT + 30 * 28 * + + 4 - 14
----
3346

query I rowsort
SELECT ALL + 0 + + - ( - ( + + 20 ) ) AS col0
----
20

query I rowsort
SELECT 59 * + - 25 * + 77 AS col1
----
-113575

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT + 67 * 99 DIV 2 + - + 17
----
3299

skipif mysql # not compatible
query I rowsort label-5092
SELECT + 67 * 99 / 2 + - + 17
----
3299

query I rowsort
SELECT ALL - 88 * - NULLIF ( - 44, - 93 ) AS col0
----
-3872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT DISTINCT - + COALESCE ( + CAST( + CASE WHEN + 52 < 57 * - + 63 * - - 46 + + NULLIF ( + 13, - - COUNT( * ) ) * 12 + + 39 - + 51 * + NULLIF ( - COUNT( * ), + 2 ) * ( + 22 ) + 35 + - - 68 * - - NULLIF ( CASE - CAST( 34 AS SIGNED ) WHEN 54 THEN - 99 * - 79 WHEN + 18 THEN + 35 * + + 48 + 75 + 97 * + - 92 ELSE - MAX( DISTINCT 52 ) + 10 * + 59 + - 56 END, - + COUNT( * ) * - 54 + 7 + + 50 * + 49 / - 82 ) + 2 THEN 31 / AVG ( ALL + 33 ) ELSE 62 * 41 END AS SIGNED ), 84, 26 ) col2
----
-2542

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - + COALESCE ( + CAST ( + CASE WHEN + 52 < 57 * - + 63 * - - 46 + + NULLIF ( + 13, - - COUNT ( * ) ) * 12 + + 39 - + 51 * + NULLIF ( - COUNT ( * ), + 2 ) * ( + 22 ) + 35 + - - 68 * - - NULLIF ( CASE - CAST ( 34 AS INTEGER ) WHEN 54 THEN - 99 * - 79 WHEN + 18 THEN + 35 * + + 48 + 75 + 97 * + - 92 ELSE - MAX ( DISTINCT 52 ) + 10 * + 59 + - 56 END, - + COUNT ( * ) * - 54 + 7 + + 50 * + 49 / - 82 ) + 2 THEN 31 / AVG ( ALL + 33 ) ELSE 62 * 41 END AS INTEGER ), 84, 26 ) col2
----
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT - CASE + 58 WHEN 6 THEN - COALESCE ( + 5, - 58, 1 / 0 ) * - + 7 + + MIN( + 92 ) WHEN COUNT( * ) THEN NULL END - + 8 * + + COALESCE ( MIN( + + 87 ), 5 + + 76 + + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT - CASE + 58 WHEN 6 THEN - COALESCE ( + 5, - 58, 1 / 0 ) * - + 7 + + MIN ( + 92 ) WHEN COUNT ( * ) THEN NULL END - + 8 * + + COALESCE ( MIN ( + + 87 ), 5 + + 76 + + 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL + COUNT( * ) - 50 * + 44 - - 49 * 77
----
1574

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL + COUNT ( * ) - 50 * + 44 - - 49 * 77
----
1574

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT DISTINCT + + 40 DIV + - 18 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT + + 40 / + - 18 AS col1
----
-2

query I rowsort
SELECT 42 * + 85 * 40 - + 55 + 89
----
142834

query I rowsort
SELECT ALL + 73 * - - 18 AS col2
----
1314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT CAST( NULL AS SIGNED ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT CAST ( NULL AS INTEGER ) * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT ALL COUNT( * ) * + + 1 AS col2, 73
----
1
73

skipif mysql # not compatible
query II rowsort label-5101
SELECT ALL COUNT ( * ) * + + 1 AS col2, 73
----
1
73

query I rowsort
SELECT - 0 * + + 94 + + - 39
----
-39

query I rowsort
SELECT 58 + 68 + - 93
----
33

query I rowsort
SELECT 4 * 82
----
328

query I rowsort
SELECT DISTINCT COALESCE ( + 56, 2 ) col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT ALL + CAST( NULL AS SIGNED ) * + - ( - - 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + CAST ( NULL AS INTEGER ) * + - ( - - 44 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5107
SELECT COUNT( * ) + - COUNT( * ) * - CAST( NULL AS SIGNED ) / - ( 32 ) AS col2, 55 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-5107
SELECT COUNT ( * ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - ( 32 ) AS col2, 55 AS col1
----
NULL
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5108
SELECT - 47 col0, + COUNT( * ) - - 35
----
-47
36

skipif mysql # not compatible
query II rowsort label-5108
SELECT - 47 col0, + COUNT ( * ) - - 35
----
-47
36

query I rowsort
SELECT 63 - 28 AS col0
----
35

query I rowsort
SELECT 73 + 14 + - 4 + - 90 + + 2 * - 81 * + 68 * + 44 * - - 34 * 59 col0
----
-972316231

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL 12 * 10 * + SUM( + + 99 ) AS col2
----
11880

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL 12 * 10 * + SUM ( + + 99 ) AS col2
----
11880

query I rowsort
SELECT ALL 82 + - 66
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL - 59 + + COUNT( * ) * - 3 * - + CASE - - 82 WHEN 30 - + 41 THEN NULL WHEN - AVG ( ALL - 23 ) THEN 42 WHEN 19 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL - 59 + + COUNT ( * ) * - 3 * - + CASE - - 82 WHEN 30 - + 41 THEN NULL WHEN - AVG ( ALL - 23 ) THEN 42 WHEN 19 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 4 + + 56
----
60

query II rowsort
SELECT ( 20 ) + - 62 AS col1, + 89
----
-42
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT ALL ( 78 ) * + - 86 DIV - COUNT( * ) AS col1
----
6708

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL ( 78 ) * + - 86 / - COUNT ( * ) AS col1
----
6708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5117
SELECT COUNT( * ) * + 96 + + 41 DIV - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5117
SELECT COUNT ( * ) * + 96 + + 41 / - COUNT ( * )
----
55

query I rowsort
SELECT DISTINCT 11 * 43
----
473

query I rowsort
SELECT ALL 69 * - 48
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL 28 + 27 + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL 28 + 27 + COUNT ( * )
----
56

query I rowsort
SELECT ( 26 ) * - 69 * 6
----
-10764

query I rowsort
SELECT 88 * + 89 AS col1
----
7832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5123
SELECT + COUNT( * ) DIV - - 71 + + 93
----
93

skipif mysql # not compatible
query I rowsort label-5123
SELECT + COUNT ( * ) / - - 71 + + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT 62 * 21 * MAX( + 91 ) AS col1
----
118482

skipif mysql # not compatible
query I rowsort label-5124
SELECT 62 * 21 * MAX ( + 91 ) AS col1
----
118482

onlyif mysql # DIV for integer division: 
query II rowsort label-5125
SELECT + 33 AS col0, 48 DIV + ( - 56 )
----
33
0

skipif mysql # not compatible
query II rowsort label-5125
SELECT + 33 AS col0, 48 / + ( - 56 )
----
33
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5126
SELECT CAST( - 49 AS SIGNED ) DIV + 59 * - 39
----
0

skipif mysql # not compatible
query I rowsort label-5126
SELECT CAST ( - 49 AS INTEGER ) / + 59 * - 39
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT 7 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT 7 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 68 - + + 72
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5129
SELECT DISTINCT - COUNT( * ), 35 AS col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-5129
SELECT DISTINCT - COUNT ( * ), 35 AS col0
----
-1
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5130
SELECT - 21 * 18 DIV - 57 + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5130
SELECT - 21 * 18 / - 57 + COUNT ( * ) AS col2
----
7

query I rowsort
SELECT DISTINCT + 26 - - 75 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT - SUM( - 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT - SUM ( - 38 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT + 39 * + - COUNT( * ) * - - CASE COUNT( * ) WHEN ( 59 ) THEN + + COUNT( * ) END * - 29 + + COUNT( * ) + + 24 + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT + 39 * + - COUNT ( * ) * - - CASE COUNT ( * ) WHEN ( 59 ) THEN + + COUNT ( * ) END * - 29 + + COUNT ( * ) + + 24 + + 20
----
NULL

query I rowsort
SELECT NULLIF ( 47, + - 77 ) + + 12 col1
----
59

query I rowsort
SELECT 93 * 75 AS col1
----
6975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT - 46 * + ( + + CAST( NULL AS SIGNED ) ) + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 46 * + ( + + CAST ( NULL AS INTEGER ) ) + - 40 AS col2
----
NULL

query I rowsort
SELECT ( + - 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL - ( COUNT( - + ( - + 97 ) ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - ( COUNT ( - + ( - + 97 ) ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT + + COUNT( * ) + + 40 * + + 77
----
3081

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT + + COUNT ( * ) + + 40 * + + 77
----
3081

query I rowsort
SELECT COALESCE ( - 62, 19 )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT - + COUNT( * ) DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT - + COUNT ( * ) / + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT + - COUNT( * ) * + + 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5142
SELECT + - COUNT ( * ) * + + 6 AS col0
----
-6

query I rowsort
SELECT ALL + 0 + + + 18 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5144
SELECT - 78 * + 76 + - - 45 col1, 32 + + - 49 - + COUNT( * ) * 98 AS col2
----
-5883
-115

skipif mysql # not compatible
query II rowsort label-5144
SELECT - 78 * + 76 + - - 45 col1, 32 + + - 49 - + COUNT ( * ) * 98 AS col2
----
-5883
-115

query I rowsort
SELECT + + 31 * + 61 * - - 77
----
145607

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5146
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL COALESCE ( - ( + COUNT( * ) ), - - 9, - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL COALESCE ( - ( + COUNT ( * ) ), - - 9, - + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + 6 + 71
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5149
SELECT DISTINCT 71 * ( + 28 ) * + + COUNT( * ) AS col2, 16 * CAST( - + 12 AS SIGNED ) * 67
----
1988
-12864

skipif mysql # not compatible
query II rowsort label-5149
SELECT DISTINCT 71 * ( + 28 ) * + + COUNT ( * ) AS col2, 16 * CAST ( - + 12 AS INTEGER ) * 67
----
1988
-12864

query I rowsort
SELECT ALL + ( + + 73 ) + - 25 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5151
SELECT DISTINCT - COUNT( * ) + + 76 col1, 30 col0
----
75
30

skipif mysql # not compatible
query II rowsort label-5151
SELECT DISTINCT - COUNT ( * ) + + 76 col1, 30 col0
----
75
30

query II rowsort
SELECT ALL + 63 * - 46 col0, + 45 * + + 86 AS col2
----
-2898
3870

query I rowsort
SELECT DISTINCT 23 + + + COALESCE ( + 62, + 93 )
----
85

query I rowsort
SELECT DISTINCT + 45 * + + 74
----
3330

query I rowsort
SELECT DISTINCT - 91 + - 25
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT + SUM( DISTINCT - 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5156
SELECT + SUM ( DISTINCT - 79 ) AS col0
----
-79

query I rowsort
SELECT ( + - NULLIF ( - 3, 71 / + 89 ) )
----
3

query I rowsort
SELECT 37 * + 32 - + 67 AS col1
----
1117

query I rowsort
SELECT CASE - 61 WHEN 78 * 95 * - 2 THEN NULL WHEN ( 5 ) / 79 THEN - ( 59 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5160
SELECT + 22 DIV 17 + + CAST( + + 12 AS SIGNED ) AS col0, COUNT( * )
----
13
1

skipif mysql # not compatible
query II rowsort label-5160
SELECT + 22 / 17 + + CAST ( + + 12 AS INTEGER ) AS col0, COUNT ( * )
----
13
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT + CAST( NULL AS SIGNED ) * + CAST( + + 2 AS SIGNED ) / - ( + 75 ) * - 92 + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( + + 2 AS INTEGER ) / - ( + 75 ) * - 92 + + 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT + 34 + + + MIN( - 10 )
----
24

skipif mysql # not compatible
query I rowsort label-5162
SELECT + 34 + + + MIN ( - 10 )
----
24

query I rowsort
SELECT DISTINCT 15 * + 38 - + 57
----
513

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT ALL 86 DIV + 77
----
1

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL 86 / + 77
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5165
SELECT CASE - - CAST( - 40 AS DECIMAL ) WHEN - 4 THEN COALESCE ( - COUNT( 95 ), + + COUNT( * ) + 93 ) WHEN 86 THEN NULL WHEN - + 30 * + ( + - ( 23 ) ) THEN NULL END * - - ( - 75 ) - - - SUM( + + 62 ) - + ( - 70 ) * COUNT( - + 45 ) * - 97 * + + 61 col1, - 40 * - - ( 78 ) AS col2
----
NULL
-3120

skipif mysql # not compatible
query II rowsort label-5165
SELECT CASE - - CAST ( - 40 AS REAL ) WHEN - 4 THEN COALESCE ( - COUNT ( 95 ), + + COUNT ( * ) + 93 ) WHEN 86 THEN NULL WHEN - + 30 * + ( + - ( 23 ) ) THEN NULL END * - - ( - 75 ) - - - SUM ( + + 62 ) - + ( - 70 ) * COUNT ( - + 45 ) * - 97 * + + 61 col1, - 40 * - - ( 78 ) AS col2
----
NULL
-3120

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT DISTINCT + 39 * 95 DIV - - 40 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + 39 * 95 / - - 40 AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5167
SELECT - 31 DIV 94 * - 92 + + NULLIF ( + - 71, - - CAST( NULL AS SIGNED ) )
----
-71

skipif mysql # not compatible
query I rowsort label-5167
SELECT - 31 / 94 * - 92 + + NULLIF ( + - 71, - - CAST ( NULL AS INTEGER ) )
----
-71

query I rowsort
SELECT + 24 * 78 * + 44 * 10
----
823680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5169
SELECT ALL 63 * + 5 * - 63 DIV + COUNT( * )
----
-19845

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL 63 * + 5 * - 63 / + COUNT ( * )
----
-19845

onlyif mysql # DIV for integer division: 
query II rowsort label-5170
SELECT ALL 67 * 29 DIV - ( - 42 ) AS col1, 67
----
46
67

skipif mysql # not compatible
query II rowsort label-5170
SELECT ALL 67 * 29 / - ( - 42 ) AS col1, 67
----
46
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT - 20 / - + ( CAST( NULL AS SIGNED ) ) + 41 + + - 73 + - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT - 20 / - + ( CAST ( NULL AS INTEGER ) ) + 41 + + - 73 + - - 14
----
NULL

query I rowsort
SELECT - - 45 * 20 AS col2
----
900

query I rowsort
SELECT ALL 34 * - 68 + + 1 AS col0
----
-2311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT + + ( + COALESCE ( + - 62, 86 - 86 ) ) * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT + + ( + COALESCE ( + - 62, 86 - 86 ) ) * + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL + MIN( ALL - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + MIN ( ALL - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT + MAX( DISTINCT + 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + MAX ( DISTINCT + 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT - + 69 * 56 * ( + COUNT( ALL + 20 ) ) + - COUNT( * ) AS col2
----
-3865

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT - + 69 * 56 * ( + COUNT ( ALL + 20 ) ) + - COUNT ( * ) AS col2
----
-3865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5178
SELECT ALL + - 3 * COUNT( * ) + - CAST( - 55 AS SIGNED ) + + 90 * 46
----
4192

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL + - 3 * COUNT ( * ) + - CAST ( - 55 AS INTEGER ) + + 90 * 46
----
4192

query I rowsort
SELECT ALL - - 30 + 46
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - + COUNT( * ) - + 59 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5180
SELECT - + COUNT ( * ) - + 59 AS col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT + - CAST( NULL AS SIGNED ) + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT + - CAST ( NULL AS INTEGER ) + + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT - + 43 * COALESCE ( + 32, 24 * - ( - COUNT( * ) ) + 55 ) / - + 80 + CASE + + COUNT( * ) WHEN 22 THEN + 86 WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) - - ( + + 94 ) END * 0 * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT - + 43 * COALESCE ( + 32, 24 * - ( - COUNT ( * ) ) + 55 ) / - + 80 + CASE + + COUNT ( * ) WHEN 22 THEN + 86 WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) - - ( + + 94 ) END * 0 * - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL + + 18 * - 95 * + - MAX( ALL 83 ) + 52
----
141982

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL + + 18 * - 95 * + - MAX ( ALL 83 ) + 52
----
141982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5184
SELECT - + MIN( + 66 ) + + - CASE 37 WHEN + 75 / 25 * + 18 + AVG ( DISTINCT - - 25 ) THEN + + 65 ELSE NULL END - COUNT( - 26 ) + - CASE + 75 WHEN 97 + 52 - + 53 * + CAST( NULL AS DECIMAL ) THEN NULL ELSE + COUNT( * ) + 55 END, + CAST( NULL AS SIGNED ) * + 13
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5184
SELECT - + MIN ( + 66 ) + + - CASE 37 WHEN + 75 / 25 * + 18 + AVG ( DISTINCT - - 25 ) THEN + + 65 ELSE NULL END - COUNT ( - 26 ) + - CASE + 75 WHEN 97 + 52 - + 53 * + CAST ( NULL AS REAL ) THEN NULL ELSE + COUNT ( * ) + 55 END, + CAST ( NULL AS INTEGER ) * + 13
----
NULL
NULL

query I rowsort
SELECT ALL + 4 + - - 36 - 41 * + + 44 / - CASE 79 WHEN - - 91 / + 1 THEN - 50 WHEN - + 36 * - 91 THEN NULL ELSE NULL END + + 58 AS col1
----
NULL

query I rowsort
SELECT - 94 + - - 70
----
-24

query I rowsort
SELECT ALL - 31 * + 31 * 83 * + 68
----
-5423884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT - AVG ( 2 ) + + CAST( NULL AS SIGNED ) / + 24 / - 61 * + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT - AVG ( 2 ) + + CAST ( NULL AS INTEGER ) / + 24 / - 61 * + 70 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT ALL CAST( + + 25 AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL CAST ( + + 25 AS INTEGER ) AS col0
----
25

query I rowsort
SELECT ALL - 5 + - 80 AS col1
----
-85

query I rowsort
SELECT - 58 * - 70
----
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL + 41 - - MAX( DISTINCT 51 )
----
92

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL + 41 - - MAX ( DISTINCT 51 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL CAST( 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL CAST ( 33 AS INTEGER )
----
33

query I rowsort
SELECT + 17 + 38 AS col0
----
55

query I rowsort
SELECT ALL - 69 * - - 85
----
-5865

query I rowsort
SELECT - 28 * - 80 col2
----
2240

query II rowsort
SELECT ALL + 52 AS col0, + ( - 47 )
----
52
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5198
SELECT + 42 AS col1, COALESCE ( - 54, - ( + 28 ), + - MIN( ALL + ( - 94 ) ) * + 14 ) DIV + 84 * + - COUNT( * ) + 92 + - COUNT( * ) AS col1
----
42
91

skipif mysql # not compatible
query II rowsort label-5198
SELECT + 42 AS col1, COALESCE ( - 54, - ( + 28 ), + - MIN ( ALL + ( - 94 ) ) * + 14 ) / + 84 * + - COUNT ( * ) + 92 + - COUNT ( * ) AS col1
----
42
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5199
SELECT CAST( - + COUNT( + + 58 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5199
SELECT CAST ( - + COUNT ( + + 58 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT + - CAST( - ( + - 55 ) AS SIGNED ) * + 73 * - 62 + - 89
----
248841

skipif mysql # not compatible
query I rowsort label-5200
SELECT + - CAST ( - ( + - 55 ) AS INTEGER ) * + 73 * - 62 + - 89
----
248841

query II rowsort
SELECT 85 AS col2, 26 AS col2
----
85
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + SUM( - + 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5202
SELECT + SUM ( - + 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5203
SELECT + - COUNT( * ) DIV + - 73
----
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT + - COUNT ( * ) / + - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5204
SELECT ALL + + NULLIF ( + COUNT( * ), 55 + - 27 * + - CAST( - 43 AS SIGNED ) ), - ( 15 ) AS col1
----
1
-15

skipif mysql # not compatible
query II rowsort label-5204
SELECT ALL + + NULLIF ( + COUNT ( * ), 55 + - 27 * + - CAST ( - 43 AS INTEGER ) ), - ( 15 ) AS col1
----
1
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT - 83 * - - 55 + + + 91 + + - COUNT( * ) + + + COALESCE ( - 85, - + 78 - + 79, COUNT( * ), - + 31 * - + 35 ) + - + ( + 64 ) AS col1
----
-4624

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - 83 * - - 55 + + + 91 + + - COUNT ( * ) + + + COALESCE ( - 85, - + 78 - + 79, COUNT ( * ), - + 31 * - + 35 ) + - + ( + 64 ) AS col1
----
-4624

query I rowsort
SELECT ALL 24 * 59 * + - 65 + + + 35
----
-92005

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT + ( - 76 ) + + 22 + - + CASE - - COUNT( * ) WHEN 33 THEN - COALESCE ( - COALESCE ( + + MAX( - 89 ), 47, 98 ), - 59 ) END * 24 / + + 40 * + + MIN( - 25 ) / + COUNT( + + 32 ) + + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT + ( - 76 ) + + 22 + - + CASE - - COUNT ( * ) WHEN 33 THEN - COALESCE ( - COALESCE ( + + MAX ( - 89 ), 47, 98 ), - 59 ) END * 24 / + + 40 * + + MIN ( - 25 ) / + COUNT ( + + 32 ) + + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL + 33 + SUM( DISTINCT + 63 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + 33 + SUM ( DISTINCT + 63 ) AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5209
SELECT 33 * - 23 * + 30 + - COUNT( * ) DIV + + 81 AS col0, 12 AS col1
----
-22770
12

skipif mysql # not compatible
query II rowsort label-5209
SELECT 33 * - 23 * + 30 + - COUNT ( * ) / + + 81 AS col0, 12 AS col1
----
-22770
12

query I rowsort
SELECT ALL + 84 + - 86 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5211
SELECT + ( - - MIN( DISTINCT + CAST( 48 AS SIGNED ) ) ) DIV - 79 + + - 29 * + 27 * 20 AS col2
----
-15660

skipif mysql # not compatible
query I rowsort label-5211
SELECT + ( - - MIN ( DISTINCT + CAST ( 48 AS INTEGER ) ) ) / - 79 + + - 29 * + 27 * 20 AS col2
----
-15660

query I rowsort
SELECT 10 + - - NULLIF ( - ( - ( 14 ) ), + 82 ) AS col1
----
24

query I rowsort
SELECT ALL + 98 + + 54 + 4 + - 12 AS col0
----
144

query II rowsort
SELECT 21 AS col2, - 78
----
21
-78

query I rowsort
SELECT ALL - 17 + - + 94 + + - ( + + 87 ) col1
----
-198

query II rowsort
SELECT ALL 96 AS col0, 85
----
96
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT COUNT( * ) - + 5 + MAX( DISTINCT - 28 ) + - ( - + 0 ) + - 30 * COUNT( * ) * 29 * - 15
----
13018

skipif mysql # not compatible
query I rowsort label-5217
SELECT COUNT ( * ) - + 5 + MAX ( DISTINCT - 28 ) + - ( - + 0 ) + - 30 * COUNT ( * ) * 29 * - 15
----
13018

query I rowsort
SELECT 53 * + 68 AS col2
----
3604

query I rowsort
SELECT 88 * 88 AS col1
----
7744

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL - 0 * - + 52 * + ( - - 64 ) * - 84 - - ( CASE 86 WHEN - - 0 / 28 + + - 51 + - 20 * COUNT( * ) * ( + 45 ) / + 59 THEN + 48 + + - 14 END ) * 58 + - - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL - 0 * - + 52 * + ( - - 64 ) * - 84 - - ( CASE 86 WHEN - - 0 / 28 + + - 51 + - 20 * COUNT ( * ) * ( + 45 ) / + 59 THEN + 48 + + - 14 END ) * 58 + - - 26 AS col0
----
NULL

query II rowsort
SELECT - 63 AS col2, + 50 * - - 34 * 93
----
-63
158100

query II rowsort
SELECT - 66 AS col0, + 78 AS col1
----
-66
78

query II rowsort
SELECT 0, 60 AS col0
----
0
60

query I rowsort
SELECT ALL 93 * + 40 * - 26
----
-96720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5225
SELECT ALL 11 * 3 DIV CASE + 67 WHEN + 22 THEN NULL ELSE + 47 END DIV - COUNT( * ) * - - 26
----
0

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL 11 * 3 / CASE + 67 WHEN + 22 THEN NULL ELSE + 47 END / - COUNT ( * ) * - - 26
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT 88 - - + CAST( - 6 AS SIGNED ) * + 38 + + + COALESCE ( 63, + ( + 34 ) ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-5226
SELECT 88 - - + CAST ( - 6 AS INTEGER ) * + 38 + + + COALESCE ( 63, + ( + 34 ) ) col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5227
SELECT ALL 76, - MIN( DISTINCT 21 ) AS col2
----
76
-21

skipif mysql # not compatible
query II rowsort label-5227
SELECT ALL 76, - MIN ( DISTINCT 21 ) AS col2
----
76
-21

query I rowsort
SELECT ALL - 83 * + 84
----
-6972

query II rowsort
SELECT 4 * - 7 AS col1, - 0 AS col1
----
-28
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5230
SELECT DISTINCT 33, MIN( - 12 ) AS col1
----
33
-12

skipif mysql # not compatible
query II rowsort label-5230
SELECT DISTINCT 33, MIN ( - 12 ) AS col1
----
33
-12

query II rowsort
SELECT DISTINCT 36, 54 col1
----
36
54

query I rowsort
SELECT 16 * - 42 AS col0
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT 11 * + 75 + - - 26 + + + CASE + 50 WHEN - + 4 THEN NULL WHEN + 63 * - COALESCE ( - 19, CAST( NULL AS SIGNED ), 3 ) THEN 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT 11 * + 75 + - - 26 + + + CASE + 50 WHEN - + 4 THEN NULL WHEN + 63 * - COALESCE ( - 19, CAST ( NULL AS INTEGER ), 3 ) THEN 12 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5234
SELECT ALL - 38 DIV + COALESCE ( - - 96, - + AVG ( DISTINCT - + 1 ) + + + 69 )
----
0

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - 38 / + COALESCE ( - - 96, - + AVG ( DISTINCT - + 1 ) + + + 69 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT 40 * - NULLIF ( - COALESCE ( + 88, 8, - 40, COUNT( 90 ) * - + 11 ), - 76 ) * MIN( - + 6 ) AS col1
----
-21120

skipif mysql # not compatible
query I rowsort label-5235
SELECT 40 * - NULLIF ( - COALESCE ( + 88, 8, - 40, COUNT ( 90 ) * - + 11 ), - 76 ) * MIN ( - + 6 ) AS col1
----
-21120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT + - 8 / 71 + 0 - - 2 + + COUNT( DISTINCT 77 ) + - COUNT( * ) + - + 40 / 66 / CAST( NULL AS SIGNED ) / - + CAST( - 35 AS SIGNED ) + 92 * + 4 / - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT + - 8 / 71 + 0 - - 2 + + COUNT ( DISTINCT 77 ) + - COUNT ( * ) + - + 40 / 66 / CAST ( NULL AS INTEGER ) / - + CAST ( - 35 AS INTEGER ) + 92 * + 4 / - 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5237
SELECT - + 51 * + 73 - + 49 - NULLIF ( 87, - 76 * + COUNT( * ) ) - - - 82 * - + 29 - + CASE - - NULLIF ( 65, - + COALESCE ( - - COALESCE ( - 58, - - CASE + NULLIF ( - 78, + 4 * + CAST( NULL AS DECIMAL ) ) WHEN + 66 * - 3 THEN - 6 WHEN - 83 THEN + 17 END, - - CAST( NULL AS SIGNED ) ), - NULLIF ( - 17, + + 18 + - MAX( DISTINCT + 13 ) * - 64 + + 79 - - 93 + + 95 ) * 97 * 18 ) ) WHEN - 75 THEN + COALESCE ( + 29, 55, - 10 ) * - NULLIF ( + 36, - + 25 * - 45 + COUNT( * ) ) + + 84 * CAST( - CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) ELSE - COUNT( * ) END * - 88
----
-1569

skipif mysql # not compatible
query I rowsort label-5237
SELECT - + 51 * + 73 - + 49 - NULLIF ( 87, - 76 * + COUNT ( * ) ) - - - 82 * - + 29 - + CASE - - NULLIF ( 65, - + COALESCE ( - - COALESCE ( - 58, - - CASE + NULLIF ( - 78, + 4 * + CAST ( NULL AS REAL ) ) WHEN + 66 * - 3 THEN - 6 WHEN - 83 THEN + 17 END, - - CAST ( NULL AS INTEGER ) ), - NULLIF ( - 17, + + 18 + - MAX ( DISTINCT + 13 ) * - 64 + + 79 - - 93 + + 95 ) * 97 * 18 ) ) WHEN - 75 THEN + COALESCE ( + 29, 55, - 10 ) * - NULLIF ( + 36, - + 25 * - 45 + COUNT ( * ) ) + + 84 * CAST ( - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) ELSE - COUNT ( * ) END * - 88
----
-1569

query I rowsort
SELECT 86 * 89
----
7654

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT ALL + - 64 DIV 53 * - + 39 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL + - 64 / 53 * - + 39 AS col2
----
39

query I rowsort
SELECT DISTINCT - + COALESCE ( + 47, - 5 ) AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT ALL + 28 + + - 65 + - + CAST( NULL AS SIGNED ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + 28 + + - 65 + - + CAST ( NULL AS INTEGER ) + 68
----
NULL

query II rowsort
SELECT 24, 29 col2
----
24
29

onlyif mysql # DIV for integer division: 
query II rowsort label-5243
SELECT ALL - - 25 AS col2, - 16 DIV - 2 AS col0
----
25
8

skipif mysql # not compatible
query II rowsort label-5243
SELECT ALL - - 25 AS col2, - 16 / - 2 AS col0
----
25
8

query I rowsort
SELECT DISTINCT - + 26 + 52 * + 70 AS col0
----
3614

onlyif mysql # aggregate syntax: 
query II rowsort label-5245
SELECT ALL - + 8 AS col2, + COUNT( - 52 )
----
-8
1

skipif mysql # not compatible
query II rowsort label-5245
SELECT ALL - + 8 AS col2, + COUNT ( - 52 )
----
-8
1

query I rowsort
SELECT ALL - - 76 + - 84 + - + 66 * + - 46 AS col2
----
3028

query II rowsort
SELECT 62 AS col2, 0 AS col1
----
62
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT 88 - CAST( - ( - 68 ) AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-5248
SELECT 88 - CAST ( - ( - 68 ) AS INTEGER )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - 80 * + - 59 * 69 + 56 * CASE - ( + - 4 ) WHEN + 60 THEN 46 + - COUNT( * ) WHEN - 73 * - 75 THEN NULL WHEN COUNT( * ) * + 72 THEN NULL END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT - 80 * + - 59 * 69 + 56 * CASE - ( + - 4 ) WHEN + 60 THEN 46 + - COUNT ( * ) WHEN - 73 * - 75 THEN NULL WHEN COUNT ( * ) * + 72 THEN NULL END - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 54 + - - 47
----
101

query I rowsort
SELECT + - ( - ( - 87 ) ) AS col1
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5252
SELECT ALL 97 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL 97 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL - 83, - 70 * - 83 AS col0
----
-83
5810

onlyif mysql # aggregate syntax: 
query II rowsort label-5254
SELECT 17 AS col1, ( + + SUM( ALL 99 ) ) - + 62 + - 49
----
17
-12

skipif mysql # not compatible
query II rowsort label-5254
SELECT 17 AS col1, ( + + SUM ( ALL 99 ) ) - + 62 + - 49
----
17
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT + + 28 * CASE COUNT( * ) WHEN - + 37 * + - 35 THEN - 67 * + 28 * - 72 * + + 33 + + 83 WHEN 86 * - + 57 THEN + - CAST( - 30 AS SIGNED ) ELSE NULL END - CAST( NULL AS SIGNED ) - + - 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT + + 28 * CASE COUNT ( * ) WHEN - + 37 * + - 35 THEN - 67 * + 28 * - 72 * + + 33 + + 83 WHEN 86 * - + 57 THEN + - CAST ( - 30 AS INTEGER ) ELSE NULL END - CAST ( NULL AS INTEGER ) - + - 0 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - 85 * + 12 + 49 * - COUNT( * )
----
-1069

skipif mysql # not compatible
query I rowsort label-5256
SELECT - 85 * + 12 + 49 * - COUNT ( * )
----
-1069

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT 4 DIV + - ( - 12 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5257
SELECT 4 / + - ( - 12 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL - MIN( DISTINCT - - 45 ) - 87
----
-132

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL - MIN ( DISTINCT - - 45 ) - 87
----
-132

query I rowsort
SELECT - 92 * 69 * - 65 + 82
----
412702

query I rowsort
SELECT 98 - - 18 AS col2
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5261
SELECT DISTINCT 52 - - + COUNT( ALL 74 ) + - + 14 - 35 * 62 DIV COALESCE ( + ( + 69 ), - - 7 + 44 * + COUNT( * ) - - - 23 * 86, + 40 ) + 77
----
85

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT 52 - - + COUNT ( ALL 74 ) + - + 14 - 35 * 62 / COALESCE ( + ( + 69 ), - - 7 + 44 * + COUNT ( * ) - - - 23 * 86, + 40 ) + 77
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ( - 24 ) + - + 87 * - + 67 * + + 16 * - 45 * COUNT( + 65 ) * - + 71
----
297978456

skipif mysql # not compatible
query I rowsort label-5262
SELECT ( - 24 ) + - + 87 * - + 67 * + + 16 * - 45 * COUNT ( + 65 ) * - + 71
----
297978456

query I rowsort
SELECT 71 * - 74 AS col1
----
-5254

query II rowsort
SELECT 7 + - + 2 AS col2, - 10
----
5
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT 13 * - 10 * + 87 DIV + 1
----
-11310

skipif mysql # not compatible
query I rowsort label-5265
SELECT 13 * - 10 * + 87 / + 1
----
-11310

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT COUNT( * ) * + 40 * + COUNT( DISTINCT - + 99 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5266
SELECT COUNT ( * ) * + 40 * + COUNT ( DISTINCT - + 99 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL CASE - - MAX( ALL 38 ) WHEN + 89 THEN NULL ELSE + - 48 END * 57 + + COUNT( - - 32 )
----
-2735

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL CASE - - MAX ( ALL 38 ) WHEN + 89 THEN NULL ELSE + - 48 END * 57 + + COUNT ( - - 32 )
----
-2735

query I rowsort
SELECT ALL + + 92 * - 33 + - ( 59 )
----
-3095

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT + ( COALESCE ( - 90, + - ( + 85 ) + 92 + - 89 + - 25 * + CASE + - ( 51 ) WHEN - 16 - + 24 THEN + 89 WHEN 74 / + 85 / + ( - COUNT( * ) ) + - - 14 + + + 13 THEN NULL END * + + 87 ) ) * + 21 * + + 27 + - - 6 + - 85
----
-51109

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + ( COALESCE ( - 90, + - ( + 85 ) + 92 + - 89 + - 25 * + CASE + - ( 51 ) WHEN - 16 - + 24 THEN + 89 WHEN 74 / + 85 / + ( - COUNT ( * ) ) + - - 14 + + + 13 THEN NULL END * + + 87 ) ) * + 21 * + + 27 + - - 6 + - 85
----
-51109

query I rowsort
SELECT - - 39 * 24
----
936

query I rowsort
SELECT - - 67 * - 5 + - - 45 AS col1
----
-290

query I rowsort
SELECT - + 53 - + 41 col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5273
SELECT 36 DIV + NULLIF ( - COUNT( * ), - + COUNT( * ) + - - AVG ( - + 9 ) ) + - MAX( ALL + 21 ) + - + MIN( ALL + 15 ) + + 61
----
-11

skipif mysql # not compatible
query I rowsort label-5273
SELECT 36 / + NULLIF ( - COUNT ( * ), - + COUNT ( * ) + - - AVG ( - + 9 ) ) + - MAX ( ALL + 21 ) + - + MIN ( ALL + 15 ) + + 61
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5274
SELECT ALL COUNT( * ) * NULLIF ( 80, + 13 + - + NULLIF ( - - 67, - 4 * + ( + 89 ) * CAST( + 93 AS SIGNED ) + COUNT( * ) + + COUNT( * ) + - 60 + + 48 * - 8 + COUNT( * ) * - - 74 * - + 78 * 88 + - 8 + - 42 ) + - CAST( + + 60 AS SIGNED ) * - 77 ) + 64 - - - 7
----
137

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL COUNT ( * ) * NULLIF ( 80, + 13 + - + NULLIF ( - - 67, - 4 * + ( + 89 ) * CAST ( + 93 AS INTEGER ) + COUNT ( * ) + + COUNT ( * ) + - 60 + + 48 * - 8 + COUNT ( * ) * - - 74 * - + 78 * 88 + - 8 + - 42 ) + - CAST ( + + 60 AS INTEGER ) * - 77 ) + 64 - - - 7
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT ALL - + CAST( NULL AS SIGNED ) * + + 44 * - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL - + CAST ( NULL AS INTEGER ) * + + 44 * - 5 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - 94 ) * + 55 col1
----
-5170

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT + + 66 * - 38 + - COUNT( * ) - 50 + - 31 AS col0
----
-2590

skipif mysql # not compatible
query I rowsort label-5277
SELECT + + 66 * - 38 + - COUNT ( * ) - 50 + - 31 AS col0
----
-2590

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL + 9 * NULLIF ( COUNT( * ), - ( + 66 ) + + COUNT( * ) ) * + - COUNT( * ) + - ( + COUNT( * ) ) - + COUNT( * ) * + MAX( ALL 31 ) * - - 47 + - NULLIF ( + + COUNT( * ), + + 64 ) * - + 92 - - + 80
----
-1295

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL + 9 * NULLIF ( COUNT ( * ), - ( + 66 ) + + COUNT ( * ) ) * + - COUNT ( * ) + - ( + COUNT ( * ) ) - + COUNT ( * ) * + MAX ( ALL 31 ) * - - 47 + - NULLIF ( + + COUNT ( * ), + + 64 ) * - + 92 - - + 80
----
-1295

query I rowsort
SELECT - - 21 + + 1 + - 24 + 81
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - 31 * MAX( - 37 ) AS col1
----
1147

skipif mysql # not compatible
query I rowsort label-5280
SELECT - 31 * MAX ( - 37 ) AS col1
----
1147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT + NULLIF ( - - 50, - MIN( ALL + + 60 ) ) * + 48 * + CASE 5 WHEN - ( - SUM( CAST( + - COALESCE ( - + 38, - - 27, + 62 + - 42 ) AS SIGNED ) ) ) THEN NULL ELSE + - 58 + - COUNT( * ) END
----
-141600

skipif mysql # not compatible
query I rowsort label-5281
SELECT + NULLIF ( - - 50, - MIN ( ALL + + 60 ) ) * + 48 * + CASE 5 WHEN - ( - SUM ( CAST ( + - COALESCE ( - + 38, - - 27, + 62 + - 42 ) AS INTEGER ) ) ) THEN NULL ELSE + - 58 + - COUNT ( * ) END
----
-141600

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL + NULLIF ( + - COUNT( * ), + + 2 + - 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + NULLIF ( + - COUNT ( * ), + + 2 + - 32 ) AS col1
----
-1

query II rowsort
SELECT + 50 AS col0, + ( - 64 ) col2
----
50
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT ALL 58 DIV - + 19 col0
----
-3

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL 58 / - + 19 col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT - CASE COALESCE ( + CASE + COUNT( * ) WHEN + + 40 / - 62 THEN + 14 END, - 54 + - 69 + + 50 + - 72 * - - SUM( 74 ), - 59 ) WHEN + ( + 21 ) THEN NULL WHEN - NULLIF ( + + COUNT( * ), + + 18 ) THEN NULL ELSE + COUNT( * ) * 81 END * + ( + - 96 ) * - - 34 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT - CASE COALESCE ( + CASE + COUNT ( * ) WHEN + + 40 / - 62 THEN + 14 END, - 54 + - 69 + + 50 + - 72 * - - SUM ( 74 ), - 59 ) WHEN + ( + 21 ) THEN NULL WHEN - NULLIF ( + + COUNT ( * ), + + 18 ) THEN NULL ELSE + COUNT ( * ) * 81 END * + ( + - 96 ) * - - 34 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL CASE + 68 WHEN + COUNT( * ) * 98 THEN + COUNT( * ) + + MAX( + 67 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL CASE + 68 WHEN + COUNT ( * ) * 98 THEN + COUNT ( * ) + + MAX ( + 67 ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - 95, + + 49 + - - 56 + 32 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT DISTINCT MAX( 82 ) * 22 AS col2
----
1804

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT MAX ( 82 ) * 22 AS col2
----
1804

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT DISTINCT + 65 DIV COALESCE ( 86, + ( + + 56 ) * 7 - - NULLIF ( + 30, - NULLIF ( + - 79, ( ( - 83 ) ) ) * 48 + - 53 * + 12 ) ) * - - 93
----
0

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT + 65 / COALESCE ( 86, + ( + + 56 ) * 7 - - NULLIF ( + 30, - NULLIF ( + - 79, ( ( - 83 ) ) ) * 48 + - 53 * + 12 ) ) * - - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - NULLIF ( + MAX( ALL + - 14 ), + 26 + + - 89 ) * + 24 AS col2
----
336

skipif mysql # not compatible
query I rowsort label-5290
SELECT - NULLIF ( + MAX ( ALL + - 14 ), + 26 + + - 89 ) * + 24 AS col2
----
336

query I rowsort
SELECT + 34 * + - 10
----
-340

query I rowsort
SELECT ALL 16 + - - 98 col2
----
114

query I rowsort
SELECT - 22 - - + 88 + + - 97 - 90 * + 51
----
-4621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT ALL CASE + AVG ( + 10 ) WHEN + + 3 + + MAX( ALL 64 ) / CAST( NULL AS SIGNED ) THEN - MAX( ALL - 96 ) * - - 62 END + - 2 + + + 59 * - - 24 * - 75 + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL CASE + AVG ( + 10 ) WHEN + + 3 + + MAX ( ALL 64 ) / CAST ( NULL AS INTEGER ) THEN - MAX ( ALL - 96 ) * - - 62 END + - 2 + + + 59 * - - 24 * - 75 + - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5295
SELECT + CAST( + 71 AS SIGNED ) * - 89, + 46 col0
----
-6319
46

skipif mysql # not compatible
query II rowsort label-5295
SELECT + CAST ( + 71 AS INTEGER ) * - 89, + 46 col0
----
-6319
46

query I rowsort
SELECT + 4 * + 41 AS col2
----
164

query II rowsort
SELECT ALL 84 AS col1, - 11 + - + 21 * - + 89 col1
----
84
1858

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT - CASE + 26 WHEN - 61 * - 93 * + 53 THEN + - 95 + SUM( ALL ( 9 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT - CASE + 26 WHEN - 61 * - 93 * + 53 THEN + - 95 + SUM ( ALL ( 9 ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT DISTINCT CAST( NULL AS SIGNED ) / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 81
----
NULL

query I rowsort
SELECT DISTINCT 89 + + + 64 AS col2
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5301
SELECT ALL 63 DIV - 32 + - - 76 + - - 6 + + 36 * + - COUNT( * ) * - + ( - - 81 ) * + 28 + + - 48 - - 69
----
81750

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL 63 / - 32 + - - 76 + - - 6 + + 36 * + - COUNT ( * ) * - + ( - - 81 ) * + 28 + + - 48 - - 69
----
81750

query I rowsort
SELECT ALL + 48 + + 92
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5303
SELECT + - 43 * - - 30 * 98, CAST( 17 AS SIGNED ) AS col0
----
-126420
17

skipif mysql # not compatible
query II rowsort label-5303
SELECT + - 43 * - - 30 * 98, CAST ( 17 AS INTEGER ) AS col0
----
-126420
17

query II rowsort
SELECT 16 col1, + ( - 38 )
----
16
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT - 1 * - + MAX( - - 77 ) + + - 46 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5305
SELECT - 1 * - + MAX ( - - 77 ) + + - 46 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5306
SELECT + 13 / - 62 + - - 37 + + 93 + + + 44 * + - NULLIF ( + + MAX( - 63 ), 56 + - 46 * + 16 ) * + COUNT( * ) * - + 24 + + 70 + + - CASE ( + + ( 15 ) ) WHEN + CAST( + 67 AS DECIMAL ) THEN - COUNT( * ) END + - 41 * + 42 * - ( 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT + 13 / - 62 + - - 37 + + 93 + + + 44 * + - NULLIF ( + + MAX ( - 63 ), 56 + - 46 * + 16 ) * + COUNT ( * ) * - + 24 + + 70 + + - CASE ( + + ( 15 ) ) WHEN + CAST ( + 67 AS REAL ) THEN - COUNT ( * ) END + - 41 * + 42 * - ( 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - 5 * CASE AVG ( ALL + 0 ) WHEN + 69 + - + COUNT( * ) THEN - 67 / ( + - 22 ) WHEN 80 + - + 69 THEN + 93 * + 78 * - COUNT( + ( 50 ) ) + + 43 / + 42 - - AVG ( + 59 ) + + + 77 WHEN - 70 THEN 75 * MIN( ALL 90 ) * + 4 / 3 ELSE CASE 74 WHEN + + 38 - - 44 THEN - 93 * - 52 + - COALESCE ( - COUNT( * ), - CASE 71 WHEN - 85 THEN - 68 * + 95 ELSE COUNT( * ) END ) * + + 69 END END - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT - 5 * CASE AVG ( ALL + 0 ) WHEN + 69 + - + COUNT ( * ) THEN - 67 / ( + - 22 ) WHEN 80 + - + 69 THEN + 93 * + 78 * - COUNT ( + ( 50 ) ) + + 43 / + 42 - - AVG ( + 59 ) + + + 77 WHEN - 70 THEN 75 * MIN ( ALL 90 ) * + 4 / 3 ELSE CASE 74 WHEN + + 38 - - 44 THEN - 93 * - 52 + - COALESCE ( - COUNT ( * ), - CASE 71 WHEN - 85 THEN - 68 * + 95 ELSE COUNT ( * ) END ) * + + 69 END END - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5308
SELECT ALL + 74 col1, CASE + CAST( NULL AS SIGNED ) WHEN - 81 - - + 81 THEN - SUM( ALL - - 8 ) * + COUNT( * ) END / 54
----
74
NULL

skipif mysql # not compatible
query II rowsort label-5308
SELECT ALL + 74 col1, CASE + CAST ( NULL AS INTEGER ) WHEN - 81 - - + 81 THEN - SUM ( ALL - - 8 ) * + COUNT ( * ) END / 54
----
74
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT ALL 9 DIV 42 * 73 - ( - 48 ) + 91 + + 96 - 73
----
162

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL 9 / 42 * 73 - ( - 48 ) + 91 + + 96 - 73
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5310
SELECT + + 16 * 19 * COUNT( * ) * + - CASE + - ( 3 ) WHEN 38 * - ( - + COUNT( * ) ) THEN 46 - + 56 ELSE + 84 END - - COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col2
----
-25535
NULL

skipif mysql # not compatible
query II rowsort label-5310
SELECT + + 16 * 19 * COUNT ( * ) * + - CASE + - ( 3 ) WHEN 38 * - ( - + COUNT ( * ) ) THEN 46 - + 56 ELSE + 84 END - - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
-25535
NULL

query I rowsort
SELECT ALL + 10 * - 29 AS col0
----
-290

query I rowsort
SELECT ALL + + CASE - 86 WHEN - 22 THEN - + 42 ELSE - 51 END AS col0
----
-51

query II rowsort
SELECT ALL + 97 AS col2, + 7 AS col2
----
97
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT + COUNT( * ) * - 35 + - MIN( DISTINCT ( - 21 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5314
SELECT + COUNT ( * ) * - 35 + - MIN ( DISTINCT ( - 21 ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT DISTINCT + + 55, - 3 * + + COUNT( DISTINCT + 34 ) + + 12 * + 35 * + - 75 AS col2
----
55
-31503

skipif mysql # not compatible
query II rowsort label-5315
SELECT DISTINCT + + 55, - 3 * + + COUNT ( DISTINCT + 34 ) + + 12 * + 35 * + - 75 AS col2
----
55
-31503

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5316
SELECT - CAST( NULL AS SIGNED ) / + + 23 AS col2, - 81 AS col2
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-5316
SELECT - CAST ( NULL AS INTEGER ) / + + 23 AS col2, - 81 AS col2
----
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT + ( + NULLIF ( + COUNT( ALL - + 82 ), + - 33 ) ) * ( - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-5317
SELECT + ( + NULLIF ( + COUNT ( ALL - + 82 ), + - 33 ) ) * ( - - 78 )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5318
SELECT COALESCE ( ( 10 ), + 94 * - MAX( + + 59 ) + + 24 + + + 61 * - - 66 DIV - 23, 30 - - - COUNT( * ) + + COUNT( * ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5318
SELECT COALESCE ( ( 10 ), + 94 * - MAX ( + + 59 ) + + 24 + + + 61 * - - 66 / - 23, 30 - - - COUNT ( * ) + + COUNT ( * ) ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT - 64 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT - 64 / + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL - COUNT( * ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - COUNT ( * ) * - 0
----
0

query II rowsort
SELECT - 82 - + 3 AS col0, - 13
----
-85
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL - 42 * SUM( + 17 ) AS col0
----
-714

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - 42 * SUM ( + 17 ) AS col0
----
-714

query I rowsort
SELECT ALL + 79 * 73
----
5767

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT NULLIF ( COUNT( * ), + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-5324
SELECT NULLIF ( COUNT ( * ), + 50 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5325
SELECT - 10 * - 13 AS col0, COALESCE ( 10, + COALESCE ( + - COUNT( * ), + ( + - ( - - 19 ) ) ) )
----
130
10

skipif mysql # not compatible
query II rowsort label-5325
SELECT - 10 * - 13 AS col0, COALESCE ( 10, + COALESCE ( + - COUNT ( * ), + ( + - ( - - 19 ) ) ) )
----
130
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL - 16 * + - COUNT( * ) + - 22 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL - 16 * + - COUNT ( * ) + - 22 AS col0
----
-6

query I rowsort
SELECT - ( + 58 ) + + + 92 AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5328
SELECT MAX( 75 ) AS col0, - ( - 39 ) AS col1
----
75
39

skipif mysql # not compatible
query II rowsort label-5328
SELECT MAX ( 75 ) AS col0, - ( - 39 ) AS col1
----
75
39

query I rowsort
SELECT - 98 + + + 97
----
-1

query I rowsort
SELECT + 4 - - - 58
----
-54

query I rowsort
SELECT DISTINCT + 61 * + 56 AS col1
----
3416

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT ALL + SUM( - 56 ) + + - 58
----
-114

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL + SUM ( - 56 ) + + - 58
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + - 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL MIN( ALL + 19 ) + - + 57
----
-38

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL MIN ( ALL + 19 ) + - + 57
----
-38

query I rowsort
SELECT - 68 + + NULLIF ( + - 94, + 80 - 64 ) AS col1
----
-162

query I rowsort
SELECT DISTINCT + 50 * + 11 * - 81 AS col2
----
-44550

onlyif mysql # DIV for integer division: 
query I rowsort label-5337
SELECT + 88 DIV ( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-5337
SELECT + 88 / ( 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT ( - 67 ) * + CAST( NULL AS SIGNED ) - - + 93 + CASE + 42 WHEN + - 52 THEN + - 64 WHEN - - 78 THEN NULL END - - 51 * - 38 + + 1 + - - AVG ( - 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT ( - 67 ) * + CAST ( NULL AS INTEGER ) - - + 93 + CASE + 42 WHEN + - 52 THEN + - 64 WHEN - - 78 THEN NULL END - - 51 * - 38 + + 1 + - - AVG ( - 64 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT DISTINCT 36 - + MAX( + - 56 ) + 51 + 84 AS col2
----
227

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT 36 - + MAX ( + - 56 ) + 51 + 84 AS col2
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT + MIN( DISTINCT - 76 ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT + MIN ( DISTINCT - 76 ) col1
----
-76

query I rowsort
SELECT 33 * ( - + 24 ) AS col2
----
-792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5342
SELECT ALL 63 DIV NULLIF ( - - 97, - + CASE COUNT( * ) WHEN - COUNT( + - 13 ) THEN - NULLIF ( + + 99, + - 17 + 54 + + 32 ) WHEN - + MAX( - NULLIF ( - 89, + ( - 84 ) + + 38 ) ) + - 42 THEN + 26 + - 62 END * 27 * + 99 ) * 55 * 58 * 67 + - 21, 94 * COUNT( * ) + - 54 AS col1
----
-21
40

skipif mysql # not compatible
query II rowsort label-5342
SELECT ALL 63 / NULLIF ( - - 97, - + CASE COUNT ( * ) WHEN - COUNT ( + - 13 ) THEN - NULLIF ( + + 99, + - 17 + 54 + + 32 ) WHEN - + MAX ( - NULLIF ( - 89, + ( - 84 ) + + 38 ) ) + - 42 THEN + 26 + - 62 END * 27 * + 99 ) * 55 * 58 * 67 + - 21, 94 * COUNT ( * ) + - 54 AS col1
----
-21
40

query I rowsort
SELECT DISTINCT 3 - - 79 + 50
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - + 62 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - + 62 * 12
----
NULL

query I rowsort
SELECT ALL - + 43 col2
----
-43

query I rowsort
SELECT - 18 - + - 9 + - 62 * - + 99 AS col1
----
6129

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + MIN( ALL + - 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5347
SELECT + MIN ( ALL + - 64 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT + 60 * - + 76 + - 41 + MIN( DISTINCT + 3 ) AS col1
----
-4598

skipif mysql # not compatible
query I rowsort label-5348
SELECT + 60 * - + 76 + - 41 + MIN ( DISTINCT + 3 ) AS col1
----
-4598

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL MIN( ALL - 53 ) * - 37
----
1961

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL MIN ( ALL - 53 ) * - 37
----
1961

query I rowsort
SELECT DISTINCT + 37 * + 95 col0
----
3515

onlyif mysql # aggregate syntax: 
query II rowsort label-5351
SELECT ALL - MAX( ALL 31 ) + + 35 AS col2, 13 AS col2
----
4
13

skipif mysql # not compatible
query II rowsort label-5351
SELECT ALL - MAX ( ALL 31 ) + + 35 AS col2, 13 AS col2
----
4
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5352
SELECT CAST( NULL AS SIGNED ) * + - 87 + 76 col2, 73 * - 23 AS col1
----
NULL
-1679

skipif mysql # not compatible
query II rowsort label-5352
SELECT CAST ( NULL AS INTEGER ) * + - 87 + 76 col2, 73 * - 23 AS col1
----
NULL
-1679

query I rowsort
SELECT ALL 47 * - - 45 col0
----
2115

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ( + - 87 ) * + SUM( 2 ) + COUNT( * ) + + 48 * + 63 * - 65
----
-196733

skipif mysql # not compatible
query I rowsort label-5354
SELECT ( + - 87 ) * + SUM ( 2 ) + COUNT ( * ) + + 48 * + 63 * - 65
----
-196733

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT 82 + + - 34 + COUNT( * ) * - 85 * + 50 * - COUNT( * ) AS col1
----
4298

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT 82 + + - 34 + COUNT ( * ) * - 85 * + 50 * - COUNT ( * ) AS col1
----
4298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT ALL 40 + + - CASE + 6 WHEN - + MIN( DISTINCT + ( NULLIF ( - - 55, - + 20 ) ) ) THEN + - 29 WHEN + 26 / - - 43 - 55 THEN NULL ELSE + 12 + - - SUM( DISTINCT - 9 ) END + 65 + + + 14 + - + CAST( NULL AS SIGNED ) * - + 56 / 56 + - 45 + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL 40 + + - CASE + 6 WHEN - + MIN ( DISTINCT + ( NULLIF ( - - 55, - + 20 ) ) ) THEN + - 29 WHEN + 26 / - - 43 - 55 THEN NULL ELSE + 12 + - - SUM ( DISTINCT - 9 ) END + 65 + + + 14 + - + CAST ( NULL AS INTEGER ) * - + 56 / 56 + - 45 + 89
----
NULL

query I rowsort
SELECT 23 + + 66 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT DISTINCT - 11 / + CASE + 12 WHEN - - 33 * - 29 + + + 75 + COUNT( * ) THEN + 82 * - SUM( - - 48 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT - 11 / + CASE + 12 WHEN - - 33 * - 29 + + + 75 + COUNT ( * ) THEN + 82 * - SUM ( - - 48 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 47 + + 83
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT COUNT( * ) + 88 * 81 * - - COUNT( * ) + - 74 AS col2
----
7055

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT COUNT ( * ) + 88 * 81 * - - COUNT ( * ) + - 74 AS col2
----
7055

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT - 75 * - + MIN( ALL 75 ) AS col2
----
5625

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - 75 * - + MIN ( ALL 75 ) AS col2
----
5625

query I rowsort
SELECT ALL + NULLIF ( + 47, 46 ) + + - 10
----
37

query I rowsort
SELECT ALL - 94 * 9
----
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT 32 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT 32 / 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT COUNT( * ) * - + 77 * + 47 AS col2
----
-3619

skipif mysql # not compatible
query I rowsort label-5365
SELECT COUNT ( * ) * - + 77 * + 47 AS col2
----
-3619

query I rowsort
SELECT ALL + 21 - 73 * 2
----
-125

query I rowsort
SELECT 12 - + 15
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT 22 - - ( + COUNT( * ) )
----
23

skipif mysql # not compatible
query I rowsort label-5368
SELECT 22 - - ( + COUNT ( * ) )
----
23

query I rowsort
SELECT 67 * - 68 AS col0
----
-4556

query I rowsort
SELECT ALL 49 * - 52
----
-2548

query I rowsort
SELECT 57 - 22 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT MAX( ALL - 94 ) - 40
----
-134

skipif mysql # not compatible
query I rowsort label-5372
SELECT MAX ( ALL - 94 ) - 40
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-5373
SELECT DISTINCT - 68 DIV 10 col1
----
-6

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - 68 / 10 col1
----
-6

query I rowsort
SELECT ALL - 59 * - 44 AS col2
----
2596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5375
SELECT 82 * CAST( 48 AS SIGNED ) AS col0
----
3936

skipif mysql # not compatible
query I rowsort label-5375
SELECT 82 * CAST ( 48 AS INTEGER ) AS col0
----
3936

query I rowsort
SELECT 53 * 81 AS col0
----
4293

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT + ( - 60 ) DIV ( + 7 + 16 ) + + 78 DIV - 59
----
-3

skipif mysql # not compatible
query I rowsort label-5377
SELECT + ( - 60 ) / ( + 7 + 16 ) + + 78 / - 59
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT SUM( ALL - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5378
SELECT SUM ( ALL - 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ( COUNT( * ) ) + 34 col0
----
35

skipif mysql # not compatible
query I rowsort label-5379
SELECT ( COUNT ( * ) ) + 34 col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5380
SELECT 72 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-5380
SELECT 72 / + 50
----
1

query I rowsort
SELECT DISTINCT - 42 * - 50
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL + 54 * + COUNT( * ) + 69 * + 24
----
1710

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + 54 * + COUNT ( * ) + 69 * + 24
----
1710

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT DISTINCT 82 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT 82 / 47
----
1

query I rowsort
SELECT ALL 41 + 10 * 14
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5385
SELECT COUNT( * ) DIV 13 - - 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5385
SELECT COUNT ( * ) / 13 - - 15 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT MAX( ALL 26 ) + + 98 * 85
----
8356

skipif mysql # not compatible
query I rowsort label-5386
SELECT MAX ( ALL 26 ) + + 98 * 85
----
8356

query I rowsort
SELECT ALL 63 + 9 * 26 AS col2
----
297

query I rowsort
SELECT + 69 - 5 AS col0
----
64

query I rowsort
SELECT ALL 75 * 65
----
4875

query I rowsort
SELECT DISTINCT 92 * 96 AS col0
----
8832

query I rowsort
SELECT 53 * - 44 + + 27 AS col0
----
-2305

query I rowsort
SELECT - 39 * 44
----
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT + - CASE + 31 WHEN 6 * 72 THEN - COUNT( * ) * - 21 + - CAST( CAST( NULL AS SIGNED ) + + 36 AS SIGNED ) WHEN + 3 THEN NULL ELSE NULL END * - COUNT( * ) - ( + COUNT( * ) + + 3 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT + - CASE + 31 WHEN 6 * 72 THEN - COUNT ( * ) * - 21 + - CAST ( CAST ( NULL AS INTEGER ) + + 36 AS INTEGER ) WHEN + 3 THEN NULL ELSE NULL END * - COUNT ( * ) - ( + COUNT ( * ) + + 3 ) * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT ALL - 0 DIV ( ( 28 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - 0 / ( ( 28 ) )
----
0

query I rowsort
SELECT + 79 * + 71 AS col2
----
5609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5396
SELECT + MAX( + 50 ) + COUNT( * ) DIV - 65 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5396
SELECT + MAX ( + 50 ) + COUNT ( * ) / - 65 AS col0
----
50

query I rowsort
SELECT ALL + + 2 * + 44
----
88

query I rowsort
SELECT - + 28 + + 8
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT ALL + COALESCE ( - CAST( 75 AS SIGNED ), - 29 - - 97 ) * 37 AS col1
----
-2775

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + COALESCE ( - CAST ( 75 AS INTEGER ), - 29 - - 97 ) * 37 AS col1
----
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT + + COUNT( * ) * - 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5400
SELECT + + COUNT ( * ) * - 80 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT - ( - ( - COUNT( * ) ) ) * - 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5401
SELECT - ( - ( - COUNT ( * ) ) ) * - 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT - - COUNT( 3 ) * 78
----
78

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT - - COUNT ( 3 ) * 78
----
78

query I rowsort
SELECT DISTINCT - 15 * 55
----
-825

query I rowsort
SELECT ALL - - 22 + + 5 AS col0
----
27

query I rowsort
SELECT - + CASE 73 WHEN 65 * 51 + 96 THEN NULL WHEN 88 + + 44 THEN + 86 WHEN 54 / + 18 THEN 4 + 22 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 20 * + ( 57 ) + + 80 * 33
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT - ( - CASE 30 WHEN MAX( ( 60 ) ) * - 80 THEN NULL ELSE + SUM( ALL + 18 ) END ) * - 99
----
-1782

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT - ( - CASE 30 WHEN MAX ( ( 60 ) ) * - 80 THEN NULL ELSE + SUM ( ALL + 18 ) END ) * - 99
----
-1782

query I rowsort
SELECT ALL 14 * + 17 + 79 * 88 AS col0
----
7190

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL 83 * - 68 + CASE 77 + 26 WHEN 17 THEN 91 * ( ( + 42 ) * 53 ) - + 66 WHEN 5 * MIN( - 71 ) + + NULLIF ( - 24, 45 * + ( + 69 * + 13 ) ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL 83 * - 68 + CASE 77 + 26 WHEN 17 THEN 91 * ( ( + 42 ) * 53 ) - + 66 WHEN 5 * MIN ( - 71 ) + + NULLIF ( - 24, 45 * + ( + 69 * + 13 ) ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT + COUNT( * ) * + - 19 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT + COUNT ( * ) * + - 19 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT 20 / CASE + 9 WHEN - COUNT( * ) THEN 34 WHEN COUNT( * ) THEN NULL END + - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT 20 / CASE + 9 WHEN - COUNT ( * ) THEN 34 WHEN COUNT ( * ) THEN NULL END + - 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - CASE + COUNT( * ) WHEN ( - 10 ) THEN 74 * - 1 + 16 ELSE + 55 END - + 76 col1
----
-131

skipif mysql # not compatible
query I rowsort label-5412
SELECT - CASE + COUNT ( * ) WHEN ( - 10 ) THEN 74 * - 1 + 16 ELSE + 55 END - + 76 col1
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL + ( - 76 ) * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL + ( - 76 ) * COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - 51 * - 23 + ( NULLIF ( - 59, 59 ) + MIN( ALL + 8 ) ) AS col0
----
1122

skipif mysql # not compatible
query I rowsort label-5414
SELECT - 51 * - 23 + ( NULLIF ( - 59, 59 ) + MIN ( ALL + 8 ) ) AS col0
----
1122

query I rowsort
SELECT NULLIF ( + ( 30 ), 77 + + 66 ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5416
SELECT - 93 + + COUNT( * ) DIV 73 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 93 + + COUNT ( * ) / 73 AS col0
----
-93

query I rowsort
SELECT DISTINCT - COALESCE ( 66, - 4 * - 96 ) * 41
----
-2706

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT - 89 * + ( COUNT( * ) ) + - 68 AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-5418
SELECT - 89 * + ( COUNT ( * ) ) + - 68 AS col1
----
-157

query I rowsort
SELECT DISTINCT + ( - + 81 ) AS col0
----
-81

query I rowsort
SELECT ALL + 41 * - + CASE 29 WHEN 24 THEN + 60 * COALESCE ( - 67 * 77, 58, - 30 ) ELSE 18 END - + 34 * 89 AS col2
----
-3764

query I rowsort
SELECT - 57 * - 36
----
2052

query I rowsort
SELECT - 16 * + 37
----
-592

query I rowsort
SELECT CASE + 4 WHEN 12 THEN 63 WHEN 61 THEN 53 WHEN - 29 THEN NULL ELSE ( 76 ) END
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5424
SELECT ALL ( + - 97 ) DIV 31
----
-3

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL ( + - 97 ) / 31
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT - 33 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5425
SELECT - 33 / - 39 AS col1
----
0

query I rowsort
SELECT CASE + 77 WHEN + ( + 91 ) THEN - 58 WHEN 26 + 58 THEN NULL ELSE + 16 END AS col2
----
16

query I rowsort
SELECT + 15 + + - 26
----
-11

query I rowsort
SELECT + 68 * 32 col0
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL + COUNT( * ) * + 94
----
94

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + COUNT ( * ) * + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - + COUNT( DISTINCT + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-5430
SELECT - + COUNT ( DISTINCT + 59 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT - SUM( - 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - SUM ( - 75 ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL CAST( + 98 AS SIGNED ) * COALESCE ( - ( - 30 ), - 59 + 17 ) AS col1
----
2940

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL CAST ( + 98 AS INTEGER ) * COALESCE ( - ( - 30 ), - 59 + 17 ) AS col1
----
2940

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5433
SELECT ALL CASE 19 WHEN ( CAST( NULL AS DECIMAL ) ) THEN COUNT( * ) - 94 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL CASE 19 WHEN ( CAST ( NULL AS REAL ) ) THEN COUNT ( * ) - 94 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT + 70 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT + 70 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5435
SELECT + - COUNT( * ) DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT + - COUNT ( * ) / 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT + MIN( ALL + + 65 ) + - 73 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5436
SELECT + MIN ( ALL + + 65 ) + - 73 AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT ALL 54 + + - CAST( ( + 44 ) AS SIGNED ) * - 15 AS col2
----
714

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL 54 + + - CAST ( ( + 44 ) AS INTEGER ) * - 15 AS col2
----
714

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT + 97 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-5438
SELECT + 97 / + 49
----
1

query I rowsort
SELECT - + 81 - ( 33 )
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT - 29 * + 99 + - 55 DIV 53
----
-2872

skipif mysql # not compatible
query I rowsort label-5440
SELECT - 29 * + 99 + - 55 / 53
----
-2872

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT 99 + + COALESCE ( + 56, MIN( 69 ) ) - 3 * ( - 27 ) AS col1
----
236

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT 99 + + COALESCE ( + 56, MIN ( 69 ) ) - 3 * ( - 27 ) AS col1
----
236

query I rowsort
SELECT - 94 * + 24 col2
----
-2256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5443
SELECT + COUNT( * ) * + - COALESCE ( ( ( - 58 ) ), - 92 + 49 DIV + 64 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5443
SELECT + COUNT ( * ) * + - COALESCE ( ( ( - 58 ) ), - 92 + 49 / + 64 ) AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5444
SELECT + 29 DIV - 24 + + + 72 * 65 AS col2
----
4679

skipif mysql # not compatible
query I rowsort label-5444
SELECT + 29 / - 24 + + + 72 * 65 AS col2
----
4679

query I rowsort
SELECT ALL + ( - + 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT + MIN( + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT + MIN ( + 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL - COUNT( * ) - - ( - 62 ) - 63 * 81 * + 18 AS col2
----
-91917

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - COUNT ( * ) - - ( - 62 ) - 63 * 81 * + 18 AS col2
----
-91917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5448
SELECT DISTINCT - CASE - MAX( + ( 39 ) ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 18 END AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - CASE - MAX ( + ( 39 ) ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 18 END AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT 26 * 77 * COUNT( * )
----
2002

skipif mysql # not compatible
query I rowsort label-5449
SELECT 26 * 77 * COUNT ( * )
----
2002

query I rowsort
SELECT 13 + + 84
----
97

query I rowsort
SELECT 16 * - 64
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT COUNT( ALL 50 ) * - + 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5452
SELECT COUNT ( ALL 50 ) * - + 11 AS col2
----
-11

query I rowsort
SELECT ALL + 62 * 54
----
3348

query I rowsort
SELECT 22 + - 69 AS col0
----
-47

query II rowsort
SELECT ALL - 96 col1, 93 col0
----
-96
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT DISTINCT + MIN( DISTINCT + 10 ) * + CASE COUNT( * ) WHEN + 17 + - NULLIF ( - ( 85 ) + 96, + 93 + 23 ) THEN - 49 * CASE WHEN 59 <> 10 THEN - 75 * + COUNT( * ) END ELSE 5 * + 21 END
----
1050

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT + MIN ( DISTINCT + 10 ) * + CASE COUNT ( * ) WHEN + 17 + - NULLIF ( - ( 85 ) + 96, + 93 + 23 ) THEN - 49 * CASE WHEN 59 <> 10 THEN - 75 * + COUNT ( * ) END ELSE 5 * + 21 END
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT COUNT( * ) * + - 96 * + 24 AS col0
----
-2304

skipif mysql # not compatible
query I rowsort label-5457
SELECT COUNT ( * ) * + - 96 * + 24 AS col0
----
-2304

query II rowsort
SELECT ALL - 12 AS col0, - 27 AS col0
----
-12
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT - COUNT( * ) * + 76 - - 25 + + 56 * - 88
----
-4979

skipif mysql # not compatible
query I rowsort label-5459
SELECT - COUNT ( * ) * + 76 - - 25 + + 56 * - 88
----
-4979

query II rowsort
SELECT DISTINCT - - 14 col2, - 80 + - 15 + 73 AS col2
----
14
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5461
SELECT ALL 19 DIV - COUNT( DISTINCT + 52 ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL 19 / - COUNT ( DISTINCT + 52 ) col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - COUNT( - 26 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5462
SELECT - COUNT ( - 26 ) col0
----
-1

query I rowsort
SELECT 2 * + 18 AS col2
----
36

query I rowsort
SELECT 46 * CASE 86 WHEN 55 THEN 77 / + 25 WHEN + ( - 14 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT 33 + - CASE ( 45 ) WHEN 51 + + 57 * 44 THEN - 41 - COUNT( 76 ) * - 14 ELSE NULL END - - 40 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT 33 + - CASE ( 45 ) WHEN 51 + + 57 * 44 THEN - 41 - COUNT ( 76 ) * - 14 ELSE NULL END - - 40 col2
----
NULL

query I rowsort
SELECT ALL 85 + 8 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - 26 * COUNT( * ) + 49 - + 47 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5467
SELECT - 26 * COUNT ( * ) + 49 - + 47 AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT ALL - CAST( + 49 AS SIGNED ) + - 91
----
-140

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL - CAST ( + 49 AS INTEGER ) + - 91
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5469
SELECT ALL - 65 + - 1 + + 88 + - 3 * COUNT( * ) DIV - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - 65 + - 1 + + 88 + - 3 * COUNT ( * ) / - COUNT ( * )
----
25

query II rowsort
SELECT - + 56 AS col2, 92 AS col1
----
-56
92

query II rowsort
SELECT - 66 AS col1, + 96 * - + 2 col1
----
-66
-192

query I rowsort
SELECT ALL + 91 + - 97
----
-6

query II rowsort
SELECT - - 2 AS col2, + 56
----
2
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL - COUNT( * ) + MIN( 46 ) + 31 * 12
----
417

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - COUNT ( * ) + MIN ( 46 ) + 31 * 12
----
417

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT + SUM( + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5475
SELECT + SUM ( + 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT + 88 + - SUM( DISTINCT + - 51 ) + COUNT( * ) * 2 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT + 88 + - SUM ( DISTINCT + - 51 ) + COUNT ( * ) * 2 AS col2
----
141

query I rowsort
SELECT ALL 87 + 75
----
162

query I rowsort
SELECT 40 + + 26
----
66

query I rowsort
SELECT + 71 * + + 84
----
5964

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT DISTINCT COUNT( * ) - + + 38 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT COUNT ( * ) - + + 38 AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5481
SELECT CAST( NULL AS SIGNED ) * + 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT CAST ( NULL AS INTEGER ) * + 68 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL + COUNT( * ) - 2 * 22 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + COUNT ( * ) - 2 * 22 AS col2
----
-43

query II rowsort
SELECT DISTINCT - 48 * + + 84 AS col2, - 78 + + 30 * 59 col0
----
-4032
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT MAX( ALL - - 10 ) - + COUNT( * ) + + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT MAX ( ALL - - 10 ) - + COUNT ( * ) + + COUNT ( * ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5485
SELECT ALL - COUNT( * ) * - CAST( + 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL - COUNT ( * ) * - CAST ( + 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT 32 + - - 59 * + - MAX( - 22 )
----
1330

skipif mysql # not compatible
query I rowsort label-5486
SELECT 32 + - - 59 * + - MAX ( - 22 )
----
1330

query I rowsort
SELECT ALL 52 * + 25 col2
----
1300

onlyif mysql # aggregate syntax: 
query II rowsort label-5488
SELECT DISTINCT 69 * - 28, + NULLIF ( + 85, 31 + 41 ) - COUNT( * ) AS col1
----
-1932
84

skipif mysql # not compatible
query II rowsort label-5488
SELECT DISTINCT 69 * - 28, + NULLIF ( + 85, 31 + 41 ) - COUNT ( * ) AS col1
----
-1932
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5489
SELECT - 80 * + CAST( NULL AS SIGNED ) + 51 - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT - 80 * + CAST ( NULL AS INTEGER ) + 51 - - 55
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT 16 DIV - + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5490
SELECT 16 / - + 98 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT 51 DIV + + ( - 59 ) * + 10 - 50 * - 68
----
3400

skipif mysql # not compatible
query I rowsort label-5491
SELECT 51 / + + ( - 59 ) * + 10 - 50 * - 68
----
3400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT DISTINCT + ( 90 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT + ( 90 ) * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 84 ) - - - 20 AS col1
----
-104

query I rowsort
SELECT DISTINCT ( + 85 ) * + 36 AS col1
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT 47 + - 79 + + 64 * + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5495
SELECT 47 + - 79 + + 64 * + COUNT ( * ) AS col0
----
32

query I rowsort
SELECT 51 * - 57
----
-2907

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL + 31 + + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + 31 + + COUNT ( * ) AS col0
----
32

query I rowsort
SELECT DISTINCT - 19 + + 6 AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL + 86 + - 97 - + + 34 * + 27 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + 86 + - 97 - + + 34 * + 27 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT + ( - 29 ) DIV - 20
----
1

skipif mysql # not compatible
query I rowsort label-5500
SELECT + ( - 29 ) / - 20
----
1

query I rowsort
SELECT DISTINCT - 84 * + + 34
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL + COUNT( * ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + COUNT ( * ) + - 74
----
-73

query I rowsort
SELECT ALL ( 38 ) + - + 47 - 96 * - 46
----
4407

query I rowsort
SELECT 17 * - + 14 * - ( + 97 ) AS col1
----
23086

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL COALESCE ( + 36, - + 75 * - ( + NULLIF ( 55, 57 / + COUNT( * ) ) ) * 7 + 3, 56 )
----
36

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL COALESCE ( + 36, - + 75 * - ( + NULLIF ( 55, 57 / + COUNT ( * ) ) ) * 7 + 3, 56 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - COUNT( * ) * - 97 * - 18 * 73
----
-127458

skipif mysql # not compatible
query I rowsort label-5506
SELECT - COUNT ( * ) * - 97 * - 18 * 73
----
-127458

query I rowsort
SELECT 96 - - - 36 - - 61 * - 64 col0
----
-3844

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT + 25 * - + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-5508
SELECT + 25 * - + COUNT ( * )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT ALL - + ( - 61 ) DIV + + 15
----
4

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL - + ( - 61 ) / + + 15
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT DISTINCT ( - SUM( ALL - CAST( NULL AS SIGNED ) ) ) * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT ( - SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) * + 74
----
NULL

query I rowsort
SELECT ALL CASE - 15 WHEN 91 + - + 1 THEN - COALESCE ( 41, + 91 * 20 + 59 ) + + 37 WHEN + 50 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 53 * 28
----
1484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5513
SELECT DISTINCT - CASE - 39 WHEN COUNT( CAST( - CAST( 25 AS SIGNED ) AS DECIMAL ) ) THEN NULL ELSE - 94 + - COALESCE ( NULLIF ( COUNT( 21 ), CASE + 89 WHEN 63 + AVG ( ALL + 48 ) * - COALESCE ( + 99, 55 * + 77, CAST( NULL AS SIGNED ) ) THEN 9 END - - ( + 10 ) ), - 62 ) END * 56
----
5320

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - CASE - 39 WHEN COUNT ( CAST ( - CAST ( 25 AS INTEGER ) AS REAL ) ) THEN NULL ELSE - 94 + - COALESCE ( NULLIF ( COUNT ( 21 ), CASE + 89 WHEN 63 + AVG ( ALL + 48 ) * - COALESCE ( + 99, 55 * + 77, CAST ( NULL AS INTEGER ) ) THEN 9 END - - ( + 10 ) ), - 62 ) END * 56
----
5320

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL CASE - + COUNT( * ) WHEN - + 71 THEN ( - - 82 ) * 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL CASE - + COUNT ( * ) WHEN - + 71 THEN ( - - 82 ) * 81 END AS col2
----
NULL

query II rowsort
SELECT - 53 AS col1, + 71
----
-53
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5516
SELECT - MAX( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT - MAX ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT + 5 - - 41 AS col1
----
46

query I rowsort
SELECT - 17 * - 73 AS col1
----
1241

query I rowsort
SELECT + 22 * + 40
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT CASE + + CASE + 2 WHEN + 97 * - 88 + 7 THEN COUNT( * ) ELSE + 35 * - 43 END WHEN - 52 THEN NULL WHEN - 12 * - 77 + + 88 THEN - 77 * + 74 ELSE 92 * - COUNT( * ) + 33 * - 59 END
----
-2039

skipif mysql # not compatible
query I rowsort label-5520
SELECT CASE + + CASE + 2 WHEN + 97 * - 88 + 7 THEN COUNT ( * ) ELSE + 35 * - 43 END WHEN - 52 THEN NULL WHEN - 12 * - 77 + + 88 THEN - 77 * + 74 ELSE 92 * - COUNT ( * ) + 33 * - 59 END
----
-2039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5521
SELECT 8 DIV - - COUNT( * ) + + COALESCE ( + CAST( - - 8 AS SIGNED ), - MAX( 62 ) ) + + CASE 42 WHEN COALESCE ( CAST( 15 AS SIGNED ), - SUM( 55 ) * 76 + ( COUNT( DISTINCT + 38 ) ), COUNT( * ) ) + CAST( NULL AS DECIMAL ) THEN 7 WHEN - COUNT( * ) THEN ( + 57 ) ELSE - 97 END * - COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-5521
SELECT 8 / - - COUNT ( * ) + + COALESCE ( + CAST ( - - 8 AS INTEGER ), - MAX ( 62 ) ) + + CASE 42 WHEN COALESCE ( CAST ( 15 AS INTEGER ), - SUM ( 55 ) * 76 + ( COUNT ( DISTINCT + 38 ) ), COUNT ( * ) ) + CAST ( NULL AS REAL ) THEN 7 WHEN - COUNT ( * ) THEN ( + 57 ) ELSE - 97 END * - COUNT ( * )
----
113

query II rowsort
SELECT DISTINCT + ( + ( 45 ) ), 20 AS col1
----
45
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT DISTINCT 98 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT 98 / 56
----
1

query I rowsort
SELECT CASE - 5 WHEN + 51 THEN NULL ELSE 85 END
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL + COUNT( * ) * + + 30 + - + 41 * - 85 * - 31 + 42 col0
----
-107963

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL + COUNT ( * ) * + + 30 + - + 41 * - 85 * - 31 + 42 col0
----
-107963

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT - 49 * + - COUNT( * ) + 86
----
135

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT - 49 * + - COUNT ( * ) + 86
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT ALL CASE + 83 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - - ( - 20 ) * - COALESCE ( 20 + 76, 72 / - 94, 47 ) THEN 82 * + 28 WHEN + 44 + 11 THEN NULL ELSE NULL END * 30 + - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL CASE + 83 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - ( - 20 ) * - COALESCE ( 20 + 76, 72 / - 94, 47 ) THEN 82 * + 28 WHEN + 44 + 11 THEN NULL ELSE NULL END * 30 + - 36 AS col2
----
NULL

query I rowsort
SELECT + 56 * + 92 AS col1
----
5152

query I rowsort
SELECT ALL + 16 * 56 + 97
----
993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 0 * - 9 + + 9 + 36 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + 10 + - 81 * - ( + 96 ) * - MIN( 49 ) + - 63 AS col2
----
-381077

skipif mysql # not compatible
query I rowsort label-5532
SELECT + 10 + - 81 * - ( + 96 ) * - MIN ( 49 ) + - 63 AS col2
----
-381077

query I rowsort
SELECT - 79 * - + 68
----
5372

query I rowsort
SELECT ALL + 26 * + COALESCE ( + 38, 23, - 10 ) + + 16 + 77 AS col0
----
1081

query I rowsort
SELECT + 23 + - + 39 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL + 98 * 17 * + NULLIF ( 99, + - CASE MIN( DISTINCT - 45 ) WHEN - ( - 24 ) THEN NULL WHEN 99 THEN 80 END ) * - 4
----
-659736

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + 98 * 17 * + NULLIF ( 99, + - CASE MIN ( DISTINCT - 45 ) WHEN - ( - 24 ) THEN NULL WHEN 99 THEN 80 END ) * - 4
----
-659736

query I rowsort
SELECT ALL 51 * + ( - + 66 ) * + + 78 + + - 75 + 59 AS col2
----
-262564

query I rowsort
SELECT DISTINCT + + ( - 96 )
----
-96

query I rowsort
SELECT DISTINCT - 61 * - - 13 + - + CASE - - 55 WHEN + 23 + ( 50 ) THEN ( 78 ) + + 1 WHEN - 58 + 29 THEN AVG ( 75 ) * 35 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT - + ( + - CASE + + 38 WHEN + 35 THEN NULL WHEN - 94 + 74 / 69 THEN - 30 * - SUM( 25 ) ELSE NULL END ) + ( + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT - + ( + - CASE + + 38 WHEN + 35 THEN NULL WHEN - 94 + 74 / 69 THEN - 30 * - SUM ( 25 ) ELSE NULL END ) + ( + 82 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT ALL 59 * + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - MAX( ALL - 95 ) + 20 col1
----
20

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL 59 * + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - MAX ( ALL - 95 ) + 20 col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL + NULLIF ( - - 15, + NULLIF ( + COALESCE ( NULLIF ( COUNT( * ), 61 * + 52 ), ( + 18 ) ), + 63 + + 70 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL + NULLIF ( - - 15, + NULLIF ( + COALESCE ( NULLIF ( COUNT ( * ), 61 * + 52 ), ( + 18 ) ), + 63 + + 70 ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT + COALESCE ( - - 64, 12, + - SUM( DISTINCT - NULLIF ( 53, ( - 71 ) ) ) * + COUNT( * ) ) col1
----
64

skipif mysql # not compatible
query I rowsort label-5543
SELECT + COALESCE ( - - 64, 12, + - SUM ( DISTINCT - NULLIF ( 53, ( - 71 ) ) ) * + COUNT ( * ) ) col1
----
64

query I rowsort
SELECT + - 83 * + + 57 - + 73
----
-4804

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT - SUM( DISTINCT - 73 ) * + + 76
----
5548

skipif mysql # not compatible
query I rowsort label-5545
SELECT - SUM ( DISTINCT - 73 ) * + + 76
----
5548

query I rowsort
SELECT - - 60 * 28 * + 5 + - - ( - - 83 ) + - 57
----
8426

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL MAX( ALL - - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL MAX ( ALL - - 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT + NULLIF ( + - 23, - COUNT( * ) * ( + + 62 ) ) + + 68
----
45

skipif mysql # not compatible
query I rowsort label-5548
SELECT + NULLIF ( + - 23, - COUNT ( * ) * ( + + 62 ) ) + + 68
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - 53 + - COUNT( * ) - + 54 * + ( 37 ) AS col2
----
-2052

skipif mysql # not compatible
query I rowsort label-5549
SELECT - 53 + - COUNT ( * ) - + 54 * + ( 37 ) AS col2
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT - 22 - + + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-5550
SELECT - 22 - + + COUNT ( * )
----
-23

query I rowsort
SELECT ALL - + 71 * + 38 AS col0
----
-2698

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT DISTINCT + 11 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT + 11 / - 64
----
0

query I rowsort
SELECT ALL + 47 - - + 35
----
82

query I rowsort
SELECT DISTINCT - 89 * 48 - + 77 + + - 11 AS col2
----
-4360

query II rowsort
SELECT DISTINCT ( 9 ) AS col1, 45 - - 51 + 52 + - + 13
----
9
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT - 29 + 19 AS col1, - 88 * NULLIF ( 4, + 78 ) * COUNT( * ) AS col1
----
-10
-352

skipif mysql # not compatible
query II rowsort label-5557
SELECT - 29 + 19 AS col1, - 88 * NULLIF ( 4, + 78 ) * COUNT ( * ) AS col1
----
-10
-352

query II rowsort
SELECT 3 AS col1, - 66 * 85 - 72 * + 21 col2
----
3
-7122

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT - 99 * + COUNT( * ) * - - 56
----
-5544

skipif mysql # not compatible
query I rowsort label-5559
SELECT - 99 * + COUNT ( * ) * - - 56
----
-5544

query I rowsort
SELECT - 5 + 41 * - - CASE - ( - + 95 ) WHEN 26 * 33 THEN NULL ELSE 37 END
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT - 17 DIV 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT - 17 / 31 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT - 23 DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT - 23 / - + 95
----
0

query II rowsort
SELECT + 99 * 21, 78 col2
----
2079
78

query I rowsort
SELECT - 11 + + 99
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT + MAX( - + 42 ) + + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-5565
SELECT + MAX ( - + 42 ) + + + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT ALL CAST( - + 79 AS SIGNED ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL CAST ( - + 79 AS INTEGER ) AS col2
----
-79

query I rowsort
SELECT ALL 57 * - 97 AS col1
----
-5529

query I rowsort
SELECT ALL 75 + + - 91
----
-16

query I rowsort
SELECT ALL 51 + + + COALESCE ( 22, + - 64 * - 16, - 83 * - 67 ) * - 40 AS col1
----
-829

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5570
SELECT CAST( + ( + + CASE + 42 WHEN + 14 * + 78 THEN NULL ELSE 33 + 87 * ( 2 * - ( - 16 ) + + CAST( 29 + 13 AS DECIMAL ) ) END ) AS SIGNED ) col0
----
6471

skipif mysql # not compatible
query I rowsort label-5570
SELECT CAST ( + ( + + CASE + 42 WHEN + 14 * + 78 THEN NULL ELSE 33 + 87 * ( 2 * - ( - 16 ) + + CAST ( 29 + 13 AS REAL ) ) END ) AS INTEGER ) col0
----
6471

query I rowsort
SELECT ALL - 40 * + + 10 AS col1
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + MIN( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5572
SELECT + MIN ( 92 ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT ALL 21 DIV + - NULLIF ( 80, 69 ) + - + 85 * - 82 - 15 AS col0
----
6955

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL 21 / + - NULLIF ( 80, 69 ) + - + 85 * - 82 - 15 AS col0
----
6955

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT + MIN( ( - 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-5574
SELECT + MIN ( ( - 56 ) )
----
-56

query II rowsort
SELECT + - 97 AS col0, + 88 + + 94
----
-97
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - COUNT( * ) * 25
----
-25

skipif mysql # not compatible
query I rowsort label-5576
SELECT - COUNT ( * ) * 25
----
-25

query I rowsort
SELECT 33 * 26 + + 37 AS col2
----
895

query II rowsort
SELECT ALL + 87 AS col1, - 41 + + ( 46 )
----
87
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT ALL + 50 DIV 50 + + + 46 + + 68 * + - COUNT( * ) + + - SUM( + 65 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL + 50 / 50 + + + 46 + + 68 * + - COUNT ( * ) + + - SUM ( + 65 ) AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT ALL 65 DIV - 62 + + 95 + 59 * + 14 AS col1
----
920

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL 65 / - 62 + + 95 + 59 * + 14 AS col1
----
920

query II rowsort
SELECT DISTINCT + 49 AS col0, + 82
----
49
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + COUNT( * ) * 59 + + 9
----
68

skipif mysql # not compatible
query I rowsort label-5582
SELECT + COUNT ( * ) * 59 + + 9
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT MAX( - ( - - 52 ) ) * 56 + - 37 AS col2
----
-2949

skipif mysql # not compatible
query I rowsort label-5583
SELECT MAX ( - ( - - 52 ) ) * 56 + - 37 AS col2
----
-2949

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT - MIN( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5584
SELECT - MIN ( + 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT + CAST( NULL AS SIGNED ) / - - ( + + 28 ) + + + AVG ( 75 ) * 4 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT + CAST ( NULL AS INTEGER ) / - - ( + + 28 ) + + + AVG ( 75 ) * 4 * 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5586
SELECT COUNT( * ), - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5586
SELECT COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5587
SELECT + 23 * 90 * - - COUNT( * ) + 0 AS col1, MIN( ALL - 53 ) AS col0
----
2070
-53

skipif mysql # not compatible
query II rowsort label-5587
SELECT + 23 * 90 * - - COUNT ( * ) + 0 AS col1, MIN ( ALL - 53 ) AS col0
----
2070
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT - MAX( 20 ) * - - MAX( 59 ) AS col0
----
-1180

skipif mysql # not compatible
query I rowsort label-5588
SELECT - MAX ( 20 ) * - - MAX ( 59 ) AS col0
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT + - MAX( ALL + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-5589
SELECT + - MAX ( ALL + 90 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT - - 57 + - + ( 34 ) + 78 - - 69 DIV - - 44
----
102

skipif mysql # not compatible
query I rowsort label-5590
SELECT - - 57 + - + ( 34 ) + 78 - - 69 / - - 44
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL + 82 * - + COUNT( * ) * 75 + + + MAX( ALL + 6 ) AS col2
----
-6144

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + 82 * - + COUNT ( * ) * 75 + + + MAX ( ALL + 6 ) AS col2
----
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ( + 74 ) * - ( - SUM( + 16 ) )
----
1184

skipif mysql # not compatible
query I rowsort label-5592
SELECT ( + 74 ) * - ( - SUM ( + 16 ) )
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT - SUM( ALL - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-5593
SELECT - SUM ( ALL - 77 )
----
77

query II rowsort
SELECT ALL 14 AS col1, 2 + ( 89 ) + 12
----
14
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT MAX( - - NULLIF ( - - 86, + + 19 ) )
----
86

skipif mysql # not compatible
query I rowsort label-5595
SELECT MAX ( - - NULLIF ( - - 86, + + 19 ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT MIN( + 25 ) * - 34 * 95
----
-80750

skipif mysql # not compatible
query I rowsort label-5596
SELECT MIN ( + 25 ) * - 34 * 95
----
-80750

query I rowsort
SELECT 32 * - 42 AS col0
----
-1344

query I rowsort
SELECT 45 * + + ( - - 12 )
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT COALESCE ( + 97, COUNT( * ) ) - - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-5599
SELECT COALESCE ( + 97, COUNT ( * ) ) - - + COUNT ( * )
----
98

query I rowsort
SELECT NULLIF ( 1, 45 - - 10 + + 18 ) * - 59 AS col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT ALL 93 + 20 DIV + - NULLIF ( ( - 56 ), + - ( 80 ) ) + + 23 * 78 AS col2
----
1887

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL 93 + 20 / + - NULLIF ( ( - 56 ), + - ( 80 ) ) + + 23 * 78 AS col2
----
1887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5602
SELECT ALL MIN( ALL + ( + ( + - 23 ) ) ) + + + 13 + + COUNT( * ) - + COUNT( * ) + - CASE 16 WHEN 3 * + 28 THEN 41 WHEN - COUNT( 97 ) + + 22 / - 32 THEN NULL WHEN 87 THEN + 21 ELSE CAST( - COUNT( * ) AS SIGNED ) END
----
-9

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL MIN ( ALL + ( + ( + - 23 ) ) ) + + + 13 + + COUNT ( * ) - + COUNT ( * ) + - CASE 16 WHEN 3 * + 28 THEN 41 WHEN - COUNT ( 97 ) + + 22 / - 32 THEN NULL WHEN 87 THEN + 21 ELSE CAST ( - COUNT ( * ) AS INTEGER ) END
----
-9

query I rowsort
SELECT ALL + 99 + COALESCE ( - 81, - 40 ) AS col2
----
18

query II rowsort
SELECT ALL - 44 + + 81 * + - 57, 75 AS col1
----
-4661
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL + 81 + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL + 81 + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT 60 - - - COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5606
SELECT 60 - - - COUNT ( * ) AS col2
----
59

query I rowsort
SELECT ALL + 99 + - 55 * 0 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT 47 * - CASE 48 WHEN - 42 / COUNT( * ) - - 22 THEN - ( 70 ) WHEN + 13 THEN 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT 47 * - CASE 48 WHEN - 42 / COUNT ( * ) - - 22 THEN - ( 70 ) WHEN + 13 THEN 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT 50 + 9 - - MIN( - + ( + + 8 ) ) * - 44 AS col0
----
411

skipif mysql # not compatible
query I rowsort label-5609
SELECT 50 + 9 - - MIN ( - + ( + + 8 ) ) * - 44 AS col0
----
411

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT COUNT( + 44 ) * 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5610
SELECT COUNT ( + 44 ) * 35 AS col2
----
35

query I rowsort
SELECT ALL - COALESCE ( ( + 59 ), + + 90 + - 23 )
----
-59

query II rowsort
SELECT DISTINCT 54 * - - 27, - 82 * - 84 AS col2
----
1458
6888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT ALL - COUNT( * ) - - - CASE - 63 WHEN - 33 + - CAST( + - CASE 50 WHEN 11 * - 48 + ( - 44 ) * 18 THEN NULL WHEN + 22 THEN 86 + MAX( CAST( NULL AS SIGNED ) - ( - 24 ) ) * AVG ( ALL 4 * + 82 ) WHEN - 88 THEN COUNT( * ) * 70 END AS SIGNED ) / - 80 THEN NULL WHEN 21 THEN - 26 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - COUNT ( * ) - - - CASE - 63 WHEN - 33 + - CAST ( + - CASE 50 WHEN 11 * - 48 + ( - 44 ) * 18 THEN NULL WHEN + 22 THEN 86 + MAX ( CAST ( NULL AS INTEGER ) - ( - 24 ) ) * AVG ( ALL 4 * + 82 ) WHEN - 88 THEN COUNT ( * ) * 70 END AS INTEGER ) / - 80 THEN NULL WHEN 21 THEN - 26 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5614
SELECT MAX( + CAST( NULL AS SIGNED ) ) * + COALESCE ( 55, - ( - 90 ) ) + 75 * + SUM( ALL NULLIF ( - 98, + 1 * - 0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) * + COALESCE ( 55, - ( - 90 ) ) + 75 * + SUM ( ALL NULLIF ( - 98, + 1 * - 0 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT ALL - NULLIF ( + + CAST( NULL AS SIGNED ), 72 + + CAST( 85 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - NULLIF ( + + CAST ( NULL AS INTEGER ), 72 + + CAST ( 85 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5616
SELECT DISTINCT + CAST( + MAX( DISTINCT - 6 ) AS SIGNED ) - + 49 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + CAST ( + MAX ( DISTINCT - 6 ) AS INTEGER ) - + 49 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT - COUNT( * ) * 24 + + 44 col2
----
20

skipif mysql # not compatible
query I rowsort label-5617
SELECT - COUNT ( * ) * 24 + + 44 col2
----
20

query II rowsort
SELECT 71 * + + 87 AS col2, 79
----
6177
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5619
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN - - ( + - 3 ) + - ( + 57 ) + 93 + + 22 * 61 THEN + COUNT( * ) + - 43 DIV 36 WHEN 35 THEN NULL ELSE + CASE + 43 WHEN - ( - 88 ) THEN NULL WHEN - COUNT( 0 ) DIV + 74 THEN 62 - - 10 ELSE ( + ( MAX( - 72 ) ) ) * 1 + 41 * + 53 END END * - COUNT( * ) - - 61 AS col0
----
2162

skipif mysql # not compatible
query I rowsort label-5619
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN - - ( + - 3 ) + - ( + 57 ) + 93 + + 22 * 61 THEN + COUNT ( * ) + - 43 / 36 WHEN 35 THEN NULL ELSE + CASE + 43 WHEN - ( - 88 ) THEN NULL WHEN - COUNT ( 0 ) / + 74 THEN 62 - - 10 ELSE ( + ( MAX ( - 72 ) ) ) * 1 + 41 * + 53 END END * - COUNT ( * ) - - 61 AS col0
----
2162

query I rowsort
SELECT 91 * NULLIF ( + 14, + + CASE 74 WHEN - AVG ( + 69 ) + 25 * 61 THEN 95 END ) + - 35
----
1239

query I rowsort
SELECT ALL - ( NULLIF ( 83, - 38 + + - 74 + + 72 * + 60 ) ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT - - 23 * 71 * NULLIF ( - 81, - 5 ) + 48 + 53 + - CAST( 57 AS SIGNED ) AS col1
----
-132229

skipif mysql # not compatible
query I rowsort label-5622
SELECT - - 23 * 71 * NULLIF ( - 81, - 5 ) + 48 + 53 + - CAST ( 57 AS INTEGER ) AS col1
----
-132229

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5623
SELECT 25 DIV - ( + MIN( ALL 58 ) ) * 40, 54 + 75 + 54 * + 87 AS col2
----
0
4827

skipif mysql # not compatible
query II rowsort label-5623
SELECT 25 / - ( + MIN ( ALL 58 ) ) * 40, 54 + 75 + 54 * + 87 AS col2
----
0
4827

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + 8 * COALESCE ( - 67, 10 - + COUNT( * ) ) + + + COUNT( * ) + + - 43 + 48 AS col2
----
-530

skipif mysql # not compatible
query I rowsort label-5624
SELECT + 8 * COALESCE ( - 67, 10 - + COUNT ( * ) ) + + + COUNT ( * ) + + - 43 + 48 AS col2
----
-530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT - COUNT( * ) * CAST( 34 AS SIGNED ) + 74
----
40

skipif mysql # not compatible
query I rowsort label-5625
SELECT - COUNT ( * ) * CAST ( 34 AS INTEGER ) + 74
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT ALL CAST( NULL AS SIGNED ) * + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL CAST ( NULL AS INTEGER ) * + - 87
----
NULL

query I rowsort
SELECT ALL 52 + - + 75
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT COUNT( * ) * + - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT COUNT ( * ) * + - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL + 13 + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + 13 + + COUNT ( * )
----
14

query I rowsort
SELECT CASE + 7 WHEN + 55 THEN - - 34 ELSE NULL END + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL NULLIF ( - COUNT( * ), - - COUNT( * ) + 73 * + ( CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) + + - MIN( 3 ) * - 4 col0
----
11

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL NULLIF ( - COUNT ( * ), - - COUNT ( * ) + 73 * + ( CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) + + - MIN ( 3 ) * - 4 col0
----
11

query I rowsort
SELECT 60 + - 62
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL 98 + - + ( + 1 ) - + + COUNT( * ) + + 4 + - - 40 + - ( - COALESCE ( - 62, 90 * 59 ) ) + + 83 * 94 * + 0
----
78

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL 98 + - + ( + 1 ) - + + COUNT ( * ) + + 4 + - - 40 + - ( - COALESCE ( - 62, 90 * 59 ) ) + + 83 * 94 * + 0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - MIN( - - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-5634
SELECT - MIN ( - - 26 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5635
SELECT 9 AS col1, - 55 + + 85 + - - COALESCE ( 97, + CAST( - - 59 AS SIGNED ) * + 18 - 57 ) + MAX( DISTINCT + 88 + - 73 ) * + 41
----
9
742

skipif mysql # not compatible
query II rowsort label-5635
SELECT 9 AS col1, - 55 + + 85 + - - COALESCE ( 97, + CAST ( - - 59 AS INTEGER ) * + 18 - 57 ) + MAX ( DISTINCT + 88 + - 73 ) * + 41
----
9
742

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT + MAX( - - 51 ) - 22
----
29

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT + MAX ( - - 51 ) - 22
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT 97 * + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT 97 * + COUNT ( * ) AS col2
----
97

query I rowsort
SELECT 60 * 0 * - 49 + - 89 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT ALL 86 * + 85 * COUNT( * ) AS col1, - 0
----
7310
0

skipif mysql # not compatible
query II rowsort label-5639
SELECT ALL 86 * + 85 * COUNT ( * ) AS col1, - 0
----
7310
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5640
SELECT 91 + - ( 77 ) AS col2, - COUNT( * ) col2
----
14
-1

skipif mysql # not compatible
query II rowsort label-5640
SELECT 91 + - ( 77 ) AS col2, - COUNT ( * ) col2
----
14
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + COUNT( DISTINCT + 85 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5641
SELECT + COUNT ( DISTINCT + 85 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT NULLIF ( 20, + 56 + - 56 - 5 + - 18 * - COALESCE ( - ( MIN( ALL + 41 ) ), - ( + 67 ), + COUNT( DISTINCT - 8 ) ) * 42 ) + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5642
SELECT NULLIF ( 20, + 56 + - 56 - 5 + - 18 * - COALESCE ( - ( MIN ( ALL + 41 ) ), - ( + 67 ), + COUNT ( DISTINCT - 8 ) ) * 42 ) + - COUNT ( * )
----
19

query I rowsort
SELECT ALL - ( + - 28 ) AS col1
----
28

query I rowsort
SELECT - NULLIF ( + 37, 92 ) AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5645
SELECT 40 DIV - 88 * - COUNT( * ) + + + 38 DIV + + 80 + + + 3 + - 53 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-5645
SELECT 40 / - 88 * - COUNT ( * ) + + + 38 / + + 80 + + + 3 + - 53 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5646
SELECT + 53 col1, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 7 + + - 61 - - - 51 + + 88 + COUNT( * ) + 91 * + ( - 42 )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-5646
SELECT + 53 col1, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 7 + + - 61 - - - 51 + + 88 + COUNT ( * ) + 91 * + ( - 42 )
----
53
NULL

query I rowsort
SELECT ALL - + ( - + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - + 46 * + COUNT( * ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-5648
SELECT - + 46 * + COUNT ( * ) col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT ALL - + 64 * - - 22 + 48 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - + 64 * - - 22 + 48 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT COALESCE ( + 42, 66 ), + 20 * 86 * - - 48 col0
----
42
82560

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT DISTINCT + COALESCE ( + + 42, 64, + - 60 DIV + + 30 )
----
42

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT + COALESCE ( + + 42, 64, + - 60 / + + 30 )
----
42

query I rowsort
SELECT ALL + ( - 86 ) * + 75
----
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT + 43 * + 63 - + MIN( DISTINCT 37 ) AS col0
----
2672

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT + 43 * + 63 - + MIN ( DISTINCT 37 ) AS col0
----
2672

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT + 61 * - MIN( - - 66 ) + + - COUNT( * ) * - 33
----
-3993

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT + 61 * - MIN ( - - 66 ) + + - COUNT ( * ) * - 33
----
-3993

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT - COALESCE ( + COUNT( * ), - 55 * 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5655
SELECT - COALESCE ( + COUNT ( * ), - 55 * 7 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT - - 5 * + 62 * - - CAST( - - 63 AS SIGNED )
----
19530

skipif mysql # not compatible
query I rowsort label-5656
SELECT - - 5 * + 62 * - - CAST ( - - 63 AS INTEGER )
----
19530

query I rowsort
SELECT - 70 * + 94
----
-6580

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL 58 + 0 + - + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL 58 + 0 + - + COUNT ( * )
----
57

query I rowsort
SELECT ALL COALESCE ( - 61, + - 87 )
----
-61

query I rowsort
SELECT ALL 34 + + - 74 AS col0
----
-40

query II rowsort
SELECT ALL 52 * + - 27 AS col2, + 81 AS col0
----
-1404
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5662
SELECT - CASE + 99 WHEN + 85 * 39 + 40 * + CAST( 16 AS SIGNED ) THEN - 82 ELSE 36 + + CASE 11 - 77 WHEN + COALESCE ( CAST( NULL AS SIGNED ), + ( + 46 ) ) * + 38 + + MIN( DISTINCT 56 ) THEN 97 WHEN + 95 * - 40 THEN NULL ELSE + 63 - 58 END END col0
----
-41

skipif mysql # not compatible
query I rowsort label-5662
SELECT - CASE + 99 WHEN + 85 * 39 + 40 * + CAST ( 16 AS INTEGER ) THEN - 82 ELSE 36 + + CASE 11 - 77 WHEN + COALESCE ( CAST ( NULL AS INTEGER ), + ( + 46 ) ) * + 38 + + MIN ( DISTINCT 56 ) THEN 97 WHEN + 95 * - 40 THEN NULL ELSE + 63 - 58 END END col0
----
-41

query I rowsort
SELECT ALL 98 + - + 45 * + - 26
----
1268

query I rowsort
SELECT + 10 * 41
----
410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5665
SELECT ALL 92 * 43 * + 39 * CAST( NULL AS SIGNED ) * - ( 37 ) / - - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL 92 * 43 * + 39 * CAST ( NULL AS INTEGER ) * - ( 37 ) / - - 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5666
SELECT - MIN( DISTINCT + + 87 ) col0, - 42
----
-87
-42

skipif mysql # not compatible
query II rowsort label-5666
SELECT - MIN ( DISTINCT + + 87 ) col0, - 42
----
-87
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + 57 + SUM( DISTINCT - - 25 )
----
82

skipif mysql # not compatible
query I rowsort label-5667
SELECT + 57 + SUM ( DISTINCT - - 25 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL - ( - - 7 ) - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - ( - - 7 ) - COUNT ( * )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5669
SELECT + 74 * - 56 AS col1, CASE + ( + + COUNT( * ) ) WHEN + - 58 * 92 THEN - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN NULL END * 18 AS col2
----
-4144
NULL

skipif mysql # not compatible
query II rowsort label-5669
SELECT + 74 * - 56 AS col1, CASE + ( + + COUNT ( * ) ) WHEN + - 58 * 92 THEN - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL END * 18 AS col2
----
-4144
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL COUNT( * ) - - 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL COUNT ( * ) - - 30 AS col0
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-5671
SELECT ALL 56 * - 28 AS col1, 94 + - + 41 DIV 12 + 14
----
-1568
105

skipif mysql # not compatible
query II rowsort label-5671
SELECT ALL 56 * - 28 AS col1, 94 + - + 41 / 12 + 14
----
-1568
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5672
SELECT + - COUNT( * ) * CAST( + + 78 AS SIGNED ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5672
SELECT + - COUNT ( * ) * CAST ( + + 78 AS INTEGER ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL - COUNT( + - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL - COUNT ( + - 53 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT CASE + + 64 WHEN + - COALESCE ( - - 91, + 24, 25 * - 4 ) THEN + 6 ELSE 52 DIV + 78 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5674
SELECT CASE + + 64 WHEN + - COALESCE ( - - 91, + 24, 25 * - 4 ) THEN + 6 ELSE 52 / + 78 END AS col2
----
0

query I rowsort
SELECT ALL 20 * - + 42 - ( 80 ) AS col0
----
-920

query I rowsort
SELECT - + 84 - - 83
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT ALL - 72 DIV - ( + 75 ) + - 78 * 39 * - - 88
----
-267696

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - 72 / - ( + 75 ) + - 78 * 39 * - - 88
----
-267696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5678
SELECT CAST( NULL AS SIGNED ) / 64 + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT CAST ( NULL AS INTEGER ) / 64 + + 74
----
NULL

query I rowsort
SELECT + + 42 * 32 - + - 92
----
1436

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT 73 * + - 0 * - - COUNT( * ) * + MIN( DISTINCT 44 ) + + 71 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5680
SELECT 73 * + - 0 * - - COUNT ( * ) * + MIN ( DISTINCT 44 ) + + 71 AS col2
----
71

query I rowsort
SELECT ALL + 28 * 62 + + 45
----
1781

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT DISTINCT + MAX( ALL - - 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT + MAX ( ALL - - 15 ) AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT - COUNT( * ) * - - 55 * - COUNT( * ) + 74 * CAST( 69 AS SIGNED ) * + + CAST( NULL AS SIGNED ) + + COUNT( * ) * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT - COUNT ( * ) * - - 55 * - COUNT ( * ) + 74 * CAST ( 69 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL 50 * - 70 * + COUNT( * ) + - 9 + 96 + + 5 + + 91
----
-3317

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL 50 * - 70 * + COUNT ( * ) + - 9 + 96 + + 5 + + 91
----
-3317

query I rowsort
SELECT DISTINCT - 58 * - 37 AS col0
----
2146

query I rowsort
SELECT NULLIF ( - + 81, - COALESCE ( + 15, + COALESCE ( + + 36, - + 4 * + 5 ) ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT - 40 + - + MIN( DISTINCT 86 ) AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-5687
SELECT - 40 + - + MIN ( DISTINCT 86 ) AS col0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL - 12 * - 93 * - - COUNT( * ) + - 93 + + ( 8 ) * + + COUNT( * ) AS col0
----
1031

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - 12 * - 93 * - - COUNT ( * ) + - 93 + + ( 8 ) * + + COUNT ( * ) AS col0
----
1031

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT DISTINCT - 95 * + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT - 95 * + - COUNT ( * )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT ALL CAST( + - ( - 96 ) AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL CAST ( + - ( - 96 ) AS INTEGER )
----
96

query I rowsort
SELECT - 81 * - + 73
----
5913

query I rowsort
SELECT + 87 * + 96
----
8352

query I rowsort
SELECT DISTINCT - 95 * - + 31 AS col2
----
2945

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT SUM( ALL COALESCE ( - 77, 14 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-5694
SELECT SUM ( ALL COALESCE ( - 77, 14 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - CASE COUNT( * ) WHEN + - 92 THEN NULL ELSE + - 54 END
----
54

skipif mysql # not compatible
query I rowsort label-5695
SELECT - CASE COUNT ( * ) WHEN + - 92 THEN NULL ELSE + - 54 END
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT ALL - 51 DIV + 86 * 17 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - 51 / + 86 * 17 * - - COUNT ( * )
----
0

query II rowsort
SELECT + ( 7 ) * - - 33, 42 * - - 24 AS col0
----
231
1008

query I rowsort
SELECT + - 81 + - 24 + + 60 * + 73 AS col1
----
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT - 51 * - COUNT( * ) * + 33 AS col1
----
1683

skipif mysql # not compatible
query I rowsort label-5699
SELECT - 51 * - COUNT ( * ) * + 33 AS col1
----
1683

query II rowsort
SELECT - - 20, + 0 + 57 + - + 1 AS col2
----
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT - 60 + - 76 * + 2 + - 84 + - + MIN( ALL 96 ) + - 73
----
-465

skipif mysql # not compatible
query I rowsort label-5701
SELECT - 60 + - 76 * + 2 + - 84 + - + MIN ( ALL 96 ) + - 73
----
-465

query II rowsort
SELECT + 81, + 88 AS col2
----
81
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT - 74 + - COUNT( * ) + + ( + 76 ) DIV - - 75 + 12 + - 12 * - COUNT( * ) + - 17 * 73
----
-1291

skipif mysql # not compatible
query I rowsort label-5703
SELECT - 74 + - COUNT ( * ) + + ( + 76 ) / - - 75 + 12 + - 12 * - COUNT ( * ) + - 17 * 73
----
-1291

query I rowsort
SELECT DISTINCT - 68 * + + 80 * 97
----
-527680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5705
SELECT DISTINCT + - MAX( DISTINCT + 8 ) * + ( + 95 ) * NULLIF ( - 34, 28 ) + 0 DIV + 17
----
25840

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT + - MAX ( DISTINCT + 8 ) * + ( + 95 ) * NULLIF ( - 34, 28 ) + 0 / + 17
----
25840

query I rowsort
SELECT ALL - ( + 66 ) + + 50
----
-16

query I rowsort
SELECT DISTINCT 75 + - - 39
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5708
SELECT CAST( 67 AS SIGNED ) * ( 52 ) * - COUNT( * ) col0
----
-3484

skipif mysql # not compatible
query I rowsort label-5708
SELECT CAST ( 67 AS INTEGER ) * ( 52 ) * - COUNT ( * ) col0
----
-3484

query I rowsort
SELECT - 24 + + - 24
----
-48

query I rowsort
SELECT ALL 93 + 81 + - 79 col2
----
95

query II rowsort
SELECT ALL - + 98 AS col2, 45
----
-98
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT + NULLIF ( + COUNT( * ), 1 ), 72 + + 3 AS col0
----
NULL
75

skipif mysql # not compatible
query II rowsort label-5712
SELECT + NULLIF ( + COUNT ( * ), 1 ), 72 + + 3 AS col0
----
NULL
75

query I rowsort
SELECT 69 + - 30 + - 79 - - 31 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT ALL 20 + 94 + NULLIF ( + 30, + + COUNT( * ) * COUNT( * ) - 8 + - 8 ) AS col1, - 11 * 30 + - 85
----
144
-415

skipif mysql # not compatible
query II rowsort label-5714
SELECT ALL 20 + 94 + NULLIF ( + 30, + + COUNT ( * ) * COUNT ( * ) - 8 + - 8 ) AS col1, - 11 * 30 + - 85
----
144
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - 90 * - COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5715
SELECT - 90 * - COUNT ( * ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT COUNT( * ) * - 15 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5716
SELECT COUNT ( * ) * - 15 AS col2
----
-15

query I rowsort
SELECT DISTINCT - ( + - ( + 40 ) ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT 60 DIV + 18 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5718
SELECT 60 / + 18 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT COUNT( * ) * + 96
----
96

skipif mysql # not compatible
query I rowsort label-5719
SELECT COUNT ( * ) * + 96
----
96

query I rowsort
SELECT 41 - 3 AS col2
----
38

query II rowsort
SELECT 80 * + 20 AS col2, 63 + - + 50
----
1600
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5722
SELECT ALL - COUNT( * ) AS col2, 89 AS col2
----
-1
89

skipif mysql # not compatible
query II rowsort label-5722
SELECT ALL - COUNT ( * ) AS col2, 89 AS col2
----
-1
89

query II rowsort
SELECT + 55 AS col1, - 7 AS col0
----
55
-7

query II rowsort
SELECT 98, - 49 AS col2
----
98
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT 76 DIV + 68
----
1

skipif mysql # not compatible
query I rowsort label-5725
SELECT 76 / + 68
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT DISTINCT + COUNT( * ) * 52 AS col2, + MAX( ALL - 19 ) AS col1
----
52
-19

skipif mysql # not compatible
query II rowsort label-5726
SELECT DISTINCT + COUNT ( * ) * 52 AS col2, + MAX ( ALL - 19 ) AS col1
----
52
-19

query I rowsort
SELECT ALL - 46 * 56 AS col1
----
-2576

query I rowsort
SELECT 11 * + + 31 AS col2
----
341

query I rowsort
SELECT ALL - 88 * - 86
----
7568

onlyif mysql # aggregate syntax: 
query II rowsort label-5730
SELECT - COUNT( * ) + + 24 AS col1, - 73 AS col1
----
23
-73

skipif mysql # not compatible
query II rowsort label-5730
SELECT - COUNT ( * ) + + 24 AS col1, - 73 AS col1
----
23
-73

query I rowsort
SELECT - - COALESCE ( + ( - + 87 ), + 77 * 21 + - - ( + 66 ), - 39 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT - MIN( DISTINCT + - ( + CASE - + 89 WHEN - 97 THEN NULL ELSE 65 END ) ) + - 23
----
42

skipif mysql # not compatible
query I rowsort label-5732
SELECT - MIN ( DISTINCT + - ( + CASE - + 89 WHEN - 97 THEN NULL ELSE 65 END ) ) + - 23
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT + 72 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-5733
SELECT + 72 / 55
----
1

query I rowsort
SELECT ALL - 28 + - 31 AS col0
----
-59

query I rowsort
SELECT ALL 25 + + + 95 AS col1
----
120

query I rowsort
SELECT DISTINCT - ( + 78 ) + 42 + + + ( 97 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT 91 * 82 * + SUM( DISTINCT 77 ) + + + 92 + - ( SUM( ALL - + 54 ) ) + - 16 * 4 col2
----
574656

skipif mysql # not compatible
query I rowsort label-5737
SELECT 91 * 82 * + SUM ( DISTINCT 77 ) + + + 92 + - ( SUM ( ALL - + 54 ) ) + - 16 * 4 col2
----
574656

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT + 12 + - 38 + COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5738
SELECT + 12 + - 38 + COUNT ( * ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5739
SELECT 24 AS col2, - 44 * MAX( + 65 ) AS col2
----
24
-2860

skipif mysql # not compatible
query II rowsort label-5739
SELECT 24 AS col2, - 44 * MAX ( + 65 ) AS col2
----
24
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT - 65 * SUM( - 93 ) + - + COUNT( * ) * - COUNT( * )
----
6046

skipif mysql # not compatible
query I rowsort label-5740
SELECT - 65 * SUM ( - 93 ) + - + COUNT ( * ) * - COUNT ( * )
----
6046

query I rowsort
SELECT ALL + 12 * - 69 * + 22 + - COALESCE ( + - 31, - + ( 13 ) + + - 94 ) * 29 + + 59 * 25 AS col1
----
-15842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5742
SELECT CAST( NULL AS SIGNED ) * - MIN( - 23 ) * - 19 + - + 53 * - NULLIF ( + 27, + - ( - 73 ) ) * - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT CAST ( NULL AS INTEGER ) * - MIN ( - 23 ) * - 19 + - + 53 * - NULLIF ( + 27, + - ( - 73 ) ) * - 99 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT DISTINCT + 84 DIV 25 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT + 84 / 25 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5744
SELECT ALL + 70 * ( + CAST( - 54 AS SIGNED ) ) + - + 34 - + + 42 DIV - 97 * + + 64
----
-3814

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL + 70 * ( + CAST ( - 54 AS INTEGER ) ) + - + 34 - + + 42 / - 97 * + + 64
----
-3814

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5745
SELECT + 79 AS col2, CAST( NULL AS SIGNED ) AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-5745
SELECT + 79 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
79
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5746
SELECT - - 5 DIV ( 59 ) - - 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5746
SELECT - - 5 / ( 59 ) - - 74 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT 40 - + MAX( DISTINCT ( - - COALESCE ( - 51, 5 ) ) ) col0
----
91

skipif mysql # not compatible
query I rowsort label-5747
SELECT 40 - + MAX ( DISTINCT ( - - COALESCE ( - 51, 5 ) ) ) col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT COUNT( ALL + 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5748
SELECT COUNT ( ALL + 36 ) AS col1
----
1

query I rowsort
SELECT 41 + + - ( - + 4 )
----
45

query I rowsort
SELECT ( - + 98 ) + 49 AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5751
SELECT CAST( - 0 AS SIGNED ) / - 18 + CASE - 33 WHEN + - COUNT( * ) - 70 THEN NULL WHEN - 73 THEN COALESCE ( - + 96, + - 88 + + 56 + COUNT( * ) * 38, + ( 88 ) * COALESCE ( 4 * COUNT( * ), - 93, + 36 * 83 ) ) + 13 END - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT CAST ( - 0 AS INTEGER ) / - 18 + CASE - 33 WHEN + - COUNT ( * ) - 70 THEN NULL WHEN - 73 THEN COALESCE ( - + 96, + - 88 + + 56 + COUNT ( * ) * 38, + ( 88 ) * COALESCE ( 4 * COUNT ( * ), - 93, + 36 * 83 ) ) + 13 END - + 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5752
SELECT ALL 69 - - - 90 + - CASE - COUNT( * ) WHEN + 12 THEN NULL WHEN + 42 THEN 88 END + + 49 * 6 - 49 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL 69 - - - 90 + - CASE - COUNT ( * ) WHEN + 12 THEN NULL WHEN + 42 THEN 88 END + + 49 * 6 - 49 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT SUM( + 39 ) * + 69
----
2691

skipif mysql # not compatible
query I rowsort label-5753
SELECT SUM ( + 39 ) * + 69
----
2691

query I rowsort
SELECT 59 * - 25 + 65 AS col0
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT CASE + ( - COALESCE ( + 11, 65, + + COUNT( * ) * - 57 ) ) WHEN + 49 THEN 52 WHEN + COUNT( * ) * + + 3 THEN - 78 + 99 END * + CASE 33 WHEN + 38 * + 40 THEN + 86 * - 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT CASE + ( - COALESCE ( + 11, 65, + + COUNT ( * ) * - 57 ) ) WHEN + 49 THEN 52 WHEN + COUNT ( * ) * + + 3 THEN - 78 + 99 END * + CASE 33 WHEN + 38 * + 40 THEN + 86 * - 81 END AS col1
----
NULL

query I rowsort
SELECT ( + 78 ) + - 1 + + 51 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT MAX( + 58 ) * 39 * - 81 col2
----
-183222

skipif mysql # not compatible
query I rowsort label-5757
SELECT MAX ( + 58 ) * 39 * - 81 col2
----
-183222

query I rowsort
SELECT DISTINCT 68 * + 72
----
4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5759
SELECT 14 + + - 42 + + + 61 * 84 - - 27 AS col2, - 25 * - 76 DIV - COUNT( * ) AS col2
----
5123
-1900

skipif mysql # not compatible
query II rowsort label-5759
SELECT 14 + + - 42 + + + 61 * 84 - - 27 AS col2, - 25 * - 76 / - COUNT ( * ) AS col2
----
5123
-1900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5760
SELECT ALL 62 + - + COUNT( * ) + - + CAST( NULL AS DECIMAL ) * - 27 + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL 62 + - + COUNT ( * ) + - + CAST ( NULL AS REAL ) * - 27 + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT DISTINCT 32 * + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT 32 * + COUNT ( * )
----
32

query I rowsort
SELECT DISTINCT 12 + + 99 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT - - 68 + - - 22 + + ( COUNT( * ) ) * + COALESCE ( - 61, + 40 + - - 35 * 61, + - 17 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT - - 68 + - - 22 + + ( COUNT ( * ) ) * + COALESCE ( - 61, + 40 + - - 35 * 61, + - 17 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT ALL - + 18 + - 16 + - 25 * - 92 + - - 4 * - 41 * COUNT( * ) AS col0
----
2102

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - + 18 + - 16 + - 25 * - 92 + - - 4 * - 41 * COUNT ( * ) AS col0
----
2102

query I rowsort
SELECT ALL + + 55 + + 35 * - + 99
----
-3410

query I rowsort
SELECT - 83 * - 26
----
2158

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL SUM( ALL ( - 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL SUM ( ALL ( - 2 ) )
----
-2

query I rowsort
SELECT - 97 * 92
----
-8924

onlyif mysql # aggregate syntax: 
query II rowsort label-5769
SELECT ALL + + 26 + + SUM( DISTINCT + ( + 47 ) ) + + COUNT( * ), 58 + + 11 col0
----
74
69

skipif mysql # not compatible
query II rowsort label-5769
SELECT ALL + + 26 + + SUM ( DISTINCT + ( + 47 ) ) + + COUNT ( * ), 58 + + 11 col0
----
74
69

query I rowsort
SELECT - - 35 + - - 92 AS col1
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT DISTINCT + + 84 - + 68 + ( - - 81 ) + + 94 DIV - 85 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + + 84 - + 68 + ( - - 81 ) + + 94 / - 85 AS col0
----
96

query I rowsort
SELECT - ( 38 ) * + 30 + 17 AS col1
----
-1123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5773
SELECT - - 95 + - + 78 AS col0, - 67 + - ( - 70 ) + + + ( + 28 ) * + NULLIF ( + MIN( ALL + + 74 ), COUNT( * ) ) * + 36 * + 66 + MIN( ALL 50 - + 23 ) + + CASE WHEN ( - 24 ) BETWEEN - 82 * + 38 + - AVG ( ALL - 91 ) AND 18 * 49 THEN + 0 WHEN ( NULL ) NOT BETWEEN ( 87 ) AND NULL THEN NULL WHEN NOT - MAX( ALL 20 ) + 6 * - 36 NOT BETWEEN 3 AND 1 - ( - COUNT( * ) ) / CAST( 9 AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
17
4923102

skipif mysql # not compatible
query II rowsort label-5773
SELECT - - 95 + - + 78 AS col0, - 67 + - ( - 70 ) + + + ( + 28 ) * + NULLIF ( + MIN ( ALL + + 74 ), COUNT ( * ) ) * + 36 * + 66 + MIN ( ALL 50 - + 23 ) + + CASE WHEN ( - 24 ) BETWEEN - 82 * + 38 + - AVG ( ALL - 91 ) AND 18 * 49 THEN + 0 WHEN ( NULL ) NOT BETWEEN ( 87 ) AND NULL THEN NULL WHEN NOT - MAX ( ALL 20 ) + 6 * - 36 NOT BETWEEN 3 AND 1 - ( - COUNT ( * ) ) / CAST ( 9 AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
17
4923102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5774
SELECT + ( CAST( NULL AS SIGNED ) ) + NULLIF ( COUNT( - - 85 ), + 10 ) + + - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT + ( CAST ( NULL AS INTEGER ) ) + NULLIF ( COUNT ( - - 85 ), + 10 ) + + - 32 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5775
SELECT ALL + 54 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL + 54 / - + 83
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT + COALESCE ( 5, 1 + - - COUNT( * ) DIV COUNT( * ) * 49 * - + 84 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT + COALESCE ( 5, 1 + - - COUNT ( * ) / COUNT ( * ) * 49 * - + 84 ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT ALL + ( + + 72 ) DIV 81 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL + ( + + 72 ) / 81 / 80
----
0

query I rowsort
SELECT ALL 28 * + + 85
----
2380

query II rowsort
SELECT DISTINCT + 37 AS col2, - 88 AS col1
----
37
-88

query I rowsort
SELECT DISTINCT - 36 * - 40 AS col2
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5781
SELECT - MAX( - 74 ) * - 80 + - ( - MAX( ALL + 29 ) ) DIV - + 98
----
-5920

skipif mysql # not compatible
query I rowsort label-5781
SELECT - MAX ( - 74 ) * - 80 + - ( - MAX ( ALL + 29 ) ) / - + 98
----
-5920

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT COALESCE ( - 38, 25, - + 30 * - 92 DIV 37 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-5782
SELECT COALESCE ( - 38, 25, - + 30 * - 92 / 37 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT DISTINCT 5 * - + COUNT( * ) * + - 44 + - + 16
----
204

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT 5 * - + COUNT ( * ) * + - 44 + - + 16
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ( + 73 ) * - 31 - COUNT( * ) AS col1
----
-2264

skipif mysql # not compatible
query I rowsort label-5784
SELECT ( + 73 ) * - 31 - COUNT ( * ) AS col1
----
-2264

query I rowsort
SELECT CASE + - 91 WHEN - 27 / + 47 THEN NULL WHEN - 55 THEN AVG ( ALL - 48 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5786
SELECT + 56 * + SUM( ALL - 18 ) / - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT + 56 * + SUM ( ALL - 18 ) / - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT COALESCE ( + 94, + CASE - 25 WHEN + COUNT( + - 69 ) + + SUM( ( 60 ) ) + - 61 * COUNT( * ) + + 20 + + COALESCE ( 52, - 55 + + 36, + 19 + 51 ) + + 72 / 88 * 76 THEN NULL WHEN + MIN( DISTINCT 62 ) THEN 8 WHEN - 18 / - 90 + 78 THEN 84 ELSE NULL END ) * - 33 + + ( 0 ) AS col2
----
-3102

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT COALESCE ( + 94, + CASE - 25 WHEN + COUNT ( + - 69 ) + + SUM ( ( 60 ) ) + - 61 * COUNT ( * ) + + 20 + + COALESCE ( 52, - 55 + + 36, + 19 + 51 ) + + 72 / 88 * 76 THEN NULL WHEN + MIN ( DISTINCT 62 ) THEN 8 WHEN - 18 / - 90 + 78 THEN 84 ELSE NULL END ) * - 33 + + ( 0 ) AS col2
----
-3102

query I rowsort
SELECT CASE 45 WHEN 23 THEN COALESCE ( - 34, 98 * - 93 ) END
----
NULL

query I rowsort
SELECT + 45 * + 20 AS col2
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5790
SELECT DISTINCT - MAX( + 50 ) * - - CAST( 35 AS SIGNED ) + - 26 + - + 65 * - COUNT( * )
----
-1711

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT - MAX ( + 50 ) * - - CAST ( 35 AS INTEGER ) + - 26 + - + 65 * - COUNT ( * )
----
-1711

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT + MIN( + 55 ) - + 18 - 5 * - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5791
SELECT + MIN ( + 55 ) - + 18 - 5 * - - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5792
SELECT DISTINCT COUNT( * ) * - 9 - + - COUNT( * ) * - + 2 DIV - - 44 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT COUNT ( * ) * - 9 - + - COUNT ( * ) * - + 2 / - - 44 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT + + MAX( DISTINCT 29 ) * - 26 * - - ( - 86 )
----
64844

skipif mysql # not compatible
query I rowsort label-5793
SELECT + + MAX ( DISTINCT 29 ) * - 26 * - - ( - 86 )
----
64844

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL 60 * 90 * + MAX( ALL - 61 ) + - 71
----
-329471

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL 60 * 90 * + MAX ( ALL - 61 ) + - 71
----
-329471

query I rowsort
SELECT ALL - 87 + - 26 AS col2
----
-113

query I rowsort
SELECT CASE + 2 WHEN 46 THEN 96 - + + 91 END col2
----
NULL

query I rowsort
SELECT + - 6 + 81 + + 70
----
145

query I rowsort
SELECT DISTINCT - 43 * + - 51 + - - 89
----
2282

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT - + 61 / + CASE 20 WHEN - 69 + ( - MAX( DISTINCT - NULLIF ( + 68, 35 ) ) ) * - 2 + + 23 THEN NULL WHEN + 1 THEN - 17 * + 6 + + 25 * MIN( DISTINCT + 95 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT - + 61 / + CASE 20 WHEN - 69 + ( - MAX ( DISTINCT - NULLIF ( + 68, 35 ) ) ) * - 2 + + 23 THEN NULL WHEN + 1 THEN - 17 * + 6 + + 25 * MIN ( DISTINCT + 95 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT DISTINCT - MIN( DISTINCT - 9 ) col1
----
9

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT - MIN ( DISTINCT - 9 ) col1
----
9

query I rowsort
SELECT - ( + - NULLIF ( - 84, 38 + + 75 * 37 - + 29 + + - 16 ) )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5802
SELECT - CAST( 66 AS SIGNED ) + + ( + 62 ) AS col1, + 43 AS col2
----
-4
43

skipif mysql # not compatible
query II rowsort label-5802
SELECT - CAST ( 66 AS INTEGER ) + + ( + 62 ) AS col1, + 43 AS col2
----
-4
43

query I rowsort
SELECT ALL NULLIF ( - - 80, - 42 ) AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5804
SELECT - COUNT( * ) AS col0, CAST( + 66 AS SIGNED )
----
-1
66

skipif mysql # not compatible
query II rowsort label-5804
SELECT - COUNT ( * ) AS col0, CAST ( + 66 AS INTEGER )
----
-1
66

query I rowsort
SELECT - - 91 + 0 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - + ( - - MAX( 53 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5806
SELECT - + ( - - MAX ( 53 ) ) AS col1
----
-53

query II rowsort
SELECT ALL 86, - 86 + + 17 AS col1
----
86
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT - ( SUM( DISTINCT 45 ) ) * + 44 AS col0
----
-1980

skipif mysql # not compatible
query I rowsort label-5808
SELECT - ( SUM ( DISTINCT 45 ) ) * + 44 AS col0
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT + CASE + 8 WHEN - COALESCE ( 7, - AVG ( ALL - + NULLIF ( - - 19, + 11 ) ) * + 72 ) THEN + 80 WHEN 62 THEN 19 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT + CASE + 8 WHEN - COALESCE ( 7, - AVG ( ALL - + NULLIF ( - - 19, + 11 ) ) * + 72 ) THEN + 80 WHEN 62 THEN 19 END + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 50 * 78 AS col1
----
3900

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5811
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT CAST ( NULL AS REAL ) * + 41
----
NULL

query I rowsort
SELECT - ( - 33 ) * - 57 + + 50
----
-1831

query I rowsort
SELECT DISTINCT + 50 * + 26
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - NULLIF ( - 83, 92 * - - 14 + 84 + - - COUNT( * ) ) - - 5 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5814
SELECT - NULLIF ( - 83, 92 * - - 14 + 84 + - - COUNT ( * ) ) - - 5 AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5815
SELECT ALL NULLIF ( ( - CAST( - - 91 AS SIGNED ) ), 27 ) DIV + 5 + + 26, 82 AS col2
----
8
82

skipif mysql # not compatible
query II rowsort label-5815
SELECT ALL NULLIF ( ( - CAST ( - - 91 AS INTEGER ) ), 27 ) / + 5 + + 26, 82 AS col2
----
8
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5816
SELECT ALL - CASE - COUNT( * ) WHEN 3 THEN + + ( + 18 ) WHEN - 69 THEN NULL END * + 12 AS col0, + 22 AS col2
----
NULL
22

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL - CASE - COUNT ( * ) WHEN 3 THEN + + ( + 18 ) WHEN - 69 THEN NULL END * + 12 AS col0, + 22 AS col2
----
NULL
22

query I rowsort
SELECT ALL - ( 9 ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5818
SELECT + COALESCE ( + 6, + + 31, - 2 ) * + CAST( NULL AS SIGNED ) * + - COUNT( * ) * + 67 * 10 + - 48 + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT + COALESCE ( + 6, + + 31, - 2 ) * + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * + 67 * 10 + - 48 + 10
----
NULL

query I rowsort
SELECT ALL + 60 + + - 79 col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT DISTINCT - 6 DIV 60 * + 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT - 6 / 60 * + 52 col1
----
0

query II rowsort
SELECT 4 + - 67 AS col1, + 17 AS col1
----
-63
17

query I rowsort
SELECT ALL - 88 * + + ( - 78 )
----
6864

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT + ( - COUNT( * ) ) + + 83 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5823
SELECT + ( - COUNT ( * ) ) + + 83 AS col2
----
82

query I rowsort
SELECT - + 15 * - + 4 + + + 78
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5825
SELECT ALL 48 - + NULLIF ( + COUNT( DISTINCT - 37 ), COUNT( * ) ) + 67 - - ( + ( - COUNT( * ) ) ) col2, MAX( 21 ) + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5825
SELECT ALL 48 - + NULLIF ( + COUNT ( DISTINCT - 37 ), COUNT ( * ) ) + 67 - - ( + ( - COUNT ( * ) ) ) col2, MAX ( 21 ) + + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT - 18 * 30 * - + 92 * + + CAST( - 14 AS SIGNED ) AS col2
----
-695520

skipif mysql # not compatible
query I rowsort label-5826
SELECT - 18 * 30 * - + 92 * + + CAST ( - 14 AS INTEGER ) AS col2
----
-695520

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL - SUM( - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - SUM ( - 39 )
----
39

query II rowsort
SELECT ALL - 55 - - - 2, + 65 * - ( + 57 ) AS col1
----
-57
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT MIN( - 8 ) * + 94 col2
----
-752

skipif mysql # not compatible
query I rowsort label-5829
SELECT MIN ( - 8 ) * + 94 col2
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL + ( + + ( + - COUNT( * ) ) ) - - MAX( + 57 )
----
56

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + ( + + ( + - COUNT ( * ) ) ) - - MAX ( + 57 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT ALL + CAST( NULL AS SIGNED ) * + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + CAST ( NULL AS INTEGER ) * + 83 AS col1
----
NULL

query I rowsort
SELECT - 57 + + - 11
----
-68

query I rowsort
SELECT DISTINCT - 12 * - 68 - - 50 + 89 - 74 * - 39 - + 98 AS col2
----
3743

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT ALL 37 AS col1, COUNT( * ) AS col0
----
37
1

skipif mysql # not compatible
query II rowsort label-5834
SELECT ALL 37 AS col1, COUNT ( * ) AS col0
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT 95 + - COUNT( * ) + - 7 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5835
SELECT 95 + - COUNT ( * ) + - 7 AS col1
----
87

query I rowsort
SELECT ALL 10 + 87 AS col1
----
97

query II rowsort
SELECT + 4 AS col0, - 27 * + + 43
----
4
-1161

query I rowsort
SELECT 5 * + 62
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT + 74 + - MIN( + 47 )
----
27

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT + 74 + - MIN ( + 47 )
----
27

query I rowsort
SELECT DISTINCT - 19 * - - 8 AS col1
----
-152

query I rowsort
SELECT ALL - 1 * 17
----
-17

query I rowsort
SELECT 95 * 62
----
5890

query I rowsort
SELECT ALL 51 + - 37 + 62 + 3 AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5844
SELECT DISTINCT 68 * CASE + 59 WHEN + + 73 THEN + 96 * 39 + 38 WHEN - CASE + 61 WHEN - ( COUNT( * ) ) * + 48 THEN NULL ELSE - 19 END * - - CASE - CAST( MAX( ALL + 65 ) AS SIGNED ) WHEN COUNT( * ) * - 2 THEN NULL WHEN 19 THEN NULL ELSE + ( + 89 ) + COUNT( * ) * - 90 END * 93 - + 77 - + ( - ( 10 ) ) DIV + 34 THEN NULL ELSE ( - ( - 87 ) ) END DIV + 33
----
179

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT 68 * CASE + 59 WHEN + + 73 THEN + 96 * 39 + 38 WHEN - CASE + 61 WHEN - ( COUNT ( * ) ) * + 48 THEN NULL ELSE - 19 END * - - CASE - CAST ( MAX ( ALL + 65 ) AS INTEGER ) WHEN COUNT ( * ) * - 2 THEN NULL WHEN 19 THEN NULL ELSE + ( + 89 ) + COUNT ( * ) * - 90 END * 93 - + 77 - + ( - ( 10 ) ) / + 34 THEN NULL ELSE ( - ( - 87 ) ) END / + 33
----
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5845
SELECT ALL + 29 + - + 93 DIV MIN( DISTINCT 85 ) + + COALESCE ( + 3, + 9 + - - 67, + - 51 )
----
31

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL + 29 + - + 93 / MIN ( DISTINCT 85 ) + + COALESCE ( + 3, + 9 + - - 67, + - 51 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT 13 AS col2, - COUNT( * )
----
13
-1

skipif mysql # not compatible
query II rowsort label-5846
SELECT 13 AS col2, - COUNT ( * )
----
13
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT ALL - 2 * - - COALESCE ( CAST( NULL AS SIGNED ), + ( + 26 ), 25, - 74 )
----
-52

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - 2 * - - COALESCE ( CAST ( NULL AS INTEGER ), + ( + 26 ), 25, - 74 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT + COUNT( * ) + - + 38 + + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT + COUNT ( * ) + - + 38 + + COUNT ( * )
----
-36

query I rowsort
SELECT 91 * + 90
----
8190

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT 94 col0, ( - COUNT( * ) )
----
94
-1

skipif mysql # not compatible
query II rowsort label-5850
SELECT 94 col0, ( - COUNT ( * ) )
----
94
-1

query I rowsort
SELECT ALL + 20 - - 88 col2
----
108

query II rowsort
SELECT 34, 20 + + - 38 + - 31 AS col0
----
34
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5853
SELECT - 36 * 30 DIV 61 + + 95 * + 13 - + COUNT( * ) + - + 83 * - 31 - + ( 67 ) - - 72 + COALESCE ( + 81, 99, 32 + 46 * 89 ) * + 67
----
9222

skipif mysql # not compatible
query I rowsort label-5853
SELECT - 36 * 30 / 61 + + 95 * + 13 - + COUNT ( * ) + - + 83 * - 31 - + ( 67 ) - - 72 + COALESCE ( + 81, 99, 32 + 46 * 89 ) * + 67
----
9222

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL - - 19 / + CASE 25 WHEN + + 76 / - 32 + + SUM( - 34 ) THEN AVG ( 55 ) + + 27 + + 33 ELSE NULL END + - - ( - 41 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL - - 19 / + CASE 25 WHEN + + 76 / - 32 + + SUM ( - 34 ) THEN AVG ( 55 ) + + 27 + + 33 ELSE NULL END + - - ( - 41 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT - - COUNT( * ) * - + MAX( - - 61 ) + - COUNT( * ) - 23 * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5855
SELECT - - COUNT ( * ) * - + MAX ( - - 61 ) + - COUNT ( * ) - 23 * - COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5856
SELECT ALL + 59 - + - COUNT( * ) * - CASE 44 WHEN + - CAST( - - AVG ( - - 23 ) AS SIGNED ) * + SUM( + 98 ) THEN NULL WHEN - - 77 * + 44 THEN - 69 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL + 59 - + - COUNT ( * ) * - CASE 44 WHEN + - CAST ( - - AVG ( - - 23 ) AS INTEGER ) * + SUM ( + 98 ) THEN NULL WHEN - - 77 * + 44 THEN - 69 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - ( + 75 ) AS col1
----
75

query I rowsort
SELECT ALL + - 77 * + NULLIF ( - 89, + 6 + - 89 )
----
6853

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5859
SELECT - 5 DIV - SUM( - - 22 ) * 27 * 87 AS col1, 24 - - 66 AS col1
----
0
90

skipif mysql # not compatible
query II rowsort label-5859
SELECT - 5 / - SUM ( - - 22 ) * 27 * 87 AS col1, 24 - - 66 AS col1
----
0
90

query I rowsort
SELECT - 88 * + 42 AS col0
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - 32 + - 9 * - COUNT( * ) * 32
----
256

skipif mysql # not compatible
query I rowsort label-5861
SELECT - 32 + - 9 * - COUNT ( * ) * 32
----
256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT + CASE COUNT( * ) WHEN - 93 THEN NULL ELSE + + 84 DIV + + 26 + + + 50 END AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5862
SELECT + CASE COUNT ( * ) WHEN - 93 THEN NULL ELSE + + 84 / + + 26 + + + 50 END AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT MIN( DISTINCT + 3 ) + 97 col2
----
100

skipif mysql # not compatible
query I rowsort label-5863
SELECT MIN ( DISTINCT + 3 ) + 97 col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL COUNT( + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL COUNT ( + 26 )
----
1

query I rowsort
SELECT DISTINCT 89 + + + 30 AS col2
----
119

query I rowsort
SELECT DISTINCT 94 + + 37 + 68 * + 8 AS col2
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL + 95 + - - COUNT( * ) + + 21
----
117

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + 95 + - - COUNT ( * ) + + 21
----
117

query I rowsort
SELECT ALL 5 + - 1 col1
----
4

query II rowsort
SELECT DISTINCT 87, 37 col0
----
87
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT DISTINCT + 77 + CAST( + 43 AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + 77 + CAST ( + 43 AS INTEGER )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT - COUNT( 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-5871
SELECT - COUNT ( 42 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5872
SELECT ALL 69 * + 86 AS col1, CAST( NULL AS SIGNED ) + + 75 AS col0
----
5934
NULL

skipif mysql # not compatible
query II rowsort label-5872
SELECT ALL 69 * + 86 AS col1, CAST ( NULL AS INTEGER ) + + 75 AS col0
----
5934
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT - COUNT( * ), 82 * - 83 AS col0
----
-1
-6806

skipif mysql # not compatible
query II rowsort label-5873
SELECT - COUNT ( * ), 82 * - 83 AS col0
----
-1
-6806

query I rowsort
SELECT ALL + 6 * - 3
----
-18

query II rowsort
SELECT DISTINCT + 36 AS col0, ( 38 )
----
36
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5876
SELECT ALL + 40, + COALESCE ( - - 98, - + ( + 26 ) ) * MIN( - 39 ) * + 26 * + + 26 + + + 60 DIV - 84 col2
----
40
-2583672

skipif mysql # not compatible
query II rowsort label-5876
SELECT ALL + 40, + COALESCE ( - - 98, - + ( + 26 ) ) * MIN ( - 39 ) * + 26 * + + 26 + + + 60 / - 84 col2
----
40
-2583672

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT 61 DIV - 38 - + 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5877
SELECT 61 / - 38 - + 0 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5878
SELECT ALL - 12 * - MAX( ALL + + 74 ) * + SUM( + + 64 ) + 72 - - + 20 DIV - 91 AS col2
----
56904

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - 12 * - MAX ( ALL + + 74 ) * + SUM ( + + 64 ) + 72 - - + 20 / - 91 AS col2
----
56904

query I rowsort
SELECT 34 * 77 + - - 52 AS col1
----
2670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT + - CAST( ( ( + - ( - 6 ) ) ) AS SIGNED ) + + + 46 * + 44 col1
----
2018

skipif mysql # not compatible
query I rowsort label-5880
SELECT + - CAST ( ( ( + - ( - 6 ) ) ) AS INTEGER ) + + + 46 * + 44 col1
----
2018

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT + - MIN( DISTINCT 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT + - MIN ( DISTINCT 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL + + 5 * + 98 - + 10 - + COUNT( * )
----
479

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + + 5 * + 98 - + 10 - + COUNT ( * )
----
479

query II rowsort
SELECT DISTINCT + 88 AS col2, 9
----
88
9

query I rowsort
SELECT - - 78 * - 98 + - 91 + - 72 * 46
----
-11047

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5885
SELECT ALL + 50 col1, + MIN( DISTINCT 90 ) DIV - - 30 AS col2
----
50
3

skipif mysql # not compatible
query II rowsort label-5885
SELECT ALL + 50 col1, + MIN ( DISTINCT 90 ) / - - 30 AS col2
----
50
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ALL + ( + 49 ) * COUNT( + 0 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL + ( + 49 ) * COUNT ( + 0 ) AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5887
SELECT ALL + 39 AS col2, - CASE + COALESCE ( 20, + + COUNT( * ) ) WHEN COUNT( * ) THEN - 28 ELSE - - 37 END DIV 67 + - + ( + + COALESCE ( - 87, + + 37 + - COUNT( + 95 ), - + ( NULLIF ( 50, - COUNT( * ) * 23 + 87 ) ) ) ) * - 16
----
39
-1392

skipif mysql # not compatible
query II rowsort label-5887
SELECT ALL + 39 AS col2, - CASE + COALESCE ( 20, + + COUNT ( * ) ) WHEN COUNT ( * ) THEN - 28 ELSE - - 37 END / 67 + - + ( + + COALESCE ( - 87, + + 37 + - COUNT ( + 95 ), - + ( NULLIF ( 50, - COUNT ( * ) * 23 + 87 ) ) ) ) * - 16
----
39
-1392

query II rowsort
SELECT + + 55 AS col1, 4 AS col0
----
55
4

query I rowsort
SELECT - ( 82 ) + - 99 * - 67 col1
----
6551

query II rowsort
SELECT + 94 * - - 68 * 48 + - - 22 col0, 69 AS col1
----
306838
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT + COALESCE ( MIN( ( + + 12 ) ), SUM( - 55 ) ) * 77 - - + 81 + 85 + + + 73 AS col2
----
1163

skipif mysql # not compatible
query I rowsort label-5891
SELECT + COALESCE ( MIN ( ( + + 12 ) ), SUM ( - 55 ) ) * 77 - - + 81 + 85 + + + 73 AS col2
----
1163

onlyif mysql # DIV for integer division: 
query II rowsort label-5892
SELECT DISTINCT + - 38, 39 + - + 3 DIV + - 85 AS col0
----
-38
39

skipif mysql # not compatible
query II rowsort label-5892
SELECT DISTINCT + - 38, 39 + - + 3 / + - 85 AS col0
----
-38
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5893
SELECT + 46 * + + 23 * + CAST( NULL AS SIGNED ) * 42 + + - 29 + + COUNT( * ) / + - ( COUNT( * ) ) - 84 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT + 46 * + + 23 * + CAST ( NULL AS INTEGER ) * 42 + + - 29 + + COUNT ( * ) / + - ( COUNT ( * ) ) - 84 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 25 + - + 80 col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5895
SELECT DISTINCT + + COUNT( * ) * COALESCE ( - COUNT( * ), + + 67 * 75 ) + - CAST( + - 18 AS SIGNED ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT + + COUNT ( * ) * COALESCE ( - COUNT ( * ), + + 67 * 75 ) + - CAST ( + - 18 AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5896
SELECT ALL COUNT( * ) AS col1, - ( - 51 ) + 13 DIV - 96
----
1
51

skipif mysql # not compatible
query II rowsort label-5896
SELECT ALL COUNT ( * ) AS col1, - ( - 51 ) + 13 / - 96
----
1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT DISTINCT CASE 93 WHEN 6 THEN NULL WHEN - - COUNT( * ) THEN - - 81 / + 26 * - 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT CASE 93 WHEN 6 THEN NULL WHEN - - COUNT ( * ) THEN - - 81 / + 26 * - 86 END AS col0
----
NULL

query II rowsort
SELECT - 82 AS col1, 10
----
-82
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT DISTINCT + 79 DIV + 14 + + + 37 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + 79 / + 14 + + + 37 AS col2
----
42

query I rowsort
SELECT ALL - 20 + 64
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT ALL + 62 + CAST( NULL AS SIGNED ) * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + 62 + CAST ( NULL AS INTEGER ) * 85 AS col1
----
NULL

query I rowsort
SELECT - 82 - 17 AS col0
----
-99

query I rowsort
SELECT ALL + 73 + + 23 * - 73 * - 87 AS col2
----
146146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT - ( 85 ) * - 33 + 83 * - CAST( NULL AS SIGNED ) * + + 61 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT - ( 85 ) * - 33 + 83 * - CAST ( NULL AS INTEGER ) * + + 61 + 84
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT - CAST( - 96 AS SIGNED ) + + 77 * - + 9 + - 55 + - 7
----
-659

skipif mysql # not compatible
query I rowsort label-5905
SELECT - CAST ( - 96 AS INTEGER ) + + 77 * - + 9 + - 55 + - 7
----
-659

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - NULLIF ( 20, 6 + - COUNT( * ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5906
SELECT - NULLIF ( 20, 6 + - COUNT ( * ) ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - SUM( + + 3 ) + - 94 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5907
SELECT - SUM ( + + 3 ) + - 94 AS col2
----
-97

query I rowsort
SELECT ALL + 28 + - ( - + 47 ) col2
----
75

query I rowsort
SELECT ALL NULLIF ( 95, + 51 * - 27 + + - 20 + - - 50 + + 98 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL 57 - NULLIF ( + 57, - COUNT( * ) / - ( + - 78 ) * - - 88 + 47 * - COALESCE ( 50, + 78 * - 13 - - 51 * + 64 ) * - ( + 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL 57 - NULLIF ( + 57, - COUNT ( * ) / - ( + - 78 ) * - - 88 + 47 * - COALESCE ( 50, + 78 * - 13 - - 51 * + 64 ) * - ( + 95 ) )
----
0

query I rowsort
SELECT DISTINCT ( - 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT - NULLIF ( + 48, + + CAST( NULL AS SIGNED ) - 6 - - 59 + + + 9 + 2 + - - 2 + - 40 + - + 50 * + 79 * - 99 * 2 * + + 72 )
----
-48

skipif mysql # not compatible
query I rowsort label-5912
SELECT - NULLIF ( + 48, + + CAST ( NULL AS INTEGER ) - 6 - - 59 + + + 9 + 2 + - - 2 + - 40 + - + 50 * + 79 * - 99 * 2 * + + 72 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT ALL - 29 - - 99 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL - 29 - - 99 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 3 * - 91 AS col0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT + COUNT( * ) * + - COUNT( ALL - 87 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5915
SELECT + COUNT ( * ) * + - COUNT ( ALL - 87 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT DISTINCT + CASE - 2 WHEN - 43 / 68 THEN + 55 + 77 WHEN - - MAX( - + COALESCE ( - 74, + - 27 ) ) + - 16 + + - SUM( ALL 77 ) THEN 92 ELSE 17 END AS col0
----
17

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT + CASE - 2 WHEN - 43 / 68 THEN + 55 + 77 WHEN - - MAX ( - + COALESCE ( - 74, + - 27 ) ) + - 16 + + - SUM ( ALL 77 ) THEN 92 ELSE 17 END AS col0
----
17

query I rowsort
SELECT DISTINCT + + 36 * 54 + - 95
----
1849

query II rowsort
SELECT + 7 * 83, + 72 AS col2
----
581
72

query I rowsort
SELECT + 11 * + - 45
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT + 46 / - 52 * - 24 + - 26 + + + 91 + - 77 * - + COUNT( * ) * CASE - 85 WHEN - + 84 THEN NULL WHEN + + 24 THEN - 81 ELSE NULL END * - 68 * + AVG ( DISTINCT 3 ) + + 83 + + - 27 + 68 * 7 * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + 46 / - 52 * - 24 + - 26 + + + 91 + - 77 * - + COUNT ( * ) * CASE - 85 WHEN - + 84 THEN NULL WHEN + + 24 THEN - 81 ELSE NULL END * - 68 * + AVG ( DISTINCT 3 ) + + 83 + + - 27 + 68 * 7 * 2 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT - 64 + ( - 45 ) DIV - 31
----
-63

skipif mysql # not compatible
query I rowsort label-5921
SELECT - 64 + ( - 45 ) / - 31
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5922
SELECT + - SUM( - 17 ) * - CAST( NULL AS DECIMAL ) * + ( 78 ) + + 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT + - SUM ( - 17 ) * - CAST ( NULL AS REAL ) * + ( 78 ) + + 63 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT + + NULLIF ( + 83, 76 ) DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-5923
SELECT + + NULLIF ( + 83, 76 ) / 21
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + + 7 * - COUNT( * ) * + 97
----
-679

skipif mysql # not compatible
query I rowsort label-5924
SELECT + + 7 * - COUNT ( * ) * + 97
----
-679

onlyif mysql # aggregate syntax: 
query II rowsort label-5925
SELECT ( - - NULLIF ( - COUNT( * ), - 67 + + + NULLIF ( - - 96, - - 75 ) ) ) AS col2, - 85
----
-1
-85

skipif mysql # not compatible
query II rowsort label-5925
SELECT ( - - NULLIF ( - COUNT ( * ), - 67 + + + NULLIF ( - - 96, - - 75 ) ) ) AS col2, - 85
----
-1
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5926
SELECT + 2 * - COUNT( * ) + + CAST( NULL AS SIGNED ) - + COUNT( * ) + - + 85 / - 79 * - + 70, CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) / 46 - - 79 col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5926
SELECT + 2 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + - + 85 / - 79 * - + 70, CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) / 46 - - 79 col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL - - MAX( - ( 65 ) ) * + 91 + - COUNT( * )
----
-5916

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - - MAX ( - ( 65 ) ) * + 91 + - COUNT ( * )
----
-5916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT ALL SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + ( + + 11 ) + 1 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + ( + + 11 ) + 1 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - SUM( + 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5929
SELECT - SUM ( + 46 ) AS col1
----
-46

query I rowsort
SELECT ALL + 50 * + 84 * - 79 AS col2
----
-331800

query I rowsort
SELECT ALL 18 * + 27 + 93
----
579

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5932
SELECT DISTINCT 55 * - + CASE CASE - - COUNT( * ) WHEN + 92 THEN NULL WHEN AVG ( + - CAST( NULL AS DECIMAL ) ) / + - ( - 32 ) THEN + 90 ELSE NULL END WHEN - COUNT( * ) THEN 49 + COUNT( * ) + - 66 / + - ( + 54 ) WHEN - 8 * + 37 THEN - COALESCE ( + 30, COUNT( * ), - ( - ( 85 ) ) ) + + 67 * 64 END + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT 55 * - + CASE CASE - - COUNT ( * ) WHEN + 92 THEN NULL WHEN AVG ( + - CAST ( NULL AS REAL ) ) / + - ( - 32 ) THEN + 90 ELSE NULL END WHEN - COUNT ( * ) THEN 49 + COUNT ( * ) + - 66 / + - ( + 54 ) WHEN - 8 * + 37 THEN - COALESCE ( + 30, COUNT ( * ), - ( - ( 85 ) ) ) + + 67 * 64 END + 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5933
SELECT + 94 + + - 83, + 33 - + + 0 * - MIN( 64 ) * - 43 * - + COUNT( * ) + 78 + - + 26 AS col1
----
11
85

skipif mysql # not compatible
query II rowsort label-5933
SELECT + 94 + + - 83, + 33 - + + 0 * - MIN ( 64 ) * - 43 * - + COUNT ( * ) + 78 + - + 26 AS col1
----
11
85

query I rowsort
SELECT + + 8 * + - 79 * + + ( - 88 ) - - + 72 + - - 17 + - 71
----
55634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5935
SELECT ALL - NULLIF ( + + MIN( ALL - + 91 ), - 24 + + 63 + - 4 * 46 ) AS col1, - NULLIF ( 93, + - CAST( NULL AS SIGNED ) )
----
91
-93

skipif mysql # not compatible
query II rowsort label-5935
SELECT ALL - NULLIF ( + + MIN ( ALL - + 91 ), - 24 + + 63 + - 4 * 46 ) AS col1, - NULLIF ( 93, + - CAST ( NULL AS INTEGER ) )
----
91
-93

query I rowsort
SELECT 98 - + 27 * 39 col0
----
-955

onlyif mysql # aggregate syntax: 
query II rowsort label-5937
SELECT - 36, - 17 + + COUNT( * ) AS col1
----
-36
-16

skipif mysql # not compatible
query II rowsort label-5937
SELECT - 36, - 17 + + COUNT ( * ) AS col1
----
-36
-16

query I rowsort
SELECT 14 * - 31 col2
----
-434

onlyif mysql # aggregate syntax: 
query II rowsort label-5939
SELECT DISTINCT 96, + ( + COUNT( * ) ) AS col0
----
96
1

skipif mysql # not compatible
query II rowsort label-5939
SELECT DISTINCT 96, + ( + COUNT ( * ) ) AS col0
----
96
1

query I rowsort
SELECT DISTINCT + CASE + + 78 WHEN + 85 * - 24 THEN NULL WHEN + 96 * ( - - 92 ) + + 14 THEN + 7 WHEN + + 20 + + 12 * - 66 - 9 / + 93 THEN + - 19 END * + + ( + 44 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5941
SELECT DISTINCT - 61 * + - CAST( NULL AS SIGNED ) * + 44 AS col1, 71 AS col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-5941
SELECT DISTINCT - 61 * + - CAST ( NULL AS INTEGER ) * + 44 AS col1, 71 AS col1
----
NULL
71

query I rowsort
SELECT ALL + 97 - + - 3
----
100

query I rowsort
SELECT 94 * - 92 AS col0
----
-8648

query I rowsort
SELECT 30 * + 81
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT 4 * - + COUNT( * ) * - MAX( DISTINCT - 67 ) AS col2
----
-268

skipif mysql # not compatible
query I rowsort label-5945
SELECT 4 * - + COUNT ( * ) * - MAX ( DISTINCT - 67 ) AS col2
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT 10 + CASE - COUNT( * ) WHEN + 76 * - MAX( DISTINCT 12 ) * - 47 * - - 0 / - 83 THEN - COUNT( * ) * - MAX( + - 67 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT 10 + CASE - COUNT ( * ) WHEN + 76 * - MAX ( DISTINCT 12 ) * - 47 * - - 0 / - 83 THEN - COUNT ( * ) * - MAX ( + - 67 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT 20 + + - COALESCE ( - ( 88 ), - ( - - NULLIF ( + - CAST( + - 46 AS SIGNED ), COALESCE ( + 17, 85 + - 99 * + 53, - 78 ) / ( 68 ) ) ) ) * - - ( + 86 ) * + 40 + - 22 * 29 AS col1
----
302102

skipif mysql # not compatible
query I rowsort label-5947
SELECT 20 + + - COALESCE ( - ( 88 ), - ( - - NULLIF ( + - CAST ( + - 46 AS INTEGER ), COALESCE ( + 17, 85 + - 99 * + 53, - 78 ) / ( 68 ) ) ) ) * - - ( + 86 ) * + 40 + - 22 * 29 AS col1
----
302102

onlyif mysql # aggregate syntax: 
query II rowsort label-5948
SELECT ALL + 80 * - 10 * + 11, - 66 + MAX( DISTINCT - 44 ) + 24 col2
----
-8800
-86

skipif mysql # not compatible
query II rowsort label-5948
SELECT ALL + 80 * - 10 * + 11, - 66 + MAX ( DISTINCT - 44 ) + 24 col2
----
-8800
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT 29 + CASE - 12 WHEN - COUNT( * ) THEN - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT 29 + CASE - 12 WHEN - COUNT ( * ) THEN - 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL - COALESCE ( - COUNT( * ), + ( + COALESCE ( - 91, + COUNT( * ) ) ), + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - COALESCE ( - COUNT ( * ), + ( + COALESCE ( - 91, + COUNT ( * ) ) ), + 41 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - 9 * 80 * + - 39 + + 64 * CASE - COALESCE ( - 23, + 48 + - 6 + + 68 * - - 85 * + + 8 * + 51 - + + 54 * 68 ) WHEN + + ( - - NULLIF ( - 21, COUNT( * ) + 70 ) ) THEN NULL WHEN - 60 THEN 8 ELSE 85 + - 36 END + + 14 AS col0
----
31230

skipif mysql # not compatible
query I rowsort label-5951
SELECT - 9 * 80 * + - 39 + + 64 * CASE - COALESCE ( - 23, + 48 + - 6 + + 68 * - - 85 * + + 8 * + 51 - + + 54 * 68 ) WHEN + + ( - - NULLIF ( - 21, COUNT ( * ) + 70 ) ) THEN NULL WHEN - 60 THEN 8 ELSE 85 + - 36 END + + 14 AS col0
----
31230

query I rowsort
SELECT ALL + + 33 * 8 * 58
----
15312

query I rowsort
SELECT DISTINCT + 89 + + 36 + 85
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT NULLIF ( + 25, - 21 * + 73 ) DIV - + 29 + - - 76 * + 6 * + 78 * 27 + 57
----
960393

skipif mysql # not compatible
query I rowsort label-5954
SELECT NULLIF ( + 25, - 21 * + 73 ) / - + 29 + - - 76 * + 6 * + 78 * 27 + 57
----
960393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5955
SELECT DISTINCT COUNT( * ) + - 18 + - + CAST( + 12 AS SIGNED ) DIV - + COUNT( + CAST( + 80 AS SIGNED ) )
----
-5

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT COUNT ( * ) + - 18 + - + CAST ( + 12 AS INTEGER ) / - + COUNT ( + CAST ( + 80 AS INTEGER ) )
----
-5

query II rowsort
SELECT ALL ( + - 87 ) + - 78 AS col2, + 16
----
-165
16

query I rowsort
SELECT - 85 + - 29 col0
----
-114

query I rowsort
SELECT DISTINCT - - 91 * - 46 * + 54
----
-226044

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT + - COUNT( * ) + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + - COUNT ( * ) + - 8
----
-9

query I rowsort
SELECT DISTINCT + 73 + + - 4 col0
----
69

query I rowsort
SELECT DISTINCT 0 + 88 AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT 30 + + - 61 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT 30 + + - 61 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT ALL - 29 DIV + 31 * - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL - 29 / + 31 * - 42 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5964
SELECT - 62 AS col1, CAST( NULL AS SIGNED ) + 2
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-5964
SELECT - 62 AS col1, CAST ( NULL AS INTEGER ) + 2
----
-62
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5965
SELECT DISTINCT 27 DIV COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT 27 / COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5966
SELECT 79 DIV - + 93 col0, MIN( + 39 )
----
0
39

skipif mysql # not compatible
query II rowsort label-5966
SELECT 79 / - + 93 col0, MIN ( + 39 )
----
0
39

query I rowsort
SELECT ( - - 70 ) * - - 31
----
2170

query I rowsort
SELECT ALL COALESCE ( - - 3, + 99 ) * + 99 AS col2
----
297

query I rowsort
SELECT DISTINCT 45 - ( 44 ) AS col0
----
1

query I rowsort
SELECT 20 + + 95
----
115

query I rowsort
SELECT 4 * - - 49
----
196

query I rowsort
SELECT 39 * + + 16 AS col1
----
624

query II rowsort
SELECT 10 + + 47 - - 30 + - 42 AS col0, - 1 * - 58
----
45
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL - 12 * ( - + ( + COUNT( * ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - 12 * ( - + ( + COUNT ( * ) ) )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5975
SELECT 29 * 59 DIV - 1 AS col1
----
-1711

skipif mysql # not compatible
query I rowsort label-5975
SELECT 29 * 59 / - 1 AS col1
----
-1711

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT - 94 * - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - 94 * - COUNT ( * )
----
94

query I rowsort
SELECT ALL + 39 + - 61 - 96 * 31 * - 15
----
44618

query I rowsort
SELECT 58 + - 79 + + 53
----
32

query I rowsort
SELECT ALL - 51 * + 71 + + 10 col0
----
-3611

query I rowsort
SELECT 4 + 29 AS col0
----
33

query I rowsort
SELECT ALL + + ( + + ( - - 3 ) ) * - ( + 7 ) col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT 7 * 93 * + MIN( DISTINCT - + ( 34 ) )
----
-22134

skipif mysql # not compatible
query I rowsort label-5982
SELECT 7 * 93 * + MIN ( DISTINCT - + ( 34 ) )
----
-22134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT ALL + + COALESCE ( 32, - 38, + + ( ( + - 94 ) ) DIV + 65 ) + + + 53 * COUNT( * ) - - - 46 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL + + COALESCE ( 32, - 38, + + ( ( + - 94 ) ) / + 65 ) + + + 53 * COUNT ( * ) - - - 46 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5984
SELECT 97 DIV - COUNT( * ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-5984
SELECT 97 / - COUNT ( * ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT - COUNT( * ) * - 49 + 26
----
75

skipif mysql # not compatible
query I rowsort label-5985
SELECT - COUNT ( * ) * - 49 + 26
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT DISTINCT - + COALESCE ( - COUNT( * ), + 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT - + COALESCE ( - COUNT ( * ), + 99 ) AS col1
----
1

query I rowsort
SELECT ALL - - 27 * + 97 + 75 AS col2
----
2694

query I rowsort
SELECT DISTINCT CASE WHEN NULL IS NULL THEN + 91 END * + 21 + + + 22
----
1933

query I rowsort
SELECT 53 * 5
----
265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5990
SELECT CAST( + + MAX( ALL - 14 ) AS SIGNED ) + + + 15 + 32 DIV 27
----
2

skipif mysql # not compatible
query I rowsort label-5990
SELECT CAST ( + + MAX ( ALL - 14 ) AS INTEGER ) + + + 15 + 32 / 27
----
2

query II rowsort
SELECT DISTINCT - 0 * - 46 AS col0, 82 AS col0
----
0
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5992
SELECT ALL - COUNT( * ) * - 72 - - SUM( DISTINCT - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL - COUNT ( * ) * - 72 - - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + ( + CASE WHEN NULL IS NULL THEN 43 END ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT - COUNT( * ) * 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5994
SELECT - COUNT ( * ) * 56 AS col0
----
-56

query I rowsort
SELECT ALL - 69 * 45 AS col0
----
-3105

query I rowsort
SELECT DISTINCT - 60 * + 45
----
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5997
SELECT + 99 / - + CASE - - 96 WHEN - COUNT( * ) * + - ( CAST( NULL AS SIGNED ) ) * + 29 + - - 33 * 54 THEN NULL WHEN 30 THEN + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT + 99 / - + CASE - - 96 WHEN - COUNT ( * ) * + - ( CAST ( NULL AS INTEGER ) ) * + 29 + - - 33 * 54 THEN NULL WHEN 30 THEN + 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT - COUNT( * ) * - 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5998
SELECT - COUNT ( * ) * - 20 AS col2
----
20

query I rowsort
SELECT + 16 * - 87 AS col2
----
-1392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT - 8 * + 81 * + 26 - + CAST( NULL AS SIGNED ) + - 56 * 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT - 8 * + 81 * + 26 - + CAST ( NULL AS INTEGER ) + - 56 * 88 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6001
SELECT DISTINCT COUNT( * ) DIV CAST( + 64 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT COUNT ( * ) / CAST ( + 64 AS INTEGER ) AS col1
----
0

query II rowsort
SELECT ALL 1 col1, ( + 80 ) AS col2
----
1
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6003
SELECT ALL AVG ( + 38 ) / - - CASE COALESCE ( + 11, + + MIN( DISTINCT - - 76 ) * - 49, + - 11 ) WHEN 87 THEN NULL WHEN - + 58 THEN + COALESCE ( + - 94, - 11 + 85, 72 ) WHEN + CASE + ( NULLIF ( - SUM( 24 ), NULLIF ( 88, - COALESCE ( + COUNT( * ), + 66 * + 57 ) * + ( CAST( NULL AS SIGNED ) ) - + 26 ) ) ) WHEN + 59 * - 64 + - 9 THEN - ( 50 ) * COUNT( * ) WHEN - 80 THEN 32 + + 92 END * - MIN( 64 + + ( + 19 + 92 ) / + 77 ) THEN 46 * - 99 ELSE NULL END / + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL AVG ( + 38 ) / - - CASE COALESCE ( + 11, + + MIN ( DISTINCT - - 76 ) * - 49, + - 11 ) WHEN 87 THEN NULL WHEN - + 58 THEN + COALESCE ( + - 94, - 11 + 85, 72 ) WHEN + CASE + ( NULLIF ( - SUM ( 24 ), NULLIF ( 88, - COALESCE ( + COUNT ( * ), + 66 * + 57 ) * + ( CAST ( NULL AS INTEGER ) ) - + 26 ) ) ) WHEN + 59 * - 64 + - 9 THEN - ( 50 ) * COUNT ( * ) WHEN - 80 THEN 32 + + 92 END * - MIN ( 64 + + ( + 19 + 92 ) / + 77 ) THEN 46 * - 99 ELSE NULL END / + 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT - 63 DIV - - 26
----
-2

skipif mysql # not compatible
query I rowsort label-6004
SELECT - 63 / - - 26
----
-2

query I rowsort
SELECT + 80 * + 30
----
2400

query I rowsort
SELECT + 39 + + 90
----
129

query II rowsort
SELECT ALL 51 * 71 * - + 3 AS col1, + 40
----
-10863
40

query I rowsort
SELECT + 15 + 96
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6009
SELECT - CASE - NULLIF ( - - 26, - - 9 * - COUNT( * ) + - COUNT( * ) ) WHEN + ( - 90 ) * 26 THEN + - 88 * - COUNT( * ) + + 40 * 50 DIV - NULLIF ( - CAST( NULL AS SIGNED ), 0 + + 56 + + 5 + + 53 ) + - 93 WHEN + 5 - 40 DIV 40 THEN NULL ELSE - 92 + 0 END
----
92

skipif mysql # not compatible
query I rowsort label-6009
SELECT - CASE - NULLIF ( - - 26, - - 9 * - COUNT ( * ) + - COUNT ( * ) ) WHEN + ( - 90 ) * 26 THEN + - 88 * - COUNT ( * ) + + 40 * 50 / - NULLIF ( - CAST ( NULL AS INTEGER ), 0 + + 56 + + 5 + + 53 ) + - 93 WHEN + 5 - 40 / 40 THEN NULL ELSE - 92 + 0 END
----
92

query I rowsort
SELECT ALL 97 * + + 11 AS col2
----
1067

query II rowsort
SELECT ALL 20 + ( + 42 ) AS col2, 47 + 32 AS col0
----
62
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL + 53 + + SUM( + - 60 ) * - 78 AS col1
----
4733

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL + 53 + + SUM ( + - 60 ) * - 78 AS col1
----
4733

query I rowsort
SELECT - CASE + 5 WHEN + 41 THEN - + 67 WHEN + 31 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6014
SELECT ALL 76 col0, 5 * - COUNT( * ) - + 26
----
76
-31

skipif mysql # not compatible
query II rowsort label-6014
SELECT ALL 76 col0, 5 * - COUNT ( * ) - + 26
----
76
-31

query I rowsort
SELECT + 97 + - + 31 AS col2
----
66

query I rowsort
SELECT ( - 38 ) AS col0
----
-38

query I rowsort
SELECT + + 83 + + - 54 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT + SUM( 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6018
SELECT + SUM ( 25 ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT + + ( - + 29 ) + - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT + + ( - + 29 ) + - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL + 28 + - - 42 * 30 AS col2, ( - + 25 ) AS col2
----
1288
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6021
SELECT + - COUNT( - + 9 ) + - + COUNT( * ), - 35 + - 47 AS col1
----
-2
-82

skipif mysql # not compatible
query II rowsort label-6021
SELECT + - COUNT ( - + 9 ) + - + COUNT ( * ), - 35 + - 47 AS col1
----
-2
-82

query I rowsort
SELECT ALL 50 + + 98 + - + 9 * - 72
----
796

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT DISTINCT - 95 + + + MIN( - 27 )
----
-122

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - 95 + + + MIN ( - 27 )
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6024
SELECT ALL - ( - 77 ) DIV + 67 + - + COALESCE ( + 65, 83 + - ( - 3 ), NULLIF ( SUM( DISTINCT - 81 ), - + ( 93 ) ) + - 76 + 34 DIV + 51 ) * 99 + 73 * 49 + + NULLIF ( + COUNT( * ), + 53 * 16 + MIN( DISTINCT 47 ) ) * + 60 col1
----
-2797

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL - ( - 77 ) / + 67 + - + COALESCE ( + 65, 83 + - ( - 3 ), NULLIF ( SUM ( DISTINCT - 81 ), - + ( 93 ) ) + - 76 + 34 / + 51 ) * 99 + 73 * 49 + + NULLIF ( + COUNT ( * ), + 53 * 16 + MIN ( DISTINCT 47 ) ) * + 60 col1
----
-2797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6025
SELECT - 3 + - 27 * + CAST( NULL AS SIGNED ) / + 37 * + ( + 33 ) + COUNT( DISTINCT + 62 ) * - 13 + + 4 * + CAST( 71 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT - 3 + - 27 * + CAST ( NULL AS INTEGER ) / + 37 * + ( + 33 ) + COUNT ( DISTINCT + 62 ) * - 13 + + 4 * + CAST ( 71 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6027
SELECT ALL - 81 DIV 53 - 42, + 6 * + ( - 80 ) + - + 19 * + COUNT( * ) + + - 78 AS col0
----
-43
-577

skipif mysql # not compatible
query II rowsort label-6027
SELECT ALL - 81 / 53 - 42, + 6 * + ( - 80 ) + - + 19 * + COUNT ( * ) + + - 78 AS col0
----
-43
-577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT - - 2 * + CAST( + + 71 AS SIGNED ) AS col0
----
142

skipif mysql # not compatible
query I rowsort label-6028
SELECT - - 2 * + CAST ( + + 71 AS INTEGER ) AS col0
----
142

query I rowsort
SELECT - 43 + + 50 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - + COUNT( * ) + 20 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6030
SELECT - + COUNT ( * ) + 20 AS col2
----
19

query I rowsort
SELECT DISTINCT + 69 * 93 AS col2
----
6417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6032
SELECT + + 9 * - 76 + 43 * COUNT( * ) + + + 40 + + COUNT( * ) + + + 66 DIV - 16
----
-604

skipif mysql # not compatible
query I rowsort label-6032
SELECT + + 9 * - 76 + 43 * COUNT ( * ) + + + 40 + + COUNT ( * ) + + + 66 / - 16
----
-604

query I rowsort
SELECT DISTINCT + + COALESCE ( - 75, ( - 21 ) * 39, - 90 ) AS col0
----
-75

query II rowsort
SELECT + 29 AS col2, NULLIF ( - - 23, ( + 90 ) )
----
29
23

query I rowsort
SELECT DISTINCT + COALESCE ( 57, - 42 + - ( - COALESCE ( - 17, 31 * 95, + 69 ) ), + + 70 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6036
SELECT ALL + 40, 43 + NULLIF ( CASE COUNT( * ) WHEN + COUNT( * ) * 74 + - 27 - + 57 THEN + - 86 END, 85 ) AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-6036
SELECT ALL + 40, 43 + NULLIF ( CASE COUNT ( * ) WHEN + COUNT ( * ) * 74 + - 27 - + 57 THEN + - 86 END, 85 ) AS col2
----
40
NULL

query II rowsort
SELECT ALL + ( - 82 ), ( + + 98 ) + 77 AS col2
----
-82
175

query I rowsort
SELECT DISTINCT + ( - 65 ) AS col1
----
-65

query I rowsort
SELECT - 93 * + 70 col0
----
-6510

query I rowsort
SELECT COALESCE ( - 66, - 1 + + ( + - 2 ) - - 41 )
----
-66

query I rowsort
SELECT DISTINCT + 65 * 95 + + 10 + - 58 AS col0
----
6127

query I rowsort
SELECT ALL ( - + 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6043
SELECT DISTINCT 41 * - 48 + + 12 - + 65 * MIN( 11 ) AS col0, - 41
----
-2671
-41

skipif mysql # not compatible
query II rowsort label-6043
SELECT DISTINCT 41 * - 48 + + 12 - + 65 * MIN ( 11 ) AS col0, - 41
----
-2671
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT - MAX( - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-6044
SELECT - MAX ( - 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6045
SELECT ALL - 66 * CAST( NULL AS SIGNED ) + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL - 66 * CAST ( NULL AS INTEGER ) + 69
----
NULL

query I rowsort
SELECT - 80 - + 52
----
-132

query I rowsort
SELECT - 97 * 11 AS col2
----
-1067

query I rowsort
SELECT 76 * - 37 + 13 - 5 + - + NULLIF ( + + 60, + 1 ) * + 2 - - 19 AS col1
----
-2905

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL - 39 + - - 11 + + 73 * - COUNT( DISTINCT + + 36 ) * - + 23
----
1651

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - 39 + - - 11 + + 73 * - COUNT ( DISTINCT + + 36 ) * - + 23
----
1651

query I rowsort
SELECT ALL 85 + - - 91 * + 8 AS col0
----
813

query I rowsort
SELECT - 91 * 80 AS col1
----
-7280

query I rowsort
SELECT - COALESCE ( + 43, ( + 21 ) * - 60 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT - 38 * 97 * COUNT( * ) * 72 * - + 19
----
5042448

skipif mysql # not compatible
query I rowsort label-6053
SELECT - 38 * 97 * COUNT ( * ) * 72 * - + 19
----
5042448

query I rowsort
SELECT - + 80 - - - 78 * + 7
----
-626

query I rowsort
SELECT ALL - 69 * - 49
----
3381

query I rowsort
SELECT ALL + 57 + - - 63
----
120

query II rowsort
SELECT - 62, + 42 + + 41 AS col0
----
-62
83

query I rowsort
SELECT ALL 4 - + + 7 col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT - MAX( + 97 ) * 40 * COUNT( * ) AS col0
----
-3880

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - MAX ( + 97 ) * 40 * COUNT ( * ) AS col0
----
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + 92 * 19 + COUNT( * ) + - + COUNT( * ) AS col2
----
1748

skipif mysql # not compatible
query I rowsort label-6060
SELECT + 92 * 19 + COUNT ( * ) + - + COUNT ( * ) AS col2
----
1748

query I rowsort
SELECT - - ( + - 40 )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6062
SELECT ALL - NULLIF ( - 11, + - 57 ) - 87 DIV - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL - NULLIF ( - 11, + - 57 ) - 87 / - COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query III rowsort label-6063
SELECT + COUNT( * ) AS col2, - ( - + 46 ) * + - COUNT( * ) AS col0, + 48 AS col2
----
1
-46
48

skipif mysql # not compatible
query III rowsort label-6063
SELECT + COUNT ( * ) AS col2, - ( - + 46 ) * + - COUNT ( * ) AS col0, + 48 AS col2
----
1
-46
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT ALL - COALESCE ( COUNT( * ), 70 + + ( 35 ) + + ( + 24 ) * - + ( + 14 ) * - NULLIF ( - 27, - 89 * - + 68 ) * - - CAST( NULL AS SIGNED ) + + + 91 + + - 82 + - CAST( NULL AS SIGNED ) * + + CASE + 32 WHEN - - CAST( - 9 AS SIGNED ) * + 68 THEN - 79 * 97 + + SUM( + 77 ) END * 67 + + 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - COALESCE ( COUNT ( * ), 70 + + ( 35 ) + + ( + 24 ) * - + ( + 14 ) * - NULLIF ( - 27, - 89 * - + 68 ) * - - CAST ( NULL AS INTEGER ) + + + 91 + + - 82 + - CAST ( NULL AS INTEGER ) * + + CASE + 32 WHEN - - CAST ( - 9 AS INTEGER ) * + 68 THEN - 79 * 97 + + SUM ( + 77 ) END * 67 + + 97 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT - + ( CASE 47 WHEN + + 74 THEN + CAST( COUNT( * ) AS SIGNED ) WHEN 92 THEN + MAX( - - 6 ) ELSE - 65 END ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6065
SELECT - + ( CASE 47 WHEN + + 74 THEN + CAST ( COUNT ( * ) AS INTEGER ) WHEN 92 THEN + MAX ( - - 6 ) ELSE - 65 END ) AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT CASE + 23 WHEN + - ( - - CAST( NULL AS SIGNED ) ) THEN - - COUNT( * ) END * 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT CASE + 23 WHEN + - ( - - CAST ( NULL AS INTEGER ) ) THEN - - COUNT ( * ) END * 72 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6067
SELECT + ( + 85 ) AS col1, + CAST( NULL AS SIGNED ) + - 6, 20 AS col1
----
85
NULL
20

skipif mysql # not compatible
query III rowsort label-6067
SELECT + ( + 85 ) AS col1, + CAST ( NULL AS INTEGER ) + - 6, 20 AS col1
----
85
NULL
20

query II rowsort
SELECT ALL - + 11 AS col1, 25 * - 57
----
-11
-1425

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6069
SELECT - 94 * 87 + + 98 + + - NULLIF ( - + 67, + 2 ), 76 * - 15 * - + 0 DIV + ( ( ( + 72 ) ) ) + 0 * COUNT( * ) AS col0
----
-8013
0

skipif mysql # not compatible
query II rowsort label-6069
SELECT - 94 * 87 + + 98 + + - NULLIF ( - + 67, + 2 ), 76 * - 15 * - + 0 / + ( ( ( + 72 ) ) ) + 0 * COUNT ( * ) AS col0
----
-8013
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT ALL + COUNT( * ) * - - 21 * + 2
----
42

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL + COUNT ( * ) * - - 21 * + 2
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6071
SELECT ALL CASE - 71 WHEN COALESCE ( - 69, - + 41, + 25 + + 42 ) THEN - 19 WHEN - + 61 * + - SUM( - + 75 ) + - 64 * + CAST( NULL AS DECIMAL ) * - 56 THEN ( 60 ) + + COALESCE ( + - 52, 68 ) END * 60 + + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL CASE - 71 WHEN COALESCE ( - 69, - + 41, + 25 + + 42 ) THEN - 19 WHEN - + 61 * + - SUM ( - + 75 ) + - 64 * + CAST ( NULL AS REAL ) * - 56 THEN ( 60 ) + + COALESCE ( + - 52, 68 ) END * 60 + + + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6072
SELECT ALL CASE 64 WHEN MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) * 64 * - COUNT( * ) THEN NULL WHEN - 66 THEN + - 23 END * - MIN( DISTINCT + + 83 ) * - 92 * - - 85 * + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL CASE 64 WHEN MAX ( DISTINCT + CAST ( NULL AS REAL ) ) * 64 * - COUNT ( * ) THEN NULL WHEN - 66 THEN + - 23 END * - MIN ( DISTINCT + + 83 ) * - 92 * - - 85 * + + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT 30 / - CASE + - SUM( ALL 19 ) WHEN - 74 THEN - + AVG ( DISTINCT + ( 10 ) ) WHEN - + 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT 30 / - CASE + - SUM ( ALL 19 ) WHEN - 74 THEN - + AVG ( DISTINCT + ( 10 ) ) WHEN - + 32 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6074
SELECT 42 DIV + 7 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6074
SELECT 42 / + 7 AS col0
----
6

query I rowsort
SELECT DISTINCT 87 + - 46
----
41

query I rowsort
SELECT DISTINCT + 7 + + - 79 * - + 2 AS col2
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6077
SELECT ALL - 53 + 34 * + 0 DIV COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - 53 + 34 * + 0 / COUNT ( * )
----
-53

query I rowsort
SELECT DISTINCT + ( - - 24 ) + + + ( - - ( - 68 ) )
----
-44

query I rowsort
SELECT 55 * - NULLIF ( - 58, + 46 + - 11 )
----
3190

query I rowsort
SELECT DISTINCT + 8 + - + NULLIF ( - 71, 73 * - 97 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL + 90 + - - MAX( DISTINCT + 17 ) * + 26 AS col1
----
532

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + 90 + - - MAX ( DISTINCT + 17 ) * + 26 AS col1
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL + 81 * 62 * 46 * - + ( - + COUNT( * ) )
----
231012

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + 81 * 62 * 46 * - + ( - + COUNT ( * ) )
----
231012

query I rowsort
SELECT 45 * - + 47 col1
----
-2115

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT DISTINCT + ( + + COUNT( * ) ) + - 3 * - + 60
----
181

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT + ( + + COUNT ( * ) ) + - 3 * - + 60
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT - MAX( + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-6085
SELECT - MAX ( + 87 )
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-6086
SELECT ALL - + 95 - ( + + 52 ) DIV - + 81 * + + 26 AS col1, 9
----
-95
9

skipif mysql # not compatible
query II rowsort label-6086
SELECT ALL - + 95 - ( + + 52 ) / - + 81 * + + 26 AS col1, 9
----
-95
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6087
SELECT ALL - ( + COUNT( * ) ) - CASE - 7 WHEN - 27 * + - CASE 6 WHEN NULLIF ( + 56, + 19 ) THEN + + COUNT( * ) * + - 73 + - - 3 * 83 DIV + - CAST( NULL AS SIGNED ) WHEN - + 44 THEN NULL ELSE NULL END DIV + + CASE - COUNT( * ) WHEN + 56 THEN - - CAST( - 24 AS SIGNED ) * - + 69 DIV - 11 + - 47 END THEN - 54 DIV + COUNT( * ) WHEN 31 * 16 + + 42 * 81 THEN NULL ELSE - 41 END DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - ( + COUNT ( * ) ) - CASE - 7 WHEN - 27 * + - CASE 6 WHEN NULLIF ( + 56, + 19 ) THEN + + COUNT ( * ) * + - 73 + - - 3 * 83 / + - CAST ( NULL AS INTEGER ) WHEN - + 44 THEN NULL ELSE NULL END / + + CASE - COUNT ( * ) WHEN + 56 THEN - - CAST ( - 24 AS INTEGER ) * - + 69 / - 11 + - 47 END THEN - 54 / + COUNT ( * ) WHEN 31 * 16 + + 42 * 81 THEN NULL ELSE - 41 END / + 22
----
0

query I rowsort
SELECT DISTINCT + + 82 * + + 19 * - 37
----
-57646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6089
SELECT + CAST( + COALESCE ( + 60, COUNT( * ) ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-6089
SELECT + CAST ( + COALESCE ( + 60, COUNT ( * ) ) AS INTEGER )
----
60

query I rowsort
SELECT 38 + NULLIF ( - + 20, + 53 ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6091
SELECT + 42 / + 35 + - + CAST( NULL AS SIGNED ) - 10 - - 25 + - 92 + COUNT( * ) * + + 27 * - ( - 73 ) / + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT + 42 / + 35 + - + CAST ( NULL AS INTEGER ) - 10 - - 25 + - 92 + COUNT ( * ) * + + 27 * - ( - 73 ) / + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6092
SELECT ALL 82 / - - MAX( ALL + CAST( NULL AS SIGNED ) ) * - + 35 * - + 96 + 97 + + 85 - - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL 82 / - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - + 35 * - + 96 + 97 + + 85 - - 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - ( 38 ) + + MIN( DISTINCT - 88 ) * 0 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6093
SELECT - ( 38 ) + + MIN ( DISTINCT - 88 ) * 0 AS col0
----
-38

query I rowsort
SELECT 30 + 91 AS col1
----
121

query I rowsort
SELECT ALL - 5 * 28 AS col1
----
-140

query I rowsort
SELECT DISTINCT + ( + 72 ) col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL CASE + COUNT( DISTINCT - + 22 ) WHEN - 76 * COUNT( * ) THEN + ( - 65 ) / 27 + + 58 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL CASE + COUNT ( DISTINCT - + 22 ) WHEN - 76 * COUNT ( * ) THEN + ( - 65 ) / 27 + + 58 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 22 * + 38
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT - 92 * + COUNT( * ) + - 59 AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-6099
SELECT - 92 * + COUNT ( * ) + - 59 AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL + MIN( 48 ) * + + 69 AS col0
----
3312

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + MIN ( 48 ) * + + 69 AS col0
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + COUNT( * ) + 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6101
SELECT + COUNT ( * ) + 45 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6102
SELECT + + CAST( - + 3 AS SIGNED ), 0 * + 45 AS col1
----
-3
0

skipif mysql # not compatible
query II rowsort label-6102
SELECT + + CAST ( - + 3 AS INTEGER ), 0 * + 45 AS col1
----
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6103
SELECT ALL - 59 AS col0, - MAX( ALL 56 ) / + CASE + CAST( + - 31 AS SIGNED ) WHEN + 35 * COUNT( * ) THEN + 53 * 88 WHEN - 86 * 30 * + 9 THEN NULL END AS col2
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-6103
SELECT ALL - 59 AS col0, - MAX ( ALL 56 ) / + CASE + CAST ( + - 31 AS INTEGER ) WHEN + 35 * COUNT ( * ) THEN + 53 * 88 WHEN - 86 * 30 * + 9 THEN NULL END AS col2
----
-59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6104
SELECT DISTINCT NULLIF ( - + 89, 5 * + 94 * 49 ) * - ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT NULLIF ( - + 89, 5 * + 94 * 49 ) * - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT MIN( DISTINCT - + ( - 78 ) ) * 38
----
2964

skipif mysql # not compatible
query I rowsort label-6105
SELECT MIN ( DISTINCT - + ( - 78 ) ) * 38
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT COUNT( * ) + + 22 col1
----
23

skipif mysql # not compatible
query I rowsort label-6106
SELECT COUNT ( * ) + + 22 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL COUNT( * ) + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL COUNT ( * ) + 52 AS col2
----
53

query I rowsort
SELECT 13 + + 82 AS col2
----
95

query I rowsort
SELECT ALL - 84 + - 55
----
-139

query I rowsort
SELECT - 33 * - + ( - + 44 ) * + 91 * - 80 * + + 31 + 74 AS col0
----
327687434

query I rowsort
SELECT ALL NULLIF ( - 55, - - 22 ) + + - 57 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT + COUNT( * ), + 43 * - + 32 AS col0
----
1
-1376

skipif mysql # not compatible
query II rowsort label-6112
SELECT + COUNT ( * ), + 43 * - + 32 AS col0
----
1
-1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6113
SELECT ALL + 21 + + + AVG ( - ( - CAST( NULL AS SIGNED ) ) ) + - 48 + + 37 - + 75 + + ( + CASE + 17 WHEN - 68 * - CASE - 36 WHEN - ( - 28 ) + + 98 THEN + - 38 ELSE - + 64 END THEN - + 11 * - 44 + 90 * + 91 - MIN( CAST( NULL AS SIGNED ) ) ELSE NULL END ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL + 21 + + + AVG ( - ( - CAST ( NULL AS INTEGER ) ) ) + - 48 + + 37 - + 75 + + ( + CASE + 17 WHEN - 68 * - CASE - 36 WHEN - ( - 28 ) + + 98 THEN + - 38 ELSE - + 64 END THEN - + 11 * - 44 + 90 * + 91 - MIN ( CAST ( NULL AS INTEGER ) ) ELSE NULL END ) * + 86
----
NULL

query I rowsort
SELECT DISTINCT - 66 * 56 * + - 12
----
44352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6115
SELECT ALL 74 + + - 44 - + 7 + + 78 - 90 + 45 * - COUNT( + 63 ) DIV - 68 + - 66 * + - 28 * 13
----
24035

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL 74 + + - 44 - + 7 + + 78 - 90 + 45 * - COUNT ( + 63 ) / - 68 + - 66 * + - 28 * 13
----
24035

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT 13 * + + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6116
SELECT 13 * + + COUNT ( * ) AS col1
----
13

query I rowsort
SELECT 48 + - + 58
----
-10

query I rowsort
SELECT DISTINCT 9 + - 60
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6119
SELECT ALL ( - 60 ) + + 20 DIV - ( + - 23 ) * + 47
----
-60

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL ( - 60 ) + + 20 / - ( + - 23 ) * + 47
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT + MAX( DISTINCT + + 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6120
SELECT + MAX ( DISTINCT + + 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT 38 * - MAX( DISTINCT + - 38 )
----
1444

skipif mysql # not compatible
query I rowsort label-6121
SELECT 38 * - MAX ( DISTINCT + - 38 )
----
1444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT 74 * + - CAST( - 49 AS SIGNED ) * - 7
----
-25382

skipif mysql # not compatible
query I rowsort label-6122
SELECT 74 * + - CAST ( - 49 AS INTEGER ) * - 7
----
-25382

query I rowsort
SELECT DISTINCT 73 - + + 72 * 88
----
-6263

query I rowsort
SELECT ALL ( - - 99 ) * + 34 * + + ( + 11 ) * 37 AS col1
----
1369962

query I rowsort
SELECT + COALESCE ( 20, 84 ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6126
SELECT ALL 8 - + + CAST( 0 AS SIGNED ) + + - 22
----
-14

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL 8 - + + CAST ( 0 AS INTEGER ) + + - 22
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6127
SELECT ALL - - MAX( - 74 ) DIV - 88 AS col0, 2 * - 58 AS col2
----
0
-116

skipif mysql # not compatible
query II rowsort label-6127
SELECT ALL - - MAX ( - 74 ) / - 88 AS col0, 2 * - 58 AS col2
----
0
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT + COUNT( * ) * 41 + COUNT( * ) * - 15 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6128
SELECT + COUNT ( * ) * 41 + COUNT ( * ) * - 15 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL COUNT( + 79 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL COUNT ( + 79 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT ALL + COUNT( + + 22 ) - COUNT( * ) * 46 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL + COUNT ( + + 22 ) - COUNT ( * ) * 46 AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT 97 * CAST( NULL AS SIGNED ) + + 30 + + + 44 + 36 + - 53 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT 97 * CAST ( NULL AS INTEGER ) + + 30 + + + 44 + 36 + - 53 * 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT 0, COUNT( * ) * + - ( - 41 ) AS col1
----
0
41

skipif mysql # not compatible
query II rowsort label-6132
SELECT 0, COUNT ( * ) * + - ( - 41 ) AS col1
----
0
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6133
SELECT - 69 + - CAST( + + ( COUNT( * ) ) AS SIGNED ) + - COUNT( * ) * + ( - - 43 ) * - MIN( DISTINCT 63 ) col2
----
2639

skipif mysql # not compatible
query I rowsort label-6133
SELECT - 69 + - CAST ( + + ( COUNT ( * ) ) AS INTEGER ) + - COUNT ( * ) * + ( - - 43 ) * - MIN ( DISTINCT 63 ) col2
----
2639

onlyif mysql # DIV for integer division: 
query II rowsort label-6134
SELECT ALL - 17, 1 DIV - - 80 AS col0
----
-17
0

skipif mysql # not compatible
query II rowsort label-6134
SELECT ALL - 17, 1 / - - 80 AS col0
----
-17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT + COUNT( * ) * 66
----
66

skipif mysql # not compatible
query I rowsort label-6135
SELECT + COUNT ( * ) * 66
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6136
SELECT - 83 + + - CASE 98 WHEN 82 + - 3 + 21 - + - 61 THEN + 10 + + + CASE - CAST( - NULLIF ( - COUNT( * ), + 23 ) AS SIGNED ) WHEN 38 + + - 9 / + - 28 THEN + 43 + + 70 + + - 3 * - 58 ELSE CAST( NULL AS SIGNED ) END + + - 27 / + 63 WHEN CAST( 3 AS SIGNED ) THEN + ( - 94 ) * 60 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT - 83 + + - CASE 98 WHEN 82 + - 3 + 21 - + - 61 THEN + 10 + + + CASE - CAST ( - NULLIF ( - COUNT ( * ), + 23 ) AS INTEGER ) WHEN 38 + + - 9 / + - 28 THEN + 43 + + 70 + + - 3 * - 58 ELSE CAST ( NULL AS INTEGER ) END + + - 27 / + 63 WHEN CAST ( 3 AS INTEGER ) THEN + ( - 94 ) * 60 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6137
SELECT - - COUNT( * ), 43 AS col2
----
1
43

skipif mysql # not compatible
query II rowsort label-6137
SELECT - - COUNT ( * ), 43 AS col2
----
1
43

query I rowsort
SELECT DISTINCT - 67 * 49 AS col1
----
-3283

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT ALL 10 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL 10 / - 86
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT - + COALESCE ( + + 36, + CAST( + 0 AS SIGNED ) * - 88, + 82 + + 44 ) * - 86 * - - 71 + - 85 AS col1
----
219731

skipif mysql # not compatible
query I rowsort label-6140
SELECT - + COALESCE ( + + 36, + CAST ( + 0 AS INTEGER ) * - 88, + 82 + + 44 ) * - 86 * - - 71 + - 85 AS col1
----
219731

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT ALL COUNT( * ), - 49 * 5 AS col1
----
1
-245

skipif mysql # not compatible
query II rowsort label-6141
SELECT ALL COUNT ( * ), - 49 * 5 AS col1
----
1
-245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6142
SELECT 5 col1, - 45 * - MIN( ALL + - CAST( NULL AS SIGNED ) ) + - 72 AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-6142
SELECT 5 col1, - 45 * - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) + - 72 AS col1
----
5
NULL

query I rowsort
SELECT - - 84 * 24
----
2016

query I rowsort
SELECT ALL + - ( - 8 ) + 39
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT - 43 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT - 43 / - 89 AS col1
----
0

query I rowsort
SELECT - 64 * - 41 AS col0
----
2624

onlyif mysql # aggregate syntax: 
query II rowsort label-6147
SELECT ALL - 77 * COUNT( * ) + - - 79 * - + 85 * - NULLIF ( + 30, - + ( 73 ) * MAX( ALL - + 7 ) ) * + 57 + - CASE COUNT( * ) WHEN + + 14 THEN 56 - - 49 WHEN - COUNT( * ) THEN + COUNT( * ) END - + - 3, - 88 * - 11 col1
----
NULL
968

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL - 77 * COUNT ( * ) + - - 79 * - + 85 * - NULLIF ( + 30, - + ( 73 ) * MAX ( ALL - + 7 ) ) * + 57 + - CASE COUNT ( * ) WHEN + + 14 THEN 56 - - 49 WHEN - COUNT ( * ) THEN + COUNT ( * ) END - + - 3, - 88 * - 11 col1
----
NULL
968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT DISTINCT + 94 * + 88 + CAST( NULL AS SIGNED ) - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT + 94 * + 88 + CAST ( NULL AS INTEGER ) - 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6149
SELECT DISTINCT - 98 DIV 14 AS col2, + NULLIF ( - 13, - + ( + + 11 ) - COUNT( * ) ) AS col2
----
-7
-13

skipif mysql # not compatible
query II rowsort label-6149
SELECT DISTINCT - 98 / 14 AS col2, + NULLIF ( - 13, - + ( + + 11 ) - COUNT ( * ) ) AS col2
----
-7
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT - 16 DIV 58 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6150
SELECT - 16 / 58 / - 90 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6151
SELECT DISTINCT - 80 DIV + 78 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT - 80 / + 78 AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6152
SELECT ALL + CASE - CAST( NULL AS DECIMAL ) WHEN + 71 THEN + + NULLIF ( + 54, + 27 ) / + ( 98 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL + CASE - CAST ( NULL AS REAL ) WHEN + 71 THEN + + NULLIF ( + 54, + 27 ) / + ( 98 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT - 80 + + CAST( 98 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-6153
SELECT - 80 + + CAST ( 98 AS INTEGER )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6154
SELECT ALL + CASE - 94 WHEN 13 * - 16 THEN - + 24 WHEN + - 33 THEN 65 + COUNT( * ) + - 61 END AS col2, + CAST( + ( - + COUNT( * ) ) AS SIGNED )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6154
SELECT ALL + CASE - 94 WHEN 13 * - 16 THEN - + 24 WHEN + - 33 THEN 65 + COUNT ( * ) + - 61 END AS col2, + CAST ( + ( - + COUNT ( * ) ) AS INTEGER )
----
NULL
-1

query I rowsort
SELECT - 57 + - ( + ( + 36 ) ) AS col1
----
-93

query I rowsort
SELECT + 62 * 2 AS col1
----
124

query I rowsort
SELECT ALL + 34 * - 99 + - 88 AS col2
----
-3454

query I rowsort
SELECT NULLIF ( + + 42, - - 64 )
----
42

query II rowsort
SELECT + COALESCE ( + 67, + 33, + 80 ) AS col0, 16 AS col2
----
67
16

query II rowsort
SELECT CASE + 53 WHEN + 59 THEN + 27 END, ( - - 65 ) * 2 AS col0
----
NULL
130

query I rowsort
SELECT 26 * - + 20 + + 3 + - 25 - + + 39 AS col2
----
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT + COUNT( * ) + + 45 + - - 56 + + ( 50 ) * - MAX( DISTINCT - 7 ) + - - COUNT( * ) + + 25 + - + 43 * + 92 AS col2
----
-3478

skipif mysql # not compatible
query I rowsort label-6162
SELECT + COUNT ( * ) + + 45 + - - 56 + + ( 50 ) * - MAX ( DISTINCT - 7 ) + - - COUNT ( * ) + + 25 + - + 43 * + 92 AS col2
----
-3478

query I rowsort
SELECT CASE 67 WHEN - AVG ( DISTINCT ( + 70 ) ) THEN NULL WHEN - 87 THEN NULL ELSE + 52 + 90 END AS col0
----
142

query I rowsort
SELECT + 96 * - 15 AS col1
----
-1440

query I rowsort
SELECT + CASE + - 85 WHEN - 80 THEN NULL WHEN - 9 + NULLIF ( - + 41, + - 69 ) THEN NULL ELSE 60 END + + 31
----
91

query I rowsort
SELECT ALL 28 * + 38 * + 19
----
20216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6167
SELECT + 97 DIV 32 + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6167
SELECT + 97 / 32 + + COUNT ( * ) AS col1
----
4

query I rowsort
SELECT - - ( - 90 ) * - 16 * - ( + 98 ) * + 93 + - 5 AS col1
----
-13124165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6169
SELECT ALL - 29 * + CAST( NULL AS SIGNED ) / + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL - 29 * + CAST ( NULL AS INTEGER ) / + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ALL + MIN( ALL + 47 ) * + 74
----
3478

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + MIN ( ALL + 47 ) * + 74
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT 91 * + + MAX( + 30 ) * - 61 * - 49 + 46 * + CASE + - 61 WHEN - 24 / - 87 + 26 THEN + 27 * + - 58 WHEN - COUNT( * ) + - - 27 THEN 84 * - 81 END + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT 91 * + + MAX ( + 30 ) * - 61 * - 49 + 46 * + CASE + - 61 WHEN - 24 / - 87 + 26 THEN + 27 * + - 58 WHEN - COUNT ( * ) + - - 27 THEN 84 * - 81 END + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6172
SELECT ALL - CAST( + 49 AS SIGNED ) * NULLIF ( - CASE - 27 WHEN + 53 * + 69 * + 64 * - 79 * + 40 + 96 THEN NULL WHEN - 55 THEN NULL WHEN - COUNT( ALL + 57 ) THEN NULL ELSE - 79 END, - 17 ) AS col1
----
-3871

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - CAST ( + 49 AS INTEGER ) * NULLIF ( - CASE - 27 WHEN + 53 * + 69 * + 64 * - 79 * + 40 + 96 THEN NULL WHEN - 55 THEN NULL WHEN - COUNT ( ALL + 57 ) THEN NULL ELSE - 79 END, - 17 ) AS col1
----
-3871

onlyif mysql # aggregate syntax: 
query II rowsort label-6173
SELECT DISTINCT MAX( 68 ) * + 94 * + - 88 AS col2, NULLIF ( 88, + - NULLIF ( - 11, + 44 + + - 86 ) ) * + 62 col2
----
-562496
5456

skipif mysql # not compatible
query II rowsort label-6173
SELECT DISTINCT MAX ( 68 ) * + 94 * + - 88 AS col2, NULLIF ( 88, + - NULLIF ( - 11, + 44 + + - 86 ) ) * + 62 col2
----
-562496
5456

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL ( + 92 ) + - COALESCE ( - CASE WHEN NULL IS NOT NULL THEN 30 ELSE NULL END, - COUNT( * ), + 90 - 2 - - ( 6 ) * 11 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL ( + 92 ) + - COALESCE ( - CASE WHEN NULL IS NOT NULL THEN 30 ELSE NULL END, - COUNT ( * ), + 90 - 2 - - ( 6 ) * 11 ) AS col2
----
93

query I rowsort
SELECT DISTINCT + 61 + - 8 + + + 8
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT + 13 + + MIN( DISTINCT - 7 )
----
6

skipif mysql # not compatible
query I rowsort label-6176
SELECT + 13 + + MIN ( DISTINCT - 7 )
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6177
SELECT + - 22 + + 51 * CAST( NULL AS DECIMAL ) + + 92 + - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * 27 - + 56 * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT + - 22 + + 51 * CAST ( NULL AS REAL ) + + 92 + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * 27 - + 56 * + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT - + COUNT( DISTINCT 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-6178
SELECT - + COUNT ( DISTINCT 37 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT + + 47 + + - 19 + - + 51 * SUM( DISTINCT CAST( NULL AS SIGNED ) ) + + 48 + COUNT( + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT + + 47 + + - 19 + - + 51 * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 48 + COUNT ( + 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL - ( + CASE 13 WHEN 44 THEN MIN( - 75 ) * ( 73 ) ELSE NULL END ) + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL - ( + CASE 13 WHEN 44 THEN MIN ( - 75 ) * ( 73 ) ELSE NULL END ) + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL - CASE + COALESCE ( 79, - - 10 ) WHEN - ( - COUNT( * ) ) + - - 81 THEN 87 * 39 ELSE + ( + 72 ) END * - 38 AS col1
----
2736

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL - CASE + COALESCE ( 79, - - 10 ) WHEN - ( - COUNT ( * ) ) + - - 81 THEN 87 * 39 ELSE + ( + 72 ) END * - 38 AS col1
----
2736

query I rowsort
SELECT DISTINCT 64 * - 94 AS col1
----
-6016

query I rowsort
SELECT ALL + 20 + 58
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6184
SELECT DISTINCT CASE + - 24 WHEN COUNT( * ) THEN NULL WHEN + AVG ( + - ( + - CASE - + 34 WHEN - 55 * + 70 THEN + 14 ELSE NULL END ) ) THEN + 39 ELSE NULL END AS col2, + 9 + 2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-6184
SELECT DISTINCT CASE + - 24 WHEN COUNT ( * ) THEN NULL WHEN + AVG ( + - ( + - CASE - + 34 WHEN - 55 * + 70 THEN + 14 ELSE NULL END ) ) THEN + 39 ELSE NULL END AS col2, + 9 + 2
----
NULL
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT DISTINCT CAST( - + 20 AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT CAST ( - + 20 AS INTEGER ) AS col0
----
-20

query I rowsort
SELECT ALL + ( 64 ) AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6187
SELECT + 95, - CASE 13 WHEN + 97 + + - ( 81 ) / - + 22 THEN - CASE + 32 WHEN + + 17 THEN + + 80 * 9 / 15 * + MAX( ALL + CAST( NULL AS SIGNED ) ) END END AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-6187
SELECT + 95, - CASE 13 WHEN + 97 + + - ( 81 ) / - + 22 THEN - CASE + 32 WHEN + + 17 THEN + + 80 * 9 / 15 * + MAX ( ALL + CAST ( NULL AS INTEGER ) ) END END AS col1
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT MIN( ALL 26 ) * 83 + + - ( 4 )
----
2154

skipif mysql # not compatible
query I rowsort label-6188
SELECT MIN ( ALL 26 ) * 83 + + - ( 4 )
----
2154

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT - 74 * COALESCE ( - COUNT( * ), - 33 + - + 18, - 64 * + - COUNT( * ) ) col0
----
74

skipif mysql # not compatible
query I rowsort label-6189
SELECT - 74 * COALESCE ( - COUNT ( * ), - 33 + - + 18, - 64 * + - COUNT ( * ) ) col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT - COUNT( ALL - - 70 ) * - 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6190
SELECT - COUNT ( ALL - - 70 ) * - 85 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6191
SELECT 30 DIV 45 + - 71 * + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-6191
SELECT 30 / 45 + - 71 * + COUNT ( * )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT ALL + 31 DIV + - 22
----
-1

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + 31 / + - 22
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6193
SELECT CAST( NULL AS SIGNED ), 20 - - 70 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6193
SELECT CAST ( NULL AS INTEGER ), 20 - - 70 AS col0
----
NULL
90

query I rowsort
SELECT ALL + 22 * - 85
----
-1870

query I rowsort
SELECT ALL 15 * - 22 col0
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6196
SELECT + COUNT( * ) AS col0, NULLIF ( CASE + ( + 79 ) WHEN - + CAST( NULL AS SIGNED ) - - ( + + CASE - 27 WHEN - + 97 THEN - NULLIF ( 20, - 31 - - COALESCE ( + 45, - - 65 ) / 92 * - 40 ) * - COUNT( * ) * + 78 + - - 63 * + 17 / 95 - 41 WHEN 80 THEN + 38 ELSE CAST( 23 AS SIGNED ) END ) THEN COALESCE ( + CAST( NULL AS SIGNED ), - 39 * 55 + CAST( NULL AS SIGNED ), - 27 ) * 19 WHEN 82 + 61 * 90 THEN NULL END, + CASE COUNT( * ) WHEN MAX( ALL 2 ) THEN NULL ELSE - SUM( DISTINCT 48 ) END / + 17 ) + 57 * 26 col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6196
SELECT + COUNT ( * ) AS col0, NULLIF ( CASE + ( + 79 ) WHEN - + CAST ( NULL AS INTEGER ) - - ( + + CASE - 27 WHEN - + 97 THEN - NULLIF ( 20, - 31 - - COALESCE ( + 45, - - 65 ) / 92 * - 40 ) * - COUNT ( * ) * + 78 + - - 63 * + 17 / 95 - 41 WHEN 80 THEN + 38 ELSE CAST ( 23 AS INTEGER ) END ) THEN COALESCE ( + CAST ( NULL AS INTEGER ), - 39 * 55 + CAST ( NULL AS INTEGER ), - 27 ) * 19 WHEN 82 + 61 * 90 THEN NULL END, + CASE COUNT ( * ) WHEN MAX ( ALL 2 ) THEN NULL ELSE - SUM ( DISTINCT 48 ) END / + 17 ) + 57 * 26 col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT ALL + 31 DIV ( COALESCE ( 39, - 18 * 19 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL + 31 / ( COALESCE ( 39, - 18 * 19 ) )
----
0

query I rowsort
SELECT ALL - 59 * + 40 * + - 93 AS col2
----
219480

query I rowsort
SELECT 67 * - 22 AS col1
----
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT + COUNT( * ) * - 88 + + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6200
SELECT + COUNT ( * ) * - 88 + + COUNT ( * ) AS col0
----
-87

query II rowsort
SELECT ALL - + 21 AS col1, - 51
----
-21
-51

query I rowsort
SELECT - ( - 41 ) AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT + 65 * - - NULLIF ( SUM( DISTINCT + ( - 20 ) ), - 54 + + COUNT( * ) / COUNT( * ) * + - CAST( - - 77 AS SIGNED ) + + 50 ) AS col2
----
-1300

skipif mysql # not compatible
query I rowsort label-6203
SELECT + 65 * - - NULLIF ( SUM ( DISTINCT + ( - 20 ) ), - 54 + + COUNT ( * ) / COUNT ( * ) * + - CAST ( - - 77 AS INTEGER ) + + 50 ) AS col2
----
-1300

onlyif mysql # aggregate syntax: 
query II rowsort label-6204
SELECT ALL + ( 31 ) + - - 2, - COUNT( * ) + + COUNT( * ) AS col0
----
33
0

skipif mysql # not compatible
query II rowsort label-6204
SELECT ALL + ( 31 ) + - - 2, - COUNT ( * ) + + COUNT ( * ) AS col0
----
33
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT ALL 62 DIV 23 + 33 DIV + ( + 33 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL 62 / 23 + 33 / + ( + 33 ) AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6206
SELECT - COUNT( * ) DIV + MIN( DISTINCT NULLIF ( - 22, + 20 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT - COUNT ( * ) / + MIN ( DISTINCT NULLIF ( - 22, + 20 ) )
----
0

query I rowsort
SELECT DISTINCT - 31 + - + 23 + 43 - 75 + - 71 * 51 + - 33
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + SUM( DISTINCT + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6208
SELECT + SUM ( DISTINCT + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT - ( - + COUNT( ALL - 68 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6209
SELECT - ( - + COUNT ( ALL - 68 ) )
----
1

query I rowsort
SELECT DISTINCT + 24 + - 36 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT CASE + MAX( 89 ) WHEN + COALESCE ( + 67, - 42 - - - 93, - - 97 * - 41 / - 14 ) THEN 34 WHEN - - 61 * + - 9 THEN NULL END * 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT CASE + MAX ( 89 ) WHEN + COALESCE ( + 67, - 42 - - - 93, - - 97 * - 41 / - 14 ) THEN 34 WHEN - - 61 * + - 9 THEN NULL END * 75 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT 85 DIV 85 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6212
SELECT 85 / 85 AS col0
----
1

query II rowsort
SELECT ALL 39 AS col1, ( - 37 ) + 41 * 48
----
39
1931

query II rowsort
SELECT - 79, 34 + + + 70 + + ( - ( - ( + 86 ) ) ) AS col0
----
-79
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6215
SELECT ALL + 25 - - 56 AS col1, MIN( 81 ) DIV + 61 AS col2
----
81
1

skipif mysql # not compatible
query II rowsort label-6215
SELECT ALL + 25 - - 56 AS col1, MIN ( 81 ) / + 61 AS col2
----
81
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT CAST( NULL AS SIGNED ) / - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT CAST ( NULL AS INTEGER ) / - 14
----
NULL

query I rowsort
SELECT 49 * - 99 * + + 60
----
-291060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6218
SELECT ALL COUNT( DISTINCT - 11 ) - - COUNT( * ) DIV - - CAST( 17 AS SIGNED ) - 89 + 70 col0
----
-18

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL COUNT ( DISTINCT - 11 ) - - COUNT ( * ) / - - CAST ( 17 AS INTEGER ) - 89 + 70 col0
----
-18

query II rowsort
SELECT 10 AS col1, 72 + + 71 AS col1
----
10
143

query II rowsort
SELECT ALL 46, - 93 - - 68 AS col1
----
46
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT COUNT( * ) - + 30 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6221
SELECT COUNT ( * ) - + 30 AS col2
----
-29

query I rowsort
SELECT 74 * + - 26 AS col1
----
-1924

query II rowsort
SELECT ALL 0 AS col2, - 37 col1
----
0
-37

query II rowsort
SELECT ALL - 19, - 10 * 46 AS col2
----
-19
-460

query I rowsort
SELECT 64 * - 97 col2
----
-6208

query II rowsort
SELECT + 11 AS col0, + 3 - - - 50
----
11
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT DISTINCT + 45 * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + 45 * COUNT ( * )
----
45

query I rowsort
SELECT ( 84 ) + - 89
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6229
SELECT ALL - COUNT( * ) AS col1, + 35 * - - 87
----
-1
3045

skipif mysql # not compatible
query II rowsort label-6229
SELECT ALL - COUNT ( * ) AS col1, + 35 * - - 87
----
-1
3045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6230
SELECT ( - 65 ) DIV - + NULLIF ( COALESCE ( + SUM( ALL + + 89 ), - COUNT( * ) + + + 65 + 44 + + 46 + + 18 - - + 42 + + 72 ), - 24 ) * - NULLIF ( SUM( DISTINCT + COALESCE ( - 23, - 72, 26 * - 7 + + 78 DIV + 17 ) ), + 11 ) - - 44 * + - ( - 56 ) DIV NULLIF ( + 64 - 65, + ( CASE - CAST( 67 AS SIGNED ) WHEN CAST( + 35 AS SIGNED ) THEN 21 + 61 END ) + COUNT( * ) )
----
-2464

skipif mysql # not compatible
query I rowsort label-6230
SELECT ( - 65 ) / - + NULLIF ( COALESCE ( + SUM ( ALL + + 89 ), - COUNT ( * ) + + + 65 + 44 + + 46 + + 18 - - + 42 + + 72 ), - 24 ) * - NULLIF ( SUM ( DISTINCT + COALESCE ( - 23, - 72, 26 * - 7 + + 78 / + 17 ) ), + 11 ) - - 44 * + - ( - 56 ) / NULLIF ( + 64 - 65, + ( CASE - CAST ( 67 AS INTEGER ) WHEN CAST ( + 35 AS INTEGER ) THEN 21 + 61 END ) + COUNT ( * ) )
----
-2464

query I rowsort
SELECT 89 * + + 78 AS col0
----
6942

onlyif mysql # aggregate syntax: 
query II rowsort label-6232
SELECT + + 25, - MIN( ALL 79 ) AS col1
----
25
-79

skipif mysql # not compatible
query II rowsort label-6232
SELECT + + 25, - MIN ( ALL 79 ) AS col1
----
25
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL - 87 + - + 79 + COUNT( DISTINCT - - 89 ) * 41 - + - 18 * + 36
----
523

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL - 87 + - + 79 + COUNT ( DISTINCT - - 89 ) * 41 - + - 18 * + 36
----
523

onlyif mysql # aggregate syntax: 
query II rowsort label-6234
SELECT ALL - CASE + 39 WHEN - ( 14 ) + - 91 - 91 THEN NULL ELSE 53 END AS col2, COUNT( * ) * + 44 + - 3
----
-53
41

skipif mysql # not compatible
query II rowsort label-6234
SELECT ALL - CASE + 39 WHEN - ( 14 ) + - 91 - 91 THEN NULL ELSE 53 END AS col2, COUNT ( * ) * + 44 + - 3
----
-53
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT + 89 * + + CAST( NULL AS SIGNED ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT + 89 * + + CAST ( NULL AS INTEGER ) + 47
----
NULL

query I rowsort
SELECT - 2 * - 14 + + - 48 * 23 * 95 + + 37 + - - 30 * - ( - 84 )
----
-102295

query II rowsort
SELECT ALL - - 68 + + + 65 col0, 57
----
133
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6238
SELECT ALL + + COALESCE ( MAX( - 90 ), - COALESCE ( - 97, CAST( 93 AS SIGNED ) + - ( - 94 ) + + 38 + + + 53 + + CAST( NULL AS SIGNED ), + 26 + - 63 * 74 * ( 85 ) ), - MIN( DISTINCT + 46 ) DIV - - 23 * - 45 * 0 * + 22 + 32 ) + - 16 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL + + COALESCE ( MAX ( - 90 ), - COALESCE ( - 97, CAST ( 93 AS INTEGER ) + - ( - 94 ) + + 38 + + + 53 + + CAST ( NULL AS INTEGER ), + 26 + - 63 * 74 * ( 85 ) ), - MIN ( DISTINCT + 46 ) / - - 23 * - 45 * 0 * + 22 + 32 ) + - 16 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL 59 + + COUNT( * ) + + 24
----
84

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL 59 + + COUNT ( * ) + + 24
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6240
SELECT ALL - COUNT( * ) col0, - 53 * - SUM( - ( + + 76 ) ) + CASE - 30 WHEN 55 THEN + - AVG ( + CAST( NULL AS SIGNED ) ) END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6240
SELECT ALL - COUNT ( * ) col0, - 53 * - SUM ( - ( + + 76 ) ) + CASE - 30 WHEN 55 THEN + - AVG ( + CAST ( NULL AS INTEGER ) ) END AS col1
----
-1
NULL

query I rowsort
SELECT + 38 * + - 11
----
-418

query I rowsort
SELECT 8 * 62 + 49 AS col0
----
545

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT + + MIN( DISTINCT + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-6243
SELECT + + MIN ( DISTINCT + 55 )
----
55

query I rowsort
SELECT ALL - 86 + 2
----
-84

query I rowsort
SELECT ALL + + 93 + 35
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6246
SELECT - 4 - + ( CAST( - 96 AS SIGNED ) ) + CAST( + 51 AS SIGNED ) + COUNT( * ) AS col1, 20 AS col2
----
144
20

skipif mysql # not compatible
query II rowsort label-6246
SELECT - 4 - + ( CAST ( - 96 AS INTEGER ) ) + CAST ( + 51 AS INTEGER ) + COUNT ( * ) AS col1, 20 AS col2
----
144
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT - - 26 * 80 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT - - 26 * 80 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 21, + - 4 / + + 77 )
----
21

query I rowsort
SELECT ALL - 92 - 47 col2
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT ( CAST( 98 AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-6250
SELECT ( CAST ( 98 AS INTEGER ) )
----
98

query I rowsort
SELECT 39 - + - 47 + + - 89 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6252
SELECT COALESCE ( + 66, + CAST( NULL AS SIGNED ) + + - 91 DIV - COUNT( * ) DIV 12 * + COALESCE ( + 58, - 20 + - 42, + + 6 + - + 15 - 31 DIV - CAST( NULL AS SIGNED ) * + + 52 ), + 59 ) * - 46 - + + 8 AS col1
----
-3044

skipif mysql # not compatible
query I rowsort label-6252
SELECT COALESCE ( + 66, + CAST ( NULL AS INTEGER ) + + - 91 / - COUNT ( * ) / 12 * + COALESCE ( + 58, - 20 + - 42, + + 6 + - + 15 - 31 / - CAST ( NULL AS INTEGER ) * + + 52 ), + 59 ) * - 46 - + + 8 AS col1
----
-3044

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT COUNT( * ) + - COUNT( + - 50 ) - + - 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6253
SELECT COUNT ( * ) + - COUNT ( + - 50 ) - + - 54 AS col0
----
54

query I rowsort
SELECT ( + ( - + 19 ) ) - + + 92 AS col2
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT 23 + - 69 * + COUNT( * ) DIV + COALESCE ( - 85, + 56 ) - 84 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6255
SELECT 23 + - 69 * + COUNT ( * ) / + COALESCE ( - 85, + 56 ) - 84 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6256
SELECT NULLIF ( COUNT( * ), 70 * ( - CASE - 66 WHEN + + CAST( NULL AS SIGNED ) THEN + CAST( NULL AS SIGNED ) WHEN 88 + + + 75 THEN NULL END ) ) * + 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6256
SELECT NULLIF ( COUNT ( * ), 70 * ( - CASE - 66 WHEN + + CAST ( NULL AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) WHEN 88 + + + 75 THEN NULL END ) ) * + 72 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6257
SELECT CAST( - + 86 AS SIGNED ) * 73 * MAX( ALL + - 84 ) * + 13 + + 79 * - + 60
----
6850836

skipif mysql # not compatible
query I rowsort label-6257
SELECT CAST ( - + 86 AS INTEGER ) * 73 * MAX ( ALL + - 84 ) * + 13 + + 79 * - + 60
----
6850836

query I rowsort
SELECT ALL 45 * + ( + 34 ) * + 87
----
133110

query II rowsort
SELECT COALESCE ( 75, + - CASE + + ( + - 66 ) WHEN - 50 THEN - 81 ELSE NULL END ) + 35, + ( - 13 ) AS col0
----
110
-13

query I rowsort
SELECT DISTINCT 63 * 80 * - 60
----
-302400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6261
SELECT 58 + - CAST( + + 61 AS SIGNED ) + + SUM( + 8 ) + 19 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6261
SELECT 58 + - CAST ( + + 61 AS INTEGER ) + + SUM ( + 8 ) + 19 AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6262
SELECT ALL 9 * - 12, SUM( ALL 27 ) DIV + + COUNT( * ) AS col1
----
-108
27

skipif mysql # not compatible
query II rowsort label-6262
SELECT ALL 9 * - 12, SUM ( ALL 27 ) / + + COUNT ( * ) AS col1
----
-108
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT + COUNT( ALL 93 ) + - 23 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6263
SELECT + COUNT ( ALL 93 ) + - 23 AS col0
----
-22

query I rowsort
SELECT + 73 + - 87
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT + COUNT( * ) * COALESCE ( 44, - COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-6265
SELECT + COUNT ( * ) * COALESCE ( 44, - COUNT ( * ) )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6266
SELECT + MIN( ALL 61 ) * - 64 / + + ( - CASE + 85 WHEN - 5 * - - 92 * MIN( - 56 ) THEN - 97 WHEN 88 THEN + + 86 END ) + + 58 + + SUM( ALL + 51 ) * - 1, + 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6266
SELECT + MIN ( ALL 61 ) * - 64 / + + ( - CASE + 85 WHEN - 5 * - - 92 * MIN ( - 56 ) THEN - 97 WHEN 88 THEN + + 86 END ) + + 58 + + SUM ( ALL + 51 ) * - 1, + 0 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT + SUM( DISTINCT 26 )
----
26

skipif mysql # not compatible
query I rowsort label-6267
SELECT + SUM ( DISTINCT 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT - ( - 21 ) * + CASE - - 85 WHEN 74 THEN NULL WHEN - 86 + + + 23 THEN - 66 + - COUNT( * ) + - COUNT( * ) * - 76 + - + 65 / - 97 + 70 + + - 7 ELSE NULL END / MIN( DISTINCT 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT - ( - 21 ) * + CASE - - 85 WHEN 74 THEN NULL WHEN - 86 + + + 23 THEN - 66 + - COUNT ( * ) + - COUNT ( * ) * - 76 + - + 65 / - 97 + 70 + + - 7 ELSE NULL END / MIN ( DISTINCT 50 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT - COALESCE ( 16, + 17, - + 86 + - ( + CAST( + 71 AS SIGNED ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-6269
SELECT - COALESCE ( 16, + 17, - + 86 + - ( + CAST ( + 71 AS INTEGER ) ) )
----
-16

query I rowsort
SELECT DISTINCT - 16 * 19 + + 99
----
-205

query I rowsort
SELECT DISTINCT 65 * + ( + 29 ) AS col1
----
1885

query I rowsort
SELECT DISTINCT - 8 * - + 79 + - 87
----
545

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL - 6 * + CASE - ( + 21 ) WHEN 59 THEN - 18 WHEN - + ( AVG ( + + 78 ) ) * 27 * + 44 * + - 34 - + + COALESCE ( + 0, - 99 / + 24 ) + + - 10 + 60 * + + 98 * - 4 * 78 * - COUNT( * ) + + + 64 THEN + 25 ELSE - ( COUNT( * ) ) END + COUNT( ALL ( - 99 ) ) * - ( + 7 * + 62 ) AS col0
----
-428

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL - 6 * + CASE - ( + 21 ) WHEN 59 THEN - 18 WHEN - + ( AVG ( + + 78 ) ) * 27 * + 44 * + - 34 - + + COALESCE ( + 0, - 99 / + 24 ) + + - 10 + 60 * + + 98 * - 4 * 78 * - COUNT ( * ) + + + 64 THEN + 25 ELSE - ( COUNT ( * ) ) END + COUNT ( ALL ( - 99 ) ) * - ( + 7 * + 62 ) AS col0
----
-428

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + - MIN( 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6274
SELECT + - MIN ( 8 ) AS col1
----
-8

query I rowsort
SELECT DISTINCT + + ( - 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT + 79 * + 63 + - - COALESCE ( 34, + 86 * + - 4 + - 36 ) * - 96 * - + COUNT( - - 88 ) * + 99
----
328113

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT + 79 * + 63 + - - COALESCE ( 34, + 86 * + - 4 + - 36 ) * - 96 * - + COUNT ( - - 88 ) * + 99
----
328113

query I rowsort
SELECT + 80 * + - 55 + - + 54 + 87 AS col1
----
-4367

query I rowsort
SELECT NULLIF ( 35, - - 81 ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6279
SELECT - CAST( 27 AS SIGNED ) - + 22 col0, 31
----
-49
31

skipif mysql # not compatible
query II rowsort label-6279
SELECT - CAST ( 27 AS INTEGER ) - + 22 col0, 31
----
-49
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6280
SELECT - - 60 + 87, NULLIF ( 33, - - 26 ) + - COALESCE ( - + 71, - - COUNT( * ) * 55 * + 27 + + MIN( DISTINCT + 38 ), - - 90, - NULLIF ( 46, - 61 ) ) + + - 43 + 52 + - + ( COUNT( + + 16 ) ) DIV - 53 col2
----
147
113

skipif mysql # not compatible
query II rowsort label-6280
SELECT - - 60 + 87, NULLIF ( 33, - - 26 ) + - COALESCE ( - + 71, - - COUNT ( * ) * 55 * + 27 + + MIN ( DISTINCT + 38 ), - - 90, - NULLIF ( 46, - 61 ) ) + + - 43 + 52 + - + ( COUNT ( + + 16 ) ) / - 53 col2
----
147
113

query I rowsort
SELECT ALL + 50 * 72 - ( 67 ) + - 5 * - 29 * - - 13 AS col1
----
5418

onlyif mysql # DIV for integer division: 
query I rowsort label-6282
SELECT ALL - + COALESCE ( - 53, 63 DIV + 41 ) * + 92 - + 92 AS col2
----
4784

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL - + COALESCE ( - 53, 63 / + 41 ) * + 92 - + 92 AS col2
----
4784

query II rowsort
SELECT ALL + 99 * + + 23 AS col0, + 39 + + 28
----
2277
67

query I rowsort
SELECT ALL - - 86 * - 20
----
-1720

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT CASE - SUM( + + ( + 54 ) ) WHEN + COUNT( * ) THEN - 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT CASE - SUM ( + + ( + 54 ) ) WHEN + COUNT ( * ) THEN - 44 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6286
SELECT DISTINCT COALESCE ( 63, - 77, 71 + - CAST( + - 8 AS SIGNED ) ), + 58 AS col0
----
63
58

skipif mysql # not compatible
query II rowsort label-6286
SELECT DISTINCT COALESCE ( 63, - 77, 71 + - CAST ( + - 8 AS INTEGER ) ), + 58 AS col0
----
63
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL + ( - 52 ) * + 66 + 42 + - 48 + - 64 * + 84 * - + COUNT( * ) * + 23 * - - 1
----
120210

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL + ( - 52 ) * + 66 + 42 + - 48 + - 64 * + 84 * - + COUNT ( * ) * + 23 * - - 1
----
120210

query I rowsort
SELECT - 75 * ( + COALESCE ( 18, + 1 ) )
----
-1350

query I rowsort
SELECT DISTINCT COALESCE ( - 31, 13 * - - 43 + 62 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL + SUM( DISTINCT - + 20 ) * - + 52
----
1040

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + SUM ( DISTINCT - + 20 ) * - + 52
----
1040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT + ( - - 0 ) * + CAST( NULL AS SIGNED ) + ( - CASE - - 5 WHEN - - 83 THEN - - 1 WHEN - - 7 * - 41 THEN NULL WHEN - + 38 THEN 98 ELSE - 21 END ) / + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT + ( - - 0 ) * + CAST ( NULL AS INTEGER ) + ( - CASE - - 5 WHEN - - 83 THEN - - 1 WHEN - - 7 * - 41 THEN NULL WHEN - + 38 THEN 98 ELSE - 21 END ) / + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT ALL 92 * - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL 92 * - - COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6293
SELECT - COALESCE ( - - CAST( CAST( 31 AS DECIMAL ) AS SIGNED ), + 13 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6293
SELECT - COALESCE ( - - CAST ( CAST ( 31 AS REAL ) AS INTEGER ), + 13 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT - 18 + - COUNT( * ) + + CASE - 92 WHEN 54 * + + 72 + - - 46 THEN + 79 + + 93 END * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - 18 + - COUNT ( * ) + + CASE - 92 WHEN 54 * + + 72 + - - 46 THEN + 79 + + 93 END * 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6295
SELECT 34 AS col0, - CAST( - - SUM( 23 ) AS SIGNED ) AS col2
----
34
-23

skipif mysql # not compatible
query II rowsort label-6295
SELECT 34 AS col0, - CAST ( - - SUM ( 23 ) AS INTEGER ) AS col2
----
34
-23

query I rowsort
SELECT - 44 * - 69 AS col2
----
3036

query I rowsort
SELECT ALL 56 + 6 + + + 43 AS col0
----
105

query I rowsort
SELECT + NULLIF ( - 78, + - 71 - - 13 ) - + + 63
----
-141

onlyif mysql # DIV for integer division: 
query II rowsort label-6299
SELECT ALL 49 DIV 28 + - + 57 AS col0, 45 AS col0
----
-56
45

skipif mysql # not compatible
query II rowsort label-6299
SELECT ALL 49 / 28 + - + 57 AS col0, 45 AS col0
----
-56
45

query I rowsort
SELECT + 14 * 26 AS col0
----
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6301
SELECT ALL 74 DIV - COUNT( * ) + + SUM( ALL - 6 ) DIV - 28 * + COUNT( * ), ( - 5 ) col0
----
-74
-5

skipif mysql # not compatible
query II rowsort label-6301
SELECT ALL 74 / - COUNT ( * ) + + SUM ( ALL - 6 ) / - 28 * + COUNT ( * ), ( - 5 ) col0
----
-74
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6302
SELECT + COALESCE ( + COALESCE ( - 58, - - 81 ), + ( ( ( - + 6 ) ) ) * + 77 + + 88, + + CAST( NULL AS SIGNED ) - + 4 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6302
SELECT + COALESCE ( + COALESCE ( - 58, - - 81 ), + ( ( ( - + 6 ) ) ) * + 77 + + 88, + + CAST ( NULL AS INTEGER ) - + 4 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT ALL - 26 / - CAST( NULL AS SIGNED ) + 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - 26 / - CAST ( NULL AS INTEGER ) + 23 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6304
SELECT ALL 54 * 55 * - + 21 AS col1, - NULLIF ( ( + 87 ), + CAST( + 97 AS SIGNED ) + - + 82 ) - + 64 + + - 95 * + COUNT( 97 ) * - COUNT( * ) * - - 1 * - 80 + - CAST( + 28 AS SIGNED ) * + - 1 + 86 AS col2
----
-62370
-7637

skipif mysql # not compatible
query II rowsort label-6304
SELECT ALL 54 * 55 * - + 21 AS col1, - NULLIF ( ( + 87 ), + CAST ( + 97 AS INTEGER ) + - + 82 ) - + 64 + + - 95 * + COUNT ( 97 ) * - COUNT ( * ) * - - 1 * - 80 + - CAST ( + 28 AS INTEGER ) * + - 1 + 86 AS col2
----
-62370
-7637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6305
SELECT + 30 DIV COALESCE ( - 6, + COUNT( * ) ) * 77 * 32 * + 82 + - MIN( DISTINCT 40 ) + + + 62
----
-1010218

skipif mysql # not compatible
query I rowsort label-6305
SELECT + 30 / COALESCE ( - 6, + COUNT ( * ) ) * 77 * 32 * + 82 + - MIN ( DISTINCT 40 ) + + + 62
----
-1010218

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT - COUNT( * ) * + - 63 - + + 91 * - 52 col1
----
4795

skipif mysql # not compatible
query I rowsort label-6306
SELECT - COUNT ( * ) * + - 63 - + + 91 * - 52 col1
----
4795

query I rowsort
SELECT + 41 + - 47
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT - - 54 DIV + 69 - + + NULLIF ( + - 42, + 25 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6308
SELECT - - 54 / + 69 - + + NULLIF ( + - 42, + 25 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT DISTINCT + + MIN( - - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT + + MIN ( - - 30 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6310
SELECT ALL - + SUM( 51 ) DIV + 30 + - 46 AS col2, + 51 * - CAST( NULL AS SIGNED )
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-6310
SELECT ALL - + SUM ( 51 ) / + 30 + - 46 AS col2, + 51 * - CAST ( NULL AS INTEGER )
----
-47
NULL

query II rowsort
SELECT - 84, 25 col2
----
-84
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6312
SELECT - + 25 * - + 24 / + CASE + - CAST( NULL AS SIGNED ) WHEN - 11 + - 15 - + 88 THEN NULL WHEN 7 + + + 98 THEN COUNT( * ) END + ( - 21 ) + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT - + 25 * - + 24 / + CASE + - CAST ( NULL AS INTEGER ) WHEN - 11 + - 15 - + 88 THEN NULL WHEN 7 + + + 98 THEN COUNT ( * ) END + ( - 21 ) + + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6313
SELECT ALL + 94 * COUNT( * ) DIV 48 * + 70 * 48 AS col2
----
3360

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + 94 * COUNT ( * ) / 48 * + 70 * 48 AS col2
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT + MAX( - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT + MAX ( - 68 ) AS col0
----
-68

query I rowsort
SELECT + + 31 + - NULLIF ( 15, + - 22 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6316
SELECT + ( CASE - 44 WHEN COUNT( * ) * + - CAST( + 30 AS SIGNED ) THEN - + 12 END ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6316
SELECT + ( CASE - 44 WHEN COUNT ( * ) * + - CAST ( + 30 AS INTEGER ) THEN - + 12 END ) * - 74
----
NULL

query I rowsort
SELECT ALL 83 * 13 col1
----
1079

query II rowsort
SELECT + + 85 AS col2, - 19 AS col1
----
85
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6319
SELECT DISTINCT - 1 * - + SUM( 44 ) AS col0, - 51
----
44
-51

skipif mysql # not compatible
query II rowsort label-6319
SELECT DISTINCT - 1 * - + SUM ( 44 ) AS col0, - 51
----
44
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + MAX( + 84 ) * + 48 - 80 + 85 + + + 61 * + 49 * - 97 AS col1
----
-285896

skipif mysql # not compatible
query I rowsort label-6320
SELECT + MAX ( + 84 ) * + 48 - 80 + 85 + + + 61 * + 49 * - 97 AS col1
----
-285896

query II rowsort
SELECT + ( - - 61 ) * - 43, 79 * - + 28 AS col0
----
-2623
-2212

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT - - 73 * CASE - 28 WHEN - 45 * - 69 * - 70 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT - - 73 * CASE - 28 WHEN - 45 * - 69 * - 70 THEN COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + - 42, - - 85 )
----
-42

query I rowsort
SELECT DISTINCT ( - - CASE + ( - 49 ) WHEN - - ( - ( - - 91 ) ) THEN NULL ELSE - - 45 END ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT ALL - 3 DIV - - 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - 3 / - - 33 AS col2
----
0

query I rowsort
SELECT - 28 + + 51 * - 36 + + + 57
----
-1807

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL COUNT( DISTINCT - + 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL COUNT ( DISTINCT - + 56 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 85 * + 37
----
-3145

query I rowsort
SELECT ALL - 76 * - 16 * 96
----
116736

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL - 4 + + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - 4 + + COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT COUNT( * ) + + 99 * 46
----
4555

skipif mysql # not compatible
query I rowsort label-6331
SELECT COUNT ( * ) + + 99 * 46
----
4555

query I rowsort
SELECT 74 - - 47
----
121

query I rowsort
SELECT ALL - 31 + - + 79 + 74 col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL + 68 + + + 44 + 12 * + SUM( + 26 ) AS col2
----
424

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL + 68 + + + 44 + 12 * + SUM ( + 26 ) AS col2
----
424

query I rowsort
SELECT 63 + + 78
----
141

query I rowsort
SELECT 2 * - 69
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT + 86 + + CASE 87 WHEN + - 94 THEN - 44 + + - 55 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT + 86 + + CASE 87 WHEN + - 94 THEN - 44 + + - 55 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT ALL + 41 + 20 + - COALESCE ( - ( 83 ), - CASE + 13 WHEN - 50 THEN NULL WHEN - 12 THEN + - 35 + + - CAST( + + 88 AS SIGNED ) ELSE NULL END * COUNT( * ) + 81 + + 84 + + 45 * + 43 + - MIN( + 87 ) + - 69 ) + 53 * - 99 * - - 63
----
-330417

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL + 41 + 20 + - COALESCE ( - ( 83 ), - CASE + 13 WHEN - 50 THEN NULL WHEN - 12 THEN + - 35 + + - CAST ( + + 88 AS INTEGER ) ELSE NULL END * COUNT ( * ) + 81 + + 84 + + 45 * + 43 + - MIN ( + 87 ) + - 69 ) + 53 * - 99 * - - 63
----
-330417

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT 83 + + - COUNT( * ) + - - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6339
SELECT 83 + + - COUNT ( * ) + - - COUNT ( * ) AS col2
----
83

query I rowsort
SELECT DISTINCT - 14 * - 73
----
1022

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL 2 + - - COUNT( + 58 ) + + 23 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL 2 + - - COUNT ( + 58 ) + + 23 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - 82 + - + 9 * + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 82 + - + 9 * + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT + ( + - COUNT( * ) ), + 87 AS col0
----
-1
87

skipif mysql # not compatible
query II rowsort label-6343
SELECT + ( + - COUNT ( * ) ), + 87 AS col0
----
-1
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT + + COUNT( * ) + + 66 * - 82
----
-5411

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + + COUNT ( * ) + + 66 * - 82
----
-5411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6345
SELECT - - 93 * + 36 + + - ( + CAST( NULL AS SIGNED ) ) + + - 57 * - 28 + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT - - 93 * + 36 + + - ( + CAST ( NULL AS INTEGER ) ) + + - 57 * - 28 + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + COALESCE ( - 93, + 42 + + + COUNT( * ) + + - MAX( + - 71 ) + + 99, - 33 * - 4 + + 60 + - + 73 + - + 0 * + MIN( + 23 ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6346
SELECT + COALESCE ( - 93, + 42 + + + COUNT ( * ) + + - MAX ( + - 71 ) + + 99, - 33 * - 4 + + 60 + - + 73 + - + 0 * + MIN ( + 23 ) ) AS col1
----
-93

query I rowsort
SELECT + - NULLIF ( + 12, 15 ) col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT + + 57 - + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + + 57 - + COUNT ( * ) AS col1
----
56

query I rowsort
SELECT - 71 + + 58
----
-13

query I rowsort
SELECT DISTINCT 10 - - 21 + + 77
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6351
SELECT DISTINCT - - COALESCE ( 81, CAST( + - 11 AS SIGNED ), + - 24 ) * + + ( + 84 ) + 67 + + 81 col2, COUNT( * ) + - CASE - 11 WHEN 14 THEN - - CASE - 73 WHEN - 12 THEN - + COUNT( * ) WHEN - + 32 THEN NULL ELSE NULL END - - COUNT( + - 64 ) * + + 93 / - 36 WHEN - + 12 + AVG ( - + 35 ) THEN + 4 ELSE NULL END AS col1
----
6952
NULL

skipif mysql # not compatible
query II rowsort label-6351
SELECT DISTINCT - - COALESCE ( 81, CAST ( + - 11 AS INTEGER ), + - 24 ) * + + ( + 84 ) + 67 + + 81 col2, COUNT ( * ) + - CASE - 11 WHEN 14 THEN - - CASE - 73 WHEN - 12 THEN - + COUNT ( * ) WHEN - + 32 THEN NULL ELSE NULL END - - COUNT ( + - 64 ) * + + 93 / - 36 WHEN - + 12 + AVG ( - + 35 ) THEN + 4 ELSE NULL END AS col1
----
6952
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6352
SELECT - 98 * - COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT - 98 * - COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL SUM( ALL + + 50 ) * - 88 AS col2
----
-4400

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL SUM ( ALL + + 50 ) * - 88 AS col2
----
-4400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6354
SELECT + COUNT( * ) * 64 + + 32 + + + 65 * 66 * - 30 - + 84 * - - 5 + - 37 DIV 32 * ( + 38 ) * + 99 - 25
----
-132811

skipif mysql # not compatible
query I rowsort label-6354
SELECT + COUNT ( * ) * 64 + + 32 + + + 65 * 66 * - 30 - + 84 * - - 5 + - 37 / 32 * ( + 38 ) * + 99 - 25
----
-132811

query I rowsort
SELECT 98 * + 26 * - 90 AS col2
----
-229320

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT 77 DIV - 92 * - 57 + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6356
SELECT 77 / - 92 * - 57 + 59 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT CAST( - 56 AS SIGNED ) * - + 31
----
1736

skipif mysql # not compatible
query I rowsort label-6357
SELECT CAST ( - 56 AS INTEGER ) * - + 31
----
1736

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6358
SELECT + 47 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT + 47 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT NULLIF ( - 97, 51 ) + + - 81 AS col2
----
-178

query II rowsort
SELECT + 28 col2, + 6 * - + 49 * + 23 AS col1
----
28
-6762

query I rowsort
SELECT 58 * 62
----
3596

query I rowsort
SELECT ALL - 99 + + 88
----
-11

query I rowsort
SELECT DISTINCT - 90 * + + 92 col1
----
-8280

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT COUNT( * ) * + 93 * - - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6364
SELECT COUNT ( * ) * + 93 * - - COUNT ( * ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT ALL 80 + + + CASE + + ( - - 84 ) WHEN 51 * + + 79 * COUNT( * ) THEN - COUNT( * ) + - CAST( - 51 AS SIGNED ) WHEN - + 57 + CASE + 57 WHEN + 50 - - + 38 + + 66 THEN + 34 WHEN - + MIN( - NULLIF ( - 54, + 39 - + 66 ) ) THEN - + 67 END THEN - 23 * + MIN( + 85 ) + - COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL 80 + + + CASE + + ( - - 84 ) WHEN 51 * + + 79 * COUNT ( * ) THEN - COUNT ( * ) + - CAST ( - 51 AS INTEGER ) WHEN - + 57 + CASE + 57 WHEN + 50 - - + 38 + + 66 THEN + 34 WHEN - + MIN ( - NULLIF ( - 54, + 39 - + 66 ) ) THEN - + 67 END THEN - 23 * + MIN ( + 85 ) + - COUNT ( * ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT 93 + + - COUNT( * ) * - 19 AS col0, + 82 * + 85 AS col2
----
112
6970

skipif mysql # not compatible
query II rowsort label-6366
SELECT 93 + + - COUNT ( * ) * - 19 AS col0, + 82 * + 85 AS col2
----
112
6970

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT ALL + 73 + 6 DIV - - 33
----
73

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + 73 + 6 / - - 33
----
73

query I rowsort
SELECT ALL 44 + 30 + - 70 + 32 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT + SUM( + 26 ) + - 36 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT + SUM ( + 26 ) + - 36 AS col2
----
-10

query I rowsort
SELECT ALL + 37 + + + 99
----
136

query I rowsort
SELECT 98 * + 40
----
3920

query I rowsort
SELECT DISTINCT + 28 * - 74
----
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT 73 - + COUNT( * ) * + + 31 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6373
SELECT 73 - + COUNT ( * ) * + + 31 AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT + 80 DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6374
SELECT + 80 / - 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL + COUNT( * ) - + 0 * + + COUNT( 11 )
----
1

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + COUNT ( * ) - + 0 * + + COUNT ( 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT - MAX( 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-6376
SELECT - MAX ( 95 ) AS col2
----
-95

query I rowsort
SELECT 51 - - 8 AS col1
----
59

query I rowsort
SELECT DISTINCT - 28 * + 66
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT DISTINCT - 16 * CAST( - - 46 AS SIGNED ) * + 29 + + CASE - + 52 WHEN + 94 * - CASE - + 34 WHEN - CAST( - 99 AS SIGNED ) * - ( - + 59 ) * SUM( ALL 16 ) THEN + COALESCE ( - + 70, + 44, + - 58 ) + 73 END / COUNT( * ) THEN NULL ELSE + 38 END + - COUNT( * ) * 11 - - 83
----
-21234

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT - 16 * CAST ( - - 46 AS INTEGER ) * + 29 + + CASE - + 52 WHEN + 94 * - CASE - + 34 WHEN - CAST ( - 99 AS INTEGER ) * - ( - + 59 ) * SUM ( ALL 16 ) THEN + COALESCE ( - + 70, + 44, + - 58 ) + 73 END / COUNT ( * ) THEN NULL ELSE + 38 END + - COUNT ( * ) * 11 - - 83
----
-21234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT 43 - + 71 * + 76 + - CAST( - - 5 AS SIGNED ) - + COUNT( * ) + - SUM( ALL - - CAST( 52 AS SIGNED ) ) AS col2
----
-5411

skipif mysql # not compatible
query I rowsort label-6380
SELECT 43 - + 71 * + 76 + - CAST ( - - 5 AS INTEGER ) - + COUNT ( * ) + - SUM ( ALL - - CAST ( 52 AS INTEGER ) ) AS col2
----
-5411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6381
SELECT DISTINCT - 67 * - CASE MAX( ALL + NULLIF ( + CAST( NULL AS SIGNED ), + 83 * ( 20 ) * - NULLIF ( - 30, - + 78 ) ) ) WHEN + + 88 THEN - 57 - - + 57 WHEN + + COALESCE ( + 34, - - COUNT( * ), - ( + 52 ) + - + 55 * - CASE + 77 WHEN - 59 THEN + + 47 / - + 50 + 24 END ) THEN NULL END + + MAX( - 99 ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT - 67 * - CASE MAX ( ALL + NULLIF ( + CAST ( NULL AS INTEGER ), + 83 * ( 20 ) * - NULLIF ( - 30, - + 78 ) ) ) WHEN + + 88 THEN - 57 - - + 57 WHEN + + COALESCE ( + 34, - - COUNT ( * ), - ( + 52 ) + - + 55 * - CASE + 77 WHEN - 59 THEN + + 47 / - + 50 + 24 END ) THEN NULL END + + MAX ( - 99 ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6382
SELECT ALL - - NULLIF ( + COUNT( * ), + - 42 ) AS col1, 14
----
1
14

skipif mysql # not compatible
query II rowsort label-6382
SELECT ALL - - NULLIF ( + COUNT ( * ), + - 42 ) AS col1, 14
----
1
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6383
SELECT - 84 DIV - + CAST( + 96 AS SIGNED ) * + + 22 + + MAX( ALL - 56 ) + - 16
----
-72

skipif mysql # not compatible
query I rowsort label-6383
SELECT - 84 / - + CAST ( + 96 AS INTEGER ) * + + 22 + + MAX ( ALL - 56 ) + - 16
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT - + 23 * - CASE + 26 WHEN - - NULLIF ( - + 88, + 87 + - - COUNT( * ) ) THEN ( 14 ) * - 90 + - + 11 + 50 - + - 89 WHEN + 55 THEN + - 42 END + - + COUNT( * ) / - 42 - 79 - 15 * - + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT - + 23 * - CASE + 26 WHEN - - NULLIF ( - + 88, + 87 + - - COUNT ( * ) ) THEN ( 14 ) * - 90 + - + 11 + 50 - + - 89 WHEN + 55 THEN + - 42 END + - + COUNT ( * ) / - 42 - 79 - 15 * - + 42 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT - 88 DIV 98 - + - 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6385
SELECT - 88 / 98 - + - 9 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL - + CASE - - 23 WHEN - NULLIF ( - ( - 69 ), COUNT( * ) * - ( + COUNT( * ) ) * - ( - 66 ) ) THEN - + 8 + + COALESCE ( 99, - 80 - 13 + + + 99, - + ( + COUNT( * ) ) + + - 47 * - 54, + 81 ) + + ( + - ( 15 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL - + CASE - - 23 WHEN - NULLIF ( - ( - 69 ), COUNT ( * ) * - ( + COUNT ( * ) ) * - ( - 66 ) ) THEN - + 8 + + COALESCE ( 99, - 80 - 13 + + + 99, - + ( + COUNT ( * ) ) + + - 47 * - 54, + 81 ) + + ( + - ( 15 ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT DISTINCT + ( + 29 ) DIV + - 61 * + ( + + 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT + ( + 29 ) / + - 61 * + ( + + 26 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6388
SELECT 1 AS col1, + MIN( - - 98 ) * COALESCE ( 32, - 45 ) - + 74 * 70 * + 63
----
1
-323204

skipif mysql # not compatible
query II rowsort label-6388
SELECT 1 AS col1, + MIN ( - - 98 ) * COALESCE ( 32, - 45 ) - + 74 * 70 * + 63
----
1
-323204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6389
SELECT 89 DIV + 65 + + - COUNT( ALL + CAST( NULL AS SIGNED ) ) + 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6389
SELECT 89 / + 65 + + - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + 54 AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT DISTINCT + - 50 DIV - - 65 * - - 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT + - 50 / - - 65 * - - 41 AS col1
----
0

query II rowsort
SELECT + 37, + 14 AS col1
----
37
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT 38 + + MIN( 43 ) + - + 4 * - 82 AS col1
----
409

skipif mysql # not compatible
query I rowsort label-6392
SELECT 38 + + MIN ( 43 ) + - + 4 * - 82 AS col1
----
409

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL - 99 * + NULLIF ( - COUNT( * ), 28 ) * + SUM( DISTINCT + 51 ) + - 85 - + 1 AS col0
----
4963

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - 99 * + NULLIF ( - COUNT ( * ), 28 ) * + SUM ( DISTINCT + 51 ) + - 85 - + 1 AS col0
----
4963

query II rowsort
SELECT ALL + 32 AS col0, 75
----
32
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT MAX( DISTINCT 86 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-6395
SELECT MAX ( DISTINCT 86 ) col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT - 31 + + COUNT( 36 ) + - SUM( DISTINCT - 77 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT - 31 + + COUNT ( 36 ) + - SUM ( DISTINCT - 77 ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6397
SELECT - MIN( ALL - 92 ) DIV - 91
----
-1

skipif mysql # not compatible
query I rowsort label-6397
SELECT - MIN ( ALL - 92 ) / - 91
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6398
SELECT + CAST( ( - 67 ) AS SIGNED ) DIV - - 70
----
0

skipif mysql # not compatible
query I rowsort label-6398
SELECT + CAST ( ( - 67 ) AS INTEGER ) / - - 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6399
SELECT COUNT( * ), 51 + + COUNT( * ) + - CASE WHEN NOT - NULLIF ( - 41, COUNT( * ) ) IS NULL THEN - - 84 DIV 72 * 17 + + CASE ( + + ( - + NULLIF ( + COUNT( * ), 9 * - COALESCE ( + 51, + 7 ) - - 65 - - 53 + - + AVG ( ALL - + 0 ) + - 26 + - ( + + 20 ) DIV - ( ( - + 11 ) ) * - CAST( NULL AS SIGNED ) DIV 38 ) ) ) WHEN + MIN( DISTINCT - 4 ) THEN NULL ELSE + 19 * 34 END ELSE NULL END + + 48 * 84 AS col2
----
1
3421

skipif mysql # not compatible
query II rowsort label-6399
SELECT COUNT ( * ), 51 + + COUNT ( * ) + - CASE WHEN NOT - NULLIF ( - 41, COUNT ( * ) ) IS NULL THEN - - 84 / 72 * 17 + + CASE ( + + ( - + NULLIF ( + COUNT ( * ), 9 * - COALESCE ( + 51, + 7 ) - - 65 - - 53 + - + AVG ( ALL - + 0 ) + - 26 + - ( + + 20 ) / - ( ( - + 11 ) ) * - CAST ( NULL AS INTEGER ) / 38 ) ) ) WHEN + MIN ( DISTINCT - 4 ) THEN NULL ELSE + 19 * 34 END ELSE NULL END + + 48 * 84 AS col2
----
1
3421

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL COUNT( * ) + - 5 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL COUNT ( * ) + - 5 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) + + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + + 2 AS col1
----
NULL

query I rowsort
SELECT ALL + 68 + - 50 + - 58 AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6403
SELECT + NULLIF ( - 32, - + 24 / CASE + 34 WHEN + 32 + + - 99 + - + 12 + 69 / + CAST( NULL AS SIGNED ) THEN 82 END + - COALESCE ( COUNT( * ), COUNT( * ) ) + CASE + 4 WHEN + ( - 69 ) THEN - 84 + 15 + + 83 END + 49 + + 76 * - CAST( 79 AS SIGNED ) ) + - 87
----
-119

skipif mysql # not compatible
query I rowsort label-6403
SELECT + NULLIF ( - 32, - + 24 / CASE + 34 WHEN + 32 + + - 99 + - + 12 + 69 / + CAST ( NULL AS INTEGER ) THEN 82 END + - COALESCE ( COUNT ( * ), COUNT ( * ) ) + CASE + 4 WHEN + ( - 69 ) THEN - 84 + 15 + + 83 END + 49 + + 76 * - CAST ( 79 AS INTEGER ) ) + - 87
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL COUNT( * ) + + CASE 7 WHEN + - COUNT( * ) THEN + + 15 + - - 83 WHEN - + 14 THEN NULL ELSE NULL END + + - 83 * - - 56 + + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL COUNT ( * ) + + CASE 7 WHEN + - COUNT ( * ) THEN + + 15 + - - 83 WHEN - + 14 THEN NULL ELSE NULL END + + - 83 * - - 56 + + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6405
SELECT DISTINCT 55, - COUNT( * ) - - 48 * - 76 * COALESCE ( - 16, + - 19 ) AS col1
----
55
58367

skipif mysql # not compatible
query II rowsort label-6405
SELECT DISTINCT 55, - COUNT ( * ) - - 48 * - 76 * COALESCE ( - 16, + - 19 ) AS col1
----
55
58367

onlyif mysql # aggregate syntax: 
query II rowsort label-6406
SELECT 83 AS col0, + CASE 7 WHEN 88 THEN + - COUNT( * ) WHEN + + 63 * 62 THEN NULL WHEN - 46 THEN + - 22 * - + 24 + + - 31 ELSE NULL END / + 81 + + + 45
----
83
NULL

skipif mysql # not compatible
query II rowsort label-6406
SELECT 83 AS col0, + CASE 7 WHEN 88 THEN + - COUNT ( * ) WHEN + + 63 * 62 THEN NULL WHEN - 46 THEN + - 22 * - + 24 + + - 31 ELSE NULL END / + 81 + + + 45
----
83
NULL

query I rowsort
SELECT + 85 - + 64
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT + 55 + + 76 DIV - 86
----
55

skipif mysql # not compatible
query I rowsort label-6408
SELECT + 55 + + 76 / - 86
----
55

query I rowsort
SELECT + 61 + + - 17 * - - 81
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL COUNT( * ) * + + 66 * 69
----
4554

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL COUNT ( * ) * + + 66 * 69
----
4554

query I rowsort
SELECT - 37 + + 69 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT + 17 + - COUNT( + 13 )
----
16

skipif mysql # not compatible
query I rowsort label-6412
SELECT + 17 + - COUNT ( + 13 )
----
16

query II rowsort
SELECT ALL 91, 51 AS col1
----
91
51

query I rowsort
SELECT + 30 + - - ( 67 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT ALL 0 - COUNT( * ) AS col1, - 47 AS col1
----
-1
-47

skipif mysql # not compatible
query II rowsort label-6415
SELECT ALL 0 - COUNT ( * ) AS col1, - 47 AS col1
----
-1
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT + + 2 * 11 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT + + 2 * 11 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT DISTINCT COUNT( + 87 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT COUNT ( + 87 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6418
SELECT - - ( - + 32 ) * + + 86 * + ( - COALESCE ( 97, + 89 + + - 1 + COUNT( * ) * 42 + - 46, - 16, - 7 * + COUNT( * ) DIV + 10 * - COALESCE ( + ( - 52 ), 84, - + 25 * + COUNT( * ) ) + COALESCE ( + + COUNT( * ), - CAST( - 94 AS SIGNED ) * - 56 * - - ( - 88 ), + CAST( COUNT( * ) AS SIGNED ) ) ) ) * - + 68 AS col0
----
-18152192

skipif mysql # not compatible
query I rowsort label-6418
SELECT - - ( - + 32 ) * + + 86 * + ( - COALESCE ( 97, + 89 + + - 1 + COUNT ( * ) * 42 + - 46, - 16, - 7 * + COUNT ( * ) / + 10 * - COALESCE ( + ( - 52 ), 84, - + 25 * + COUNT ( * ) ) + COALESCE ( + + COUNT ( * ), - CAST ( - 94 AS INTEGER ) * - 56 * - - ( - 88 ), + CAST ( COUNT ( * ) AS INTEGER ) ) ) ) * - + 68 AS col0
----
-18152192

query I rowsort
SELECT - + 68 * - - 94 + 19
----
-6373

query II rowsort
SELECT DISTINCT 81 AS col2, 64
----
81
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6421
SELECT + 19 DIV 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6421
SELECT + 19 / 71 AS col0
----
0

query I rowsort
SELECT - 2 * - + 67 - + + 97
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6423
SELECT DISTINCT + + 73 DIV + 95 * - 14 + - + 42 DIV + CAST( 34 AS SIGNED ) - + 49 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT + + 73 / + 95 * - 14 + - + 42 / + CAST ( 34 AS INTEGER ) - + 49 AS col0
----
-50

query II rowsort
SELECT + 21 AS col1, + 25
----
21
25

query I rowsort
SELECT ALL 64 * - ( - - 38 ) + - 35 - + 16
----
-2483

query II rowsort
SELECT DISTINCT + - 34 AS col0, COALESCE ( - - 32, + 91, ( + 9 ) )
----
-34
32

onlyif mysql # DIV for integer division: 
query II rowsort label-6427
SELECT + - 6 AS col0, + 69 DIV - - 61
----
-6
1

skipif mysql # not compatible
query II rowsort label-6427
SELECT + - 6 AS col0, + 69 / - - 61
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT + SUM( + 84 ) * CASE + - 38 WHEN - 19 + + + 45 * + MIN( ALL + COALESCE ( - 31, + - 27 + - 13, - 54 ) ) THEN + - 90 + + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT + SUM ( + 84 ) * CASE + - 38 WHEN - 19 + + + 45 * + MIN ( ALL + COALESCE ( - 31, + - 27 + - 13, - 54 ) ) THEN + - 90 + + 50 END
----
NULL

query I rowsort
SELECT 17 * - + 79 * - + 43 * 19 - - - 48 AS col1
----
1097183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT + CAST( + - 4 AS SIGNED ) + + 89 col1
----
85

skipif mysql # not compatible
query I rowsort label-6430
SELECT + CAST ( + - 4 AS INTEGER ) + + 89 col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT ALL COUNT( * ) * 61 * + + 87 + 70
----
5377

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL COUNT ( * ) * 61 * + + 87 + 70
----
5377

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT NULLIF ( COUNT( * ), 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6432
SELECT NULLIF ( COUNT ( * ), 67 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT - ( - COALESCE ( - + 12, - ( - 61 ) DIV + - 58 ) ) - + 27
----
-39

skipif mysql # not compatible
query I rowsort label-6433
SELECT - ( - COALESCE ( - + 12, - ( - 61 ) / + - 58 ) ) - + 27
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6434
SELECT ALL + 82 DIV - 59 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL + 82 / - 59 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT COALESCE ( + - NULLIF ( 69, + ( + - 70 ) + 99 * - + COUNT( - 35 ) ), + 87 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6435
SELECT COALESCE ( + - NULLIF ( 69, + ( + - 70 ) + 99 * - + COUNT ( - 35 ) ), + 87 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-6436
SELECT + COUNT( ALL - 4 ) AS col2, 82 * + 91 * - 91 AS col0
----
1
-679042

skipif mysql # not compatible
query II rowsort label-6436
SELECT + COUNT ( ALL - 4 ) AS col2, 82 * + 91 * - 91 AS col0
----
1
-679042

query II rowsort
SELECT + 68 * + - 90 AS col0, 82
----
-6120
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6438
SELECT + 61 + 65, - COUNT( * ) * + 18 AS col2
----
126
-18

skipif mysql # not compatible
query II rowsort label-6438
SELECT + 61 + 65, - COUNT ( * ) * + 18 AS col2
----
126
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT ALL 43 DIV ( - 36 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL 43 / ( - 36 ) AS col0
----
-1

query I rowsort
SELECT - 8 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT DISTINCT MAX( ALL - ( + + 92 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT MAX ( ALL - ( + + 92 ) )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * )
----
NULL

query II rowsort
SELECT + + 72 * 73 + - 67 AS col2, 9
----
5189
9

query I rowsort
SELECT + 8 + + - 30 - 15
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT CASE - 48 WHEN - + COUNT( * ) * + 20 THEN - COUNT( * ) + COUNT( * ) + - NULLIF ( + 71, + 84 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT CASE - 48 WHEN - + COUNT ( * ) * + 20 THEN - COUNT ( * ) + COUNT ( * ) + - NULLIF ( + 71, + 84 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT DISTINCT - 84 + - COUNT( DISTINCT - COALESCE ( - - 16, + 17 / 69, - - 47 ) ) * + 6
----
-90

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT - 84 + - COUNT ( DISTINCT - COALESCE ( - - 16, + 17 / 69, - - 47 ) ) * + 6
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6447
SELECT ALL 61 + - COUNT( - CAST( NULL AS SIGNED ) ) AS col1, - 72 AS col1
----
61
-72

skipif mysql # not compatible
query II rowsort label-6447
SELECT ALL 61 + - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1, - 72 AS col1
----
61
-72

query II rowsort
SELECT + + 20 - 46 AS col0, - 39 AS col0
----
-26
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-6449
SELECT + - 46 - COUNT( * ) AS col2, + SUM( - 30 ) + 46
----
-47
16

skipif mysql # not compatible
query II rowsort label-6449
SELECT + - 46 - COUNT ( * ) AS col2, + SUM ( - 30 ) + 46
----
-47
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT CASE - 6 WHEN + 6 / - COUNT( * ) THEN NULL WHEN + 64 THEN NULL ELSE + + 59 END / + CAST( NULL AS SIGNED ) * + - 13 * 79 * + 60 + + SUM( - + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT CASE - 6 WHEN + 6 / - COUNT ( * ) THEN NULL WHEN + 64 THEN NULL ELSE + + 59 END / + CAST ( NULL AS INTEGER ) * + - 13 * 79 * + 60 + + SUM ( - + 97 )
----
NULL

query I rowsort
SELECT DISTINCT 23 + + ( + 88 ) + - 94 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6452
SELECT ALL - CAST( - ( - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - CAST ( - ( - COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT DISTINCT - 2 DIV 9 * 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - 2 / 9 * 18 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6454
SELECT 21 DIV + 28, 48 + + MIN( DISTINCT - + 52 ) + + COUNT( * ) DIV - 53 + + 43 * 34 AS col0
----
0
1458

skipif mysql # not compatible
query II rowsort label-6454
SELECT 21 / + 28, 48 + + MIN ( DISTINCT - + 52 ) + + COUNT ( * ) / - 53 + + 43 * 34 AS col0
----
0
1458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6455
SELECT ALL - 91 + + 52 + - COUNT( * ) DIV + 27
----
-39

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL - 91 + + 52 + - COUNT ( * ) / + 27
----
-39

query I rowsort
SELECT + + 85 * - 47 - - + 24
----
-3971

query I rowsort
SELECT 51 + 59 AS col2
----
110

query I rowsort
SELECT 57 * 63 AS col1
----
3591

query II rowsort
SELECT + 28 AS col1, + ( ( + 49 ) ) AS col1
----
28
49

query I rowsort
SELECT ALL - 41 * + COALESCE ( - - 43, + 38 ) AS col2
----
-1763

query II rowsort
SELECT ALL + 86 + 6 + - 30, + CASE WHEN 1 IN ( - 1 * 38 + + - ( + 61 ) + - 3 ) THEN NULL ELSE + 41 END AS col0
----
62
41

query II rowsort
SELECT 97 AS col1, - 3 AS col1
----
97
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT 63 * - + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT 63 * - + COUNT ( * )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT ALL - CAST( 48 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL - CAST ( 48 AS INTEGER ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT DISTINCT - MIN( DISTINCT + + 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT - MIN ( DISTINCT + + 36 ) AS col2
----
-36

query I rowsort
SELECT DISTINCT + 69 * - NULLIF ( - 61, + 54 ) AS col0
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT + ( - 34 ) * + 46 + + COUNT( * ) + + ( + - 91 ) + 87 AS col1
----
-1567

skipif mysql # not compatible
query I rowsort label-6467
SELECT + ( - 34 ) * + 46 + + COUNT ( * ) + + ( + - 91 ) + 87 AS col1
----
-1567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6468
SELECT 11 * + MAX( ALL 28 ) * - COUNT( * ) * + COALESCE ( + 78, + 92 - + 98 ) - - - CAST( NULL AS SIGNED ) / - + 42 - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT 11 * + MAX ( ALL 28 ) * - COUNT ( * ) * + COALESCE ( + 78, + 92 - + 98 ) - - - CAST ( NULL AS INTEGER ) / - + 42 - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT ALL - 47 AS col2, - COUNT( * ) * - - 6
----
-47
-6

skipif mysql # not compatible
query II rowsort label-6469
SELECT ALL - 47 AS col2, - COUNT ( * ) * - - 6
----
-47
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6470
SELECT NULLIF ( + 23, + 86 ) * - AVG ( - 0 ) * - 30 / + 40 + - + CASE CAST( NULL AS DECIMAL ) WHEN - 24 THEN + 39 * + COUNT( * ) WHEN 53 / + + 72 THEN NULL ELSE NULL END * + 68 - 30 + - 8 + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT NULLIF ( + 23, + 86 ) * - AVG ( - 0 ) * - 30 / + 40 + - + CASE CAST ( NULL AS REAL ) WHEN - 24 THEN + 39 * + COUNT ( * ) WHEN 53 / + + 72 THEN NULL ELSE NULL END * + 68 - 30 + - 8 + 46
----
NULL

query II rowsort
SELECT + 5, - NULLIF ( - - 36, + 75 * ( - 89 ) * 41 ) AS col2
----
5
-36

query I rowsort
SELECT ALL - CASE + 53 WHEN + 59 * 0 * - 32 + - + 62 THEN + 94 / - 31 * - 54 * - ( + 40 ) END AS col1
----
NULL

query I rowsort
SELECT 98 + + 38 + + COALESCE ( - NULLIF ( 71, ( - 28 ) ), + - 89 ) + + 69
----
134

query I rowsort
SELECT 8 + - + 29
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT - COUNT( * ) * 63
----
-63

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT - COUNT ( * ) * 63
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT DISTINCT - 33 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT - 33 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL - COUNT( * ) * + 94
----
-94

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL - COUNT ( * ) * + 94
----
-94

query I rowsort
SELECT - 26 * - 45
----
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6479
SELECT ALL + 82 AS col0, + 76 DIV - - 79 * - 75 + + 61 - + COALESCE ( - 44, + - 62, + - CASE - + 62 WHEN 31 THEN NULL WHEN COUNT( * ) * - 73 + + 19 THEN NULL ELSE - 22 DIV - COUNT( * ) END + - 82 * - - 90, - 50 ) + - 80 * + MIN( - + 37 )
----
82
3065

skipif mysql # not compatible
query II rowsort label-6479
SELECT ALL + 82 AS col0, + 76 / - - 79 * - 75 + + 61 - + COALESCE ( - 44, + - 62, + - CASE - + 62 WHEN 31 THEN NULL WHEN COUNT ( * ) * - 73 + + 19 THEN NULL ELSE - 22 / - COUNT ( * ) END + - 82 * - - 90, - 50 ) + - 80 * + MIN ( - + 37 )
----
82
3065

query I rowsort
SELECT DISTINCT - + 35 * 39
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT COUNT( * ) + - + 63 + + + 58
----
-4

skipif mysql # not compatible
query I rowsort label-6481
SELECT COUNT ( * ) + - + 63 + + + 58
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT - CAST( NULL AS SIGNED ) - - + ( 10 ) * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT - CAST ( NULL AS INTEGER ) - - + ( 10 ) * 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT - 92 DIV COUNT( * ) * NULLIF ( 93, - + 24 * - 21 + + 70 + + 65 + 73 ) AS col0
----
-8556

skipif mysql # not compatible
query I rowsort label-6483
SELECT - 92 / COUNT ( * ) * NULLIF ( 93, - + 24 * - 21 + + 70 + + 65 + 73 ) AS col0
----
-8556

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT - - NULLIF ( - + COUNT( * ), - - 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6484
SELECT - - NULLIF ( - + COUNT ( * ), - - 5 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6485
SELECT + ( 71 ) + + 88, - 2 * - - 35 * NULLIF ( + ( ( + - 96 ) ), + 8 / - 94 - + NULLIF ( + - 60, + 27 * + + 71 ) * + 84 + + COUNT( * ) ) AS col1
----
159
6720

skipif mysql # not compatible
query II rowsort label-6485
SELECT + ( 71 ) + + 88, - 2 * - - 35 * NULLIF ( + ( ( + - 96 ) ), + 8 / - 94 - + NULLIF ( + - 60, + 27 * + + 71 ) * + 84 + + COUNT ( * ) ) AS col1
----
159
6720

onlyif mysql # DIV for integer division: 
query I rowsort label-6486
SELECT ALL - 55 + + 14 * + 87 DIV 82 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - 55 + + 14 * + 87 / 82 AS col0
----
-41

query I rowsort
SELECT + 15 + - ( + - 57 ) + - 66
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6488
SELECT ( + ( NULLIF ( CAST( - CAST( + - 59 AS DECIMAL ) AS SIGNED ), + 17 + - - COUNT( * ) ) ) ) + 30 - + - 21
----
110

skipif mysql # not compatible
query I rowsort label-6488
SELECT ( + ( NULLIF ( CAST ( - CAST ( + - 59 AS REAL ) AS INTEGER ), + 17 + - - COUNT ( * ) ) ) ) + 30 - + - 21
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT ALL - 5 + 98 - - 50 DIV + ( + 91 ) * + 68
----
93

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - 5 + 98 - - 50 / + ( + 91 ) * + 68
----
93

query I rowsort
SELECT ALL - 94 + - 92 + 2 * 39 AS col2
----
-108

query I rowsort
SELECT 67 + - - 67 AS col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - SUM( + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-6492
SELECT - SUM ( + 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + NULLIF ( + - 80, 14 ) * ( - MIN( 49 ) ) + 84 + 90
----
4094

skipif mysql # not compatible
query I rowsort label-6493
SELECT + NULLIF ( + - 80, 14 ) * ( - MIN ( 49 ) ) + 84 + 90
----
4094

onlyif mysql # aggregate syntax: 
query II rowsort label-6494
SELECT SUM( DISTINCT + 6 ) AS col1, 48 AS col0
----
6
48

skipif mysql # not compatible
query II rowsort label-6494
SELECT SUM ( DISTINCT + 6 ) AS col1, 48 AS col0
----
6
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6495
SELECT ALL 16 - + - CASE + CAST( NULL AS SIGNED ) WHEN + 23 + - - 64 THEN COUNT( * ) WHEN 14 * - COUNT( * ) * + 68 + - + 51 THEN NULL END * CAST( NULL AS SIGNED ) - 98 AS col1, - 23 + - - 92
----
NULL
69

skipif mysql # not compatible
query II rowsort label-6495
SELECT ALL 16 - + - CASE + CAST ( NULL AS INTEGER ) WHEN + 23 + - - 64 THEN COUNT ( * ) WHEN 14 * - COUNT ( * ) * + 68 + - + 51 THEN NULL END * CAST ( NULL AS INTEGER ) - 98 AS col1, - 23 + - - 92
----
NULL
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT 67 * - COUNT( * ) * 47 AS col1
----
-3149

skipif mysql # not compatible
query I rowsort label-6496
SELECT 67 * - COUNT ( * ) * 47 AS col1
----
-3149

query I rowsort
SELECT ALL - 82 * + 2 * 93 * 22 * 77 AS col2
----
-25836888

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT SUM( DISTINCT - - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6498
SELECT SUM ( DISTINCT - - 19 ) AS col0
----
19

query I rowsort
SELECT ALL 80 - + - 51
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6500
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) * + 25 DIV + - ( - 9 )
----
0

skipif mysql # not compatible
query I rowsort label-6500
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * + 25 / + - ( - 9 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT NULLIF ( - 54, + - ( - ( + + 83 ) ) DIV 97 ) DIV + 23
----
-2

skipif mysql # not compatible
query I rowsort label-6501
SELECT NULLIF ( - 54, + - ( - ( + + 83 ) ) / 97 ) / + 23
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT MIN( DISTINCT - 58 ) * ( - 44 ) * + + 0 * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT MIN ( DISTINCT - 58 ) * ( - 44 ) * + + 0 * - COUNT ( * ) col2
----
0

query I rowsort
SELECT 18 + - 46
----
-28

query I rowsort
SELECT ALL 68 * ( - 93 )
----
-6324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6505
SELECT 92 * COUNT( * ) DIV - 24
----
-3

skipif mysql # not compatible
query I rowsort label-6505
SELECT 92 * COUNT ( * ) / - 24
----
-3

query I rowsort
SELECT 27 + + 31 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT NULLIF ( 73, - 56 ) * COUNT( * ) + 51 * 99 col2
----
5122

skipif mysql # not compatible
query I rowsort label-6507
SELECT NULLIF ( 73, - 56 ) * COUNT ( * ) + 51 * 99 col2
----
5122

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT ALL 14 DIV 16 * + 16 DIV + - 11
----
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL 14 / 16 * + 16 / + - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT NULLIF ( - COUNT( * ), 70 ) * - - COUNT( * ) - COUNT( * ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-6509
SELECT NULLIF ( - COUNT ( * ), 70 ) * - - COUNT ( * ) - COUNT ( * ) col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6510
SELECT ALL - CAST( NULL AS SIGNED ) * - 89 AS col2, + 43 AS col2
----
NULL
43

skipif mysql # not compatible
query II rowsort label-6510
SELECT ALL - CAST ( NULL AS INTEGER ) * - 89 AS col2, + 43 AS col2
----
NULL
43

query I rowsort
SELECT ALL 8 * 92 * - - 11
----
8096

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6512
SELECT 94 + 31, - COUNT( * ) * 20 + - 71 DIV - 39 col1
----
125
-19

skipif mysql # not compatible
query II rowsort label-6512
SELECT 94 + 31, - COUNT ( * ) * 20 + - 71 / - 39 col1
----
125
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-6513
SELECT - 16 * + 81 + 80 DIV 91 AS col2, - 62
----
-1296
-62

skipif mysql # not compatible
query II rowsort label-6513
SELECT - 16 * + 81 + 80 / 91 AS col2, - 62
----
-1296
-62

query I rowsort
SELECT DISTINCT - - 83 + - - 98 AS col2
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6515
SELECT COALESCE ( + 58, 87 * - + 67 * CAST( 92 AS SIGNED ), - + COUNT( * ) + 93 + - MIN( ALL - CAST( NULL AS DECIMAL ) ) * + ( 8 ) ) * CAST( - 86 AS SIGNED ) + - ( + + CAST( NULL AS SIGNED ) ) + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT COALESCE ( + 58, 87 * - + 67 * CAST ( 92 AS INTEGER ), - + COUNT ( * ) + 93 + - MIN ( ALL - CAST ( NULL AS REAL ) ) * + ( 8 ) ) * CAST ( - 86 AS INTEGER ) + - ( + + CAST ( NULL AS INTEGER ) ) + + 14
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6516
SELECT 20 * + + 17 * 60 * - 22 AS col1, 73 - 44 * - - 80 * - - CAST( NULL AS SIGNED ) + + + 94 AS col0
----
-448800
NULL

skipif mysql # not compatible
query II rowsort label-6516
SELECT 20 * + + 17 * 60 * - 22 AS col1, 73 - 44 * - - 80 * - - CAST ( NULL AS INTEGER ) + + + 94 AS col0
----
-448800
NULL

query I rowsort
SELECT DISTINCT - 68 * + 59 AS col0
----
-4012

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ALL - + 58 * COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL - + 58 * COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT ALL - + 41 + + ( - 27 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + COUNT( + 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6520
SELECT + COUNT ( + 8 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6521
SELECT - - 52 * 36 AS col2, - COUNT( * ) + - 5
----
1872
-6

skipif mysql # not compatible
query II rowsort label-6521
SELECT - - 52 * 36 AS col2, - COUNT ( * ) + - 5
----
1872
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT - + 94 + COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6522
SELECT - + 94 + COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6523
SELECT - ( COUNT( * ) ) AS col0, 77 * 64 + 51 + - ( 94 ) DIV + + ( + 79 ) + - SUM( + ( + CASE - 78 WHEN + 35 DIV + 11 THEN NULL ELSE - 49 END ) ) * - 61
----
-1
1989

skipif mysql # not compatible
query II rowsort label-6523
SELECT - ( COUNT ( * ) ) AS col0, 77 * 64 + 51 + - ( 94 ) / + + ( + 79 ) + - SUM ( + ( + CASE - 78 WHEN + 35 / + 11 THEN NULL ELSE - 49 END ) ) * - 61
----
-1
1989

query I rowsort
SELECT - NULLIF ( + + 99, + + 68 * 77 + - 57 * 11 + + 6 / - 16 * - 10 * - 62 * + COALESCE ( - - 87, - - 95 ) * + 35 + - COALESCE ( - 61, 23, 12 ) ) AS col1
----
-99

query I rowsort
SELECT - 29 - 30
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT - ( + - COUNT( - 92 ) ) + 73
----
74

skipif mysql # not compatible
query I rowsort label-6526
SELECT - ( + - COUNT ( - 92 ) ) + 73
----
74

query I rowsort
SELECT ALL + ( - - 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6528
SELECT COUNT( * ) DIV - - COUNT( ( - 78 ) ) * - - COUNT( * ) DIV - - ( - COUNT( * ) ) + + + COALESCE ( + - 90, + - 83 ) + + 42 + - COUNT( * ) * + 92 AS col0, 73 * + 40 + - MAX( DISTINCT + 97 )
----
-141
2823

skipif mysql # not compatible
query II rowsort label-6528
SELECT COUNT ( * ) / - - COUNT ( ( - 78 ) ) * - - COUNT ( * ) / - - ( - COUNT ( * ) ) + + + COALESCE ( + - 90, + - 83 ) + + 42 + - COUNT ( * ) * + 92 AS col0, 73 * + 40 + - MAX ( DISTINCT + 97 )
----
-141
2823

query I rowsort
SELECT - ( - 34 ) + + 34
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT COALESCE ( + 8, - + 5 + - 17 + - COUNT( * ) * + SUM( - - 86 ) )
----
8

skipif mysql # not compatible
query I rowsort label-6530
SELECT COALESCE ( + 8, - + 5 + - 17 + - COUNT ( * ) * + SUM ( - - 86 ) )
----
8

query I rowsort
SELECT + 21 - 60 * 49
----
-2919

query I rowsort
SELECT ALL 27 * ( 33 ) AS col0
----
891

query I rowsort
SELECT + 38 * - + 22 AS col0
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT + 3 * + - COUNT( 81 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6534
SELECT + 3 * + - COUNT ( 81 ) AS col0
----
-3

query II rowsort
SELECT ALL + ( - 46 ) * 82 + - + 87 * 76 AS col1, 47
----
-10384
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT - COUNT( ALL + 75 ) * + 94 + - MIN( 48 ) AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-6536
SELECT - COUNT ( ALL + 75 ) * + 94 + - MIN ( 48 ) AS col0
----
-142

query I rowsort
SELECT 99 * - + 14 + + COALESCE ( - 95, 99 * - - 41 * - + 74 )
----
-1481

query I rowsort
SELECT ALL + 30 * + 77
----
2310

query I rowsort
SELECT DISTINCT + 2 * 60 * + - 77 + - 34
----
-9274

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT DISTINCT + 97 * - + 31 + - COUNT( * ) * - + 50
----
-2957

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT + 97 * - + 31 + - COUNT ( * ) * - + 50
----
-2957

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT + MAX( ALL - 8 ) + - 75
----
-83

skipif mysql # not compatible
query I rowsort label-6541
SELECT + MAX ( ALL - 8 ) + - 75
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6542
SELECT - + 83 + + CASE + + 12 WHEN - 48 + - + COALESCE ( + - 63, + 80, + 66 - COUNT( - CAST( + - 83 AS SIGNED ) ) ) THEN - 16 ELSE NULL END + - 65 * - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6542
SELECT - + 83 + + CASE + + 12 WHEN - 48 + - + COALESCE ( + - 63, + 80, + 66 - COUNT ( - CAST ( + - 83 AS INTEGER ) ) ) THEN - 16 ELSE NULL END + - 65 * - - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6543
SELECT - COUNT( * ) AS col1, + COUNT( * ) * + + SUM( DISTINCT 82 ) AS col1
----
-1
82

skipif mysql # not compatible
query II rowsort label-6543
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) * + + SUM ( DISTINCT 82 ) AS col1
----
-1
82

query I rowsort
SELECT - + 92 + + 50 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - 60 + 56 + + COUNT( * ) * 23 * - + 64 AS col1
----
-1476

skipif mysql # not compatible
query I rowsort label-6545
SELECT - 60 + 56 + + COUNT ( * ) * 23 * - + 64 AS col1
----
-1476

query I rowsort
SELECT ALL + 12 - 5
----
7

query I rowsort
SELECT + 99 * - 90 * + ( + 96 ) AS col0
----
-855360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT - CAST( NULL AS SIGNED ) + + 71 * - CAST( NULL AS SIGNED ) + - - COALESCE ( 34, - 45 + - 31 * - 15 + + - ( - - 95 ) ) - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT - CAST ( NULL AS INTEGER ) + + 71 * - CAST ( NULL AS INTEGER ) + - - COALESCE ( 34, - 45 + - 31 * - 15 + + - ( - - 95 ) ) - 89
----
NULL

query I rowsort
SELECT - 26 + - - 83 AS col2
----
57

query I rowsort
SELECT - + 40 * - 89
----
3560

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6551
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-6551
SELECT ALL CAST ( NULL AS REAL ) AS col1, 40
----
NULL
40

query II rowsort
SELECT 94 AS col2, - 21 + + - 66
----
94
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT - 69 DIV + 77 * + + 90 * - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT - 69 / + 77 * + + 90 * - 87 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT DISTINCT + COUNT( * ) * + CASE + + 41 WHEN + 3 THEN NULL ELSE - 46 DIV + 90 + - 32 * - ( + + 88 ) END AS col0
----
2816

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT + COUNT ( * ) * + CASE + + 41 WHEN + 3 THEN NULL ELSE - 46 / + 90 + - 32 * - ( + + 88 ) END AS col0
----
2816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6555
SELECT ALL + CAST( - + 17 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + CAST ( - + 17 AS INTEGER )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-6556
SELECT + 89 AS col0, 69 * COUNT( * ) AS col1
----
89
69

skipif mysql # not compatible
query II rowsort label-6556
SELECT + 89 AS col0, 69 * COUNT ( * ) AS col1
----
89
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6557
SELECT AVG ( CAST( NULL AS SIGNED ) ) / - NULLIF ( 80, - 37 + + - 44 ) + - 37 AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6557
SELECT AVG ( CAST ( NULL AS INTEGER ) ) / - NULLIF ( 80, - 37 + + - 44 ) + - 37 AS col1, - COUNT ( * )
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), - - 91 + - CAST( NULL AS SIGNED ) / + - 42 / + 86 - + 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), - - 91 + - CAST ( NULL AS INTEGER ) / + - 42 / + 86 - + 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT - 27 + - - 73 * + CASE 6 WHEN 81 THEN 64 + SUM( - - 57 ) * - 22 / 34 / - NULLIF ( - 51, + - 10 / 64 ) + 83 WHEN 58 THEN NULL END + - - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT - 27 + - - 73 * + CASE 6 WHEN 81 THEN 64 + SUM ( - - 57 ) * - 22 / 34 / - NULLIF ( - 51, + - 10 / 64 ) + 83 WHEN 58 THEN NULL END + - - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6560
SELECT DISTINCT 85 DIV + 38 + MIN( + - 59 ) * COUNT( * ) + 9 + - 43 DIV - - 96 * - 87
----
-48

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT 85 / + 38 + MIN ( + - 59 ) * COUNT ( * ) + 9 + - 43 / - - 96 * - 87
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6561
SELECT ALL + ( - CAST( 31 AS SIGNED ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL + ( - CAST ( 31 AS INTEGER ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT - 3 + - ( - - COALESCE ( ( - 64 ), 70 ) ) + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-6562
SELECT - 3 + - ( - - COALESCE ( ( - 64 ), 70 ) ) + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT + MAX( DISTINCT - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-6563
SELECT + MAX ( DISTINCT - - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - ( MAX( DISTINCT + + 10 ) ) * - 64 col2
----
640

skipif mysql # not compatible
query I rowsort label-6564
SELECT - ( MAX ( DISTINCT + + 10 ) ) * - 64 col2
----
640

query I rowsort
SELECT - 49 - 83 AS col0
----
-132

query I rowsort
SELECT + NULLIF ( - 38, - + 53 - + + 34 * + + 17 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6567
SELECT CAST( + + COALESCE ( - 79, + 87 * + COUNT( * ) / - - 14 ) AS SIGNED ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6567
SELECT CAST ( + + COALESCE ( - 79, + 87 * + COUNT ( * ) / - - 14 ) AS INTEGER ) AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6568
SELECT + COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT + COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT ALL + 83 AS col2, 46
----
83
46

query I rowsort
SELECT + NULLIF ( 30, ( 22 ) * + 66 * - - 83 * - 51 + - + 25 ) + - + 81 + - 85 + + - 21 * 35
----
-871

query II rowsort
SELECT ALL - + 11 AS col0, 99
----
-11
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6572
SELECT ALL + - COUNT( * ) + - + 69, 8 AS col0
----
-70
8

skipif mysql # not compatible
query II rowsort label-6572
SELECT ALL + - COUNT ( * ) + - + 69, 8 AS col0
----
-70
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL - MIN( DISTINCT + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL - MIN ( DISTINCT + 15 )
----
-15

query I rowsort
SELECT ALL 34 - + 31 * 77 + 79 AS col1
----
-2274

query II rowsort
SELECT DISTINCT - 24 AS col0, 16 - - NULLIF ( + NULLIF ( + - 35, + 6 ), - + 55 / - 39 )
----
-24
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6576
SELECT ALL - + 78, 97 * 67 DIV - NULLIF ( + + 82, COUNT( * ) ) AS col2
----
-78
-79

skipif mysql # not compatible
query II rowsort label-6576
SELECT ALL - + 78, 97 * 67 / - NULLIF ( + + 82, COUNT ( * ) ) AS col2
----
-78
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT 83 DIV + 8 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6577
SELECT 83 / + 8 AS col0
----
10

query I rowsort
SELECT ALL 0 - 22 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT - 13, - ( + 90 ) * + COUNT( DISTINCT + - 33 ) - 70 AS col1
----
-13
-160

skipif mysql # not compatible
query II rowsort label-6579
SELECT - 13, - ( + 90 ) * + COUNT ( DISTINCT + - 33 ) - 70 AS col1
----
-13
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6580
SELECT - COUNT( * ) AS col2, - CAST( + - COALESCE ( - COUNT( * ), - - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6580
SELECT - COUNT ( * ) AS col2, - CAST ( + - COALESCE ( - COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
-1
-1

query I rowsort
SELECT ALL + 91 * + 60 * - + 55 AS col2
----
-300300

query II rowsort
SELECT DISTINCT + 57 AS col1, 98
----
57
98

query I rowsort
SELECT - ( + - 58 ) * 32 col1
----
1856

query I rowsort
SELECT 66 + + 78 * - + 2 * - 48
----
7554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6585
SELECT CASE 29 WHEN + + 4 * COUNT( * ) + - 85 - - - 95 THEN + 50 * + COUNT( * ) * 84 ELSE + + COUNT( * ) * - + ( 23 ) DIV + 2 + - + 65 END + + COALESCE ( + - COUNT( DISTINCT - 11 ), - COUNT( * ) * 74, - 37 * - 11 + - + ( + 7 ), + 34 )
----
-77

skipif mysql # not compatible
query I rowsort label-6585
SELECT CASE 29 WHEN + + 4 * COUNT ( * ) + - 85 - - - 95 THEN + 50 * + COUNT ( * ) * 84 ELSE + + COUNT ( * ) * - + ( 23 ) / + 2 + - + 65 END + + COALESCE ( + - COUNT ( DISTINCT - 11 ), - COUNT ( * ) * 74, - 37 * - 11 + - + ( + 7 ), + 34 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6586
SELECT DISTINCT - COUNT( DISTINCT - 96 ) + - - CASE + 93 WHEN + 3 THEN + 53 END + - CAST( NULL AS SIGNED ), + COALESCE ( + + 10, - 98 ) + 84 / + COUNT( * ) / - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6586
SELECT DISTINCT - COUNT ( DISTINCT - 96 ) + - - CASE + 93 WHEN + 3 THEN + 53 END + - CAST ( NULL AS INTEGER ), + COALESCE ( + + 10, - 98 ) + 84 / + COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6587
SELECT DISTINCT 57 + + + COALESCE ( MIN( ALL - + 64 ), - 60 + - 70 DIV + 82 - - - 60 + - 76, - - 42 ) + 53 * COUNT( * ) AS col0, 39 AS col2
----
46
39

skipif mysql # not compatible
query II rowsort label-6587
SELECT DISTINCT 57 + + + COALESCE ( MIN ( ALL - + 64 ), - 60 + - 70 / + 82 - - - 60 + - 76, - - 42 ) + 53 * COUNT ( * ) AS col0, 39 AS col2
----
46
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6588
SELECT 11 + - AVG ( - 90 ) / + 95 + + CAST( NULL AS DECIMAL ) * 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT 11 + - AVG ( - 90 ) / + 95 + + CAST ( NULL AS REAL ) * 90 AS col1
----
NULL

query I rowsort
SELECT 20 + - - 44
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT ALL + ( - 50 ) * + COUNT( * ) + - CAST( + 40 AS SIGNED ) + - - 27 + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL + ( - 50 ) * + COUNT ( * ) + - CAST ( + 40 AS INTEGER ) + - - 27 + + COUNT ( * )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT DISTINCT - MAX( - CAST( - 76 AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - MAX ( - CAST ( - 76 AS INTEGER ) )
----
-76

query I rowsort
SELECT 10 + ( 71 )
----
81

query I rowsort
SELECT 55 + 60 AS col0
----
115

query I rowsort
SELECT 33 * + 33 AS col1
----
1089

onlyif mysql # aggregate syntax: 
query II rowsort label-6595
SELECT DISTINCT NULLIF ( + 4, + - 67 + 83 ) + - - 96 + + NULLIF ( + + 89, + 18 ) * - COUNT( ALL + 79 ) * - 63 * - 8, SUM( - 38 ) + - 61 + + - 10 * - 52 AS col0
----
-44756
421

skipif mysql # not compatible
query II rowsort label-6595
SELECT DISTINCT NULLIF ( + 4, + - 67 + 83 ) + - - 96 + + NULLIF ( + + 89, + 18 ) * - COUNT ( ALL + 79 ) * - 63 * - 8, SUM ( - 38 ) + - 61 + + - 10 * - 52 AS col0
----
-44756
421

query I rowsort
SELECT ALL - + ( - - 30 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT + 39 - - - 8
----
31

query I rowsort
SELECT 87 + + 49
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT - 32 + - + MIN( + ( - 0 ) ) col1
----
-32

skipif mysql # not compatible
query I rowsort label-6599
SELECT - 32 + - + MIN ( + ( - 0 ) ) col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT - COUNT( * ) - + 25
----
-26

skipif mysql # not compatible
query I rowsort label-6600
SELECT - COUNT ( * ) - + 25
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT - - 72 * COUNT( * ) + + 41
----
113

skipif mysql # not compatible
query I rowsort label-6601
SELECT - - 72 * COUNT ( * ) + + 41
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL + + COUNT( * ) - 58 + - - 59 * - COUNT( * ) AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL + + COUNT ( * ) - 58 + - - 59 * - COUNT ( * ) AS col1
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT - 59 + - 19 * - - 4 * 37 + - 29 DIV + 71 AS col0
----
-2871

skipif mysql # not compatible
query I rowsort label-6603
SELECT - 59 + - 19 * - - 4 * 37 + - 29 / + 71 AS col0
----
-2871

query I rowsort
SELECT + ( + ( - 98 ) ) * 78 * ( - 61 ) * + - 45 + 98 * + 36 AS col1
----
-20979252

onlyif mysql # aggregate syntax: 
query II rowsort label-6605
SELECT DISTINCT MIN( DISTINCT - + 3 ) AS col1, - 94
----
-3
-94

skipif mysql # not compatible
query II rowsort label-6605
SELECT DISTINCT MIN ( DISTINCT - + 3 ) AS col1, - 94
----
-3
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6606
SELECT ALL - COALESCE ( 68, - AVG ( ALL 26 ) DIV - + 93 + 30 ) * + + 64 * + COUNT( * ) AS col1
----
-4352

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - COALESCE ( 68, - AVG ( ALL 26 ) / - + 93 + 30 ) * + + 64 * + COUNT ( * ) AS col1
----
-4352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT 5 DIV NULLIF ( + + 16, - COUNT( - - 69 ) ) - - 5
----
5

skipif mysql # not compatible
query I rowsort label-6607
SELECT 5 / NULLIF ( + + 16, - COUNT ( - - 69 ) ) - - 5
----
5

query I rowsort
SELECT 12 + - + 35 AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT ALL 52 DIV + - 47
----
-1

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL 52 / + - 47
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6610
SELECT ALL 73 AS col1, 34 * - + 24 - - - 94 + + COALESCE ( - 36, NULLIF ( + COUNT( * ), + - ( - 78 ) ), 67 ) * + COUNT( * ) + + COUNT( * )
----
73
-945

skipif mysql # not compatible
query II rowsort label-6610
SELECT ALL 73 AS col1, 34 * - + 24 - - - 94 + + COALESCE ( - 36, NULLIF ( + COUNT ( * ), + - ( - 78 ) ), 67 ) * + COUNT ( * ) + + COUNT ( * )
----
73
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT - MAX( + - 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6611
SELECT - MAX ( + - 80 ) AS col1
----
80

query I rowsort
SELECT 1 + + - 41
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT ALL - 92 DIV + 78
----
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - 92 / + 78
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ( - COUNT( * ) ) + + - COUNT( * ) * 51 * 65 AS col2
----
-3316

skipif mysql # not compatible
query I rowsort label-6614
SELECT ( - COUNT ( * ) ) + + - COUNT ( * ) * 51 * 65 AS col2
----
-3316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT ALL CAST( + 98 AS SIGNED ) * + - 53
----
-5194

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL CAST ( + 98 AS INTEGER ) * + - 53
----
-5194

onlyif mysql # DIV for integer division: 
query I rowsort label-6616
SELECT DISTINCT NULLIF ( + 28, + 94 ) + 70 + 12 + - 43 DIV + - 43 + + - 18 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT NULLIF ( + 28, + 94 ) + 70 + 12 + - 43 / + - 43 + + - 18 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6617
SELECT - COUNT( * ), 80 * + + CAST( NULL AS SIGNED ) * + - AVG ( DISTINCT - - 85 ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6617
SELECT - COUNT ( * ), 80 * + + CAST ( NULL AS INTEGER ) * + - AVG ( DISTINCT - - 85 ) AS col0
----
-1
NULL

query I rowsort
SELECT ALL ( - 4 ) + - - ( + 14 )
----
10

query I rowsort
SELECT 46 + + - 53
----
-7

query I rowsort
SELECT 26 * - ( - - 15 ) * + 60 AS col0
----
-23400

query I rowsort
SELECT ALL 76 * - 59 - - 36 col0
----
-4448

query I rowsort
SELECT + 14 + - + 83 AS col1
----
-69

query I rowsort
SELECT + 72 * - 81 AS col1
----
-5832

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL - - CASE + 49 WHEN COUNT( 27 ) THEN 49 + + 29 ELSE - + 92 * + - 75 * COUNT( * ) - COUNT( * ) * - SUM( 11 ) END * + 26 - - 76
----
179762

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - - CASE + 49 WHEN COUNT ( 27 ) THEN 49 + + 29 ELSE - + 92 * + - 75 * COUNT ( * ) - COUNT ( * ) * - SUM ( 11 ) END * + 26 - - 76
----
179762

onlyif mysql # aggregate syntax: 
query II rowsort label-6625
SELECT COALESCE ( - - 57, ( + 0 ) ) * - 85 * + 44 * - - 18 + + 50, + 36 * COUNT( * ) AS col2
----
-3837190
36

skipif mysql # not compatible
query II rowsort label-6625
SELECT COALESCE ( - - 57, ( + 0 ) ) * - 85 * + 44 * - - 18 + + 50, + 36 * COUNT ( * ) AS col2
----
-3837190
36

query II rowsort
SELECT ALL + - 33, 26 AS col1
----
-33
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT + - 33 AS col1, COUNT( - NULLIF ( + 75, - 48 ) ) AS col2
----
-33
1

skipif mysql # not compatible
query II rowsort label-6627
SELECT + - 33 AS col1, COUNT ( - NULLIF ( + 75, - 48 ) ) AS col2
----
-33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT + + NULLIF ( + ( + 82 ), COUNT( * ) + - + 51 * + 25 )
----
82

skipif mysql # not compatible
query I rowsort label-6628
SELECT + + NULLIF ( + ( + 82 ), COUNT ( * ) + - + 51 * + 25 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT - 24 * + COUNT( * ) - 68 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6629
SELECT - 24 * + COUNT ( * ) - 68 AS col0
----
-92

query I rowsort
SELECT + - 85 * - 47 col0
----
3995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT 79 DIV + - 43 + + COUNT( * ) + 28 * + 67 * + + 83 AS col0
----
155708

skipif mysql # not compatible
query I rowsort label-6631
SELECT 79 / + - 43 + + COUNT ( * ) + 28 * + 67 * + + 83 AS col0
----
155708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6632
SELECT - - COUNT( * ) DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-6632
SELECT - - COUNT ( * ) / 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6633
SELECT DISTINCT + CASE + - 26 WHEN + CAST( NULL AS SIGNED ) - - ( - - 64 ) THEN - COUNT( * ) WHEN 47 + 69 + + 22 * - 45 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT + CASE + - 26 WHEN + CAST ( NULL AS INTEGER ) - - ( - - 64 ) THEN - COUNT ( * ) WHEN 47 + 69 + + 22 * - 45 THEN NULL END
----
NULL

query II rowsort
SELECT + 75, + 19 * 22 AS col2
----
75
418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT ALL COUNT( * ) * - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL COUNT ( * ) * - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT + 63, + 7 col0
----
63
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6637
SELECT ALL + 75 DIV MAX( ALL 47 ), + 63 + - 87 - - CAST( NULL AS SIGNED ) + + 90 DIV - COUNT( * ) + - 22 * + 20 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6637
SELECT ALL + 75 / MAX ( ALL 47 ), + 63 + - 87 - - CAST ( NULL AS INTEGER ) + + 90 / - COUNT ( * ) + - 22 * + 20 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT - 6 * - + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-6638
SELECT - 6 * - + COUNT ( * )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6639
SELECT DISTINCT + 16 * - 91 + 45 DIV ( 53 ) AS col0
----
-1456

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + 16 * - 91 + 45 / ( 53 ) AS col0
----
-1456

query II rowsort
SELECT - 82 AS col0, 79 * + 17
----
-82
1343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT - CAST( + 76 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6641
SELECT - CAST ( + 76 AS INTEGER ) AS col0
----
-76

query I rowsort
SELECT ALL - 39 * - - 76 AS col0
----
-2964

query II rowsort
SELECT + 22 * 80 col0, 9 AS col0
----
1760
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6644
SELECT - 34 - - + COALESCE ( + 53, + 51 DIV MAX( 77 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6644
SELECT - 34 - - + COALESCE ( + 53, + 51 / MAX ( 77 ) ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL - COUNT( * ) * - + ( - + 58 ) * COALESCE ( + 8, + 36 * + 28 + - + 30 + + 39, - 2 + + - 86 ) + 25 + + 60 + + + 89
----
-290

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL - COUNT ( * ) * - + ( - + 58 ) * COALESCE ( + 8, + 36 * + 28 + - + 30 + + 39, - 2 + + - 86 ) + 25 + + 60 + + + 89
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT - 88 * - - MAX( 84 )
----
-7392

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT - 88 * - - MAX ( 84 )
----
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL + COUNT( * ) + 2 - + 73 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL + COUNT ( * ) + 2 - + 73 AS col2
----
-70

query I rowsort
SELECT DISTINCT - 79 * + ( - 18 )
----
1422

query I rowsort
SELECT - 50 + - 3 col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT + 56 - 18 DIV 34 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6650
SELECT + 56 - 18 / 34 AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT - CASE + ( + MAX( CAST( NULL AS SIGNED ) ) ) WHEN + 16 THEN NULL ELSE - AVG ( + - 25 ) + - 41 / + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT - CASE + ( + MAX ( CAST ( NULL AS INTEGER ) ) ) WHEN + 16 THEN NULL ELSE - AVG ( + - 25 ) + - 41 / + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT DISTINCT MIN( DISTINCT + CASE - - 88 WHEN - 48 THEN + 52 WHEN + 42 THEN NULL END ) / + NULLIF ( 55, + COUNT( * ) * - CAST( NULL AS SIGNED ) * ( + - COALESCE ( + 16, + - 79 ) ) ) + + + SUM( ALL + 55 ) / - + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT MIN ( DISTINCT + CASE - - 88 WHEN - 48 THEN + 52 WHEN + 42 THEN NULL END ) / + NULLIF ( 55, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * ( + - COALESCE ( + 16, + - 79 ) ) ) + + + SUM ( ALL + 55 ) / - + 81 AS col1
----
NULL

query I rowsort
SELECT - 3 + - 8
----
-11

query I rowsort
SELECT + 96 + + 62 AS col1
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + 73 + - NULLIF ( + - 69, - - MAX( DISTINCT 49 ) * + - 63 )
----
142

skipif mysql # not compatible
query I rowsort label-6655
SELECT + 73 + - NULLIF ( + - 69, - - MAX ( DISTINCT 49 ) * + - 63 )
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT + SUM( DISTINCT + 3 ) * - - 14
----
42

skipif mysql # not compatible
query I rowsort label-6656
SELECT + SUM ( DISTINCT + 3 ) * - - 14
----
42

query I rowsort
SELECT ALL ( 82 ) * + 26 AS col1
----
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT DISTINCT 26 * - NULLIF ( - 9, - MIN( DISTINCT + + 11 ) )
----
234

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT 26 * - NULLIF ( - 9, - MIN ( DISTINCT + + 11 ) )
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT + 27 * 37 DIV - - 97 + + 44
----
54

skipif mysql # not compatible
query I rowsort label-6659
SELECT + 27 * 37 / - - 97 + + 44
----
54

query I rowsort
SELECT - + 76 + + - 42
----
-118

query II rowsort
SELECT ALL + - ( - 66 ) AS col2, + 90
----
66
90

query II rowsort
SELECT + + 73 * + ( - + 94 ) * - 50, - ( 65 ) AS col0
----
343100
-65

query I rowsort
SELECT DISTINCT - 84 * + 5 + + 66
----
-354

query I rowsort
SELECT - 0 - - + 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT 38 * - 66 + + COUNT( * ) AS col1
----
-2507

skipif mysql # not compatible
query I rowsort label-6665
SELECT 38 * - 66 + + COUNT ( * ) AS col1
----
-2507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT ALL - + 92 * 74 + 23 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL - + 92 * 74 + 23 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 66 + - 59 * + 41 + - + 17 * + 65 col1
----
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - 10 + + COUNT( * ) + 98
----
89

skipif mysql # not compatible
query I rowsort label-6668
SELECT - 10 + + COUNT ( * ) + 98
----
89

query I rowsort
SELECT DISTINCT 94 * 49 + + COALESCE ( + + 38, - 57 + - 78, + + 79 ) AS col0
----
4644

query I rowsort
SELECT 38 * + ( - + 36 ) + - 19
----
-1387

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT ALL + 84 * + + 5 * - 77 * - 37 + 57 DIV 81
----
1196580

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL + 84 * + + 5 * - 77 * - 37 + 57 / 81
----
1196580

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT COALESCE ( - COUNT( * ), - COUNT( * ) + + + 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT COALESCE ( - COUNT ( * ), - COUNT ( * ) + + + 31 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - SUM( + - 27 ) + ( - 17 )
----
10

skipif mysql # not compatible
query I rowsort label-6673
SELECT - SUM ( + - 27 ) + ( - 17 )
----
10

query I rowsort
SELECT ALL ( + + 34 ) col1
----
34

query I rowsort
SELECT ALL + 2 - - + 13
----
15

query I rowsort
SELECT 36 * - - 35 AS col2
----
1260

query I rowsort
SELECT ALL + 30 * + 51 AS col1
----
1530

query II rowsort
SELECT ALL - ( 81 ) - + 82 AS col1, + 46 AS col2
----
-163
46

query I rowsort
SELECT ALL + COALESCE ( 33, + + 67 ) * + 66 AS col0
----
2178

query II rowsort
SELECT DISTINCT 12 AS col1, - 38
----
12
-38

query II rowsort
SELECT ALL 25 AS col0, 36 * - - 53
----
25
1908

query I rowsort
SELECT - ( - + 0 ) col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6683
SELECT - COALESCE ( - + 40, - 64 * - COUNT( * ) * + 23 + CASE + 71 WHEN 79 + + + 26 * + 21 + - + 84 + + + COALESCE ( - 68, 45 ) THEN + + 38 WHEN + 83 THEN NULL END ) DIV - + 73
----
0

skipif mysql # not compatible
query I rowsort label-6683
SELECT - COALESCE ( - + 40, - 64 * - COUNT ( * ) * + 23 + CASE + 71 WHEN 79 + + + 26 * + 21 + - + 84 + + + COALESCE ( - 68, 45 ) THEN + + 38 WHEN + 83 THEN NULL END ) / - + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT COUNT( ALL + 24 ) * 30 * - 92 AS col1
----
-2760

skipif mysql # not compatible
query I rowsort label-6684
SELECT COUNT ( ALL + 24 ) * 30 * - 92 AS col1
----
-2760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT DISTINCT - 57 / + 44 * + NULLIF ( + 50, 22 + - + COUNT( * ) ) + 19 * - + CAST( NULL AS SIGNED ) + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT - 57 / + 44 * + NULLIF ( + 50, 22 + - + COUNT ( * ) ) + 19 * - + CAST ( NULL AS INTEGER ) + 3
----
NULL

query II rowsort
SELECT ALL 26 col1, - 32
----
26
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6687
SELECT + 37 AS col1, + ( + - COALESCE ( - + 5, + 11 * - - 79 - + 94 * + 5 + + - COUNT( * ) + + 47 ) )
----
37
5

skipif mysql # not compatible
query II rowsort label-6687
SELECT + 37 AS col1, + ( + - COALESCE ( - + 5, + 11 * - - 79 - + 94 * + 5 + + - COUNT ( * ) + + 47 ) )
----
37
5

query II rowsort
SELECT ALL - - 95 AS col2, 74 AS col2
----
95
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT 72 + + MAX( DISTINCT - 11 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6689
SELECT 72 + + MAX ( DISTINCT - 11 ) AS col1
----
61

query I rowsort
SELECT + 61 * 12 AS col1
----
732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT ALL 1 + - + CAST( - 38 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL 1 + - + CAST ( - 38 AS INTEGER )
----
39

query I rowsort
SELECT ALL 45 + + 82
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-6693
SELECT 52 DIV ( + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-6693
SELECT 52 / ( + 55 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6694
SELECT 97 AS col2, + COUNT( * ) + - 26 * + 97 AS col1
----
97
-2521

skipif mysql # not compatible
query II rowsort label-6694
SELECT 97 AS col2, + COUNT ( * ) + - 26 * + 97 AS col1
----
97
-2521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT - ( COUNT( * ) ) DIV - + COUNT( * ) + + 21 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6695
SELECT - ( COUNT ( * ) ) / - + COUNT ( * ) + + 21 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT - COALESCE ( - + 96, 2 ) + 10 + 36 + - + 6 * + COUNT( * ) * - NULLIF ( - COUNT( * ), - 19 ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-6696
SELECT - COALESCE ( - + 96, 2 ) + 10 + 36 + - + 6 * + COUNT ( * ) * - NULLIF ( - COUNT ( * ), - 19 ) AS col0
----
136

query I rowsort
SELECT ALL + 81 + + 8 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT + - MIN( 65 ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-6698
SELECT + - MIN ( 65 ) col2
----
-65

query I rowsort
SELECT DISTINCT 29 + + 27 AS col2
----
56

query I rowsort
SELECT ALL - NULLIF ( - - 45, 40 ) AS col1
----
-45

query I rowsort
SELECT ALL 93 + - - 75 AS col1
----
168

query II rowsort
SELECT DISTINCT - 88, + 19 AS col2
----
-88
19

query I rowsort
SELECT ALL + ( + 74 ) - + + 33 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT DISTINCT CASE + - ( - 70 ) WHEN + 54 / - 76 + - - 93 THEN NULL WHEN - + 76 THEN 85 END / + + 71 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT CASE + - ( - 70 ) WHEN + 54 / - 76 + - - 93 THEN NULL WHEN - + 76 THEN 85 END / + + 71 - COUNT ( * )
----
NULL

query I rowsort
SELECT 40 * 64
----
2560

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT ALL ( + + COUNT( * ) ) * + - 40 * + 98, 94 AS col2
----
-3920
94

skipif mysql # not compatible
query II rowsort label-6706
SELECT ALL ( + + COUNT ( * ) ) * + - 40 * + 98, 94 AS col2
----
-3920
94

query II rowsort
SELECT DISTINCT 32 col2, - 48 AS col2
----
32
-48

query I rowsort
SELECT ( - 42 ) * 50 * ( + + 9 ) - - + ( + 41 )
----
-18859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6709
SELECT ALL ( - NULLIF ( - CASE - + ( + + NULLIF ( + 52, + ( + 7 ) ) ) WHEN - ( COUNT( ALL 28 ) ) DIV - - 16 THEN + + 4 * - 36 + + + NULLIF ( + CAST( NULL AS SIGNED ), 1 ) + 62 * CAST( 16 AS SIGNED ) DIV + COUNT( * ) DIV - CASE WHEN ( NOT NULL NOT IN ( + 94, + 48 * - 79, + + COUNT( * ) + 12 + - AVG ( ALL - 75 ) ) ) THEN + 19 * + 44 ELSE NULL END + COUNT( * ) + + 78 * COUNT( * ) - + 76 + - 37 * + 14 * - 89 DIV + 59 WHEN 69 THEN + 58 ELSE - 98 END, + 89 ) ) * 77 AS col0
----
-7546

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL ( - NULLIF ( - CASE - + ( + + NULLIF ( + 52, + ( + 7 ) ) ) WHEN - ( COUNT ( ALL 28 ) ) / - - 16 THEN + + 4 * - 36 + + + NULLIF ( + CAST ( NULL AS INTEGER ), 1 ) + 62 * CAST ( 16 AS INTEGER ) / + COUNT ( * ) / - CASE WHEN ( NOT NULL NOT IN ( + 94, + 48 * - 79, + + COUNT ( * ) + 12 + - AVG ( ALL - 75 ) ) ) THEN + 19 * + 44 ELSE NULL END + COUNT ( * ) + + 78 * COUNT ( * ) - + 76 + - 37 * + 14 * - 89 / + 59 WHEN 69 THEN + 58 ELSE - 98 END, + 89 ) ) * 77 AS col0
----
-7546

query II rowsort
SELECT DISTINCT 43 AS col0, 93
----
43
93

query I rowsort
SELECT 55 * 48 AS col2
----
2640

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT 61 DIV - + 23
----
-2

skipif mysql # not compatible
query I rowsort label-6712
SELECT 61 / - + 23
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT ALL - ( + + ( + 25 ) ) DIV - 48 - + + 96 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL - ( + + ( + 25 ) ) / - 48 - + + 96 AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6714
SELECT NULLIF ( - COUNT( * ), - - ( + 19 ) ) + - NULLIF ( - 81, 60 * + 37 + + NULLIF ( SUM( ALL - 81 ), + CASE + 53 WHEN + 47 DIV 67 THEN + 55 * 93 + - + ( - - 6 ) ELSE NULL END - ( 30 ) ) DIV + CASE + ( + CAST( + 29 AS DECIMAL ) ) WHEN + - 21 THEN NULL ELSE + 67 * + 90 * 4 + + 90 END ) DIV + 12 AS col0, 28 + - COUNT( * ) DIV + - 56
----
5
28

skipif mysql # not compatible
query II rowsort label-6714
SELECT NULLIF ( - COUNT ( * ), - - ( + 19 ) ) + - NULLIF ( - 81, 60 * + 37 + + NULLIF ( SUM ( ALL - 81 ), + CASE + 53 WHEN + 47 / 67 THEN + 55 * 93 + - + ( - - 6 ) ELSE NULL END - ( 30 ) ) / + CASE + ( + CAST ( + 29 AS REAL ) ) WHEN + - 21 THEN NULL ELSE + 67 * + 90 * 4 + + 90 END ) / + 12 AS col0, 28 + - COUNT ( * ) / + - 56
----
5
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6715
SELECT 71 - 27 + + 85 - + + COUNT( * ) DIV + 98 + + 11
----
140

skipif mysql # not compatible
query I rowsort label-6715
SELECT 71 - 27 + + 85 - + + COUNT ( * ) / + 98 + + 11
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ( + + 57 ) * - - ( 80 ) + - - NULLIF ( COUNT( * ), - 59 ) + + + 1 AS col2
----
4562

skipif mysql # not compatible
query I rowsort label-6716
SELECT ( + + 57 ) * - - ( 80 ) + - - NULLIF ( COUNT ( * ), - 59 ) + + + 1 AS col2
----
4562

query I rowsort
SELECT 45 + 63 AS col1
----
108

query I rowsort
SELECT ALL + - 12 * - - 55
----
-660

query I rowsort
SELECT - CASE - 60 WHEN + COALESCE ( - 16, + 33 * + 50 ) THEN - 55 + - 36 + + + AVG ( ALL - - 5 ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 84 + 4
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT DISTINCT + COUNT( * ) + - ( - 57 )
----
58

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT + COUNT ( * ) + - ( - 57 )
----
58

query II rowsort
SELECT + 27 AS col0, - ( 77 ) * 74 col1
----
27
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT MIN( ALL 76 ) + 96 + - 25 + + + 47
----
194

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT MIN ( ALL 76 ) + 96 + - 25 + + + 47
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT + + 70 * COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT + + 70 * COUNT ( * ) AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6725
SELECT DISTINCT - 54 * 44 + + - 15 * - + CAST( CAST( - 56 AS SIGNED ) AS SIGNED ) DIV - + ( + COUNT( * ) ) AS col2
----
-1536

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - 54 * 44 + + - 15 * - + CAST ( CAST ( - 56 AS INTEGER ) AS INTEGER ) / - + ( + COUNT ( * ) ) AS col2
----
-1536

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6726
SELECT + 27 AS col0, CAST( NULL AS SIGNED ) * - + 89 AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-6726
SELECT + 27 AS col0, CAST ( NULL AS INTEGER ) * - + 89 AS col0
----
27
NULL

query I rowsort
SELECT DISTINCT 58 * 13 + + 2 AS col2
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL + + SUM( DISTINCT + 79 ) * - + COUNT( * ) + - 50
----
-129

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL + + SUM ( DISTINCT + 79 ) * - + COUNT ( * ) + - 50
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT MAX( - 49 ) * - 34 + + 87
----
1753

skipif mysql # not compatible
query I rowsort label-6729
SELECT MAX ( - 49 ) * - 34 + + 87
----
1753

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT DISTINCT - 2 * + - 40 + COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT - 2 * + - 40 + COUNT ( * ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6731
SELECT ALL - + MAX( ALL - 6 ) DIV + CAST( - ( - COALESCE ( + 67, - 96 ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - + MAX ( ALL - 6 ) / + CAST ( - ( - COALESCE ( + 67, - 96 ) ) AS INTEGER )
----
0

query II rowsort
SELECT 92 + 74, - 60 AS col0
----
166
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT DISTINCT - COALESCE ( + COUNT( * ), + 55 * + 25 ) * - - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + 55 * + 25 ) * - - 67 AS col2
----
-67

query I rowsort
SELECT - 42 * - 12 + + - 63
----
441

query I rowsort
SELECT 75 * 82 + 38
----
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + CASE 4 WHEN - 57 THEN + ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT + CASE 4 WHEN - 57 THEN + ( COUNT ( * ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 21 + - + 80 AS col1
----
-59

query I rowsort
SELECT - COALESCE ( + - 48, 84 ) * + 27 * 81 + + 85
----
105061

query I rowsort
SELECT - COALESCE ( 87, + 40, 24 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6740
SELECT + 26 * CAST( 89 AS SIGNED )
----
2314

skipif mysql # not compatible
query I rowsort label-6740
SELECT + 26 * CAST ( 89 AS INTEGER )
----
2314

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT + 55 DIV + 40 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6741
SELECT + 55 / + 40 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - MIN( + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6742
SELECT - MIN ( + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT - MIN( + COALESCE ( + 84, - 0 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-6743
SELECT - MIN ( + COALESCE ( + 84, - 0 ) )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-6744
SELECT + 90 * + COUNT( * ) AS col1, + 77 * + 32
----
90
2464

skipif mysql # not compatible
query II rowsort label-6744
SELECT + 90 * + COUNT ( * ) AS col1, + 77 * + 32
----
90
2464

query I rowsort
SELECT - 96 + 88
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT MAX( ALL + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT MAX ( ALL + 38 )
----
38

query I rowsort
SELECT ALL - - 48 + - 54 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT 72 + + ( - COUNT( * ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT 72 + + ( - COUNT ( * ) ) AS col1
----
71

query I rowsort
SELECT + 16 * + + 41
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT + 21 * + 29 + - MIN( + 64 )
----
545

skipif mysql # not compatible
query I rowsort label-6750
SELECT + 21 * + 29 + - MIN ( + 64 )
----
545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6751
SELECT ALL COUNT( ALL + 60 ) + + + 36 DIV - + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL COUNT ( ALL + 60 ) + + + 36 / - + 24 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL + 80 + - MIN( DISTINCT + 16 )
----
64

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL + 80 + - MIN ( DISTINCT + 16 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT + 74 - - + 71 + 77 + - COUNT( * ) + + 23 * 27 * 73 + 84 AS col1
----
45638

skipif mysql # not compatible
query I rowsort label-6754
SELECT + 74 - - + 71 + 77 + - COUNT ( * ) + + 23 * 27 * 73 + 84 AS col1
----
45638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT + + CAST( NULL AS SIGNED ) + - COUNT( * ) / + MIN( ALL - - 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + MIN ( ALL - - 63 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT - - COALESCE ( - 2, ( + - 0 ) ) + 1 DIV + 97 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6756
SELECT - - COALESCE ( - 2, ( + - 0 ) ) + 1 / + 97 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT ALL NULLIF ( + 5, - COUNT( DISTINCT + + 8 ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL NULLIF ( + 5, - COUNT ( DISTINCT + + 8 ) ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT - COUNT( 13 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6758
SELECT - COUNT ( 13 ) col1
----
-1

query II rowsort
SELECT + ( + 85 ) AS col1, + 12 - - 65 AS col2
----
85
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6760
SELECT DISTINCT 64 DIV 17 - 62
----
-59

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT 64 / 17 - 62
----
-59

query I rowsort
SELECT ALL 7 * - 52 - - + 90
----
-274

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT + + NULLIF ( + 30, 50 ) * + 15 * + + COALESCE ( + 70, COALESCE ( + - 56, - 64, - - COUNT( * ) ), + - COUNT( * ) ) - - - 34 AS col1
----
31466

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT + + NULLIF ( + 30, 50 ) * + 15 * + + COALESCE ( + 70, COALESCE ( + - 56, - 64, - - COUNT ( * ) ), + - COUNT ( * ) ) - - - 34 AS col1
----
31466

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6763
SELECT DISTINCT - 62 * - - CAST( - 19 AS SIGNED ) col2, - 26 + 67 AS col2, + 70
----
1178
41
70

skipif mysql # not compatible
query III rowsort label-6763
SELECT DISTINCT - 62 * - - CAST ( - 19 AS INTEGER ) col2, - 26 + 67 AS col2, + 70
----
1178
41
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT + COUNT( * ) * 1 * - 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6764
SELECT + COUNT ( * ) * 1 * - 98 AS col0
----
-98

query II rowsort
SELECT 18 * + - 43 + + 45, - COALESCE ( + + 33, 71 ) AS col0
----
-729
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT + COUNT( * ) * + + 66 - - 14 col0
----
80

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT + COUNT ( * ) * + + 66 - - 14 col0
----
80

query I rowsort
SELECT ( + 1 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT - COUNT( * ) + + COUNT( * ) + COALESCE ( + 10, - - 92 + + COUNT( * ), 80 - + + 31 + 76 + 56 + + 39 ) + + - 64 + 17 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6768
SELECT - COUNT ( * ) + + COUNT ( * ) + COALESCE ( + 10, - - 92 + + COUNT ( * ), 80 - + + 31 + 76 + 56 + + 39 ) + + - 64 + 17 AS col1
----
-37

query I rowsort
SELECT - 4 * + 64 AS col1
----
-256

query I rowsort
SELECT + 10 + 22 * - + 41 * + 6
----
-5402

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL + CASE + + 46 WHEN + COUNT( * ) - + 27 THEN 42 * 84 + - ( - 41 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL + CASE + + 46 WHEN + COUNT ( * ) - + 27 THEN 42 * 84 + - ( - 41 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT - 74 * 47 DIV NULLIF ( 19, + 33 + - 97 )
----
-183

skipif mysql # not compatible
query I rowsort label-6772
SELECT - 74 * 47 / NULLIF ( 19, + 33 + - 97 )
----
-183

query I rowsort
SELECT ALL 85 * + 9
----
765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6774
SELECT ALL + CAST( - + 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + CAST ( - + 3 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT + COUNT( * ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-6775
SELECT + COUNT ( * ) / - 81
----
0

query I rowsort
SELECT ALL 56 * - - 3 + - 22 * + 22
----
-316

query I rowsort
SELECT - 38 * 78 * + 68 col0
----
-201552

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT + COUNT( * ) * 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6778
SELECT + COUNT ( * ) * 73 AS col0
----
73

query II rowsort
SELECT ALL 99 * + 86 + + 36 col1, - 85 + - 28 AS col0
----
8550
-113

query II rowsort
SELECT DISTINCT 54, + 37 AS col1
----
54
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT - MIN( ALL - 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6781
SELECT - MIN ( ALL - 77 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT ALL + CAST( + - 47 AS SIGNED ) * - 93 * - 23 + - 13
----
-100546

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + CAST ( + - 47 AS INTEGER ) * - 93 * - 23 + - 13
----
-100546

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT + 99 * ( - 3 ) + + COUNT( * ) AS col0
----
-296

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + 99 * ( - 3 ) + + COUNT ( * ) AS col0
----
-296

query I rowsort
SELECT ( ( + 17 ) ) * - 94 - - 74
----
-1524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT DISTINCT CAST( + 23 AS SIGNED ) col0
----
23

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT CAST ( + 23 AS INTEGER ) col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6786
SELECT + NULLIF ( 64, + NULLIF ( 68, + 51 - 70 ) * - MAX( + 33 ) / + COUNT( * ) + + - 12 + + + COUNT( * ) + 97 * 56 / 51 * - - 46 + CAST( + - CAST( - 0 AS SIGNED ) AS SIGNED ) * - COUNT( * ) * 11 / - + NULLIF ( CASE - + 28 WHEN + 35 * + 79 THEN + - 74 * - - NULLIF ( - NULLIF ( + + 75, + 91 ), + 23 + + COUNT( * ) * - - 56 ) WHEN - 77 THEN NULL ELSE - 61 + 28 END, + CASE - 7 WHEN 2 THEN + + COUNT( * ) WHEN 22 * + + COUNT( * ) - 25 THEN NULL ELSE 68 END ) + + 91 )
----
64

skipif mysql # not compatible
query I rowsort label-6786
SELECT + NULLIF ( 64, + NULLIF ( 68, + 51 - 70 ) * - MAX ( + 33 ) / + COUNT ( * ) + + - 12 + + + COUNT ( * ) + 97 * 56 / 51 * - - 46 + CAST ( + - CAST ( - 0 AS INTEGER ) AS INTEGER ) * - COUNT ( * ) * 11 / - + NULLIF ( CASE - + 28 WHEN + 35 * + 79 THEN + - 74 * - - NULLIF ( - NULLIF ( + + 75, + 91 ), + 23 + + COUNT ( * ) * - - 56 ) WHEN - 77 THEN NULL ELSE - 61 + 28 END, + CASE - 7 WHEN 2 THEN + + COUNT ( * ) WHEN 22 * + + COUNT ( * ) - 25 THEN NULL ELSE 68 END ) + + 91 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT DISTINCT - COUNT( 27 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT - COUNT ( 27 ) col1
----
-1

query I rowsort
SELECT - + 46 + + 7 * 2 * - + 54 + + 31 col0
----
-771

query I rowsort
SELECT + - 65 - 85 AS col2
----
-150

query II rowsort
SELECT - 62, + 55 AS col0
----
-62
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6791
SELECT + + SUM( + 34 ) - + + 67, 81 AS col0
----
-33
81

skipif mysql # not compatible
query II rowsort label-6791
SELECT + + SUM ( + 34 ) - + + 67, 81 AS col0
----
-33
81

query I rowsort
SELECT + 94 * - 27
----
-2538

query II rowsort
SELECT - 23 AS col1, 48
----
-23
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT DISTINCT 33 * - + 11 - CAST( + 72 AS SIGNED ) * + - 48 AS col1
----
3093

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT 33 * - + 11 - CAST ( + 72 AS INTEGER ) * + - 48 AS col1
----
3093

query I rowsort
SELECT DISTINCT + 57 - + 25 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT ALL COUNT( + - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL COUNT ( + - 45 )
----
1

query I rowsort
SELECT DISTINCT - ( 60 ) - - 98 col2
----
38

query I rowsort
SELECT ALL 91 * + 88 * - 78
----
-624624

query I rowsort
SELECT DISTINCT 95 * + + 96
----
9120

query I rowsort
SELECT + - 27 + - + 42 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - + 94 * - - 52 * 44 + 98 + - ( - - COUNT( * ) )
----
-214975

skipif mysql # not compatible
query I rowsort label-6801
SELECT - + 94 * - - 52 * 44 + 98 + - ( - - COUNT ( * ) )
----
-214975

onlyif mysql # aggregate syntax: 
query II rowsort label-6802
SELECT 66 AS col2, COUNT( * ) * - - ( - 87 )
----
66
-87

skipif mysql # not compatible
query II rowsort label-6802
SELECT 66 AS col2, COUNT ( * ) * - - ( - 87 )
----
66
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT - + 89 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT - + 89 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - 55, COALESCE ( 71, - + 44 ) + + 98 AS col2
----
-55
169

onlyif mysql # aggregate syntax: 
query II rowsort label-6805
SELECT ALL - COUNT( DISTINCT + 73 ) col1, - 91
----
-1
-91

skipif mysql # not compatible
query II rowsort label-6805
SELECT ALL - COUNT ( DISTINCT + 73 ) col1, - 91
----
-1
-91

query I rowsort
SELECT ( - 8 ) - - - 23 * + + 83
----
-1917

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT 30 * + + COUNT( DISTINCT + 32 ) * + COUNT( * ), + 88 col0
----
30
88

skipif mysql # not compatible
query II rowsort label-6807
SELECT 30 * + + COUNT ( DISTINCT + 32 ) * + COUNT ( * ), + 88 col0
----
30
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ALL - 11 * + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - 11 * + COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT DISTINCT 21 * - ( - 51 )
----
1071

query I rowsort
SELECT ALL - ( + + 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT DISTINCT - COUNT( ALL + - 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT - COUNT ( ALL + - 32 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6812
SELECT ALL - COALESCE ( + COUNT( * ), 55 * COUNT( * ), - CAST( NULL AS SIGNED ) + MAX( DISTINCT 89 ) ) + + 98 col2
----
97

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - COALESCE ( + COUNT ( * ), 55 * COUNT ( * ), - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 89 ) ) + + 98 col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6813
SELECT COUNT( * ) + CAST( 16 AS SIGNED ) * + 18 + - 73 AS col2
----
216

skipif mysql # not compatible
query I rowsort label-6813
SELECT COUNT ( * ) + CAST ( 16 AS INTEGER ) * + 18 + - 73 AS col2
----
216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6814
SELECT COUNT( * ) DIV + 14 * 86 - - 92 + + 4
----
96

skipif mysql # not compatible
query I rowsort label-6814
SELECT COUNT ( * ) / + 14 * 86 - - 92 + + 4
----
96

query II rowsort
SELECT - 96 * + 57 * + 85 + - + 51 * - 65 * + - 88 * ( - + 78 ) * - 30 AS col1, 20
----
-683089920
20

query I rowsort
SELECT 49 * + 53 + - 53
----
2544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6817
SELECT 12 * - ( AVG ( ALL + CAST( NULL AS SIGNED ) ) ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6817
SELECT 12 * - ( AVG ( ALL + CAST ( NULL AS INTEGER ) ) ) + 46
----
NULL

query I rowsort
SELECT DISTINCT - 67 + 39 + + 63
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT 61 + - 60 + - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6819
SELECT 61 + - 60 + - + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT ALL + 49 + - CAST( - + 62 AS SIGNED )
----
111

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + 49 + - CAST ( - + 62 AS INTEGER )
----
111

query I rowsort
SELECT 71 + - + 95
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT DISTINCT + 68 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + 68 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT ALL COUNT( * ) * - 49 AS col0, 13 AS col1
----
-49
13

skipif mysql # not compatible
query II rowsort label-6823
SELECT ALL COUNT ( * ) * - 49 AS col0, 13 AS col1
----
-49
13

query I rowsort
SELECT + 3 + + 82
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6825
SELECT + AVG ( - - 21 ) * CAST( NULL AS SIGNED ) - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT + AVG ( - - 21 ) * CAST ( NULL AS INTEGER ) - - 64 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT 85 + - 11 + + 39 * CAST( 86 AS SIGNED ) AS col2
----
3428

skipif mysql # not compatible
query I rowsort label-6826
SELECT 85 + - 11 + + 39 * CAST ( 86 AS INTEGER ) AS col2
----
3428

query I rowsort
SELECT - 39 + - 2
----
-41

query I rowsort
SELECT ALL - + 34 * + 37 * 34
----
-42772

query I rowsort
SELECT 65 * - + 41 AS col1
----
-2665

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT SUM( + - 73 ) AS col1, + 37 AS col1
----
-73
37

skipif mysql # not compatible
query II rowsort label-6830
SELECT SUM ( + - 73 ) AS col1, + 37 AS col1
----
-73
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT - COALESCE ( + 27, + + CAST( NULL AS SIGNED ) * + 83 * - 64 * 39 )
----
-27

skipif mysql # not compatible
query I rowsort label-6831
SELECT - COALESCE ( + 27, + + CAST ( NULL AS INTEGER ) * + 83 * - 64 * 39 )
----
-27

query I rowsort
SELECT + 85 - 64 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL 25 * + 26 * - CASE + 9 WHEN + 81 THEN + 65 + + CASE - 26 WHEN 7 THEN - NULLIF ( COUNT( * ), 28 * - 65 ) END WHEN + 33 THEN + - 54 + + 96 END * 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL 25 * + 26 * - CASE + 9 WHEN + 81 THEN + 65 + + CASE - 26 WHEN 7 THEN - NULLIF ( COUNT ( * ), 28 * - 65 ) END WHEN + 33 THEN + - 54 + + 96 END * 45 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6834
SELECT COUNT( * ) + ( - 45 ) + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT COUNT ( * ) + ( - 45 ) + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6835
SELECT ALL 52 * + - CAST( NULL AS SIGNED ) - - - 59 * - 78 AS col2, 19
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6835
SELECT ALL 52 * + - CAST ( NULL AS INTEGER ) - - - 59 * - 78 AS col2, 19
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL CASE + 61 WHEN - COUNT( * ) THEN - 5 WHEN + 66 + - 18 + 14 + MAX( - 90 ) * ( - 74 ) THEN - + 90 ELSE + 89 END * + 52 AS col2
----
4628

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL CASE + 61 WHEN - COUNT ( * ) THEN - 5 WHEN + 66 + - 18 + 14 + MAX ( - 90 ) * ( - 74 ) THEN - + 90 ELSE + 89 END * + 52 AS col2
----
4628

query I rowsort
SELECT 89 * - 38 - - 37 + - + 18
----
-3363

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT COALESCE ( - + 71, - COUNT( * ) ) * ( + - 89 ) * - 83
----
-524477

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT COALESCE ( - + 71, - COUNT ( * ) ) * ( + - 89 ) * - 83
----
-524477

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL 80 + + 70 * - - 28 - - + 60 + - NULLIF ( - CASE - - COUNT( * ) WHEN - + 18 * + COUNT( * ) * - + 57 THEN 68 WHEN - - SUM( ALL 30 ) THEN NULL END, - 59 / - COUNT( * ) * + NULLIF ( - 10, 61 ) + - COUNT( * ) ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL 80 + + 70 * - - 28 - - + 60 + - NULLIF ( - CASE - - COUNT ( * ) WHEN - + 18 * + COUNT ( * ) * - + 57 THEN 68 WHEN - - SUM ( ALL 30 ) THEN NULL END, - 59 / - COUNT ( * ) * + NULLIF ( - 10, 61 ) + - COUNT ( * ) ) * 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6840
SELECT ALL CAST( - + 89 AS SIGNED ) + - 86, 40 - 87 + - + 16 AS col0
----
-175
-63

skipif mysql # not compatible
query II rowsort label-6840
SELECT ALL CAST ( - + 89 AS INTEGER ) + - 86, 40 - 87 + - + 16 AS col0
----
-175
-63

query I rowsort
SELECT 36 * 10
----
360

query I rowsort
SELECT DISTINCT 50 + - 39
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT ALL 9 DIV - + 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL 9 / - + 14 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT ( - - ( 2 ) ) / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT ( - - ( 2 ) ) / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 81 + - 74 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6846
SELECT DISTINCT - NULLIF ( + ( COUNT( * ) ), 59 / COUNT( DISTINCT 19 ) / + 24 * - + CASE - + 79 WHEN 3 * COALESCE ( - SUM( - - 93 ), - + ( + + 1 ) + + 15, - - 67 ) + + - 83 * 56 THEN 18 WHEN - - COUNT( * ) + 80 THEN + + 48 * + - 45 + + + 86 + + ( - 19 ) * + - CAST( NULL AS SIGNED ) ELSE NULL END ), SUM( ALL + - 42 ) AS col1
----
-1
-42

skipif mysql # not compatible
query II rowsort label-6846
SELECT DISTINCT - NULLIF ( + ( COUNT ( * ) ), 59 / COUNT ( DISTINCT 19 ) / + 24 * - + CASE - + 79 WHEN 3 * COALESCE ( - SUM ( - - 93 ), - + ( + + 1 ) + + 15, - - 67 ) + + - 83 * 56 THEN 18 WHEN - - COUNT ( * ) + 80 THEN + + 48 * + - 45 + + + 86 + + ( - 19 ) * + - CAST ( NULL AS INTEGER ) ELSE NULL END ), SUM ( ALL + - 42 ) AS col1
----
-1
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL - 81 + + COUNT( ALL + - 84 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - 81 + + COUNT ( ALL + - 84 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT AVG ( 85 ) * COUNT( * ) * COUNT( * ) * - 21 / - 76 + - CASE + + 0 WHEN + ( + 68 ) THEN + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT AVG ( 85 ) * COUNT ( * ) * COUNT ( * ) * - 21 / - 76 + - CASE + + 0 WHEN + ( + 68 ) THEN + 14 END
----
NULL

query II rowsort
SELECT DISTINCT - 41 AS col2, - 85
----
-41
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6850
SELECT ALL + 54 * - COUNT( * ) DIV - COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL + 54 * - COUNT ( * ) / - COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT + 9 AS col2, - COUNT( * ) AS col2
----
9
-1

skipif mysql # not compatible
query II rowsort label-6851
SELECT + 9 AS col2, - COUNT ( * ) AS col2
----
9
-1

query I rowsort
SELECT - 10 * + 70 AS col2
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - SUM( + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - SUM ( + 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL SUM( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL SUM ( 88 )
----
88

query II rowsort
SELECT ALL - 67, + 93 col2
----
-67
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6856
SELECT 56 / - CAST( NULL AS SIGNED ) - 47 + COALESCE ( + 36, - - 41 * - COUNT( * ) / - 23 / - 2 ) * - COALESCE ( + 4, + 84 * - + 94, + 90 * 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6856
SELECT 56 / - CAST ( NULL AS INTEGER ) - 47 + COALESCE ( + 36, - - 41 * - COUNT ( * ) / - 23 / - 2 ) * - COALESCE ( + 4, + 84 * - + 94, + 90 * 12 )
----
NULL

query I rowsort
SELECT 59 + + 75
----
134

query I rowsort
SELECT - 26 * 42 AS col1
----
-1092

query I rowsort
SELECT - 70 + - + 84 - - 15 AS col1
----
-139

query I rowsort
SELECT ALL + 42 * - 13 AS col2
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6861
SELECT - - COUNT( * ) DIV + - SUM( DISTINCT 20 ) * - + 5
----
0

skipif mysql # not compatible
query I rowsort label-6861
SELECT - - COUNT ( * ) / + - SUM ( DISTINCT 20 ) * - + 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT + - COUNT( * ) * - 40 + - - 61 * - - 59
----
3639

skipif mysql # not compatible
query I rowsort label-6862
SELECT + - COUNT ( * ) * - 40 + - - 61 * - - 59
----
3639

query I rowsort
SELECT DISTINCT ( + - 97 ) AS col0
----
-97

query II rowsort
SELECT 64 col1, - 55
----
64
-55

query I rowsort
SELECT ALL + 50 + + 7 * - 58 * - + 57
----
23192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6866
SELECT DISTINCT + COUNT( * ) * - 17 + + + 49 + - ( + COUNT( * ) ) DIV - + 45 - - - 56 * + - 51 * + 84 * + - 14 * - + 6 AS col0
----
20151968

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT + COUNT ( * ) * - 17 + + + 49 + - ( + COUNT ( * ) ) / - + 45 - - - 56 * + - 51 * + 84 * + - 14 * - + 6 AS col0
----
20151968

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL + SUM( ALL + + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL + SUM ( ALL + + 20 )
----
20

query I rowsort
SELECT DISTINCT + + 40 + + 13 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT - MIN( + ( + 12 ) ) * 66 AS col0
----
-792

skipif mysql # not compatible
query I rowsort label-6869
SELECT - MIN ( + ( + 12 ) ) * 66 AS col0
----
-792

query I rowsort
SELECT ALL + ( + 13 ) + 81
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT 57, - 59 + - 70 + + 95 * + COUNT( * ) col2
----
57
-34

skipif mysql # not compatible
query II rowsort label-6871
SELECT 57, - 59 + - 70 + + 95 * + COUNT ( * ) col2
----
57
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT DISTINCT COALESCE ( - 61, - 90 * + 9 DIV - 92 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT COALESCE ( - 61, - 90 * + 9 / - 92 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT + NULLIF ( + 19, 72 ) * COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6873
SELECT + NULLIF ( + 19, 72 ) * COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT + COALESCE ( + + 42, + - 0 * - - 84 + COUNT( * ) * + + 42 + + - 86 + 31 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6874
SELECT + COALESCE ( + + 42, + - 0 * - - 84 + COUNT ( * ) * + + 42 + + - 86 + 31 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT + COALESCE ( + + CASE - - 99 WHEN + 0 / - - 17 * + 9 THEN NULL WHEN + - MIN( ALL + 21 ) / 85 THEN + 34 * + COUNT( * ) END, - - 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6875
SELECT + COALESCE ( + + CASE - - 99 WHEN + 0 / - - 17 * + 9 THEN NULL WHEN + - MIN ( ALL + 21 ) / 85 THEN + 34 * + COUNT ( * ) END, - - 80 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6876
SELECT ALL 81 * COUNT( DISTINCT - - ( - CAST( NULL AS SIGNED ) ) ) + - 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL 81 * COUNT ( DISTINCT - - ( - CAST ( NULL AS INTEGER ) ) ) + - 4 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6877
SELECT DISTINCT + MAX( - - NULLIF ( - 78, - - ( + CASE - 86 WHEN ( 14 ) THEN + 1 ELSE + - 66 END ) * - + ( - CAST( + 49 AS SIGNED ) ) ) )
----
-78

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT + MAX ( - - NULLIF ( - 78, - - ( + CASE - 86 WHEN ( 14 ) THEN + 1 ELSE + - 66 END ) * - + ( - CAST ( + 49 AS INTEGER ) ) ) )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT ALL 87 * + CAST( NULL AS SIGNED ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL 87 * + CAST ( NULL AS INTEGER ) + - 51
----
NULL

query I rowsort
SELECT DISTINCT + 76 * - 40
----
-3040

query I rowsort
SELECT DISTINCT + 67 * - 31 * + 56 AS col0
----
-116312

query II rowsort
SELECT DISTINCT + 42 AS col1, ( + 46 ) AS col1
----
42
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT ALL + COUNT( * ) AS col1, + COUNT( 2 )
----
1
1

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( 2 )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ALL COUNT( * ) * - 53 - - 10 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL COUNT ( * ) * - 53 - - 10 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT + MIN( + 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6884
SELECT + MIN ( + 45 ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT 99 * - + COUNT( * ) * + COUNT( * ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT 99 * - + COUNT ( * ) * + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + 13 * - COUNT( - ( - + 84 ) ) * - 9
----
117

skipif mysql # not compatible
query I rowsort label-6886
SELECT + 13 * - COUNT ( - ( - + 84 ) ) * - 9
----
117

query II rowsort
SELECT 86 * 12 + - 61 + - 81 AS col2, 41 AS col1
----
890
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + 31 - + SUM( ALL 13 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6888
SELECT + 31 - + SUM ( ALL 13 ) AS col2
----
18

query II rowsort
SELECT ALL + 44 AS col1, 47 AS col2
----
44
47

query II rowsort
SELECT ALL + + 77 AS col2, 85 * 60 AS col0
----
77
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT + + 67 * - COUNT( * ) + + 31
----
-36

skipif mysql # not compatible
query I rowsort label-6891
SELECT + + 67 * - COUNT ( * ) + + 31
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT + + COUNT( * ) * - COALESCE ( + 81, + 46 + MIN( 17 ), + CAST( NULL AS SIGNED ), - 99 ) * SUM( + - 80 ) AS col2
----
6480

skipif mysql # not compatible
query I rowsort label-6892
SELECT + + COUNT ( * ) * - COALESCE ( + 81, + 46 + MIN ( 17 ), + CAST ( NULL AS INTEGER ), - 99 ) * SUM ( + - 80 ) AS col2
----
6480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6893
SELECT + - 92 + - 82 + CAST( - - 37 AS SIGNED ) AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-6893
SELECT + - 92 + - 82 + CAST ( - - 37 AS INTEGER ) AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT + - COALESCE ( + 3, COUNT( * ) + - 44 + + - 93 * + 48 * 67 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + - COALESCE ( + 3, COUNT ( * ) + - 44 + + - 93 * + 48 * 67 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT + MAX( ALL - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT + MAX ( ALL - 69 ) AS col2
----
-69

query I rowsort
SELECT ALL + 6 * 22
----
132

query II rowsort
SELECT ALL + + 18, 62 AS col0
----
18
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6898
SELECT ALL + 38 AS col2, 73 * COUNT( * ) + - ( + + 2 ) AS col1
----
38
71

skipif mysql # not compatible
query II rowsort label-6898
SELECT ALL + 38 AS col2, 73 * COUNT ( * ) + - ( + + 2 ) AS col1
----
38
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6899
SELECT - COUNT( * ) + - 67 * - - COUNT( * ) * + ( - MAX( ALL + + 70 ) ) col0, 54 + + + 92
----
4689
146

skipif mysql # not compatible
query II rowsort label-6899
SELECT - COUNT ( * ) + - 67 * - - COUNT ( * ) * + ( - MAX ( ALL + + 70 ) ) col0, 54 + + + 92
----
4689
146

query I rowsort
SELECT ALL - 46 * 23
----
-1058

query II rowsort
SELECT ALL 42, - 41 AS col0
----
42
-41

query II rowsort
SELECT - 54 AS col2, 28 + + 81
----
-54
109

query I rowsort
SELECT - + 76 + + 3 AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT + - 7 * + - 57 + - 49 DIV - - 34 + - - 15
----
413

skipif mysql # not compatible
query I rowsort label-6904
SELECT + - 7 * + - 57 + - 49 / - - 34 + - - 15
----
413

query I rowsort
SELECT - - 1 + + 76 + 75 * + 75
----
5702

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT SUM( - - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT SUM ( - - 85 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT ALL + 5 + + COUNT( * ) * - 78 * + 68 + + 51 DIV - 3 * + COUNT( * ) AS col0
----
-5316

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL + 5 + + COUNT ( * ) * - 78 * + 68 + + 51 / - 3 * + COUNT ( * ) AS col0
----
-5316

query I rowsort
SELECT DISTINCT 69 + + COALESCE ( - 76, + - 14 * + 61, + - NULLIF ( + - 5, 32 ) + 68 ) * 65 AS col1
----
-4871

query I rowsort
SELECT ALL - - 66 * - 99 col1
----
-6534

query I rowsort
SELECT DISTINCT - - 50 + + CASE + 96 WHEN + + 43 THEN + 14 ELSE + 1 END * - ( + - 62 ) AS col2
----
112

query I rowsort
SELECT DISTINCT - + 41 + - 97
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT - CAST( - COALESCE ( 38, - - 77 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-6912
SELECT - CAST ( - COALESCE ( 38, - - 77 ) AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT + 22 - - 57 + - 79 - 59 * - CASE + ( + + 34 ) WHEN NULLIF ( - 36, - 16 ) THEN + + 5 WHEN + NULLIF ( 82, 4 ) THEN NULL END * - + NULLIF ( - COUNT( * ), + 94 ) + + 67 / + 46 / + 29 + - - 86 * - 59 + + - 48 * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT + 22 - - 57 + - 79 - 59 * - CASE + ( + + 34 ) WHEN NULLIF ( - 36, - 16 ) THEN + + 5 WHEN + NULLIF ( 82, 4 ) THEN NULL END * - + NULLIF ( - COUNT ( * ), + 94 ) + + 67 / + 46 / + 29 + - - 86 * - 59 + + - 48 * 14
----
NULL

query I rowsort
SELECT ALL - 53 * + - 5 * - 77 * - 20
----
408100

query I rowsort
SELECT DISTINCT + 98 + 94 AS col1
----
192

query I rowsort
SELECT DISTINCT - 35 * 68 AS col1
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL + 81 + - - 20 + + 56 * COALESCE ( + 0, + 44 ) * - COUNT( * ) * 62 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL + 81 + - - 20 + + 56 * COALESCE ( + 0, + 44 ) * - COUNT ( * ) * 62 AS col1
----
101

query I rowsort
SELECT - 9 + 0 AS col1
----
-9

query I rowsort
SELECT ALL + 90 * - 25
----
-2250

query I rowsort
SELECT - ( 25 ) + 14
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6921
SELECT ALL CAST( NULL AS DECIMAL ) / - 7 - - 10 + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL CAST ( NULL AS REAL ) / - 7 - - 10 + 58 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( 76, 5 ) * 49 AS col1
----
-3724

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT - 89 DIV + 62 + 73
----
72

skipif mysql # not compatible
query I rowsort label-6923
SELECT - 89 / + 62 + 73
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT + 90 * + MAX( - 46 )
----
-4140

skipif mysql # not compatible
query I rowsort label-6924
SELECT + 90 * + MAX ( - 46 )
----
-4140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6925
SELECT - 2 * + 94 AS col2, CASE - COUNT( * ) WHEN + - COUNT( * ) THEN + + 16 * - - COUNT( * ) + - 82 - - 13 ELSE - - 14 * - MIN( - - 74 ) * + + 62 + + MAX( - 23 ) + 80 + - - CASE + 93 WHEN + - 75 THEN 25 ELSE - ( 93 ) END - - + 99 * - COUNT( DISTINCT - - 27 ) END DIV + 60
----
-188
0

skipif mysql # not compatible
query II rowsort label-6925
SELECT - 2 * + 94 AS col2, CASE - COUNT ( * ) WHEN + - COUNT ( * ) THEN + + 16 * - - COUNT ( * ) + - 82 - - 13 ELSE - - 14 * - MIN ( - - 74 ) * + + 62 + + MAX ( - 23 ) + 80 + - - CASE + 93 WHEN + - 75 THEN 25 ELSE - ( 93 ) END - - + 99 * - COUNT ( DISTINCT - - 27 ) END / + 60
----
-188
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6926
SELECT + 7 + - 96 * + CAST( - COUNT( * ) AS SIGNED ) col1
----
103

skipif mysql # not compatible
query I rowsort label-6926
SELECT + 7 + - 96 * + CAST ( - COUNT ( * ) AS INTEGER ) col1
----
103

query I rowsort
SELECT ALL - 41 * - 4 * ( + - 42 )
----
-6888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT CASE - 31 WHEN - + 41 THEN + + COALESCE ( - 90, + ( SUM( ALL CAST( - 39 AS SIGNED ) ) ), + - 35 * - - 92 ) ELSE - 71 + - - ( + + 48 ) END AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6928
SELECT CASE - 31 WHEN - + 41 THEN + + COALESCE ( - 90, + ( SUM ( ALL CAST ( - 39 AS INTEGER ) ) ), + - 35 * - - 92 ) ELSE - 71 + - - ( + + 48 ) END AS col1
----
-23

query I rowsort
SELECT + 19 * + + 92 + 62 - + ( 24 ) + - 54 AS col0
----
1732

query I rowsort
SELECT ALL + ( 88 ) + + 25 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT + 38 + 80 + COUNT( * ) * 18 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-6931
SELECT + 38 + 80 + COUNT ( * ) * 18 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + COALESCE ( COUNT( * ), 11 + - + 27 + - 96 - - 26 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6932
SELECT + COALESCE ( COUNT ( * ), 11 + - + 27 + - 96 - - 26 ) col0
----
1

query I rowsort
SELECT ALL ( - - 4 ) + + + 72 * - + CASE - COALESCE ( - - 52, 2 - + 7 ) WHEN + + 62 THEN - + 65 END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6934
SELECT DISTINCT - CAST( - - 91 AS SIGNED ) AS col0, 77 - 62 - - - 24 + + 20 * 98 DIV - 12
----
-91
-172

skipif mysql # not compatible
query II rowsort label-6934
SELECT DISTINCT - CAST ( - - 91 AS INTEGER ) AS col0, 77 - 62 - - - 24 + + 20 * 98 / - 12
----
-91
-172

query I rowsort
SELECT ALL 35 + + 11 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT - MIN( + + ( - ( - 0 ) ) ) - + - CASE - 22 WHEN - + 57 * - + NULLIF ( - - 65, - - COUNT( * ) ) / - 48 THEN - AVG ( ALL - 83 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT - MIN ( + + ( - ( - 0 ) ) ) - + - CASE - 22 WHEN - + 57 * - + NULLIF ( - - 65, - - COUNT ( * ) ) / - 48 THEN - AVG ( ALL - 83 ) END AS col2
----
NULL

query I rowsort
SELECT - 88 - 67 col0
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT ALL 57 + - - COALESCE ( - - 75, + 16 * 94 DIV + CASE - + 69 WHEN - - 98 + 30 THEN 45 * 71 - + - 99 * - 92 + - 49 ELSE NULL END )
----
132

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL 57 + - - COALESCE ( - - 75, + 16 * 94 / + CASE - + 69 WHEN - - 98 + 30 THEN 45 * 71 - + - 99 * - 92 + - 49 ELSE NULL END )
----
132

query I rowsort
SELECT ALL 71 + 34 * + + 78
----
2723

query I rowsort
SELECT ALL + 73 * - 63 AS col1
----
-4599

onlyif mysql # aggregate syntax: 
query II rowsort label-6941
SELECT + 54 + 86 col1, SUM( DISTINCT + 78 ) AS col2
----
140
78

skipif mysql # not compatible
query II rowsort label-6941
SELECT + 54 + 86 col1, SUM ( DISTINCT + 78 ) AS col2
----
140
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6942
SELECT - NULLIF ( + CASE - CAST( NULL AS SIGNED ) WHEN 69 * - 81 THEN + COUNT( DISTINCT - 63 ) + + - CAST( 19 AS SIGNED ) WHEN + 54 THEN 69 WHEN + + 94 THEN NULL END, + - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT - NULLIF ( + CASE - CAST ( NULL AS INTEGER ) WHEN 69 * - 81 THEN + COUNT ( DISTINCT - 63 ) + + - CAST ( 19 AS INTEGER ) WHEN + 54 THEN 69 WHEN + + 94 THEN NULL END, + - 50 )
----
NULL

query I rowsort
SELECT 39 + + 25 col2
----
64

query I rowsort
SELECT DISTINCT - 49 + - 79 AS col0
----
-128

onlyif mysql # DIV for integer division: 
query II rowsort label-6945
SELECT ALL 74 AS col0, - 5 DIV + ( + 73 )
----
74
0

skipif mysql # not compatible
query II rowsort label-6945
SELECT ALL 74 AS col0, - 5 / + ( + 73 )
----
74
0

query I rowsort
SELECT 64 * + + 20 AS col2
----
1280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6947
SELECT ALL - COUNT( * ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL - COUNT ( * ) / 55
----
0

query I rowsort
SELECT DISTINCT 91 - - 65 * - + 12 * + 48 * - - 93
----
-3481829

query I rowsort
SELECT DISTINCT - 4 * + 26
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT ALL 26 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL 26 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT MAX( DISTINCT + 38 ) * + 44
----
1672

skipif mysql # not compatible
query I rowsort label-6951
SELECT MAX ( DISTINCT + 38 ) * + 44
----
1672

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT ALL - 22 DIV - + 85 * - 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - 22 / - + 85 * - 71 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT MIN( DISTINCT - 93 ) + 33 * - - SUM( ALL 19 )
----
534

skipif mysql # not compatible
query I rowsort label-6953
SELECT MIN ( DISTINCT - 93 ) + 33 * - - SUM ( ALL 19 )
----
534

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6954
SELECT + 4 / SUM( + + CAST( NULL AS DECIMAL ) ) + - 42 / - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT + 4 / SUM ( + + CAST ( NULL AS REAL ) ) + - 42 / - 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( 66 ) AS col1
----
-66

query I rowsort
SELECT ALL + 87 * + 37
----
3219

onlyif mysql # aggregate syntax: 
query II rowsort label-6957
SELECT ALL - COUNT( * ) * - 23 * + + 15, + 75 AS col2
----
345
75

skipif mysql # not compatible
query II rowsort label-6957
SELECT ALL - COUNT ( * ) * - 23 * + + 15, + 75 AS col2
----
345
75

query I rowsort
SELECT 89 * + + 76 col2
----
6764

query II rowsort
SELECT ALL - 25 AS col0, 26 * - 76 AS col1
----
-25
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT DISTINCT + 5 * - MAX( 4 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT + 5 * - MAX ( 4 ) AS col1
----
-20

query I rowsort
SELECT DISTINCT - 42 * 49 AS col1
----
-2058

query II rowsort
SELECT ALL - + 12 AS col0, 75 * ( + + 12 ) AS col1
----
-12
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6963
SELECT ALL - 12 * + COUNT( ALL - CAST( 56 AS SIGNED ) )
----
-12

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL - 12 * + COUNT ( ALL - CAST ( 56 AS INTEGER ) )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL + 20 + 28 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL + 20 + 28 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 95 * - 8 + - 23 AS col1
----
737

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6966
SELECT + 43, + 7 DIV COUNT( DISTINCT COALESCE ( + ( + ( NULLIF ( + 53, CAST( NULL AS DECIMAL ) + + 79 + 26 + + + 97 ) ) ), + 44 ) ) AS col0
----
43
7

skipif mysql # not compatible
query II rowsort label-6966
SELECT + 43, + 7 / COUNT ( DISTINCT COALESCE ( + ( + ( NULLIF ( + 53, CAST ( NULL AS REAL ) + + 79 + 26 + + + 97 ) ) ), + 44 ) ) AS col0
----
43
7

query I rowsort
SELECT ALL - + 0 + - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT DISTINCT COUNT( - - 4 ) * + - ( + COUNT( * ) ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT COUNT ( - - 4 ) * + - ( + COUNT ( * ) ) + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT DISTINCT + ( - 15 ) + - 94 + - + 75 + 48 AS col1
----
-136

query I rowsort
SELECT DISTINCT + + 45 + 20 AS col1
----
65

query I rowsort
SELECT ALL 2 + + 0 + - 91 + + 45 * + 57 AS col1
----
2476

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT + COUNT( - 65 ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-6972
SELECT + COUNT ( - 65 ) + - 58
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6973
SELECT ALL + - MAX( ALL + 18 ) + - COUNT( * ) + COALESCE ( 27, + + 31 * + - NULLIF ( + 64, - - 8 ) + - MIN( - - 55 ) DIV - 72 ) + + COUNT( * ) AS col2, + NULLIF ( + - AVG ( CAST( NULL AS SIGNED ) ), + COALESCE ( + + 5, - ( - + 74 ) DIV - + 9 * + + 79 ) ) + + 65 AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6973
SELECT ALL + - MAX ( ALL + 18 ) + - COUNT ( * ) + COALESCE ( 27, + + 31 * + - NULLIF ( + 64, - - 8 ) + - MIN ( - - 55 ) / - 72 ) + + COUNT ( * ) AS col2, + NULLIF ( + - AVG ( CAST ( NULL AS INTEGER ) ), + COALESCE ( + + 5, - ( - + 74 ) / - + 9 * + + 79 ) ) + + 65 AS col0
----
9
NULL

query I rowsort
SELECT DISTINCT - - 33 * 80
----
2640

query II rowsort
SELECT 13 * + 96 * - 39, + 85 AS col0
----
-48672
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL 64 * CASE + CASE 54 WHEN 34 THEN NULL WHEN + COUNT( * ) * - + 24 THEN + - 24 ELSE + 49 / - 38 + + 55 END WHEN - 11 THEN - 46 * 34 + + 87 - - COUNT( * ) - - - COUNT( * ) WHEN - 97 + 10 THEN NULL ELSE NULL END + + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL 64 * CASE + CASE 54 WHEN 34 THEN NULL WHEN + COUNT ( * ) * - + 24 THEN + - 24 ELSE + 49 / - 38 + + 55 END WHEN - 11 THEN - 46 * 34 + + 87 - - COUNT ( * ) - - - COUNT ( * ) WHEN - 97 + 10 THEN NULL ELSE NULL END + + - 69
----
NULL

query I rowsort
SELECT ALL + 44 + - 75 AS col0
----
-31

query II rowsort
SELECT - 47 + - ( - 78 ) col0, - 53
----
31
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6979
SELECT - 52 DIV - 17 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6979
SELECT - 52 / - 17 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT - 22 + + COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6980
SELECT - 22 + + COUNT ( * ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6981
SELECT 84 + - - COUNT( * ) DIV 1 * - 18 * + - 0 DIV - - 80 + + COUNT( * ) * 5 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-6981
SELECT 84 + - - COUNT ( * ) / 1 * - 18 * + - 0 / - - 80 + + COUNT ( * ) * 5 AS col1
----
89

query I rowsort
SELECT ALL 86 - - 54
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-6983
SELECT DISTINCT 45 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT 45 / 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6984
SELECT DISTINCT 15 - + 41 + - 59 * 28 * 15 DIV MAX( + 64 )
----
-413

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT 15 - + 41 + - 59 * 28 * 15 / MAX ( + 64 )
----
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT DISTINCT COUNT( + 63 ) - - 9 + 93 + - 4
----
99

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT COUNT ( + 63 ) - - 9 + 93 + - 4
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT - COUNT( 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-6986
SELECT - COUNT ( 45 )
----
-1

query I rowsort
SELECT ALL 3 * + 77 AS col0
----
231

query II rowsort
SELECT 64 - - ( + 17 ) + ( + 60 ) AS col2, - 41 AS col2
----
141
-41

query I rowsort
SELECT DISTINCT 38 * 51 AS col0
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT - COUNT( - ( - + 76 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6990
SELECT - COUNT ( - ( - + 76 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - COUNT( DISTINCT - 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-6991
SELECT - COUNT ( DISTINCT - 40 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT 2 * 73 * + + COUNT( ALL - + 24 )
----
146

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT 2 * 73 * + + COUNT ( ALL - + 24 )
----
146

query I rowsort
SELECT - 80 * + 97 AS col2
----
-7760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6994
SELECT DISTINCT COUNT( * ) DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT COUNT ( * ) / 37
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT + 7 DIV + + 21
----
0

skipif mysql # not compatible
query I rowsort label-6995
SELECT + 7 / + + 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL - 20 * - COUNT( * ) * 16 + - 62 AS col1
----
258

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL - 20 * - COUNT ( * ) * 16 + - 62 AS col1
----
258

query I rowsort
SELECT - ( + 45 ) * + + 69
----
-3105

query I rowsort
SELECT ALL + - 5 * + - 96 * 43 * ( - 56 ) + + 22
----
-1155818

query I rowsort
SELECT - + 3 * - - CASE + 56 WHEN 60 THEN - + 90 ELSE ( - 13 ) END AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7000
SELECT DISTINCT - - 31 * CASE - 73 WHEN - 70 * + - 14 + + - 35 - 33 - + 18 / + - 10 * - 91 / + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) * + COUNT( * ) + 58 + ( - + 37 ) + + 44 THEN - 6 ELSE NULL END + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT - - 31 * CASE - 73 WHEN - 70 * + - 14 + + - 35 - 33 - + 18 / + - 10 * - 91 / + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) * + COUNT ( * ) + 58 + ( - + 37 ) + + 44 THEN - 6 ELSE NULL END + + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - 23 + - + 6 * - 0 - + 66 - MIN( + 56 ) * 58 * + - 58 AS col0
----
188295

skipif mysql # not compatible
query I rowsort label-7001
SELECT - 23 + - + 6 * - 0 - + 66 - MIN ( + 56 ) * 58 * + - 58 AS col0
----
188295

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT - SUM( DISTINCT + - 14 ) * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7002
SELECT - SUM ( DISTINCT + - 14 ) * + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT DISTINCT + 22 * + 81 * - - COUNT( * )
----
1782

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT + 22 * + 81 * - - COUNT ( * )
----
1782

query I rowsort
SELECT DISTINCT CASE - - 32 WHEN + 44 THEN + 19 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 95, 31 )
----
95

query I rowsort
SELECT DISTINCT + 22 * + 72 AS col0
----
1584

query I rowsort
SELECT - 33 + - 16
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT - COALESCE ( + 97, - 38 * + 40 * - NULLIF ( 75, 29 ), + 59 * NULLIF ( + 53, 86 ) + + COUNT( * ) ) + - COUNT( * ) * + + 6 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-7008
SELECT - COALESCE ( + 97, - 38 * + 40 * - NULLIF ( 75, 29 ), + 59 * NULLIF ( + 53, 86 ) + + COUNT ( * ) ) + - COUNT ( * ) * + + 6 AS col2
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT + CAST( NULL AS SIGNED ) / + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT + CAST ( NULL AS INTEGER ) / + 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7010
SELECT - ( + + COALESCE ( + 40, MAX( 14 ) ) ) * + + COUNT( * ) AS col2, MIN( ALL 70 ) + + 75
----
-40
145

skipif mysql # not compatible
query II rowsort label-7010
SELECT - ( + + COALESCE ( + 40, MAX ( 14 ) ) ) * + + COUNT ( * ) AS col2, MIN ( ALL 70 ) + + 75
----
-40
145

query I rowsort
SELECT + 91 - 97
----
-6

query I rowsort
SELECT - NULLIF ( + 69, - + 96 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT ALL ( + CAST( + + 81 AS SIGNED ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL ( + CAST ( + + 81 AS INTEGER ) ) AS col2
----
81

query I rowsort
SELECT ALL ( - 53 ) + + + 70 AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT DISTINCT + 87 DIV + 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT + 87 / + 63 AS col1
----
1

query I rowsort
SELECT ALL ( - - 46 ) AS col2
----
46

query I rowsort
SELECT + 72 * - - 18
----
1296

query I rowsort
SELECT + 31 + - 81 AS col0
----
-50

query I rowsort
SELECT - NULLIF ( 43, - + 92 * - 82 + + AVG ( 88 ) + + + 99 * 98 - 93 )
----
-43

query I rowsort
SELECT ALL 54 + - 22 + 1 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT - COUNT( - 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-7021
SELECT - COUNT ( - 55 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT ALL COUNT( * ) + 78 * + 9
----
703

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL COUNT ( * ) + 78 * + 9
----
703

query I rowsort
SELECT + ( + 6 ) + + 29 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL - 0 / 95 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - 0 / 95 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL CASE 89 WHEN COUNT( * ) + 81 THEN 37 WHEN - 6 THEN 24 / 72 - 9 WHEN COALESCE ( + ( + ( - 46 ) ), - CASE + 13 WHEN + 67 THEN + NULLIF ( 30, 46 ) END * 19 + + 10 / 10, 74 * - 1 ) THEN NULL ELSE NULL END * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL CASE 89 WHEN COUNT ( * ) + 81 THEN 37 WHEN - 6 THEN 24 / 72 - 9 WHEN COALESCE ( + ( + ( - 46 ) ), - CASE + 13 WHEN + 67 THEN + NULLIF ( 30, 46 ) END * 19 + + 10 / 10, 74 * - 1 ) THEN NULL ELSE NULL END * 23
----
NULL

query I rowsort
SELECT + 89 + 23
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT ALL + CAST( NULL AS SIGNED ) / 38 + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL + CAST ( NULL AS INTEGER ) / 38 + 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7028
SELECT DISTINCT + 55 DIV + SUM( ALL + 59 ) + 0
----
0

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT + 55 / + SUM ( ALL + 59 ) + 0
----
0

query I rowsort
SELECT + 41 * 86
----
3526

query I rowsort
SELECT - ( 0 ) * - 95 + + 47
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT ALL + 25 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL + 25 / 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT 34 DIV 54 + - 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT 34 / 54 + - 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL - COUNT( * ) * 28 - + 3 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - COUNT ( * ) * 28 - + 3 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT + 47 + CASE 22 WHEN 86 + + 68 THEN NULL WHEN + NULLIF ( + 42, - ( CASE 21 WHEN + COUNT( * ) * 13 THEN 67 END ) ) THEN + 54 / - 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT + 47 + CASE 22 WHEN 86 + + 68 THEN NULL WHEN + NULLIF ( + 42, - ( CASE 21 WHEN + COUNT ( * ) * 13 THEN 67 END ) ) THEN + 54 / - 58 END AS col2
----
NULL

query I rowsort
SELECT + 5 * 66 AS col0
----
330

query I rowsort
SELECT - ( + 88 ) + + 89 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT ALL 34 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL 34 / 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT 98 * - CAST( NULL AS SIGNED ) + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT 98 * - CAST ( NULL AS INTEGER ) + 72 col1
----
NULL

query I rowsort
SELECT ALL 81 * - 28 - + 96
----
-2364

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL - 8 * MIN( ALL + 77 * 7 ) AS col2
----
-4312

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - 8 * MIN ( ALL + 77 * 7 ) AS col2
----
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7041
SELECT + 75 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT + 75 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT ALL 81 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL 81 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT - COUNT( * ) * 86 - 93
----
-179

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT - COUNT ( * ) * 86 - 93
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT COALESCE ( MAX( 19 ), MAX( 14 ) ) col1
----
19

skipif mysql # not compatible
query I rowsort label-7044
SELECT COALESCE ( MAX ( 19 ), MAX ( 14 ) ) col1
----
19

query I rowsort
SELECT ALL 75 * - 26 AS col1
----
-1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT DISTINCT 33 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT 33 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT COUNT( * ) * 70 + - COALESCE ( 7 - - 70 * - 70, - 11 ) * + 81
----
396403

skipif mysql # not compatible
query I rowsort label-7047
SELECT COUNT ( * ) * 70 + - COALESCE ( 7 - - 70 * - 70, - 11 ) * + 81
----
396403

query I rowsort
SELECT + 17 * + 69 + 63 * 11
----
1866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7049
SELECT CASE COALESCE ( 17, + CAST( - 69 AS SIGNED ) + 73 ) WHEN 36 THEN + 50 WHEN 5 THEN 75 * 45 + COUNT( * ) ELSE - 98 END
----
-98

skipif mysql # not compatible
query I rowsort label-7049
SELECT CASE COALESCE ( 17, + CAST ( - 69 AS INTEGER ) + 73 ) WHEN 36 THEN + 50 WHEN 5 THEN 75 * 45 + COUNT ( * ) ELSE - 98 END
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT - ( + COUNT( * ) ) * - 34
----
34

skipif mysql # not compatible
query I rowsort label-7050
SELECT - ( + COUNT ( * ) ) * - 34
----
34

query I rowsort
SELECT - 91 + 40 AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT ALL CAST( AVG ( 44 ) AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL CAST ( AVG ( 44 ) AS INTEGER ) AS col2
----
44

query I rowsort
SELECT - ( - 19 ) * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT - 48 * + 34 + COUNT( * ) * 7
----
-1625

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT - 48 * + 34 + COUNT ( * ) * 7
----
-1625

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT ALL + 1 DIV 56 col0
----
0

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + 1 / 56 col0
----
0

query I rowsort
SELECT DISTINCT - 46 + 44 * - 33
----
-1498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT DISTINCT CAST( - SUM( - 33 ) AS SIGNED ) + 50 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT CAST ( - SUM ( - 33 ) AS INTEGER ) + 50 AS col2
----
83

query I rowsort
SELECT - NULLIF ( ( 84 ), NULLIF ( 98, - 31 ) ) AS col2
----
-84

query I rowsort
SELECT ALL - 74 + + 62
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT 95 DIV 83 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7060
SELECT 95 / 83 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT 98 - + CASE 19 - + COALESCE ( + CASE + 9 WHEN 11 * 83 + - 72 THEN 47 + 9 END, 82 ) WHEN - 16 THEN COUNT( * ) ELSE NULL END / - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT 98 - + CASE 19 - + COALESCE ( + CASE + 9 WHEN 11 * 83 + - 72 THEN 47 + 9 END, 82 ) WHEN - 16 THEN COUNT ( * ) ELSE NULL END / - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT COUNT( * ) + - 22 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7062
SELECT COUNT ( * ) + - 22 AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT + COALESCE ( 69, 96 DIV 84 + - 92 ) * - 6
----
-414

skipif mysql # not compatible
query I rowsort label-7063
SELECT + COALESCE ( 69, 96 / 84 + - 92 ) * - 6
----
-414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT - - CAST( - 84 AS SIGNED ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7064
SELECT - - CAST ( - 84 AS INTEGER ) AS col1
----
-84

query I rowsort
SELECT ALL 28 + 70
----
98

query I rowsort
SELECT 40 * NULLIF ( 4 - 1, 13 )
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7067
SELECT - NULLIF ( 71, - 11 * + 6 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT - NULLIF ( 71, - 11 * + 6 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT ALL - + CAST( NULL AS SIGNED ) / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL - + CAST ( NULL AS INTEGER ) / 62
----
NULL

query I rowsort
SELECT ALL - + ( 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ( 4 ) * + MAX( ALL 7 * 24 + - 39 ) AS col2
----
516

skipif mysql # not compatible
query I rowsort label-7070
SELECT ( 4 ) * + MAX ( ALL 7 * 24 + - 39 ) AS col2
----
516

query I rowsort
SELECT DISTINCT 26 * - 54 AS col0
----
-1404

query I rowsort
SELECT + 65 * - 89
----
-5785

query I rowsort
SELECT ALL + 57 * 57 AS col2
----
3249

query I rowsort
SELECT - 14 * 90
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL - - SUM( 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL - - SUM ( 70 ) AS col2
----
70

query I rowsort
SELECT + 92 * 62 - + 81 * + 72
----
-128

query I rowsort
SELECT ALL - - 97 col2
----
97

query I rowsort
SELECT ALL - - NULLIF ( - 2, 37 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL - ( + ( ( - COUNT( * ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL - ( + ( ( - COUNT ( * ) ) ) )
----
1

query I rowsort
SELECT - 98 * 5 AS col1
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT 84 * - MIN( 72 )
----
-6048

skipif mysql # not compatible
query I rowsort label-7081
SELECT 84 * - MIN ( 72 )
----
-6048

query I rowsort
SELECT ALL 80 * + - 20 * + 7
----
-11200

query I rowsort
SELECT 74 + + 81 * + 64
----
5258

query I rowsort
SELECT 9 * - - 52 AS col0
----
468

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7085
SELECT ALL + COUNT( * ) + + CAST( NULL AS DECIMAL ) - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS REAL ) - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL - COUNT( * ) + - 52 col2
----
-53

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL - COUNT ( * ) + - 52 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT NULLIF ( - - 48, 93 ) * COUNT( ALL + ( 28 ) ) + + 65 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-7087
SELECT NULLIF ( - - 48, 93 ) * COUNT ( ALL + ( 28 ) ) + + 65 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT DISTINCT COUNT( * ) * + 85 * + 77
----
6545

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT COUNT ( * ) * + 85 * + 77
----
6545

query I rowsort
SELECT DISTINCT 79 + - 77 * - 60 AS col1
----
4699

query I rowsort
SELECT 18 + + 79
----
97

query I rowsort
SELECT ALL - 42 + + 98 * - 5
----
-532

query I rowsort
SELECT 40 * 14 AS col2
----
560

query I rowsort
SELECT 43 - 46 * + 50
----
-2257

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL + 97 + + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL + 97 + + COUNT ( * ) AS col2
----
98

query I rowsort
SELECT ALL - - 66 - + 94 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT 77 * - - 2 * - COUNT( * ) AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-7096
SELECT 77 * - - 2 * - COUNT ( * ) AS col1
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7097
SELECT CAST( + + 36 AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7097
SELECT CAST ( + + 36 AS INTEGER ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT 24 + + COUNT( ( 99 ) ) + NULLIF ( 85, + 46 * 62 ) AS col2
----
110

skipif mysql # not compatible
query I rowsort label-7098
SELECT 24 + + COUNT ( ( 99 ) ) + NULLIF ( 85, + 46 * 62 ) AS col2
----
110

query I rowsort
SELECT ALL + ( - + 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT 34 + NULLIF ( + 84, - 10 ) - + COUNT( * ) * - 61 * 11
----
789

skipif mysql # not compatible
query I rowsort label-7100
SELECT 34 + NULLIF ( + 84, - 10 ) - + COUNT ( * ) * - 61 * 11
----
789

query I rowsort
SELECT 93 * + - 88 + + 28 * 41
----
-7036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7102
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / MIN( DISTINCT - 69 ) + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / MIN ( DISTINCT - 69 ) + 66 AS col2
----
NULL

query I rowsort
SELECT + 12 + + 38 + 91 * 98 AS col1
----
8968

onlyif mysql # DIV for integer division: 
query I rowsort label-7104
SELECT 72 DIV 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7104
SELECT 72 / 42 AS col0
----
1

query I rowsort
SELECT DISTINCT - ( - 65 ) * 98 AS col0
----
6370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT COUNT( DISTINCT 95 ) DIV + 2
----
0

skipif mysql # not compatible
query I rowsort label-7106
SELECT COUNT ( DISTINCT 95 ) / + 2
----
0

query I rowsort
SELECT ( - 72 ) + 84
----
12

query I rowsort
SELECT 41 * + + 7
----
287

query I rowsort
SELECT ALL 80 + - 20 * 5
----
-20

query I rowsort
SELECT 83 * - 98 AS col0
----
-8134

query I rowsort
SELECT ALL 74 + - - ( 13 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT MAX( DISTINCT 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-7112
SELECT MAX ( DISTINCT 78 ) AS col2
----
78

query I rowsort
SELECT ALL - 0 * + + 85 AS col1
----
0

query I rowsort
SELECT ALL + 46 + - 55 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL 26 + - + ( - COUNT( * ) ) - + 92
----
-65

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL 26 + - + ( - COUNT ( * ) ) - + 92
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT 9 * 76 * + + SUM( DISTINCT 87 )
----
59508

skipif mysql # not compatible
query I rowsort label-7116
SELECT 9 * 76 * + + SUM ( DISTINCT 87 )
----
59508

query II rowsort
SELECT 55 AS col2, 48 * 57 AS col1
----
55
2736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7118
SELECT - CASE + 66 WHEN COALESCE ( - COUNT( * ), + COALESCE ( - 82, + CAST( - 86 AS SIGNED ) + 90 ) / + 22 ) * COUNT( * ) THEN NULL ELSE COALESCE ( + ( 35 ), - MIN( - 27 ) + 32 ) END AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7118
SELECT - CASE + 66 WHEN COALESCE ( - COUNT ( * ), + COALESCE ( - 82, + CAST ( - 86 AS INTEGER ) + 90 ) / + 22 ) * COUNT ( * ) THEN NULL ELSE COALESCE ( + ( 35 ), - MIN ( - 27 ) + 32 ) END AS col2
----
-35

query II rowsort
SELECT ALL 91 AS col0, + 60 * 99 - - 69 col0
----
91
6009

query I rowsort
SELECT + CASE - - 15 WHEN + + 63 THEN NULL WHEN 35 THEN + 82 END * + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT + 2 + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-7121
SELECT + 2 + COUNT ( * ) col1
----
3

query I rowsort
SELECT + 66 * + 29 AS col1
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL MAX( DISTINCT + 56 ) * 13 + 64
----
792

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL MAX ( DISTINCT + 56 ) * 13 + 64
----
792

query I rowsort
SELECT + 83 + - - 5 * - 43 * 68 + 47 AS col0
----
-14490

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT + - 45 + - - ( - + COUNT( * ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7125
SELECT + - 45 + - - ( - + COUNT ( * ) ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7126
SELECT - COALESCE ( + 92, - - CAST( NULL AS SIGNED ), - 93 ) * COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7126
SELECT - COALESCE ( + 92, - - CAST ( NULL AS INTEGER ), - 93 ) * COUNT ( * ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7127
SELECT + - COUNT( * ) * 6 * - CAST( + 15 AS SIGNED ) - 20 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7127
SELECT + - COUNT ( * ) * 6 * - CAST ( + 15 AS INTEGER ) - 20 AS col2
----
70

query I rowsort
SELECT - 20 * - + 75
----
1500

query II rowsort
SELECT ALL 41 col0, 23 AS col0
----
41
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT + 64 - - 93 + + - COUNT( * ) - - 25 * 90 AS col2
----
2406

skipif mysql # not compatible
query I rowsort label-7130
SELECT + 64 - - 93 + + - COUNT ( * ) - - 25 * 90 AS col2
----
2406

query II rowsort
SELECT 38, 93 + - 43 AS col2
----
38
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7132
SELECT - - COUNT( * ) + - - NULLIF ( - 80, + CAST( - 84 AS SIGNED ) * CAST( NULL AS SIGNED ) - - 44 )
----
-79

skipif mysql # not compatible
query I rowsort label-7132
SELECT - - COUNT ( * ) + - - NULLIF ( - 80, + CAST ( - 84 AS INTEGER ) * CAST ( NULL AS INTEGER ) - - 44 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7133
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, MIN( DISTINCT - 10 ) AS col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-7133
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, MIN ( DISTINCT - 10 ) AS col0
----
NULL
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL - CASE + 12 WHEN - - 43 THEN MAX( DISTINCT 39 ) + 67 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL - CASE + 12 WHEN - - 43 THEN MAX ( DISTINCT 39 ) + 67 ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + 40
----
-280

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT - 53 AS col1, 99 + + COUNT( * ) - + SUM( ALL 2 )
----
-53
98

skipif mysql # not compatible
query II rowsort label-7136
SELECT - 53 AS col1, 99 + + COUNT ( * ) - + SUM ( ALL 2 )
----
-53
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT ALL - + COUNT( * ) * - 11
----
11

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - + COUNT ( * ) * - 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL - + ( - - SUM( DISTINCT + 71 ) ) * - 8 col1
----
568

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - + ( - - SUM ( DISTINCT + 71 ) ) * - 8 col1
----
568

query II rowsort
SELECT ALL + 77 AS col0, ( + + 48 ) AS col0
----
77
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7140
SELECT + 26, - MIN( DISTINCT - 58 ) AS col2
----
26
58

skipif mysql # not compatible
query II rowsort label-7140
SELECT + 26, - MIN ( DISTINCT - 58 ) AS col2
----
26
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT - 50 DIV 12 DIV - ( - 39 ) * 8 + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7141
SELECT - 50 / 12 / - ( - 39 ) * 8 + 4 AS col1
----
4

query I rowsort
SELECT - 89 * 42 AS col0
----
-3738

query I rowsort
SELECT - 59 * + ( + 21 ) AS col2
----
-1239

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT COUNT( * ), COALESCE ( 49, - 14 * - 17, + 97 * 30 ) AS col0
----
1
49

skipif mysql # not compatible
query II rowsort label-7144
SELECT COUNT ( * ), COALESCE ( 49, - 14 * - 17, + 97 * 30 ) AS col0
----
1
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT DISTINCT 93 * - + CAST( NULL AS SIGNED ) + - CASE + NULLIF ( - 61, + 71 ) WHEN 60 * 19 THEN 78 WHEN + 13 + 63 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT 93 * - + CAST ( NULL AS INTEGER ) + - CASE + NULLIF ( - 61, + 71 ) WHEN 60 * 19 THEN 78 WHEN + 13 + 63 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL 61 * - + COUNT( * ) + - 54 + + - 62 * 46 * + 47
----
-134159

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL 61 * - + COUNT ( * ) + - 54 + + - 62 * 46 * + 47
----
-134159

query I rowsort
SELECT DISTINCT - 32 * - 49
----
1568

query I rowsort
SELECT + 80 * + 87 - - 10 col1
----
6970

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT NULLIF ( COALESCE ( + 63, + ( COUNT( * ) ), + ( + 44 ) ), - 40 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7149
SELECT NULLIF ( COALESCE ( + 63, + ( COUNT ( * ) ), + ( + 44 ) ), - 40 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT 30 * + 89 + - - MIN( - 90 ) + NULLIF ( - 83, 28 * ( CASE SUM( ALL ( + 70 ) ) WHEN 25 THEN NULL WHEN - 89 THEN 56 * 4 END ) )
----
2497

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT 30 * + 89 + - - MIN ( - 90 ) + NULLIF ( - 83, 28 * ( CASE SUM ( ALL ( + 70 ) ) WHEN 25 THEN NULL WHEN - 89 THEN 56 * 4 END ) )
----
2497

query I rowsort
SELECT ALL NULLIF ( - - 32, - 86 ) * - - 30 * 61 + + 92 col0
----
58652

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT - ( + COUNT( * ) ) * - - 98
----
-98

skipif mysql # not compatible
query I rowsort label-7152
SELECT - ( + COUNT ( * ) ) * - - 98
----
-98

query I rowsort
SELECT 42 * - ( 64 ) + - + 55 * 45 AS col0
----
-5163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7154
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7155
SELECT - 41 * - COALESCE ( + - 35, + + COUNT( * ) DIV COALESCE ( 77, 17 + + ( - 14 ) ) ) * 78 - + 95 AS col0
----
-112025

skipif mysql # not compatible
query I rowsort label-7155
SELECT - 41 * - COALESCE ( + - 35, + + COUNT ( * ) / COALESCE ( 77, 17 + + ( - 14 ) ) ) * 78 - + 95 AS col0
----
-112025

query I rowsort
SELECT COALESCE ( 0, 96, - 96 + - 90 * + 4 ) AS col1
----
0

query I rowsort
SELECT - 73 + 91 col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + 78 * - + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7158
SELECT + 78 * - + COUNT ( * ) AS col1
----
-78

query I rowsort
SELECT ALL + 40 * - 82 - - 19
----
-3261

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT - CASE + 81 WHEN + - 14 THEN NULL ELSE 50 * ( + 13 * + COUNT( * ) ) END col0
----
-650

skipif mysql # not compatible
query I rowsort label-7160
SELECT - CASE + 81 WHEN + - 14 THEN NULL ELSE 50 * ( + 13 * + COUNT ( * ) ) END col0
----
-650

query I rowsort
SELECT DISTINCT + 52 * - + ( - 49 )
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT - MIN( DISTINCT + - 84 ) * - - 53 * + COUNT( * ) + 45
----
4497

skipif mysql # not compatible
query I rowsort label-7162
SELECT - MIN ( DISTINCT + - 84 ) * - - 53 * + COUNT ( * ) + 45
----
4497

query I rowsort
SELECT + 19 + 37
----
56

query I rowsort
SELECT ALL - 13 * + + 61 - 41
----
-834

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT - COUNT( * ) + - 91 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7165
SELECT - COUNT ( * ) + - 91 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT + CAST( NULL AS SIGNED ) * - + NULLIF ( 96, + 30 / - COUNT( * ) + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT + CAST ( NULL AS INTEGER ) * - + NULLIF ( 96, + 30 / - COUNT ( * ) + 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT + - COUNT( * ) * - 37 + + - 48 * - 28
----
1381

skipif mysql # not compatible
query I rowsort label-7167
SELECT + - COUNT ( * ) * - 37 + + - 48 * - 28
----
1381

query I rowsort
SELECT ALL + 69 * - 57
----
-3933

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7169
SELECT - + COALESCE ( + 77, + 67 DIV - 33, + CAST( 84 AS SIGNED ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7169
SELECT - + COALESCE ( + 77, + 67 / - 33, + CAST ( 84 AS INTEGER ) ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT + - NULLIF ( - COUNT( * ), + ( 21 ) * 32 ) + 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7170
SELECT + - NULLIF ( - COUNT ( * ), + ( 21 ) * 32 ) + 81 AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT DISTINCT - 45 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT - 45 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT + ( SUM( DISTINCT - 47 ) ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + ( SUM ( DISTINCT - 47 ) ) col1
----
-47

query I rowsort
SELECT + - 12 + 84 AS col0
----
72

query I rowsort
SELECT ALL 4 + + + 4
----
8

query I rowsort
SELECT + + NULLIF ( - 2, + 35 ) + - 5 + + 57
----
50

query I rowsort
SELECT - + 31 - + - 73 * - + 3
----
-250

query I rowsort
SELECT + - 62 + + 67
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7178
SELECT ALL - 89 DIV - 75 + - COUNT( * ) + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL - 89 / - 75 + - COUNT ( * ) + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + ( - 32 ) col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT ALL ( - 86 ) DIV 18 * 88 * 86 + + 66 AS col1
----
-30206

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL ( - 86 ) / 18 * 88 * 86 + + 66 AS col1
----
-30206

query I rowsort
SELECT + 80 + 95 AS col0
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7182
SELECT ALL + 39 DIV + + 28 + - NULLIF ( - 33, - - COUNT( * ) * - CAST( 99 AS SIGNED ) ) + - 2 * COALESCE ( 70, 51 ) AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL + 39 / + + 28 + - NULLIF ( - 33, - - COUNT ( * ) * - CAST ( 99 AS INTEGER ) ) + - 2 * COALESCE ( 70, 51 ) AS col2
----
-106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7183
SELECT + 13 * - 42 + + COUNT( * ) + 36 + + CASE CASE CAST( NULL AS DECIMAL ) WHEN 65 THEN NULL WHEN + SUM( 60 ) THEN COUNT( * ) ELSE - MIN( + 90 ) END WHEN - COUNT( * ) * - NULLIF ( - 71, - 76 ) THEN 67 * 2 WHEN 76 THEN NULL END + 60 * - COUNT( * ) * CASE + ( - 18 ) * + 47 WHEN + 76 THEN NULL WHEN + 92 * 27 THEN - 23 * 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT + 13 * - 42 + + COUNT ( * ) + 36 + + CASE CASE CAST ( NULL AS REAL ) WHEN 65 THEN NULL WHEN + SUM ( 60 ) THEN COUNT ( * ) ELSE - MIN ( + 90 ) END WHEN - COUNT ( * ) * - NULLIF ( - 71, - 76 ) THEN 67 * 2 WHEN 76 THEN NULL END + 60 * - COUNT ( * ) * CASE + ( - 18 ) * + 47 WHEN + 76 THEN NULL WHEN + 92 * 27 THEN - 23 * 41 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT 46 DIV 33 + + NULLIF ( - 98, + ( + 77 ) * - 29 - + 66 ) * + 90 AS col0
----
-8819

skipif mysql # not compatible
query I rowsort label-7184
SELECT 46 / 33 + + NULLIF ( - 98, + ( + 77 ) * - 29 - + 66 ) * + 90 AS col0
----
-8819

query I rowsort
SELECT 18 + 37 AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7186
SELECT CAST( - COUNT( * ) AS SIGNED ) * + 38 * + 46 - - 39 DIV - 42
----
-1748

skipif mysql # not compatible
query I rowsort label-7186
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 38 * + 46 - - 39 / - 42
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT 24 * 40 * COUNT( * ) AS col2
----
960

skipif mysql # not compatible
query I rowsort label-7187
SELECT 24 * 40 * COUNT ( * ) AS col2
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT DISTINCT + COUNT( * ) - 51 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT + COUNT ( * ) - 51 AS col1
----
-50

query I rowsort
SELECT ALL + ( - - 20 ) - - ( 52 ) col1
----
72

query I rowsort
SELECT 14 * + - 82 AS col0
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL + NULLIF ( - COUNT( * ), + ( - 27 ) * + 91 ) * + 75
----
-75

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL + NULLIF ( - COUNT ( * ), + ( - 27 ) * + 91 ) * + 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL - SUM( 48 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL - SUM ( 48 ) col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7193
SELECT ALL + COUNT( DISTINCT + 61 ) DIV 94 + + 74 * 49 AS col0
----
3626

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + COUNT ( DISTINCT + 61 ) / 94 + + 74 * 49 AS col0
----
3626

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT 14 * COUNT( * ) * - ( + 67 )
----
-938

skipif mysql # not compatible
query I rowsort label-7194
SELECT 14 * COUNT ( * ) * - ( + 67 )
----
-938

query I rowsort
SELECT 49 * - 33 AS col0
----
-1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT ALL - CASE ( + 31 ) WHEN + 1 + 24 + CAST( 31 - 35 * + COUNT( * ) AS SIGNED ) / + ( ( - 11 ) ) THEN NULL WHEN 24 * + 20 THEN + SUM( - 73 ) * - 27 + 77 WHEN + COUNT( * ) THEN 92 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - CASE ( + 31 ) WHEN + 1 + 24 + CAST ( 31 - 35 * + COUNT ( * ) AS INTEGER ) / + ( ( - 11 ) ) THEN NULL WHEN 24 * + 20 THEN + SUM ( - 73 ) * - 27 + 77 WHEN + COUNT ( * ) THEN 92 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT 52 DIV + ( - NULLIF ( + 7, + ( + 21 ) ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7197
SELECT 52 / + ( - NULLIF ( + 7, + ( + 21 ) ) ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT - + CASE 11 WHEN - 98 THEN NULL ELSE CASE - ( COUNT( * ) ) WHEN + NULLIF ( ( - 49 ), + 32 ) THEN - 54 * 46 WHEN 60 + + 14 THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT - + CASE 11 WHEN - 98 THEN NULL ELSE CASE - ( COUNT ( * ) ) WHEN + NULLIF ( ( - 49 ), + 32 ) THEN - 54 * 46 WHEN 60 + + 14 THEN NULL ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + COUNT( - + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-7199
SELECT + COUNT ( - + 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + 42 * - COUNT( * ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-7200
SELECT + 42 * - COUNT ( * ) col2
----
-42

query I rowsort
SELECT 29 * 45 AS col1
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT - - ( - MIN( DISTINCT - 9 ) )
----
9

skipif mysql # not compatible
query I rowsort label-7202
SELECT - - ( - MIN ( DISTINCT - 9 ) )
----
9

query I rowsort
SELECT ALL + + 88 + - NULLIF ( - - 82, - ( - - COALESCE ( 10, 8 ) ) * ( 36 ) ) AS col1
----
6

query II rowsort
SELECT DISTINCT 21 AS col0, + 90 + - 28 AS col2
----
21
62

query I rowsort
SELECT ALL 8 + + 61 + - 29 * 81
----
-2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT DISTINCT - COALESCE ( 89, COUNT( * ) * + - 28 + + CAST( CAST( 36 AS SIGNED ) AS SIGNED ) - - CAST( NULL AS SIGNED ) )
----
-89

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT - COALESCE ( 89, COUNT ( * ) * + - 28 + + CAST ( CAST ( 36 AS INTEGER ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL + COUNT( * ) + - 32 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL + COUNT ( * ) + - 32 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT ( + + 60 ) * - 27 AS col1, + CASE - - 82 WHEN ( 2 ) THEN NULL ELSE - 37 END * COUNT( DISTINCT + 58 ) - - 44 AS col2
----
-1620
7

skipif mysql # not compatible
query II rowsort label-7208
SELECT ( + + 60 ) * - 27 AS col1, + CASE - - 82 WHEN ( 2 ) THEN NULL ELSE - 37 END * COUNT ( DISTINCT + 58 ) - - 44 AS col2
----
-1620
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7209
SELECT - 49 + - 9 - + - 94 + CAST( NULL AS DECIMAL ) / + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT - 49 + - 9 - + - 94 + CAST ( NULL AS REAL ) / + - 88
----
NULL

query I rowsort
SELECT DISTINCT 93 + - 44 AS col1
----
49

query I rowsort
SELECT DISTINCT 97 + - 72
----
25

query I rowsort
SELECT - - ( + 1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7213
SELECT - 41 + - - 52 + - COUNT( * ) * + COUNT( * ) * + 69 - CAST( CAST( 34 AS DECIMAL ) AS SIGNED ) * 13
----
-500

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 41 + - - 52 + - COUNT ( * ) * + COUNT ( * ) * + 69 - CAST ( CAST ( 34 AS REAL ) AS INTEGER ) * 13
----
-500

query I rowsort
SELECT DISTINCT - 64 * 11 AS col2
----
-704

query I rowsort
SELECT ALL ( 28 ) * - 21 * - 55 col0
----
32340

query I rowsort
SELECT ALL 63 + - 35 + - 85 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-7217
SELECT 85 AS col0, - 54 + 60 DIV - 9 AS col0
----
85
-60

skipif mysql # not compatible
query II rowsort label-7217
SELECT 85 AS col0, - 54 + 60 / - 9 AS col0
----
85
-60

query I rowsort
SELECT + 72 * - 99 - - 29
----
-7099

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7219
SELECT 78 DIV - - 79 * CAST( + 45 AS SIGNED ) - - 14 + - + NULLIF ( + 37, CAST( NULL AS SIGNED ) - - 46 DIV 50 ) - 87
----
-110

skipif mysql # not compatible
query I rowsort label-7219
SELECT 78 / - - 79 * CAST ( + 45 AS INTEGER ) - - 14 + - + NULLIF ( + 37, CAST ( NULL AS INTEGER ) - - 46 / 50 ) - 87
----
-110

query II rowsort
SELECT 71 col0, 23 * 83 - 73 AS col0
----
71
1836

query I rowsort
SELECT 34 * + 16 * 97 AS col2
----
52768

query II rowsort
SELECT + 28, 71 col0
----
28
71

query II rowsort
SELECT ALL - 53 AS col2, 6 col2
----
-53
6

query II rowsort
SELECT DISTINCT - 56, + 33 - 72 AS col0
----
-56
-39

query I rowsort
SELECT DISTINCT + 97 * + 50 * - - 40 * - + 88 AS col1
----
-17072000

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT 49 * + COUNT( * ) * 69 * - COUNT( * ) * + + NULLIF ( + 69, COALESCE ( 78, 84 ) * + 42 ) * + 10
----
-2332890

skipif mysql # not compatible
query I rowsort label-7226
SELECT 49 * + COUNT ( * ) * 69 * - COUNT ( * ) * + + NULLIF ( + 69, COALESCE ( 78, 84 ) * + 42 ) * + 10
----
-2332890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 50 / + + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 50 / + + 69 AS col0
----
NULL

query I rowsort
SELECT 33 + - 65 * - 19 AS col1
----
1268

onlyif mysql # DIV for integer division: 
query I rowsort label-7229
SELECT 54 DIV 48 col2
----
1

skipif mysql # not compatible
query I rowsort label-7229
SELECT 54 / 48 col2
----
1

query I rowsort
SELECT + ( + 59 ) + 71
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-7231
SELECT DISTINCT - + 74 AS col2, - COUNT( * )
----
-74
-1

skipif mysql # not compatible
query II rowsort label-7231
SELECT DISTINCT - + 74 AS col2, - COUNT ( * )
----
-74
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7232
SELECT DISTINCT + 0 + 94 + + - 51 * + - COUNT( * ) * + 76 + CAST( NULL AS SIGNED ) / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT + 0 + 94 + + - 51 * + - COUNT ( * ) * + 76 + CAST ( NULL AS INTEGER ) / 62
----
NULL

query I rowsort
SELECT 77 * - - ( - 31 ) AS col2
----
-2387

query I rowsort
SELECT - 67 + + 47
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT COUNT( * ) * + + 66
----
66

skipif mysql # not compatible
query I rowsort label-7235
SELECT COUNT ( * ) * + + 66
----
66

query I rowsort
SELECT - 80 + - 45 * - - 68
----
-3140

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT ALL - 75 + - + MAX( + - COALESCE ( + 4, - + 40 * 18 + 93 ) ) + 13
----
-58

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL - 75 + - + MAX ( + - COALESCE ( + 4, - + 40 * 18 + 93 ) ) + 13
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT - + MAX( - - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7238
SELECT - + MAX ( - - 33 ) AS col0
----
-33

query I rowsort
SELECT - - NULLIF ( + - 7, - + COALESCE ( 17, - 54 ) ) col1
----
-7

query I rowsort
SELECT 3 * - 15 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT 46 * + MAX( DISTINCT - 64 ) * - 95 AS col0
----
279680

skipif mysql # not compatible
query I rowsort label-7241
SELECT 46 * + MAX ( DISTINCT - 64 ) * - 95 AS col0
----
279680

onlyif mysql # aggregate syntax: 
query II rowsort label-7242
SELECT 26 - + 84 AS col0, 79 * - - COUNT( * ) AS col0
----
-58
79

skipif mysql # not compatible
query II rowsort label-7242
SELECT 26 - + 84 AS col0, 79 * - - COUNT ( * ) AS col0
----
-58
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT DISTINCT + COUNT( * ) + 42 col2
----
43

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT + COUNT ( * ) + 42 col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7244
SELECT - + ( - 67 ) + 18 - - - 58 + COUNT( * ) DIV + - NULLIF ( 53, + COALESCE ( - 64, + MAX( 37 ) * - 73 + 44 DIV 62 ) - - 92 ) * - 33 - NULLIF ( 68, 9 * + 83 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7244
SELECT - + ( - 67 ) + 18 - - - 58 + COUNT ( * ) / + - NULLIF ( 53, + COALESCE ( - 64, + MAX ( 37 ) * - 73 + 44 / 62 ) - - 92 ) * - 33 - NULLIF ( 68, 9 * + 83 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - ( + + 55 ) * + + COUNT( * ) + + ( + 23 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7245
SELECT - ( + + 55 ) * + + COUNT ( * ) + + ( + 23 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL CASE + - 54 WHEN - + ( - 83 ) + - - 92 THEN + MIN( + 66 ) + - 93 WHEN + 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL CASE + - 54 WHEN - + ( - 83 ) + - - 92 THEN + MIN ( + 66 ) + - 93 WHEN + 60 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT - NULLIF ( - 83, - - 14 * + 14 + - - CASE 17 WHEN + ( 11 ) THEN NULLIF ( + COUNT( * ), - 42 + - 62 ) WHEN 75 * + 96 THEN NULL END ) + COUNT( * ) * - 77 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7247
SELECT - NULLIF ( - 83, - - 14 * + 14 + - - CASE 17 WHEN + ( 11 ) THEN NULLIF ( + COUNT ( * ), - 42 + - 62 ) WHEN 75 * + 96 THEN NULL END ) + COUNT ( * ) * - 77 AS col0
----
6

query I rowsort
SELECT + 27 - + 55 col0
----
-28

query I rowsort
SELECT + 86 * + + ( 22 )
----
1892

query I rowsort
SELECT - 97 + 77 - - 26 * - 7 + 92 + - - 73 AS col2
----
-37

query I rowsort
SELECT + 3 - 7
----
-4

query I rowsort
SELECT ALL 9 - + 8 AS col0
----
1

query I rowsort
SELECT ALL + ( + COALESCE ( - 26, - 66 + + 50 * - 92 ) ) AS col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7254
SELECT + 50 * - 12 DIV - COUNT( * )
----
600

skipif mysql # not compatible
query I rowsort label-7254
SELECT + 50 * - 12 / - COUNT ( * )
----
600

onlyif mysql # aggregate syntax: 
query II rowsort label-7255
SELECT + 67 + - 14, + COALESCE ( + - COUNT( * ), + ( + COUNT( DISTINCT - 16 ) ), MAX( 16 ) ) * - 1 AS col0
----
53
1

skipif mysql # not compatible
query II rowsort label-7255
SELECT + 67 + - 14, + COALESCE ( + - COUNT ( * ), + ( + COUNT ( DISTINCT - 16 ) ), MAX ( 16 ) ) * - 1 AS col0
----
53
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7256
SELECT ALL - COALESCE ( - COUNT( + 25 ), 92 * + 66 * 34 * 70 ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL - COALESCE ( - COUNT ( + 25 ), 92 * + 66 * 34 * 70 ) / 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT ALL 8 * - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL 8 * - COUNT ( * )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7258
SELECT 20 DIV + - 19 + + 89
----
88

skipif mysql # not compatible
query I rowsort label-7258
SELECT 20 / + - 19 + + 89
----
88

query I rowsort
SELECT NULLIF ( + 80, - 53 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7260
SELECT + 37 DIV + 53 AS col2, COALESCE ( + 96, 33 - - 86 + - - 2 * 44, COUNT( * ) + - 16 ) AS col1
----
0
96

skipif mysql # not compatible
query II rowsort label-7260
SELECT + 37 / + 53 AS col2, COALESCE ( + 96, 33 - - 86 + - - 2 * 44, COUNT ( * ) + - 16 ) AS col1
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT + COUNT( + 64 ) + - + 29 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7261
SELECT + COUNT ( + 64 ) + - + 29 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7262
SELECT + 60 * - MAX( ALL - 79 ) AS col2, + 29 + + 23 + - COUNT( * ) - 45 AS col0
----
4740
6

skipif mysql # not compatible
query II rowsort label-7262
SELECT + 60 * - MAX ( ALL - 79 ) AS col2, + 29 + + 23 + - COUNT ( * ) - 45 AS col0
----
4740
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT ALL + 54 * + + 2 * - 25 + CAST( NULL AS SIGNED ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL + 54 * + + 2 * - 25 + CAST ( NULL AS INTEGER ) + + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT + 49 * - 67 + - COUNT( * )
----
-3284

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT + 49 * - 67 + - COUNT ( * )
----
-3284

query I rowsort
SELECT + NULLIF ( - ( + + 95 ), 40 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT + + COUNT( * ) * - 21 col1
----
-21

skipif mysql # not compatible
query I rowsort label-7266
SELECT + + COUNT ( * ) * - 21 col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7267
SELECT ALL - - CAST( + 73 AS SIGNED ) * + 12 * - 70 + + 38 AS col1
----
-61282

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - - CAST ( + 73 AS INTEGER ) * + 12 * - 70 + + 38 AS col1
----
-61282

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT 70 * - 22 + COUNT( * ) + + NULLIF ( + 7, - 39 )
----
-1532

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT 70 * - 22 + COUNT ( * ) + + NULLIF ( + 7, - 39 )
----
-1532

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT ALL - 77 * + 68 - - 27 + COUNT( * ) * 5 * - 75 * - 94 AS col2
----
30041

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL - 77 * + 68 - - 27 + COUNT ( * ) * 5 * - 75 * - 94 AS col2
----
30041

query II rowsort
SELECT + 17 - 40, + 54 col0
----
-23
54

query I rowsort
SELECT ALL 14 - 30 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT - - AVG ( + - 71 ) * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT - - AVG ( + - 71 ) * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 32 - - 52
----
84

query I rowsort
SELECT ALL ( - + 40 ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7275
SELECT - - COUNT( DISTINCT 74 ) + + 22 AS col0, - CAST( + CASE + SUM( 28 ) WHEN 71 THEN 42 + + 53 * + 82 WHEN + ( 56 ) THEN NULL WHEN 31 * 79 THEN - 22 END AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-7275
SELECT - - COUNT ( DISTINCT 74 ) + + 22 AS col0, - CAST ( + CASE + SUM ( 28 ) WHEN 71 THEN 42 + + 53 * + 82 WHEN + ( 56 ) THEN NULL WHEN 31 * 79 THEN - 22 END AS INTEGER )
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7276
SELECT ALL - - 20 DIV COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) * - - 14
----
20
NULL

skipif mysql # not compatible
query II rowsort label-7276
SELECT ALL - - 20 / COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) * - - 14
----
20
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7277
SELECT - 86 DIV - 76
----
1

skipif mysql # not compatible
query I rowsort label-7277
SELECT - 86 / - 76
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT - ( - - 85 ) * + 14 + + + COUNT( * ) * - 5 * - + COUNT( * ) * + - 39 AS col0
----
-1385

skipif mysql # not compatible
query I rowsort label-7278
SELECT - ( - - 85 ) * + 14 + + + COUNT ( * ) * - 5 * - + COUNT ( * ) * + - 39 AS col0
----
-1385

query I rowsort
SELECT - 62 * - 80 col1
----
4960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7280
SELECT ALL - NULLIF ( + - 36, - COUNT( * ) ) * CAST( - - COUNT( * ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - NULLIF ( + - 36, - COUNT ( * ) ) * CAST ( - - COUNT ( * ) AS INTEGER )
----
36

query II rowsort
SELECT - 16, 52 AS col2
----
-16
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7282
SELECT DISTINCT CASE - 13 WHEN COALESCE ( COUNT( * ), - COUNT( * ) + CAST( NULL AS SIGNED ) ) THEN 5 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT CASE - 13 WHEN COALESCE ( COUNT ( * ), - COUNT ( * ) + CAST ( NULL AS INTEGER ) ) THEN 5 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7283
SELECT ALL CAST( NULLIF ( + + 28, + + 34 * - ( 32 ) + - + MIN( - + 71 ) * + 82 ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL CAST ( NULLIF ( + + 28, + + 34 * - ( 32 ) + - + MIN ( - + 71 ) * + 82 ) AS INTEGER )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT DISTINCT - 97 * + SUM( 51 )
----
-4947

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - 97 * + SUM ( 51 )
----
-4947

query I rowsort
SELECT - 26 * + + 23 AS col0
----
-598

query II rowsort
SELECT ALL 30, 73 AS col0
----
30
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT - NULLIF ( + 36, - CASE + 35 WHEN - 51 THEN - 90 + + COUNT( DISTINCT - 12 ) * - 10 END * + 15 ) * - 98
----
3528

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT - NULLIF ( + 36, - CASE + 35 WHEN - 51 THEN - 90 + + COUNT ( DISTINCT - 12 ) * - 10 END * + 15 ) * - 98
----
3528

query I rowsort
SELECT ALL + ( 22 ) col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT - 25 DIV 58 - + 50
----
-50

skipif mysql # not compatible
query I rowsort label-7289
SELECT - 25 / 58 - + 50
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7290
SELECT CAST( NULL AS SIGNED ) col1, 76 * + 78
----
NULL
5928

skipif mysql # not compatible
query II rowsort label-7290
SELECT CAST ( NULL AS INTEGER ) col1, 76 * + 78
----
NULL
5928

query I rowsort
SELECT + 96 * + 33 col0
----
3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7292
SELECT CAST( NULL AS SIGNED ) AS col1, COUNT( 48 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7292
SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( 48 )
----
NULL
1

query I rowsort
SELECT - 60 * + 75
----
-4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7294
SELECT DISTINCT - 27 / + 99 * - CAST( NULL AS SIGNED ) + + - COUNT( - 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT - 27 / + 99 * - CAST ( NULL AS INTEGER ) + + - COUNT ( - 0 ) AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( + 56, + NULLIF ( - 66, - 6 ) )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7296
SELECT ALL + COUNT( * ) DIV - - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL + COUNT ( * ) / - - 47 AS col0
----
0

query I rowsort
SELECT + - 31 - + 97 - - 33 * COALESCE ( - + COALESCE ( - - 68, - 6 ), 27, + 44 * + 80 )
----
-2372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7298
SELECT ALL 68 * - NULLIF ( - - 8, 49 * + 2 ) + + 63 + COUNT( * ) * + 8 DIV 69 AS col1
----
-481

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL 68 * - NULLIF ( - - 8, 49 * + 2 ) + + 63 + COUNT ( * ) * + 8 / 69 AS col1
----
-481

query I rowsort
SELECT COALESCE ( + 40, 79 * + 14 ) * + - 71 + 55 + - 33 + + 81 + 70 * 9
----
-2107

query II rowsort
SELECT + + 22 col2, - 41
----
22
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT + 72 * + 1 * + - 71 + 31 + - 2 * + 1 + - COUNT( * ) * - - 80
----
-5163

skipif mysql # not compatible
query I rowsort label-7301
SELECT + 72 * + 1 * + - 71 + 31 + - 2 * + 1 + - COUNT ( * ) * - - 80
----
-5163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7302
SELECT ALL 89 * + 83 DIV COUNT( * ) * 52 - + - 60
----
384184

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL 89 * + 83 / COUNT ( * ) * 52 - + - 60
----
384184

onlyif mysql # DIV for integer division: 
query I rowsort label-7303
SELECT DISTINCT COALESCE ( + 10, 12 + 85 + - 55 DIV + - 50 ) * - 10 + - 3 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT COALESCE ( + 10, 12 + 85 + - 55 / + - 50 ) * - 10 + - 3 AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL CASE + ( + 59 ) WHEN 28 THEN + + 99 WHEN - + 51 THEN NULL WHEN - 92 THEN + COUNT( * ) * - 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL CASE + ( + 59 ) WHEN 28 THEN + + 99 WHEN - + 51 THEN NULL WHEN - 92 THEN + COUNT ( * ) * - 42 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7305
SELECT CAST( NULL AS SIGNED ) + 74 * 31 * 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT CAST ( NULL AS INTEGER ) + 74 * 31 * 60 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7306
SELECT - COUNT( * ) * + + CAST( NULL AS DECIMAL ) / ( - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT - COUNT ( * ) * + + CAST ( NULL AS REAL ) / ( - 53 )
----
NULL

query I rowsort
SELECT - 87 * + - 8 AS col1
----
696

onlyif mysql # aggregate syntax: 
query II rowsort label-7308
SELECT - - COUNT( * ), 89 + 70 AS col2
----
1
159

skipif mysql # not compatible
query II rowsort label-7308
SELECT - - COUNT ( * ), 89 + 70 AS col2
----
1
159

onlyif mysql # aggregate syntax: 
query II rowsort label-7309
SELECT 24 - + 37 * - 0 + - COUNT( * ) AS col0, + 17 + + 88
----
23
105

skipif mysql # not compatible
query II rowsort label-7309
SELECT 24 - + 37 * - 0 + - COUNT ( * ) AS col0, + 17 + + 88
----
23
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT ALL COALESCE ( + 17, - - 89 * ( - - MIN( DISTINCT - - 14 ) ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - - 46 - 6 ) * + ( + 3 - COUNT( * ) ) col1
----
34

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL COALESCE ( + 17, - - 89 * ( - - MIN ( DISTINCT - - 14 ) ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 46 - 6 ) * + ( + 3 - COUNT ( * ) ) col1
----
34

query I rowsort
SELECT DISTINCT 91 + - 22 AS col0
----
69

query I rowsort
SELECT 8 * 21 AS col0
----
168

query I rowsort
SELECT ALL - 20 + + 18 * + - 33 * - + 93 + - + 95 AS col1
----
55127

query I rowsort
SELECT 14 + - 49
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7315
SELECT 53 DIV + - COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7315
SELECT 53 / + - COUNT ( * ) AS col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT CAST( NULL AS SIGNED ) + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT CAST ( NULL AS INTEGER ) + + 82
----
NULL

query I rowsort
SELECT 59 - + - 79
----
138

query I rowsort
SELECT 33 + 31 * + + 43
----
1366

query I rowsort
SELECT 69 - - - 31
----
38

query I rowsort
SELECT DISTINCT - 75 + + 61
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT ALL + 21 + + 21 DIV + 66 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL + 21 + + 21 / + 66 AS col1
----
21

query I rowsort
SELECT 59 + 60 AS col2
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7323
SELECT DISTINCT + 49 * - CAST( NULL AS SIGNED ), 59 * ( - 31 ) AS col0
----
NULL
-1829

skipif mysql # not compatible
query II rowsort label-7323
SELECT DISTINCT + 49 * - CAST ( NULL AS INTEGER ), 59 * ( - 31 ) AS col0
----
NULL
-1829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7324
SELECT + COUNT( * ) DIV 84 + - 21 + - 92 + - CAST( + SUM( DISTINCT 59 ) AS SIGNED )
----
-172

skipif mysql # not compatible
query I rowsort label-7324
SELECT + COUNT ( * ) / 84 + - 21 + - 92 + - CAST ( + SUM ( DISTINCT 59 ) AS INTEGER )
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT 22 + + COUNT( * ) * COUNT( + 4 ) * + + 76 + - 54 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7325
SELECT 22 + + COUNT ( * ) * COUNT ( + 4 ) * + + 76 + - 54 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7326
SELECT - + 47 * + 25 + 28 + 38 + + 2 + 14 * + + NULLIF ( CASE + COUNT( * ) WHEN - COUNT( ( + 43 ) ) * + 9 THEN NULL ELSE 94 + MAX( + CAST( NULL AS DECIMAL ) ) END, - 93 ) / 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT - + 47 * + 25 + 28 + 38 + + 2 + 14 * + + NULLIF ( CASE + COUNT ( * ) WHEN - COUNT ( ( + 43 ) ) * + 9 THEN NULL ELSE 94 + MAX ( + CAST ( NULL AS REAL ) ) END, - 93 ) / 70 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7327
SELECT DISTINCT 48 / - - CAST( NULL AS DECIMAL ) AS col0, CAST( NULL AS SIGNED ) * + 6 col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7327
SELECT DISTINCT 48 / - - CAST ( NULL AS REAL ) AS col0, CAST ( NULL AS INTEGER ) * + 6 col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL - COUNT( * ) - 18 * 20
----
-361

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - COUNT ( * ) - 18 * 20
----
-361

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT - COALESCE ( - - ( 64 ), + 0 ) DIV + 7 - 77 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7329
SELECT - COALESCE ( - - ( 64 ), + 0 ) / + 7 - 77 AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT DISTINCT + 36 DIV + 79 * + 42
----
0

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT + 36 / + 79 * + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL 32 * - COUNT( * ) * + 29 AS col0
----
-928

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL 32 * - COUNT ( * ) * + 29 AS col0
----
-928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7332
SELECT + 2 DIV + 26 + MAX( - NULLIF ( 23, 93 ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7332
SELECT + 2 / + 26 + MAX ( - NULLIF ( 23, 93 ) ) AS col1
----
-23

query I rowsort
SELECT 70 / + CASE - + 21 WHEN - ( 24 ) THEN 4 * 40 + 56 - + 51 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT + COUNT( * ) + - MIN( 79 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7334
SELECT + COUNT ( * ) + - MIN ( 79 ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7335
SELECT + 85 * - 10 AS col2, + 79 * + 35 + + COUNT( * ) - CASE - 6 WHEN - 80 * - ( 92 ) THEN + ( + 87 ) WHEN - 88 THEN - 95 * - 96 ELSE CAST( - COALESCE ( 68, - 3 / + 44 ) AS SIGNED ) + + MIN( 8 ) END + COUNT( + 74 ) AS col0
----
-850
2827

skipif mysql # not compatible
query II rowsort label-7335
SELECT + 85 * - 10 AS col2, + 79 * + 35 + + COUNT ( * ) - CASE - 6 WHEN - 80 * - ( 92 ) THEN + ( + 87 ) WHEN - 88 THEN - 95 * - 96 ELSE CAST ( - COALESCE ( 68, - 3 / + 44 ) AS INTEGER ) + + MIN ( 8 ) END + COUNT ( + 74 ) AS col0
----
-850
2827

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT - 94 + + + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-7336
SELECT - 94 + + + COUNT ( * )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7337
SELECT ( - CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7337
SELECT ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL + COUNT( * ) * - NULLIF ( - 79, - COUNT( * ) ) col0
----
79

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL + COUNT ( * ) * - NULLIF ( - 79, - COUNT ( * ) ) col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT 15 + + 21 - + 17 * 73 + + COUNT( * )
----
-1204

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT 15 + + 21 - + 17 * 73 + + COUNT ( * )
----
-1204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7340
SELECT ALL 38 + - - COALESCE ( COALESCE ( + - 58, 70 * - 63 * ( - + 47 ) * - - ( - + COUNT( * ) ) + COUNT( * ), + 12 - - 85 ), 66, + 85, + CAST( NULL AS SIGNED ) + + 74 )
----
-20

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL 38 + - - COALESCE ( COALESCE ( + - 58, 70 * - 63 * ( - + 47 ) * - - ( - + COUNT ( * ) ) + COUNT ( * ), + 12 - - 85 ), 66, + 85, + CAST ( NULL AS INTEGER ) + + 74 )
----
-20

query I rowsort
SELECT 34 + + + 66 + + 97 * + + 40 AS col2
----
3980

query I rowsort
SELECT ALL 50 + - + 36
----
14

query I rowsort
SELECT ( + 49 ) * - + 19 * - + 13 AS col1
----
12103

query I rowsort
SELECT ALL 85 + + 79
----
164

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7345
SELECT DISTINCT 73 AS col0, - CAST( NULL AS DECIMAL ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-7345
SELECT DISTINCT 73 AS col0, - CAST ( NULL AS REAL ) AS col0
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT 59 + - CASE - 8 WHEN - 81 THEN - NULLIF ( + 46, + - 5 / + NULLIF ( COUNT( * ), - 74 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT 59 + - CASE - 8 WHEN - 81 THEN - NULLIF ( + 46, + - 5 / + NULLIF ( COUNT ( * ), - 74 ) ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7347
SELECT 69 + COUNT( * ) DIV + 60 DIV 6 * - - 71 + - 77 AS col2, - CAST( 50 AS DECIMAL ) + AVG ( ALL + 34 ) - - 95 * 69 DIV CAST( NULL AS SIGNED )
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-7347
SELECT 69 + COUNT ( * ) / + 60 / 6 * - - 71 + - 77 AS col2, - CAST ( 50 AS REAL ) + AVG ( ALL + 34 ) - - 95 * 69 / CAST ( NULL AS INTEGER )
----
-8
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7348
SELECT DISTINCT ( - 49 ) * - COUNT( * ), + 34 - - 9 col2
----
49
43

skipif mysql # not compatible
query II rowsort label-7348
SELECT DISTINCT ( - 49 ) * - COUNT ( * ), + 34 - - 9 col2
----
49
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT - MIN( + CASE - 37 WHEN + 90 THEN - ( 86 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT - MIN ( + CASE - 37 WHEN + 90 THEN - ( 86 ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT ALL CAST( NULL AS SIGNED ) * - - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL CAST ( NULL AS INTEGER ) * - - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT DISTINCT COUNT( * ) + - - 22 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT COUNT ( * ) + - - 22 AS col1
----
23

query I rowsort
SELECT ALL 36 + + + 53 * + 27 * - 58
----
-82962

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ( - 96 ) - - CASE + + 96 WHEN + 61 THEN - - ( + 94 ) / - 79 + - 27 WHEN - COUNT( * ) THEN NULL ELSE NULL END - - 77 * + 45 * + SUM( 33 * + 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT ( - 96 ) - - CASE + + 96 WHEN + 61 THEN - - ( + 94 ) / - 79 + - 27 WHEN - COUNT ( * ) THEN NULL ELSE NULL END - - 77 * + 45 * + SUM ( 33 * + 33 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT + CAST( NULL AS SIGNED ) * + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT + CAST ( NULL AS INTEGER ) * + 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ( + 88 ) * - COUNT( * ) * - 30 + + 51
----
2691

skipif mysql # not compatible
query I rowsort label-7355
SELECT ( + 88 ) * - COUNT ( * ) * - 30 + + 51
----
2691

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT ALL - 59 DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL - 59 / - 65
----
0

query II rowsort
SELECT DISTINCT - + 58 AS col1, - 82
----
-58
-82

query I rowsort
SELECT ALL + - 1 * - 58
----
58

query I rowsort
SELECT ALL + 7 * 93 * - NULLIF ( 36, - + 82 ) AS col0
----
-23436

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT + - COUNT( * ) * 57 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-7360
SELECT + - COUNT ( * ) * 57 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT + 13 * COUNT( * ) * 36 + 12 AS col0
----
480

skipif mysql # not compatible
query I rowsort label-7361
SELECT + 13 * COUNT ( * ) * 36 + 12 AS col0
----
480

query I rowsort
SELECT - - 52 + - 19
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT + - SUM( 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7363
SELECT + - SUM ( 2 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - NULLIF ( + MAX( - 94 ), ( 93 ) ) * + 37 AS col0
----
3478

skipif mysql # not compatible
query I rowsort label-7364
SELECT - NULLIF ( + MAX ( - 94 ), ( 93 ) ) * + 37 AS col0
----
3478

query I rowsort
SELECT - + 77 + - 25
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT - ( + - 29 ) * + COUNT( + + 67 ) - - 84 * 88 * + 17 - COUNT( * ) * - - 94 - 31 - + 99
----
125469

skipif mysql # not compatible
query I rowsort label-7366
SELECT - ( + - 29 ) * + COUNT ( + + 67 ) - - 84 * 88 * + 17 - COUNT ( * ) * - - 94 - 31 - + 99
----
125469

query I rowsort
SELECT ( - COALESCE ( - + 40, - 77 ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL + 92 * COUNT( * ) * - 43 * 7 + + 21
----
-27671

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL + 92 * COUNT ( * ) * - 43 * 7 + + 21
----
-27671

query I rowsort
SELECT DISTINCT + ( + + 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT + - 54 + - CAST( + 90 AS SIGNED ) AS col1
----
-144

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + - 54 + - CAST ( + 90 AS INTEGER ) AS col1
----
-144

query I rowsort
SELECT DISTINCT - 64 + - 31
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT - MAX( - - ( + + 40 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-7372
SELECT - MAX ( - - ( + + 40 ) )
----
-40

query I rowsort
SELECT ALL - 65 * + - 29 AS col2
----
1885

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT + 21 DIV + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7374
SELECT + 21 / + 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-7375
SELECT - 66, 25 AS col0, + COALESCE ( 26, + 92 ) - 35 * + - COUNT( * ) AS col1
----
-66
25
61

skipif mysql # not compatible
query III rowsort label-7375
SELECT - 66, 25 AS col0, + COALESCE ( 26, + 92 ) - 35 * + - COUNT ( * ) AS col1
----
-66
25
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7376
SELECT 63 col0, + CAST( NULL AS SIGNED ) AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-7376
SELECT 63 col0, + CAST ( NULL AS INTEGER ) AS col2
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL + 93 + + ( - MAX( - 57 ) )
----
150

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL + 93 + + ( - MAX ( - 57 ) )
----
150

query I rowsort
SELECT - 67 * + 4
----
-268

query I rowsort
SELECT - 85 + 0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-7380
SELECT + 91 / - CASE - - 29 WHEN + - 61 THEN COUNT( * ) * + + 54 END AS col1, 24 - + 13 AS col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-7380
SELECT + 91 / - CASE - - 29 WHEN + - 61 THEN COUNT ( * ) * + + 54 END AS col1, 24 - + 13 AS col1
----
NULL
11

query I rowsort
SELECT DISTINCT 97 + 6 + NULLIF ( - + 70, - + 50 )
----
33

query I rowsort
SELECT DISTINCT - 48 * + - 7 * - 42
----
-14112

query I rowsort
SELECT ALL + CASE + + ( + 4 ) WHEN - - 79 THEN NULL WHEN + NULLIF ( NULLIF ( + 39, + ( - 41 ) + ( - 2 ) ), - 17 ) - 64 THEN + 32 END * - 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT ALL 31 DIV CASE - 50 WHEN 66 THEN NULL ELSE 18 - + 61 END
----
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL 31 / CASE - 50 WHEN 66 THEN NULL ELSE 18 - + 61 END
----
0

query II rowsort
SELECT DISTINCT 83, 36 col1
----
83
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT DISTINCT + 76 + CAST( NULLIF ( + COALESCE ( - CAST( NULL AS SIGNED ), ( AVG ( - 5 ) ) ), - 81 * + CAST( NULL AS SIGNED ) + 62 ) AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT + 76 + CAST ( NULLIF ( + COALESCE ( - CAST ( NULL AS INTEGER ), ( AVG ( - 5 ) ) ), - 81 * + CAST ( NULL AS INTEGER ) + 62 ) AS INTEGER ) AS col2
----
71

query I rowsort
SELECT DISTINCT - ( - 1 ) + - NULLIF ( + 94, 2 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL 89 * - NULLIF ( - CASE COUNT( * ) WHEN 43 THEN - 97 END, - 10 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL 89 * - NULLIF ( - CASE COUNT ( * ) WHEN 43 THEN - 97 END, - 10 ) * 17
----
NULL

query I rowsort
SELECT + 95 + 77
----
172

query I rowsort
SELECT + 1 - 7
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT - 38 + CAST( 60 AS SIGNED ) + + 91 + + 98 * NULLIF ( 85, 27 )
----
8443

skipif mysql # not compatible
query I rowsort label-7391
SELECT - 38 + CAST ( 60 AS INTEGER ) + + 91 + + 98 * NULLIF ( 85, 27 )
----
8443

query I rowsort
SELECT + 81 * 66 - - + 49 AS col0
----
5395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7393
SELECT ALL + - CAST( + - NULLIF ( 48, + + ( + - 97 ) ) AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + - CAST ( + - NULLIF ( 48, + + ( + - 97 ) ) AS INTEGER ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT DISTINCT 69 * - COUNT( * ) + - 54 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT 69 * - COUNT ( * ) + - 54 AS col2
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7395
SELECT - 78 * 14 + - 83 + COUNT( * ) + + 30 DIV + + 93 + + COUNT( DISTINCT + 77 ) + + 69, + 42 AS col2
----
-1104
42

skipif mysql # not compatible
query II rowsort label-7395
SELECT - 78 * 14 + - 83 + COUNT ( * ) + + 30 / + + 93 + + COUNT ( DISTINCT + 77 ) + + 69, + 42 AS col2
----
-1104
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7396
SELECT ALL + + CASE + 26 WHEN - + 68 THEN NULL ELSE SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / 56 * + 92 + - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL + + CASE + 26 WHEN - + 68 THEN NULL ELSE SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / 56 * + 92 + - 11 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT - NULLIF ( + 24, 51 * + 26 + 94 + + 82 * + 27 + + 68 ) DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7397
SELECT - NULLIF ( + 24, 51 * + 26 + 94 + + 82 * + 27 + + 68 ) / + 93 AS col2
----
0

query I rowsort
SELECT + 84 * + 79 + 74 AS col0
----
6710

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT SUM( - 72 ) * - + 28 + + + 92 + 24 + 67 * + 85 + - 77 + + 62 col1
----
7812

skipif mysql # not compatible
query I rowsort label-7399
SELECT SUM ( - 72 ) * - + 28 + + + 92 + 24 + 67 * + 85 + - 77 + + 62 col1
----
7812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7400
SELECT DISTINCT - 88 * - COUNT( * ) + 49 DIV CAST( - - 16 AS SIGNED ) + - 74
----
17

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT - 88 * - COUNT ( * ) + 49 / CAST ( - - 16 AS INTEGER ) + - 74
----
17

query II rowsort
SELECT ALL + - 37 AS col1, - 4 AS col1
----
-37
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7402
SELECT ALL ( - + 71 ) * - 82 - + 0 * - 3 + - 14 DIV + - 82 + - COUNT( * )
----
5821

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL ( - + 71 ) * - 82 - + 0 * - 3 + - 14 / + - 82 + - COUNT ( * )
----
5821

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT ALL 2 * 23 - + 99 + - + 18 DIV 21 + + 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL 2 * 23 - + 99 + - + 18 / 21 + + 53 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT DISTINCT + + COUNT( * ) * SUM( - 79 ) + 13
----
-66

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT + + COUNT ( * ) * SUM ( - 79 ) + 13
----
-66

query I rowsort
SELECT - 43 + 49
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL - 16 * + COUNT( * ) + 25 col2
----
9

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - 16 * + COUNT ( * ) + 25 col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT + CAST( 33 AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7407
SELECT + CAST ( 33 AS INTEGER ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - 9 * 77 * + - COUNT( * ) + + - 2 + COUNT( - + 49 ) AS col2
----
692

skipif mysql # not compatible
query I rowsort label-7408
SELECT - 9 * 77 * + - COUNT ( * ) + + - 2 + COUNT ( - + 49 ) AS col2
----
692

query I rowsort
SELECT - 80 * + 84 * + 90
----
-604800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7410
SELECT - 9 * + 82, MAX( DISTINCT 50 ) + ( - + CAST( NULL AS SIGNED ) ) AS col0
----
-738
NULL

skipif mysql # not compatible
query II rowsort label-7410
SELECT - 9 * + 82, MAX ( DISTINCT 50 ) + ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
-738
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7411
SELECT - 68 - COUNT( * ), 63 AS col0
----
-69
63

skipif mysql # not compatible
query II rowsort label-7411
SELECT - 68 - COUNT ( * ), 63 AS col0
----
-69
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7412
SELECT COALESCE ( CAST( NULL AS SIGNED ), 28 * 29 DIV + COUNT( * ), + 70 * + - 54 - COUNT( * ) * + - 6 * + 71 ) AS col1
----
812

skipif mysql # not compatible
query I rowsort label-7412
SELECT COALESCE ( CAST ( NULL AS INTEGER ), 28 * 29 / + COUNT ( * ), + 70 * + - 54 - COUNT ( * ) * + - 6 * + 71 ) AS col1
----
812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7413
SELECT - CASE 78 WHEN + COALESCE ( - + MIN( 89 ), - COUNT( * ) ) * 99 * - ( - 97 ) + + ( - AVG ( + - ( 14 ) ) ) THEN + 57 + + COUNT( * ) END + + CASE 81 WHEN 7 + - 14 THEN - 61 - CAST( NULL AS SIGNED ) ELSE - 97 * COUNT( * ) END / + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT - CASE 78 WHEN + COALESCE ( - + MIN ( 89 ), - COUNT ( * ) ) * 99 * - ( - 97 ) + + ( - AVG ( + - ( 14 ) ) ) THEN + 57 + + COUNT ( * ) END + + CASE 81 WHEN 7 + - 14 THEN - 61 - CAST ( NULL AS INTEGER ) ELSE - 97 * COUNT ( * ) END / + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT DISTINCT ( - CASE - + 96 WHEN + SUM( - 86 ) THEN + + ( 12 ) + 83 + - CAST( SUM( - 46 ) AS SIGNED ) + - COUNT( * ) - ( COUNT( * ) + + 36 ) * 5 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT ( - CASE - + 96 WHEN + SUM ( - 86 ) THEN + + ( 12 ) + 83 + - CAST ( SUM ( - 46 ) AS INTEGER ) + - COUNT ( * ) - ( COUNT ( * ) + + 36 ) * 5 END )
----
NULL

query I rowsort
SELECT ALL ( + CASE + 88 WHEN + - 76 THEN - 58 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT ALL CAST( - + 31 AS SIGNED ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL CAST ( - + 31 AS INTEGER ) AS col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7417
SELECT DISTINCT - 17 * - - COUNT( * ) AS col2, - CASE NULLIF ( - 75, - CASE + 12 WHEN 14 THEN 65 WHEN - - 1 THEN + 4 END * - COALESCE ( CAST( NULL AS SIGNED ), 0 + + 39 ) * - 57 - + 67 * 72 ) WHEN 32 * + 82 THEN - 89 * + ( - COUNT( * ) ) WHEN + SUM( DISTINCT + 9 ) THEN NULL END col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-7417
SELECT DISTINCT - 17 * - - COUNT ( * ) AS col2, - CASE NULLIF ( - 75, - CASE + 12 WHEN 14 THEN 65 WHEN - - 1 THEN + 4 END * - COALESCE ( CAST ( NULL AS INTEGER ), 0 + + 39 ) * - 57 - + 67 * 72 ) WHEN 32 * + 82 THEN - 89 * + ( - COUNT ( * ) ) WHEN + SUM ( DISTINCT + 9 ) THEN NULL END col1
----
-17
NULL

query I rowsort
SELECT - 78 * - 39 AS col0
----
3042

query I rowsort
SELECT DISTINCT + 45 * + - 55 AS col1
----
-2475

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7420
SELECT DISTINCT - 54 * + NULLIF ( - AVG ( DISTINCT + 54 ), + 15 ) / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT - 54 * + NULLIF ( - AVG ( DISTINCT + 54 ), + 15 ) / - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + - 30 * - ( + 77 ) col1
----
2310

query I rowsort
SELECT DISTINCT - 73 * - ( + 58 ) * - + 27 AS col2
----
-114318

onlyif mysql # aggregate syntax: 
query II rowsort label-7423
SELECT + 79 * + - COUNT( * ), 40 * - 34 * + 22 AS col2
----
-79
-29920

skipif mysql # not compatible
query II rowsort label-7423
SELECT + 79 * + - COUNT ( * ), 40 * - 34 * + 22 AS col2
----
-79
-29920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7424
SELECT - ( - 96 ) AS col0, CAST( - 65 AS SIGNED ) * - COALESCE ( COUNT( * ), + 73 + ( - 75 ), - - 41 * - 84 ) + + - 93 * + 82 col0
----
96
-7561

skipif mysql # not compatible
query II rowsort label-7424
SELECT - ( - 96 ) AS col0, CAST ( - 65 AS INTEGER ) * - COALESCE ( COUNT ( * ), + 73 + ( - 75 ), - - 41 * - 84 ) + + - 93 * + 82 col0
----
96
-7561

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT - SUM( + + 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT - SUM ( + + 42 ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7426
SELECT + 46 * COALESCE ( - 96, 49 / 33 * + 93 ) * + - 63 + 26 + CAST( NULL AS SIGNED ) * SUM( ALL - 98 ) * 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT + 46 * COALESCE ( - 96, 49 / 33 * + 93 ) * + - 63 + 26 + CAST ( NULL AS INTEGER ) * SUM ( ALL - 98 ) * 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7427
SELECT - NULLIF ( - COUNT( * ), + 7 + + 77 - 29 + + CASE - 62 WHEN - 5 DIV - - 55 DIV - 15 - ( 6 ) THEN NULL ELSE 0 END * - 58 ) DIV ( - 55 - + 19 ) - - 72
----
72

skipif mysql # not compatible
query I rowsort label-7427
SELECT - NULLIF ( - COUNT ( * ), + 7 + + 77 - 29 + + CASE - 62 WHEN - 5 / - - 55 / - 15 - ( 6 ) THEN NULL ELSE 0 END * - 58 ) / ( - 55 - + 19 ) - - 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT ALL - 24 * + 30 * + 1 - - + 21 + - ( + COUNT( * ) ) * + 19 col2
----
-718

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - 24 * + 30 * + 1 - - + 21 + - ( + COUNT ( * ) ) * + 19 col2
----
-718

query I rowsort
SELECT DISTINCT - ( 90 ) + + - 17
----
-107

query I rowsort
SELECT ALL - 55 + 64 AS col1
----
9

query I rowsort
SELECT DISTINCT 70 + - 92 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT DISTINCT CAST( NULL AS SIGNED ) + 85 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 85 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL SUM( DISTINCT - 18 ) * + 78 * + ( 2 )
----
-2808

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL SUM ( DISTINCT - 18 ) * + 78 * + ( 2 )
----
-2808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT - 83 * - CAST( NULL AS SIGNED ) * - - COALESCE ( + 96, - + 13 - + 48 ) * COUNT( - 99 ) + - ( + ( 8 ) ) * 70 + COUNT( * ) * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT - 83 * - CAST ( NULL AS INTEGER ) * - - COALESCE ( + 96, - + 13 - + 48 ) * COUNT ( - 99 ) + - ( + ( 8 ) ) * 70 + COUNT ( * ) * 66 AS col1
----
NULL

query I rowsort
SELECT - 66 * + + 60 * - 60 + + 83
----
237683

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT 53 * + 35 * - + COUNT( * )
----
-1855

skipif mysql # not compatible
query I rowsort label-7436
SELECT 53 * + 35 * - + COUNT ( * )
----
-1855

query I rowsort
SELECT ALL 62 + - + 68
----
-6

query I rowsort
SELECT NULLIF ( + - 34, + 48 * + 93 ) + 45 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT ALL + 2 * + COUNT( * ) * + + 28 AS col2, + 78 AS col0
----
56
78

skipif mysql # not compatible
query II rowsort label-7439
SELECT ALL + 2 * + COUNT ( * ) * + + 28 AS col2, + 78 AS col0
----
56
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7440
SELECT ALL 26 - + - MIN( DISTINCT + 42 ) * 21 + + 11 * 26, - 77 * - 93 + + 21 * 20 AS col2
----
1194
7581

skipif mysql # not compatible
query II rowsort label-7440
SELECT ALL 26 - + - MIN ( DISTINCT + 42 ) * 21 + + 11 * 26, - 77 * - 93 + + 21 * 20 AS col2
----
1194
7581

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT DISTINCT ( - + 81 ) DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT ( - + 81 ) / + 42
----
-1

query I rowsort
SELECT ALL - 30 * 48 * + 93
----
-133920

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT ALL - NULLIF ( + + CASE 46 WHEN + - 10 THEN - 92 * 78 WHEN + 95 THEN NULL END, - - 25 + - COALESCE ( 25, + 14 + - + COUNT( - + 34 ) + - ( ( 92 ) + - 84 * + COUNT( * ) ), - 48 ) + 62 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL - NULLIF ( + + CASE 46 WHEN + - 10 THEN - 92 * 78 WHEN + 95 THEN NULL END, - - 25 + - COALESCE ( 25, + 14 + - + COUNT ( - + 34 ) + - ( ( 92 ) + - 84 * + COUNT ( * ) ), - 48 ) + 62 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL - MAX( - - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL - MAX ( - - 23 ) AS col0
----
-23

query I rowsort
SELECT DISTINCT 79 * 54
----
4266

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT 71 + + - 64 DIV + + 94
----
71

skipif mysql # not compatible
query I rowsort label-7446
SELECT 71 + + - 64 / + + 94
----
71

query I rowsort
SELECT 42 * + 82 * - 1
----
-3444

query I rowsort
SELECT ALL - 31 * - 53 * - 22
----
-36146

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT COUNT( * ) + + 72 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7449
SELECT COUNT ( * ) + + 72 AS col1
----
73

query II rowsort
SELECT 31 AS col2, + 71
----
31
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT + 58 - ( 82 ) + 16 * + ( - + 10 ) + COUNT( * )
----
-183

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT + 58 - ( 82 ) + 16 * + ( - + 10 ) + COUNT ( * )
----
-183

query I rowsort
SELECT ALL 78 * 69 AS col0
----
5382

query II rowsort
SELECT ALL 98, + 91 * - 1 AS col1
----
98
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7454
SELECT DISTINCT 1, - COALESCE ( + 89, - CAST( - - 64 AS SIGNED ) + + 49 ) AS col1
----
1
-89

skipif mysql # not compatible
query II rowsort label-7454
SELECT DISTINCT 1, - COALESCE ( + 89, - CAST ( - - 64 AS INTEGER ) + + 49 ) AS col1
----
1
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-7455
SELECT ALL + 68 * + SUM( 73 ) AS col1, 76 AS col0
----
4964
76

skipif mysql # not compatible
query II rowsort label-7455
SELECT ALL + 68 * + SUM ( 73 ) AS col1, 76 AS col0
----
4964
76

query I rowsort
SELECT 22 + - 89 * + 54 AS col1
----
-4784

query I rowsort
SELECT - ( + + 24 ) AS col2
----
-24

query I rowsort
SELECT DISTINCT + + 52 + 17 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + COALESCE ( - 83, - 95, 10 ) + + + 34 * COALESCE ( 62, 7 + + COUNT( * ) + + 75 + MIN( 66 ) * - 93 * + 94 * - NULLIF ( - 14, - 5 ) ) * + SUM( 18 )
----
37861

skipif mysql # not compatible
query I rowsort label-7459
SELECT + COALESCE ( - 83, - 95, 10 ) + + + 34 * COALESCE ( 62, 7 + + COUNT ( * ) + + 75 + MIN ( 66 ) * - 93 * + 94 * - NULLIF ( - 14, - 5 ) ) * + SUM ( 18 )
----
37861

onlyif mysql # DIV for integer division: 
query I rowsort label-7460
SELECT 70 DIV - ( + 62 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7460
SELECT 70 / - ( + 62 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT 14 + CAST( + + 47 AS SIGNED ) + + 86 * + MIN( - 84 ) * COUNT( * )
----
-7163

skipif mysql # not compatible
query I rowsort label-7461
SELECT 14 + CAST ( + + 47 AS INTEGER ) + + 86 * + MIN ( - 84 ) * COUNT ( * )
----
-7163

query I rowsort
SELECT 1 + + + 66
----
67

query I rowsort
SELECT 91 - - 45
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL + - 10 + - + NULLIF ( - 99, - + 22 ) + + - MIN( - + 32 ) col2
----
121

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL + - 10 + - + NULLIF ( - 99, - + 22 ) + + - MIN ( - + 32 ) col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT DISTINCT + - MIN( COALESCE ( - 92, 97 ) ) * - 4 * + 33 + - 92 col2
----
-12236

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT + - MIN ( COALESCE ( - 92, 97 ) ) * - 4 * + 33 + - 92 col2
----
-12236

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT ALL - 68 * - + COUNT( * ) + 87 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - 68 * - + COUNT ( * ) + 87 AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL - SUM( ALL + 4 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL - SUM ( ALL + 4 ) col0
----
-4

query II rowsort
SELECT DISTINCT - - 3 AS col0, 47 AS col1
----
3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT COUNT( * ) * + - 70 * + 90 AS col0
----
-6300

skipif mysql # not compatible
query I rowsort label-7469
SELECT COUNT ( * ) * + - 70 * + 90 AS col0
----
-6300

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT + CASE - + 92 WHEN - - COUNT( * ) THEN NULL WHEN - 33 + ( - - 16 ) THEN - 28 END + - 25 AS col1, + 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-7470
SELECT + CASE - + 92 WHEN - - COUNT ( * ) THEN NULL WHEN - 33 + ( - - 16 ) THEN - 28 END + - 25 AS col1, + 56
----
NULL
56

query II rowsort
SELECT ALL + 43 * + + 49, - 46 AS col2
----
2107
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT DISTINCT - CAST( - - 48 AS SIGNED ) - + 38
----
-86

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - CAST ( - - 48 AS INTEGER ) - + 38
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7473
SELECT DISTINCT 79 * + COUNT( * ) AS col2, - 50
----
79
-50

skipif mysql # not compatible
query II rowsort label-7473
SELECT DISTINCT 79 * + COUNT ( * ) AS col2, - 50
----
79
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ( + - MIN( ( - 79 ) ) ) * + 67 AS col0
----
5293

skipif mysql # not compatible
query I rowsort label-7474
SELECT ( + - MIN ( ( - 79 ) ) ) * + 67 AS col0
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT 52 - + + 31 - MIN( - 64 ) col1
----
85

skipif mysql # not compatible
query I rowsort label-7475
SELECT 52 - + + 31 - MIN ( - 64 ) col1
----
85

query I rowsort
SELECT ( - 27 ) * - - 4
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT + COUNT( * ) * - - 18
----
18

skipif mysql # not compatible
query I rowsort label-7477
SELECT + COUNT ( * ) * - - 18
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT DISTINCT 13 DIV + - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT 13 / + - 43 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT ALL 30 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL 30 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( - - 94, 0 ) - - ( - + 14 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT 65 + - 55 * + CASE + - 33 WHEN + - SUM( DISTINCT - 7 ) THEN - ( - + 87 ) + 12 END * - - COUNT( * ) + 77 * - COALESCE ( - COUNT( DISTINCT 85 ), - 71 / COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT 65 + - 55 * + CASE + - 33 WHEN + - SUM ( DISTINCT - 7 ) THEN - ( - + 87 ) + 12 END * - - COUNT ( * ) + 77 * - COALESCE ( - COUNT ( DISTINCT 85 ), - 71 / COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7482
SELECT ALL - COUNT( * ) + COUNT( * ) * + 71 + - + 63, + CASE - 41 WHEN 55 + - 86 / - 54 THEN NULL WHEN + + CAST( 41 AS SIGNED ) THEN + - 21 * - CASE 29 WHEN 11 - COUNT( * ) THEN + 46 + - CAST( + COUNT( * ) AS DECIMAL ) END END col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-7482
SELECT ALL - COUNT ( * ) + COUNT ( * ) * + 71 + - + 63, + CASE - 41 WHEN 55 + - 86 / - 54 THEN NULL WHEN + + CAST ( 41 AS INTEGER ) THEN + - 21 * - CASE 29 WHEN 11 - COUNT ( * ) THEN + 46 + - CAST ( + COUNT ( * ) AS REAL ) END END col1
----
7
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT ALL + 49 + + 99 * + 23 + + 56, COUNT( ALL - 42 ) AS col2
----
2382
1

skipif mysql # not compatible
query II rowsort label-7483
SELECT ALL + 49 + + 99 * + 23 + + 56, COUNT ( ALL - 42 ) AS col2
----
2382
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT DISTINCT 58 + + 90 - COALESCE ( - 23, COUNT( * ), - 4, - NULLIF ( - + 92, 72 ) DIV 1 ) - + + 65 * + 32 AS col1
----
-1909

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT 58 + + 90 - COALESCE ( - 23, COUNT ( * ), - 4, - NULLIF ( - + 92, 72 ) / 1 ) - + + 65 * + 32 AS col1
----
-1909

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT + - 68 * - COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7485
SELECT + - 68 * - COUNT ( * ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT - COUNT( * ) + - 31 * ( + 27 )
----
-838

skipif mysql # not compatible
query I rowsort label-7486
SELECT - COUNT ( * ) + - 31 * ( + 27 )
----
-838

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT + COUNT( ALL + + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT + COUNT ( ALL + + 76 )
----
1

query I rowsort
SELECT ALL + + 75 + 83
----
158

query I rowsort
SELECT ALL CASE + 5 WHEN 16 THEN NULL ELSE 40 + + 88 END
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT + ( CAST( 81 AS SIGNED ) ) + - 32 - 31 + + ( - + 77 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7490
SELECT + ( CAST ( 81 AS INTEGER ) ) + - 32 - 31 + + ( - + 77 ) AS col2
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-7491
SELECT - + 53 DIV - + 70 col1, 42 AS col0
----
0
42

skipif mysql # not compatible
query II rowsort label-7491
SELECT - + 53 / - + 70 col1, 42 AS col0
----
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL + + MIN( + 32 ) + - COUNT( * ) * COUNT( * ) * - 80 - - 40 + + 76 + - 19 AS col2
----
209

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL + + MIN ( + 32 ) + - COUNT ( * ) * COUNT ( * ) * - 80 - - 40 + + 76 + - 19 AS col2
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL - 72 - + 40 * COALESCE ( - 42, - 37 ) * - 88 + ( CASE + 65 WHEN - 29 THEN - - 94 * 51 + + CASE WHEN NOT - 98 IS NULL THEN NULL ELSE NULLIF ( - COALESCE ( + COUNT( + ( + 32 ) ), + COUNT( * ), 99 ), - 98 * 42 ) END / - ( 98 * ( AVG ( DISTINCT - 8 ) ) ) END ) * + NULLIF ( - 70, - ( - 54 ) * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL - 72 - + 40 * COALESCE ( - 42, - 37 ) * - 88 + ( CASE + 65 WHEN - 29 THEN - - 94 * 51 + + CASE WHEN NOT - 98 IS NULL THEN NULL ELSE NULLIF ( - COALESCE ( + COUNT ( + ( + 32 ) ), + COUNT ( * ), 99 ), - 98 * 42 ) END / - ( 98 * ( AVG ( DISTINCT - 8 ) ) ) END ) * + NULLIF ( - 70, - ( - 54 ) * COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT - + COUNT( ALL + 35 ) + - 88 + - 96
----
-185

skipif mysql # not compatible
query I rowsort label-7494
SELECT - + COUNT ( ALL + 35 ) + - 88 + - 96
----
-185

query I rowsort
SELECT + - ( + + 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL + - MIN( DISTINCT + NULLIF ( + 27, - CASE 30 WHEN 27 + 10 THEN 91 + + - 24 + - 49 + 1 * - 71 WHEN - - 58 / 74 + - 33 + ( 84 ) * ( 21 + 4 ) THEN NULL ELSE 43 * 68 END ) )
----
-27

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL + - MIN ( DISTINCT + NULLIF ( + 27, - CASE 30 WHEN 27 + 10 THEN 91 + + - 24 + - 49 + 1 * - 71 WHEN - - 58 / 74 + - 33 + ( 84 ) * ( 21 + 4 ) THEN NULL ELSE 43 * 68 END ) )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT - - 92 + - + 5 + ( - CAST( + 26 AS SIGNED ) ) + + 9 * 66 * 63 / CAST( NULL AS SIGNED ) * + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT - - 92 + - + 5 + ( - CAST ( + 26 AS INTEGER ) ) + + 9 * 66 * 63 / CAST ( NULL AS INTEGER ) * + - 31
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7498
SELECT - 36 DIV + 50 AS col2, - 11 DIV - 12
----
0
0

skipif mysql # not compatible
query II rowsort label-7498
SELECT - 36 / + 50 AS col2, - 11 / - 12
----
0
0

query I rowsort
SELECT - 75 * + 87
----
-6525

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT DISTINCT + + MIN( DISTINCT - 23 ) * + 89 * + 22 * 70 AS col2, + 33 AS col0
----
-3152380
33

skipif mysql # not compatible
query II rowsort label-7500
SELECT DISTINCT + + MIN ( DISTINCT - 23 ) * + 89 * + 22 * 70 AS col2, + 33 AS col0
----
-3152380
33

query I rowsort
SELECT - 21 * 8
----
-168

query I rowsort
SELECT ALL + 48 * + 40 * + + 82 AS col1
----
157440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7503
SELECT - COUNT( * ) - 62 * + CAST( + MAX( DISTINCT + 37 ) AS SIGNED ) AS col1, 4 + + NULLIF ( + 0, - 93 )
----
-2295
4

skipif mysql # not compatible
query II rowsort label-7503
SELECT - COUNT ( * ) - 62 * + CAST ( + MAX ( DISTINCT + 37 ) AS INTEGER ) AS col1, 4 + + NULLIF ( + 0, - 93 )
----
-2295
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT + SUM( 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7504
SELECT + SUM ( 93 ) AS col1
----
93

query I rowsort
SELECT DISTINCT + NULLIF ( 18, - 89 + + 21 )
----
18

query II rowsort
SELECT ALL + 7 col1, + 74 AS col0
----
7
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7507
SELECT + ( COUNT( * ) ) * - - 31 + 57 * - 13 + - 33 DIV + - 46
----
-710

skipif mysql # not compatible
query I rowsort label-7507
SELECT + ( COUNT ( * ) ) * - - 31 + 57 * - 13 + - 33 / + - 46
----
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT + ( + - 54 ) * NULLIF ( - MIN( - 39 ), - + 96 ) * 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7508
SELECT + ( + - 54 ) * NULLIF ( - MIN ( - 39 ), - + 96 ) * 0 AS col1
----
0

query I rowsort
SELECT - 55 + - + 8
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT ( + COALESCE ( - COUNT( * ), - 63 DIV 89, 26 + + 35, + 38 * - 53 ) ) * + + 17 * - ( 69 ) - - 40 * + 28 - 33 + 28 * + 38 * SUM( 55 )
----
60780

skipif mysql # not compatible
query I rowsort label-7510
SELECT ( + COALESCE ( - COUNT ( * ), - 63 / 89, 26 + + 35, + 38 * - 53 ) ) * + + 17 * - ( 69 ) - - 40 * + 28 - 33 + 28 * + 38 * SUM ( 55 )
----
60780

query I rowsort
SELECT NULLIF ( 66, + 8 * - 92 * + 19 * 63 * + 52 * 23 )
----
66

query I rowsort
SELECT ALL + ( + - 33 )
----
-33

query I rowsort
SELECT + ( - 82 ) * - 61 + 6 AS col2
----
5008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7514
SELECT + 45 * - CAST( NULL AS SIGNED ) + + CASE - ( 6 ) WHEN + 58 * - - NULLIF ( 89, + 96 ) * - 54 THEN NULL WHEN - + 65 THEN - - COUNT( * ) - + COUNT( * ) WHEN - + COUNT( * ) THEN 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT + 45 * - CAST ( NULL AS INTEGER ) + + CASE - ( 6 ) WHEN + 58 * - - NULLIF ( 89, + 96 ) * - 54 THEN NULL WHEN - + 65 THEN - - COUNT ( * ) - + COUNT ( * ) WHEN - + COUNT ( * ) THEN 23 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT + 19 * - CAST( + 83 AS SIGNED ) AS col1
----
-1577

skipif mysql # not compatible
query I rowsort label-7515
SELECT + 19 * - CAST ( + 83 AS INTEGER ) AS col1
----
-1577

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL 95 * - + 58 + - 20 + + 43 * - 78 / + 56 * - 50 + MIN( + 91 ) * CASE - 2 WHEN - 99 THEN + CASE + 76 WHEN - 34 THEN NULL WHEN + 82 THEN - 83 + COALESCE ( 56, - COALESCE ( - 0, 91 ) * - 10 ) ELSE + 86 END * 37 ELSE NULL END + NULLIF ( 22, 4 + - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL 95 * - + 58 + - 20 + + 43 * - 78 / + 56 * - 50 + MIN ( + 91 ) * CASE - 2 WHEN - 99 THEN + CASE + 76 WHEN - 34 THEN NULL WHEN + 82 THEN - 83 + COALESCE ( 56, - COALESCE ( - 0, 91 ) * - 10 ) ELSE + 86 END * 37 ELSE NULL END + NULLIF ( 22, 4 + - 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - SUM( DISTINCT - 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7517
SELECT - SUM ( DISTINCT - 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT MIN( + + 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7518
SELECT MIN ( + + 58 ) AS col1
----
58

query I rowsort
SELECT + 7 + + + 84 AS col1
----
91

query I rowsort
SELECT - - ( - 20 )
----
-20

query II rowsort
SELECT ALL - 41 AS col0, NULLIF ( + - 27, 29 ) * - - 22 * 73
----
-41
-43362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT + 21 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT + 21 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 91 * - 95
----
-8645

query II rowsort
SELECT ALL + 87 AS col0, 17 + 58 AS col0
----
87
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7525
SELECT ALL NULLIF ( - - 84, COUNT( * ) ) + + CAST( - 63 AS SIGNED ) + - - 34 * 69
----
2367

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL NULLIF ( - - 84, COUNT ( * ) ) + + CAST ( - 63 AS INTEGER ) + - - 34 * 69
----
2367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT DISTINCT CAST( NULL AS SIGNED ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL - NULLIF ( 6, + AVG ( 1 ) * 79 ) + + 53 * - + 73 * + ( - - COUNT( * ) ) AS col0
----
-3875

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL - NULLIF ( 6, + AVG ( 1 ) * 79 ) + + 53 * - + 73 * + ( - - COUNT ( * ) ) AS col0
----
-3875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7528
SELECT DISTINCT + 26 DIV COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT + 26 / COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL SUM( + + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL SUM ( + + 50 )
----
50

query I rowsort
SELECT DISTINCT ( + 80 ) + 87 + - - 7 + 60 * 58 * - - 15
----
52374

query I rowsort
SELECT DISTINCT + 45 * + 85 AS col1
----
3825

query I rowsort
SELECT + - 82 + + 87
----
5

query I rowsort
SELECT ALL + 76 - - - 44 * + - 98 AS col1
----
4388

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT + COUNT( * ) * + 80 * - 76 AS col2
----
-6080

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT + COUNT ( * ) * + 80 * - 76 AS col2
----
-6080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7535
SELECT - + COALESCE ( - CAST( NULLIF ( + COUNT( * ), - - 58 * - 26 + - 76 ) AS SIGNED ), + 72 ) + 18 col1
----
19

skipif mysql # not compatible
query I rowsort label-7535
SELECT - + COALESCE ( - CAST ( NULLIF ( + COUNT ( * ), - - 58 * - 26 + - 76 ) AS INTEGER ), + 72 ) + 18 col1
----
19

query I rowsort
SELECT + 37 + + 13 + 71 - + 22 * + + 59 * + + ( - ( + 78 ) ) AS col2
----
101365

query I rowsort
SELECT DISTINCT 76 * - + 4
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT - 20 + - - 24 + - - MAX( - - 98 ) - + 82 + - COUNT( * ) * - 95 - + - 8 / + + MAX( DISTINCT - 51 ) * - + CASE - - 11 WHEN COUNT( * ) THEN + COUNT( * ) + - 33 + - 11 * 7 WHEN 4 THEN NULL END * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT - 20 + - - 24 + - - MAX ( - - 98 ) - + 82 + - COUNT ( * ) * - 95 - + - 8 / + + MAX ( DISTINCT - 51 ) * - + CASE - - 11 WHEN COUNT ( * ) THEN + COUNT ( * ) + - 33 + - 11 * 7 WHEN 4 THEN NULL END * 35
----
NULL

query I rowsort
SELECT ALL 34 * - 8 + - 84
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT DISTINCT + NULLIF ( 76, + 20 + - 35 ) * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT + NULLIF ( 76, + 20 + - 35 ) * + COUNT ( * )
----
76

query I rowsort
SELECT - + 55 + - + ( - 69 )
----
14

query I rowsort
SELECT ALL - 71 * + 48 * 42 AS col1
----
-143136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7543
SELECT + CAST( 36 AS SIGNED ) / + - 67 + - 32 + 82 - COUNT( * ) * + SUM( - 54 ) - AVG ( 83 ) * + CAST( NULL AS DECIMAL ) / 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT + CAST ( 36 AS INTEGER ) / + - 67 + - 32 + 82 - COUNT ( * ) * + SUM ( - 54 ) - AVG ( 83 ) * + CAST ( NULL AS REAL ) / 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7544
SELECT ALL + COUNT( * ) AS col0, - ( - 22 ) * - - ( 21 ) + 80 col1
----
1
542

skipif mysql # not compatible
query II rowsort label-7544
SELECT ALL + COUNT ( * ) AS col0, - ( - 22 ) * - - ( 21 ) + 80 col1
----
1
542

query I rowsort
SELECT - 67 * 2
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7546
SELECT CAST( - + 97 AS SIGNED ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-7546
SELECT CAST ( - + 97 AS INTEGER ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7547
SELECT CAST( NULL AS SIGNED ) AS col2, + 88 + - 0 + - - COUNT( * ) + + COUNT( * ) + + - 7
----
NULL
83

skipif mysql # not compatible
query II rowsort label-7547
SELECT CAST ( NULL AS INTEGER ) AS col2, + 88 + - 0 + - - COUNT ( * ) + + COUNT ( * ) + + - 7
----
NULL
83

query I rowsort
SELECT ALL - 72 * + CASE 24 WHEN - 18 * - 87 THEN NULL WHEN - + 4 THEN + 5 ELSE 10 * + 30 END
----
-21600

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL + NULLIF ( - - 26, - + MIN( + + 83 ) + NULLIF ( + - 85, - + 66 + CASE + 65 WHEN + + 60 * + 37 - - COALESCE ( 18, - + COALESCE ( 97, - 18 * 41 ) / - 89 ) + + COUNT( * ) * - 92 THEN 2 * 77 + COUNT( * ) WHEN + 20 + - 33 THEN + 67 END ) + 75 / 26 )
----
26

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL + NULLIF ( - - 26, - + MIN ( + + 83 ) + NULLIF ( + - 85, - + 66 + CASE + 65 WHEN + + 60 * + 37 - - COALESCE ( 18, - + COALESCE ( 97, - 18 * 41 ) / - 89 ) + + COUNT ( * ) * - 92 THEN 2 * 77 + COUNT ( * ) WHEN + 20 + - 33 THEN + 67 END ) + 75 / 26 )
----
26

query I rowsort
SELECT 71 * + 82 AS col1
----
5822

query I rowsort
SELECT ALL - 81 + + 50 + + 76 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7552
SELECT ALL + 81 + - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL + 81 + - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL + 9 * + 65 * 69 * 33 col1
----
1332045

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT - 54 + 10 * + MAX( ALL - 21 ) AS col1
----
-264

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT - 54 + 10 * + MAX ( ALL - 21 ) AS col1
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT DISTINCT + 0 + + - COUNT( * ) + 74 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT + 0 + + - COUNT ( * ) + 74 AS col2
----
73

query I rowsort
SELECT 3 + - 60
----
-57

query I rowsort
SELECT 83 * - 98
----
-8134

onlyif mysql # aggregate syntax: 
query II rowsort label-7558
SELECT 28 col2, COUNT( * )
----
28
1

skipif mysql # not compatible
query II rowsort label-7558
SELECT 28 col2, COUNT ( * )
----
28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL - COALESCE ( ( + ( + 24 ) ), - 18, - 60 - + COUNT( * ) - - 16 * 56 * - 77 ) + - - 14 + - 52 * - 20
----
1030

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - COALESCE ( ( + ( + 24 ) ), - 18, - 60 - + COUNT ( * ) - - 16 * 56 * - 77 ) + - - 14 + - 52 * - 20
----
1030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7560
SELECT ALL 73 AS col0, + SUM( DISTINCT + 6 ) * - - CAST( NULL AS SIGNED ) + - 87 * + 70
----
73
NULL

skipif mysql # not compatible
query II rowsort label-7560
SELECT ALL 73 AS col0, + SUM ( DISTINCT + 6 ) * - - CAST ( NULL AS INTEGER ) + - 87 * + 70
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL - COUNT( * ) - - 87
----
86

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL - COUNT ( * ) - - 87
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT ALL - 97 * CASE - + ( 60 ) WHEN + - 80 THEN + CAST( NULL AS SIGNED ) + + 34 END / + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL - 97 * CASE - + ( 60 ) WHEN + - 80 THEN + CAST ( NULL AS INTEGER ) + + 34 END / + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL - + 91 - + + ( + 96 ) - COALESCE ( - + 55, - COUNT( * ) )
----
-132

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL - + 91 - + + ( + 96 ) - COALESCE ( - + 55, - COUNT ( * ) )
----
-132

query I rowsort
SELECT 55 - + 35 + + 68
----
88

query I rowsort
SELECT - 12 * 51 * + 36
----
-22032

query II rowsort
SELECT - - 14 AS col2, 46 + 59
----
14
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7567
SELECT COUNT( * ) DIV - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7567
SELECT COUNT ( * ) / - - COUNT ( * ) col1
----
1

query II rowsort
SELECT + 96 col1, - 84
----
96
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT MIN( ALL - 64 ) * 82
----
-5248

skipif mysql # not compatible
query I rowsort label-7569
SELECT MIN ( ALL - 64 ) * 82
----
-5248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7570
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) DIV + - 14 * + + 69 + 57 * 88 * + 83 * - + 2
----
-832656

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) / + - 14 * + + 69 + 57 * 88 * + 83 * - + 2
----
-832656

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT 24 DIV + 16
----
1

skipif mysql # not compatible
query I rowsort label-7571
SELECT 24 / + 16
----
1

query II rowsort
SELECT DISTINCT - 68, 98 col1
----
-68
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT ALL 54 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL 54 / 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7574
SELECT 4 DIV 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7574
SELECT 4 / 12 AS col1
----
0

query I rowsort
SELECT 43 + 65 + 71 * + + 93 AS col1
----
6711

query II rowsort
SELECT DISTINCT 15 * 80 AS col0, + 0 * + 62 AS col1
----
1200
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT SUM( 97 ) + - 74 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7577
SELECT SUM ( 97 ) + - 74 AS col2
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7578
SELECT 62 + - 14 AS col2, 1 * + + CAST( NULL AS DECIMAL ) col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-7578
SELECT 62 + - 14 AS col2, 1 * + + CAST ( NULL AS REAL ) col1
----
48
NULL

query I rowsort
SELECT 68 * - + 72 * 94
----
-460224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7580
SELECT + 51 * 10 * 7 * MAX( ALL - 27 ) + 55 + CAST( NULL AS SIGNED ) + - ( + 77 ) + - 63 AS col1, 70 * + 84 col2
----
NULL
5880

skipif mysql # not compatible
query II rowsort label-7580
SELECT + 51 * 10 * 7 * MAX ( ALL - 27 ) + 55 + CAST ( NULL AS INTEGER ) + - ( + 77 ) + - 63 AS col1, 70 * + 84 col2
----
NULL
5880

query I rowsort
SELECT ALL + 13 + - 99 * - 92 AS col1
----
9121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7582
SELECT DISTINCT 90 + + 28, 69 * - CAST( NULL AS SIGNED ) + - - 95 + - 24 + - + 81 * + + 93 + + - 69 * - 56 AS col0
----
118
NULL

skipif mysql # not compatible
query II rowsort label-7582
SELECT DISTINCT 90 + + 28, 69 * - CAST ( NULL AS INTEGER ) + - - 95 + - 24 + - + 81 * + + 93 + + - 69 * - 56 AS col0
----
118
NULL

query I rowsort
SELECT DISTINCT 49 + - + 73 - - + 29 + + 24
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7584
SELECT ALL - 41 DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL - 41 / + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT DISTINCT + NULLIF ( + 42, NULLIF ( 39, 42 * 82 - - - 2 * + - 8 + - COUNT( * ) ) ) - + + 19 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT + NULLIF ( + 42, NULLIF ( 39, 42 * 82 - - - 2 * + - 8 + - COUNT ( * ) ) ) - + + 19 AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT + COUNT( * ) * 38 AS col2, + 61
----
38
61

skipif mysql # not compatible
query II rowsort label-7586
SELECT + COUNT ( * ) * 38 AS col2, + 61
----
38
61

query I rowsort
SELECT DISTINCT + 9 - + - 59 * - 74 * 25
----
-109141

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + MAX( ALL + ( - 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-7588
SELECT + MAX ( ALL + ( - 35 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT 70 + - 76 + - - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7589
SELECT 70 + - 76 + - - COUNT ( * )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT - 80 * + - CAST( 5 AS SIGNED ) AS col1
----
400

skipif mysql # not compatible
query I rowsort label-7590
SELECT - 80 * + - CAST ( 5 AS INTEGER ) AS col1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - MIN( DISTINCT - - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - MIN ( DISTINCT - - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT + SUM( DISTINCT - ( + 47 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-7592
SELECT + SUM ( DISTINCT - ( + 47 ) )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT 62 + - CAST( + + 47 AS SIGNED ) + 55 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7593
SELECT 62 + - CAST ( + + 47 AS INTEGER ) + 55 AS col2
----
70

query I rowsort
SELECT ALL + NULLIF ( 41, + 39 ) * + + 33 * - 64
----
-86592

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT + 46 * + ( 36 ) * + + COUNT( * ) AS col2
----
1656

skipif mysql # not compatible
query I rowsort label-7595
SELECT + 46 * + ( 36 ) * + + COUNT ( * ) AS col2
----
1656

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT 39 + - - 31 AS col2, - MIN( - NULLIF ( - 9, + 48 ) ) * - + 11 * 69 col2
----
70
6831

skipif mysql # not compatible
query II rowsort label-7596
SELECT 39 + - - 31 AS col2, - MIN ( - NULLIF ( - 9, + 48 ) ) * - + 11 * 69 col2
----
70
6831

query I rowsort
SELECT DISTINCT 95 * + 81
----
7695

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT - - COUNT( * ) * 74 col2
----
74

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT - - COUNT ( * ) * 74 col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL - - COUNT( * ) * 61
----
61

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL - - COUNT ( * ) * 61
----
61

query I rowsort
SELECT DISTINCT ( - + 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7601
SELECT ALL 74 + - - 10 + + 43 AS col1, - COUNT( * ) AS col2
----
127
-1

skipif mysql # not compatible
query II rowsort label-7601
SELECT ALL 74 + - - 10 + + 43 AS col1, - COUNT ( * ) AS col2
----
127
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7602
SELECT 37, 20 + + CAST( NULL AS SIGNED ) AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-7602
SELECT 37, 20 + + CAST ( NULL AS INTEGER ) AS col1
----
37
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7603
SELECT 88 + COUNT( * ) * + COALESCE ( + CAST( + 5 AS SIGNED ), + - 81 ) * 87 + - COUNT( * ) DIV 39 * 54
----
523

skipif mysql # not compatible
query I rowsort label-7603
SELECT 88 + COUNT ( * ) * + COALESCE ( + CAST ( + 5 AS INTEGER ), + - 81 ) * 87 + - COUNT ( * ) / 39 * 54
----
523

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT ALL 50 + COALESCE ( - - 98, - 88 ) + - - COUNT( * ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL 50 + COALESCE ( - - 98, - 88 ) + - - COUNT ( * ) AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT + ( - NULLIF ( - + 82, - + 73 + - 38 + - + 94 + + 35 + - + 53 ) ) + + SUM( ALL 54 )
----
136

skipif mysql # not compatible
query I rowsort label-7605
SELECT + ( - NULLIF ( - + 82, - + 73 + - 38 + - + 94 + + 35 + - + 53 ) ) + + SUM ( ALL 54 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT DISTINCT + 72 + - - 54 + - 12 - 6 + 25 * COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT + 72 + - - 54 + - 12 - 6 + 25 * COUNT ( * )
----
133

query I rowsort
SELECT ALL 44 + - 26 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7608
SELECT DISTINCT COUNT( * ) DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT COUNT ( * ) / - 54
----
0

query I rowsort
SELECT DISTINCT 61 + + 28 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT DISTINCT - 99 + + - 11 + + ( + 62 ) - - 2 * - - COUNT( ALL + 88 ) + SUM( - 35 ) + + MAX( + - 2 ) - + + 73 + + - 1 - + - 58 + + 60 * ( + 33 ) * - 94 * 59 AS col2
----
-10981179

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT - 99 + + - 11 + + ( + 62 ) - - 2 * - - COUNT ( ALL + 88 ) + SUM ( - 35 ) + + MAX ( + - 2 ) - + + 73 + + - 1 - + - 58 + + 60 * ( + 33 ) * - 94 * 59 AS col2
----
-10981179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7611
SELECT ALL COUNT( * ) * CAST( - 37 AS SIGNED ), 11 * - 84 * + + ( + ( + COUNT( * ) ) ) * - 43 AS col1
----
-37
39732

skipif mysql # not compatible
query II rowsort label-7611
SELECT ALL COUNT ( * ) * CAST ( - 37 AS INTEGER ), 11 * - 84 * + + ( + ( + COUNT ( * ) ) ) * - 43 AS col1
----
-37
39732

query I rowsort
SELECT DISTINCT 67 * + 96 AS col2
----
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT COALESCE ( - - 10, - - MAX( ALL + - 84 ) + - 90, - 99 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7613
SELECT COALESCE ( - - 10, - - MAX ( ALL + - 84 ) + - 90, - 99 ) AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7614
SELECT + ( + + 32 ) * NULLIF ( - ( CAST( NULL AS DECIMAL ) ), + CASE - + 22 WHEN - 17 THEN - ( + + 45 ) + - - 21 WHEN - 86 - - - 16 * + 75 THEN + 89 * - COUNT( * ) * - 50 + 3 * 87 WHEN 88 - 80 THEN NULL END * - 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT + ( + + 32 ) * NULLIF ( - ( CAST ( NULL AS REAL ) ), + CASE - + 22 WHEN - 17 THEN - ( + + 45 ) + - - 21 WHEN - 86 - - - 16 * + 75 THEN + 89 * - COUNT ( * ) * - 50 + 3 * 87 WHEN 88 - 80 THEN NULL END * - 95 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL + COUNT( * ) * - 15 + + 49 + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL + COUNT ( * ) * - 15 + + 49 + COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + COUNT( + 97 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7616
SELECT + COUNT ( + 97 ) AS col2
----
1

query I rowsort
SELECT ALL 83 * 96 - + 45 col2
----
7923

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL + MIN( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL + MIN ( DISTINCT + 22 )
----
22

query I rowsort
SELECT ALL - 62 * - 47 - ( + 13 ) col1
----
2901

query I rowsort
SELECT ALL 42 * 36
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7621
SELECT DISTINCT + - COALESCE ( - - 81, 34 ) * 44 - - 86 - - 59 DIV + 54 - + COUNT( * )
----
-3478

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT + - COALESCE ( - - 81, 34 ) * 44 - - 86 - - 59 / + 54 - + COUNT ( * )
----
-3478

query I rowsort
SELECT + + 44 + + 84
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7623
SELECT + + MIN( ALL NULLIF ( + 41, - 9 ) ) * - CAST( 18 AS SIGNED ), 62 * - - 23 + - - 29 AS col2
----
-738
1455

skipif mysql # not compatible
query II rowsort label-7623
SELECT + + MIN ( ALL NULLIF ( + 41, - 9 ) ) * - CAST ( 18 AS INTEGER ), 62 * - - 23 + - - 29 AS col2
----
-738
1455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7624
SELECT DISTINCT COUNT( * ) DIV - 51 + - 56 + - 3 * + 41 + 94
----
-85

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT COUNT ( * ) / - 51 + - 56 + - 3 * + 41 + 94
----
-85

query I rowsort
SELECT DISTINCT + - 74 * - - CASE + - 63 WHEN - 51 * 20 * + 15 + - + 87 THEN - AVG ( - - COALESCE ( - 21, + + 73 ) ) ELSE NULL END * + + 45 * + - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT - - ( + - COUNT( * ) ) * - 45 col1
----
45

skipif mysql # not compatible
query I rowsort label-7626
SELECT - - ( + - COUNT ( * ) ) * - 45 col1
----
45

query I rowsort
SELECT + 3 * 98 AS col0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT + 32 * - 99 * 31 * - CASE - ( - 24 ) WHEN 75 THEN - - 19 * + + SUM( + 92 ) WHEN + - ( + - 93 ) THEN - 6 - - 28 * - - 21 WHEN + - 31 * - + 58 THEN NULL ELSE NULL END + + - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT + 32 * - 99 * 31 * - CASE - ( - 24 ) WHEN 75 THEN - - 19 * + + SUM ( + 92 ) WHEN + - ( + - 93 ) THEN - 6 - - 28 * - - 21 WHEN + - 31 * - + 58 THEN NULL ELSE NULL END + + - 58 AS col0
----
NULL

query I rowsort
SELECT ALL + ( 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT ALL 20, 73 * + + COUNT( * ) * 23 AS col2
----
20
1679

skipif mysql # not compatible
query II rowsort label-7630
SELECT ALL 20, 73 * + + COUNT ( * ) * 23 AS col2
----
20
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL 0 * + COUNT( DISTINCT - + 3 ) - - - 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL 0 * + COUNT ( DISTINCT - + 3 ) - - - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7632
SELECT DISTINCT - NULLIF ( - 47, - 31 ) AS col0, - 4 - COUNT( DISTINCT + 12 ) col2
----
47
-5

skipif mysql # not compatible
query II rowsort label-7632
SELECT DISTINCT - NULLIF ( - 47, - 31 ) AS col0, - 4 - COUNT ( DISTINCT + 12 ) col2
----
47
-5

query I rowsort
SELECT DISTINCT + 37 * - 78 col1
----
-2886

query I rowsort
SELECT ALL - 73 + + 50 AS col1
----
-23

query II rowsort
SELECT - 15 AS col1, 77
----
-15
77

query I rowsort
SELECT + + 82 - + 27 AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT DISTINCT + MAX( - 68 ) DIV - - 89
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT + MAX ( - 68 ) / - - 89
----
0

query I rowsort
SELECT DISTINCT + 67 + - NULLIF ( + 29, - 39 ) + + 0 * + 25
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL - 13 + + MAX( DISTINCT - 89 )
----
-102

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL - 13 + + MAX ( DISTINCT - 89 )
----
-102

query II rowsort
SELECT ALL ( + 28 ) AS col2, 79 * 79
----
28
6241

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT - COUNT( * ) * + 96 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-7641
SELECT - COUNT ( * ) * + 96 AS col1
----
-96

query I rowsort
SELECT ALL - 22 + ( - 85 )
----
-107

query I rowsort
SELECT ALL 20 + 34 + + COALESCE ( + ( - - 86 ), - 97 * - - ( - 66 ) )
----
140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7644
SELECT ALL NULLIF ( + CASE + 86 WHEN + COUNT( + 68 ) THEN NULL WHEN 36 * CAST( NULL AS DECIMAL ) / COUNT( * ) THEN - 71 * ( 74 ) END, 7 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL NULLIF ( + CASE + 86 WHEN + COUNT ( + 68 ) THEN NULL WHEN 36 * CAST ( NULL AS REAL ) / COUNT ( * ) THEN - 71 * ( 74 ) END, 7 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7645
SELECT - ( + 32 ) * 85 + 89 AS col0, COALESCE ( - 91, - 60 DIV + + 10 ) col2
----
-2631
-91

skipif mysql # not compatible
query II rowsort label-7645
SELECT - ( + 32 ) * 85 + 89 AS col0, COALESCE ( - 91, - 60 / + + 10 ) col2
----
-2631
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT DISTINCT ( COUNT( 95 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT ( COUNT ( 95 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - 73 + - COUNT( ALL - 75 )
----
-74

skipif mysql # not compatible
query I rowsort label-7647
SELECT - 73 + - COUNT ( ALL - 75 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT - 68 - ( + COUNT( * ) ) + - 72 * - 8
----
507

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - 68 - ( + COUNT ( * ) ) + - 72 * - 8
----
507

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - COUNT( * ) + + 61 + + - 41
----
19

skipif mysql # not compatible
query I rowsort label-7649
SELECT - COUNT ( * ) + + 61 + + - 41
----
19

query I rowsort
SELECT DISTINCT + ( 45 ) col2
----
45

query I rowsort
SELECT + 36 * - + 72 * + - 49 AS col2
----
127008

onlyif mysql # DIV for integer division: 
query II rowsort label-7652
SELECT - + 4 DIV + 67 + + 97 + - 65 AS col1, + 85
----
32
85

skipif mysql # not compatible
query II rowsort label-7652
SELECT - + 4 / + 67 + + 97 + - 65 AS col1, + 85
----
32
85

query I rowsort
SELECT + + 98 * - + 27 * + - 14 AS col1
----
37044

query I rowsort
SELECT ALL 91 * + + 2
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7655
SELECT + - 23 * COUNT( * ) * COALESCE ( + 10, + 96 DIV + 73, - 29 * - - 55 - - 85 ) AS col2
----
-230

skipif mysql # not compatible
query I rowsort label-7655
SELECT + - 23 * COUNT ( * ) * COALESCE ( + 10, + 96 / + 73, - 29 * - - 55 - - 85 ) AS col2
----
-230

query I rowsort
SELECT + + 54 + - 80 AS col0
----
-26

query I rowsort
SELECT + - ( - ( ( - 76 ) ) ) + - COALESCE ( - 36, 33 ) AS col1
----
-40

query I rowsort
SELECT + 1 * - 69 AS col0
----
-69

query I rowsort
SELECT ALL 71 * - 87
----
-6177

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL + - COUNT( + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL + - COUNT ( + 46 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL COUNT( * ) * - 16 + + 93 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL COUNT ( * ) * - 16 + + 93 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT + - 71 - - 79 + + + 20 * + - ( COUNT( + 36 ) ) + 58
----
46

skipif mysql # not compatible
query I rowsort label-7662
SELECT + - 71 - - 79 + + + 20 * + - ( COUNT ( + 36 ) ) + 58
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7663
SELECT + + 38 + + - 14 - + 76 * CASE + 82 WHEN + - 95 THEN + 19 + - COALESCE ( COUNT( * ), - SUM( - - CAST( NULL AS SIGNED ) ) + 99 + - 67 * - 92 ) * 8 WHEN - - ( + 19 ) THEN + + 43 END * + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT + + 38 + + - 14 - + 76 * CASE + 82 WHEN + - 95 THEN + 19 + - COALESCE ( COUNT ( * ), - SUM ( - - CAST ( NULL AS INTEGER ) ) + 99 + - 67 * - 92 ) * 8 WHEN - - ( + 19 ) THEN + + 43 END * + - 20 AS col0
----
NULL

query II rowsort
SELECT + 90 + + 37 AS col0, + 48 + 54
----
127
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL - 45 * - 62 * - MIN( DISTINCT 53 ) + + COUNT( * ) AS col1
----
-147869

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL - 45 * - 62 * - MIN ( DISTINCT 53 ) + + COUNT ( * ) AS col1
----
-147869

query I rowsort
SELECT + 4 + + + 68 AS col1
----
72

query I rowsort
SELECT - 73 - 69
----
-142

query I rowsort
SELECT DISTINCT 43 * - 27 col0
----
-1161

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT 61 * 2 + 36 * + ( 81 ) + + COUNT( * )
----
3039

skipif mysql # not compatible
query I rowsort label-7669
SELECT 61 * 2 + 36 * + ( 81 ) + + COUNT ( * )
----
3039

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT ALL - - COUNT( * ) + - + 1 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - - COUNT ( * ) + - + 1 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL 39 + 1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT DISTINCT 97 + + MIN( - 13 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT 97 + + MIN ( - 13 ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7673
SELECT 87 + + - COALESCE ( - + ( - 1 ), + - 71, + - COALESCE ( + - COALESCE ( 19, MAX( ALL - + 20 ) ), 95, + 66 ) + - 44 + 24 DIV 58 ) + - - 62 - - 97 col0
----
245

skipif mysql # not compatible
query I rowsort label-7673
SELECT 87 + + - COALESCE ( - + ( - 1 ), + - 71, + - COALESCE ( + - COALESCE ( 19, MAX ( ALL - + 20 ) ), 95, + 66 ) + - 44 + 24 / 58 ) + - - 62 - - 97 col0
----
245

query I rowsort
SELECT ALL 91 * 64 AS col0
----
5824

query I rowsort
SELECT 97 + - - 38
----
135

query I rowsort
SELECT 68 * 73
----
4964

query II rowsort
SELECT 86 col0, - 0 + - 93 + 20
----
86
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL + AVG ( ALL - + 40 ) - + NULLIF ( + + COUNT( * ), + + 39 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + AVG ( ALL - + 40 ) - + NULLIF ( + + COUNT ( * ), + + 39 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ( - ( + ( CASE + ( + 84 ) WHEN + - 50 + SUM( 54 ) * + COUNT( * ) THEN NULL ELSE - COUNT( * ) * + 47 END ) ) ) * + 71 + - COUNT( * ) + + 71 * - 30 + + + 2 + - 51 - ( 38 ) * - 80 * + ( + 51 ) AS col2
----
156197

skipif mysql # not compatible
query I rowsort label-7679
SELECT ( - ( + ( CASE + ( + 84 ) WHEN + - 50 + SUM ( 54 ) * + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) * + 47 END ) ) ) * + 71 + - COUNT ( * ) + + 71 * - 30 + + + 2 + - 51 - ( 38 ) * - 80 * + ( + 51 ) AS col2
----
156197

query I rowsort
SELECT 16 + - - 43 AS col0
----
59

query II rowsort
SELECT - 22 AS col0, - 76 AS col1
----
-22
-76

query I rowsort
SELECT 22 + 95 AS col2
----
117

query II rowsort
SELECT ALL 24 col1, 8
----
24
8

query I rowsort
SELECT 2 * + + 98 * + + 13 * - 35 AS col1
----
-89180

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT DISTINCT + COUNT( * ) - 0
----
1

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT + COUNT ( * ) - 0
----
1

query I rowsort
SELECT ALL + 92 * - 78
----
-7176

query I rowsort
SELECT ALL + 19 * - 38
----
-722

query II rowsort
SELECT + 43, CASE 86 WHEN + 50 THEN 6 WHEN 41 THEN NULL END * + 88 - + 12 / - 29 - - 75 AS col2
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT DISTINCT + COUNT( * ) * - - 7
----
7

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + COUNT ( * ) * - - 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7690
SELECT ALL + CASE - + COALESCE ( - 13, + CAST( NULL AS SIGNED ) * - 52 ) WHEN 48 * COUNT( * ) THEN + CAST( - - CAST( NULL AS DECIMAL ) AS DECIMAL ) + COUNT( * ) END * - - COALESCE ( + - 85, 84 / + COUNT( * ) * - 54 + 45 + + AVG ( - - 20 ), + 29, 44 * ( 42 ) - - 24 ) / - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + CASE - + COALESCE ( - 13, + CAST ( NULL AS INTEGER ) * - 52 ) WHEN 48 * COUNT ( * ) THEN + CAST ( - - CAST ( NULL AS REAL ) AS REAL ) + COUNT ( * ) END * - - COALESCE ( + - 85, 84 / + COUNT ( * ) * - 54 + 45 + + AVG ( - - 20 ), + 29, 44 * ( 42 ) - - 24 ) / - 82
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7691
SELECT + + 91 col0, 2 * + 68 * 60 DIV 42 AS col2
----
91
194

skipif mysql # not compatible
query II rowsort label-7691
SELECT + + 91 col0, 2 * + 68 * 60 / 42 AS col2
----
91
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7692
SELECT ( - ( + 44 ) ) DIV + CAST( - 55 AS SIGNED ), COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7692
SELECT ( - ( + 44 ) ) / + CAST ( - 55 AS INTEGER ), COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT ALL - 86 + + 68 * - 29 AS col1
----
-2058

query I rowsort
SELECT DISTINCT - 81 + 69
----
-12

query I rowsort
SELECT ALL + 6 + - 12
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT ALL + 48 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + 48 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 67, - - 12 ) - + + 84 AS col0
----
-151

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT ALL - 37 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL - 37 / + 54
----
0

query I rowsort
SELECT DISTINCT + 79 + + + ( 85 ) - 24
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT ALL CAST( NULL AS SIGNED ) + + 74 + - 49 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL CAST ( NULL AS INTEGER ) + + 74 + - 49 * 66 AS col1
----
NULL

query I rowsort
SELECT ALL - 87 + 87 + - 81
----
-81

query II rowsort
SELECT + + 83, + ( - 44 ) AS col0
----
83
-44

query I rowsort
SELECT 86 + - 25 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL ( - + CASE + - COUNT( ALL + - 68 ) WHEN + 8 + + + 66 THEN NULL ELSE + COUNT( - - 89 ) + - + CASE + 14 WHEN 81 THEN - + 59 / - COUNT( * ) WHEN COALESCE ( + 58, 62 ) THEN MIN( ALL + - 99 ) * 24 + - ( + 52 ) ELSE NULL END END ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL ( - + CASE + - COUNT ( ALL + - 68 ) WHEN + 8 + + + 66 THEN NULL ELSE + COUNT ( - - 89 ) + - + CASE + 14 WHEN 81 THEN - + 59 / - COUNT ( * ) WHEN COALESCE ( + 58, 62 ) THEN MIN ( ALL + - 99 ) * 24 + - ( + 52 ) ELSE NULL END END ) * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT + SUM( - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7705
SELECT + SUM ( - 17 ) AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7706
SELECT ALL - COALESCE ( - 9, CAST( NULL AS SIGNED ) - - 17 * - - 78 DIV - COUNT( * ), + 52 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL - COALESCE ( - 9, CAST ( NULL AS INTEGER ) - - 17 * - - 78 / - COUNT ( * ), + 52 ) col2
----
9

query I rowsort
SELECT 87 * 41 AS col2
----
3567

query I rowsort
SELECT ALL 32 + + 89 AS col2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7709
SELECT 77 - 94 DIV + + MIN( DISTINCT - 75 ) AS col2, - 36 * - + 32 AS col2
----
78
1152

skipif mysql # not compatible
query II rowsort label-7709
SELECT 77 - 94 / + + MIN ( DISTINCT - 75 ) AS col2, - 36 * - + 32 AS col2
----
78
1152

query I rowsort
SELECT 13 * + - ( + 65 ) * + + 16 * + ( + 61 ) col1
----
-824720

query I rowsort
SELECT 25 * - 68 col0
----
-1700

query I rowsort
SELECT 3 * + - 12
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT DISTINCT 84 * + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT 84 * + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT 15 * - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7714
SELECT 15 * - + COUNT ( * )
----
-15

query II rowsort
SELECT ALL 31 AS col2, - 91 col1
----
31
-91

query I rowsort
SELECT ALL 19 * - 87
----
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ( COUNT( + - 38 ) ) + + 37 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7717
SELECT ( COUNT ( + - 38 ) ) + + 37 AS col0
----
38

query I rowsort
SELECT 37 * + 85
----
3145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7719
SELECT COUNT( * ) + CAST( - 33 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-7719
SELECT COUNT ( * ) + CAST ( - 33 AS INTEGER )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT 47 DIV + - 29 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7720
SELECT 47 / + - 29 AS col1
----
-1

query I rowsort
SELECT 50 * 89
----
4450

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT MIN( + - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-7722
SELECT MIN ( + - 12 )
----
-12

query I rowsort
SELECT ALL 54 * + 31 + + - 3 AS col0
----
1671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL - COALESCE ( + COUNT( * ), + 27 * + 67 * - + 28 + COALESCE ( + + ( + + 61 ), 24 + + - COALESCE ( - 63, + 57 + - + CASE - 12 WHEN + COUNT( * ) THEN NULL WHEN + + 80 THEN NULL ELSE 68 END, 59 ) ), 29, - 30 * - - ( - 63 ) + - CAST( NULL AS SIGNED ) ) * + 82 + - 57
----
-139

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL - COALESCE ( + COUNT ( * ), + 27 * + 67 * - + 28 + COALESCE ( + + ( + + 61 ), 24 + + - COALESCE ( - 63, + 57 + - + CASE - 12 WHEN + COUNT ( * ) THEN NULL WHEN + + 80 THEN NULL ELSE 68 END, 59 ) ), 29, - 30 * - - ( - 63 ) + - CAST ( NULL AS INTEGER ) ) * + 82 + - 57
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT + ( - 53 ) DIV + 92 + + - ( 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-7725
SELECT + ( - 53 ) / + 92 + + - ( 35 )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7726
SELECT ALL - 73 AS col0, + 22 DIV 97 + - COUNT( * )
----
-73
-1

skipif mysql # not compatible
query II rowsort label-7726
SELECT ALL - 73 AS col0, + 22 / 97 + - COUNT ( * )
----
-73
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7727
SELECT - CAST( NULL AS DECIMAL ) + - 9 * 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT - CAST ( NULL AS REAL ) + - 9 * 32 AS col2
----
NULL

query II rowsort
SELECT 32, - 55 AS col2
----
32
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + 9 * + 59 * - + 68 * - COUNT( * ) + 53 + ( - 89 ) AS col0
----
36072

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + 9 * + 59 * - + 68 * - COUNT ( * ) + 53 + ( - 89 ) AS col0
----
36072

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT DISTINCT - + ( - MAX( ALL + + 42 ) ) * + 25 AS col1
----
1050

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - + ( - MAX ( ALL + + 42 ) ) * + 25 AS col1
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT + - COALESCE ( 60, - ( - MIN( DISTINCT - + 42 ) ) * 72 ) * + 45 AS col0
----
-2700

skipif mysql # not compatible
query I rowsort label-7731
SELECT + - COALESCE ( 60, - ( - MIN ( DISTINCT - + 42 ) ) * 72 ) * + 45 AS col0
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL + - 6 * + COUNT( + - 17 ) * + COUNT( * ) * - + 74 - 5 + + 33
----
472

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + - 6 * + COUNT ( + - 17 ) * + COUNT ( * ) * - + 74 - 5 + + 33
----
472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT ALL COUNT( - 30 ) * MIN( DISTINCT - CAST( - - 28 AS SIGNED ) ) + - 29
----
-57

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL COUNT ( - 30 ) * MIN ( DISTINCT - CAST ( - - 28 AS INTEGER ) ) + - 29
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7734
SELECT - + 70 * + CAST( - CAST( + COALESCE ( - COUNT( ALL + - 44 ), - - 78, 89 / 59 + 77 * 23 - - - CAST( COUNT( * ) AS DECIMAL ) ) AS SIGNED ) AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7734
SELECT - + 70 * + CAST ( - CAST ( + COALESCE ( - COUNT ( ALL + - 44 ), - - 78, 89 / 59 + 77 * 23 - - - CAST ( COUNT ( * ) AS REAL ) ) AS INTEGER ) AS INTEGER ) AS col0
----
-70

query I rowsort
SELECT - 22 - + 93
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-7736
SELECT + + 24, COUNT( * ) col1
----
24
1

skipif mysql # not compatible
query II rowsort label-7736
SELECT + + 24, COUNT ( * ) col1
----
24
1

query I rowsort
SELECT ALL + - 96 col0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT + COUNT( * ) AS col1, 19 col1
----
1
19

skipif mysql # not compatible
query II rowsort label-7738
SELECT + COUNT ( * ) AS col1, 19 col1
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL - 54 - - 55 + 57 * + - MAX( - 34 ) AS col0
----
1939

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL - 54 - - 55 + 57 * + - MAX ( - 34 ) AS col0
----
1939

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL + MIN( - 97 ) * 15 AS col0
----
-1455

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL + MIN ( - 97 ) * 15 AS col0
----
-1455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7741
SELECT - CASE + COUNT( * ) WHEN 42 THEN + + 98 WHEN - 79 / CAST( + - 57 AS SIGNED ) + 83 THEN - 69 END + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7741
SELECT - CASE + COUNT ( * ) WHEN 42 THEN + + 98 WHEN - 79 / CAST ( + - 57 AS INTEGER ) + 83 THEN - 69 END + + 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT - 67 + - 74 DIV - 7 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7742
SELECT - 67 + - 74 / - 7 AS col0
----
-57

query I rowsort
SELECT DISTINCT 79 * 47
----
3713

query I rowsort
SELECT DISTINCT NULLIF ( + + 66, 14 )
----
66

query I rowsort
SELECT + 37 + + 56 AS col2
----
93

query I rowsort
SELECT DISTINCT - 19 * - 33 AS col2
----
627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7747
SELECT - SUM( + 11 ) * + CASE - - 74 WHEN 73 THEN NULL WHEN 87 * + + 14 THEN - CAST( + MIN( 11 ) AS DECIMAL ) ELSE NULL END AS col1, CAST( NULL AS SIGNED ) * + 12 / - + 76 + 48
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7747
SELECT - SUM ( + 11 ) * + CASE - - 74 WHEN 73 THEN NULL WHEN 87 * + + 14 THEN - CAST ( + MIN ( 11 ) AS REAL ) ELSE NULL END AS col1, CAST ( NULL AS INTEGER ) * + 12 / - + 76 + 48
----
NULL
NULL

query I rowsort
SELECT + 90 + - 61
----
29

query I rowsort
SELECT ALL ( + 71 ) + - - 57 + + 13
----
141

query II rowsort
SELECT + 42 * 44 * + + 17 AS col2, - 17
----
31416
-17

query I rowsort
SELECT + 54 * 20
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL MIN( ALL + - 88 ) * + ( - 84 )
----
7392

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL MIN ( ALL + - 88 ) * + ( - 84 )
----
7392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7753
SELECT - CASE - 7 WHEN + 24 + + CASE - 85 WHEN + 50 THEN NULL WHEN COUNT( * ) + + CAST( NULL AS SIGNED ) + - 20 * + 9 / - COUNT( * ) THEN + 90 + - 48 - - 32 / - + CAST( NULL AS SIGNED ) * + 93 * - CASE COUNT( * ) WHEN 81 + + + CAST( COUNT( * ) AS DECIMAL ) THEN NULL WHEN 36 - + 74 THEN NULL WHEN 71 THEN NULL WHEN COUNT( * ) THEN + 95 - 25 ELSE NULL END END THEN NULL WHEN - 95 THEN NULL WHEN 91 / CAST( NULL AS SIGNED ) THEN + 9 + 74 * CAST( NULL AS SIGNED ) ELSE - 40 + 98 END
----
-58

skipif mysql # not compatible
query I rowsort label-7753
SELECT - CASE - 7 WHEN + 24 + + CASE - 85 WHEN + 50 THEN NULL WHEN COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - 20 * + 9 / - COUNT ( * ) THEN + 90 + - 48 - - 32 / - + CAST ( NULL AS INTEGER ) * + 93 * - CASE COUNT ( * ) WHEN 81 + + + CAST ( COUNT ( * ) AS REAL ) THEN NULL WHEN 36 - + 74 THEN NULL WHEN 71 THEN NULL WHEN COUNT ( * ) THEN + 95 - 25 ELSE NULL END END THEN NULL WHEN - 95 THEN NULL WHEN 91 / CAST ( NULL AS INTEGER ) THEN + 9 + 74 * CAST ( NULL AS INTEGER ) ELSE - 40 + 98 END
----
-58

query I rowsort
SELECT ALL ( 19 ) + + 4 AS col0
----
23

query I rowsort
SELECT ALL 98 + - 67
----
31

query I rowsort
SELECT DISTINCT + NULLIF ( + 8, - 27 * - - 42 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT + 25 DIV 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7757
SELECT + 25 / 44 AS col0
----
0

query I rowsort
SELECT - 95 * + 17 * - 22
----
35530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7759
SELECT ALL + 62 DIV - 31 + + MAX( - ( + 6 ) ) + - 41
----
-49

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL + 62 / - 31 + + MAX ( - ( + 6 ) ) + - 41
----
-49

query I rowsort
SELECT - 8 * - 91 AS col0
----
728

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7761
SELECT + - COUNT( * ) - - 0, CAST( NULL AS DECIMAL ) - 10 / + 98 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7761
SELECT + - COUNT ( * ) - - 0, CAST ( NULL AS REAL ) - 10 / + 98 AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT + COUNT( * ) * + 52 - - 70 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-7762
SELECT + COUNT ( * ) * + 52 - - 70 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL COUNT( * ) * 70 + - 46 - + + 14 * - 36 + 78 + + SUM( ALL - - ( + - 14 ) ) * - - 95 * + + NULLIF ( + 17, + - 42 * - 28 + - 13 )
----
-22004

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL COUNT ( * ) * 70 + - 46 - + + 14 * - 36 + 78 + + SUM ( ALL - - ( + - 14 ) ) * - - 95 * + + NULLIF ( + 17, + - 42 * - 28 + - 13 )
----
-22004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7764
SELECT ALL 47 * + COUNT( * ) + 80 * - 78 - + - 12 + ( + + CAST( NULL AS SIGNED ) ) - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL 47 * + COUNT ( * ) + 80 * - 78 - + - 12 + ( + + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7765
SELECT + - 32 DIV 58 * 23 * - 81 + - NULLIF ( + 97, - CASE + 83 WHEN - NULLIF ( - + COALESCE ( + + 3, + COUNT( * ) DIV - CAST( NULL AS DECIMAL ) ), - + 16 * - 68 ) THEN - 8 END ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-7765
SELECT + - 32 / 58 * 23 * - 81 + - NULLIF ( + 97, - CASE + 83 WHEN - NULLIF ( - + COALESCE ( + + 3, + COUNT ( * ) / - CAST ( NULL AS REAL ) ), - + 16 * - 68 ) THEN - 8 END ) AS col2
----
-97

query II rowsort
SELECT - ( 97 ) - 68 col2, + 5 - - 1 + + 54 AS col1
----
-165
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7767
SELECT + + CASE 1 WHEN - 81 / - 21 * COUNT( * ) + - CAST( NULL AS SIGNED ) THEN NULL ELSE + - 70 + - 89 END, - 22 * + 54 * - 43 AS col0
----
-159
51084

skipif mysql # not compatible
query II rowsort label-7767
SELECT + + CASE 1 WHEN - 81 / - 21 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + - 70 + - 89 END, - 22 * + 54 * - 43 AS col0
----
-159
51084

query I rowsort
SELECT ALL - ( + 84 ) * + 88
----
-7392

query I rowsort
SELECT - 56 * + 28 AS col2
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT ALL + COUNT( 61 ) * + 88
----
88

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL + COUNT ( 61 ) * + 88
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT COALESCE ( + 95, - - 35 + CAST( NULL AS SIGNED ) )
----
95

skipif mysql # not compatible
query I rowsort label-7771
SELECT COALESCE ( + 95, - - 35 + CAST ( NULL AS INTEGER ) )
----
95

query I rowsort
SELECT - 14 * 63 + + - 69
----
-951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT NULLIF ( + 48, CASE - - ( 28 ) WHEN - 31 - + 82 + - 32 THEN NULL WHEN - 80 * + 95 THEN NULL WHEN - ( NULLIF ( + + 22, - - 14 + - NULLIF ( - 16, - + 48 ) ) ) THEN NULL ELSE + 26 END * 34 + - - COALESCE ( - - 40, - CAST( NULL AS SIGNED ) * - 53 + - 98 / 76, COUNT( * ) * 16 - 28 ) ) col1
----
48

skipif mysql # not compatible
query I rowsort label-7773
SELECT NULLIF ( + 48, CASE - - ( 28 ) WHEN - 31 - + 82 + - 32 THEN NULL WHEN - 80 * + 95 THEN NULL WHEN - ( NULLIF ( + + 22, - - 14 + - NULLIF ( - 16, - + 48 ) ) ) THEN NULL ELSE + 26 END * 34 + - - COALESCE ( - - 40, - CAST ( NULL AS INTEGER ) * - 53 + - 98 / 76, COUNT ( * ) * 16 - 28 ) ) col1
----
48

query I rowsort
SELECT NULLIF ( + 70, + 37 ) col1
----
70

query I rowsort
SELECT ALL + 5 * + - 56
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT ALL CAST( + AVG ( DISTINCT 48 ) AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL CAST ( + AVG ( DISTINCT 48 ) AS INTEGER )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT - ( - 20 ) * CASE - ( + 22 ) WHEN + COUNT( * ) THEN - + 30 ELSE + + 23 DIV 28 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7777
SELECT - ( - 20 ) * CASE - ( + 22 ) WHEN + COUNT ( * ) THEN - + 30 ELSE + + 23 / 28 END AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT ALL + ( + 72 ) DIV - 4
----
-18

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + ( + 72 ) / - 4
----
-18

query I rowsort
SELECT - NULLIF ( + 5, - 60 / + 55 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT - 78 - 73 * + 28 * - 69 - 55 * + COUNT( * )
----
140903

skipif mysql # not compatible
query I rowsort label-7780
SELECT - 78 - 73 * + 28 * - 69 - 55 * + COUNT ( * )
----
140903

query I rowsort
SELECT - 54 - + 70
----
-124

query I rowsort
SELECT - 30 * + 26 AS col2
----
-780

query I rowsort
SELECT ALL 42 + 40
----
82

query I rowsort
SELECT ALL 18 + - 82 * + + 21 * - 98 AS col2
----
168774

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT + COALESCE ( + - 87, ( + 69 ) + + COUNT( * ) ) - + 90
----
-177

skipif mysql # not compatible
query I rowsort label-7785
SELECT + COALESCE ( + - 87, ( + 69 ) + + COUNT ( * ) ) - + 90
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT ( + - NULLIF ( - 50, + 48 * + 80 * - COUNT( * ) / - + 85 + - COUNT( * ) * + 82 * - 32 + 88 ) )
----
50

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT ( + - NULLIF ( - 50, + 48 * + 80 * - COUNT ( * ) / - + 85 + - COUNT ( * ) * + 82 * - 32 + 88 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT - + 33 + - 18 * SUM( - - 85 )
----
-1563

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - + 33 + - 18 * SUM ( - - 85 )
----
-1563

query II rowsort
SELECT 80 AS col0, + 0 AS col0
----
80
0

query I rowsort
SELECT - 9 + - 67 col2
----
-76

query I rowsort
SELECT + - 55 - + 75 * - 67 AS col0
----
4970

query I rowsort
SELECT ALL - 49 + + 71 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT - + COUNT( ALL 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-7792
SELECT - + COUNT ( ALL 37 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT + COUNT( * ) + + 74 * 35 + MAX( ALL 72 ) + + 83 * - - 44 * + - MIN( 74 ) * - 89 AS col1
----
24054735

skipif mysql # not compatible
query I rowsort label-7793
SELECT + COUNT ( * ) + + 74 * 35 + MAX ( ALL 72 ) + + 83 * - - 44 * + - MIN ( 74 ) * - 89 AS col1
----
24054735

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7794
SELECT - CAST( NULL AS DECIMAL ) * + + CASE + COUNT( * ) WHEN - + 84 / + 15 * + - COUNT( * ) + + 8 - + COUNT( * ) + - MAX( DISTINCT - 30 ) / 12 * + ( ( - 10 ) ) THEN + 77 WHEN + ( 17 ) + + 33 THEN - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT - CAST ( NULL AS REAL ) * + + CASE + COUNT ( * ) WHEN - + 84 / + 15 * + - COUNT ( * ) + + 8 - + COUNT ( * ) + - MAX ( DISTINCT - 30 ) / 12 * + ( ( - 10 ) ) THEN + 77 WHEN + ( 17 ) + + 33 THEN - 17 END
----
NULL

query I rowsort
SELECT ALL ( - - 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL 98 * COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL 98 * COUNT ( * ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL COUNT( * ) - + 23 col1
----
-22

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL COUNT ( * ) - + 23 col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7798
SELECT DISTINCT CAST( - 69 AS SIGNED ) * - COUNT( * ) * + 53
----
3657

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT CAST ( - 69 AS INTEGER ) * - COUNT ( * ) * + 53
----
3657

query I rowsort
SELECT + 34 * - 80 AS col1
----
-2720

query I rowsort
SELECT DISTINCT 74 * 46
----
3404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) - COUNT( * ) + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) - COUNT ( * ) + 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT + - CAST( + 50 AS SIGNED ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7802
SELECT + - CAST ( + 50 AS INTEGER ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7803
SELECT ALL - - 1 AS col0, 42 * - COUNT( * ) + + 96 AS col0
----
1
54

skipif mysql # not compatible
query II rowsort label-7803
SELECT ALL - - 1 AS col0, 42 * - COUNT ( * ) + + 96 AS col0
----
1
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7804
SELECT + + CAST( NULL AS SIGNED ) * 62 + - - MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT + + CAST ( NULL AS INTEGER ) * 62 + - - MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7805
SELECT ALL - COUNT( ALL - 44 ) AS col1, 37 AS col1
----
-1
37

skipif mysql # not compatible
query II rowsort label-7805
SELECT ALL - COUNT ( ALL - 44 ) AS col1, 37 AS col1
----
-1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL - ( - - 71 ) + - COUNT( ALL + 94 ) * + 75 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - ( - - 71 ) + - COUNT ( ALL + 94 ) * + 75 AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT 41 * - - MIN( - 78 )
----
-3198

skipif mysql # not compatible
query I rowsort label-7807
SELECT 41 * - - MIN ( - 78 )
----
-3198

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7808
SELECT DISTINCT + CAST( - + 89 AS SIGNED ) * 85 DIV + 25 + 65 AS col0
----
-237

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + CAST ( - + 89 AS INTEGER ) * 85 / + 25 + 65 AS col0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL - COUNT( * ) + - MIN( ALL - 48 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL - COUNT ( * ) + - MIN ( ALL - 48 ) AS col1
----
47

query I rowsort
SELECT 31 + 5 AS col0
----
36

query I rowsort
SELECT ALL + 29 + + 7 AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT DISTINCT + COUNT( 24 ) * - COUNT( * ) * - - 92, - COUNT( * ) AS col1
----
-92
-1

skipif mysql # not compatible
query II rowsort label-7812
SELECT DISTINCT + COUNT ( 24 ) * - COUNT ( * ) * - - 92, - COUNT ( * ) AS col1
----
-92
-1

query I rowsort
SELECT ALL - 2 + + 69 + 67 col1
----
134

query I rowsort
SELECT 47 + + 46 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7815
SELECT ALL + 2 + + 56, - CAST( NULL AS SIGNED ) * COUNT( * ) * MIN( - 80 ) * - - 59 AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-7815
SELECT ALL + 2 + + 56, - CAST ( NULL AS INTEGER ) * COUNT ( * ) * MIN ( - 80 ) * - - 59 AS col1
----
58
NULL

query I rowsort
SELECT ALL + 30 + - + 49
----
-19

query I rowsort
SELECT 27 * - 15 AS col1
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ( + ( COUNT( * ) ) ) + + ( NULLIF ( + 90, + 24 ) )
----
91

skipif mysql # not compatible
query I rowsort label-7818
SELECT ( + ( COUNT ( * ) ) ) + + ( NULLIF ( + 90, + 24 ) )
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7819
SELECT 27 + - - 70 col0, - 78 + - COALESCE ( - CAST( - + 78 AS SIGNED ), - 29 * 60 DIV 70 + - - 90 ) + + 89 + + ( - 5 ) DIV + 57
----
97
-67

skipif mysql # not compatible
query II rowsort label-7819
SELECT 27 + - - 70 col0, - 78 + - COALESCE ( - CAST ( - + 78 AS INTEGER ), - 29 * 60 / 70 + - - 90 ) + + 89 + + ( - 5 ) / + 57
----
97
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT - 16 DIV - + 69 * - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT - 16 / - + 69 * - 95 AS col0
----
0

query I rowsort
SELECT 58 * + - 8
----
-464

query I rowsort
SELECT 60 * - ( - 37 )
----
2220

query I rowsort
SELECT ALL + 18 - + 32 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7824
SELECT DISTINCT - ( + 82 ) * + - 66 * 62 * + COUNT( ALL COALESCE ( - 26, - 40, - 9 ) ) col1, + 55 AS col0
----
335544
55

skipif mysql # not compatible
query II rowsort label-7824
SELECT DISTINCT - ( + 82 ) * + - 66 * 62 * + COUNT ( ALL COALESCE ( - 26, - 40, - 9 ) ) col1, + 55 AS col0
----
335544
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7825
SELECT ALL + CAST( NULL AS SIGNED ) - - + ( - 76 ) + 68 + - - ( - SUM( DISTINCT + ( - + 36 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL + CAST ( NULL AS INTEGER ) - - + ( - 76 ) + 68 + - - ( - SUM ( DISTINCT + ( - + 36 ) ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 * + + 22
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT + MIN( DISTINCT - + 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-7827
SELECT + MIN ( DISTINCT - + 90 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL + 68 * - + MIN( + - 11 ) * COUNT( * )
----
748

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL + 68 * - + MIN ( + - 11 ) * COUNT ( * )
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - CASE - ( MIN( + 97 ) ) WHEN + + AVG ( DISTINCT + 95 ) * + + COALESCE ( ( + 38 ), + MIN( 29 ), 99 / + 62 + + 22 + - 26 * 14 ) THEN NULL WHEN - - 86 + - 6 THEN NULL WHEN - MAX( - 24 ) THEN + COUNT( * ) ELSE + - 35 * + + 36 + COUNT( * ) END AS col1
----
1259

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - CASE - ( MIN ( + 97 ) ) WHEN + + AVG ( DISTINCT + 95 ) * + + COALESCE ( ( + 38 ), + MIN ( 29 ), 99 / + 62 + + 22 + - 26 * 14 ) THEN NULL WHEN - - 86 + - 6 THEN NULL WHEN - MAX ( - 24 ) THEN + COUNT ( * ) ELSE + - 35 * + + 36 + COUNT ( * ) END AS col1
----
1259

query I rowsort
SELECT - - ( + - 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT CASE - - NULLIF ( + + 0, + + ( - ( + - 72 ) ) ) WHEN - + COUNT( * ) + CASE + + COUNT( * ) WHEN 54 * + 98 / 27 + + 6 THEN NULL WHEN + 59 + + + 37 / + - 66 THEN + + 10 ELSE - CASE - 46 WHEN 8 THEN NULL WHEN - + 88 / + - 55 * + + 34 - + - 54 THEN 96 END / - 18 END + 45 * - 64 THEN 58 ELSE NULL END * 47 + 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT CASE - - NULLIF ( + + 0, + + ( - ( + - 72 ) ) ) WHEN - + COUNT ( * ) + CASE + + COUNT ( * ) WHEN 54 * + 98 / 27 + + 6 THEN NULL WHEN + 59 + + + 37 / + - 66 THEN + + 10 ELSE - CASE - 46 WHEN 8 THEN NULL WHEN - + 88 / + - 55 * + + 34 - + - 54 THEN 96 END / - 18 END + 45 * - 64 THEN 58 ELSE NULL END * 47 + 62 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL - - COUNT( DISTINCT - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL - - COUNT ( DISTINCT - 25 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7833
SELECT - 80 * + + 92 - COUNT( * ) + + 95, 44 * - ( + 44 ) AS col2
----
-7266
-1936

skipif mysql # not compatible
query II rowsort label-7833
SELECT - 80 * + + 92 - COUNT ( * ) + + 95, 44 * - ( + 44 ) AS col2
----
-7266
-1936

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT + + CASE 10 WHEN - + 57 * - 4 + 0 + + 52 * + 47 * 78 THEN NULL WHEN COUNT( * ) THEN 83 END * + - 19 * + 47 - 25 - + 33 * - MIN( + 2 ) * - ( - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT + + CASE 10 WHEN - + 57 * - 4 + 0 + + 52 * + 47 * 78 THEN NULL WHEN COUNT ( * ) THEN 83 END * + - 19 * + 47 - 25 - + 33 * - MIN ( + 2 ) * - ( - 89 )
----
NULL

query I rowsort
SELECT DISTINCT - 19 * + 63 col0
----
-1197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT DISTINCT 73 * - CAST( - - 74 AS SIGNED )
----
-5402

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT 73 * - CAST ( - - 74 AS INTEGER )
----
-5402

query I rowsort
SELECT DISTINCT 85 + + 78 * - 61
----
-4673

query I rowsort
SELECT ALL 8 + - 17 AS col0
----
-9

query I rowsort
SELECT 22 + + 60
----
82

query I rowsort
SELECT DISTINCT 20 + 90 + - ( + - 20 ) AS col0
----
130

query II rowsort
SELECT ALL - 60 AS col1, + 76
----
-60
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT COALESCE ( + - 34, + 34, + 28 ) + + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-7842
SELECT COALESCE ( + - 34, + 34, + 28 ) + + + COUNT ( * )
----
-33

query II rowsort
SELECT DISTINCT - 73, + 89 + + 56 AS col0
----
-73
145

query I rowsort
SELECT ALL 72 + 60
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7845
SELECT 12 * + + ( + 35 ) * + CASE + CAST( + 10 AS SIGNED ) WHEN 57 THEN + 92 * - 60 / 82 ELSE NULL END * - 57 * + 78 / - 98 + + COALESCE ( + COUNT( * ), - - CAST( MAX( 26 ) AS DECIMAL ) * CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT 12 * + + ( + 35 ) * + CASE + CAST ( + 10 AS INTEGER ) WHEN 57 THEN + 92 * - 60 / 82 ELSE NULL END * - 57 * + 78 / - 98 + + COALESCE ( + COUNT ( * ), - - CAST ( MAX ( 26 ) AS REAL ) * CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + ( - 82 ) * 92 + - 8 + - + 1
----
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT DISTINCT - SUM( DISTINCT + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT - SUM ( DISTINCT + 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT 71 + + 60 - COUNT( * ) - + 0 + - COUNT( * ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT 71 + + 60 - COUNT ( * ) - + 0 + - COUNT ( * ) AS col1
----
129

query I rowsort
SELECT DISTINCT + 25 * + 96 AS col2
----
2400

onlyif mysql # aggregate syntax: 
query II rowsort label-7850
SELECT ALL COUNT( * ), COUNT( * ) + + - 2 col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-7850
SELECT ALL COUNT ( * ), COUNT ( * ) + + - 2 col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - MAX( ALL + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-7851
SELECT - MAX ( ALL + 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT + COUNT( + 93 ) - - COUNT( * ) + - 25 * + 39 AS col2
----
-973

skipif mysql # not compatible
query I rowsort label-7852
SELECT + COUNT ( + 93 ) - - COUNT ( * ) + - 25 * + 39 AS col2
----
-973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT + CAST( NULL AS SIGNED ) - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT + CAST ( NULL AS INTEGER ) - 3
----
NULL

query I rowsort
SELECT + - 53 + 58
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT ALL - - 3 * 23 DIV - 68
----
-1

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - - 3 * 23 / - 68
----
-1

query I rowsort
SELECT - - 3 * + 42
----
126

query I rowsort
SELECT ALL + 97 * 86 AS col2
----
8342

onlyif mysql # DIV for integer division: 
query I rowsort label-7858
SELECT - - ( - + 91 ) DIV 1 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7858
SELECT - - ( - + 91 ) / 1 AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT ALL - 15 DIV 83 - - + 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL - 15 / 83 - - + 4 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7860
SELECT ALL - + ( + 79 ) + + 72, + 27 * - CAST( NULL AS SIGNED ) * 6 + - 86 AS col1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-7860
SELECT ALL - + ( + 79 ) + + 72, + 27 * - CAST ( NULL AS INTEGER ) * 6 + - 86 AS col1
----
-7
NULL

query I rowsort
SELECT ALL - 65 * 49 + - + 5 * + 27 * - ( - ( - 73 ) )
----
6670

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL - 69 * + 61 + COUNT( * )
----
-4208

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL - 69 * + 61 + COUNT ( * )
----
-4208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7863
SELECT ALL - 5 * 5 * CAST( - - CAST( - SUM( ALL + 0 ) AS DECIMAL ) AS SIGNED ) + + 11 + + - 75 + - - 29
----
-35

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - 5 * 5 * CAST ( - - CAST ( - SUM ( ALL + 0 ) AS REAL ) AS INTEGER ) + + 11 + + - 75 + - - 29
----
-35

query I rowsort
SELECT DISTINCT + 91 * 76 col0
----
6916

query I rowsort
SELECT NULLIF ( - 6, + - 86 )
----
-6

query I rowsort
SELECT + 91 * 31
----
2821

query I rowsort
SELECT + 49 + + 24 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT CASE 42 WHEN - + 29 THEN - COUNT( * ) / + 68 + + 69 WHEN - 56 + - - 21 THEN NULL WHEN NULLIF ( - COUNT( * ), - 58 ) + - 98 THEN + 17 ELSE NULLIF ( - + 94, + 17 / + ( - - 34 ) + + 52 + + CAST( - - ( - + COUNT( * ) ) AS SIGNED ) - - 58 ) END
----
-94

skipif mysql # not compatible
query I rowsort label-7868
SELECT CASE 42 WHEN - + 29 THEN - COUNT ( * ) / + 68 + + 69 WHEN - 56 + - - 21 THEN NULL WHEN NULLIF ( - COUNT ( * ), - 58 ) + - 98 THEN + 17 ELSE NULLIF ( - + 94, + 17 / + ( - - 34 ) + + 52 + + CAST ( - - ( - + COUNT ( * ) ) AS INTEGER ) - - 58 ) END
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT ALL + 83 * NULLIF ( + CAST( NULL AS SIGNED ), - 78 ) + + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + 83 * NULLIF ( + CAST ( NULL AS INTEGER ), - 78 ) + + - 95
----
NULL

query I rowsort
SELECT + COALESCE ( 16, + 20 * - 37 * - - 2, - 45, NULLIF ( 84, + - 12 * + COALESCE ( + 55, - ( - + 35 ) ) - 96 * 65 / + 48 ) )
----
16

query I rowsort
SELECT 1 * - 66 + - + 97
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT COALESCE ( COUNT( * ), 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7872
SELECT COALESCE ( COUNT ( * ), 78 ) AS col2
----
1

query I rowsort
SELECT - 31 + + 25 + - - 84 * NULLIF ( + + 32, + 90 / 93 ) col1
----
2682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7874
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - 19 / + - MIN( DISTINCT - COALESCE ( 56, - 75 ) ) - + 47 - CAST( NULL AS SIGNED ) + + + 18 * - + ( COUNT( * ) ) * - 0 THEN + NULLIF ( + CAST( + ( - COUNT( * ) ) AS SIGNED ), - 11 ) * - COUNT( * ) * 9 + + 97 * 93 + - 73 * + - 6 WHEN + 62 - + 89 + 58 * + 96 THEN - 97 ELSE + 95 + + 16 END
----
111

skipif mysql # not compatible
query I rowsort label-7874
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - 19 / + - MIN ( DISTINCT - COALESCE ( 56, - 75 ) ) - + 47 - CAST ( NULL AS INTEGER ) + + + 18 * - + ( COUNT ( * ) ) * - 0 THEN + NULLIF ( + CAST ( + ( - COUNT ( * ) ) AS INTEGER ), - 11 ) * - COUNT ( * ) * 9 + + 97 * 93 + - 73 * + - 6 WHEN + 62 - + 89 + 58 * + 96 THEN - 97 ELSE + 95 + + 16 END
----
111

query I rowsort
SELECT + 25 - - + 70 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + 37 * ( + 35 ) + - 87 * + ( - ( + + COUNT( * ) ) )
----
1382

skipif mysql # not compatible
query I rowsort label-7876
SELECT + 37 * ( + 35 ) + - 87 * + ( - ( + + COUNT ( * ) ) )
----
1382

query I rowsort
SELECT + 60 * + 73
----
4380

onlyif mysql # aggregate syntax: 
query II rowsort label-7878
SELECT DISTINCT + 98, COUNT( * ) - 64 + - 81 AS col1
----
98
-144

skipif mysql # not compatible
query II rowsort label-7878
SELECT DISTINCT + 98, COUNT ( * ) - 64 + - 81 AS col1
----
98
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT - 89 + - COUNT( * ) + + 25 + 68 * - + 52 AS col2
----
-3601

skipif mysql # not compatible
query I rowsort label-7879
SELECT - 89 + - COUNT ( * ) + + 25 + 68 * - + 52 AS col2
----
-3601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7880
SELECT + CAST( + 70 AS SIGNED ) - 91 * + COUNT( * ), - 21 AS col0
----
-21
-21

skipif mysql # not compatible
query II rowsort label-7880
SELECT + CAST ( + 70 AS INTEGER ) - 91 * + COUNT ( * ), - 21 AS col0
----
-21
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT + COUNT( * ) * + CAST( + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-7881
SELECT + COUNT ( * ) * + CAST ( + 67 AS INTEGER )
----
67

query I rowsort
SELECT + + 7 + + 58 * 98 + + ( - 23 )
----
5668

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT + ( - 52 ) * 22 + 86 * + COALESCE ( - MAX( DISTINCT - - 43 ), + 35 ) AS col1
----
-4842

skipif mysql # not compatible
query I rowsort label-7883
SELECT + ( - 52 ) * 22 + 86 * + COALESCE ( - MAX ( DISTINCT - - 43 ), + 35 ) AS col1
----
-4842

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7884
SELECT + - 32 * + 57 + + + ( CAST( NULL AS DECIMAL ) ) + + 26 + - + 44, - CAST( + 61 AS SIGNED ) AS col2
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-7884
SELECT + - 32 * + 57 + + + ( CAST ( NULL AS REAL ) ) + + 26 + - + 44, - CAST ( + 61 AS INTEGER ) AS col2
----
NULL
-61

query II rowsort
SELECT DISTINCT - 49 AS col1, 94 * + 68 - - 89 * + 12 AS col2
----
-49
7460

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL - - COUNT( * ) * 72
----
72

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - - COUNT ( * ) * 72
----
72

query I rowsort
SELECT + ( 34 ) + + 8 + + 1 * - + 44
----
-2

query I rowsort
SELECT - + COALESCE ( - 1, COALESCE ( 58, + + 62 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL + 86 + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL + 86 + - COUNT ( * )
----
85

query II rowsort
SELECT ALL 82 col2, - 60 * - - 75 AS col0
----
82
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT DISTINCT 6 + - NULLIF ( + 61, + 10 ) DIV + 51
----
5

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT 6 + - NULLIF ( + 61, + 10 ) / + 51
----
5

query II rowsort
SELECT ALL - 25 + 82, - 17 * - 92 * + - 78 AS col1
----
57
-121992

onlyif mysql # aggregate syntax: 
query II rowsort label-7893
SELECT - 43 AS col0, + 36 * + 25 - - COUNT( * )
----
-43
901

skipif mysql # not compatible
query II rowsort label-7893
SELECT - 43 AS col0, + 36 * + 25 - - COUNT ( * )
----
-43
901

query I rowsort
SELECT DISTINCT - + 83 + - 31 col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL + + COUNT( * ) + 94 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL + + COUNT ( * ) + 94 AS col0
----
95

query I rowsort
SELECT + 8 + + 32
----
40

query I rowsort
SELECT - 77 * - 89 * 79 + - ( + 47 )
----
541340

onlyif mysql # aggregate syntax: 
query III rowsort label-7898
SELECT - COUNT( * ) * - COUNT( * ) col2, NULLIF ( + 72, + 54 ), ( + 13 ) AS col1
----
1
72
13

skipif mysql # not compatible
query III rowsort label-7898
SELECT - COUNT ( * ) * - COUNT ( * ) col2, NULLIF ( + 72, + 54 ), ( + 13 ) AS col1
----
1
72
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7899
SELECT - 7 * 27 * + ( 10 ) / + + CASE 10 WHEN + - AVG ( ALL + 38 ) THEN NULL WHEN + + CASE - + MIN( - 54 ) WHEN - 10 THEN + 23 ELSE - 89 + - COUNT( * ) END * + - 39 * + + 55 / - 95 * - - 54 / MIN( - 7 ) THEN 76 * 48 END - + COUNT( * ) / 83 AS col1, - 16 AS col1
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-7899
SELECT - 7 * 27 * + ( 10 ) / + + CASE 10 WHEN + - AVG ( ALL + 38 ) THEN NULL WHEN + + CASE - + MIN ( - 54 ) WHEN - 10 THEN + 23 ELSE - 89 + - COUNT ( * ) END * + - 39 * + + 55 / - 95 * - - 54 / MIN ( - 7 ) THEN 76 * 48 END - + COUNT ( * ) / 83 AS col1, - 16 AS col1
----
NULL
-16

query I rowsort
SELECT ALL + ( - + ( - + ( 76 ) ) )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT ALL - CAST( NULL AS SIGNED ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL - CAST ( NULL AS INTEGER ) * + 86
----
NULL

query I rowsort
SELECT - 1 + - 97 * + 38 * + + 9 AS col0
----
-33175

query II rowsort
SELECT DISTINCT - 25 * - 23, 51 + + 24 AS col0
----
575
75

query I rowsort
SELECT ALL - ( - 44 ) col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT 40 * + 43 / - CASE + 94 WHEN + SUM( ALL + 24 ) THEN - + MIN( + 98 ) + - 5 + COUNT( * ) + - 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT 40 * + 43 / - CASE + 94 WHEN + SUM ( ALL + 24 ) THEN - + MIN ( + 98 ) + - 5 + COUNT ( * ) + - 94 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7906
SELECT ( - COUNT( * ) ) * + CAST( NULL AS SIGNED ) * - 59 + - 2, 57 * + COUNT( * ) AS col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-7906
SELECT ( - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) * - 59 + - 2, 57 * + COUNT ( * ) AS col0
----
NULL
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7907
SELECT ALL 53 - + - 76 AS col2, COUNT( * ) * + - 13 * + + 34 AS col2
----
129
-442

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL 53 - + - 76 AS col2, COUNT ( * ) * + - 13 * + + 34 AS col2
----
129
-442

query I rowsort
SELECT 12 * - 86
----
-1032

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT ( + COUNT( * ) ) * 54 * COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT ( + COUNT ( * ) ) * 54 * COUNT ( * ) AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT 5 DIV + 5 - 69 DIV - 7 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7910
SELECT 5 / + 5 - 69 / - 7 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT 92 + - COUNT( * ) * 63 col2
----
29

skipif mysql # not compatible
query I rowsort label-7911
SELECT 92 + - COUNT ( * ) * 63 col2
----
29

query I rowsort
SELECT - + COALESCE ( 31, 46 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7913
SELECT + 85 - - CAST( - 70 AS SIGNED ) * + SUM( + + 89 ) * + + 56
----
-348795

skipif mysql # not compatible
query I rowsort label-7913
SELECT + 85 - - CAST ( - 70 AS INTEGER ) * + SUM ( + + 89 ) * + + 56
----
-348795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT 84 DIV - 24 + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7914
SELECT 84 / - 24 + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT 15 - + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7915
SELECT 15 - + COUNT ( * ) AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT CAST( 87 AS SIGNED ) * 66 AS col2
----
5742

skipif mysql # not compatible
query I rowsort label-7916
SELECT CAST ( 87 AS INTEGER ) * 66 AS col2
----
5742

query I rowsort
SELECT DISTINCT + ( 76 ) + 69 * - + 99 * - - 99
----
-676193

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL MIN( ALL + 98 ) + - 60 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL MIN ( ALL + 98 ) + - 60 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7919
SELECT DISTINCT - 32 + + CAST( 17 AS SIGNED ) + + 13 * - + 85 * + CASE + - 60 WHEN - COUNT( + 84 ) THEN NULL WHEN - + COALESCE ( 35, 30 + 41 - - 84 + - 39, + 73 * 90, + COUNT( * ) ) + - NULLIF ( + 10, + 27 - MIN( DISTINCT CAST( + 19 AS DECIMAL ) ) * + 53 ) THEN NULL WHEN + + 26 * + - CAST( 41 AS SIGNED ) * - 29 + + 28 THEN NULL WHEN + 36 * - 76 + + 79 THEN NULL ELSE 26 END + 10 DIV 49 col1
----
-28745

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT - 32 + + CAST ( 17 AS INTEGER ) + + 13 * - + 85 * + CASE + - 60 WHEN - COUNT ( + 84 ) THEN NULL WHEN - + COALESCE ( 35, 30 + 41 - - 84 + - 39, + 73 * 90, + COUNT ( * ) ) + - NULLIF ( + 10, + 27 - MIN ( DISTINCT CAST ( + 19 AS REAL ) ) * + 53 ) THEN NULL WHEN + + 26 * + - CAST ( 41 AS INTEGER ) * - 29 + + 28 THEN NULL WHEN + 36 * - 76 + + 79 THEN NULL ELSE 26 END + 10 / 49 col1
----
-28745

query I rowsort
SELECT ALL 78 + - 20 * - + 90 AS col0
----
1878

query I rowsort
SELECT 30 - + 91 * 87 col2
----
-7887

query I rowsort
SELECT + ( + ( 61 ) )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT - - SUM( DISTINCT - 12 ) AS col1, - 98
----
-12
-98

skipif mysql # not compatible
query II rowsort label-7923
SELECT - - SUM ( DISTINCT - 12 ) AS col1, - 98
----
-12
-98

query I rowsort
SELECT ALL + 13 + - - 10 AS col1
----
23

query I rowsort
SELECT 15 + - + 83 AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7926
SELECT ALL 2 AS col0, CAST( AVG ( DISTINCT - 41 ) AS SIGNED ) + 39 + 17 + COUNT( * ) - - - 21 * - 39
----
2
835

skipif mysql # not compatible
query II rowsort label-7926
SELECT ALL 2 AS col0, CAST ( AVG ( DISTINCT - 41 ) AS INTEGER ) + 39 + 17 + COUNT ( * ) - - - 21 * - 39
----
2
835

query II rowsort
SELECT DISTINCT - 99 col0, 68 * + - 2 AS col0
----
-99
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT COUNT( * ) * - 32 * + 64 + - 59 + + - COUNT( * ) AS col1
----
-2108

skipif mysql # not compatible
query I rowsort label-7928
SELECT COUNT ( * ) * - 32 * + 64 + - 59 + + - COUNT ( * ) AS col1
----
-2108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT DISTINCT CASE - + 23 WHEN - ( - COALESCE ( - + 63, + - SUM( DISTINCT 1 ) * + NULLIF ( + MAX( + 74 ), 32 ), + 52 + CASE + 7 WHEN + 61 THEN + COUNT( * ) + - 31 / 43 * - + ( - + 23 ) * + 29 ELSE NULL END ) ) THEN - - COUNT( DISTINCT 64 ) WHEN 54 + 65 * CAST( NULL AS SIGNED ) THEN - 68 / - + 56 + + 2 END * 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT CASE - + 23 WHEN - ( - COALESCE ( - + 63, + - SUM ( DISTINCT 1 ) * + NULLIF ( + MAX ( + 74 ), 32 ), + 52 + CASE + 7 WHEN + 61 THEN + COUNT ( * ) + - 31 / 43 * - + ( - + 23 ) * + 29 ELSE NULL END ) ) THEN - - COUNT ( DISTINCT 64 ) WHEN 54 + 65 * CAST ( NULL AS INTEGER ) THEN - 68 / - + 56 + + 2 END * 73 col1
----
NULL

query II rowsort
SELECT 50 * - + 42 * + - 74 col0, 18 * + 80
----
155400
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT 59 + - CAST( + + CAST( + SUM( DISTINCT + 1 ) AS SIGNED ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * SUM( 12 ) * + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT 59 + - CAST ( + + CAST ( + SUM ( DISTINCT + 1 ) AS INTEGER ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * SUM ( 12 ) * + 93 AS col2
----
NULL

query II rowsort
SELECT ALL - 1 AS col0, - 65
----
-1
-65

query I rowsort
SELECT ALL + 84 - - 99
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ( - - MIN( ALL + 42 ) ) * + + 80 * + 60 AS col0
----
201600

skipif mysql # not compatible
query I rowsort label-7934
SELECT ( - - MIN ( ALL + 42 ) ) * + + 80 * + 60 AS col0
----
201600

query I rowsort
SELECT 75 * - 30
----
-2250

query I rowsort
SELECT - 29 * + 24 * 65 + 0
----
-45240

onlyif mysql # DIV for integer division: 
query I rowsort label-7937
SELECT DISTINCT + 66 DIV + + 51 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + 66 / + + 51 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT DISTINCT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL + 48 * 11 AS col0
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT 65 + CAST( 71 AS SIGNED ) + - - COUNT( * ) col1
----
137

skipif mysql # not compatible
query I rowsort label-7940
SELECT 65 + CAST ( 71 AS INTEGER ) + - - COUNT ( * ) col1
----
137

query I rowsort
SELECT DISTINCT + 67 * - 36 * - 57 * - - 57 AS col0
----
7836588

query I rowsort
SELECT ALL + - 30 * - + 14 * + + 64 + + 66 + + 42
----
26988

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT DISTINCT + - MIN( - 55 ) + + - SUM( - - 74 )
----
-19

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT + - MIN ( - 55 ) + + - SUM ( - - 74 )
----
-19

query II rowsort
SELECT ALL + + 17 + + - CASE 12 WHEN - + 41 THEN + ( - 75 ) ELSE NULL END, 57 AS col1
----
NULL
57

query I rowsort
SELECT 37 + 17
----
54

query I rowsort
SELECT - 83 + - 2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7947
SELECT 27 - 87 + + 6 DIV COUNT( COALESCE ( - 49, + - 55, - - CAST( NULL AS SIGNED ) ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7947
SELECT 27 - 87 + + 6 / COUNT ( COALESCE ( - 49, + - 55, - - CAST ( NULL AS INTEGER ) ) )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT ALL + + 42 + + 36 DIV + + 91 + - + 89
----
-47

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL + + 42 + + 36 / + + 91 + - + 89
----
-47

query I rowsort
SELECT + ( - 49 ) * + + COALESCE ( - 35, - 7 ) + + 93 - - 50
----
1858

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL + + COUNT( * ) + + 61 * - + ( + + NULLIF ( + + 50, - - COUNT( ALL - 9 ) ) )
----
-3049

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL + + COUNT ( * ) + + 61 * - + ( + + NULLIF ( + + 50, - - COUNT ( ALL - 9 ) ) )
----
-3049

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT - 36 + 97 * - COUNT( * ) col0
----
-133

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT - 36 + 97 * - COUNT ( * ) col0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL - MAX( - - 95 ) + + - 84
----
-179

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL - MAX ( - - 95 ) + + - 84
----
-179

query I rowsort
SELECT ALL + 3 + 20 AS col2
----
23

query I rowsort
SELECT + 32 + 31
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + 59 + + ( + COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-7955
SELECT + 59 + + ( + COUNT ( * ) )
----
60

query I rowsort
SELECT - 99 * - 3 AS col1
----
297

query I rowsort
SELECT 75 * - - 21 AS col1
----
1575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT 21 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT 21 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT ALL + 15 - + ( - CAST( 97 AS SIGNED ) ) + + + 63 - 42 * + 11
----
-287

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL + 15 - + ( - CAST ( 97 AS INTEGER ) ) + + + 63 - 42 * + 11
----
-287

query I rowsort
SELECT 31 * 97 * + 25 col1
----
75175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL 2 - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL 2 - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL CASE - - 8 WHEN - 23 + - + 18 THEN + MAX( - - 80 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL CASE - - 8 WHEN - 23 + - + 18 THEN + MAX ( - - 80 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT ALL 78 DIV + + MIN( ALL + + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL 78 / + + MIN ( ALL + + 98 )
----
0

query I rowsort
SELECT 21 * - 61
----
-1281

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT - SUM( DISTINCT - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-7965
SELECT - SUM ( DISTINCT - 40 )
----
40

query I rowsort
SELECT + COALESCE ( + + 7, - 2 )
----
7

query I rowsort
SELECT - ( 59 ) * + 76 AS col0
----
-4484

query I rowsort
SELECT ALL 36 * + ( 27 ) * - 19
----
-18468

query I rowsort
SELECT + NULLIF ( - - 98, 87 ) * + - 64
----
-6272

onlyif mysql # aggregate syntax: 
query II rowsort label-7970
SELECT + COALESCE ( + + 9, - - 21 * - 11 ), COUNT( * ) AS col0
----
9
1

skipif mysql # not compatible
query II rowsort label-7970
SELECT + COALESCE ( + + 9, - - 21 * - 11 ), COUNT ( * ) AS col0
----
9
1

query I rowsort
SELECT ALL + COALESCE ( 37, + 30 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT + ( - - 91 ) DIV + 16 + - 33 + - + 84
----
-112

skipif mysql # not compatible
query I rowsort label-7972
SELECT + ( - - 91 ) / + 16 + - 33 + - + 84
----
-112

query I rowsort
SELECT DISTINCT 62 * + 15 + - 62
----
868

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL 65 * + 86 + + + COUNT( * ) col1
----
5591

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL 65 * + 86 + + + COUNT ( * ) col1
----
5591

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT - 14 * + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7975
SELECT - 14 * + COUNT ( * ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7976
SELECT + 53 * - 54 - COUNT( DISTINCT 4 ) AS col0, + 94 * - 78
----
-2863
-7332

skipif mysql # not compatible
query II rowsort label-7976
SELECT + 53 * - 54 - COUNT ( DISTINCT 4 ) AS col0, + 94 * - 78
----
-2863
-7332

query II rowsort
SELECT + - ( + 21 ), 55 + 98 AS col1
----
-21
153

query I rowsort
SELECT ALL - 49 * 59
----
-2891

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7979
SELECT - 17 DIV - 40 - + - 90 * - 28 * - 25 + 62 + + 65 + 67 DIV + + 34 AS col1, CAST( NULL AS SIGNED ) AS col0
----
63128
NULL

skipif mysql # not compatible
query II rowsort label-7979
SELECT - 17 / - 40 - + - 90 * - 28 * - 25 + 62 + + 65 + 67 / + + 34 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
63128
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT + 60 + + 60 + + - CASE - AVG ( 66 ) WHEN + COALESCE ( - + 51, - + 69, - ( + 37 ) * - ( - + 12 ) + + CAST( 9 AS SIGNED ) + 30 ) * + 55 / + 84 THEN - 74 * - - 57 * + + 41 END - - 22 * 89 - - 17 + - 20 / - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT + 60 + + 60 + + - CASE - AVG ( 66 ) WHEN + COALESCE ( - + 51, - + 69, - ( + 37 ) * - ( - + 12 ) + + CAST ( 9 AS INTEGER ) + 30 ) * + 55 / + 84 THEN - 74 * - - 57 * + + 41 END - - 22 * 89 - - 17 + - 20 / - 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT - 30 * - - 60 + MIN( ALL - 3 ) + - CAST( - CASE - ( - 72 ) WHEN + MAX( - CAST( NULL AS SIGNED ) ) THEN - 38 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT - 30 * - - 60 + MIN ( ALL - 3 ) + - CAST ( - CASE - ( - 72 ) WHEN + MAX ( - CAST ( NULL AS INTEGER ) ) THEN - 38 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7982
SELECT ALL + 46 - 76 + + CASE 21 WHEN - 46 * - 50 THEN - - COUNT( * ) WHEN - 89 * - + 11 * - NULLIF ( + 71, CASE + AVG ( ALL ( 60 ) ) WHEN + NULLIF ( + - CAST( - + 2 AS SIGNED ), + 64 ) + 48 * - 46 THEN - - ( + - 51 ) WHEN + + 22 * - COUNT( * ) * + NULLIF ( + + 9, ( + 61 ) ) THEN NULL WHEN - 10 + 13 THEN NULL WHEN 60 THEN - 62 ELSE + 40 * - 23 + 63 * COUNT( * ) END ) + - 62 THEN NULL WHEN - 99 THEN 45 + 34 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL + 46 - 76 + + CASE 21 WHEN - 46 * - 50 THEN - - COUNT ( * ) WHEN - 89 * - + 11 * - NULLIF ( + 71, CASE + AVG ( ALL ( 60 ) ) WHEN + NULLIF ( + - CAST ( - + 2 AS INTEGER ), + 64 ) + 48 * - 46 THEN - - ( + - 51 ) WHEN + + 22 * - COUNT ( * ) * + NULLIF ( + + 9, ( + 61 ) ) THEN NULL WHEN - 10 + 13 THEN NULL WHEN 60 THEN - 62 ELSE + 40 * - 23 + 63 * COUNT ( * ) END ) + - 62 THEN NULL WHEN - 99 THEN 45 + 34 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT + ( 83 ) * - 47 + ( - 64 ) + - + 21 DIV - 29
----
-3965

skipif mysql # not compatible
query I rowsort label-7983
SELECT + ( 83 ) * - 47 + ( - 64 ) + - + 21 / - 29
----
-3965

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT - - ( + COUNT( * ) ) * - - 68
----
68

skipif mysql # not compatible
query I rowsort label-7984
SELECT - - ( + COUNT ( * ) ) * - - 68
----
68

query I rowsort
SELECT - + 16 + 40 AS col1
----
24

query I rowsort
SELECT ALL - - 18 - 50 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT SUM( ALL + 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT SUM ( ALL + 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT - MIN( ALL + 0 ) + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-7988
SELECT - MIN ( ALL + 0 ) + - 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - COUNT( * ) * 5 col1
----
-5

skipif mysql # not compatible
query I rowsort label-7989
SELECT - COUNT ( * ) * 5 col1
----
-5

query I rowsort
SELECT - 85 - - ( + + 84 )
----
-1

query I rowsort
SELECT - 55 + - 33 - - + 50 col0
----
-38

query I rowsort
SELECT - 61 + + - NULLIF ( - 26, - 55 ) + - 52 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT ALL - ( - COALESCE ( - 44, + 89 * + 33 * COUNT( * ) + + 60 * + - 68, - 43 ) ) * + COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL - ( - COALESCE ( - 44, + 89 * + 33 * COUNT ( * ) + + 60 * + - 68, - 43 ) ) * + COUNT ( * ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT - 72 * 29 * 83 * COUNT( ALL - ( + 99 ) )
----
-173304

skipif mysql # not compatible
query I rowsort label-7994
SELECT - 72 * 29 * 83 * COUNT ( ALL - ( + 99 ) )
----
-173304

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT + COALESCE ( + - 26, + COUNT( * ) ) + + - 94 + + - 24 col1, 45
----
-144
45

skipif mysql # not compatible
query II rowsort label-7995
SELECT + COALESCE ( + - 26, + COUNT ( * ) ) + + - 94 + + - 24 col1, 45
----
-144
45

query I rowsort
SELECT DISTINCT - 66 * + 79
----
-5214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT ALL CAST( + + 15 AS SIGNED ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL CAST ( + + 15 AS INTEGER ) AS col2
----
15

query I rowsort
SELECT - 25 + - - 62
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7999
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + + 2, - COUNT( ALL + 97 ) DIV - + CASE + 4 WHEN + COUNT( ALL - 77 ) THEN + + COUNT( * ) + 8 WHEN - 97 * + CAST( NULL AS DECIMAL ) * ( - - CAST( - ( + 91 ) AS SIGNED ) ) - + - 69 + + 96 + ( + + 44 ) - + + 12 * - 99 * + ( - + 62 ) THEN + 56 * COALESCE ( - 33, 24 + 81 ) WHEN + 7 + - 15 THEN NULL END ) + + 72 col0
----
70

skipif mysql # not compatible
query I rowsort label-7999
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + + 2, - COUNT ( ALL + 97 ) / - + CASE + 4 WHEN + COUNT ( ALL - 77 ) THEN + + COUNT ( * ) + 8 WHEN - 97 * + CAST ( NULL AS REAL ) * ( - - CAST ( - ( + 91 ) AS INTEGER ) ) - + - 69 + + 96 + ( + + 44 ) - + + 12 * - 99 * + ( - + 62 ) THEN + 56 * COALESCE ( - 33, 24 + 81 ) WHEN + 7 + - 15 THEN NULL END ) + + 72 col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT ALL 89 DIV + 72
----
1

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL 89 / + 72
----
1

query I rowsort
SELECT + COALESCE ( - - 22, + 92 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8002
SELECT DISTINCT CAST( ( 36 ) AS SIGNED ) DIV + + 76 + + COALESCE ( - COALESCE ( - 5, + 38, COUNT( * ) ), - - COUNT( * ) ) + + 94
----
99

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT CAST ( ( 36 ) AS INTEGER ) / + + 76 + + COALESCE ( - COALESCE ( - 5, + 38, COUNT ( * ) ), - - COUNT ( * ) ) + + 94
----
99

query I rowsort
SELECT ALL + 92 / + 25 * + 46 + - + 43 * 3 + + CASE - + 36 WHEN 12 THEN + + 73 + 45 * + 56 END / + 24
----
NULL

query I rowsort
SELECT ALL - 13 * - - 25 + + 84
----
-241

query I rowsort
SELECT + - 47 + 96 + + - ( - 8 ) * + ( + 6 ) + + + 21 + - 60 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + MAX( - 83 ) + - + 88 + + 32 * + 52 * - 94 * - COUNT( * )
----
156245

skipif mysql # not compatible
query I rowsort label-8006
SELECT + MAX ( - 83 ) + - + 88 + + 32 * + 52 * - 94 * - COUNT ( * )
----
156245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8007
SELECT DISTINCT + NULLIF ( + + 39, - 72 ) AS col1, CAST( NULL AS SIGNED ) + + - SUM( - 41 )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-8007
SELECT DISTINCT + NULLIF ( + + 39, - 72 ) AS col1, CAST ( NULL AS INTEGER ) + + - SUM ( - 41 )
----
39
NULL

query I rowsort
SELECT + 5 * + - NULLIF ( + 79, - 4 )
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT - 66 * CASE + - 97 WHEN - ( 51 ) THEN NULL WHEN + 56 THEN ( + 26 ) END / + 68 * + 69 + - CASE + MAX( + 16 ) WHEN + 74 THEN NULL ELSE + 1 * - MIN( 7 ) * + 83 END * - 81 - - 96 + + NULLIF ( 54, 98 + 34 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT - 66 * CASE + - 97 WHEN - ( 51 ) THEN NULL WHEN + 56 THEN ( + 26 ) END / + 68 * + 69 + - CASE + MAX ( + 16 ) WHEN + 74 THEN NULL ELSE + 1 * - MIN ( 7 ) * + 83 END * - 81 - - 96 + + NULLIF ( 54, 98 + 34 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT - - 6 + - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8010
SELECT - - 6 + - COUNT ( * ) AS col0
----
5

query I rowsort
SELECT + + NULLIF ( - + 21, + + 74 ) AS col0
----
-21

query I rowsort
SELECT - + 31 + - 74 + + 77 * - - 89
----
6748

query I rowsort
SELECT + + 20 + - 21 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT - - COUNT( * ) + 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8014
SELECT - - COUNT ( * ) + 78 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8015
SELECT - CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8015
SELECT - CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8016
SELECT - 17 DIV + + 5 * + - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8016
SELECT - 17 / + + 5 * + - COUNT ( * ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8018
SELECT CAST( NULL AS DECIMAL ) * + - 4 * - + NULLIF ( COUNT( * ), - - 51 + + CASE WHEN MIN( - + 86 ) IS NULL THEN - - 8 WHEN NOT 35 IS NULL THEN NULL WHEN NOT ( NULL ) IS NULL THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT CAST ( NULL AS REAL ) * + - 4 * - + NULLIF ( COUNT ( * ), - - 51 + + CASE WHEN MIN ( - + 86 ) IS NULL THEN - - 8 WHEN NOT 35 IS NULL THEN NULL WHEN NOT ( NULL ) IS NULL THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT 60 + COUNT( * ) * - + 23
----
37

skipif mysql # not compatible
query I rowsort label-8019
SELECT 60 + COUNT ( * ) * - + 23
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL + ( + 50 ) * + + 2 * + COUNT( * ) * ( 59 ) * + + 36 + + + 35 + 37 AS col2
----
212472

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + ( + 50 ) * + + 2 * + COUNT ( * ) * ( 59 ) * + + 36 + + + 35 + 37 AS col2
----
212472

query I rowsort
SELECT DISTINCT - 98 * 34 AS col0
----
-3332

query I rowsort
SELECT 34 * - 41
----
-1394

query I rowsort
SELECT 75 * - 98 AS col0
----
-7350

query II rowsort
SELECT ALL 10, + 58 col0
----
10
58

query I rowsort
SELECT ALL + 25 + - 65 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8026
SELECT ALL 64 AS col2, - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) / - - 43 col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8026
SELECT ALL 64 AS col2, - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / - - 43 col1
----
64
NULL

query I rowsort
SELECT 56 + - 9 * + - 93 AS col2
----
893

query II rowsort
SELECT - 17 AS col2, + 16
----
-17
16

query II rowsort
SELECT - 20 AS col0, - 59 * 33 - - 84 col2
----
-20
-1863

query I rowsort
SELECT ALL - 80 + + ( + - 9 )
----
-89

query I rowsort
SELECT DISTINCT - 35 * + 15 AS col1
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL + 81 + 26 + + 69 + + 96 * - CASE COUNT( DISTINCT + 15 ) WHEN + COUNT( - 30 ) THEN 25 ELSE 75 * 44 + - + 36 END col1
----
-2224

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL + 81 + 26 + + 69 + + 96 * - CASE COUNT ( DISTINCT + 15 ) WHEN + COUNT ( - 30 ) THEN 25 ELSE 75 * 44 + - + 36 END col1
----
-2224

query II rowsort
SELECT ALL 85, ( + - 69 ) AS col2
----
85
-69

query I rowsort
SELECT DISTINCT - 36 * + 46 AS col1
----
-1656

query I rowsort
SELECT 74 * 52 AS col2
----
3848

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL - 18 * + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL - 18 * + COUNT ( * ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-8037
SELECT 81 DIV + 28 AS col2, + 48
----
2
48

skipif mysql # not compatible
query II rowsort label-8037
SELECT 81 / + 28 AS col2, + 48
----
2
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8038
SELECT + 39 * 41 * + + 84 + + + 39 + - 69 + + + 54 + CAST( NULL AS DECIMAL ) - + 4 - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT + 39 * 41 * + + 84 + + + 39 + - 69 + + + 54 + CAST ( NULL AS REAL ) - + 4 - 57
----
NULL

query II rowsort
SELECT ALL - + 10 AS col1, ( - ( - 83 ) ) + - 86 + + 80
----
-10
77

query I rowsort
SELECT DISTINCT 88 + 53 * - + 74 * + 24 AS col1
----
-94040

query I rowsort
SELECT ALL + 71 * + 67 AS col2
----
4757

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8042
SELECT CAST( NULL AS SIGNED ) AS col1, + 19
----
NULL
19

skipif mysql # not compatible
query II rowsort label-8042
SELECT CAST ( NULL AS INTEGER ) AS col1, + 19
----
NULL
19

query I rowsort
SELECT DISTINCT - - NULLIF ( - 72, + 79 ) - - + 83 AS col1
----
11

query II rowsort
SELECT 71, + 18 col0
----
71
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8045
SELECT + CAST( NULL AS SIGNED ) AS col0, 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-8045
SELECT + CAST ( NULL AS INTEGER ) AS col0, 26 AS col2
----
NULL
26

query II rowsort
SELECT ALL - + 95 AS col2, - 61
----
-95
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT ALL + - 26 - + + 27 - + NULLIF ( - CASE + CAST( NULL AS SIGNED ) WHEN - 58 + CAST( 53 AS SIGNED ) - 39 THEN NULL ELSE + 64 END, 91 ) * NULLIF ( - COUNT( * ), + + 33 ) * NULLIF ( - NULLIF ( 62, 99 ), 45 ) * - 8 + 47 - - MAX( DISTINCT - 67 ) + + + COUNT( * ) * + 27 * + 17
----
-31358

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + - 26 - + + 27 - + NULLIF ( - CASE + CAST ( NULL AS INTEGER ) WHEN - 58 + CAST ( 53 AS INTEGER ) - 39 THEN NULL ELSE + 64 END, 91 ) * NULLIF ( - COUNT ( * ), + + 33 ) * NULLIF ( - NULLIF ( 62, 99 ), 45 ) * - 8 + 47 - - MAX ( DISTINCT - 67 ) + + + COUNT ( * ) * + 27 * + 17
----
-31358

query I rowsort
SELECT ALL - ( - 48 ) col1
----
48

query I rowsort
SELECT DISTINCT - 52 * 34
----
-1768

query I rowsort
SELECT - 34 * + + 39 - + 91
----
-1417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT ALL - CAST( NULL AS SIGNED ) * ( - 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL - CAST ( NULL AS INTEGER ) * ( - 43 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT COALESCE ( 48, + 40 - 18 ) + 21 + COUNT( * ) * - - ( 83 ) * - - 98 + + SUM( NULLIF ( + 31, 41 ) )
----
8234

skipif mysql # not compatible
query I rowsort label-8052
SELECT COALESCE ( 48, + 40 - 18 ) + 21 + COUNT ( * ) * - - ( 83 ) * - - 98 + + SUM ( NULLIF ( + 31, 41 ) )
----
8234

query II rowsort
SELECT 29 * - - 8 * + NULLIF ( + ( - 61 ), + - AVG ( 27 ) ) + + + 60 AS col2, 74 AS col0
----
-14092
74

query I rowsort
SELECT ALL + 21 * 66 * + + 53 AS col2
----
73458

onlyif mysql # aggregate syntax: 
query II rowsort label-8055
SELECT ALL 25 + + + 20 - - 94 + - ( 54 ), NULLIF ( 22, - 60 + + + COUNT( * ) ) AS col1
----
85
22

skipif mysql # not compatible
query II rowsort label-8055
SELECT ALL 25 + + + 20 - - 94 + - ( 54 ), NULLIF ( 22, - 60 + + + COUNT ( * ) ) AS col1
----
85
22

query I rowsort
SELECT ALL 84 + 81
----
165

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8057
SELECT ALL - 49 + + COUNT( * ) * NULLIF ( - + 51, + 24 * + - ( - - 4 ) + + CAST( NULL AS DECIMAL ) ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - 49 + + COUNT ( * ) * NULLIF ( - + 51, + 24 * + - ( - - 4 ) + + CAST ( NULL AS REAL ) ) AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL + MIN( ALL 12 ) + - 41 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL + MIN ( ALL 12 ) + - 41 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT 94 + + COUNT( * ) + - + 37 * - ( - 80 )
----
-2865

skipif mysql # not compatible
query I rowsort label-8059
SELECT 94 + + COUNT ( * ) + - + 37 * - ( - 80 )
----
-2865

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT - COUNT( ALL - - 42 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8060
SELECT - COUNT ( ALL - - 42 ) col1
----
-1

query I rowsort
SELECT ALL 35 * + + 62
----
2170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8062
SELECT ALL 16 * + 20 - + 47 AS col1, COALESCE ( CAST( NULL AS SIGNED ), + 42 * 49 ) + + + 29 AS col1
----
273
2087

skipif mysql # not compatible
query II rowsort label-8062
SELECT ALL 16 * + 20 - + 47 AS col1, COALESCE ( CAST ( NULL AS INTEGER ), + 42 * 49 ) + + + 29 AS col1
----
273
2087

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT DISTINCT - 76 * 30 - - COALESCE ( 48, + + COUNT( * ), + - 5 ) col0
----
-2232

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT - 76 * 30 - - COALESCE ( 48, + + COUNT ( * ), + - 5 ) col0
----
-2232

query I rowsort
SELECT ( NULLIF ( 0, + + ( - + 8 ) ) ) + - 78
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8065
SELECT + + CAST( + - COUNT( * ) AS SIGNED ), + 66 AS col0
----
-1
66

skipif mysql # not compatible
query II rowsort label-8065
SELECT + + CAST ( + - COUNT ( * ) AS INTEGER ), + 66 AS col0
----
-1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT + 27 * - + 12 * - NULLIF ( 32, - COUNT( * ) )
----
10368

skipif mysql # not compatible
query I rowsort label-8066
SELECT + 27 * - + 12 * - NULLIF ( 32, - COUNT ( * ) )
----
10368

query II rowsort
SELECT 19 * + - 90 AS col1, + 14
----
-1710
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - 36 + 83 * + - 39 + - + 74 + - COUNT( * )
----
-3348

skipif mysql # not compatible
query I rowsort label-8068
SELECT - 36 + 83 * + - 39 + - + 74 + - COUNT ( * )
----
-3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT 78 * + 96 + COUNT( * ) * - - CAST( NULL AS SIGNED ) + - SUM( 74 ) * + ( + 64 ) + + CAST( + 38 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT 78 * + 96 + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - SUM ( 74 ) * + ( + 64 ) + + CAST ( + 38 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT 99 + + CAST( 37 AS SIGNED )
----
136

skipif mysql # not compatible
query I rowsort label-8070
SELECT 99 + + CAST ( 37 AS INTEGER )
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT ALL - COUNT( * ) * 92 AS col0, + 58
----
-92
58

skipif mysql # not compatible
query II rowsort label-8071
SELECT ALL - COUNT ( * ) * 92 AS col0, + 58
----
-92
58

query II rowsort
SELECT + 85 + 44 AS col1, - 55
----
129
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-8073
SELECT MAX( - + 69 ) AS col2, - 11
----
-69
-11

skipif mysql # not compatible
query II rowsort label-8073
SELECT MAX ( - + 69 ) AS col2, - 11
----
-69
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT 63 * 49 - - - 34 + 15 DIV - COUNT( * ) AS col0
----
3038

skipif mysql # not compatible
query I rowsort label-8074
SELECT 63 * 49 - - - 34 + 15 / - COUNT ( * ) AS col0
----
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT + ( 57 ) + + + 27 / + CASE + 13 WHEN + + 56 THEN COUNT( ALL 77 ) ELSE NULL END - - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT + ( 57 ) + + + 27 / + CASE + 13 WHEN + + 56 THEN COUNT ( ALL 77 ) ELSE NULL END - - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT + COUNT( * ) + + 14
----
15

skipif mysql # not compatible
query I rowsort label-8076
SELECT + COUNT ( * ) + + 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT DISTINCT 79 + - COUNT( ALL + 16 )
----
78

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT 79 + - COUNT ( ALL + 16 )
----
78

query I rowsort
SELECT ALL 37 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL - 26 + COUNT( DISTINCT - 31 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - 26 + COUNT ( DISTINCT - 31 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8080
SELECT ALL 17, COUNT( * ) + + 72 + - 94 * COUNT( DISTINCT - ( - 74 ) ) AS col2
----
17
-21

skipif mysql # not compatible
query II rowsort label-8080
SELECT ALL 17, COUNT ( * ) + + 72 + - 94 * COUNT ( DISTINCT - ( - 74 ) ) AS col2
----
17
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8081
SELECT 46 AS col2, ( 40 ) + + CASE COUNT( * ) WHEN + - 44 THEN + 7 END
----
46
NULL

skipif mysql # not compatible
query II rowsort label-8081
SELECT 46 AS col2, ( 40 ) + + CASE COUNT ( * ) WHEN + - 44 THEN + 7 END
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT + CASE - - COUNT( * ) WHEN 65 THEN 71 / 19 ELSE NULL END * - 46 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT + CASE - - COUNT ( * ) WHEN 65 THEN 71 / 19 ELSE NULL END * - 46 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 30 + + 80 col1
----
110

query I rowsort
SELECT + 36 - + 81
----
-45

query II rowsort
SELECT - ( - + ( + ( + 52 ) ) ) col1, - 89
----
52
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8086
SELECT + ( 5 ) DIV + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8086
SELECT + ( 5 ) / + COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT - COALESCE ( 80, 84 * CAST( NULL AS SIGNED ) + + + CAST( + 14 AS SIGNED ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8087
SELECT - COALESCE ( 80, 84 * CAST ( NULL AS INTEGER ) + + + CAST ( + 14 AS INTEGER ) ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8088
SELECT ALL 94 - - CASE - COUNT( * ) WHEN + 66 + - COUNT( * ) THEN - ( - 5 ) * + + CAST( + COUNT( * ) AS SIGNED ) + + 76 - - + 91 - CAST( - + 13 AS SIGNED ) + + COUNT( * ) END + + 56 + - + 76 * + CAST( - + 86 AS DECIMAL ) * + 22 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL 94 - - CASE - COUNT ( * ) WHEN + 66 + - COUNT ( * ) THEN - ( - 5 ) * + + CAST ( + COUNT ( * ) AS INTEGER ) + + 76 - - + 91 - CAST ( - + 13 AS INTEGER ) + + COUNT ( * ) END + + 56 + - + 76 * + CAST ( - + 86 AS REAL ) * + 22 * + 50
----
NULL

query II rowsort
SELECT - NULLIF ( 63, + 22 ), - 55 AS col0
----
-63
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8090
SELECT + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + + 17 / 35, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8090
SELECT + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + + 17 / 35, - COUNT ( * ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT - + 98 AS col0, - MAX( + + ( 65 ) )
----
-98
-65

skipif mysql # not compatible
query II rowsort label-8091
SELECT - + 98 AS col0, - MAX ( + + ( 65 ) )
----
-98
-65

query I rowsort
SELECT - 67 + - 63 AS col2
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8093
SELECT + COUNT( * ) DIV + 3
----
0

skipif mysql # not compatible
query I rowsort label-8093
SELECT + COUNT ( * ) / + 3
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT - CAST( - 19 AS SIGNED ) * - 17
----
-323

skipif mysql # not compatible
query I rowsort label-8094
SELECT - CAST ( - 19 AS INTEGER ) * - 17
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL + COALESCE ( - COUNT( * ), - ( + 97 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL + COALESCE ( - COUNT ( * ), - ( + 97 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8096
SELECT ALL 55 * + COALESCE ( - + 76, - 90 + + ( - - 36 ) - - - 15 ) DIV COUNT( * ) + - 62
----
-4242

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL 55 * + COALESCE ( - + 76, - 90 + + ( - - 36 ) - - - 15 ) / COUNT ( * ) + - 62
----
-4242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8097
SELECT - 92 * 54 * NULLIF ( - COUNT( * ), - 51 + + 10 * - COUNT( + 0 ) ) + COUNT( * ) - - CASE AVG ( ALL + + 1 ) WHEN - MAX( - 46 ) * - - CAST( - 15 AS SIGNED ) THEN NULL WHEN + 54 + 29 THEN - SUM( 58 ) ELSE NULL END + CASE + 68 WHEN + 6 THEN - 44 * + 96 + 86 * - 83 / - - MAX( DISTINCT + 19 ) / ( + COUNT( * ) ) + - ( + - ( 78 ) ) * + 29 END + - CAST( NULL AS DECIMAL ) / + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT - 92 * 54 * NULLIF ( - COUNT ( * ), - 51 + + 10 * - COUNT ( + 0 ) ) + COUNT ( * ) - - CASE AVG ( ALL + + 1 ) WHEN - MAX ( - 46 ) * - - CAST ( - 15 AS INTEGER ) THEN NULL WHEN + 54 + 29 THEN - SUM ( 58 ) ELSE NULL END + CASE + 68 WHEN + 6 THEN - 44 * + 96 + 86 * - 83 / - - MAX ( DISTINCT + 19 ) / ( + COUNT ( * ) ) + - ( + - ( 78 ) ) * + 29 END + - CAST ( NULL AS REAL ) / + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL + COALESCE ( + + 66, 27 * + 56 + - - 77 + COUNT( * ), + 11 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + COALESCE ( + + 66, 27 * + 56 + - - 77 + COUNT ( * ), + 11 ) AS col1
----
66

query I rowsort
SELECT + ( 68 ) AS col0
----
68

query II rowsort
SELECT ALL + + 17, ( - 4 ) col2
----
17
-4

query I rowsort
SELECT - + 58 * - 49 AS col2
----
2842

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8102
SELECT CAST( NULL AS SIGNED ), 16 AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-8102
SELECT CAST ( NULL AS INTEGER ), 16 AS col0
----
NULL
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT + 42 col2, 29 + - MIN( + 75 ) + - CASE COUNT( * ) WHEN - 55 * 39 - + 48 THEN + 36 * + 74 END
----
42
NULL

skipif mysql # not compatible
query II rowsort label-8103
SELECT + 42 col2, 29 + - MIN ( + 75 ) + - CASE COUNT ( * ) WHEN - 55 * 39 - + 48 THEN + 36 * + 74 END
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8104
SELECT + CAST( NULL AS DECIMAL ) * - - ( + COUNT( * ) ) AS col0, ( ( + 8 ) ) / - AVG ( - - CAST( NULL AS SIGNED ) ) * - 44 + - 3 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8104
SELECT + CAST ( NULL AS REAL ) * - - ( + COUNT ( * ) ) AS col0, ( ( + 8 ) ) / - AVG ( - - CAST ( NULL AS INTEGER ) ) * - 44 + - 3 AS col1
----
NULL
NULL

query II rowsort
SELECT + 43 AS col2, + 60
----
43
60

query I rowsort
SELECT + 75 * 41 * 43 - - 98 AS col1
----
132323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT DISTINCT + 10 * + CAST( NULL AS SIGNED ) * + 19 + - + 9 * + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT + 10 * + CAST ( NULL AS INTEGER ) * + 19 + - + 9 * + - 74
----
NULL

query I rowsort
SELECT ALL + 21 * - + 20
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8109
SELECT DISTINCT - 60 * - 61 + + 14 + - - CASE - 90 WHEN + 11 + - 58 THEN + + 92 ELSE NULL END * + - 94 * - - CAST( NULL AS SIGNED ) col1, + 89 * + 88 - - - 17 + - 29 + COUNT( * ) + 20 + 58 / + CAST( NULL AS SIGNED ) + - 17 / + 52 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8109
SELECT DISTINCT - 60 * - 61 + + 14 + - - CASE - 90 WHEN + 11 + - 58 THEN + + 92 ELSE NULL END * + - 94 * - - CAST ( NULL AS INTEGER ) col1, + 89 * + 88 - - - 17 + - 29 + COUNT ( * ) + 20 + 58 / + CAST ( NULL AS INTEGER ) + - 17 / + 52 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT ALL - CAST( - 11 AS SIGNED ) * + 48 + + COALESCE ( - + COUNT( * ), + 37 )
----
527

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - CAST ( - 11 AS INTEGER ) * + 48 + + COALESCE ( - + COUNT ( * ), + 37 )
----
527

query I rowsort
SELECT DISTINCT - ( - 54 ) * 19 * - + 32 col1
----
-32832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8112
SELECT ALL CAST( + 55 AS SIGNED ) * 14 * - - COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) ) * + 58 + - 54 + 24 * - 55 AS col2
----
43286

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL CAST ( + 55 AS INTEGER ) * 14 * - - COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) * + 58 + - 54 + 24 * - 55 AS col2
----
43286

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT COALESCE ( - - COUNT( * ), + - 75 + 92, 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8113
SELECT COALESCE ( - - COUNT ( * ), + - 75 + 92, 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT - MAX( + - 81 ) + - COALESCE ( - - 85, - - 17 ) - - SUM( 58 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8114
SELECT - MAX ( + - 81 ) + - COALESCE ( - - 85, - - 17 ) - - SUM ( 58 ) AS col0
----
54

query I rowsort
SELECT COALESCE ( - - 10, - + ( + 80 ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 67 * SUM( + - 20 ) + - 70 AS col2
----
-1410

skipif mysql # not compatible
query I rowsort label-8116
SELECT 67 * SUM ( + - 20 ) + - 70 AS col2
----
-1410

onlyif mysql # DIV for integer division: 
query I rowsort label-8117
SELECT + 48 DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8117
SELECT + 48 / 50 AS col2
----
0

query I rowsort
SELECT - 60 * - + 52
----
3120

query I rowsort
SELECT + 66 * + 63 AS col1
----
4158

query I rowsort
SELECT ALL 42 * 7 - - + 8
----
302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8121
SELECT + MAX( DISTINCT + 85 ) * + 10 + + - 80 - - 28 DIV - 73 + + 76 - + + COUNT( * ) * - - 90
----
756

skipif mysql # not compatible
query I rowsort label-8121
SELECT + MAX ( DISTINCT + 85 ) * + 10 + + - 80 - - 28 / - 73 + + 76 - + + COUNT ( * ) * - - 90
----
756

query II rowsort
SELECT - ( - + 47 ) col2, + 67
----
47
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8123
SELECT DISTINCT ( - + COALESCE ( - - CAST( NULL AS SIGNED ), + CASE - - 10 WHEN + 87 DIV - 14 + + 1 + - COUNT( * ) - 10 - 90 * + 36 + + 75 * - 42 * MAX( ALL - 10 ) DIV - - 65 DIV - NULLIF ( + 45, - 38 ) DIV - 31 + + 78 * COUNT( * ) THEN + 9 DIV + ( - COUNT( * ) ) WHEN - 73 * + 64 DIV + 80 + - MIN( ALL - + 85 ) * - 16 THEN + + CASE - 56 WHEN 24 THEN - 15 DIV 59 + + 84 END ELSE NULL END + COUNT( * ) * - COUNT( * ), - 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT ( - + COALESCE ( - - CAST ( NULL AS INTEGER ), + CASE - - 10 WHEN + 87 / - 14 + + 1 + - COUNT ( * ) - 10 - 90 * + 36 + + 75 * - 42 * MAX ( ALL - 10 ) / - - 65 / - NULLIF ( + 45, - 38 ) / - 31 + + 78 * COUNT ( * ) THEN + 9 / + ( - COUNT ( * ) ) WHEN - 73 * + 64 / + 80 + - MIN ( ALL - + 85 ) * - 16 THEN + + CASE - 56 WHEN 24 THEN - 15 / 59 + + 84 END ELSE NULL END + COUNT ( * ) * - COUNT ( * ), - 37 ) )
----
37

query I rowsort
SELECT ALL + 32 - 23 + 55 AS col2
----
64

query I rowsort
SELECT + 6 * - 10 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8126
SELECT + 65 + - 41, 4 + - + 58 + COUNT( * ) col0
----
24
-53

skipif mysql # not compatible
query II rowsort label-8126
SELECT + 65 + - 41, 4 + - + 58 + COUNT ( * ) col0
----
24
-53

query I rowsort
SELECT DISTINCT + 14 - + - ( 52 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8128
SELECT + NULLIF ( + + 49, - + ( + 87 ) ) + 80 * - ( - COUNT( * ) ) * + CASE - 2 WHEN + 93 * 63 + - 67 THEN + 19 * - - COUNT( * ) * COALESCE ( 97, + 30 ) * 95 * - - ( - - 42 ) WHEN + 38 * 88 * + - CAST( NULL AS SIGNED ) * + 9 + - 58 * - CAST( NULL AS SIGNED ) THEN NULL END * + 32 + 68 / - 29 + 69, - 28 AS col2
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-8128
SELECT + NULLIF ( + + 49, - + ( + 87 ) ) + 80 * - ( - COUNT ( * ) ) * + CASE - 2 WHEN + 93 * 63 + - 67 THEN + 19 * - - COUNT ( * ) * COALESCE ( 97, + 30 ) * 95 * - - ( - - 42 ) WHEN + 38 * 88 * + - CAST ( NULL AS INTEGER ) * + 9 + - 58 * - CAST ( NULL AS INTEGER ) THEN NULL END * + 32 + 68 / - 29 + 69, - 28 AS col2
----
NULL
-28

query I rowsort
SELECT - - COALESCE ( + - 70, + 2 ) AS col0
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8130
SELECT DISTINCT - 92 * + + CAST( NULL AS DECIMAL ) + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT - 92 * + + CAST ( NULL AS REAL ) + + 28
----
NULL

query I rowsort
SELECT + + 48 * 34
----
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8132
SELECT DISTINCT + 9 DIV - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT + 9 / - COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8133
SELECT ALL 84 + - CAST( - COUNT( * ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL 84 + - CAST ( - COUNT ( * ) AS INTEGER )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT ALL - - NULLIF ( - CASE ( CASE + CAST( NULL AS SIGNED ) WHEN - + COUNT( * ) THEN + 27 WHEN - ( 78 ) + + 90 THEN NULL WHEN - 54 THEN AVG ( ALL - 85 ) * + 69 * - COUNT( * ) ELSE NULL END ) WHEN 55 + - 40 * MIN( ALL 33 ) THEN + - 66 ELSE COUNT( * ) END, - 3 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL - - NULLIF ( - CASE ( CASE + CAST ( NULL AS INTEGER ) WHEN - + COUNT ( * ) THEN + 27 WHEN - ( 78 ) + + 90 THEN NULL WHEN - 54 THEN AVG ( ALL - 85 ) * + 69 * - COUNT ( * ) ELSE NULL END ) WHEN 55 + - 40 * MIN ( ALL 33 ) THEN + - 66 ELSE COUNT ( * ) END, - 3 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT + + 95 * + 49 - - 36 * + - MAX( ALL - + 41 ) AS col2
----
6131

skipif mysql # not compatible
query I rowsort label-8135
SELECT + + 95 * + 49 - - 36 * + - MAX ( ALL - + 41 ) AS col2
----
6131

query I rowsort
SELECT - 72 + + - 84
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT - 11 DIV - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT - 11 / - 37 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8138
SELECT + 81 DIV 88 + - 69 + 6 + - 34 DIV - 8
----
-59

skipif mysql # not compatible
query I rowsort label-8138
SELECT + 81 / 88 + - 69 + 6 + - 34 / - 8
----
-59

query I rowsort
SELECT ALL + 15 + + 12 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT - 35 * - + 75 + - + 18 - 43 - + + 25 * + - ( - COUNT( * ) )
----
2539

skipif mysql # not compatible
query I rowsort label-8140
SELECT - 35 * - + 75 + - + 18 - 43 - + + 25 * + - ( - COUNT ( * ) )
----
2539

query I rowsort
SELECT DISTINCT 73 * 85 * 69 * - - 61
----
26116845

query I rowsort
SELECT DISTINCT 13 + 3 + - - ( + 56 ) * - + 48
----
-2672

query I rowsort
SELECT ALL 17 + - 61 - - - 79 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL - MAX( DISTINCT + 44 ) + 31 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - MAX ( DISTINCT + 44 ) + 31 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT 75 + NULLIF ( + 2, COUNT( * ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8145
SELECT 75 + NULLIF ( + 2, COUNT ( * ) ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ( + ( + 21 ) ) * + + COUNT( * ) + 32 col2
----
53

skipif mysql # not compatible
query I rowsort label-8146
SELECT ( + ( + 21 ) ) * + + COUNT ( * ) + 32 col2
----
53

query I rowsort
SELECT ALL + 63 - - 23 AS col0
----
86

query I rowsort
SELECT 75 * + 52 AS col1
----
3900

query I rowsort
SELECT DISTINCT - 90 * - 88 col2
----
7920

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT DISTINCT 60 DIV 8
----
7

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT 60 / 8
----
7

query I rowsort
SELECT ALL 19 - - 40 AS col1
----
59

query II rowsort
SELECT 0 * ( - 88 ) AS col1, 12 + - 17 AS col2
----
0
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT 10 * + COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8153
SELECT 10 * + COUNT ( * ) AS col1
----
10

query II rowsort
SELECT 98 col2, 87
----
98
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT 90 DIV - 2
----
-45

skipif mysql # not compatible
query I rowsort label-8155
SELECT 90 / - 2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT CAST( NULL AS SIGNED ) * + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT CAST ( NULL AS INTEGER ) * + + 16 AS col0
----
NULL

query I rowsort
SELECT + 54 * - ( - 37 )
----
1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT - - CAST( ( + + 4 ) AS SIGNED ) col2
----
4

skipif mysql # not compatible
query I rowsort label-8158
SELECT - - CAST ( ( + + 4 ) AS INTEGER ) col2
----
4

query I rowsort
SELECT ALL 73 + + 32 AS col1
----
105

query I rowsort
SELECT ALL - 36 * 86 * - 48 * - 26 + - + 91 AS col0
----
-3863899

query I rowsort
SELECT + 52 + - 72 AS col0
----
-20

query I rowsort
SELECT - + ( + + 81 ) AS col0
----
-81

query I rowsort
SELECT 74 + 86 AS col2
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8164
SELECT ALL - 45 + 98 DIV + - COUNT( DISTINCT ( + 84 ) )
----
-143

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - 45 + 98 / + - COUNT ( DISTINCT ( + 84 ) )
----
-143

query I rowsort
SELECT ALL - 86 + - 82 AS col2
----
-168

query I rowsort
SELECT - 18 * + 7 * 63
----
-7938

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8167
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 84 + + + CAST( + 51 AS SIGNED ) * NULLIF ( - + 0, - - 35 ) / + 53 + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 84 + + + CAST ( + 51 AS INTEGER ) * NULLIF ( - + 0, - - 35 ) / + 53 + - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8168
SELECT ALL + 84 + CASE + COALESCE ( - SUM( ALL CAST( NULL AS SIGNED ) ), + - 53 + 67 * - COUNT( * ) * - 60 ) WHEN 89 / - 1 * - + 51 THEN + - 60 END + + 83 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + 84 + CASE + COALESCE ( - SUM ( ALL CAST ( NULL AS INTEGER ) ), + - 53 + 67 * - COUNT ( * ) * - 60 ) WHEN 89 / - 1 * - + 51 THEN + - 60 END + + 83 col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 60, + 85 / + 37 )
----
-60

query II rowsort
SELECT ALL - 4 AS col1, 71 AS col1
----
-4
71

query II rowsort
SELECT + 93 col1, 65
----
93
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT ALL 61 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL 61 / - 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8173
SELECT COUNT( * ), 47 col0, 8 DIV - ( - - 21 ) * + - 78 * + 86 AS col0
----
1
47
0

skipif mysql # not compatible
query III rowsort label-8173
SELECT COUNT ( * ), 47 col0, 8 / - ( - - 21 ) * + - 78 * + 86 AS col0
----
1
47
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8174
SELECT SUM( + 27 ) DIV - + 17
----
-1

skipif mysql # not compatible
query I rowsort label-8174
SELECT SUM ( + 27 ) / - + 17
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT NULLIF ( - - 88, + 17 ) * + ( COUNT( + - 19 ) ) * 3
----
264

skipif mysql # not compatible
query I rowsort label-8175
SELECT NULLIF ( - - 88, + 17 ) * + ( COUNT ( + - 19 ) ) * 3
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT + 9 DIV + 90 - - 76
----
76

skipif mysql # not compatible
query I rowsort label-8176
SELECT + 9 / + 90 - - 76
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT 10 DIV 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT 10 / 24 AS col2
----
0

query I rowsort
SELECT DISTINCT 60 * + + 38 col1
----
2280

query I rowsort
SELECT ALL 19 * 65
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + COUNT( ALL + - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-8180
SELECT + COUNT ( ALL + - 93 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT 89 AS col2, + 94 * 52 * - + COUNT( * )
----
89
-4888

skipif mysql # not compatible
query II rowsort label-8181
SELECT 89 AS col2, + 94 * 52 * - + COUNT ( * )
----
89
-4888

query II rowsort
SELECT ALL - 39 AS col2, 57
----
-39
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8183
SELECT CASE - NULLIF ( + - 46, - 9 * + 22 + + COUNT( * ) + - COUNT( * ) * + 42 ) WHEN 53 + + 99 THEN NULL ELSE - ( 96 ) + - COALESCE ( + COALESCE ( - CAST( NULL AS SIGNED ), + 36 ), + 76 ) END + + CAST( - 35 AS SIGNED ) AS col1, 13 * COUNT( * ) AS col0
----
-167
13

skipif mysql # not compatible
query II rowsort label-8183
SELECT CASE - NULLIF ( + - 46, - 9 * + 22 + + COUNT ( * ) + - COUNT ( * ) * + 42 ) WHEN 53 + + 99 THEN NULL ELSE - ( 96 ) + - COALESCE ( + COALESCE ( - CAST ( NULL AS INTEGER ), + 36 ), + 76 ) END + + CAST ( - 35 AS INTEGER ) AS col1, 13 * COUNT ( * ) AS col0
----
-167
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT 19 - COUNT( * ) * 4
----
15

skipif mysql # not compatible
query I rowsort label-8184
SELECT 19 - COUNT ( * ) * 4
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL - SUM( 94 ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL - SUM ( 94 ) col1
----
-94

query II rowsort
SELECT 75 col2, 25 AS col2
----
75
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT 41 * - 4 + COUNT( * ) AS col0
----
-163

skipif mysql # not compatible
query I rowsort label-8187
SELECT 41 * - 4 + COUNT ( * ) AS col0
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT DISTINCT - ( + SUM( - 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT - ( + SUM ( - 18 ) )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT 88 + - COUNT( * ), 71 AS col2
----
87
71

skipif mysql # not compatible
query II rowsort label-8189
SELECT 88 + - COUNT ( * ), 71 AS col2
----
87
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8190
SELECT ALL + 76, CAST( 21 AS SIGNED ) AS col1
----
76
21

skipif mysql # not compatible
query II rowsort label-8190
SELECT ALL + 76, CAST ( 21 AS INTEGER ) AS col1
----
76
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT MAX( - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-8191
SELECT MAX ( - 17 )
----
-17

query I rowsort
SELECT ALL - COALESCE ( + 35, + + 54 ) + + + 28
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT ALL + + CAST( + + 4 AS SIGNED ) + - 81 col0
----
-77

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + + CAST ( + + 4 AS INTEGER ) + - 81 col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8194
SELECT + + MIN( - ( + + 24 ) ) DIV + 42 AS col1, 59 * 94 AS col2
----
0
5546

skipif mysql # not compatible
query II rowsort label-8194
SELECT + + MIN ( - ( + + 24 ) ) / + 42 AS col1, 59 * 94 AS col2
----
0
5546

query II rowsort
SELECT 57, - 96 * - - 36 col2
----
57
-3456

query II rowsort
SELECT - + 42, - ( + - 89 ) AS col1
----
-42
89

query I rowsort
SELECT - 93 * + 87 * + - 68 AS col0
----
550188

query II rowsort
SELECT - 11 AS col2, + 69
----
-11
69

query I rowsort
SELECT DISTINCT - + 60 + 56 + ( - 47 ) * 24 AS col0
----
-1132

query I rowsort
SELECT ALL - ( - ( - 0 ) )
----
0

query I rowsort
SELECT DISTINCT + 5 - + 56 AS col0
----
-51

query II rowsort
SELECT + - 60 AS col0, + 51 AS col1
----
-60
51

query I rowsort
SELECT ALL - 8 * + - 38 col1
----
304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT DISTINCT + COALESCE ( + 77, + + 14 * - 49, + + CAST( + 93 AS SIGNED ) + + COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + COALESCE ( + 77, + + 14 * - 49, + + CAST ( + 93 AS INTEGER ) + + COUNT ( * ) )
----
77

query I rowsort
SELECT ALL + 99 * + 21 * - 99 AS col0
----
-205821

query I rowsort
SELECT DISTINCT + NULLIF ( 9, 73 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8207
SELECT CASE + + 42 WHEN + 20 * - CAST( NULL AS SIGNED ) - - + CASE + 64 WHEN + + 22 / - - 47 * - 26 THEN - 12 / + COALESCE ( - 25, - AVG ( + - 13 ) ) * - 36 * 57 + + 73 ELSE - - 34 * 96 * + CAST( + 39 AS SIGNED ) END * - 43 * - - 85 + - - 0 + + 16 THEN - 78 * + 83 ELSE 43 END, - 84 AS col0
----
43
-84

skipif mysql # not compatible
query II rowsort label-8207
SELECT CASE + + 42 WHEN + 20 * - CAST ( NULL AS INTEGER ) - - + CASE + 64 WHEN + + 22 / - - 47 * - 26 THEN - 12 / + COALESCE ( - 25, - AVG ( + - 13 ) ) * - 36 * 57 + + 73 ELSE - - 34 * 96 * + CAST ( + 39 AS INTEGER ) END * - 43 * - - 85 + - - 0 + + 16 THEN - 78 * + 83 ELSE 43 END, - 84 AS col0
----
43
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8208
SELECT + 66 * - 46 AS col0, 52 + - - ( - 19 ) * 20 * + - 92 + - + 55 - COUNT( DISTINCT - 85 ) + 55 + + 31 * + - 27 * + ( + COUNT( * ) ) * + 77 AS col1
----
-3036
-29438

skipif mysql # not compatible
query II rowsort label-8208
SELECT + 66 * - 46 AS col0, 52 + - - ( - 19 ) * 20 * + - 92 + - + 55 - COUNT ( DISTINCT - 85 ) + 55 + + 31 * + - 27 * + ( + COUNT ( * ) ) * + 77 AS col1
----
-3036
-29438

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8209
SELECT ALL + ( - CASE 92 WHEN 63 * - + COUNT( * ) * - 47 + + 24 THEN NULL WHEN 5 THEN - 46 DIV + 78 + + ( + ( 36 ) ) * + 64 ELSE - + 92 END ) AS col2, 75
----
92
75

skipif mysql # not compatible
query II rowsort label-8209
SELECT ALL + ( - CASE 92 WHEN 63 * - + COUNT ( * ) * - 47 + + 24 THEN NULL WHEN 5 THEN - 46 / + 78 + + ( + ( 36 ) ) * + 64 ELSE - + 92 END ) AS col2, 75
----
92
75

query I rowsort
SELECT + 83 + - + 25 + - 22 * - - 41 AS col2
----
-844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8211
SELECT + NULLIF ( - - CAST( + + 64 AS SIGNED ), 61 )
----
64

skipif mysql # not compatible
query I rowsort label-8211
SELECT + NULLIF ( - - CAST ( + + 64 AS INTEGER ), 61 )
----
64

query I rowsort
SELECT NULLIF ( + 6, + 46 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT 36 * - COUNT( * ) + - 33
----
-69

skipif mysql # not compatible
query I rowsort label-8213
SELECT 36 * - COUNT ( * ) + - 33
----
-69

query I rowsort
SELECT - 4 * - + 41 + ( + + 42 )
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT + 6 * - ( + + NULLIF ( - 18, - 72 * COUNT( * ) ) )
----
108

skipif mysql # not compatible
query I rowsort label-8215
SELECT + 6 * - ( + + NULLIF ( - 18, - 72 * COUNT ( * ) ) )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL + 87 * - 51 + COUNT( * ) * - SUM( DISTINCT - 22 ) AS col2
----
-4415

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL + 87 * - 51 + COUNT ( * ) * - SUM ( DISTINCT - 22 ) AS col2
----
-4415

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT + 0 * - + COUNT( * ) * + + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8217
SELECT + 0 * - + COUNT ( * ) * + + 94 AS col0
----
0

query I rowsort
SELECT DISTINCT 49 * - 79 + - + 73
----
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT - - 7 * + COALESCE ( - 91, + - 61, + 75 + 74 ) + + 20 * COUNT( * ) + + - 51
----
-668

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT - - 7 * + COALESCE ( - 91, + - 61, + 75 + 74 ) + + 20 * COUNT ( * ) + + - 51
----
-668

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL + 69 * 19 + ( + CASE 81 WHEN + COUNT( * ) + + - 4 / - 21 THEN 92 * + AVG ( + 7 ) WHEN + 66 * + 62 + + 25 THEN NULL END ) + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + 69 * 19 + ( + CASE 81 WHEN + COUNT ( * ) + + - 4 / - 21 THEN 92 * + AVG ( + 7 ) WHEN + 66 * + 62 + + 25 THEN NULL END ) + 74 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 76 + + 76 * 73
----
5624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8222
SELECT + + 30 * + - MAX( NULLIF ( - ( - COALESCE ( - 11, - 68 DIV - 31 - - - ( - - 29 ), + + 21 ) ), + 62 ) )
----
330

skipif mysql # not compatible
query I rowsort label-8222
SELECT + + 30 * + - MAX ( NULLIF ( - ( - COALESCE ( - 11, - 68 / - 31 - - - ( - - 29 ), + + 21 ) ), + 62 ) )
----
330

query II rowsort
SELECT + + 25 * 93 col0, - 31
----
2325
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT ( + SUM( ALL + + 53 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT ( + SUM ( ALL + + 53 ) ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL ( MAX( - 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL ( MAX ( - 96 ) )
----
-96

query II rowsort
SELECT ALL + 93 * 33 AS col0, - 64 * + 60 AS col2
----
3069
-3840

query I rowsort
SELECT DISTINCT COALESCE ( - 30, - 94 ) - + 45 * - 28 + 78
----
1308

query II rowsort
SELECT - 50 + - 63 AS col2, + 52 + 66
----
-113
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT - - COUNT( * ) - - - 93 * - - 61 col1
----
-5672

skipif mysql # not compatible
query I rowsort label-8229
SELECT - - COUNT ( * ) - - - 93 * - - 61 col1
----
-5672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT + MAX( DISTINCT - - 76 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT + MAX ( DISTINCT - - 76 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 63 + - - 82 + 16
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8232
SELECT DISTINCT + 58 DIV - + COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT + 58 / - + COUNT ( * ) AS col0
----
-58

query I rowsort
SELECT ALL ( 69 ) col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT ALL + NULLIF ( + 99, - CAST( NULL AS SIGNED ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + NULLIF ( + 99, - CAST ( NULL AS INTEGER ) ) AS col0
----
99

query I rowsort
SELECT - 14 * + 17 AS col2
----
-238

query I rowsort
SELECT DISTINCT - 31 * - + 49
----
1519

onlyif mysql # aggregate syntax: 
query II rowsort label-8237
SELECT + COUNT( * ), + 55 AS col1
----
1
55

skipif mysql # not compatible
query II rowsort label-8237
SELECT + COUNT ( * ), + 55 AS col1
----
1
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8238
SELECT DISTINCT + NULLIF ( 26, + 57 * - + COUNT( * ) ) DIV ( + 92 ) + - 52 + + 25 + + - 76 DIV 81 - - COUNT( * ) + + 44 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT + NULLIF ( 26, + 57 * - + COUNT ( * ) ) / ( + 92 ) + - 52 + + 25 + + - 76 / 81 - - COUNT ( * ) + + 44 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8239
SELECT 69 * + + CASE - 57 WHEN - 59 THEN CAST( - - SUM( DISTINCT - 75 ) AS DECIMAL ) END - COALESCE ( CAST( - 5 AS SIGNED ), + - 21 - + 3 + + 47 + - ( + - CAST( NULL AS SIGNED ) ) * - 2 + 2 ) - + 27 / - + 71 + ( + - 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT 69 * + + CASE - 57 WHEN - 59 THEN CAST ( - - SUM ( DISTINCT - 75 ) AS REAL ) END - COALESCE ( CAST ( - 5 AS INTEGER ), + - 21 - + 3 + + 47 + - ( + - CAST ( NULL AS INTEGER ) ) * - 2 + 2 ) - + 27 / - + 71 + ( + - 16 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8240
SELECT DISTINCT + 71 col2, - CAST( NULL AS SIGNED )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8240
SELECT DISTINCT + 71 col2, - CAST ( NULL AS INTEGER )
----
71
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT ALL - 93 DIV + 40 + 98
----
96

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - 93 / + 40 + 98
----
96

query I rowsort
SELECT ALL + 69 * - 62 * + 9
----
-38502

query II rowsort
SELECT ALL + 90, ( - + 22 ) - - 30 AS col1
----
90
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8244
SELECT COUNT( * ) DIV + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8244
SELECT COUNT ( * ) / + 74 AS col1
----
0

query II rowsort
SELECT + 89, - 84 + 70 AS col1
----
89
-14

query I rowsort
SELECT DISTINCT + - NULLIF ( - 28, + 38 ) + + ( - 86 ) AS col2
----
-58

query I rowsort
SELECT - 39 + 37
----
-2

query I rowsort
SELECT 49 - 24 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT ALL CASE + CAST( - 27 AS SIGNED ) WHEN - COUNT( * ) THEN + - 77 / + 13 * CASE 45 WHEN - 72 * + + COUNT( * ) + + 44 THEN 63 ELSE NULL END ELSE NULL END + COUNT( * ) + - + ( + 50 ) * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL CASE + CAST ( - 27 AS INTEGER ) WHEN - COUNT ( * ) THEN + - 77 / + 13 * CASE 45 WHEN - 72 * + + COUNT ( * ) + + 44 THEN 63 ELSE NULL END ELSE NULL END + COUNT ( * ) + - + ( + 50 ) * - 69
----
NULL

query I rowsort
SELECT - 48 * - 61
----
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT - + 92 * - 73 + - + 1 + COALESCE ( + MIN( DISTINCT - 32 ), - 16 - - 67 ) AS col0
----
6683

skipif mysql # not compatible
query I rowsort label-8251
SELECT - + 92 * - 73 + - + 1 + COALESCE ( + MIN ( DISTINCT - 32 ), - 16 - - 67 ) AS col0
----
6683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT ALL COALESCE ( + 2, - 83 DIV + 1 - - - 97 + + - 63 * + MIN( ALL 93 ) + - 87 * 58 * 85 + + 46 ) - + 84 + - 27 - + COUNT( ALL + - 84 ) * 82 * + ( + + COUNT( * ) ) col1
----
-191

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL COALESCE ( + 2, - 83 / + 1 - - - 97 + + - 63 * + MIN ( ALL 93 ) + - 87 * 58 * 85 + + 46 ) - + 84 + - 27 - + COUNT ( ALL + - 84 ) * 82 * + ( + + COUNT ( * ) ) col1
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL - + COUNT( * ) * - - 5
----
-5

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - + COUNT ( * ) * - - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT DISTINCT + MIN( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT + MIN ( - 46 )
----
-46

query I rowsort
SELECT + 89 + 66
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL - MAX( - - ( ( 86 ) ) )
----
-86

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - MAX ( - - ( ( 86 ) ) )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT ALL 68 * + + NULLIF ( - MAX( + 87 ), - 57 ) * + + 60 + - ( 65 ) + + + CAST( NULL AS SIGNED ) * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL 68 * + + NULLIF ( - MAX ( + 87 ), - 57 ) * + + 60 + - ( 65 ) + + + CAST ( NULL AS INTEGER ) * 85 AS col1
----
NULL

query II rowsort
SELECT COALESCE ( + + 36, + - 73 ), - 21 col0
----
36
-21

query I rowsort
SELECT - - NULLIF ( + - 60, - COALESCE ( 40, + ( + 61 ) ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - COUNT( * ) + 45 + + - COUNT( + 54 ) + + 21 + + - 0 * + 96 * + + 78 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8260
SELECT - COUNT ( * ) + 45 + + - COUNT ( + 54 ) + + 21 + + - 0 * + 96 * + + 78 AS col0
----
64

query II rowsort
SELECT ALL 8 AS col0, 91 + - 8 + + + 86 * 30 AS col2
----
8
2663

query I rowsort
SELECT + COALESCE ( - + 18, COALESCE ( + 16, - 24 ) * - 17 * + 7 * + 20 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8263
SELECT 89 + - + 94 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT 89 + - + 94 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT COALESCE ( + 82, 40 ) * - SUM( + 90 )
----
-7380

skipif mysql # not compatible
query I rowsort label-8264
SELECT COALESCE ( + 82, 40 ) * - SUM ( + 90 )
----
-7380

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL SUM( 10 ) + 78
----
88

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL SUM ( 10 ) + 78
----
88

query I rowsort
SELECT 10 - 57 - - 5
----
-42

query I rowsort
SELECT ALL 48 * + 75 AS col0
----
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-8268
SELECT 73 DIV - 20 + + + 53
----
50

skipif mysql # not compatible
query I rowsort label-8268
SELECT 73 / - 20 + + + 53
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL - MAX( ALL 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - MAX ( ALL 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT 29 + + 69 + COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8270
SELECT 29 + + 69 + COUNT ( * ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8271
SELECT ALL + 73 + - - COALESCE ( + 23, 14 ) DIV - 58 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL + 73 + - - COALESCE ( + 23, 14 ) / - 58 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8272
SELECT ( - COUNT( DISTINCT 26 ) ) + + - CAST( - 57 AS SIGNED ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8272
SELECT ( - COUNT ( DISTINCT 26 ) ) + + - CAST ( - 57 AS INTEGER ) AS col1
----
56

query I rowsort
SELECT ALL - 10 + 24 * - - 57 AS col0
----
1358

query I rowsort
SELECT ALL 30 + - - 26 col1
----
56

query I rowsort
SELECT DISTINCT 47 + + 18
----
65

query I rowsort
SELECT ALL - ( + ( - 17 ) )
----
17

query I rowsort
SELECT ALL - ( + 17 ) * - - 4
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT ALL - NULLIF ( + 5, + 9 ) + - + ( + 45 ) DIV - + 47 + 94
----
89

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - NULLIF ( + 5, + 9 ) + - + ( + 45 ) / - + 47 + 94
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT + 56 + + + ( - ( 29 ) ) / - COUNT( * ) - + 74 / + NULLIF ( COUNT( * ), - ( - + COUNT( * ) ) ) * 32 * + ( - 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT + 56 + + + ( - ( 29 ) ) / - COUNT ( * ) - + 74 / + NULLIF ( COUNT ( * ), - ( - + COUNT ( * ) ) ) * 32 * + ( - 76 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 10 + + COALESCE ( + + 83, - + 9 ) col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8281
SELECT ALL - CASE - 6 WHEN + 42 THEN NULL WHEN - MIN( DISTINCT - + 32 ) THEN - CAST( NULL AS SIGNED ) + + ( 84 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL - CASE - 6 WHEN + 42 THEN NULL WHEN - MIN ( DISTINCT - + 32 ) THEN - CAST ( NULL AS INTEGER ) + + ( 84 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT - CAST( + 76 AS SIGNED ) * + COUNT( * ) * - - MIN( + + 47 ) * - CAST( NULL AS SIGNED ) + + ( - 83 ) + MAX( 65 ) - 61 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT - CAST ( + 76 AS INTEGER ) * + COUNT ( * ) * - - MIN ( + + 47 ) * - CAST ( NULL AS INTEGER ) + + ( - 83 ) + MAX ( 65 ) - 61 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT DISTINCT + COALESCE ( + 85, 23 ) * - + 51 + + COUNT( * )
----
-4334

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT + COALESCE ( + 85, 23 ) * - + 51 + + COUNT ( * )
----
-4334

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT - - SUM( + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT - - SUM ( + 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT CAST( + 82 AS SIGNED ) * 19
----
1558

skipif mysql # not compatible
query I rowsort label-8285
SELECT CAST ( + 82 AS INTEGER ) * 19
----
1558

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT + 20 + + 44 + + 20 * 27 DIV - 28
----
45

skipif mysql # not compatible
query I rowsort label-8286
SELECT + 20 + + 44 + + 20 * 27 / - 28
----
45

query II rowsort
SELECT DISTINCT - 59 * + 28 * 11 * 7 + - 88 col1, COALESCE ( 34, + 22 ) col0
----
-127292
34

query I rowsort
SELECT DISTINCT - - NULLIF ( 16, + + ( 42 ) )
----
16

query I rowsort
SELECT DISTINCT - NULLIF ( + ( 39 ), + - 31 - 88 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT 53 * - MIN( DISTINCT + - 80 ) + - 30 AS col0
----
4210

skipif mysql # not compatible
query I rowsort label-8290
SELECT 53 * - MIN ( DISTINCT + - 80 ) + - 30 AS col0
----
4210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8291
SELECT CAST( NULL AS SIGNED ) + + 99 + + + 63 + - ( 73 ) + - 19 * + 80 * + 70 * + 57 * + + CASE - - COUNT( * ) WHEN - 16 THEN + - 56 * 39 / - - 77 * + 79 * NULLIF ( + 8, + 20 ) + - 5 * + + 18 + + - 1 * - - 74 WHEN - 34 THEN + 56 END + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT CAST ( NULL AS INTEGER ) + + 99 + + + 63 + - ( 73 ) + - 19 * + 80 * + 70 * + 57 * + + CASE - - COUNT ( * ) WHEN - 16 THEN + - 56 * 39 / - - 77 * + 79 * NULLIF ( + 8, + 20 ) + - 5 * + + 18 + + - 1 * - - 74 WHEN - 34 THEN + 56 END + - - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT - COALESCE ( MAX( 22 ), MIN( + - 41 ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8292
SELECT - COALESCE ( MAX ( 22 ), MIN ( + - 41 ) ) AS col2
----
-22

query I rowsort
SELECT ALL - 26 * - 95
----
2470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8294
SELECT + COUNT( * ) DIV + MIN( CAST( + 12 AS SIGNED ) ) - - 22 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT + COUNT ( * ) / + MIN ( CAST ( + 12 AS INTEGER ) ) - - 22 / + 70 AS col0
----
0

query I rowsort
SELECT ( + 6 ) - - 70
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL - COUNT( * ) + - ( + 82 ) + + - 39 + - + 22 * - 89 * - ( + 1 )
----
-2080

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL - COUNT ( * ) + - ( + 82 ) + + - 39 + - + 22 * - 89 * - ( + 1 )
----
-2080

query I rowsort
SELECT ALL + 86 + + COALESCE ( - COALESCE ( + + 73, + 22 * - + 11, - - 96 ), + 92 ) - + 43
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT ALL CAST( + - COALESCE ( 89, - 91, + 22 + - CAST( NULL AS SIGNED ) + 92 * 71 / ( - + 9 ) + - + 12 / - COUNT( * ) ) AS SIGNED ) + - 40 + - ( 45 ) + 36 * - + COUNT( * ) * + MIN( + 82 ) col2
----
-3126

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL CAST ( + - COALESCE ( 89, - 91, + 22 + - CAST ( NULL AS INTEGER ) + 92 * 71 / ( - + 9 ) + - + 12 / - COUNT ( * ) ) AS INTEGER ) + - 40 + - ( 45 ) + 36 * - + COUNT ( * ) * + MIN ( + 82 ) col2
----
-3126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT 77 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT 77 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT 7 + - + COUNT( * ) col0
----
6

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT 7 + - + COUNT ( * ) col0
----
6

query I rowsort
SELECT 22 - 89
----
-67

query I rowsort
SELECT 29 * - 38 col0
----
-1102

query I rowsort
SELECT ALL 42 + - ( - ( + - 48 ) ) * + 15 AS col0
----
-678

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL COUNT( * ) + - 9 * + NULLIF ( + 65, 74 ) * 37
----
-21644

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL COUNT ( * ) + - 9 * + NULLIF ( + 65, 74 ) * 37
----
-21644

query II rowsort
SELECT 63 AS col1, 46
----
63
46

query I rowsort
SELECT - CASE - 65 WHEN 48 THEN NULL ELSE + + 93 END
----
-93

query I rowsort
SELECT DISTINCT 77 + + 69 AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT + COUNT( * ), 37 AS col0
----
1
37

skipif mysql # not compatible
query II rowsort label-8308
SELECT + COUNT ( * ), 37 AS col0
----
1
37

query I rowsort
SELECT ALL 95 * - ( - + 48 ) * - 39 AS col1
----
-177840

query I rowsort
SELECT + 1 * - 34
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8311
SELECT ALL + COUNT( * ) * 25 + - 17, + 41 AS col2
----
8
41

skipif mysql # not compatible
query II rowsort label-8311
SELECT ALL + COUNT ( * ) * 25 + - 17, + 41 AS col2
----
8
41

query I rowsort
SELECT DISTINCT - 45 * 75 + - ( 34 )
----
-3409

onlyif mysql # DIV for integer division: 
query II rowsort label-8313
SELECT DISTINCT + 70, 24 DIV COALESCE ( 93, - 65 * 57 * - 59 ) col1
----
70
0

skipif mysql # not compatible
query II rowsort label-8313
SELECT DISTINCT + 70, 24 / COALESCE ( 93, - 65 * 57 * - 59 ) col1
----
70
0

query II rowsort
SELECT + 65 + + + 85 * - 95, + 29 col2
----
-8010
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8315
SELECT ALL 76 * - ( 52 ), ( + ( + 53 ) ) * + SUM( ALL + + 70 ) AS col0
----
-3952
3710

skipif mysql # not compatible
query II rowsort label-8315
SELECT ALL 76 * - ( 52 ), ( + ( + 53 ) ) * + SUM ( ALL + + 70 ) AS col0
----
-3952
3710

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT - 66 * - COUNT( * ) + - - 13 - + + MAX( DISTINCT 64 ) + + 80 + + 13 * - 8 * 77 AS col1
----
-7913

skipif mysql # not compatible
query I rowsort label-8316
SELECT - 66 * - COUNT ( * ) + - - 13 - + + MAX ( DISTINCT 64 ) + + 80 + + 13 * - 8 * 77 AS col1
----
-7913

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT COALESCE ( + 10, - COUNT( * ) - - + 74 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8317
SELECT COALESCE ( + 10, - COUNT ( * ) - - + 74 ) AS col1
----
10

query I rowsort
SELECT 26 * - 87 - - 84 AS col0
----
-2178

query II rowsort
SELECT - 0 * ( 21 ) AS col2, + ( - + 22 ) AS col0
----
0
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL + COUNT( - 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + COUNT ( - 11 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8321
SELECT - + 60 DIV 48 DIV + 29 AS col2, 69 AS col0
----
0
69

skipif mysql # not compatible
query II rowsort label-8321
SELECT - + 60 / 48 / + 29 AS col2, 69 AS col0
----
0
69

query II rowsort
SELECT + + 58 AS col2, - 99
----
58
-99

query I rowsort
SELECT + + 41 + 51 * 46 AS col0
----
2387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT - 46 * 27 * + - 38 + - - NULLIF ( - CAST( 47 AS SIGNED ), - 19 + - + 28 ) * - + 29 / - 96 + - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT - 46 * 27 * + - 38 + - - NULLIF ( - CAST ( 47 AS INTEGER ), - 19 + - + 28 ) * - + 29 / - 96 + - 39 AS col2
----
NULL

query I rowsort
SELECT - 16 * 74
----
-1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8326
SELECT DISTINCT - + 26 * + CAST( NULL AS SIGNED ) * + 51 + - 9 + + 33 - 42 * - COUNT( * ) + MIN( DISTINCT - 11 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT - + 26 * + CAST ( NULL AS INTEGER ) * + 51 + - 9 + + 33 - 42 * - COUNT ( * ) + MIN ( DISTINCT - 11 ) AS col2
----
NULL

query I rowsort
SELECT - - 86 * + 38 AS col1
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - 74 + + - 26 * + 36 * + 28 + + COUNT( * ) + + - 33 * 33
----
-27370

skipif mysql # not compatible
query I rowsort label-8328
SELECT - 74 + + - 26 * + 36 * + 28 + + COUNT ( * ) + + - 33 * 33
----
-27370

query I rowsort
SELECT DISTINCT - 73 + + 31 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL - COUNT( * ) + + 12 * - 39 + 14 AS col1
----
-455

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - COUNT ( * ) + + 12 * - 39 + 14 AS col1
----
-455

query I rowsort
SELECT ALL + 9 + - 57 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT + COUNT( * ) + + 23 * + + 72 * - 99 * - 73 * - 28 + - COUNT( * ) AS col1
----
-335101536

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + COUNT ( * ) + + 23 * + + 72 * - 99 * - 73 * - 28 + - COUNT ( * ) AS col1
----
-335101536

onlyif mysql # aggregate syntax: 
query II rowsort label-8333
SELECT - 83 * - COUNT( * ), + 55 col2
----
83
55

skipif mysql # not compatible
query II rowsort label-8333
SELECT - 83 * - COUNT ( * ), + 55 col2
----
83
55

query I rowsort
SELECT - 1 + - 74 AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8335
SELECT ALL + 10 + 48 + + + CASE - ( - 42 ) WHEN + 1 + SUM( ALL CAST( CAST( + 68 AS SIGNED ) AS SIGNED ) ) THEN - 52 WHEN + AVG ( DISTINCT 44 ) THEN + 72 ELSE NULL END, + 23 + + MAX( + CAST( + 33 AS SIGNED ) ) + + CASE WHEN - 49 NOT BETWEEN ( - 69 ) AND + 36 + CASE 77 WHEN - COUNT( * ) THEN NULL ELSE + 95 * 10 / MAX( 33 ) END + SUM( ALL + + 94 ) THEN NULL ELSE + 77 - + 55 - - + 91 * - 33 END * + - 57 AS col0
----
NULL
169973

skipif mysql # not compatible
query II rowsort label-8335
SELECT ALL + 10 + 48 + + + CASE - ( - 42 ) WHEN + 1 + SUM ( ALL CAST ( CAST ( + 68 AS INTEGER ) AS INTEGER ) ) THEN - 52 WHEN + AVG ( DISTINCT 44 ) THEN + 72 ELSE NULL END, + 23 + + MAX ( + CAST ( + 33 AS INTEGER ) ) + + CASE WHEN - 49 NOT BETWEEN ( - 69 ) AND + 36 + CASE 77 WHEN - COUNT ( * ) THEN NULL ELSE + 95 * 10 / MAX ( 33 ) END + SUM ( ALL + + 94 ) THEN NULL ELSE + 77 - + 55 - - + 91 * - 33 END * + - 57 AS col0
----
NULL
169973

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL 89 - - - 34 + - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL 89 - - - 34 + - - COUNT ( * )
----
56

query I rowsort
SELECT + 30 * + 24 AS col0
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8338
SELECT CAST( NULL AS SIGNED ), 52 + + ( 0 ) AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-8338
SELECT CAST ( NULL AS INTEGER ), 52 + + ( 0 ) AS col0
----
NULL
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8339
SELECT 47 DIV + 63 + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-8339
SELECT 47 / + 63 + - 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT + COUNT( * ) + + + 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8340
SELECT + COUNT ( * ) + + + 70 AS col1
----
71

query I rowsort
SELECT + 94 * - 67
----
-6298

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8342
SELECT + 7, CAST( NULL AS SIGNED ) AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8342
SELECT + 7, CAST ( NULL AS INTEGER ) AS col0
----
7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8343
SELECT 81 * + 51 + + - COUNT( * ) + 76 + + 29 * - + 50, 6 DIV - 59 AS col1
----
2756
0

skipif mysql # not compatible
query II rowsort label-8343
SELECT 81 * + 51 + + - COUNT ( * ) + 76 + + 29 * - + 50, 6 / - 59 AS col1
----
2756
0

query I rowsort
SELECT DISTINCT + 70 * - + 16 AS col2
----
-1120

query I rowsort
SELECT DISTINCT + ( ( - 17 ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + - 31 * 87 * - MIN( + 67 ) + 44 AS col0
----
180743

skipif mysql # not compatible
query I rowsort label-8346
SELECT + - 31 * 87 * - MIN ( + 67 ) + 44 AS col0
----
180743

query I rowsort
SELECT ALL + 20 * 20 col0
----
400

onlyif mysql # aggregate syntax: 
query II rowsort label-8348
SELECT + 64 AS col2, 23 + + COUNT( * ) AS col1
----
64
24

skipif mysql # not compatible
query II rowsort label-8348
SELECT + 64 AS col2, 23 + + COUNT ( * ) AS col1
----
64
24

query I rowsort
SELECT DISTINCT 34 * - 56
----
-1904

query I rowsort
SELECT ALL + ( - - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL - MAX( DISTINCT - 82 ) * + 63
----
5166

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL - MAX ( DISTINCT - 82 ) * + 63
----
5166

onlyif mysql # aggregate syntax: 
query II rowsort label-8352
SELECT + + 71 * + COUNT( * ), + 71
----
71
71

skipif mysql # not compatible
query II rowsort label-8352
SELECT + + 71 * + COUNT ( * ), + 71
----
71
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8353
SELECT + ( - NULLIF ( - 54, - - 77 ) ) * + 70 + - NULLIF ( - + 2, 58 + + 30 ) DIV - ( - ( - - COUNT( * ) ) ) + - CAST( COUNT( ALL - 16 ) AS SIGNED ) + - 77 AS col1
----
3704

skipif mysql # not compatible
query I rowsort label-8353
SELECT + ( - NULLIF ( - 54, - - 77 ) ) * + 70 + - NULLIF ( - + 2, 58 + + 30 ) / - ( - ( - - COUNT ( * ) ) ) + - CAST ( COUNT ( ALL - 16 ) AS INTEGER ) + - 77 AS col1
----
3704

onlyif mysql # aggregate syntax: 
query II rowsort label-8354
SELECT ALL + 93 AS col2, - 14 - + - COALESCE ( 60, 39 * + - 71 * - - 41 + + - COUNT( * ), - COUNT( * ) ) - 84 AS col2
----
93
-38

skipif mysql # not compatible
query II rowsort label-8354
SELECT ALL + 93 AS col2, - 14 - + - COALESCE ( 60, 39 * + - 71 * - - 41 + + - COUNT ( * ), - COUNT ( * ) ) - 84 AS col2
----
93
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT - 5 + - 73 + - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-8355
SELECT - 5 + - 73 + - COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT COUNT( - 19 ) * - - 64 + - 58 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT COUNT ( - 19 ) * - - 64 + - 58 AS col0
----
6

query I rowsort
SELECT DISTINCT - ( - 67 ) * 90 + 70 + - + 1 + + 36 - 99 + + 68 AS col2
----
6104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT - + 55 DIV - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-8358
SELECT - + 55 / - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT ALL MAX( - + 56 ) DIV 46
----
-1

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL MAX ( - + 56 ) / 46
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8360
SELECT DISTINCT CASE MIN( 59 ) WHEN - 68 * - 49 + - 89 THEN - 39 + 35 WHEN 86 + - 87 THEN + - CAST( NULL AS SIGNED ) - - - COUNT( * ) - + COUNT( * ) * - 70 + + - 27 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT CASE MIN ( 59 ) WHEN - 68 * - 49 + - 89 THEN - 39 + 35 WHEN 86 + - 87 THEN + - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) - + COUNT ( * ) * - 70 + + - 27 END col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8361
SELECT + CAST( NULL AS DECIMAL ) + + 68 + ( 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT + CAST ( NULL AS REAL ) + + 68 + ( 68 ) AS col0
----
NULL

query I rowsort
SELECT - 96 * - - 72
----
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT - MAX( - 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8363
SELECT - MAX ( - 26 ) AS col1
----
26

query I rowsort
SELECT DISTINCT 31 + + - 81 * - + 80 AS col1
----
6511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8365
SELECT ALL - 24 - + + 24 + 86 + + CAST( NULL AS SIGNED ) + + + 89 + 33 * + COUNT( DISTINCT 24 ) * - 75 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL - 24 - + + 24 + 86 + + CAST ( NULL AS INTEGER ) + + + 89 + 33 * + COUNT ( DISTINCT 24 ) * - 75 * 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT 44 + - ( + - ( - + SUM( 64 ) ) ) * - + 95 + 14 AS col0
----
6138

skipif mysql # not compatible
query I rowsort label-8366
SELECT 44 + - ( + - ( - + SUM ( 64 ) ) ) * - + 95 + 14 AS col0
----
6138

query I rowsort
SELECT 47 * ( + ( - - 56 ) ) AS col1
----
2632

query II rowsort
SELECT ALL + 61 - + 64, 70 col0
----
-3
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT 37 DIV - NULLIF ( - CASE + + 21 WHEN + - COUNT( * ) * - + 1 + + ( + MIN( ALL - + ( + - ( - + 26 ) ) ) ) + - + 46 - + 24 * + - 29 THEN 6 + - + ( - 53 ) DIV + 61 + - + 25 * AVG ( - NULLIF ( + + 49, - + 57 + + + 79 ) ) DIV - + ( - + ( 80 ) ) * - 50 WHEN 79 THEN NULL ELSE + 45 * - 2 + - ( + 88 ) END, - - 56 * 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT 37 / - NULLIF ( - CASE + + 21 WHEN + - COUNT ( * ) * - + 1 + + ( + MIN ( ALL - + ( + - ( - + 26 ) ) ) ) + - + 46 - + 24 * + - 29 THEN 6 + - + ( - 53 ) / + 61 + - + 25 * AVG ( - NULLIF ( + + 49, - + 57 + + + 79 ) ) / - + ( - + ( 80 ) ) * - 50 WHEN 79 THEN NULL ELSE + 45 * - 2 + - ( + 88 ) END, - - 56 * 97 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8370
SELECT ALL + 88 DIV - 24, 32 AS col0
----
-3
32

skipif mysql # not compatible
query II rowsort label-8370
SELECT ALL + 88 / - 24, 32 AS col0
----
-3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL + 52 * + - NULLIF ( + COUNT( * ), + NULLIF ( + 71, + + 98 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + 52 * + - NULLIF ( + COUNT ( * ), + NULLIF ( + 71, + + 98 ) )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT ALL + 79 DIV + 14
----
5

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + 79 / + 14
----
5

query I rowsort
SELECT ALL 82 * + - 39 AS col0
----
-3198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8374
SELECT ALL - COUNT( - 27 ), 27 * + CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8374
SELECT ALL - COUNT ( - 27 ), 27 * + CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + - 97 * - + COUNT( + 27 )
----
97

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + - 97 * - + COUNT ( + 27 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT + CAST( NULL AS SIGNED ) * - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT + CAST ( NULL AS INTEGER ) * - 46 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8377
SELECT COUNT( * ) * + CAST( - 77 AS SIGNED ) - + COALESCE ( - + 23, + 65 )
----
-54

skipif mysql # not compatible
query I rowsort label-8377
SELECT COUNT ( * ) * + CAST ( - 77 AS INTEGER ) - + COALESCE ( - + 23, + 65 )
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-8378
SELECT ALL - 80 * - - 14 AS col1, NULLIF ( 62, + 58 ) DIV + 58 AS col1
----
-1120
1

skipif mysql # not compatible
query II rowsort label-8378
SELECT ALL - 80 * - - 14 AS col1, NULLIF ( 62, + 58 ) / + 58 AS col1
----
-1120
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - ( - 52 ) * + 2 - + + 33 * + 33 + - 41 + - 11 * + + CASE + COUNT( DISTINCT + 19 ) WHEN + + ( + 59 ) * 11 THEN NULL ELSE + 43 END
----
-1499

skipif mysql # not compatible
query I rowsort label-8379
SELECT - ( - 52 ) * + 2 - + + 33 * + 33 + - 41 + - 11 * + + CASE + COUNT ( DISTINCT + 19 ) WHEN + + ( + 59 ) * 11 THEN NULL ELSE + 43 END
----
-1499

query I rowsort
SELECT 0 * + 25 - 93 + 57 + + 59 - + 89 + 44 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT + NULLIF ( - COUNT( * ), - 39 + + 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8381
SELECT + NULLIF ( - COUNT ( * ), - 39 + + 67 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT 20 * 98 * COUNT( * ) * 46 * - 58 AS col2
----
-5229280

skipif mysql # not compatible
query I rowsort label-8382
SELECT 20 * 98 * COUNT ( * ) * 46 * - 58 AS col2
----
-5229280

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT + - 75 DIV - + 16 - - + 49
----
53

skipif mysql # not compatible
query I rowsort label-8383
SELECT + - 75 / - + 16 - - + 49
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL - COUNT( * ) + - 52 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL - COUNT ( * ) + - 52 AS col1
----
-53

query I rowsort
SELECT ALL - - 79 + + ( + 10 )
----
89

query I rowsort
SELECT ALL + 64 + - - ( + + 54 )
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT + COUNT( * ) * + 84 + - + 85 AS col2, + 11
----
-1
11

skipif mysql # not compatible
query II rowsort label-8387
SELECT + COUNT ( * ) * + 84 + - + 85 AS col2, + 11
----
-1
11

query I rowsort
SELECT ALL + 53 + + ( - 21 ) AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL 95 * + 54 + - COALESCE ( + - COUNT( * ), + 91, + - 43 * 83 - - 50 + 26 - + ( CAST( NULL AS SIGNED ) ) ) + + 18
----
5149

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL 95 * + 54 + - COALESCE ( + - COUNT ( * ), + 91, + - 43 * 83 - - 50 + 26 - + ( CAST ( NULL AS INTEGER ) ) ) + + 18
----
5149

query I rowsort
SELECT ALL 52 + + - 85 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT - + 74 * 5 - + 2 DIV + MIN( + 24 )
----
-370

skipif mysql # not compatible
query I rowsort label-8391
SELECT - + 74 * 5 - + 2 / + MIN ( + 24 )
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT + MIN( - - 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8392
SELECT + MIN ( - - 91 ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT - 5 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT - 5 - - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 26 + + 73
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8395
SELECT DISTINCT - 61 AS col0, 0 + 39 * - CASE 7 WHEN COUNT( * ) + + 20 THEN - ( CAST( NULL AS SIGNED ) ) END
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-8395
SELECT DISTINCT - 61 AS col0, 0 + 39 * - CASE 7 WHEN COUNT ( * ) + + 20 THEN - ( CAST ( NULL AS INTEGER ) ) END
----
-61
NULL

query I rowsort
SELECT 32 + 29 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ( 26 ) * ( + MIN( 14 ) ) AS col0
----
364

skipif mysql # not compatible
query I rowsort label-8397
SELECT ( 26 ) * ( + MIN ( 14 ) ) AS col0
----
364

query I rowsort
SELECT DISTINCT 72 * - 32
----
-2304

query II rowsort
SELECT ALL 46 AS col1, + 3 AS col1
----
46
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8400
SELECT COUNT( * ) + + - 66 DIV 29 AS col2, + 90 * + 61
----
-1
5490

skipif mysql # not compatible
query II rowsort label-8400
SELECT COUNT ( * ) + + - 66 / 29 AS col2, + 90 * + 61
----
-1
5490

query II rowsort
SELECT ALL 48, - 79 AS col1
----
48
-79

query I rowsort
SELECT 22 + + 93
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8403
SELECT ALL - ( - 40 ) DIV 70 + - - 99 * - + 13 + ( + COUNT( * ) ) + - 99 col0
----
-1385

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL - ( - 40 ) / 70 + - - 99 * - + 13 + ( + COUNT ( * ) ) + - 99 col0
----
-1385

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL + 92 - - MAX( - + 76 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL + 92 - - MAX ( - + 76 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT COALESCE ( - + 13, 37 ) + NULLIF ( - COUNT( * ), MAX( + 50 ) ) * - - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8405
SELECT COALESCE ( - + 13, 37 ) + NULLIF ( - COUNT ( * ), MAX ( + 50 ) ) * - - COUNT ( * ) AS col0
----
-14

query I rowsort
SELECT 18 + 16
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT 57 + MAX( DISTINCT 71 )
----
128

skipif mysql # not compatible
query I rowsort label-8407
SELECT 57 + MAX ( DISTINCT 71 )
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-8408
SELECT ALL + 92 * ( - 81 ), + COUNT( * ) + + 21 AS col2
----
-7452
22

skipif mysql # not compatible
query II rowsort label-8408
SELECT ALL + 92 * ( - 81 ), + COUNT ( * ) + + 21 AS col2
----
-7452
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT 22 AS col0, + COUNT( * ) * + + 28 AS col0
----
22
28

skipif mysql # not compatible
query II rowsort label-8409
SELECT 22 AS col0, + COUNT ( * ) * + + 28 AS col0
----
22
28

query I rowsort
SELECT 53 + 30 AS col0
----
83

query II rowsort
SELECT ALL 83, 20 AS col2
----
83
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT 63 + - - COUNT( * ) + 21 * + CAST( NULL AS SIGNED ) / - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT 63 + - - COUNT ( * ) + 21 * + CAST ( NULL AS INTEGER ) / - 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT - 37 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-8413
SELECT - 37 / 41
----
0

query I rowsort
SELECT 97 * - - 64
----
6208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8415
SELECT + 40 DIV + COUNT( * ) + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8415
SELECT + 40 / + COUNT ( * ) + - COUNT ( * )
----
39

query I rowsort
SELECT ALL 32 * + + ( + 38 ) + 0 AS col2
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - SUM( ALL + 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8417
SELECT - SUM ( ALL + 32 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT + COALESCE ( + ( + + CASE + 59 WHEN COUNT( * ) THEN - 5 END ), - - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-8418
SELECT + COALESCE ( + ( + + CASE + 59 WHEN COUNT ( * ) THEN - 5 END ), - - 37 )
----
37

query I rowsort
SELECT + 73 + 31 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL SUM( 47 ) * - MIN( ALL + 52 ) + + 60 * + 27 AS col2
----
-824

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL SUM ( 47 ) * - MIN ( ALL + 52 ) + + 60 * + 27 AS col2
----
-824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8421
SELECT ALL COALESCE ( + 3, 45 + - SUM( + 77 ) DIV + COALESCE ( + + 85, - 12 ) - 45 ) * + 61 + - + 93
----
90

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL COALESCE ( + 3, 45 + - SUM ( + 77 ) / + COALESCE ( + + 85, - 12 ) - 45 ) * + 61 + - + 93
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT ALL - 99 DIV - + 49
----
2

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL - 99 / - + 49
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT - 40 DIV + 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT - 40 / + 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL + + MAX( ALL - + 89 ) * - 62 + - MIN( ALL + 68 ) AS col1
----
5450

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + + MAX ( ALL - + 89 ) * - 62 + - MIN ( ALL + 68 ) AS col1
----
5450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8425
SELECT - ( + COUNT( * ) ) DIV SUM( + 20 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8425
SELECT - ( + COUNT ( * ) ) / SUM ( + 20 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT - 60 * ( - - MIN( DISTINCT + 50 ) ) + + ( - 43 )
----
-3043

skipif mysql # not compatible
query I rowsort label-8426
SELECT - 60 * ( - - MIN ( DISTINCT + 50 ) ) + + ( - 43 )
----
-3043

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - NULLIF ( 82, + 83 - - 93 + + COUNT( + 95 ) * - 22 * + - COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-8427
SELECT - NULLIF ( 82, + 83 - - 93 + + COUNT ( + 95 ) * - 22 * + - COUNT ( * ) )
----
-82

query I rowsort
SELECT ALL + 41 - + 68 + ( - - 34 ) * 51
----
1707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8429
SELECT - CAST( MIN( - 58 ) AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8429
SELECT - CAST ( MIN ( - 58 ) AS INTEGER ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT + MIN( DISTINCT + 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT + MIN ( DISTINCT + 70 ) AS col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT ALL 43 DIV - - 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL 43 / - - 99 col1
----
0

query I rowsort
SELECT - 38 * 14 + - - 66 - 46 AS col0
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + COUNT( * ) + - 50 * COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-8433
SELECT + COUNT ( * ) + - 50 * COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT - COALESCE ( - NULLIF ( 77, + COALESCE ( - 98, + 28 + 63 + - 62 / 63 / 67 + 0 ) / NULLIF ( + 37, - 69 ) ), - - CASE - 22 WHEN MAX( DISTINCT 60 ) THEN + 99 END * - + 37 )
----
77

skipif mysql # not compatible
query I rowsort label-8434
SELECT - COALESCE ( - NULLIF ( 77, + COALESCE ( - 98, + 28 + 63 + - 62 / 63 / 67 + 0 ) / NULLIF ( + 37, - 69 ) ), - - CASE - 22 WHEN MAX ( DISTINCT 60 ) THEN + 99 END * - + 37 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT ALL 12 * + 94 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL 12 * + 94 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT DISTINCT 0 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT 0 / + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL MAX( DISTINCT - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL MAX ( DISTINCT - 65 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8438
SELECT ALL CAST( + MAX( 93 ) AS SIGNED ) + - COALESCE ( - + CAST( NULL AS SIGNED ), - 72 ) AS col2
----
165

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL CAST ( + MAX ( 93 ) AS INTEGER ) + - COALESCE ( - + CAST ( NULL AS INTEGER ), - 72 ) AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT DISTINCT 29 + + 50 - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT 29 + + 50 - COUNT ( * )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8440
SELECT + + COUNT( * ) DIV + - COUNT( ALL + 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8440
SELECT + + COUNT ( * ) / + - COUNT ( ALL + 27 ) AS col1
----
-1

query I rowsort
SELECT + + 27 * + 62 AS col2
----
1674

query I rowsort
SELECT DISTINCT + 22 + - 88 + + 84
----
18

query I rowsort
SELECT + - 58 * 52 * + + 62 AS col0
----
-186992

onlyif mysql # aggregate syntax: 
query II rowsort label-8444
SELECT - - 52 * - COUNT( * ), - COUNT( * ) AS col2
----
-52
-1

skipif mysql # not compatible
query II rowsort label-8444
SELECT - - 52 * - COUNT ( * ), - COUNT ( * ) AS col2
----
-52
-1

query I rowsort
SELECT - CASE WHEN NOT - 87 IS NOT NULL THEN 92 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8446
SELECT ALL - - 4 + - - 15 AS col0, 56 DIV - 36 AS col2
----
19
-1

skipif mysql # not compatible
query II rowsort label-8446
SELECT ALL - - 4 + - - 15 AS col0, 56 / - 36 AS col2
----
19
-1

query I rowsort
SELECT + 11 * - + 61 AS col2
----
-671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT ALL + - CAST( - + 62 AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL + - CAST ( - + 62 AS INTEGER ) AS col2
----
62

query I rowsort
SELECT DISTINCT - 70 * - ( + 69 ) AS col1
----
4830

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8450
SELECT ALL + - 92 * 98 + + 85 + - COUNT( * ), 77 DIV - - 83 AS col0
----
-8932
0

skipif mysql # not compatible
query II rowsort label-8450
SELECT ALL + - 92 * 98 + + 85 + - COUNT ( * ), 77 / - - 83 AS col0
----
-8932
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT MAX( + + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-8451
SELECT MAX ( + + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT ALL + MAX( DISTINCT - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL + MAX ( DISTINCT - 9 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT DISTINCT - 54 DIV - + 61 * - 25
----
0

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - 54 / - + 61 * - 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8454
SELECT - - 36 DIV - 94 + - + 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8454
SELECT - - 36 / - 94 + - + 78 AS col1
----
-78

query I rowsort
SELECT ALL - ( + 20 ) * 15
----
-300

query I rowsort
SELECT - 40 + ( 30 )
----
-10

query I rowsort
SELECT - 2 * - 27 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT DISTINCT - 82 DIV + 9 col1
----
-9

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - 82 / + 9 col1
----
-9

query I rowsort
SELECT COALESCE ( 38, - ( - 47 ) )
----
38

query I rowsort
SELECT ALL + ( - + 39 )
----
-39

query I rowsort
SELECT DISTINCT + 10 * - 84
----
-840

query I rowsort
SELECT - 66 * 13 AS col2
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT - 31 - + 35 - + + MIN( - 6 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8463
SELECT - 31 - + 35 - + + MIN ( - 6 ) AS col2
----
-60

query I rowsort
SELECT - 42 * - 73 AS col2
----
3066

onlyif mysql # aggregate syntax: 
query II rowsort label-8465
SELECT + COUNT( * ) + 20 * + 47 * 43 - - 0 AS col0, - 12 + - + 91 AS col1
----
40421
-103

skipif mysql # not compatible
query II rowsort label-8465
SELECT + COUNT ( * ) + 20 * + 47 * 43 - - 0 AS col0, - 12 + - + 91 AS col1
----
40421
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT MIN( ALL - - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-8466
SELECT MIN ( ALL - - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL + ( - COUNT( 6 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + ( - COUNT ( 6 ) )
----
-1

query I rowsort
SELECT ALL ( 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT - 12 * - MIN( DISTINCT - 22 )
----
-264

skipif mysql # not compatible
query I rowsort label-8469
SELECT - 12 * - MIN ( DISTINCT - 22 )
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - SUM( - + 24 ) + 31 * - 79 AS col2
----
-2425

skipif mysql # not compatible
query I rowsort label-8470
SELECT - SUM ( - + 24 ) + 31 * - 79 AS col2
----
-2425

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8471
SELECT ALL 59 * + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL 59 * + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT MAX( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8472
SELECT MAX ( DISTINCT 96 )
----
96

query I rowsort
SELECT ALL 76 + + - CASE + 16 WHEN + 50 THEN - 10 + - 27 WHEN + - 29 THEN + 38 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8474
SELECT COUNT( * ) AS col1, 71 + + + CASE 18 WHEN - 37 / + COALESCE ( - + 33, 45 * + CASE ( 12 ) WHEN 97 THEN + 47 / + 88 + CASE - + 88 WHEN - 78 THEN + + CAST( NULL AS DECIMAL ) ELSE + + 91 * + - 71 END + + 31 + CAST( 28 AS SIGNED ) END + + + 5 ) / - CAST( 6 AS DECIMAL ) THEN SUM( + 38 ) ELSE + NULLIF ( - - 16, 36 ) + + 33 - - CAST( NULL AS DECIMAL ) + + 78 END + 36 + + 3 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8474
SELECT COUNT ( * ) AS col1, 71 + + + CASE 18 WHEN - 37 / + COALESCE ( - + 33, 45 * + CASE ( 12 ) WHEN 97 THEN + 47 / + 88 + CASE - + 88 WHEN - 78 THEN + + CAST ( NULL AS REAL ) ELSE + + 91 * + - 71 END + + 31 + CAST ( 28 AS INTEGER ) END + + + 5 ) / - CAST ( 6 AS REAL ) THEN SUM ( + 38 ) ELSE + NULLIF ( - - 16, 36 ) + + 33 - - CAST ( NULL AS REAL ) + + 78 END + 36 + + 3 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT - ( NULLIF ( - - MAX( DISTINCT - COALESCE ( 51, - 80 ) ), + + 33 ) )
----
51

skipif mysql # not compatible
query I rowsort label-8475
SELECT - ( NULLIF ( - - MAX ( DISTINCT - COALESCE ( 51, - 80 ) ), + + 33 ) )
----
51

query I rowsort
SELECT DISTINCT 64 + - 11 AS col2
----
53

query I rowsort
SELECT DISTINCT 82 + - 27 * + 92
----
-2402

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8478
SELECT + - 23 + - + 92 + NULLIF ( 95, - CAST( NULL AS SIGNED ) ) DIV + NULLIF ( 63, ( - AVG ( - 16 ) ) ) col0
----
-114

skipif mysql # not compatible
query I rowsort label-8478
SELECT + - 23 + - + 92 + NULLIF ( 95, - CAST ( NULL AS INTEGER ) ) / + NULLIF ( 63, ( - AVG ( - 16 ) ) ) col0
----
-114

query I rowsort
SELECT DISTINCT - 60 * - 50
----
3000

query I rowsort
SELECT ALL 12 + - - 48 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT + COUNT( ALL - 32 ) + - SUM( 49 ) * - + CASE + 64 WHEN - 5 THEN NULL WHEN COUNT( * ) + - COUNT( * ) THEN - 43 ELSE - 50 * + COUNT( * ) END
----
-2449

skipif mysql # not compatible
query I rowsort label-8481
SELECT + COUNT ( ALL - 32 ) + - SUM ( 49 ) * - + CASE + 64 WHEN - 5 THEN NULL WHEN COUNT ( * ) + - COUNT ( * ) THEN - 43 ELSE - 50 * + COUNT ( * ) END
----
-2449

query I rowsort
SELECT + - 21 + - 12 AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL + CAST( NULL AS SIGNED ) + + ( 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( 52 ) AS col1
----
NULL

query I rowsort
SELECT + ( + - 73 ) + 71 AS col2
----
-2

query I rowsort
SELECT ALL 14 - 59 * + + 89 * 41
----
-215277

onlyif mysql # DIV for integer division: 
query I rowsort label-8486
SELECT ALL - 16 DIV - 4
----
4

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL - 16 / - 4
----
4

query II rowsort
SELECT - 68, 22 - + 40 AS col2
----
-68
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8488
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col2, 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-8488
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col2, 56
----
NULL
56

query I rowsort
SELECT - 11 * 0 - + 42 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT ALL - 95 AS col0, ( MIN( DISTINCT + 52 ) )
----
-95
52

skipif mysql # not compatible
query II rowsort label-8490
SELECT ALL - 95 AS col0, ( MIN ( DISTINCT + 52 ) )
----
-95
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT + + MAX( - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8491
SELECT + + MAX ( - 18 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT ALL - 64 * 96 DIV - + 2
----
3072

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - 64 * 96 / - + 2
----
3072

query I rowsort
SELECT 29 * - + 41 * + + 61
----
-72529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT ALL - MIN( - CAST( 94 AS SIGNED ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - MIN ( - CAST ( 94 AS INTEGER ) ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT 97 * NULLIF ( - 2, + + 11 / 91 * + SUM( + + ( - 34 ) ) * - + 39 + + + 90 ) + 87 * 69 + 92
----
5901

skipif mysql # not compatible
query I rowsort label-8495
SELECT 97 * NULLIF ( - 2, + + 11 / 91 * + SUM ( + + ( - 34 ) ) * - + 39 + + + 90 ) + 87 * 69 + 92
----
5901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8496
SELECT COUNT( * ) * + 85 * COALESCE ( + 40, + - CAST( 53 AS SIGNED ) ) * + 98 + - COUNT( + 44 )
----
333199

skipif mysql # not compatible
query I rowsort label-8496
SELECT COUNT ( * ) * + 85 * COALESCE ( + 40, + - CAST ( 53 AS INTEGER ) ) * + 98 + - COUNT ( + 44 )
----
333199

query II rowsort
SELECT 90 AS col2, + 28 AS col2
----
90
28

query I rowsort
SELECT + 12 * + 99 + 90 * - 62
----
-4392

onlyif mysql # aggregate syntax: 
query II rowsort label-8499
SELECT DISTINCT - 99, 50 * - SUM( ALL + - 72 ) AS col2
----
-99
3600

skipif mysql # not compatible
query II rowsort label-8499
SELECT DISTINCT - 99, 50 * - SUM ( ALL + - 72 ) AS col2
----
-99
3600

query I rowsort
SELECT ALL + 33 + 37 + + - 39 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT + 16 + + - CASE + - 4 WHEN + COUNT( - + 76 ) / 93 * - + 40 THEN NULL ELSE - COUNT( * ) END
----
17

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + 16 + + - CASE + - 4 WHEN + COUNT ( - + 76 ) / 93 * - + 40 THEN NULL ELSE - COUNT ( * ) END
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8502
SELECT 57 * + 41 AS col0, - 57 + + COUNT( * )
----
2337
-56

skipif mysql # not compatible
query II rowsort label-8502
SELECT 57 * + 41 AS col0, - 57 + + COUNT ( * )
----
2337
-56

query I rowsort
SELECT ALL + COALESCE ( - 17, 28 ) + + 94 * 38
----
3555

query I rowsort
SELECT DISTINCT + 89 + - NULLIF ( + 73, + 22 )
----
16

query I rowsort
SELECT 37 - - 71
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT 43 * - - COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8506
SELECT 43 * - - COUNT ( * ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT - 92 * - 64 + - - 36 + + + 45 + COUNT( * ) + + + 76 + - MAX( + 72 ) * - 18 - + + 21
----
7321

skipif mysql # not compatible
query I rowsort label-8507
SELECT - 92 * - 64 + - - 36 + + + 45 + COUNT ( * ) + + + 76 + - MAX ( + 72 ) * - 18 - + + 21
----
7321

query II rowsort
SELECT DISTINCT 28, 13 * - 77 AS col0
----
28
-1001

query I rowsort
SELECT DISTINCT + 89 + - 5 AS col2
----
84

query II rowsort
SELECT - 33 AS col1, 5 * - 85 AS col0
----
-33
-425

query I rowsort
SELECT ALL - 26 + + + 31 AS col2
----
5

query I rowsort
SELECT ALL + 72 + + 75 * + 81 col2
----
6147

query II rowsort
SELECT + 33, 57 col2
----
33
57

query II rowsort
SELECT + 67 AS col0, 8
----
67
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8515
SELECT - CAST( ( - 72 ) AS SIGNED ) - ( 94 ) * - COUNT( * ), COALESCE ( + 98, + 97 DIV COUNT( 44 ), + 67 ) * 41 AS col1
----
166
4018

skipif mysql # not compatible
query II rowsort label-8515
SELECT - CAST ( ( - 72 ) AS INTEGER ) - ( 94 ) * - COUNT ( * ), COALESCE ( + 98, + 97 / COUNT ( 44 ), + 67 ) * 41 AS col1
----
166
4018

query II rowsort
SELECT ALL - 61 AS col2, 98 AS col1
----
-61
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT ALL + COALESCE ( ( + 66 ), - 21 + 17 * COUNT( * ) ) - + 73 + - + 9 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + COALESCE ( ( + 66 ), - 21 + 17 * COUNT ( * ) ) - + 73 + - + 9 AS col1
----
-16

query I rowsort
SELECT - + ( - 59 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT + - MIN( DISTINCT 65 ) - - 58
----
-7

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + - MIN ( DISTINCT 65 ) - - 58
----
-7

query I rowsort
SELECT + 50 + + + 8 AS col1
----
58

query I rowsort
SELECT 10 * 38 AS col2
----
380

query I rowsort
SELECT + 82 - ( - + 77 )
----
159

query I rowsort
SELECT 89 * + - 8
----
-712

query I rowsort
SELECT 33 * + 88
----
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL SUM( - - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL SUM ( - - 35 )
----
35

query I rowsort
SELECT DISTINCT + ( 17 ) * + 11
----
187

onlyif mysql # DIV for integer division: 
query II rowsort label-8527
SELECT ALL + 53, 88 DIV - + 89 AS col0
----
53
0

skipif mysql # not compatible
query II rowsort label-8527
SELECT ALL + 53, 88 / - + 89 AS col0
----
53
0

query I rowsort
SELECT ( - 76 ) * - - 86
----
-6536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8529
SELECT ALL - + CASE WHEN 49 BETWEEN - 89 / 87 AND + 15 THEN NULL WHEN ( NULL ) IN ( ( + - 9 ) / - 14, 70, + + 95, CASE + 89 WHEN ( + CASE + 20 WHEN - + 45 THEN - - 64 END ) THEN + + 56 / ( - ( - 39 ) ) * + 18 + - 15 - - - COUNT( * ) * + + 56 * MAX( - 29 ) ELSE 0 * 53 * + - 6 END * - CAST( + 76 AS SIGNED ), COUNT( * ) ) THEN - 35 * + 89 + 3 * - CASE 93 WHEN 18 / + 27 - + + 23 * - 18 * - + 17 - 79 THEN NULL WHEN 77 * + 49 THEN + 86 + + 84 END * - NULLIF ( 45 * 4, 90 + + 59 ) + 51 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL - + CASE WHEN 49 BETWEEN - 89 / 87 AND + 15 THEN NULL WHEN ( NULL ) IN ( ( + - 9 ) / - 14, 70, + + 95, CASE + 89 WHEN ( + CASE + 20 WHEN - + 45 THEN - - 64 END ) THEN + + 56 / ( - ( - 39 ) ) * + 18 + - 15 - - - COUNT ( * ) * + + 56 * MAX ( - 29 ) ELSE 0 * 53 * + - 6 END * - CAST ( + 76 AS INTEGER ), COUNT ( * ) ) THEN - 35 * + 89 + 3 * - CASE 93 WHEN 18 / + 27 - + + 23 * - 18 * - + 17 - 79 THEN NULL WHEN 77 * + 49 THEN + 86 + + 84 END * - NULLIF ( 45 * 4, 90 + + 59 ) + 51 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8530
SELECT - 31 DIV - COUNT( * ) + - 72 * + - 27
----
1975

skipif mysql # not compatible
query I rowsort label-8530
SELECT - 31 / - COUNT ( * ) + - 72 * + - 27
----
1975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT DISTINCT 71 DIV - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT 71 / - COUNT ( * ) AS col2
----
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8532
SELECT CAST( NULL AS DECIMAL ) + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT CAST ( NULL AS REAL ) + - 44
----
NULL

query I rowsort
SELECT DISTINCT 19 + + 58 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8534
SELECT ALL + 29 * ( - SUM( CAST( NULL AS SIGNED ) ) ) / - 56 AS col2, 92 AS col1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-8534
SELECT ALL + 29 * ( - SUM ( CAST ( NULL AS INTEGER ) ) ) / - 56 AS col2, 92 AS col1
----
NULL
92

query I rowsort
SELECT ALL - 75 + + + 14 AS col1
----
-61

query I rowsort
SELECT 38 * - + 60 + + 36 * + 59 * - + 2
----
-6528

query I rowsort
SELECT ALL 54 + 46 AS col0
----
100

query I rowsort
SELECT ALL 6 + 17 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT 47 + SUM( + 32 ) + + + MAX( + 30 ) * 23 AS col1
----
769

skipif mysql # not compatible
query I rowsort label-8539
SELECT 47 + SUM ( + 32 ) + + + MAX ( + 30 ) * 23 AS col1
----
769

query I rowsort
SELECT ( - - 40 ) * + + 40
----
1600

query I rowsort
SELECT ALL - 39 + + 16 * 18
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT COUNT( + 48 ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-8542
SELECT COUNT ( + 48 ) + - 83
----
-82

query I rowsort
SELECT ALL + - 10 * + 13 + - + 23
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT + SUM( ALL 77 ) * 33 * + - 31 * - + ( 67 )
----
5277657

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + SUM ( ALL 77 ) * 33 * + - 31 * - + ( 67 )
----
5277657

onlyif mysql # aggregate syntax: 
query II rowsort label-8545
SELECT - 30 + + NULLIF ( 52, - COUNT( ALL - 97 ) ), + 19 AS col2
----
22
19

skipif mysql # not compatible
query II rowsort label-8545
SELECT - 30 + + NULLIF ( 52, - COUNT ( ALL - 97 ) ), + 19 AS col2
----
22
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT 35 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT 35 / 41
----
0

query I rowsort
SELECT 79 * 37 * - - 37 * 43
----
4650493

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL + - COUNT( * ) * 61 * - - 15 + - 3 AS col1
----
-918

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL + - COUNT ( * ) * 61 * - - 15 + - 3 AS col1
----
-918

query I rowsort
SELECT - ( - ( - + 66 ) ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT ALL CAST( ( CAST( - 24 AS SIGNED ) ) AS SIGNED ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL CAST ( ( CAST ( - 24 AS INTEGER ) ) AS INTEGER ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT - - 19 * - COUNT( * ) * - - 93 col2
----
-1767

skipif mysql # not compatible
query I rowsort label-8551
SELECT - - 19 * - COUNT ( * ) * - - 93 col2
----
-1767

query II rowsort
SELECT ALL + ( 13 ), + 10 AS col0
----
13
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT DISTINCT CAST( - ( - 53 ) AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT CAST ( - ( - 53 ) AS INTEGER )
----
53

query II rowsort
SELECT - - 37 + 19 AS col1, 59
----
56
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8555
SELECT DISTINCT + - 88 + - 29 AS col2, - 62 * - + 86 + + SUM( DISTINCT + - 88 ) + - CAST( NULL AS SIGNED ) + - - ( + MAX( DISTINCT + 86 ) ) + - 27 + 42 * - 45
----
-117
NULL

skipif mysql # not compatible
query II rowsort label-8555
SELECT DISTINCT + - 88 + - 29 AS col2, - 62 * - + 86 + + SUM ( DISTINCT + - 88 ) + - CAST ( NULL AS INTEGER ) + - - ( + MAX ( DISTINCT + 86 ) ) + - 27 + 42 * - 45
----
-117
NULL

query I rowsort
SELECT - 2 * + 10 AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8557
SELECT + 66 DIV + 68 * + 1 * + 97 + + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8557
SELECT + 66 / + 68 * + 1 * + 97 + + - COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT + 39, 46 AS col0
----
39
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8559
SELECT ALL + 65 * + + NULLIF ( + COALESCE ( - 95, - - 4 - + 10 * - 88 + - COUNT( * ) ), 54 ) + + + 67 - + SUM( ALL + ( ( - + 16 ) ) ) + - 84 * + CAST( NULL AS SIGNED ) AS col1, 90 * - MAX( + 54 ) * 38
----
NULL
-184680

skipif mysql # not compatible
query II rowsort label-8559
SELECT ALL + 65 * + + NULLIF ( + COALESCE ( - 95, - - 4 - + 10 * - 88 + - COUNT ( * ) ), 54 ) + + + 67 - + SUM ( ALL + ( ( - + 16 ) ) ) + - 84 * + CAST ( NULL AS INTEGER ) AS col1, 90 * - MAX ( + 54 ) * 38
----
NULL
-184680

query I rowsort
SELECT DISTINCT 53 * + 39 * + 44 + 28 + 15 * + 58
----
91846

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL 91 * + NULLIF ( + - 3, + CASE 47 WHEN + - CASE 90 WHEN 4 THEN NULL WHEN + - ( + + NULLIF ( 69, COUNT( ALL + 70 ) ) ) * 13 * - COALESCE ( + 48, + 31 * - - MIN( ALL - - 48 ) ) THEN + - 45 END THEN 45 END ) + + + 29 + + 22 + - 88 * - COUNT( * )
----
-134

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL 91 * + NULLIF ( + - 3, + CASE 47 WHEN + - CASE 90 WHEN 4 THEN NULL WHEN + - ( + + NULLIF ( 69, COUNT ( ALL + 70 ) ) ) * 13 * - COALESCE ( + 48, + 31 * - - MIN ( ALL - - 48 ) ) THEN + - 45 END THEN 45 END ) + + + 29 + + 22 + - 88 * - COUNT ( * )
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8562
SELECT ALL + 49 * + 80 * - COUNT( * ) * 68 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL + 49 * + 80 * - COUNT ( * ) * 68 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT CASE 57 WHEN 36 THEN 61 WHEN + SUM( + + 41 ) + + 75 THEN + 67 END, - ( - 96 ) col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-8563
SELECT CASE 57 WHEN 36 THEN 61 WHEN + SUM ( + + 41 ) + + 75 THEN + 67 END, - ( - 96 ) col1
----
NULL
96

query I rowsort
SELECT ALL + CASE - 88 WHEN + 65 - ( 77 ) / - 12 THEN NULL WHEN - 54 THEN - 76 + 60 ELSE 24 END col2
----
24

query I rowsort
SELECT - 36 * - + 53 * + 36 AS col0
----
68688

query I rowsort
SELECT + 42 * + 30 AS col0
----
1260

query II rowsort
SELECT + 10, - 78 + 7 AS col0
----
10
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT + MIN( + - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-8568
SELECT + MIN ( + - 78 ) AS col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT + 94 DIV 53 * 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8569
SELECT + 94 / 53 * 92 AS col0
----
92

query I rowsort
SELECT + 6 * 35 AS col2
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8571
SELECT + 12 * - 24 / + CASE - - 66 WHEN 6 THEN - - 10 * + 96 + 91 + - 3 * - - 75 + + 29 + - 12 * - 84 + CAST( NULL AS SIGNED ) * - + COUNT( * ) + 44 WHEN + - 7 THEN + NULLIF ( - 56, + - 91 ) ELSE NULL END * - NULLIF ( - 27, 4 + - 44 + + 69 + 21 * + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT + 12 * - 24 / + CASE - - 66 WHEN 6 THEN - - 10 * + 96 + 91 + - 3 * - - 75 + + 29 + - 12 * - 84 + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 44 WHEN + - 7 THEN + NULLIF ( - 56, + - 91 ) ELSE NULL END * - NULLIF ( - 27, 4 + - 44 + + 69 + 21 * + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + ( + COUNT( * ) ) + + 89 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8572
SELECT + ( + COUNT ( * ) ) + + 89 AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8573
SELECT + COALESCE ( + - 48, CAST( - ( 19 ) AS SIGNED ), - 19 ), 86 * - 47 AS col2
----
-48
-4042

skipif mysql # not compatible
query II rowsort label-8573
SELECT + COALESCE ( + - 48, CAST ( - ( 19 ) AS INTEGER ), - 19 ), 86 * - 47 AS col2
----
-48
-4042

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8574
SELECT ALL NULLIF ( COUNT( * ), + CAST( - 71 AS DECIMAL ) ) * - 74 - - 35
----
-39

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL NULLIF ( COUNT ( * ), + CAST ( - 71 AS REAL ) ) * - 74 - - 35
----
-39

query I rowsort
SELECT + COALESCE ( - - 3, - 0 + - - 14 ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8576
SELECT + 75 * + + ( + 41 ) * - COALESCE ( 81, CASE + 94 WHEN - COALESCE ( - 42, + 75 * - - 59 + 6 * - 89 ) THEN - 67 + + - 40 - + 95 ELSE NULL END * - 76 + + - 38 + COUNT( * ) DIV - 28 * - 82 * + - COUNT( * ) ) AS col0
----
-249075

skipif mysql # not compatible
query I rowsort label-8576
SELECT + 75 * + + ( + 41 ) * - COALESCE ( 81, CASE + 94 WHEN - COALESCE ( - 42, + 75 * - - 59 + 6 * - 89 ) THEN - 67 + + - 40 - + 95 ELSE NULL END * - 76 + + - 38 + COUNT ( * ) / - 28 * - 82 * + - COUNT ( * ) ) AS col0
----
-249075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT ALL + 53 * + + 99 * + COALESCE ( + + 13, + - CAST( NULL AS SIGNED ) ) + NULLIF ( - + 74, + - 38 )
----
68137

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + 53 * + + 99 * + COALESCE ( + + 13, + - CAST ( NULL AS INTEGER ) ) + NULLIF ( - + 74, + - 38 )
----
68137

query I rowsort
SELECT + COALESCE ( 41, ( 55 ) * + 47, - + 0 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + - COUNT( DISTINCT - 47 ) * + 37 + + 58 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8579
SELECT + - COUNT ( DISTINCT - 47 ) * + 37 + + 58 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - - 93 + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8580
SELECT - - 93 + + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8581
SELECT ALL 24 col1, 96 * - - 15 * - - ( - + COUNT( * ) ) - + 71 col2
----
24
-1511

skipif mysql # not compatible
query II rowsort label-8581
SELECT ALL 24 col1, 96 * - - 15 * - - ( - + COUNT ( * ) ) - + 71 col2
----
24
-1511

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8582
SELECT + ( + + CAST( + 23 AS SIGNED ) ) col0, + 72
----
23
72

skipif mysql # not compatible
query II rowsort label-8582
SELECT + ( + + CAST ( + 23 AS INTEGER ) ) col0, + 72
----
23
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT DISTINCT + CASE + + 41 WHEN CASE + - 88 WHEN + CASE - 53 WHEN AVG ( ALL - 65 ) THEN NULL ELSE - 60 * 66 END THEN + 25 + 43 WHEN - 73 + 56 / - + CASE + CAST( - 82 AS SIGNED ) WHEN - + 39 * 84 THEN + 49 * + CAST( NULL AS SIGNED ) + - 33 END THEN NULL ELSE + - 86 END THEN 42 * - - ( - + 65 ) ELSE - 78 END AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT + CASE + + 41 WHEN CASE + - 88 WHEN + CASE - 53 WHEN AVG ( ALL - 65 ) THEN NULL ELSE - 60 * 66 END THEN + 25 + 43 WHEN - 73 + 56 / - + CASE + CAST ( - 82 AS INTEGER ) WHEN - + 39 * 84 THEN + 49 * + CAST ( NULL AS INTEGER ) + - 33 END THEN NULL ELSE + - 86 END THEN 42 * - - ( - + 65 ) ELSE - 78 END AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL - 37 * + - COUNT( * ) + + - COUNT( * ) - + 91 * - - 42 + MIN( ALL - + 64 ) + - 14 * + - ( COUNT( * ) ) + NULLIF ( + 50, - 68 + + COUNT( * ) * + 44 - + 41 ) * 79 * + 21 AS col2
----
79114

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - 37 * + - COUNT ( * ) + + - COUNT ( * ) - + 91 * - - 42 + MIN ( ALL - + 64 ) + - 14 * + - ( COUNT ( * ) ) + NULLIF ( + 50, - 68 + + COUNT ( * ) * + 44 - + 41 ) * 79 * + 21 AS col2
----
79114

query I rowsort
SELECT + 77 * + 7 AS col0
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT + 82 + + - COUNT( - COALESCE ( + 17, + 4 * ( - 58 ) ) ) col0
----
81

skipif mysql # not compatible
query I rowsort label-8586
SELECT + 82 + + - COUNT ( - COALESCE ( + 17, + 4 * ( - 58 ) ) ) col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT - - COUNT( DISTINCT + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-8587
SELECT - - COUNT ( DISTINCT + 34 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT ALL + 46 * + CAST( - - 83 AS SIGNED ) * - CAST( + + 13 AS SIGNED ) AS col1
----
-49634

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + 46 * + CAST ( - - 83 AS INTEGER ) * - CAST ( + + 13 AS INTEGER ) AS col1
----
-49634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT - COUNT( * ) DIV - 99 + - 79 * - 67
----
5293

skipif mysql # not compatible
query I rowsort label-8589
SELECT - COUNT ( * ) / - 99 + - 79 * - 67
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT + + COUNT( ALL - ( + + NULLIF ( - 79, 86 ) ) ) * + 66 + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8590
SELECT + + COUNT ( ALL - ( + + NULLIF ( - 79, 86 ) ) ) * + 66 + + COUNT ( * )
----
67

query I rowsort
SELECT - + 66 * - 3 AS col1
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT ALL + 85 + - 20 + + CAST( NULL AS SIGNED ) * + COUNT( * ) + + 63 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL + 85 + - 20 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 63 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT + + NULLIF ( + 29, + + 90 * 89 * - 14 ) DIV ( - 38 ) + - ( 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-8593
SELECT + + NULLIF ( + 29, + + 90 * 89 * - 14 ) / ( - 38 ) + - ( 83 )
----
-83

query I rowsort
SELECT ALL - + 98 + 91
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8595
SELECT - 80 - - COALESCE ( - + CASE WHEN + 88 >= 1 THEN - 29 * + 12 * + 79 + + 24 DIV COUNT( * ) * 35 * 51 ELSE 20 * 86 - - 71 - COUNT( * ) END, NULLIF ( - ( 43 ), COUNT( * ) DIV - + 84 * + 75 - - COUNT( * ) ) ) + + COUNT( * ) * - 0, - COUNT( * ) * + ( + - 62 ) AS col2
----
-15428
62

skipif mysql # not compatible
query II rowsort label-8595
SELECT - 80 - - COALESCE ( - + CASE WHEN + 88 >= 1 THEN - 29 * + 12 * + 79 + + 24 / COUNT ( * ) * 35 * 51 ELSE 20 * 86 - - 71 - COUNT ( * ) END, NULLIF ( - ( 43 ), COUNT ( * ) / - + 84 * + 75 - - COUNT ( * ) ) ) + + COUNT ( * ) * - 0, - COUNT ( * ) * + ( + - 62 ) AS col2
----
-15428
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT 43 + + 72 + - 73 + MIN( DISTINCT + NULLIF ( + + ( + 85 ), + 14 * + 95 ) )
----
127

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT 43 + + 72 + - 73 + MIN ( DISTINCT + NULLIF ( + + ( + 85 ), + 14 * + 95 ) )
----
127

query I rowsort
SELECT ALL - 74 + - 85 AS col2
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8598
SELECT DISTINCT + 20 + + NULLIF ( + - ( - 17 ), 4 + + - 11 + CAST( NULL AS SIGNED ) - - + ( + - COUNT( * ) ) ) DIV - + 58 * - + 63 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT + 20 + + NULLIF ( + - ( - 17 ), 4 + + - 11 + CAST ( NULL AS INTEGER ) - - + ( + - COUNT ( * ) ) ) / - + 58 * - + 63 AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8599
SELECT ALL 62 DIV - - COUNT( * ) + + 66 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL 62 / - - COUNT ( * ) + + 66 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8600
SELECT + SUM( DISTINCT - 51 ) AS col1, - CAST( NULL AS SIGNED ) * SUM( DISTINCT + ( 77 ) ) + + ( + 7 )
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-8600
SELECT + SUM ( DISTINCT - 51 ) AS col1, - CAST ( NULL AS INTEGER ) * SUM ( DISTINCT + ( 77 ) ) + + ( + 7 )
----
-51
NULL

query I rowsort
SELECT DISTINCT + ( + 64 ) AS col2
----
64

query I rowsort
SELECT - 36 + 17 + + - 88 * - - 73 AS col1
----
-6443

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8603
SELECT + 80 DIV + 20 - - 44 DIV MIN( - 76 ) + + - 15 * - 15
----
229

skipif mysql # not compatible
query I rowsort label-8603
SELECT + 80 / + 20 - - 44 / MIN ( - 76 ) + + - 15 * - 15
----
229

query I rowsort
SELECT - 18 * + 73 * - + 31 AS col0
----
40734

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT ALL 99 DIV - + ( - 38 ) - + NULLIF ( + + 11, + 78 )
----
-9

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL 99 / - + ( - 38 ) - + NULLIF ( + + 11, + 78 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8606
SELECT - 30 * - NULLIF ( + 16, - 54 ) AS col1, - 35 * - COUNT( DISTINCT - 49 ) AS col0
----
480
35

skipif mysql # not compatible
query II rowsort label-8606
SELECT - 30 * - NULLIF ( + 16, - 54 ) AS col1, - 35 * - COUNT ( DISTINCT - 49 ) AS col0
----
480
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8607
SELECT + 80 DIV NULLIF ( CAST( + 21 AS SIGNED ), - 30 + + 77 ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8607
SELECT + 80 / NULLIF ( CAST ( + 21 AS INTEGER ), - 30 + + 77 ) + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT - ( + SUM( ( - + ( - 74 ) ) ) ) + ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT - ( + SUM ( ( - + ( - 74 ) ) ) ) + ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT ALL 42 / - 0 * - + CAST( NULL AS SIGNED ) - + COUNT( * ) + - 1 / + 88 * + 95 * + 3 - - - 26 * 49 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL 42 / - 0 * - + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + - 1 / + 88 * + 95 * + 3 - - - 26 * 49 / + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 85 * + 99 AS col0
----
-8415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8611
SELECT COUNT( * ) * - COUNT( ALL CAST( NULL AS DECIMAL ) ) + CASE + - COUNT( * ) WHEN + - COUNT( * ) THEN 77 * 8 WHEN + - NULLIF ( + COUNT( * ), + 87 + - COUNT( * ) ) + 85 THEN NULL END
----
616

skipif mysql # not compatible
query I rowsort label-8611
SELECT COUNT ( * ) * - COUNT ( ALL CAST ( NULL AS REAL ) ) + CASE + - COUNT ( * ) WHEN + - COUNT ( * ) THEN 77 * 8 WHEN + - NULLIF ( + COUNT ( * ), + 87 + - COUNT ( * ) ) + 85 THEN NULL END
----
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8612
SELECT ALL - 24 * 85 - COUNT( * ) DIV - SUM( - + 27 ) * + COUNT( * ) * - 7 AS col2
----
-2040

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL - 24 * 85 - COUNT ( * ) / - SUM ( - + 27 ) * + COUNT ( * ) * - 7 AS col2
----
-2040

query I rowsort
SELECT + + 13 * 99 col1
----
1287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8614
SELECT 49 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT 49 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL - - CASE 54 WHEN + + 31 THEN - - MAX( - + 30 ) WHEN - + ( - COUNT( * ) ) * - MAX( + 12 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - - CASE 54 WHEN + + 31 THEN - - MAX ( - + 30 ) WHEN - + ( - COUNT ( * ) ) * - MAX ( + 12 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT - NULLIF ( + MAX( ( - 5 ) ), 51 ) * + 44
----
220

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT - NULLIF ( + MAX ( ( - 5 ) ), 51 ) * + 44
----
220

query I rowsort
SELECT DISTINCT ( 95 ) AS col0
----
95

query I rowsort
SELECT 18 * + 30
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT DISTINCT + 75 + + NULLIF ( 16, + COUNT( * ) ) + - MIN( + - 72 ) AS col0
----
163

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT + 75 + + NULLIF ( 16, + COUNT ( * ) ) + - MIN ( + - 72 ) AS col0
----
163

query I rowsort
SELECT ALL - 6 + 33 * + 86 - + 0
----
2832

query I rowsort
SELECT + 28 + 99 + + - 4 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT 98 + - COUNT( * ) + - - MIN( - 94 ) + - 66
----
-63

skipif mysql # not compatible
query I rowsort label-8622
SELECT 98 + - COUNT ( * ) + - - MIN ( - 94 ) + - 66
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - COUNT( * ) * CASE - ( - - 26 ) WHEN - AVG ( ALL + 84 ) * + 12 + 5 THEN 43 + + 38 WHEN - COALESCE ( - + 69, 40 ) / - 79 THEN - 76 END * + - 97 + + + 15 + - + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT - COUNT ( * ) * CASE - ( - - 26 ) WHEN - AVG ( ALL + 84 ) * + 12 + 5 THEN 43 + + 38 WHEN - COALESCE ( - + 69, 40 ) / - 79 THEN - 76 END * + - 97 + + + 15 + - + 14 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT ALL CAST( 44 AS SIGNED ) + + 3
----
47

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL CAST ( 44 AS INTEGER ) + + 3
----
47

query II rowsort
SELECT 75 + - - 24 AS col1, 97 AS col0
----
99
97

query I rowsort
SELECT ALL + 34 + + 60 * + ( 77 )
----
4654

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT MIN( - - 72 ) + - + NULLIF ( 30, - - 34 ) + 76 * + 8 + - COUNT( + 71 )
----
649

skipif mysql # not compatible
query I rowsort label-8627
SELECT MIN ( - - 72 ) + - + NULLIF ( 30, - - 34 ) + 76 * + 8 + - COUNT ( + 71 )
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL - 70 + 61 + + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL - 70 + 61 + + COUNT ( * )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT CAST( NULL AS SIGNED ) * + - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT CAST ( NULL AS INTEGER ) * + - 23 AS col2
----
NULL

query I rowsort
SELECT 76 * 6
----
456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8631
SELECT ( + CAST( NULL AS SIGNED ) ) * + 97, + 5 AS col1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8631
SELECT ( + CAST ( NULL AS INTEGER ) ) * + 97, + 5 AS col1
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT 30 * COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT 30 * COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8633
SELECT DISTINCT - NULLIF ( + + 67, + + 91 * - - 84 * - - NULLIF ( + MIN( - 61 ), 24 ) + - - 24 - 73 ) AS col2, - 11 * 34
----
-67
-374

skipif mysql # not compatible
query II rowsort label-8633
SELECT DISTINCT - NULLIF ( + + 67, + + 91 * - - 84 * - - NULLIF ( + MIN ( - 61 ), 24 ) + - - 24 - 73 ) AS col2, - 11 * 34
----
-67
-374

query I rowsort
SELECT 88 * - + 39 AS col0
----
-3432

query I rowsort
SELECT ALL - ( + - NULLIF ( 85, - 40 + - 22 + 79 + + - 46 ) )
----
85

query I rowsort
SELECT 1 * 84 AS col1
----
84

query II rowsort
SELECT ALL - 36, - 71 col1
----
-36
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT - COALESCE ( + + 86, - NULLIF ( - 50, - - 64 - 63 * COUNT( * ) - + 54 * - + 79 * - 83 ), - 77 )
----
-86

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - COALESCE ( + + 86, - NULLIF ( - 50, - - 64 - 63 * COUNT ( * ) - + 54 * - + 79 * - 83 ), - 77 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT - COUNT( - 20 ) * + 1
----
-1

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT - COUNT ( - 20 ) * + 1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT DISTINCT - CAST( - 78 AS SIGNED ) col1
----
78

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT - CAST ( - 78 AS INTEGER ) col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - COUNT( * ) * 7 - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-8641
SELECT - COUNT ( * ) * 7 - COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL + COUNT( * ) + 7
----
8

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + COUNT ( * ) + 7
----
8

query I rowsort
SELECT DISTINCT + 19 + + 72 * 59 AS col0
----
4267

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT - 92 * - 48 + COUNT( DISTINCT - 21 )
----
4417

skipif mysql # not compatible
query I rowsort label-8644
SELECT - 92 * - 48 + COUNT ( DISTINCT - 21 )
----
4417

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT 12 DIV 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8645
SELECT 12 / 21 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT DISTINCT ( - ( - COUNT( * ) ) ) DIV + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) / + 30 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT COUNT( * ) * - 59 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8647
SELECT COUNT ( * ) * - 59 AS col1
----
-59

query I rowsort
SELECT ALL 91 * + 92 AS col1
----
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT + 2 + - 19 * COUNT( + 45 + 50 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT + 2 + - 19 * COUNT ( + 45 + 50 ) AS col1
----
-17

query I rowsort
SELECT DISTINCT 26 + 61 col2
----
87

query I rowsort
SELECT DISTINCT 84 + 3
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT 31 * CAST( + 61 AS SIGNED ) AS col0
----
1891

skipif mysql # not compatible
query I rowsort label-8652
SELECT 31 * CAST ( + 61 AS INTEGER ) AS col0
----
1891

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT 90 - - ( COUNT( * ) ) * ( - 49 + - 41 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT 90 - - ( COUNT ( * ) ) * ( - 49 + - 41 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 48 * 2 AS col0
----
96

query I rowsort
SELECT 72 - + 52 * 85 AS col0
----
-4348

onlyif mysql # DIV for integer division: 
query I rowsort label-8656
SELECT DISTINCT 82 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT 82 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ( MAX( 66 ) ) * - 97
----
-6402

skipif mysql # not compatible
query I rowsort label-8657
SELECT ( MAX ( 66 ) ) * - 97
----
-6402

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL COUNT( * ) * 97
----
97

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL COUNT ( * ) * 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT CASE - MIN( ALL - 19 ) WHEN + 51 / 50 THEN 83 END / - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT CASE - MIN ( ALL - 19 ) WHEN + 51 / 50 THEN 83 END / - 53 AS col2
----
NULL

query I rowsort
SELECT - 5 - CASE 49 WHEN 65 * - 29 + AVG ( DISTINCT - 33 ) THEN 37 / 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT + SUM( ( - 59 ) ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT + SUM ( ( - 59 ) ) col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8662
SELECT + ( 65 ) DIV - COUNT( * ) + 5 * + 61
----
240

skipif mysql # not compatible
query I rowsort label-8662
SELECT + ( 65 ) / - COUNT ( * ) + 5 * + 61
----
240

query I rowsort
SELECT + + 36 + + 2
----
38

query I rowsort
SELECT ALL + 30 * + 61
----
1830

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT + ( - MAX( DISTINCT + 44 ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT + ( - MAX ( DISTINCT + 44 ) ) AS col0
----
-44

query I rowsort
SELECT DISTINCT - + 70 * 90 + + 24 AS col0
----
-6276

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + COUNT( * ) * NULLIF ( + 33, + 69 + 80 ) + + 46
----
79

skipif mysql # not compatible
query I rowsort label-8667
SELECT + COUNT ( * ) * NULLIF ( + 33, + 69 + 80 ) + + 46
----
79

query I rowsort
SELECT ALL - 50 * 8 + 40 AS col0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - + COUNT( * ) * 11 + COUNT( DISTINCT + 84 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8669
SELECT - + COUNT ( * ) * 11 + COUNT ( DISTINCT + 84 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT + 7 * + 78 + COUNT( * ) AS col1
----
547

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + 7 * + 78 + COUNT ( * ) AS col1
----
547

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - NULLIF ( 11, MIN( DISTINCT + 86 ) ) * - MIN( 6 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8671
SELECT - NULLIF ( 11, MIN ( DISTINCT + 86 ) ) * - MIN ( 6 ) AS col0
----
66

query I rowsort
SELECT - 84 + 62
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT COUNT( * ) + - 72 * 8
----
-575

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT COUNT ( * ) + - 72 * 8
----
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8674
SELECT 18 * - 98 + + COALESCE ( - CAST( - 22 AS SIGNED ), 14 ) * 94 AS col0
----
304

skipif mysql # not compatible
query I rowsort label-8674
SELECT 18 * - 98 + + COALESCE ( - CAST ( - 22 AS INTEGER ), 14 ) * 94 AS col0
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT MAX( 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT MAX ( 5 ) AS col2
----
5

query I rowsort
SELECT DISTINCT NULLIF ( - 89, + 67 )
----
-89

query I rowsort
SELECT ALL + 4 - 26 AS col1
----
-22

query I rowsort
SELECT - ( 86 ) * + 77
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - COUNT( * ) + + + 8
----
7

skipif mysql # not compatible
query I rowsort label-8679
SELECT - COUNT ( * ) + + + 8
----
7

query I rowsort
SELECT - ( + 60 ) - - 84
----
24

query I rowsort
SELECT DISTINCT + 70 - + 24 + 97 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT + COUNT( * ) + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8682
SELECT + COUNT ( * ) + 29 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8683
SELECT + CAST( 7 AS SIGNED ) DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-8683
SELECT + CAST ( 7 AS INTEGER ) / + 60
----
0

query I rowsort
SELECT - CASE + + 4 WHEN 5 * 40 + 26 THEN - 97 END * 21 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT + CAST( 80 AS SIGNED ) * 36 AS col1
----
2880

skipif mysql # not compatible
query I rowsort label-8685
SELECT + CAST ( 80 AS INTEGER ) * 36 AS col1
----
2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT ALL 1 / - 35 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL 1 / - 35 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( - - 7 ) + + 25
----
18

query I rowsort
SELECT DISTINCT CASE 53 WHEN 43 THEN - 61 WHEN 48 + 77 * + 85 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - MIN( - + 81 ) + - 91 * + CASE - COUNT( * ) WHEN 17 + - ( + 37 ) / - 64 THEN 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT - MIN ( - + 81 ) + - 91 * + CASE - COUNT ( * ) WHEN 17 + - ( + 37 ) / - 64 THEN 99 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 95 * - + 20 AS col0
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT ( + CASE WHEN NOT NULL BETWEEN NULL AND NULL THEN NULL ELSE + COUNT( * ) END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT ( + CASE WHEN NOT NULL BETWEEN NULL AND NULL THEN NULL ELSE + COUNT ( * ) END ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT + NULLIF ( + 66, - 75 ) + CAST( 64 AS SIGNED ) * - 49 AS col2
----
-3070

skipif mysql # not compatible
query I rowsort label-8692
SELECT + NULLIF ( + 66, - 75 ) + CAST ( 64 AS INTEGER ) * - 49 AS col2
----
-3070

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL + 81 * MAX( 41 ) * + ( 16 )
----
53136

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL + 81 * MAX ( 41 ) * + ( 16 )
----
53136

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - NULLIF ( 38, COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-8694
SELECT - NULLIF ( 38, COUNT ( * ) )
----
-38

query I rowsort
SELECT + 29 + - - 21
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL MIN( + 14 ) * + 87 AS col0
----
1218

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL MIN ( + 14 ) * + 87 AS col0
----
1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT - NULLIF ( - CASE 69 WHEN - 77 / + COUNT( * ) THEN NULL WHEN + NULLIF ( - 93, 55 * 45 ) THEN 87 WHEN + CAST( + 1 AS SIGNED ) - + COUNT( * ) THEN NULL ELSE 95 END, - COUNT( * ) ) * 16 AS col2
----
1520

skipif mysql # not compatible
query I rowsort label-8697
SELECT - NULLIF ( - CASE 69 WHEN - 77 / + COUNT ( * ) THEN NULL WHEN + NULLIF ( - 93, 55 * 45 ) THEN 87 WHEN + CAST ( + 1 AS INTEGER ) - + COUNT ( * ) THEN NULL ELSE 95 END, - COUNT ( * ) ) * 16 AS col2
----
1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT CAST( - - 92 AS SIGNED ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8698
SELECT CAST ( - - 92 AS INTEGER ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8699
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - 96 / - - CASE + 2 WHEN COUNT( * ) / + 12 + 24 * 92 THEN 25 END + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - 96 / - - CASE + 2 WHEN COUNT ( * ) / + 12 + 24 * 92 THEN 25 END + - 99 AS col2
----
NULL

query I rowsort
SELECT + 56 * + 95 + + 89 - 26 col1
----
5383

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ( 82 ) / CASE ( + COALESCE ( 99, 66 ) ) - - ( - 47 + 14 ) * + 5 WHEN 20 THEN + ( 99 ) + 47 ELSE NULL END - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT ( 82 ) / CASE ( + COALESCE ( 99, 66 ) ) - - ( - 47 + 14 ) * + 5 WHEN 20 THEN + ( 99 ) + 47 ELSE NULL END - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT COUNT( * ) * + 35 + + 16 * + 63 col1
----
1043

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT COUNT ( * ) * + 35 + + 16 * + 63 col1
----
1043

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT + + 55 DIV - + 20
----
-2

skipif mysql # not compatible
query I rowsort label-8704
SELECT + + 55 / - + 20
----
-2

query I rowsort
SELECT + + 38 * + - 75
----
-2850

query I rowsort
SELECT - - 74 * + 7 + 74
----
592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT ( - CAST( - 95 AS SIGNED ) )
----
95

skipif mysql # not compatible
query I rowsort label-8707
SELECT ( - CAST ( - 95 AS INTEGER ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT - MAX( + - 1 ) * - 71 - NULLIF ( COUNT( * ), ( 91 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8708
SELECT - MAX ( + - 1 ) * - 71 - NULLIF ( COUNT ( * ), ( 91 ) )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT ALL - 78 DIV - 19
----
4

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - 78 / - 19
----
4

query I rowsort
SELECT ALL + - CASE 63 WHEN - 48 THEN + 61 ELSE - 68 * 96 + + 23 END AS col0
----
6505

query I rowsort
SELECT - COALESCE ( - 66, - 42 - 88 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - - 1 * - COUNT( * ) * + 95 + + 90 + + ( 10 ) * NULLIF ( + 16, 95 )
----
155

skipif mysql # not compatible
query I rowsort label-8712
SELECT - - 1 * - COUNT ( * ) * + 95 + + 90 + + ( 10 ) * NULLIF ( + 16, 95 )
----
155

query I rowsort
SELECT - + 48 * - 90
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT - COUNT( + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-8714
SELECT - COUNT ( + 17 )
----
-1

query I rowsort
SELECT - ( - 78 ) + + - 71
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT ( - ( - COUNT( * ) ) ) * 77 - - 71 * - 41
----
-2834

skipif mysql # not compatible
query I rowsort label-8716
SELECT ( - ( - COUNT ( * ) ) ) * 77 - - 71 * - 41
----
-2834

onlyif mysql # aggregate syntax: 
query II rowsort label-8717
SELECT - COUNT( * ) AS col0, - 81 + + COUNT( * ) * + 78
----
-1
-3

skipif mysql # not compatible
query II rowsort label-8717
SELECT - COUNT ( * ) AS col0, - 81 + + COUNT ( * ) * + 78
----
-1
-3

query I rowsort
SELECT ALL ( - + 43 ) AS col1
----
-43

query II rowsort
SELECT - 37 AS col0, - 38
----
-37
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8720
SELECT ALL 72 DIV - + 90 col2
----
0

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL 72 / - + 90 col2
----
0

query I rowsort
SELECT DISTINCT + 67 * + 70 AS col2
----
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL NULLIF ( COUNT( * ), + ( - 14 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL NULLIF ( COUNT ( * ), + ( - 14 ) )
----
1

query I rowsort
SELECT - 36 * - 76
----
2736

query I rowsort
SELECT + 48 - 81 AS col0
----
-33

query II rowsort
SELECT 36 AS col0, - 26 AS col1
----
36
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - COUNT( * ) + 4 + + 9 * 32 * - 6 col1
----
-1725

skipif mysql # not compatible
query I rowsort label-8726
SELECT - COUNT ( * ) + 4 + + 9 * 32 * - 6 col1
----
-1725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8727
SELECT 81 DIV 19 * - 62 * - SUM( 35 ) AS col1
----
8680

skipif mysql # not compatible
query I rowsort label-8727
SELECT 81 / 19 * - 62 * - SUM ( 35 ) AS col1
----
8680

query I rowsort
SELECT 17 * 43
----
731

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT 91 * - - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8729
SELECT 91 * - - COUNT ( * )
----
91

query II rowsort
SELECT - 67, 67 AS col2
----
-67
67

query I rowsort
SELECT 97 - - 27 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT ALL - 23 DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - 23 / 94 AS col2
----
0

query I rowsort
SELECT 7 - 28 - - + 84 * - 1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT ALL 82 * + + CASE + 41 WHEN CASE - 36 WHEN + 88 - - COUNT( 49 ) THEN NULL WHEN - 44 THEN - 98 ELSE - 66 END THEN - 11 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL 82 * + + CASE + 41 WHEN CASE - 36 WHEN + 88 - - COUNT ( 49 ) THEN NULL WHEN - 44 THEN - 98 ELSE - 66 END THEN - 11 END AS col2
----
NULL

query I rowsort
SELECT ALL + 50 + - 65
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT DISTINCT CAST( + 84 AS SIGNED ) + + 73 col1
----
157

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT CAST ( + 84 AS INTEGER ) + + 73 col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + 56 + + - MAX( ALL - 46 ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-8737
SELECT + 56 + + - MAX ( ALL - 46 ) AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT - COUNT( * ) * + NULLIF ( + 12, + 67 ) * + 66 + + ( + 29 )
----
-763

skipif mysql # not compatible
query I rowsort label-8738
SELECT - COUNT ( * ) * + NULLIF ( + 12, + 67 ) * + 66 + + ( + 29 )
----
-763

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT + ( COUNT( * ) ) - - 44 + + 71 * + 90 AS col2
----
6435

skipif mysql # not compatible
query I rowsort label-8739
SELECT + ( COUNT ( * ) ) - - 44 + + 71 * + 90 AS col2
----
6435

query I rowsort
SELECT + 53 - - 4 + + 88
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT MIN( + - ( + - 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-8741
SELECT MIN ( + - ( + - 96 ) )
----
96

query I rowsort
SELECT + - ( + - 91 ) col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT + 29 DIV + + 39 - + - 84 + - 13
----
71

skipif mysql # not compatible
query I rowsort label-8743
SELECT + 29 / + + 39 - + - 84 + - 13
----
71

query I rowsort
SELECT ALL - 87 * + 1 AS col0
----
-87

query I rowsort
SELECT - 19 + + + ( + 73 ) + - NULLIF ( - 12, 41 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL - MIN( 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - MIN ( 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8747
SELECT DISTINCT COUNT( * ) DIV 67 * + 94 - + 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT COUNT ( * ) / 67 * + 94 - + 74 AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL - CAST( + 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - CAST ( + 1 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT + 69 + + SUM( ALL + 45 ) * COUNT( DISTINCT 87 * + 46 ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-8749
SELECT + 69 + + SUM ( ALL + 45 ) * COUNT ( DISTINCT 87 * + 46 ) AS col1
----
114

query I rowsort
SELECT 67 * ( + - 26 )
----
-1742

query I rowsort
SELECT - 78 * - + 68
----
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT COUNT( * ) * - + 80 + ( + 14 ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT COUNT ( * ) * - + 80 + ( + 14 ) col1
----
-66

query I rowsort
SELECT ALL 72 * - - 80 AS col0
----
5760

query I rowsort
SELECT DISTINCT 31 * - + 75
----
-2325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT CAST( - 64 AS SIGNED ) + - 79
----
-143

skipif mysql # not compatible
query I rowsort label-8755
SELECT CAST ( - 64 AS INTEGER ) + - 79
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8756
SELECT ALL 66 + 77 * + 41 + - 38 - COUNT( * ) DIV SUM( DISTINCT - 64 ) * - COUNT( * ) AS col2
----
3185

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL 66 + 77 * + 41 + - 38 - COUNT ( * ) / SUM ( DISTINCT - 64 ) * - COUNT ( * ) AS col2
----
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT DISTINCT + NULLIF ( - - 41, - 91 + - COUNT( * ) * - 26 ) + + 34 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT + NULLIF ( - - 41, - 91 + - COUNT ( * ) * - 26 ) + + 34 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT MIN( DISTINCT + + 76 ) + - + 89 * + - NULLIF ( 14, COUNT( ALL + 39 ) ) + + 4
----
1326

skipif mysql # not compatible
query I rowsort label-8758
SELECT MIN ( DISTINCT + + 76 ) + - + 89 * + - NULLIF ( 14, COUNT ( ALL + 39 ) ) + + 4
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL 18 + + 8 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL 18 + + 8 * COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT 7 + CASE + CAST( - + 69 AS SIGNED ) WHEN 38 * COUNT( * ) + - 35 / 58 THEN - ( 65 ) + + CAST( NULL AS SIGNED ) END + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT 7 + CASE + CAST ( - + 69 AS INTEGER ) WHEN 38 * COUNT ( * ) + - 35 / 58 THEN - ( 65 ) + + CAST ( NULL AS INTEGER ) END + 91
----
NULL

query I rowsort
SELECT DISTINCT - 36 + 55 AS col0
----
19

query I rowsort
SELECT ALL + 81 + 42 + 57 AS col0
----
180

query I rowsort
SELECT 26 * + ( - + 25 )
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT DISTINCT - 9 * - COALESCE ( 78, + + ( ( 33 ) ) ) * COUNT( * )
----
702

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT - 9 * - COALESCE ( 78, + + ( ( 33 ) ) ) * COUNT ( * )
----
702

query I rowsort
SELECT DISTINCT 17 + ( - 9 )
----
8

query II rowsort
SELECT 16 + + - 64 AS col2, + 94 col0
----
-48
94

query I rowsort
SELECT 32 + - 26 * + 73
----
-1866

query I rowsort
SELECT - - ( + 92 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT - 54 DIV + - 15
----
3

skipif mysql # not compatible
query I rowsort label-8769
SELECT - 54 / + - 15
----
3

query I rowsort
SELECT 54 + + 44 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT DISTINCT CASE + ( NULLIF ( - 1, 6 * + COUNT( * ) ) ) WHEN 51 THEN NULL WHEN + 52 * + SUM( 39 ) THEN 63 - + 35 / - 82 WHEN - ( + 68 ) THEN + 57 * ( - 17 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT CASE + ( NULLIF ( - 1, 6 * + COUNT ( * ) ) ) WHEN 51 THEN NULL WHEN + 52 * + SUM ( 39 ) THEN 63 - + 35 / - 82 WHEN - ( + 68 ) THEN + 57 * ( - 17 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT 2 * - + SUM( ALL - 30 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8772
SELECT 2 * - + SUM ( ALL - 30 ) AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT 33 DIV - 90 * + 58 + + + 49
----
49

skipif mysql # not compatible
query I rowsort label-8773
SELECT 33 / - 90 * + 58 + + + 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL - - 72 * - COUNT( * ) * 49 + - - 6 AS col1
----
-3522

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - - 72 * - COUNT ( * ) * 49 + - - 6 AS col1
----
-3522

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT DISTINCT - - 56 DIV COALESCE ( + 22, - 58 ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT - - 56 / COALESCE ( + 22, - 58 ) / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT 30 * + COUNT( * ) + + 14 * - 66 AS col0
----
-894

skipif mysql # not compatible
query I rowsort label-8776
SELECT 30 * + COUNT ( * ) + + 14 * - 66 AS col0
----
-894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8777
SELECT DISTINCT - COUNT( CAST( 55 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT - COUNT ( CAST ( 55 AS INTEGER ) )
----
-1

query I rowsort
SELECT 2 * - 60
----
-120

query I rowsort
SELECT ALL - 75 * + NULLIF ( + - 17, - 91 + 81 )
----
1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8780
SELECT ALL - CASE - + 38 WHEN - - 33 * + - 14 + 95 * - 55 + - 21 / 13 THEN - CAST( - 63 AS SIGNED ) + SUM( ALL 34 ) * 88 WHEN + 17 * - 51 THEN AVG ( 72 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - CASE - + 38 WHEN - - 33 * + - 14 + 95 * - 55 + - 21 / 13 THEN - CAST ( - 63 AS INTEGER ) + SUM ( ALL 34 ) * 88 WHEN + 17 * - 51 THEN AVG ( 72 ) END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8781
SELECT - 22 DIV + 98 DIV + NULLIF ( COUNT( * ), 5 * COUNT( * ) ) - - 42
----
42

skipif mysql # not compatible
query I rowsort label-8781
SELECT - 22 / + 98 / + NULLIF ( COUNT ( * ), 5 * COUNT ( * ) ) - - 42
----
42

query I rowsort
SELECT 81 * 48
----
3888

query I rowsort
SELECT DISTINCT - ( + ( ( + 76 ) ) ) AS col0
----
-76

query I rowsort
SELECT 82 * + - 29
----
-2378

query I rowsort
SELECT CASE 92 WHEN + + 83 THEN NULL ELSE - 98 END - 41 AS col2
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT 94 * + - SUM( + ( 76 ) ) + - COUNT( * ) + CASE 52 WHEN + 20 + 43 * - 94 THEN COUNT( * ) * + AVG ( DISTINCT 29 * - 3 ) ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT 94 * + - SUM ( + ( 76 ) ) + - COUNT ( * ) + CASE 52 WHEN + 20 + 43 * - 94 THEN COUNT ( * ) * + AVG ( DISTINCT 29 * - 3 ) ELSE NULL END * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 30 + 77 AS col2
----
107

query I rowsort
SELECT ALL 12 + - - 48 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8789
SELECT ALL COUNT( 10 ) * CASE - - CAST( + CASE - 84 WHEN ( + MIN( 85 ) ) / 92 THEN CAST( SUM( DISTINCT + CAST( ( - 99 ) AS SIGNED ) ) AS SIGNED ) END AS DECIMAL ) WHEN COUNT( * ) + - 20 * - 7 THEN - COUNT( * ) / + 1 + 83 ELSE ( 5 ) + 79 * + 93 END + + 32 * - CASE 47 WHEN 47 THEN NULL ELSE + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL COUNT ( 10 ) * CASE - - CAST ( + CASE - 84 WHEN ( + MIN ( 85 ) ) / 92 THEN CAST ( SUM ( DISTINCT + CAST ( ( - 99 ) AS INTEGER ) ) AS INTEGER ) END AS REAL ) WHEN COUNT ( * ) + - 20 * - 7 THEN - COUNT ( * ) / + 1 + 83 ELSE ( 5 ) + 79 * + 93 END + + 32 * - CASE 47 WHEN 47 THEN NULL ELSE + 51 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 68 + 11 AS col1
----
-57

query II rowsort
SELECT DISTINCT 58 AS col0, + 22 AS col0
----
58
22

query I rowsort
SELECT DISTINCT 18 + + 64
----
82

query I rowsort
SELECT ALL 76 + - 68 * - - 23 AS col1
----
-1488

query II rowsort
SELECT DISTINCT 69 col1, + 24
----
69
24

query I rowsort
SELECT + 11 + + 73
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL - 31 - ( + NULLIF ( + SUM( 58 ), ( + ( 0 ) ) ) ) + 92 * - 78 AS col0
----
-7265

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL - 31 - ( + NULLIF ( + SUM ( 58 ), ( + ( 0 ) ) ) ) + 92 * - 78 AS col0
----
-7265

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT + + COUNT( * ) * ( - + 22 ) - + 43 * 71 + - COALESCE ( 86, 60 )
----
-3161

skipif mysql # not compatible
query I rowsort label-8797
SELECT + + COUNT ( * ) * ( - + 22 ) - + 43 * 71 + - COALESCE ( 86, 60 )
----
-3161

query I rowsort
SELECT ( + + 8 ) AS col1
----
8

query I rowsort
SELECT ALL + NULLIF ( + 27, - + 94 * - 25 - 20 * - 55 )
----
27

query I rowsort
SELECT ALL - 82 * - 6 AS col2
----
492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT + + SUM( ALL - 52 ) + CAST( NULL AS SIGNED ) * - ( + 39 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT + + SUM ( ALL - 52 ) + CAST ( NULL AS INTEGER ) * - ( + 39 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT - - 1 + 96 - ( + 50 ) DIV + + 20 + 65 * 98 AS col0
----
6465

skipif mysql # not compatible
query I rowsort label-8802
SELECT - - 1 + 96 - ( + 50 ) / + + 20 + 65 * 98 AS col0
----
6465

query I rowsort
SELECT - + 26 * + - 11
----
286

query I rowsort
SELECT + 54 + + COALESCE ( + + 72, - 54 ) - - - 76
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT + SUM( + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8805
SELECT + SUM ( + 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT - 37 - + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-8806
SELECT - 37 - + + COUNT ( * )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - 95 THEN NULL WHEN 24 THEN - 86 ELSE NULL END / - NULLIF ( 55, + 9 ) + 42 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - 95 THEN NULL WHEN 24 THEN - 86 ELSE NULL END / - NULLIF ( 55, + 9 ) + 42 * + 50
----
NULL

query I rowsort
SELECT ALL + ( - + 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL + + ( - + MAX( ALL 10 ) ) * - COUNT( * ) + - COALESCE ( + ( - COUNT( * ) ), - 31 )
----
11

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL + + ( - + MAX ( ALL 10 ) ) * - COUNT ( * ) + - COALESCE ( + ( - COUNT ( * ) ), - 31 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL + - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL + - ( - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8811
SELECT ALL - 3 * - + 28 + - 13 + + COUNT( * ) + + 95 DIV + 42 * - COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - 3 * - + 28 + - 13 + + COUNT ( * ) + + 95 / + 42 * - COUNT ( * ) AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8812
SELECT - - 0 + + 16 * 39 * + CASE + 94 WHEN + MAX( DISTINCT 86 ) THEN - 48 WHEN + CAST( 91 AS SIGNED ) * + COUNT( * ) THEN NULL ELSE NULL END * - 93 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT - - 0 + + 16 * 39 * + CASE + 94 WHEN + MAX ( DISTINCT 86 ) THEN - 48 WHEN + CAST ( 91 AS INTEGER ) * + COUNT ( * ) THEN NULL ELSE NULL END * - 93 + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8813
SELECT - COUNT( * ) DIV + - CAST( 23 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8813
SELECT - COUNT ( * ) / + - CAST ( 23 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT + 7 * 44 + + + 17 + + SUM( DISTINCT 97 ) - - 4 AS col2
----
426

skipif mysql # not compatible
query I rowsort label-8814
SELECT + 7 * 44 + + + 17 + + SUM ( DISTINCT 97 ) - - 4 AS col2
----
426

query I rowsort
SELECT ALL 31 * 62 * 63
----
121086

query I rowsort
SELECT NULLIF ( 4, - 13 ) col2
----
4

query I rowsort
SELECT ALL 39 * 22 + + 61 + + - 41 - - 69 + + + 56 + 3 * + 36
----
1111

query I rowsort
SELECT COALESCE ( 56, 45, 55 )
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8819
SELECT - ( - 48 ) + - 73 DIV - 81 + - + CAST( + + 78 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-8819
SELECT - ( - 48 ) + - 73 / - 81 + - + CAST ( + + 78 AS INTEGER )
----
-30

query I rowsort
SELECT + 7 * + + 52
----
364

query I rowsort
SELECT DISTINCT 51 * - 14 + 80
----
-634

query I rowsort
SELECT DISTINCT 20 * 8 * - + 3 + 46 * + 44 AS col2
----
1544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8823
SELECT ALL + 71 AS col1, + CASE + NULLIF ( - 47, + 66 / + + COUNT( * ) + + 65 + 64 * - 31 ) WHEN 16 THEN ( + 24 ) * + MAX( DISTINCT + 58 ) + CAST( 8 AS SIGNED ) * 59 WHEN 79 + 9 THEN 44 * - CASE + CASE + 4 WHEN - 54 / - 21 + COUNT( * ) * ( 61 ) THEN 50 END WHEN - 29 THEN - 4 + + 15 * - 18 WHEN CASE + 92 WHEN CAST( NULL AS SIGNED ) + - MIN( ALL + 97 ) THEN + 63 END * 8 THEN NULL ELSE NULL END END * - 70 col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8823
SELECT ALL + 71 AS col1, + CASE + NULLIF ( - 47, + 66 / + + COUNT ( * ) + + 65 + 64 * - 31 ) WHEN 16 THEN ( + 24 ) * + MAX ( DISTINCT + 58 ) + CAST ( 8 AS INTEGER ) * 59 WHEN 79 + 9 THEN 44 * - CASE + CASE + 4 WHEN - 54 / - 21 + COUNT ( * ) * ( 61 ) THEN 50 END WHEN - 29 THEN - 4 + + 15 * - 18 WHEN CASE + 92 WHEN CAST ( NULL AS INTEGER ) + - MIN ( ALL + 97 ) THEN + 63 END * 8 THEN NULL ELSE NULL END END * - 70 col1
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT - COUNT( * ) * - - 99 * + 50 + - 81 AS col2
----
-5031

skipif mysql # not compatible
query I rowsort label-8824
SELECT - COUNT ( * ) * - - 99 * + 50 + - 81 AS col2
----
-5031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT + 47 + + ( - 69 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT + 47 + + ( - 69 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 23 * + 18 - 54
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT SUM( - - 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8827
SELECT SUM ( - - 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT - ( 92 ) + 55 + - - 53 * - 67 * + COUNT( * )
----
-3588

skipif mysql # not compatible
query I rowsort label-8828
SELECT - ( 92 ) + 55 + - - 53 * - 67 * + COUNT ( * )
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT + 41 - - COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8829
SELECT + 41 - - COUNT ( * ) AS col1
----
42

query I rowsort
SELECT ALL 23 - 59 col0
----
-36

query I rowsort
SELECT - 87 * 84 * - 79 * - 12 AS col2
----
-6927984

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT + COUNT( DISTINCT 45 ) + + - 10 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8832
SELECT + COUNT ( DISTINCT 45 ) + + - 10 AS col0
----
-9

query I rowsort
SELECT + 5 + 74
----
79

query II rowsort
SELECT - + 39, - 87 AS col2
----
-39
-87

query I rowsort
SELECT DISTINCT + + 64 * + 62 * + - 54 - + 69 * - 35
----
-211857

query I rowsort
SELECT + 72 + + 81 AS col0
----
153

query I rowsort
SELECT ALL 42 * - 3 AS col2
----
-126

query II rowsort
SELECT DISTINCT + 37 AS col2, - 52 + 98 AS col0
----
37
46

query I rowsort
SELECT - COALESCE ( + 64, + 57 ) AS col1
----
-64

query I rowsort
SELECT + - 39 + - 48 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT + COUNT( * ) * + + 68
----
68

skipif mysql # not compatible
query I rowsort label-8841
SELECT + COUNT ( * ) * + + 68
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT + + 64 + - + COALESCE ( 98, - - CAST( 9 AS SIGNED ) ) - + MIN( ALL 17 ) + + 95 * COUNT( * ) * 66
----
6219

skipif mysql # not compatible
query I rowsort label-8842
SELECT + + 64 + - + COALESCE ( 98, - - CAST ( 9 AS INTEGER ) ) - + MIN ( ALL 17 ) + + 95 * COUNT ( * ) * 66
----
6219

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT + - CASE - + 78 WHEN - + 57 * 48 + + SUM( DISTINCT 37 ) THEN - MIN( 42 ) * + 79 ELSE NULL END * - 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT + - CASE - + 78 WHEN - + 57 * 48 + + SUM ( DISTINCT 37 ) THEN - MIN ( 42 ) * + 79 ELSE NULL END * - 7 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8844
SELECT - - 89 + - + 88 + COUNT( * ) - + + 10 AS col0, 86
----
-8
86

skipif mysql # not compatible
query II rowsort label-8844
SELECT - - 89 + - + 88 + COUNT ( * ) - + + 10 AS col0, 86
----
-8
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT + CASE - NULLIF ( - COUNT( * ), + COUNT( * ) ) WHEN + 68 THEN - 38 - - 25 / 79 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT + CASE - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) WHEN + 68 THEN - 38 - - 25 / 79 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / - + COALESCE ( - COALESCE ( + 4, COUNT( * ) + + + 1 * - 15 ), 66 ) + + 20 + ( + 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / - + COALESCE ( - COALESCE ( + 4, COUNT ( * ) + + + 1 * - 15 ), 66 ) + + 20 + ( + 42 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8847
SELECT ALL - 49 DIV - 60 + + - 38 + 46 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL - 49 / - 60 + + - 38 + 46 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8848
SELECT DISTINCT - 13 DIV 44 + - 35 * - 76 AS col2
----
2660

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT - 13 / 44 + - 35 * - 76 AS col2
----
2660

query III rowsort
SELECT ALL + - 54, + 40 AS col2, - 44 AS col0
----
-54
40
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT ALL + COUNT( * ) * 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL + COUNT ( * ) * 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT 31 * - 96 * COUNT( * ) - + CASE + CASE - 35 WHEN + + ( - NULLIF ( 6, 85 * - COUNT( * ) ) ) THEN + 6 * 70 END WHEN ( + 21 ) THEN - 47 WHEN + 17 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT 31 * - 96 * COUNT ( * ) - + CASE + CASE - 35 WHEN + + ( - NULLIF ( 6, 85 * - COUNT ( * ) ) ) THEN + 6 * 70 END WHEN ( + 21 ) THEN - 47 WHEN + 17 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT CAST( + 93 AS SIGNED ) + - 66 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8852
SELECT CAST ( + 93 AS INTEGER ) + - 66 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT 11 * - - NULLIF ( 71, CAST( NULL AS SIGNED ) ) * - MIN( DISTINCT 74 )
----
-57794

skipif mysql # not compatible
query I rowsort label-8853
SELECT 11 * - - NULLIF ( 71, CAST ( NULL AS INTEGER ) ) * - MIN ( DISTINCT 74 )
----
-57794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8854
SELECT - 4 * - 14 + NULLIF ( - - 68, - MAX( - - CAST( NULL AS SIGNED ) ) ) + - 60
----
64

skipif mysql # not compatible
query I rowsort label-8854
SELECT - 4 * - 14 + NULLIF ( - - 68, - MAX ( - - CAST ( NULL AS INTEGER ) ) ) + - 60
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL - COUNT( + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL - COUNT ( + 80 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT DISTINCT 1 + + COALESCE ( - - 9, + 23 ) - - 82 + MAX( + 73 ) + COUNT( * ) * 4
----
169

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT 1 + + COALESCE ( - - 9, + 23 ) - - 82 + MAX ( + 73 ) + COUNT ( * ) * 4
----
169

query I rowsort
SELECT - 9 * CASE 56 WHEN - 94 THEN + 39 / + 83 - + + 1 END * 82 - - 34 * 84
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8858
SELECT DISTINCT - CASE - 4 WHEN CAST( + 57 AS SIGNED ) + + 44 THEN NULL WHEN - + 50 * + 37 THEN NULL ELSE 43 END DIV + 19 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT - CASE - 4 WHEN CAST ( + 57 AS INTEGER ) + + 44 THEN NULL WHEN - + 50 * + 37 THEN NULL ELSE 43 END / + 19 AS col0
----
-2

query I rowsort
SELECT 90 * - 14 * - 9 AS col0
----
11340

query I rowsort
SELECT 26 * + ( + 13 ) AS col0
----
338

query I rowsort
SELECT ALL - 59 * - 95 * 63
----
353115

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT + 87 - - MAX( ALL + ( 18 ) )
----
105

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT + 87 - - MAX ( ALL + ( 18 ) )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT 25 * - CASE WHEN NOT ( 12 ) NOT BETWEEN NULL AND COUNT( * ) THEN NULL ELSE - 33 END
----
825

skipif mysql # not compatible
query I rowsort label-8863
SELECT 25 * - CASE WHEN NOT ( 12 ) NOT BETWEEN NULL AND COUNT ( * ) THEN NULL ELSE - 33 END
----
825

query I rowsort
SELECT DISTINCT + ( + 52 ) * - - 71 * + + 52
----
191984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8865
SELECT DISTINCT MIN( DISTINCT + + 42 ) AS col1, + 1 + + 48 + + NULLIF ( + 86, 52 * 23 ) * CASE + NULLIF ( + 53, - 49 ) + - 56 WHEN - 75 THEN NULL WHEN + 19 THEN 66 ELSE NULL END * CAST( + CAST( 34 AS SIGNED ) + - 5 AS SIGNED )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-8865
SELECT DISTINCT MIN ( DISTINCT + + 42 ) AS col1, + 1 + + 48 + + NULLIF ( + 86, 52 * 23 ) * CASE + NULLIF ( + 53, - 49 ) + - 56 WHEN - 75 THEN NULL WHEN + 19 THEN 66 ELSE NULL END * CAST ( + CAST ( 34 AS INTEGER ) + - 5 AS INTEGER )
----
42
NULL

query II rowsort
SELECT - 70 * + - 98 AS col0, 65 + + + 54
----
6860
119

query I rowsort
SELECT ALL ( - + 69 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + COALESCE ( - NULLIF ( - + COUNT( * ), 5 ), ( - ( - 91 ) ) + + SUM( - 25 + 22 ) ) + 22
----
23

skipif mysql # not compatible
query I rowsort label-8868
SELECT + COALESCE ( - NULLIF ( - + COUNT ( * ), 5 ), ( - ( - 91 ) ) + + SUM ( - 25 + 22 ) ) + 22
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-8869
SELECT + 97 DIV + 63 AS col1, 54 DIV 53 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8869
SELECT + 97 / + 63 AS col1, 54 / 53 AS col0
----
1
1

query I rowsort
SELECT + 36 + + 34
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8871
SELECT + 6 * + - 46, + CASE - 7 WHEN - - 46 THEN - 26 * - 64 + + 46 * + 49 ELSE + COUNT( * ) * + 41 + 87 END AS col0
----
-276
128

skipif mysql # not compatible
query II rowsort label-8871
SELECT + 6 * + - 46, + CASE - 7 WHEN - - 46 THEN - 26 * - 64 + + 46 * + 49 ELSE + COUNT ( * ) * + 41 + 87 END AS col0
----
-276
128

query I rowsort
SELECT + ( ( 82 ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT - 72 - COUNT( * ) + + - 35
----
-108

skipif mysql # not compatible
query I rowsort label-8873
SELECT - 72 - COUNT ( * ) + + - 35
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8874
SELECT DISTINCT - 94 * 48 AS col1, 4 * - + CAST( - + 15 AS SIGNED )
----
-4512
60

skipif mysql # not compatible
query II rowsort label-8874
SELECT DISTINCT - 94 * 48 AS col1, 4 * - + CAST ( - + 15 AS INTEGER )
----
-4512
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT + COUNT( * ) + - + MIN( ALL - ( 89 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + COUNT ( * ) + - + MIN ( ALL - ( 89 ) ) AS col2
----
90

query I rowsort
SELECT ALL - 3 + - + 37 + + + 31 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT 11 - + 95 DIV - - 38 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8877
SELECT 11 - + 95 / - - 38 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT - 0 * + + 69 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8878
SELECT - 0 * + + 69 + - COUNT ( * ) AS col1
----
-1

query II rowsort
SELECT DISTINCT - 23, 21 + + + 72 AS col0
----
-23
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT ALL CASE 71 WHEN 2 THEN NULL WHEN - 71 THEN NULL WHEN + ( CAST( + CASE + 56 WHEN - 53 * + 69 + + 60 THEN 39 WHEN ( ( COUNT( * ) ) ) * 75 THEN - 87 ELSE 17 / - 94 END AS SIGNED ) ) + + 78 THEN CAST( NULL AS SIGNED ) END * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL CASE 71 WHEN 2 THEN NULL WHEN - 71 THEN NULL WHEN + ( CAST ( + CASE + 56 WHEN - 53 * + 69 + + 60 THEN 39 WHEN ( ( COUNT ( * ) ) ) * 75 THEN - 87 ELSE 17 / - 94 END AS INTEGER ) ) + + 78 THEN CAST ( NULL AS INTEGER ) END * 96 AS col1
----
NULL

query I rowsort
SELECT ALL 48 - + 21
----
27

query II rowsort
SELECT ALL - 36 AS col1, 24
----
-36
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8883
SELECT CAST( NULL AS SIGNED ) + - - 74 + + 99, 34 + - 92 + 32 AS col1
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-8883
SELECT CAST ( NULL AS INTEGER ) + - - 74 + + 99, 34 + - 92 + 32 AS col1
----
NULL
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + SUM( - 59 ) * 90 AS col0
----
-5310

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + SUM ( - 59 ) * 90 AS col0
----
-5310

onlyif mysql # aggregate syntax: 
query II rowsort label-8885
SELECT + COUNT( * ) * - + 20 + 88 * 95 AS col0, + MAX( - 3 ) - + - 46 + + 57
----
8340
100

skipif mysql # not compatible
query II rowsort label-8885
SELECT + COUNT ( * ) * - + 20 + 88 * 95 AS col0, + MAX ( - 3 ) - + - 46 + + 57
----
8340
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8886
SELECT 0 DIV - - ( + + 60 ) * + 67 + 72 + 91 + COUNT( * ) * - + 36 + 79 * + 11 AS col2
----
996

skipif mysql # not compatible
query I rowsort label-8886
SELECT 0 / - - ( + + 60 ) * + 67 + 72 + 91 + COUNT ( * ) * - + 36 + 79 * + 11 AS col2
----
996

query I rowsort
SELECT 35 * - 19
----
-665

query I rowsort
SELECT 6 + 67 col1
----
73

query I rowsort
SELECT + AVG ( DISTINCT + - CASE ( - 85 ) WHEN + 34 THEN - - 18 ELSE NULL END )
----
NULL

query I rowsort
SELECT 45 + + 5
----
50

query II rowsort
SELECT DISTINCT - 84, 84 AS col0
----
-84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT 25 DIV - + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8892
SELECT 25 / - + 75 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT 92 * + COALESCE ( - COALESCE ( - 33, + - 73 * 63 - - CAST( NULL AS SIGNED ) ), ( COUNT( * ) ) ) + - 39
----
2997

skipif mysql # not compatible
query I rowsort label-8893
SELECT 92 * + COALESCE ( - COALESCE ( - 33, + - 73 * 63 - - CAST ( NULL AS INTEGER ) ), ( COUNT ( * ) ) ) + - 39
----
2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8894
SELECT DISTINCT - 67 AS col2, + COUNT( * ) DIV + 46 * 87 * ( - + COUNT( * ) ) * - + 53 * + 39 * + 80 + 26
----
-67
26

skipif mysql # not compatible
query II rowsort label-8894
SELECT DISTINCT - 67 AS col2, + COUNT ( * ) / + 46 * 87 * ( - + COUNT ( * ) ) * - + 53 * + 39 * + 80 + 26
----
-67
26

query I rowsort
SELECT - 67 * NULLIF ( + 29, + 22 ) + 83
----
-1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8896
SELECT ALL - 1 * + CAST( NULL AS SIGNED ) * - + 20 AS col1, + CASE + MIN( DISTINCT 51 ) WHEN 45 THEN NULL WHEN 79 THEN - 27 END col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8896
SELECT ALL - 1 * + CAST ( NULL AS INTEGER ) * - + 20 AS col1, + CASE + MIN ( DISTINCT 51 ) WHEN 45 THEN NULL WHEN 79 THEN - 27 END col2
----
NULL
NULL

query I rowsort
SELECT + 54 + - 53 - - 43 * + - 19 + - ( - 56 )
----
-760

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8898
SELECT ALL + CASE 26 WHEN + - SUM( - 57 ) + - 10 THEN + - ( CASE - 85 WHEN + CASE + MAX( CAST( - 22 AS DECIMAL ) ) WHEN - 63 + + 72 THEN - COUNT( DISTINCT + 56 ) * ( COUNT( * ) + 27 / - 26 ) WHEN - 80 + + ( + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN 83 THEN NULL WHEN + 2 * + CASE - 40 WHEN ( 52 ) THEN NULL WHEN - COUNT( * ) + 55 THEN + 74 ELSE NULL END THEN NULL END + AVG ( - 0 ) * + 25 THEN COALESCE ( + ( 32 ), + 94 + - 61 ) END ) * COUNT( * ) WHEN - 57 THEN 99 + COUNT( * ) * + 2 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL + CASE 26 WHEN + - SUM ( - 57 ) + - 10 THEN + - ( CASE - 85 WHEN + CASE + MAX ( CAST ( - 22 AS REAL ) ) WHEN - 63 + + 72 THEN - COUNT ( DISTINCT + 56 ) * ( COUNT ( * ) + 27 / - 26 ) WHEN - 80 + + ( + CAST ( NULL AS REAL ) ) THEN NULL WHEN 83 THEN NULL WHEN + 2 * + CASE - 40 WHEN ( 52 ) THEN NULL WHEN - COUNT ( * ) + 55 THEN + 74 ELSE NULL END THEN NULL END + AVG ( - 0 ) * + 25 THEN COALESCE ( + ( 32 ), + 94 + - 61 ) END ) * COUNT ( * ) WHEN - 57 THEN 99 + COUNT ( * ) * + 2 END col1
----
NULL

query I rowsort
SELECT 46 * - 46 * + 0 - + + 34 AS col2
----
-34

query I rowsort
SELECT DISTINCT - 50 + + + 71 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL + CASE + 28 WHEN + 19 + + 10 + + 48 + + NULLIF ( 25, - COALESCE ( 14, - 86 ) ) * + 92 THEN 73 * NULLIF ( - 18, - 62 ) + - 63 WHEN + 1 THEN NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + CASE + 28 WHEN + 19 + + 10 + + 48 + + NULLIF ( 25, - COALESCE ( 14, - 86 ) ) * + 92 THEN 73 * NULLIF ( - 18, - 62 ) + - 63 WHEN + 1 THEN NULL END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT - COUNT( * ) + 30 + - 36
----
-7

skipif mysql # not compatible
query I rowsort label-8902
SELECT - COUNT ( * ) + 30 + - 36
----
-7

query I rowsort
SELECT DISTINCT + - 42 * + 92
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT 2 + MIN( - 51 ) * + - CASE + - COUNT( + 10 ) WHEN 45 THEN NULL WHEN - - 14 THEN 40 WHEN 16 THEN + 55 * 67 ELSE - 42 END + NULLIF ( 61, - 23 ) AS col0
----
-2079

skipif mysql # not compatible
query I rowsort label-8904
SELECT 2 + MIN ( - 51 ) * + - CASE + - COUNT ( + 10 ) WHEN 45 THEN NULL WHEN - - 14 THEN 40 WHEN 16 THEN + 55 * 67 ELSE - 42 END + NULLIF ( 61, - 23 ) AS col0
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL - + COUNT( + + 79 ) * + 53 * + + 12 - - SUM( DISTINCT - 32 ) AS col2
----
-668

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - + COUNT ( + + 79 ) * + 53 * + + 12 - - SUM ( DISTINCT - 32 ) AS col2
----
-668

query I rowsort
SELECT DISTINCT + + 29 + 28 * - 15 AS col0
----
-391

query I rowsort
SELECT ALL + 7 + - 20 col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8908
SELECT - COUNT( - CAST( 67 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8908
SELECT - COUNT ( - CAST ( 67 AS INTEGER ) ) AS col0
----
-1

query I rowsort
SELECT - 36 * 56 + - 83 AS col0
----
-2099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8910
SELECT + 6 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT + 6 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - CASE - CASE - 59 WHEN 96 THEN - - NULLIF ( + + 90, - 4 + - CASE 55 WHEN ( 62 ) * 89 THEN NULL WHEN - ( + 99 ) THEN 47 + - 71 ELSE NULL END + + 25 ) / COUNT( * ) END WHEN ( - ( - 82 ) ) THEN NULL ELSE 56 * 1 + + CASE COUNT( ALL 23 ) WHEN + 75 + - MIN( + 44 + + 23 ) THEN NULL WHEN + 36 * 40 THEN 69 * - 36 WHEN 64 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT - CASE - CASE - 59 WHEN 96 THEN - - NULLIF ( + + 90, - 4 + - CASE 55 WHEN ( 62 ) * 89 THEN NULL WHEN - ( + 99 ) THEN 47 + - 71 ELSE NULL END + + 25 ) / COUNT ( * ) END WHEN ( - ( - 82 ) ) THEN NULL ELSE 56 * 1 + + CASE COUNT ( ALL 23 ) WHEN + 75 + - MIN ( + 44 + + 23 ) THEN NULL WHEN + 36 * 40 THEN 69 * - 36 WHEN 64 THEN NULL END END
----
NULL

query I rowsort
SELECT + 33 + + - 53 AS col0
----
-20

query II rowsort
SELECT DISTINCT + 49 - - - 79, - 63 * + 75 + - 99 + 31 col2
----
-30
-4793

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT ALL - 95 DIV - - 66 * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL - 95 / - - 66 * - + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 90 * - 60 - 78
----
5322

query I rowsort
SELECT DISTINCT - 77 * ( - + 17 ) AS col1
----
1309

query I rowsort
SELECT + 48 * - + 39 AS col2
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT DISTINCT - 59 * CASE + 54 WHEN + 17 THEN - + NULLIF ( SUM( DISTINCT + COALESCE ( 54, - - CASE + 1 WHEN + 34 THEN NULL ELSE - 60 END * - 68 ) ), - COUNT( * ) - ( + 20 ) / + COUNT( * ) ) ELSE NULL END / - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT - 59 * CASE + 54 WHEN + 17 THEN - + NULLIF ( SUM ( DISTINCT + COALESCE ( 54, - - CASE + 1 WHEN + 34 THEN NULL ELSE - 60 END * - 68 ) ), - COUNT ( * ) - ( + 20 ) / + COUNT ( * ) ) ELSE NULL END / - 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT ALL + 5 * + + NULLIF ( COUNT( * ), - 10 ), 2 AS col1
----
5
2

skipif mysql # not compatible
query II rowsort label-8919
SELECT ALL + 5 * + + NULLIF ( COUNT ( * ), - 10 ), 2 AS col1
----
5
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8920
SELECT + 95 * 95 - - ( - - COUNT( * ) ) AS col0, 5 AS col2
----
9026
5

skipif mysql # not compatible
query II rowsort label-8920
SELECT + 95 * 95 - - ( - - COUNT ( * ) ) AS col0, 5 AS col2
----
9026
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT 5 * - ( - 48 ) * 89 * + - 18 + 19 - - + 0 + + MIN( ALL + 31 ) - - 99 * - 18
----
-386212

skipif mysql # not compatible
query I rowsort label-8921
SELECT 5 * - ( - 48 ) * 89 * + - 18 + 19 - - + 0 + + MIN ( ALL + 31 ) - - 99 * - 18
----
-386212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT + 0 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT + 0 / - COUNT ( * )
----
0

query II rowsort
SELECT - 12 * - + 70 AS col2, 5 + + 16
----
840
21

query I rowsort
SELECT - 71 + 49 + - 29 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT + 88 * 55 DIV + 31 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-8925
SELECT + 88 * 55 / + 31 AS col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL 35 * COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL 35 * COUNT ( * ) AS col0
----
35

query I rowsort
SELECT 6 * - 26 - 14 * - + NULLIF ( - 94, 30 * ( + 26 ) + + 15 ) * 62 + NULLIF ( 94 + - 19 * 37, - CASE 35 WHEN 69 THEN NULL ELSE + 81 * 36 END )
----
-82357

query I rowsort
SELECT - 63 * - 95 - 80 AS col1
----
5905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL - 37 * - COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL - 37 * - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT MAX( - - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8930
SELECT MAX ( - - 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8931
SELECT MAX( ALL - 42 ) AS col0, NULLIF ( 77, + 66 ) * - - 19 * - CAST( + 46 AS SIGNED ) / NULLIF ( CAST( NULL AS SIGNED ), 79 ) - ( - COUNT( * ) ) AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-8931
SELECT MAX ( ALL - 42 ) AS col0, NULLIF ( 77, + 66 ) * - - 19 * - CAST ( + 46 AS INTEGER ) / NULLIF ( CAST ( NULL AS INTEGER ), 79 ) - ( - COUNT ( * ) ) AS col1
----
-42
NULL

query I rowsort
SELECT + 91 * 25 AS col2
----
2275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT + 61 * - COALESCE ( - 14, + + 77, - COUNT( * ) * - + 1 DIV 19, - - COUNT( * ) + ( - 33 ) ) * - MAX( DISTINCT 26 * 45 ) AS col0
----
-999180

skipif mysql # not compatible
query I rowsort label-8933
SELECT + 61 * - COALESCE ( - 14, + + 77, - COUNT ( * ) * - + 1 / 19, - - COUNT ( * ) + ( - 33 ) ) * - MAX ( DISTINCT 26 * 45 ) AS col0
----
-999180

query I rowsort
SELECT DISTINCT - 21 * - + 92
----
1932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT - CAST( + 85 AS SIGNED ) * + - SUM( DISTINCT + 73 ) * ( - - 76 ) + - 89 - - 5 * - 92 AS col2
----
471031

skipif mysql # not compatible
query I rowsort label-8935
SELECT - CAST ( + 85 AS INTEGER ) * + - SUM ( DISTINCT + 73 ) * ( - - 76 ) + - 89 - - 5 * - 92 AS col2
----
471031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT - + CASE + 33 WHEN + 81 + 30 THEN NULL ELSE + CAST( - 4 AS SIGNED ) + + COALESCE ( + 92, - - COALESCE ( 58, - ( 31 ) ) ) * 82 END
----
-7540

skipif mysql # not compatible
query I rowsort label-8936
SELECT - + CASE + 33 WHEN + 81 + 30 THEN NULL ELSE + CAST ( - 4 AS INTEGER ) + + COALESCE ( + 92, - - COALESCE ( 58, - ( 31 ) ) ) * 82 END
----
-7540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT - - MAX( DISTINCT - 36 ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT - - MAX ( DISTINCT - 36 ) / + 74
----
0

query I rowsort
SELECT 66 * + 67 - - 65 + + ( - 74 ) - + CASE + 4 WHEN - 44 * - + 30 - + 45 THEN - 46 * + 13 ELSE NULL END / 50 * 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT - - MIN( ALL 22 ) + - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT - - MIN ( ALL 22 ) + - COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + + COUNT( * ) * - 20 * + + COUNT( * ) * 48
----
-960

skipif mysql # not compatible
query I rowsort label-8940
SELECT + + COUNT ( * ) * - 20 * + + COUNT ( * ) * 48
----
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL 24 + - + NULLIF ( - 27, - + CAST( NULL AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL 24 + - + NULLIF ( - 27, - + CAST ( NULL AS INTEGER ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT + - 94 * + 57 + + ( MIN( + + 4 ) )
----
-5354

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT + - 94 * + 57 + + ( MIN ( + + 4 ) )
----
-5354

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + 7 + SUM( 51 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8943
SELECT + 7 + SUM ( 51 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + COALESCE ( + 21, 82, - + 42, + NULLIF ( CASE 87 WHEN 13 + + + COUNT( * ) THEN + 65 * COUNT( * ) WHEN - 65 THEN NULL ELSE 9 + - 55 END, - ( + 12 ) ) * 55 ) + - 96 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8944
SELECT + COALESCE ( + 21, 82, - + 42, + NULLIF ( CASE 87 WHEN 13 + + + COUNT ( * ) THEN + 65 * COUNT ( * ) WHEN - 65 THEN NULL ELSE 9 + - 55 END, - ( + 12 ) ) * 55 ) + - 96 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT - 90 DIV - - 77
----
-1

skipif mysql # not compatible
query I rowsort label-8945
SELECT - 90 / - - 77
----
-1

query I rowsort
SELECT - 4 * - 66 AS col0
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), - ( 78 ) + + 70 )
----
8

skipif mysql # not compatible
query I rowsort label-8947
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), - ( 78 ) + + 70 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT ALL + + CAST( + + COALESCE ( 74, + ( - + 75 ) ) AS SIGNED ) - + 77
----
-3

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL + + CAST ( + + COALESCE ( 74, + ( - + 75 ) ) AS INTEGER ) - + 77
----
-3

query II rowsort
SELECT ALL - 26 * - - 75 AS col0, 56
----
-1950
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8950
SELECT DISTINCT - MAX( ALL CAST( NULL AS SIGNED ) ) * + 23 AS col0, - 10 * + + COUNT( * )
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-8950
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS INTEGER ) ) * + 23 AS col0, - 10 * + + COUNT ( * )
----
NULL
-10

query I rowsort
SELECT - 7 + - 79 + 6
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT ALL COALESCE ( + - 51, 70 + + 9 - - + CAST( NULL AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL COALESCE ( + - 51, 70 + + 9 - - + CAST ( NULL AS INTEGER ) )
----
-51

query I rowsort
SELECT - 24 * 64 AS col0
----
-1536

query I rowsort
SELECT - 83 + - + 17
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT - 95 + ( 76 ) + - - COUNT( * ) * + + 22 - - + 40 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8955
SELECT - 95 + ( 76 ) + - - COUNT ( * ) * + + 22 - - + 40 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT ALL + CAST( + COALESCE ( + 12, + 8 / + 28 + - - COALESCE ( - + 25, + - COALESCE ( + 55, - 26 - 69, - 91 ) * 13 ) ) AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL + CAST ( + COALESCE ( + 12, + 8 / + 28 + - - COALESCE ( - + 25, + - COALESCE ( + 55, - 26 - 69, - 91 ) * 13 ) ) AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT + SUM( - - 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + SUM ( - - 61 ) AS col2
----
61

query I rowsort
SELECT 10 * + 56 + + 59 AS col0
----
619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT + 94 * + CAST( NULL AS SIGNED ) * + 55 / - NULLIF ( 1, + + 36 * - 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT + 94 * + CAST ( NULL AS INTEGER ) * + 55 / - NULLIF ( 1, + + 36 * - 46 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 28 * - - 70 * 99
----
194040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT DISTINCT + 43 DIV 47 + ( 39 ) + + 59 + ( NULLIF ( + COUNT( ALL + 28 ), + 9 ) ) * + COUNT( * ) * - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + 43 / 47 + ( 39 ) + + 59 + ( NULLIF ( + COUNT ( ALL + 28 ), + 9 ) ) * + COUNT ( * ) * - COUNT ( * )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT + 35 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT + 35 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT ALL + 10 DIV + 55 + - + 15
----
-15

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + 10 / + 55 + - + 15
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT ALL - 43 DIV 52 + + - 94 + - 65
----
-159

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - 43 / 52 + + - 94 + - 65
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - 58 * + CASE + 9 WHEN + 30 + + 64 * + 0 THEN NULL WHEN - + 35 THEN + COUNT( * ) ELSE NULL END * 77 + ( + 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT - 58 * + CASE + 9 WHEN + 30 + + 64 * + 0 THEN NULL WHEN - + 35 THEN + COUNT ( * ) ELSE NULL END * 77 + ( + 25 ) AS col1
----
NULL

query I rowsort
SELECT - 99 + + 5 AS col2
----
-94

query I rowsort
SELECT + 63 + - - 28
----
91

query II rowsort
SELECT + 55 AS col2, - 93
----
55
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL - 11 * 20 + + MAX( 12 )
----
-208

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL - 11 * 20 + + MAX ( 12 )
----
-208

onlyif mysql # aggregate syntax: 
query II rowsort label-8970
SELECT ALL + 52 AS col2, COALESCE ( 62, + - COUNT( * ) ) - 59 + ( + 69 ) col1
----
52
72

skipif mysql # not compatible
query II rowsort label-8970
SELECT ALL + 52 AS col2, COALESCE ( 62, + - COUNT ( * ) ) - 59 + ( + 69 ) col1
----
52
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT DISTINCT - + 20 * - 6 + - + COUNT( * ) + 2 AS col1
----
121

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT - + 20 * - 6 + - + COUNT ( * ) + 2 AS col1
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT 64 * MAX( - 47 ) + - + 96 * - 65
----
3232

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT 64 * MAX ( - 47 ) + - + 96 * - 65
----
3232

onlyif mysql # aggregate syntax: 
query II rowsort label-8973
SELECT DISTINCT + NULLIF ( - COUNT( * ), + COUNT( * ) ) AS col2, 76 * - 68 AS col1
----
-1
-5168

skipif mysql # not compatible
query II rowsort label-8973
SELECT DISTINCT + NULLIF ( - COUNT ( * ), + COUNT ( * ) ) AS col2, 76 * - 68 AS col1
----
-1
-5168

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL 87 * 82 + + 40 * - + COUNT( * ) * 52 * 70 + 37 + COUNT( * ) AS col2
----
-138428

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL 87 * 82 + + 40 * - + COUNT ( * ) * 52 * 70 + 37 + COUNT ( * ) AS col2
----
-138428

query I rowsort
SELECT + 91 * + 14 AS col1
----
1274

query I rowsort
SELECT DISTINCT + 48 * - + 65 AS col2
----
-3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8977
SELECT + 75 + NULLIF ( - + CASE - 68 WHEN - + 23 THEN - COUNT( * ) WHEN + COALESCE ( + - 48, + 20 + + 2 ) THEN 97 ELSE + 21 * 83 END, - COALESCE ( 43, 27 * ( + 8 ), ( 27 ) ) * - NULLIF ( CAST( NULL AS SIGNED ), - 22 ) + 36 ) DIV - COUNT( * ) AS col1
----
1818

skipif mysql # not compatible
query I rowsort label-8977
SELECT + 75 + NULLIF ( - + CASE - 68 WHEN - + 23 THEN - COUNT ( * ) WHEN + COALESCE ( + - 48, + 20 + + 2 ) THEN 97 ELSE + 21 * 83 END, - COALESCE ( 43, 27 * ( + 8 ), ( 27 ) ) * - NULLIF ( CAST ( NULL AS INTEGER ), - 22 ) + 36 ) / - COUNT ( * ) AS col1
----
1818

query I rowsort
SELECT 24 * - 75
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL + COUNT( * ) * + ( - COUNT( * ) ) + + 47
----
46

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + COUNT ( * ) * + ( - COUNT ( * ) ) + + 47
----
46

query I rowsort
SELECT + COALESCE ( - 6, - + 59 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT SUM( DISTINCT 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT SUM ( DISTINCT 6 ) AS col1
----
6

query I rowsort
SELECT ALL + 55 * 62
----
3410

query II rowsort
SELECT ALL 35, + 78 AS col1
----
35
78

query II rowsort
SELECT DISTINCT 77, - 34 AS col2
----
77
-34

query I rowsort
SELECT 20 * + 19 AS col0
----
380

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT 26 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8986
SELECT 26 / + 86 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8987
SELECT CAST( NULL AS DECIMAL ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT CAST ( NULL AS REAL ) * - 46
----
NULL

query I rowsort
SELECT 45 + - + NULLIF ( - - 30, 3 / + + 98 )
----
15

query II rowsort
SELECT 93 AS col2, 60 AS col1
----
93
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT 52 DIV - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8990
SELECT 52 / - 56 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8991
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), + COUNT( + - 54 ) ) * - COUNT( * ) * + + 42 AS col0, - 11
----
42
-11

skipif mysql # not compatible
query II rowsort label-8991
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), + COUNT ( + - 54 ) ) * - COUNT ( * ) * + + 42 AS col0, - 11
----
42
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL SUM( + - 16 ) * 70 col2
----
-1120

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL SUM ( + - 16 ) * 70 col2
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT DISTINCT SUM( ALL 59 ) + 88
----
147

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT SUM ( ALL 59 ) + 88
----
147

query II rowsort
SELECT 26, - 77 AS col1
----
26
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT - ( + - ( 14 ) ) DIV - 22 + 84 col1
----
84

skipif mysql # not compatible
query I rowsort label-8996
SELECT - ( + - ( 14 ) ) / - 22 + 84 col1
----
84

query II rowsort
SELECT 39 col1, 15 AS col0
----
39
15

query I rowsort
SELECT DISTINCT + 97 + - + 49 AS col2
----
48

query I rowsort
SELECT ALL + - 77 + - 48
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT 77 * COUNT( * ) * + ( - 55 ) + - 34 * - 8 * - NULLIF ( + + COUNT( * ), - 44 * + + 73 )
----
-4507

skipif mysql # not compatible
query I rowsort label-9000
SELECT 77 * COUNT ( * ) * + ( - 55 ) + - 34 * - 8 * - NULLIF ( + + COUNT ( * ), - 44 * + + 73 )
----
-4507

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT + COUNT( * ) - - + 90 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT + COUNT ( * ) - - + 90 AS col0
----
91

query I rowsort
SELECT ALL - + ( - 67 ) - 43
----
24

query I rowsort
SELECT ALL + - 85 * + 90 AS col2
----
-7650

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT 87 DIV + 50 + + 78 col1
----
79

skipif mysql # not compatible
query I rowsort label-9004
SELECT 87 / + 50 + + 78 col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9005
SELECT DISTINCT - - COUNT( * ) AS col1, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9005
SELECT DISTINCT - - COUNT ( * ) AS col1, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - ( + 13 ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9007
SELECT CAST( - + COUNT( * ) AS SIGNED ) * - CASE - CAST( NULL AS SIGNED ) WHEN - - NULLIF ( + - 2, - + 42 * - + COUNT( * ) - + COUNT( * ) ) THEN - 53 * 85 + + 19 * 12 WHEN ( + 54 ) THEN NULL ELSE + 80 END col2
----
80

skipif mysql # not compatible
query I rowsort label-9007
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * - CASE - CAST ( NULL AS INTEGER ) WHEN - - NULLIF ( + - 2, - + 42 * - + COUNT ( * ) - + COUNT ( * ) ) THEN - 53 * 85 + + 19 * 12 WHEN ( + 54 ) THEN NULL ELSE + 80 END col2
----
80

query I rowsort
SELECT ( - - 80 ) col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT ALL 42 DIV 69 + + 19 - - 46 DIV 59
----
19

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL 42 / 69 + + 19 - - 46 / 59
----
19

query II rowsort
SELECT ALL - 69 AS col0, + 18 AS col0
----
-69
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9011
SELECT + - COUNT( * ) * - COUNT( * ) * 66 - - 85 DIV 59 * 61 - - COUNT( * ) * - 26 * - 39 AS col0, + 12 DIV COUNT( * )
----
1141
12

skipif mysql # not compatible
query II rowsort label-9011
SELECT + - COUNT ( * ) * - COUNT ( * ) * 66 - - 85 / 59 * 61 - - COUNT ( * ) * - 26 * - 39 AS col0, + 12 / COUNT ( * )
----
1141
12

query II rowsort
SELECT - 19 AS col0, + 34 col0
----
-19
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9013
SELECT COUNT( * ) AS col2, 76
----
1
76

skipif mysql # not compatible
query II rowsort label-9013
SELECT COUNT ( * ) AS col2, 76
----
1
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT ALL - COUNT( * ), - 33 AS col0
----
-1
-33

skipif mysql # not compatible
query II rowsort label-9014
SELECT ALL - COUNT ( * ), - 33 AS col0
----
-1
-33

query I rowsort
SELECT ALL 83 * - 23 / - 29 * + NULLIF ( - CASE 6 WHEN - 51 THEN - 51 WHEN + 6 / 11 - + 45 + 0 * + 34 THEN NULL END, 68 + + 37 ) + 90 AS col1
----
NULL

query II rowsort
SELECT - 2, - 98 AS col1
----
-2
-98

query I rowsort
SELECT DISTINCT + NULLIF ( - 41, + 33 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT - MAX( ALL 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9018
SELECT - MAX ( ALL 13 ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9019
SELECT ( MIN( DISTINCT + + 8 ) ) * + 53 + CAST( NULL AS SIGNED ) / + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT ( MIN ( DISTINCT + + 8 ) ) * + 53 + CAST ( NULL AS INTEGER ) / + 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9020
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN + 52 + + 96 THEN 63 * + 29 * + 91 / + - 24 WHEN 27 THEN NULL ELSE NULL END * 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN + 52 + + 96 THEN 63 * + 29 * + 91 / + - 24 WHEN 27 THEN NULL ELSE NULL END * 10 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT COUNT( * ) + - - SUM( + 67 )
----
68

skipif mysql # not compatible
query I rowsort label-9021
SELECT COUNT ( * ) + - - SUM ( + 67 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT ( + CAST( NULL AS SIGNED ) ) - - - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT ( + CAST ( NULL AS INTEGER ) ) - - - 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT 10 + - - 63 * - - SUM( DISTINCT + 53 ) AS col1
----
3349

skipif mysql # not compatible
query I rowsort label-9023
SELECT 10 + - - 63 * - - SUM ( DISTINCT + 53 ) AS col1
----
3349

query II rowsort
SELECT ( 96 ) + - COALESCE ( + 50, + + 94 ) AS col2, 86 AS col1
----
46
86

query I rowsort
SELECT DISTINCT ( - 94 ) + - - 15 AS col0
----
-79

query I rowsort
SELECT ALL + 83 + 3 col1
----
86

query I rowsort
SELECT ALL 24 + + + 8
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT 41 + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT 41 + COUNT ( * )
----
42

query I rowsort
SELECT 80 + NULLIF ( + 85, - - 23 )
----
165

query I rowsort
SELECT ALL + 11 * 77 AS col2
----
847

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + MIN( DISTINCT + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9031
SELECT + MIN ( DISTINCT + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + COALESCE ( + - COUNT( * ), - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-9032
SELECT + COALESCE ( + - COUNT ( * ), - 61 )
----
-1

query II rowsort
SELECT - - 54 * + 64 AS col2, 4
----
3456
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT + COUNT( * ) / 80 * - + AVG ( - CAST( NULL AS SIGNED ) ) - ( COUNT( * ) ) + COALESCE ( 23, + - 60 ) / + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT + COUNT ( * ) / 80 * - + AVG ( - CAST ( NULL AS INTEGER ) ) - ( COUNT ( * ) ) + COALESCE ( 23, + - 60 ) / + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT - SUM( - - 88 ) + + 12 + + MIN( ALL - - 17 ) + + - 31 * - + 35 col2
----
1026

skipif mysql # not compatible
query I rowsort label-9035
SELECT - SUM ( - - 88 ) + + 12 + + MIN ( ALL - - 17 ) + + - 31 * - + 35 col2
----
1026

query I rowsort
SELECT - - 4 + 43 + 88 AS col0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-9037
SELECT ALL + 99 DIV + + 28 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + 99 / + + 28 AS col2
----
3

query I rowsort
SELECT - 0 * - - 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT - + 77 + - - ( - 46 ) + 65 * + - 94 - - 13 + + 63 + - 41 - + + 29 / ( + 99 ) * CAST( NULL AS SIGNED ) * 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT - + 77 + - - ( - 46 ) + 65 * + - 94 - - 13 + + 63 + - 41 - + + 29 / ( + 99 ) * CAST ( NULL AS INTEGER ) * 75 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT DISTINCT - - COUNT( * ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT - - COUNT ( * ) * 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL - COUNT( * ) * + NULLIF ( 97, + 96 ) - - 19 + - + 51 + - ( COUNT( * ) ) + 15 + - 7 * + ( CASE - ( AVG ( ALL + 6 ) ) WHEN + ( 72 ) * + 32 THEN 4 WHEN COUNT( * ) THEN + 65 ELSE NULL END ) * COUNT( * ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - COUNT ( * ) * + NULLIF ( 97, + 96 ) - - 19 + - + 51 + - ( COUNT ( * ) ) + 15 + - 7 * + ( CASE - ( AVG ( ALL + 6 ) ) WHEN + ( 72 ) * + 32 THEN 4 WHEN COUNT ( * ) THEN + 65 ELSE NULL END ) * COUNT ( * ) * 37
----
NULL

query I rowsort
SELECT - + 27 + - 17 AS col0
----
-44

query II rowsort
SELECT ALL + + ( - - 90 ) AS col1, + 51 * + 20 + + + 91 AS col1
----
90
1111

query I rowsort
SELECT ALL + 47 + + 59 + - 9 * 49
----
-335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT - MAX( + 26 ) + - - CAST( + MIN( DISTINCT + + 19 ) AS SIGNED ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9045
SELECT - MAX ( + 26 ) + - - CAST ( + MIN ( DISTINCT + + 19 ) AS INTEGER ) AS col1
----
-7

query I rowsort
SELECT ALL - + 65 + + - 35 * - 29 + 88 AS col2
----
1038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9047
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + SUM( + - 85 ) + - 43 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-9048
SELECT + SUM ( + - 85 ) + - 43 AS col2
----
-128

query I rowsort
SELECT - 72 * + 61
----
-4392

query I rowsort
SELECT - ( - - 37 ) * 48 + 73 + 36 + - 56
----
-1723

query I rowsort
SELECT DISTINCT + 60 + - 31 AS col1
----
29

query I rowsort
SELECT ALL 36 + - 53 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT - COUNT( * ) * + - 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9053
SELECT - COUNT ( * ) * + - 87 AS col1
----
87

query I rowsort
SELECT DISTINCT 71 + 38 AS col1
----
109

query I rowsort
SELECT DISTINCT ( 98 ) col2
----
98

query I rowsort
SELECT - 6 - - - 7 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT - MAX( ALL + - 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9057
SELECT - MAX ( ALL + - 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - MIN( + 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9058
SELECT - MIN ( + 85 ) AS col1
----
-85

query I rowsort
SELECT + 64 * 86 AS col0
----
5504

query I rowsort
SELECT ALL 70 - + 66 AS col0
----
4

query I rowsort
SELECT + 76 * + 66 * 76
----
381216

query I rowsort
SELECT + ( + 73 ) col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9063
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9064
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) DIV - - 51 * 29 AS col0, 68
----
0
68

skipif mysql # not compatible
query II rowsort label-9064
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) / - - 51 * 29 AS col0, 68
----
0
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT + COALESCE ( - COUNT( * ), + - COUNT( * ) ) DIV + COUNT( 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-9065
SELECT + COALESCE ( - COUNT ( * ), + - COUNT ( * ) ) / + COUNT ( 91 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9066
SELECT + + 48 DIV 74 + - + COUNT( * ) + COUNT( * ) - 98
----
-98

skipif mysql # not compatible
query I rowsort label-9066
SELECT + + 48 / 74 + - + COUNT ( * ) + COUNT ( * ) - 98
----
-98

query I rowsort
SELECT - 32 * - NULLIF ( 43, - ( + - 27 ) ) AS col0
----
1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9068
SELECT - - CAST( NULL AS SIGNED ) * - - 33 + 49 - + + MAX( 53 ) * - - 1 / - 18 + - + 31 * + 75 * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT - - CAST ( NULL AS INTEGER ) * - - 33 + 49 - + + MAX ( 53 ) * - - 1 / - 18 + - + 31 * + 75 * + 38
----
NULL

query I rowsort
SELECT ALL 15 * 32
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT + + NULLIF ( + - ( + 29 ), - 17 ) DIV 59 * - 57
----
0

skipif mysql # not compatible
query I rowsort label-9070
SELECT + + NULLIF ( + - ( + 29 ), - 17 ) / 59 * - 57
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9071
SELECT ALL + 17 DIV + 25 * - + 75, + 92 * 48 * - 75 AS col2
----
0
-331200

skipif mysql # not compatible
query II rowsort label-9071
SELECT ALL + 17 / + 25 * - + 75, + 92 * 48 * - 75 AS col2
----
0
-331200

query I rowsort
SELECT ALL - 11 * + 32
----
-352

query I rowsort
SELECT ALL - + 5 * + 1 col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9074
SELECT DISTINCT ( - + 74 ) * + NULLIF ( + 16, NULLIF ( - MIN( ALL + + CAST( 97 AS SIGNED ) ), - 67 * + + CAST( NULL AS SIGNED ) ) ) + - 94
----
-1278

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT ( - + 74 ) * + NULLIF ( + 16, NULLIF ( - MIN ( ALL + + CAST ( 97 AS INTEGER ) ), - 67 * + + CAST ( NULL AS INTEGER ) ) ) + - 94
----
-1278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9075
SELECT DISTINCT 86 * + COUNT( * ) + - CAST( NULL AS SIGNED ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT 86 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 64
----
NULL

query I rowsort
SELECT ALL - 18 * + - 79 + - + 37 AS col0
----
1385

query I rowsort
SELECT + 74 - + + 72 AS col1
----
2

query II rowsort
SELECT + + 35 AS col0, 81
----
35
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + 1 * MIN( - - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-9079
SELECT + 1 * MIN ( - - 9 )
----
9

query II rowsort
SELECT ALL + - 45 AS col2, + 79 * + 87
----
-45
6873

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL + NULLIF ( - 56, + MAX( ( + 24 ) ) + 60 + 14 / - COUNT( * ) * + 15 * + 15 ) * - - 56 * + ( 88 ) + - ( + COUNT( DISTINCT 96 ) ) * - COUNT( * ) + 54 AS col0
----
-275913

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL + NULLIF ( - 56, + MAX ( ( + 24 ) ) + 60 + 14 / - COUNT ( * ) * + 15 * + 15 ) * - - 56 * + ( 88 ) + - ( + COUNT ( DISTINCT 96 ) ) * - COUNT ( * ) + 54 AS col0
----
-275913

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL + MIN( ALL 68 ) * + COUNT( * ) + - 2 + + COUNT( ALL 20 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL + MIN ( ALL 68 ) * + COUNT ( * ) + - 2 + + COUNT ( ALL 20 ) AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT - 87 * + NULLIF ( + + 85, - ( - 5 ) ) - MAX( ALL 61 ) DIV - + NULLIF ( - + 73, COUNT( * ) ) col0
----
-7395

skipif mysql # not compatible
query I rowsort label-9083
SELECT - 87 * + NULLIF ( + + 85, - ( - 5 ) ) - MAX ( ALL 61 ) / - + NULLIF ( - + 73, COUNT ( * ) ) col0
----
-7395

onlyif mysql # aggregate syntax: 
query II rowsort label-9084
SELECT - 42 * - 50 AS col2, - 3 * - + 54 * + - COUNT( * )
----
2100
-162

skipif mysql # not compatible
query II rowsort label-9084
SELECT - 42 * - 50 AS col2, - 3 * - + 54 * + - COUNT ( * )
----
2100
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9085
SELECT ALL - 33 * - 61 + - COUNT( * ) DIV + ( - - NULLIF ( + 28, + 70 * + - 69 DIV NULLIF ( COUNT( + - 26 ), - 13 DIV - 44 ) * 41 ) )
----
2013

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL - 33 * - 61 + - COUNT ( * ) / + ( - - NULLIF ( + 28, + 70 * + - 69 / NULLIF ( COUNT ( + - 26 ), - 13 / - 44 ) * 41 ) )
----
2013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT ALL - 83 + - NULLIF ( CAST( NULL AS SIGNED ), + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL - 83 + - NULLIF ( CAST ( NULL AS INTEGER ), + 91 )
----
NULL

query II rowsort
SELECT - 6 + 8 AS col2, - 99 AS col0
----
2
-99

query I rowsort
SELECT - 12 * - 63 * + 89 AS col2
----
67284

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT - ( - 24 ) - - 70 - 58 DIV - 22 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9089
SELECT - ( - 24 ) - - 70 - 58 / - 22 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9090
SELECT ALL CAST( + MAX( 88 ) AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL CAST ( + MAX ( 88 ) AS INTEGER ) AS col1
----
88

query I rowsort
SELECT - 59 + 79 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9092
SELECT + CASE - + CAST( COUNT( DISTINCT + 26 ) AS SIGNED ) WHEN - - COALESCE ( + 56, - COUNT( * ) ) * + 27 - + - 61 + - + 10 THEN + - 36 END / + 27 * 9 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT + CASE - + CAST ( COUNT ( DISTINCT + 26 ) AS INTEGER ) WHEN - - COALESCE ( + 56, - COUNT ( * ) ) * + 27 - + - 61 + - + 10 THEN + - 36 END / + 27 * 9 col0
----
NULL

query I rowsort
SELECT - 35 + + 20 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL - COUNT( * ) * - + 44 * 72 AS col2
----
3168

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - COUNT ( * ) * - + 44 * 72 AS col2
----
3168

query I rowsort
SELECT ALL ( + ( + 93 ) )
----
93

query I rowsort
SELECT 70 + + 40 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT 50 * COALESCE ( - - 81, MIN( ALL 87 ) ) AS col1
----
4050

skipif mysql # not compatible
query I rowsort label-9097
SELECT 50 * COALESCE ( - - 81, MIN ( ALL 87 ) ) AS col1
----
4050

query I rowsort
SELECT 86 * + 58
----
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT COUNT( ALL 59 ) + + + ( - 71 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9099
SELECT COUNT ( ALL 59 ) + + + ( - 71 ) AS col1
----
-70

query I rowsort
SELECT - NULLIF ( + 38, + 93 * - AVG ( DISTINCT - 89 ) ) AS col1
----
-38

query I rowsort
SELECT DISTINCT - COALESCE ( + 36, 71 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL + COUNT( * ) * + + 17 + 63
----
80

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + COUNT ( * ) * + + 17 + 63
----
80

query I rowsort
SELECT ( - 96 ) * 55 AS col0
----
-5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9104
SELECT + COUNT( * ) * - COUNT( * ), + 39 DIV - 88 col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-9104
SELECT + COUNT ( * ) * - COUNT ( * ), + 39 / - 88 col0
----
-1
0

query I rowsort
SELECT - 86 * 88 * + 89 + - 92 AS col0
----
-673644

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT 60 DIV - 33 + + 11 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9106
SELECT 60 / - 33 + + 11 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL - - COUNT( ALL + + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL - - COUNT ( ALL + + 28 )
----
1

query I rowsort
SELECT ALL 88 + + - 49
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + + 7 * - COUNT( * ) + - - 32 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9109
SELECT + + 7 * - COUNT ( * ) + - - 32 AS col0
----
25

query I rowsort
SELECT 3 - + 45 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9111
SELECT COUNT( * ) * - 70 + + + 13 - CASE - - 77 WHEN - - 63 + CAST( 67 AS SIGNED ) * 85 - - 16 THEN - CASE - 46 WHEN 98 THEN - 0 * - COUNT( * ) WHEN 61 THEN NULL ELSE ( 28 ) END WHEN 46 THEN - CAST( 96 AS SIGNED ) END + - 80 * - 48 - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT COUNT ( * ) * - 70 + + + 13 - CASE - - 77 WHEN - - 63 + CAST ( 67 AS INTEGER ) * 85 - - 16 THEN - CASE - 46 WHEN 98 THEN - 0 * - COUNT ( * ) WHEN 61 THEN NULL ELSE ( 28 ) END WHEN 46 THEN - CAST ( 96 AS INTEGER ) END + - 80 * - 48 - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT DISTINCT - 14 + - 77 * + CASE + - 41 WHEN + + 16 THEN NULL WHEN + + COUNT( * ) THEN - 37 ELSE NULL END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - 14 + - 77 * + CASE + - 41 WHEN + + 16 THEN NULL WHEN + + COUNT ( * ) THEN - 37 ELSE NULL END + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9113
SELECT ALL - 56 * - + 79 * + - SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL - 56 * - + 79 * + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 59 + - 34
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL 38 + + + COUNT( * ) * - - 9 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL 38 + + + COUNT ( * ) * - - 9 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9116
SELECT ALL COALESCE ( - ( COALESCE ( + MIN( DISTINCT - 52 ), - 80 + - 75 ) ), - 69 ) * - + 89 - 24 AS col1, - 10 AS col1
----
-4652
-10

skipif mysql # not compatible
query II rowsort label-9116
SELECT ALL COALESCE ( - ( COALESCE ( + MIN ( DISTINCT - 52 ), - 80 + - 75 ) ), - 69 ) * - + 89 - 24 AS col1, - 10 AS col1
----
-4652
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - 21 * - - MAX( + - ( - 37 ) ) + - + 78 AS col2
----
-855

skipif mysql # not compatible
query I rowsort label-9117
SELECT - 21 * - - MAX ( + - ( - 37 ) ) + - + 78 AS col2
----
-855

onlyif mysql # aggregate syntax: 
query II rowsort label-9118
SELECT COUNT( * ) + ( - 1 ) col2, 4 + - 24 AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-9118
SELECT COUNT ( * ) + ( - 1 ) col2, 4 + - 24 AS col0
----
0
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT 16 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT 16 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9120
SELECT DISTINCT COUNT( + - 8 ) - 95 AS col0, 76 DIV - 8 AS col0
----
-94
-9

skipif mysql # not compatible
query II rowsort label-9120
SELECT DISTINCT COUNT ( + - 8 ) - 95 AS col0, 76 / - 8 AS col0
----
-94
-9

query I rowsort
SELECT 70 + + 70 + - - 96 - - 92 * + COALESCE ( - 44, - 89, - 4 - + 27 ) AS col1
----
-3812

query I rowsort
SELECT ALL + 52 * 24 * - + 64 * + 6 AS col1
----
-479232

onlyif mysql # DIV for integer division: 
query I rowsort label-9123
SELECT 60 DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT 60 / - - 84
----
0

query II rowsort
SELECT ALL 54 AS col0, - 30
----
54
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT + COUNT( * ) * - 46 * - + 44
----
2024

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT + COUNT ( * ) * - 46 * - + 44
----
2024

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT DISTINCT 93 DIV - + 55
----
-1

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT 93 / - + 55
----
-1

query I rowsort
SELECT ALL + 53 * 59
----
3127

query I rowsort
SELECT 86 * - 80 AS col2
----
-6880

query II rowsort
SELECT ALL 18, 31 AS col2
----
18
31

query I rowsort
SELECT 95 * - 82 col1
----
-7790

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL - 80 * + COALESCE ( + COALESCE ( - 20, + MAX( + 22 ), + 41 + 75 ), + 64 * + NULLIF ( 90, - + COUNT( * ) ) ) AS col1
----
1600

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL - 80 * + COALESCE ( + COALESCE ( - 20, + MAX ( + 22 ), + 41 + 75 ), + 64 * + NULLIF ( 90, - + COUNT ( * ) ) ) AS col1
----
1600

onlyif mysql # aggregate syntax: 
query II rowsort label-9132
SELECT ALL - 10 AS col0, - ( + 47 ) * + + 19 - - COUNT( * )
----
-10
-892

skipif mysql # not compatible
query II rowsort label-9132
SELECT ALL - 10 AS col0, - ( + 47 ) * + + 19 - - COUNT ( * )
----
-10
-892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT - 40 DIV - 36 + + COUNT( - - 48 )
----
2

skipif mysql # not compatible
query I rowsort label-9133
SELECT - 40 / - 36 + + COUNT ( - - 48 )
----
2

query I rowsort
SELECT - + ( - + 22 )
----
22

query I rowsort
SELECT DISTINCT + - 84 * - 76 AS col1
----
6384

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT ALL + 11 DIV - - 17 + - 6 + 47 * 48 DIV 35 * 84 DIV ( - 12 )
----
-454

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL + 11 / - - 17 + - 6 + 47 * 48 / 35 * 84 / ( - 12 )
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT - 67 - + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-9137
SELECT - 67 - + COUNT ( * )
----
-68

query II rowsort
SELECT ALL 53 AS col1, + 71
----
53
71

query I rowsort
SELECT DISTINCT + 17 * + 77 + 93 AS col1
----
1402

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL + + CASE + 62 WHEN - 80 THEN + 4 + 94 - - COUNT( * ) * - 60 - - MAX( DISTINCT + 48 ) ELSE NULL END * ( - 10 ) / + 95 / - COUNT( * ) + + 18 + + - 93 * - 12 + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL + + CASE + 62 WHEN - 80 THEN + 4 + 94 - - COUNT ( * ) * - 60 - - MAX ( DISTINCT + 48 ) ELSE NULL END * ( - 10 ) / + 95 / - COUNT ( * ) + + 18 + + - 93 * - 12 + 62 AS col1
----
NULL

query I rowsort
SELECT + 56 * - 37
----
-2072

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9142
SELECT + 67 * - AVG ( ALL - - 59 ) * + 25 + + 18 - - 32 + + 24 + + 17 * + + CAST( NULL AS SIGNED ) * - + 35 AS col1, - 18
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-9142
SELECT + 67 * - AVG ( ALL - - 59 ) * + 25 + + 18 - - 32 + + 24 + + 17 * + + CAST ( NULL AS INTEGER ) * - + 35 AS col1, - 18
----
NULL
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT MIN( ALL - 54 ) * - COUNT( - 75 ) + 42 + - - 64 * - - ( 15 )
----
1056

skipif mysql # not compatible
query I rowsort label-9143
SELECT MIN ( ALL - 54 ) * - COUNT ( - 75 ) + 42 + - - 64 * - - ( 15 )
----
1056

query I rowsort
SELECT ALL 9 + 62
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT ALL + 35 + 94 + + 89 DIV + 18
----
133

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + 35 + 94 + + 89 / + 18
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT DISTINCT + 66 * 35 DIV + 66 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT + 66 * 35 / + 66 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT - - NULLIF ( - + COUNT( * ), COUNT( * ) ) * 78 * + - 50 + COUNT( ALL 69 ) * + 84 AS col0
----
3984

skipif mysql # not compatible
query I rowsort label-9147
SELECT - - NULLIF ( - + COUNT ( * ), COUNT ( * ) ) * 78 * + - 50 + COUNT ( ALL 69 ) * + 84 AS col0
----
3984

query II rowsort
SELECT DISTINCT - 13 AS col2, - 97
----
-13
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT - 79 * COUNT( * ) - + 23
----
-102

skipif mysql # not compatible
query I rowsort label-9149
SELECT - 79 * COUNT ( * ) - + 23
----
-102

query I rowsort
SELECT 25 - + ( - + 57 ) + - ( ( + 44 ) )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT + COUNT( * ) AS col2, MIN( + 12 ) AS col1
----
1
12

skipif mysql # not compatible
query II rowsort label-9151
SELECT + COUNT ( * ) AS col2, MIN ( + 12 ) AS col1
----
1
12

query II rowsort
SELECT ( - 51 ) * + - 75 * - 90 * + + ( + 45 ) AS col0, 25 + + + 14
----
-15491250
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9153
SELECT ALL CAST( + 5 AS SIGNED ) DIV COUNT( * ) + - - 43
----
48

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL CAST ( + 5 AS INTEGER ) / COUNT ( * ) + - - 43
----
48

query I rowsort
SELECT DISTINCT + 65 - - 51 / + 29 * 48 + - + 69 * - - CASE + + 61 WHEN - + 70 THEN + - 31 * + 71 * 99 WHEN + 48 * - 22 * + 81 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 47 * - 27 * + ( - 72 ) AS col2
----
91368

query I rowsort
SELECT ( 28 ) - + 75 AS col0
----
-47

query II rowsort
SELECT ALL 49 AS col0, - 59 * - - 93 + - - 47 col0
----
49
-5440

query I rowsort
SELECT DISTINCT 76 * - 33 AS col0
----
-2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9159
SELECT - COALESCE ( - - 62, - COALESCE ( - ( COUNT( * ) ), + + MIN( - + 53 ) - - COUNT( * ) - 90 - - 52 + - 15 DIV CAST( - 33 AS SIGNED ) ) - - COUNT( * ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9159
SELECT - COALESCE ( - - 62, - COALESCE ( - ( COUNT ( * ) ), + + MIN ( - + 53 ) - - COUNT ( * ) - 90 - - 52 + - 15 / CAST ( - 33 AS INTEGER ) ) - - COUNT ( * ) ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT + MAX( ALL 34 ) + - + 60 * - 87
----
5254

skipif mysql # not compatible
query I rowsort label-9160
SELECT + MAX ( ALL 34 ) + - + 60 * - 87
----
5254

query II rowsort
SELECT 4, 78 AS col1
----
4
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - 75 - - - 27 - + ( - SUM( DISTINCT 73 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-9162
SELECT - 75 - - - 27 - + ( - SUM ( DISTINCT 73 ) )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT + COALESCE ( + CASE 74 WHEN - + 67 THEN CAST( + 73 AS SIGNED ) END, 95 * - 92 ) + + 87 + - 99
----
-8752

skipif mysql # not compatible
query I rowsort label-9163
SELECT + COALESCE ( + CASE 74 WHEN - + 67 THEN CAST ( + 73 AS INTEGER ) END, 95 * - 92 ) + + 87 + - 99
----
-8752

onlyif mysql # aggregate syntax: 
query II rowsort label-9164
SELECT ALL - 25 AS col1, - COUNT( * ) AS col1
----
-25
-1

skipif mysql # not compatible
query II rowsort label-9164
SELECT ALL - 25 AS col1, - COUNT ( * ) AS col1
----
-25
-1

query I rowsort
SELECT + 51 + + - 77 AS col1
----
-26

query I rowsort
SELECT ALL COALESCE ( - - 7, 7 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9167
SELECT ALL - 2 AS col2, + 60 * - COUNT( - 39 ) * + 35
----
-2
-2100

skipif mysql # not compatible
query II rowsort label-9167
SELECT ALL - 2 AS col2, + 60 * - COUNT ( - 39 ) * + 35
----
-2
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL - 80 + + - 16 + + + COUNT( * ) * 29 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL - 80 + + - 16 + + + COUNT ( * ) * 29 AS col1
----
-67

query II rowsort
SELECT - 21 AS col0, 42
----
-21
42

query I rowsort
SELECT + + 0 * 55 + + 67
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT - - CAST( 67 AS SIGNED ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9171
SELECT - - CAST ( 67 AS INTEGER ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL + - ( 73 ) * + 4 - - - CASE COUNT( 67 ) WHEN - + COUNT( * ) THEN NULL WHEN + + 6 THEN - 8 * + 33 * - + 14 + COALESCE ( + 96, + + 25 - 55, 18 * + 65 ) + NULLIF ( - 40, 44 ) ELSE + 72 * + ( 59 ) END AS col2
----
-4540

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL + - ( 73 ) * + 4 - - - CASE COUNT ( 67 ) WHEN - + COUNT ( * ) THEN NULL WHEN + + 6 THEN - 8 * + 33 * - + 14 + COALESCE ( + 96, + + 25 - 55, 18 * + 65 ) + NULLIF ( - 40, 44 ) ELSE + 72 * + ( 59 ) END AS col2
----
-4540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT NULLIF ( + 81, - NULLIF ( - 54, CAST( NULL AS SIGNED ) * - 58 * - 39 ) )
----
81

skipif mysql # not compatible
query I rowsort label-9173
SELECT NULLIF ( + 81, - NULLIF ( - 54, CAST ( NULL AS INTEGER ) * - 58 * - 39 ) )
----
81

query II rowsort
SELECT - 14 + + 22 AS col1, - 83
----
8
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9175
SELECT DISTINCT + + CASE - - 61 WHEN - 13 * + + 52 * 24 * 97 THEN 55 ELSE + - ( - SUM( DISTINCT + 57 ) ) * + 44 END AS col1, 6 DIV - 87 * + - COALESCE ( - 4, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 5 ) - - ( - 46 )
----
2508
-46

skipif mysql # not compatible
query II rowsort label-9175
SELECT DISTINCT + + CASE - - 61 WHEN - 13 * + + 52 * 24 * 97 THEN 55 ELSE + - ( - SUM ( DISTINCT + 57 ) ) * + 44 END AS col1, 6 / - 87 * + - COALESCE ( - 4, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 5 ) - - ( - 46 )
----
2508
-46

query I rowsort
SELECT DISTINCT + + ( - 3 ) * + 56 + 22
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL - - 48 * - 23 * - - 19 + MIN( - + 73 ) col2
----
-21049

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL - - 48 * - 23 * - - 19 + MIN ( - + 73 ) col2
----
-21049

query I rowsort
SELECT - 67 * - 32 col0
----
2144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT DISTINCT + - ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT + - ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT ALL + + 73 AS col2, + 70 * + 69 col1
----
73
4830

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - + MIN( 28 ) * 30 AS col1
----
-840

skipif mysql # not compatible
query I rowsort label-9181
SELECT - + MIN ( 28 ) * 30 AS col1
----
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-9182
SELECT - 66 - - - 99 DIV + 78
----
-67

skipif mysql # not compatible
query I rowsort label-9182
SELECT - 66 - - - 99 / + 78
----
-67

query I rowsort
SELECT - 83 + + - 37 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT COALESCE ( - COUNT( * ), - 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-9184
SELECT COALESCE ( - COUNT ( * ), - 82 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT DISTINCT + CAST( + 40 AS SIGNED ) * 70 * - + 72 AS col2
----
-201600

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT + CAST ( + 40 AS INTEGER ) * 70 * - + 72 AS col2
----
-201600

query I rowsort
SELECT + 74 * + 83 + + 30 AS col0
----
6172

query I rowsort
SELECT ALL + 52 * + 41 AS col2
----
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + COUNT( * ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9188
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT ALL + NULLIF ( - 57, COUNT( * ) ) AS col1, + COUNT( * ) * COUNT( * ) AS col0
----
-57
1

skipif mysql # not compatible
query II rowsort label-9189
SELECT ALL + NULLIF ( - 57, COUNT ( * ) ) AS col1, + COUNT ( * ) * COUNT ( * ) AS col0
----
-57
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT - 76 DIV + - ( 71 )
----
1

skipif mysql # not compatible
query I rowsort label-9190
SELECT - 76 / + - ( 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL COUNT( * ) * + 41 + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL COUNT ( * ) * + 41 + - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - SUM( ALL 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9192
SELECT - SUM ( ALL 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9193
SELECT + 46 DIV - - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9193
SELECT + 46 / - - COUNT ( * ) AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9194
SELECT ALL - 17 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - 17 / - + 96
----
0

query I rowsort
SELECT - CASE + 60 WHEN 26 + - 75 THEN - - 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL + CASE + 1 WHEN + 56 * MAX( 98 ) THEN 1 WHEN + 38 THEN NULL WHEN - 16 / - - 80 THEN + 84 END * + - ( COUNT( * ) ) / - COALESCE ( + CASE - 55 WHEN + 75 THEN 23 * 16 + - CASE 39 WHEN - 66 * 10 THEN 72 + NULLIF ( - 85 + COUNT( * ), 25 ) ELSE - 31 / 78 END * 76 END, + 71 + ( 18 ) * 20 ) + + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + CASE + 1 WHEN + 56 * MAX ( 98 ) THEN 1 WHEN + 38 THEN NULL WHEN - 16 / - - 80 THEN + 84 END * + - ( COUNT ( * ) ) / - COALESCE ( + CASE - 55 WHEN + 75 THEN 23 * 16 + - CASE 39 WHEN - 66 * 10 THEN 72 + NULLIF ( - 85 + COUNT ( * ), 25 ) ELSE - 31 / 78 END * 76 END, + 71 + ( 18 ) * 20 ) + + 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL + ( + COUNT( * ) ) + + 7 col1
----
8

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + ( + COUNT ( * ) ) + + 7 col1
----
8

query I rowsort
SELECT + - 89 * - - 54
----
-4806

query I rowsort
SELECT ALL + 9 + + CASE - + ( + 7 ) WHEN - 54 THEN - - 2 - - 13 END * - + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL COALESCE ( - + 14, + - 30, + 36 * - - COUNT( * ) ) * + COUNT( * ) * + SUM( - - 87 ) * 68
----
-82824

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL COALESCE ( - + 14, + - 30, + 36 * - - COUNT ( * ) ) * + COUNT ( * ) * + SUM ( - - 87 ) * 68
----
-82824

query I rowsort
SELECT + 15 - 45 + - 93 - - 19 * + 6 * + - 75
----
-8673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9202
SELECT + COALESCE ( - - 99, + 34 + 3 + ( + + 54 ) * + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) DIV 89 + - - COUNT( - 76 ) - 24 ) * - + 81 AS col1
----
-8019

skipif mysql # not compatible
query I rowsort label-9202
SELECT + COALESCE ( - - 99, + 34 + 3 + ( + + 54 ) * + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / 89 + - - COUNT ( - 76 ) - 24 ) * - + 81 AS col1
----
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT - ( MIN( ALL + 26 ) ) + + 23 + 78 * + + COUNT( * ) * 58
----
4521

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT - ( MIN ( ALL + 26 ) ) + + 23 + 78 * + + COUNT ( * ) * 58
----
4521

query I rowsort
SELECT CASE + - 29 WHEN + 37 THEN NULL ELSE 88 END
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT + 74 + - COALESCE ( + 70, + - 89 ) + + + NULLIF ( - COUNT( * ), ( - 47 ) ) * 48
----
-44

skipif mysql # not compatible
query I rowsort label-9205
SELECT + 74 + - COALESCE ( + 70, + - 89 ) + + + NULLIF ( - COUNT ( * ), ( - 47 ) ) * 48
----
-44

query I rowsort
SELECT + + 13 - + 41
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL + ( - MAX( + + ( 54 ) ) )
----
-54

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + ( - MAX ( + + ( 54 ) ) )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9208
SELECT ALL + - 52 DIV 11 + NULLIF ( - 8, - 93 ) - - 22 + + NULLIF ( ( + + ( - 79 ) ), 34 * - ( CASE + 37 WHEN - - 13 THEN 49 WHEN + - 81 + - MAX( 38 - + 67 ) THEN + 39 * 23 ELSE NULL END ) * 13 ) + + ( + 84 ) * + 70
----
5811

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL + - 52 / 11 + NULLIF ( - 8, - 93 ) - - 22 + + NULLIF ( ( + + ( - 79 ) ), 34 * - ( CASE + 37 WHEN - - 13 THEN 49 WHEN + - 81 + - MAX ( 38 - + 67 ) THEN + 39 * 23 ELSE NULL END ) * 13 ) + + ( + 84 ) * + 70
----
5811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9209
SELECT - 1 * 22 AS col0, 22 + + NULLIF ( + 2, 25 * - + 0 ) + - CASE WHEN ( CAST( NULL AS SIGNED ) ) IS NOT NULL THEN + ( COUNT( * ) ) * + 75 + 46 + - ( + 66 ) + + 69 + 33 ELSE 70 END + 68 * 5 col2
----
-22
294

skipif mysql # not compatible
query II rowsort label-9209
SELECT - 1 * 22 AS col0, 22 + + NULLIF ( + 2, 25 * - + 0 ) + - CASE WHEN ( CAST ( NULL AS INTEGER ) ) IS NOT NULL THEN + ( COUNT ( * ) ) * + 75 + 46 + - ( + 66 ) + + 69 + 33 ELSE 70 END + 68 * 5 col2
----
-22
294

query I rowsort
SELECT ALL 71 * - 98 + - 56 * - + NULLIF ( - 10, 12 * + + 0 * + - 15 ) AS col0
----
-7518

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT - 16 DIV - - 68 + + 23 + + 21
----
44

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 16 / - - 68 + + 23 + + 21
----
44

query I rowsort
SELECT + 42 + - 77 AS col0
----
-35

query II rowsort
SELECT + 60 * + 79 * + 21 AS col2, + 63 * + + 12
----
99540
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL + NULLIF ( - 31, + + COALESCE ( + 15, - 10 ) + CAST( - 43 AS SIGNED ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + NULLIF ( - 31, + + COALESCE ( + 15, - 10 ) + CAST ( - 43 AS INTEGER ) ) AS col2
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9215
SELECT ALL CAST( NULL AS DECIMAL ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL CAST ( NULL AS REAL ) * 56
----
NULL

query II rowsort
SELECT + 36 AS col1, 11
----
36
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9217
SELECT ALL - 93 DIV + + MIN( DISTINCT 45 ), 58 AS col2
----
-2
58

skipif mysql # not compatible
query II rowsort label-9217
SELECT ALL - 93 / + + MIN ( DISTINCT 45 ), 58 AS col2
----
-2
58

query I rowsort
SELECT 70 * 14 AS col2
----
980

query I rowsort
SELECT 79 * 6 AS col1
----
474

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9220
SELECT 35, CAST( NULL AS DECIMAL ) AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-9220
SELECT 35, CAST ( NULL AS REAL ) AS col0
----
35
NULL

query I rowsort
SELECT ALL - 94 + + 17
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9222
SELECT 60 + + - CAST( COUNT( * ) AS SIGNED ) * + 46 + - CASE NULLIF ( 40, - 0 / - 6 - - COALESCE ( 11, + 40 - - CASE 22 WHEN - 31 * + COUNT( * ) + 60 THEN + 91 ELSE + CASE 68 WHEN 85 THEN NULL WHEN + 14 THEN + 70 END END, 73 * 33 + + 38 * 9 ) + + 15 * - 37 - SUM( DISTINCT 13 + 41 * 37 ) ) WHEN ( + COUNT( * ) ) THEN COUNT( * ) END + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT 60 + + - CAST ( COUNT ( * ) AS INTEGER ) * + 46 + - CASE NULLIF ( 40, - 0 / - 6 - - COALESCE ( 11, + 40 - - CASE 22 WHEN - 31 * + COUNT ( * ) + 60 THEN + 91 ELSE + CASE 68 WHEN 85 THEN NULL WHEN + 14 THEN + 70 END END, 73 * 33 + + 38 * 9 ) + + 15 * - 37 - SUM ( DISTINCT 13 + 41 * 37 ) ) WHEN ( + COUNT ( * ) ) THEN COUNT ( * ) END + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL - 30 + - COUNT( ALL 25 )
----
-31

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - 30 + - COUNT ( ALL 25 )
----
-31

query I rowsort
SELECT DISTINCT - ( - 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL NULLIF ( SUM( - 10 ), - 88 ) + + 63 col0
----
53

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL NULLIF ( SUM ( - 10 ), - 88 ) + + 63 col0
----
53

query I rowsort
SELECT DISTINCT - + 65 * + 62 + 81 AS col2
----
-3949

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT 44 DIV - 25 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9227
SELECT 44 / - 25 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT 33 * + ( + MAX( + + 81 ) ) + MAX( 53 ) * - 87 * - COUNT( * ) AS col1
----
7284

skipif mysql # not compatible
query I rowsort label-9228
SELECT 33 * + ( + MAX ( + + 81 ) ) + MAX ( 53 ) * - 87 * - COUNT ( * ) AS col1
----
7284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT DISTINCT CASE + 82 WHEN + 8 + 17 THEN NULL ELSE CAST( - + ( 80 ) AS SIGNED ) END
----
-80

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT CASE + 82 WHEN + 8 + 17 THEN NULL ELSE CAST ( - + ( 80 ) AS INTEGER ) END
----
-80

query I rowsort
SELECT ALL + - 52 + + - 70
----
-122

query I rowsort
SELECT - ( - 82 ) + 61 + 96 * + 99
----
9647

query I rowsort
SELECT + 69 - - + 36 AS col2
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-9233
SELECT ALL 43 DIV + - 62
----
0

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL 43 / + - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + SUM( - - 73 ) - 62 - 83 * + - 4
----
343

skipif mysql # not compatible
query I rowsort label-9234
SELECT + SUM ( - - 73 ) - 62 - 83 * + - 4
----
343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT ALL + 72 DIV - COUNT( * ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL + 72 / - COUNT ( * ) col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT CASE + + 40 WHEN 6 THEN NULL ELSE 56 END * - COUNT( * ) + 89 + + 3
----
36

skipif mysql # not compatible
query I rowsort label-9236
SELECT CASE + + 40 WHEN 6 THEN NULL ELSE 56 END * - COUNT ( * ) + 89 + + 3
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT DISTINCT + CAST( 13 AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT + CAST ( 13 AS INTEGER ) AS col2
----
13

query II rowsort
SELECT - + 1, COALESCE ( - - 14, + 49 ) col1
----
-1
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT DISTINCT + + 10 - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT + + 10 - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL AVG ( - - NULLIF ( - 50, NULLIF ( + 47, + COALESCE ( 4, + + 70 * - 37 ) * 73 + + + 73 * - 90 ) * - + 78 + - - 10 ) ) * 0 * + CASE 66 WHEN + 54 + 31 * COUNT( * ) THEN NULL WHEN NULLIF ( COUNT( * ), - NULLIF ( CASE 1 WHEN - 93 * - 28 THEN 97 WHEN 60 THEN NULL ELSE NULL END, + SUM( ALL + 6 ) + 60 ) ) * 72 + CASE 36 + 31 WHEN 94 THEN NULL ELSE 59 * COUNT( * ) END THEN - 1 * 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL AVG ( - - NULLIF ( - 50, NULLIF ( + 47, + COALESCE ( 4, + + 70 * - 37 ) * 73 + + + 73 * - 90 ) * - + 78 + - - 10 ) ) * 0 * + CASE 66 WHEN + 54 + 31 * COUNT ( * ) THEN NULL WHEN NULLIF ( COUNT ( * ), - NULLIF ( CASE 1 WHEN - 93 * - 28 THEN 97 WHEN 60 THEN NULL ELSE NULL END, + SUM ( ALL + 6 ) + 60 ) ) * 72 + CASE 36 + 31 WHEN 94 THEN NULL ELSE 59 * COUNT ( * ) END THEN - 1 * 75 END
----
NULL

query I rowsort
SELECT ALL 59 * + - 45 + + 43 AS col0
----
-2612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9242
SELECT - 99 * + COALESCE ( 83, - + COALESCE ( + ( 28 ), - 26 DIV + 85 + - + 75 - + 87 * - + 41 * + + 88 + - COUNT( DISTINCT + 81 ) + - 57 * + 25 ) ) + 39 AS col2
----
-8178

skipif mysql # not compatible
query I rowsort label-9242
SELECT - 99 * + COALESCE ( 83, - + COALESCE ( + ( 28 ), - 26 / + 85 + - + 75 - + 87 * - + 41 * + + 88 + - COUNT ( DISTINCT + 81 ) + - 57 * + 25 ) ) + 39 AS col2
----
-8178

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT NULLIF ( 69, - COUNT( * ) + 29 ) + - - 97
----
166

skipif mysql # not compatible
query I rowsort label-9243
SELECT NULLIF ( 69, - COUNT ( * ) + 29 ) + - - 97
----
166

query I rowsort
SELECT 62 + + 48
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT MAX( - ( + 91 ) ), MIN( DISTINCT 15 ) + - 65 AS col1
----
-91
-50

skipif mysql # not compatible
query II rowsort label-9245
SELECT MAX ( - ( + 91 ) ), MIN ( DISTINCT 15 ) + - 65 AS col1
----
-91
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL - MAX( DISTINCT 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - MAX ( DISTINCT 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9247
SELECT 54 * - COUNT( * ) DIV 88 DIV NULLIF ( + 69, + + COUNT( - + 38 ) * - 73 - - 49 + + 27 ) AS col0, + 52 AS col2
----
0
52

skipif mysql # not compatible
query II rowsort label-9247
SELECT 54 * - COUNT ( * ) / 88 / NULLIF ( + 69, + + COUNT ( - + 38 ) * - 73 - - 49 + + 27 ) AS col0, + 52 AS col2
----
0
52

query I rowsort
SELECT ALL - NULLIF ( + 99, - 48 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT 89 * - COUNT( * ) + - - 59 + - 75 * + + 54 AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-9249
SELECT 89 * - COUNT ( * ) + - - 59 + - 75 * + + 54 AS col0
----
-4080

query I rowsort
SELECT ALL 88 + + + 54 - - 79 * - + 1
----
63

query I rowsort
SELECT + 66 * + - 42 + - 53 + - + 26 + + 24 AS col1
----
-2827

query II rowsort
SELECT + 78 * + + 38 * - 62 - 39, 20 AS col0
----
-183807
20

query I rowsort
SELECT 26 * - 77 * - 20 + + + 91 AS col1
----
40131

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL - COUNT( DISTINCT + 49 ) + - 52
----
-53

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - COUNT ( DISTINCT + 49 ) + - 52
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9255
SELECT ALL 52 + - + 89 + + - COUNT( * ) * 16 AS col2, + 8
----
-53
8

skipif mysql # not compatible
query II rowsort label-9255
SELECT ALL 52 + - + 89 + + - COUNT ( * ) * 16 AS col2, + 8
----
-53
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT + COUNT( + ( - 47 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9256
SELECT + COUNT ( + ( - 47 ) ) AS col2
----
1

query I rowsort
SELECT ALL + 63 + - - NULLIF ( 77, 31 ) AS col2
----
140

query II rowsort
SELECT ALL 46 + + 55, + 32 AS col2
----
101
32

query I rowsort
SELECT ALL 22 + - 7 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9260
SELECT 14 + + 97 DIV + + CASE 96 WHEN - ( COUNT( * ) ) * + 40 THEN NULL ELSE - + 19 END AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9260
SELECT 14 + + 97 / + + CASE 96 WHEN - ( COUNT ( * ) ) * + 40 THEN NULL ELSE - + 19 END AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT ( 60 ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-9261
SELECT ( 60 ) / 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL + COUNT( * ) - 13
----
-12

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + COUNT ( * ) - 13
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ( - - COUNT( - 13 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9263
SELECT ( - - COUNT ( - 13 ) ) AS col0
----
1

query I rowsort
SELECT 69 * 25 AS col2
----
1725

query I rowsort
SELECT DISTINCT - + 87 * - 23 + + 58
----
2059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT + COALESCE ( + ( + - COUNT( * ) ), + NULLIF ( AVG ( DISTINCT - 62 ), - CAST( 33 AS SIGNED ) ) * - - ( 25 ), + + 95 + + 36 ) - 57 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT + COALESCE ( + ( + - COUNT ( * ) ), + NULLIF ( AVG ( DISTINCT - 62 ), - CAST ( 33 AS INTEGER ) ) * - - ( 25 ), + + 95 + + 36 ) - 57 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9267
SELECT ALL CAST( + 44 AS SIGNED ), + MAX( ALL - - 2 ) * + 40 AS col2
----
44
80

skipif mysql # not compatible
query II rowsort label-9267
SELECT ALL CAST ( + 44 AS INTEGER ), + MAX ( ALL - - 2 ) * + 40 AS col2
----
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL - CASE + COUNT( * ) WHEN - 71 THEN NULL WHEN + 34 THEN NULL ELSE - ( - + 93 ) END
----
-93

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL - CASE + COUNT ( * ) WHEN - 71 THEN NULL WHEN + 34 THEN NULL ELSE - ( - + 93 ) END
----
-93

query I rowsort
SELECT - 22 * - 36 + 15
----
807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9270
SELECT MAX( - 0 ) - + 42 * + CAST( - 50 AS SIGNED )
----
2100

skipif mysql # not compatible
query I rowsort label-9270
SELECT MAX ( - 0 ) - + 42 * + CAST ( - 50 AS INTEGER )
----
2100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9271
SELECT DISTINCT + ( - + 44 ) DIV CAST( - - COALESCE ( - 98, - 62, - 57 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + ( - + 44 ) / CAST ( - - COALESCE ( - 98, - 62, - 57 ) AS INTEGER )
----
0

query I rowsort
SELECT ALL 89 + - 71
----
18

query I rowsort
SELECT ALL 7 + + + 75 - - 57 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT SUM( + 81 ) + + 55
----
136

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT SUM ( + 81 ) + + 55
----
136

query I rowsort
SELECT + ( + - 76 ) - 8 col0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT + ( + - 31 ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-9276
SELECT + ( + - 31 ) / 98
----
0

query I rowsort
SELECT ALL 75 * - COALESCE ( - 87, - 35, + + 59 ) + + 48 AS col1
----
6573

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL 81 * + NULLIF ( - 97, + + 6 * - 56 ) * MAX( DISTINCT + - 12 ) + 49 + + - 53 AS col2
----
94280

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL 81 * + NULLIF ( - 97, + + 6 * - 56 ) * MAX ( DISTINCT + - 12 ) + 49 + + - 53 AS col2
----
94280

query I rowsort
SELECT - 94 * + 98 * - 56 * + 89 AS col2
----
45912608

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT + 62 DIV - 49 + 81 * + 49
----
3968

skipif mysql # not compatible
query I rowsort label-9280
SELECT + 62 / - 49 + 81 * + 49
----
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT + SUM( ALL + 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9281
SELECT + SUM ( ALL + 45 ) AS col1
----
45

query I rowsort
SELECT + 76 + - + 41 AS col1
----
35

query I rowsort
SELECT DISTINCT NULLIF ( + - 75, + 85 ) * + - 18 + - 27
----
1323

query I rowsort
SELECT ALL - 11 * + 51 + - 34 * - + ( - - 54 ) * - + 58 AS col0
----
-107049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT + CASE + ( + 78 ) WHEN + COALESCE ( - AVG ( ALL - 3 ), + COUNT( 35 ) ) + - 9 / - NULLIF ( - COALESCE ( + NULLIF ( - ( 83 ), AVG ( + 38 ) ), - COUNT( * ) ), - COUNT( * ) * 87 + - 56 ) THEN NULL WHEN + 42 + 67 / + 89 THEN - COUNT( * ) * 44 - - 36 * - ( 12 * - CASE + 86 WHEN + 0 THEN 30 ELSE NULL END - + 99 * CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT + CASE + ( + 78 ) WHEN + COALESCE ( - AVG ( ALL - 3 ), + COUNT ( 35 ) ) + - 9 / - NULLIF ( - COALESCE ( + NULLIF ( - ( 83 ), AVG ( + 38 ) ), - COUNT ( * ) ), - COUNT ( * ) * 87 + - 56 ) THEN NULL WHEN + 42 + 67 / + 89 THEN - COUNT ( * ) * 44 - - 36 * - ( 12 * - CASE + 86 WHEN + 0 THEN 30 ELSE NULL END - + 99 * CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT DISTINCT - CASE 61 WHEN - CAST( - + 1 AS SIGNED ) * + + CASE - 11 WHEN + - CAST( 50 AS SIGNED ) * - 68 + + 46 + - 19 + + 76 + 13 * - COUNT( * ) THEN 77 + - - 86 WHEN 4 THEN NULL ELSE - 1 END THEN - - 90 * + 85 * 98 + MAX( DISTINCT ( 87 ) + + ( ( 49 ) + + CAST( NULL AS SIGNED ) ) ) * 83 + + 38 / 59 WHEN - COUNT( * ) THEN - MAX( - 48 ) END * + 79 + - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT - CASE 61 WHEN - CAST ( - + 1 AS INTEGER ) * + + CASE - 11 WHEN + - CAST ( 50 AS INTEGER ) * - 68 + + 46 + - 19 + + 76 + 13 * - COUNT ( * ) THEN 77 + - - 86 WHEN 4 THEN NULL ELSE - 1 END THEN - - 90 * + 85 * 98 + MAX ( DISTINCT ( 87 ) + + ( ( 49 ) + + CAST ( NULL AS INTEGER ) ) ) * 83 + + 38 / 59 WHEN - COUNT ( * ) THEN - MAX ( - 48 ) END * + 79 + - 80 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( 61, + 42 ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9288
SELECT + 4 - + + CAST( - + 17 AS SIGNED ) DIV + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9288
SELECT + 4 - + + CAST ( - + 17 AS INTEGER ) / + COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9289
SELECT + ( - - ( + + 82 ) ) * - 60 * COUNT( * ) AS col1, + 3 AS col1
----
-4920
3

skipif mysql # not compatible
query II rowsort label-9289
SELECT + ( - - ( + + 82 ) ) * - 60 * COUNT ( * ) AS col1, + 3 AS col1
----
-4920
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9290
SELECT + ( - - COUNT( * ) ) + NULLIF ( + - 93, + 37 + + 75 ) DIV - + 27
----
4

skipif mysql # not compatible
query I rowsort label-9290
SELECT + ( - - COUNT ( * ) ) + NULLIF ( + - 93, + 37 + + 75 ) / - + 27
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT - 86 DIV - + 5
----
17

skipif mysql # not compatible
query I rowsort label-9291
SELECT - 86 / - + 5
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT DISTINCT CASE + SUM( ALL 73 ) WHEN - 45 + - 82 * - - 11 * - 0 * + + CAST( 75 AS SIGNED ) THEN + 84 WHEN 23 THEN NULL ELSE - 30 - - 18 + - COALESCE ( MIN( DISTINCT - 52 ), + + 44 * + + ( - 21 ) * 73 * COUNT( 18 / 16 ) + 43 + + 18 ) END * - 75 AS col2
----
-3000

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT CASE + SUM ( ALL 73 ) WHEN - 45 + - 82 * - - 11 * - 0 * + + CAST ( 75 AS INTEGER ) THEN + 84 WHEN 23 THEN NULL ELSE - 30 - - 18 + - COALESCE ( MIN ( DISTINCT - 52 ), + + 44 * + + ( - 21 ) * 73 * COUNT ( 18 / 16 ) + 43 + + 18 ) END * - 75 AS col2
----
-3000

query II rowsort
SELECT 10 AS col1, - 97 + - 86 + + 38 + 21
----
10
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT ALL + CAST( - 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + CAST ( - 0 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9295
SELECT + ( - COUNT( * ) ) - + - CAST( NULL AS SIGNED ) AS col2, ( COUNT( * ) ) + - 2 * - ( + 79 ) + 26
----
NULL
185

skipif mysql # not compatible
query II rowsort label-9295
SELECT + ( - COUNT ( * ) ) - + - CAST ( NULL AS INTEGER ) AS col2, ( COUNT ( * ) ) + - 2 * - ( + 79 ) + 26
----
NULL
185

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT ALL ( - COUNT( - 8 ) ) AS col2, - 38 + + COUNT( * )
----
-1
-37

skipif mysql # not compatible
query II rowsort label-9296
SELECT ALL ( - COUNT ( - 8 ) ) AS col2, - 38 + + COUNT ( * )
----
-1
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT ALL + - ( + 17 ) DIV 66 DIV ( + + 47 ) + + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + - ( + 17 ) / 66 / ( + + 47 ) + + - 1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT - + 84 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-9298
SELECT - + 84 / + 89
----
0

query I rowsort
SELECT + - COALESCE ( - 93, + 92, + - 52, - + ( - 2 ) + 56 ) + 20
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL - MAX( 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - MAX ( 83 )
----
-83

query I rowsort
SELECT + + 40 + 16 col0
----
56

query I rowsort
SELECT - - 65 + - 77 AS col1
----
-12

query I rowsort
SELECT - 81 - - 84
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT - 25 + + CAST( + 47 AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9304
SELECT - 25 + + CAST ( + 47 AS INTEGER ) AS col1
----
22

query I rowsort
SELECT ALL - 63 + + - 12 AS col2
----
-75

query I rowsort
SELECT ALL + 4 + + 50 + 47
----
101

query I rowsort
SELECT DISTINCT - - 38 + + 53
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT - 89 + - + MIN( - 41 )
----
-48

skipif mysql # not compatible
query I rowsort label-9308
SELECT - 89 + - + MIN ( - 41 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL - 61 + - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - 61 + - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9310
SELECT 7 AS col2, + 69 * + COUNT( - 34 ) * + COUNT( * ) * + COUNT( * ) / + 15 / + MAX( DISTINCT - 46 ) / + 11 + - COUNT( * ) + CAST( NULL AS SIGNED )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-9310
SELECT 7 AS col2, + 69 * + COUNT ( - 34 ) * + COUNT ( * ) * + COUNT ( * ) / + 15 / + MAX ( DISTINCT - 46 ) / + 11 + - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
7
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9311
SELECT 16, COALESCE ( COUNT( * ), - 9 ) AS col1
----
16
1

skipif mysql # not compatible
query II rowsort label-9311
SELECT 16, COALESCE ( COUNT ( * ), - 9 ) AS col1
----
16
1

query I rowsort
SELECT ALL ( - 53 ) AS col0
----
-53

query I rowsort
SELECT - 71 + 88 AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9314
SELECT - NULLIF ( - 10, + - MAX( DISTINCT + + ( - 22 ) ) / - 75 + 24 + - ( - + 98 ) ), - COUNT( * ) AS col1
----
10
-1

skipif mysql # not compatible
query II rowsort label-9314
SELECT - NULLIF ( - 10, + - MAX ( DISTINCT + + ( - 22 ) ) / - 75 + 24 + - ( - + 98 ) ), - COUNT ( * ) AS col1
----
10
-1

query I rowsort
SELECT + 35 + + + 96 AS col0
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-9316
SELECT ALL + 71 DIV 5 * - + 72
----
-1008

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL + 71 / 5 * - + 72
----
-1008

query II rowsort
SELECT + 89 AS col0, - 46
----
89
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9318
SELECT ALL + COUNT( * ) DIV + 40 + + + COUNT( * ) DIV - 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + COUNT ( * ) / + 40 + + + COUNT ( * ) / - 69 col1
----
0

query I rowsort
SELECT DISTINCT + ( - + 43 )
----
-43

query II rowsort
SELECT ALL + 59, 59
----
59
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT SUM( DISTINCT + 84 ) DIV - - 14 + 56
----
62

skipif mysql # not compatible
query I rowsort label-9321
SELECT SUM ( DISTINCT + 84 ) / - - 14 + 56
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT ALL + 72 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + 72 / - 74
----
0

query II rowsort
SELECT + 76 * NULLIF ( - + 82, + NULLIF ( + 85, - CASE + 50 WHEN - - 99 * + 28 THEN - - ( - 64 ) * - - 31 ELSE - + 66 END * + 22 ) ), 35 AS col1
----
-6232
35

query I rowsort
SELECT + 93 + + 65
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT - 63 DIV + 59 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9325
SELECT - 63 / + 59 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT CAST( NULL AS SIGNED ) / + 67 / - - 64 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9326
SELECT CAST ( NULL AS INTEGER ) / + 67 / - - 64 + 71
----
NULL

query I rowsort
SELECT 63 * 29 + - + 71 AS col1
----
1756

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9328
SELECT DISTINCT + 65 AS col2, - 96 + - 20 * 21 * + 60 + + + 89 * - 0 DIV - 44 + + COUNT( * ) AS col1, 67
----
65
-25295
67

skipif mysql # not compatible
query III rowsort label-9328
SELECT DISTINCT + 65 AS col2, - 96 + - 20 * 21 * + 60 + + + 89 * - 0 / - 44 + + COUNT ( * ) AS col1, 67
----
65
-25295
67

query I rowsort
SELECT - 38 * 80 + + 20 * + 55 * + 16 * 60
----
1052960

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + + 79 + + - SUM( DISTINCT + 64 )
----
15

skipif mysql # not compatible
query I rowsort label-9330
SELECT + + 79 + + - SUM ( DISTINCT + 64 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT + CAST( 23 AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT + CAST ( 23 AS INTEGER ) AS col1
----
23

query I rowsort
SELECT - - 99 * + - 46 + - - 49 AS col2
----
-4505

query I rowsort
SELECT + + 29 + - 0 * - 68 AS col0
----
29

query II rowsort
SELECT 6, 88 col1
----
6
88

query I rowsort
SELECT + - 55 * + + 34 * 30 + - 86 AS col2
----
-56186

onlyif mysql # aggregate syntax: 
query II rowsort label-9336
SELECT ALL COUNT( * ) * + 17 AS col0, - 6 + - + 16
----
17
-22

skipif mysql # not compatible
query II rowsort label-9336
SELECT ALL COUNT ( * ) * + 17 AS col0, - 6 + - + 16
----
17
-22

query I rowsort
SELECT + 95 * + - 93
----
-8835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9338
SELECT + + CASE - CAST( + 17 AS DECIMAL ) WHEN + - 56 / - 44 + - 40 THEN NULL WHEN + 25 * + COUNT( * ) * - 61 * + ( - MIN( + 11 ) ) THEN NULL ELSE - COALESCE ( + COUNT( * ), 61 ) / + CAST( - - 80 AS SIGNED ) END * + COUNT( * ) + COALESCE ( - + ( - 45 ), - 89 ) + + ( 41 + - 38 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT + + CASE - CAST ( + 17 AS REAL ) WHEN + - 56 / - 44 + - 40 THEN NULL WHEN + 25 * + COUNT ( * ) * - 61 * + ( - MIN ( + 11 ) ) THEN NULL ELSE - COALESCE ( + COUNT ( * ), 61 ) / + CAST ( - - 80 AS INTEGER ) END * + COUNT ( * ) + COALESCE ( - + ( - 45 ), - 89 ) + + ( 41 + - 38 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 67 + + + 35 + + 17
----
-15

query I rowsort
SELECT ALL - 8 + 14 + - + 65
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9341
SELECT ALL CASE + 6 WHEN - MAX( + 76 ) THEN CAST( NULL AS SIGNED ) * - + 74 ELSE 90 END
----
90

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL CASE + 6 WHEN - MAX ( + 76 ) THEN CAST ( NULL AS INTEGER ) * - + 74 ELSE 90 END
----
90

query I rowsort
SELECT ALL - - 78 + - 1 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9343
SELECT ALL - 17 DIV + + 26 + + 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL - 17 / + + 26 + + 90 AS col1
----
90

query II rowsort
SELECT DISTINCT 10 + 57 AS col1, 48 - 1
----
67
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9345
SELECT 4 col1, 25 * - CASE + 61 WHEN - 54 THEN NULL ELSE + 66 DIV + - 50 + - COUNT( ALL + - 63 ) + 49 * - 17 END * - - ( 10 ) AS col2
----
4
208750

skipif mysql # not compatible
query II rowsort label-9345
SELECT 4 col1, 25 * - CASE + 61 WHEN - 54 THEN NULL ELSE + 66 / + - 50 + - COUNT ( ALL + - 63 ) + 49 * - 17 END * - - ( 10 ) AS col2
----
4
208750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT CAST( NULL AS SIGNED ) / + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT CAST ( NULL AS INTEGER ) / + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9347
SELECT ALL 72 + CAST( NULL AS SIGNED ) + + - 51 * + + 33 / - - COUNT( * ) AS col1, 12 * + NULLIF ( - + 32, COUNT( DISTINCT - 98 ) * 58 * 82 + + CASE - MAX( DISTINCT ( + - 94 ) ) WHEN - 77 - - 62 THEN - COUNT( - 25 ) ELSE NULL END * + + 79 ) AS col0
----
NULL
-384

skipif mysql # not compatible
query II rowsort label-9347
SELECT ALL 72 + CAST ( NULL AS INTEGER ) + + - 51 * + + 33 / - - COUNT ( * ) AS col1, 12 * + NULLIF ( - + 32, COUNT ( DISTINCT - 98 ) * 58 * 82 + + CASE - MAX ( DISTINCT ( + - 94 ) ) WHEN - 77 - - 62 THEN - COUNT ( - 25 ) ELSE NULL END * + + 79 ) AS col0
----
NULL
-384

query I rowsort
SELECT 54 - - ( + - 13 ) AS col0
----
41

query I rowsort
SELECT 73 + 85 AS col0
----
158

query I rowsort
SELECT ALL + 76 - ( + - 39 ) * 49
----
1987

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9351
SELECT ALL - ( - ( MIN( ALL + - 44 ) ) ) - + 52 + + SUM( + ( + 85 ) ) + 60 / - - CAST( NULL AS DECIMAL ) + - + CAST( NULL AS DECIMAL ) + - + 24 * - + ( - + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL - ( - ( MIN ( ALL + - 44 ) ) ) - + 52 + + SUM ( + ( + 85 ) ) + 60 / - - CAST ( NULL AS REAL ) + - + CAST ( NULL AS REAL ) + - + 24 * - + ( - + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT 98 - + NULLIF ( + MAX( DISTINCT 98 ), + - ( - 36 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9352
SELECT 98 - + NULLIF ( + MAX ( DISTINCT 98 ), + - ( - 36 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT 8 - - - 83 + - 72 + COUNT( * ) * + MAX( DISTINCT + + 66 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9353
SELECT 8 - - - 83 + - 72 + COUNT ( * ) * + MAX ( DISTINCT + + 66 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL + COUNT( * ) - - 25 * - 47 + 70
----
-1104

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + COUNT ( * ) - - 25 * - 47 + 70
----
-1104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT DISTINCT - ( + + COUNT( * ) ) DIV - + 2
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT - ( + + COUNT ( * ) ) / - + 2
----
0

query I rowsort
SELECT ALL - 14 * - - ( 7 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT 23 DIV 51 * 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT 23 / 51 * 48 AS col1
----
0

query II rowsort
SELECT DISTINCT 26 * 62 * 76, + 12 AS col0
----
122512
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9359
SELECT - ( - COUNT( * ) ) DIV + 15 * - COALESCE ( + COUNT( * ), - 0 + + + CAST( + 56 AS SIGNED ) ) * 91
----
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT - ( - COUNT ( * ) ) / + 15 * - COALESCE ( + COUNT ( * ), - 0 + + + CAST ( + 56 AS INTEGER ) ) * 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT 13 DIV + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9360
SELECT 13 / + COUNT ( * ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT COUNT( * ) + - - MIN( 54 ) * - 84 * - 88 AS col2, - 16 - - - 10 + COALESCE ( 75, + COUNT( * ) ) + - + 59 * + COUNT( * )
----
399169
-10

skipif mysql # not compatible
query II rowsort label-9361
SELECT COUNT ( * ) + - - MIN ( 54 ) * - 84 * - 88 AS col2, - 16 - - - 10 + COALESCE ( 75, + COUNT ( * ) ) + - + 59 * + COUNT ( * )
----
399169
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT + COUNT( ( - ( 68 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9362
SELECT + COUNT ( ( - ( 68 ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9363
SELECT ALL + 87 * COALESCE ( + 85, + NULLIF ( 36, - 31 ) - - 44 DIV 24 * + 57 DIV 91 ), CAST( NULL AS SIGNED ) * COALESCE ( CASE - - 45 WHEN - 97 DIV - MAX( + 35 ) THEN + 35 + COUNT( ALL - 63 ) WHEN 88 * - - 46 THEN 71 + 43 * 56 ELSE NULL END, + 14 * 5 + - 36, 54 ) col2
----
7395
NULL

skipif mysql # not compatible
query II rowsort label-9363
SELECT ALL + 87 * COALESCE ( + 85, + NULLIF ( 36, - 31 ) - - 44 / 24 * + 57 / 91 ), CAST ( NULL AS INTEGER ) * COALESCE ( CASE - - 45 WHEN - 97 / - MAX ( + 35 ) THEN + 35 + COUNT ( ALL - 63 ) WHEN 88 * - - 46 THEN 71 + 43 * 56 ELSE NULL END, + 14 * 5 + - 36, 54 ) col2
----
7395
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT + 59 * - 38 + - - COUNT( * ) + + 56 col0
----
-2185

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT + 59 * - 38 + - - COUNT ( * ) + + 56 col0
----
-2185

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + 93 * MAX( ALL - + 28 ) * - - 93 + 42 + 80
----
-242050

skipif mysql # not compatible
query I rowsort label-9365
SELECT + 93 * MAX ( ALL - + 28 ) * - - 93 + 42 + 80
----
-242050

onlyif mysql # aggregate syntax: 
query II rowsort label-9366
SELECT ALL + 37 + 22 AS col1, COUNT( * ) col2
----
59
1

skipif mysql # not compatible
query II rowsort label-9366
SELECT ALL + 37 + 22 AS col1, COUNT ( * ) col2
----
59
1

query II rowsort
SELECT + - 22 * 7 - + + 50 AS col2, - 73 * - 96 AS col1
----
-204
7008

query II rowsort
SELECT ALL - 26 * 22 col1, + ( NULLIF ( + - 56, - + 52 * 13 * + 43 ) ) * + 87 + - - 28 * + 97 * + + 93 AS col2
----
-572
247716

query II rowsort
SELECT ALL + 68 + + 16, 8 AS col1
----
84
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT 62 + - COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9370
SELECT 62 + - COUNT ( * ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL 99 + - COALESCE ( 72, + COUNT( * ) + + + 72 * - - COALESCE ( - MIN( DISTINCT - 70 ), - 34, + 89 ) ) - + 86
----
-59

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL 99 + - COALESCE ( 72, + COUNT ( * ) + + + 72 * - - COALESCE ( - MIN ( DISTINCT - 70 ), - 34, + 89 ) ) - + 86
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT 95 + - 25 + 40 DIV 78
----
70

skipif mysql # not compatible
query I rowsort label-9372
SELECT 95 + - 25 + 40 / 78
----
70

query I rowsort
SELECT 41 + + - 7 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT 99 - - 49 + 48 * - CASE - 64 WHEN + 21 + - MIN( DISTINCT + 62 ) THEN - 34 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT 99 - - 49 + 48 * - CASE - 64 WHEN + 21 + - MIN ( DISTINCT + 62 ) THEN - 34 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9375
SELECT 60, + AVG ( + CAST( NULL AS SIGNED ) ) + - + CASE + + 31 WHEN + + 18 * + COUNT( * ) THEN - + 17 + + COUNT( * ) / + 21 * - 35 WHEN - 18 THEN + CASE - CAST( NULL AS SIGNED ) WHEN + CAST( + - 76 AS SIGNED ) / - 9 * + 11 + + 80 THEN - CASE COALESCE ( - 95, 71 ) WHEN 95 THEN NULL WHEN - NULLIF ( 23, + 16 ) THEN - COUNT( 61 ) END ELSE 45 END END * 41 AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-9375
SELECT 60, + AVG ( + CAST ( NULL AS INTEGER ) ) + - + CASE + + 31 WHEN + + 18 * + COUNT ( * ) THEN - + 17 + + COUNT ( * ) / + 21 * - 35 WHEN - 18 THEN + CASE - CAST ( NULL AS INTEGER ) WHEN + CAST ( + - 76 AS INTEGER ) / - 9 * + 11 + + 80 THEN - CASE COALESCE ( - 95, 71 ) WHEN 95 THEN NULL WHEN - NULLIF ( 23, + 16 ) THEN - COUNT ( 61 ) END ELSE 45 END END * 41 AS col1
----
60
NULL

query II rowsort
SELECT ALL + 44 - - 71 * + 18, - 58 AS col1
----
1322
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9377
SELECT ALL 18 - + SUM( ALL + 98 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL 18 - + SUM ( ALL + 98 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT 89 * + COALESCE ( 85, + 44 * - ( + + ( 56 ) ) DIV - + 89 ) * 3 AS col1
----
22695

skipif mysql # not compatible
query I rowsort label-9378
SELECT 89 * + COALESCE ( 85, + 44 * - ( + + ( 56 ) ) / - + 89 ) * 3 AS col1
----
22695

query I rowsort
SELECT ALL 30 * - 37 col1
----
-1110

query I rowsort
SELECT DISTINCT 88 * + 38 AS col0
----
3344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT CAST( - 81 AS SIGNED ) + + + 41
----
-40

skipif mysql # not compatible
query I rowsort label-9381
SELECT CAST ( - 81 AS INTEGER ) + + + 41
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT DISTINCT - COALESCE ( 12, - + 5 ) DIV - + 35 * COUNT( * ) * - - 2 + 98
----
98

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - COALESCE ( 12, - + 5 ) / - + 35 * COUNT ( * ) * - - 2 + 98
----
98

query I rowsort
SELECT ALL 82 - - - 30 col2
----
52

query I rowsort
SELECT 79 * - + 70 * + - 29 * - 51 * + 94
----
-768813780

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9385
SELECT 24 * - ( + + 29 ), - 21 DIV COUNT( * ) * 23 AS col1, - 8 AS col2
----
-696
-483
-8

skipif mysql # not compatible
query III rowsort label-9385
SELECT 24 * - ( + + 29 ), - 21 / COUNT ( * ) * 23 AS col1, - 8 AS col2
----
-696
-483
-8

query II rowsort
SELECT ALL 98 col1, 98
----
98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9387
SELECT CAST( 48 AS SIGNED ) + - - COUNT( * ) + 4 + - 96 col0
----
-43

skipif mysql # not compatible
query I rowsort label-9387
SELECT CAST ( 48 AS INTEGER ) + - - COUNT ( * ) + 4 + - 96 col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9388
SELECT 78 AS col2, - 61 + - + COUNT( * ) col0
----
78
-62

skipif mysql # not compatible
query II rowsort label-9388
SELECT 78 AS col2, - 61 + - + COUNT ( * ) col0
----
78
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9389
SELECT 33 / + CASE - + COUNT( * ) WHEN 62 * - 44 + 42 THEN + 5 * 26 + - 77 * - 18 + CAST( + - 17 AS SIGNED ) WHEN - + 44 / + + 84 * - - 92 - 95 + - 65 / + 61 + + SUM( ALL 84 ) * + - 38 THEN - + 20 WHEN + 60 * - 42 THEN NULL END / + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT 33 / + CASE - + COUNT ( * ) WHEN 62 * - 44 + 42 THEN + 5 * 26 + - 77 * - 18 + CAST ( + - 17 AS INTEGER ) WHEN - + 44 / + + 84 * - - 92 - 95 + - 65 / + 61 + + SUM ( ALL 84 ) * + - 38 THEN - + 20 WHEN + 60 * - 42 THEN NULL END / + 71 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT COALESCE ( 83, - 47, - 97 * CAST( - - COUNT( * ) AS SIGNED ) * - 32 - + 40 ) + - 98 * 12
----
-1093

skipif mysql # not compatible
query I rowsort label-9390
SELECT COALESCE ( 83, - 47, - 97 * CAST ( - - COUNT ( * ) AS INTEGER ) * - 32 - + 40 ) + - 98 * 12
----
-1093

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL - COUNT( * ) * NULLIF ( 18, 14 ) * + 43 * + + COUNT( * )
----
-774

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL - COUNT ( * ) * NULLIF ( 18, 14 ) * + 43 * + + COUNT ( * )
----
-774

onlyif mysql # DIV for integer division: 
query II rowsort label-9392
SELECT DISTINCT - ( - 85 ) * + 21, 39 DIV + ( + 53 ) AS col2
----
1785
0

skipif mysql # not compatible
query II rowsort label-9392
SELECT DISTINCT - ( - 85 ) * + 21, 39 / + ( + 53 ) AS col2
----
1785
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT 75 * + MAX( - 13 ) col1
----
-975

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT 75 * + MAX ( - 13 ) col1
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT - NULLIF ( - + 54, + SUM( ALL - 76 ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - NULLIF ( - + 54, + SUM ( ALL - 76 ) ) AS col2
----
54

query II rowsort
SELECT ALL - 92, COALESCE ( - 54, + + 93 - - 88, + COALESCE ( - 92, - 40 ) ) AS col2
----
-92
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT - COUNT( DISTINCT + 12 ) + + 97 DIV + 50 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9396
SELECT - COUNT ( DISTINCT + 12 ) + + 97 / + 50 + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT ALL - + 87 * - ( - - CAST( NULL AS SIGNED ) ) * 20 - + 91 + - AVG ( DISTINCT - 23 ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - + 87 * - ( - - CAST ( NULL AS INTEGER ) ) * 20 - + 91 + - AVG ( DISTINCT - 23 ) / - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9398
SELECT + - CASE - + 66 WHEN + - COALESCE ( + 44, - 32, - 95 ) THEN - - 28 WHEN MIN( ALL 45 ) * + + COUNT( * ) * - COUNT( ALL 76 ) THEN + 19 * + ( CAST( 78 AS SIGNED ) ) * 97 + - - SUM( + ( 95 ) ) + - - CASE + + 96 WHEN - COALESCE ( - 92, 11 + + 75 * - 24, 11 ) THEN - 29 ELSE NULL END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT + - CASE - + 66 WHEN + - COALESCE ( + 44, - 32, - 95 ) THEN - - 28 WHEN MIN ( ALL 45 ) * + + COUNT ( * ) * - COUNT ( ALL 76 ) THEN + 19 * + ( CAST ( 78 AS INTEGER ) ) * 97 + - - SUM ( + ( 95 ) ) + - - CASE + + 96 WHEN - COALESCE ( - 92, 11 + + 75 * - 24, 11 ) THEN - 29 ELSE NULL END ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT DISTINCT - + CASE - 33 WHEN + 10 THEN 26 ELSE MAX( + 27 ) * - 75 END
----
2025

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT - + CASE - 33 WHEN + 10 THEN 26 ELSE MAX ( + 27 ) * - 75 END
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + 50 * 95 + + 34 + + COUNT( * )
----
4785

skipif mysql # not compatible
query I rowsort label-9400
SELECT + 50 * 95 + + 34 + + COUNT ( * )
----
4785

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9401
SELECT 79 AS col1, - 45 DIV - - COUNT( ALL 47 ) - ( - ( - + 82 ) ) AS col1
----
79
-127

skipif mysql # not compatible
query II rowsort label-9401
SELECT 79 AS col1, - 45 / - - COUNT ( ALL 47 ) - ( - ( - + 82 ) ) AS col1
----
79
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9402
SELECT + COUNT( * ), + CAST( - + 73 AS SIGNED ) - - 26 + + NULLIF ( - 70, + - 71 ) + + CAST( 2 AS SIGNED ) * - 75 + - ( + 72 ) DIV - - 45 AS col0
----
1
-268

skipif mysql # not compatible
query II rowsort label-9402
SELECT + COUNT ( * ), + CAST ( - + 73 AS INTEGER ) - - 26 + + NULLIF ( - 70, + - 71 ) + + CAST ( 2 AS INTEGER ) * - 75 + - ( + 72 ) / - - 45 AS col0
----
1
-268

onlyif mysql # aggregate syntax: 
query II rowsort label-9403
SELECT - 87 + + 75 * - 53 * - 87, COUNT( * ) AS col0
----
345738
1

skipif mysql # not compatible
query II rowsort label-9403
SELECT - 87 + + 75 * - 53 * - 87, COUNT ( * ) AS col0
----
345738
1

query II rowsort
SELECT ALL + 97 AS col2, CASE - 59 WHEN 85 THEN + + 47 + + + 24 * + 78 ELSE + 39 END * + 64
----
97
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL COUNT( * ) * 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL COUNT ( * ) * 93 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9406
SELECT - + 95 * + + CASE 96 WHEN CASE + - 47 WHEN - 50 + - COUNT( * ) THEN NULL WHEN 86 THEN NULL ELSE - CAST( + 37 AS SIGNED ) + + 72 * COUNT( * ) * + - CASE - 38 WHEN - 90 THEN - 81 WHEN - COALESCE ( + 28, 15 ) + + - 69 + - 35 * + 51 THEN NULL ELSE - 40 END END THEN 0 WHEN + 91 * - COALESCE ( - NULLIF ( 51, + ( - 9 ) / + ( - 64 ) ), + 18 + 83 * - 56, - 6 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT - + 95 * + + CASE 96 WHEN CASE + - 47 WHEN - 50 + - COUNT ( * ) THEN NULL WHEN 86 THEN NULL ELSE - CAST ( + 37 AS INTEGER ) + + 72 * COUNT ( * ) * + - CASE - 38 WHEN - 90 THEN - 81 WHEN - COALESCE ( + 28, 15 ) + + - 69 + - 35 * + 51 THEN NULL ELSE - 40 END END THEN 0 WHEN + 91 * - COALESCE ( - NULLIF ( 51, + ( - 9 ) / + ( - 64 ) ), + 18 + 83 * - 56, - 6 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - + 81 * + 30
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL + + 19 * - + 33 * - ( + - CASE + COALESCE ( + 96, + 51, COUNT( * ) ) WHEN + 52 THEN NULL WHEN - COUNT( * ) THEN - 65 ELSE 52 END ) AS col0
----
-32604

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL + + 19 * - + 33 * - ( + - CASE + COALESCE ( + 96, + 51, COUNT ( * ) ) WHEN + 52 THEN NULL WHEN - COUNT ( * ) THEN - 65 ELSE 52 END ) AS col0
----
-32604

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT - + 51 DIV + 24
----
-2

skipif mysql # not compatible
query I rowsort label-9409
SELECT - + 51 / + 24
----
-2

query I rowsort
SELECT + + 45 + 28 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT - 89 * - ( - 84 ) * - CAST( NULL AS SIGNED ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT - 89 * - ( - 84 ) * - CAST ( NULL AS INTEGER ) + 98
----
NULL

query I rowsort
SELECT ALL 42 - - 14
----
56

query I rowsort
SELECT ALL - 3 * - 70 * + 51
----
10710

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT ALL COUNT( * ) - - 54 + - 48
----
7

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL COUNT ( * ) - - 54 + - 48
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9415
SELECT ALL NULLIF ( - - COUNT( DISTINCT + 36 ), - NULLIF ( - 38, + - 14 / - 15 ) * + + 19 * + 81 ) AS col1, 77
----
1
77

skipif mysql # not compatible
query II rowsort label-9415
SELECT ALL NULLIF ( - - COUNT ( DISTINCT + 36 ), - NULLIF ( - 38, + - 14 / - 15 ) * + + 19 * + 81 ) AS col1, 77
----
1
77

query I rowsort
SELECT + 18 + - 12 + 69
----
75

query I rowsort
SELECT DISTINCT ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT + 70 * + SUM( - 60 )
----
-4200

skipif mysql # not compatible
query I rowsort label-9418
SELECT + 70 * + SUM ( - 60 )
----
-4200

query I rowsort
SELECT ALL 76 * 60
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT + 17 + 78 * - COUNT( * ) col0
----
-61

skipif mysql # not compatible
query I rowsort label-9420
SELECT + 17 + 78 * - COUNT ( * ) col0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT + 34 DIV - 4
----
-8

skipif mysql # not compatible
query I rowsort label-9421
SELECT + 34 / - 4
----
-8

query I rowsort
SELECT ALL + 41 * 72
----
2952

query I rowsort
SELECT + 4 * 21
----
84

query II rowsort
SELECT + 63 - - + ( + - 74 ) + + + COALESCE ( + 0, + 13, 86 * 24 ) - NULLIF ( - 38, ( 23 ) ) AS col0, 47
----
27
47

query I rowsort
SELECT + 80 * + 91 * + ( + + 14 )
----
101920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9426
SELECT ALL + + 12 DIV + + COALESCE ( - - 98, - 82 ) + + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + + 12 / + + COALESCE ( - - 98, - 82 ) + + + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT + ( + + 20 ) DIV - 45 * + COALESCE ( + 87, 46 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9427
SELECT + ( + + 20 ) / - 45 * + COALESCE ( + 87, 46 ) col2
----
0

query I rowsort
SELECT + 48 * + 39 * + 89
----
166608

query II rowsort
SELECT ALL ( + 54 ) * - - 17 + 59, 64 AS col1
----
977
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL - 28 * - ( - 55 ) + + + COUNT( * ) + - + 88 * - ( 32 ) - + - 10 col0
----
1287

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - 28 * - ( - 55 ) + + + COUNT ( * ) + - + 88 * - ( 32 ) - + - 10 col0
----
1287

query I rowsort
SELECT ALL - - 59 * + - ( + - 48 )
----
2832

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + + COALESCE ( - + 22, + + 97 * 55 * COALESCE ( 42, - COALESCE ( - 13, - - 51, + 27 - + 1 * + COUNT( * ) ) - - + 12 + + 86 * 69, 19 * - 75 * 25 + 48, - - 65 ) * COUNT( * ) ) * - SUM( - 73 )
----
-1606

skipif mysql # not compatible
query I rowsort label-9432
SELECT + + COALESCE ( - + 22, + + 97 * 55 * COALESCE ( 42, - COALESCE ( - 13, - - 51, + 27 - + 1 * + COUNT ( * ) ) - - + 12 + + 86 * 69, 19 * - 75 * 25 + 48, - - 65 ) * COUNT ( * ) ) * - SUM ( - 73 )
----
-1606

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT ALL - - 61 * - 97 + + - 88 DIV 25 - - 13
----
-5907

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - - 61 * - 97 + + - 88 / 25 - - 13
----
-5907

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9434
SELECT + + 55 + - + 29 + 66 * - 30 * 97 + + + 74 + + NULLIF ( + 30, CAST( - 95 AS DECIMAL ) )
----
-191930

skipif mysql # not compatible
query I rowsort label-9434
SELECT + + 55 + - + 29 + 66 * - 30 * 97 + + + 74 + + NULLIF ( + 30, CAST ( - 95 AS REAL ) )
----
-191930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9435
SELECT - CAST( NULL AS SIGNED ) * + ( - - ( + + SUM( ALL - 58 ) ) ) + + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT - CAST ( NULL AS INTEGER ) * + ( - - ( + + SUM ( ALL - 58 ) ) ) + + + 97 AS col1
----
NULL

query I rowsort
SELECT ALL 66 * 53 - - - 29
----
3469

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT DISTINCT + + COUNT( ALL + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT + + COUNT ( ALL + 93 )
----
1

query I rowsort
SELECT - 24 + - 70
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT ALL + ( - NULLIF ( + + 61, + 45 ) ) * COUNT( * ) col2, SUM( DISTINCT 54 ) + + 72 * - 37 * 46 + 94
----
-61
-122396

skipif mysql # not compatible
query II rowsort label-9439
SELECT ALL + ( - NULLIF ( + + 61, + 45 ) ) * COUNT ( * ) col2, SUM ( DISTINCT 54 ) + + 72 * - 37 * 46 + 94
----
-61
-122396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT - CAST( NULL AS SIGNED ) + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT - CAST ( NULL AS INTEGER ) + 22 AS col2
----
NULL

query I rowsort
SELECT ALL 67 * 36 - + 1 + NULLIF ( 6, + 81 ) * - NULLIF ( + 84, + + 75 + + - 47 ) AS col0
----
1907

query I rowsort
SELECT ALL - 54 * + - 80
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT - COUNT( * ) + + 81 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-9443
SELECT - COUNT ( * ) + + 81 AS col1
----
80

query I rowsort
SELECT + 47 - + 82
----
-35

query I rowsort
SELECT ALL ( + + 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL NULLIF ( - COALESCE ( NULLIF ( + - 58, + - COUNT( * ) ), + - 67 + + - 21 ), + + 88 + - 5 * - 31 ) + - 76 + 87
----
69

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL NULLIF ( - COALESCE ( NULLIF ( + - 58, + - COUNT ( * ) ), + - 67 + + - 21 ), + + 88 + - 5 * - 31 ) + - 76 + 87
----
69

query I rowsort
SELECT ALL 81 + + 53 + + CASE 72 WHEN + 60 THEN ( + 84 ) + 58 ELSE NULL END
----
NULL

query I rowsort
SELECT - 87 + - + 74 AS col0
----
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL + CAST( NULL AS SIGNED ) + + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 68
----
NULL

query I rowsort
SELECT - 92 + - 95 col2
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT - 19 + - 58 + + 17 / + 86 * - 80 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT - 19 + - 58 + + 17 / + 86 * - 80 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 96 col2
----
-96

query I rowsort
SELECT 99 + 59 AS col0
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT DISTINCT - 83 * + - 57 + - CAST( NULL AS SIGNED ) * + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT - 83 * + - 57 + - CAST ( NULL AS INTEGER ) * + + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT SUM( ALL + - 79 ) * - + 55
----
4345

skipif mysql # not compatible
query I rowsort label-9455
SELECT SUM ( ALL + - 79 ) * - + 55
----
4345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL - 39 - - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - 39 - - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL - MIN( ALL + - 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - MIN ( ALL + - 33 ) AS col1
----
33

query I rowsort
SELECT 70 * + 68
----
4760

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT 1 DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT 1 / + 41 AS col1
----
0

query I rowsort
SELECT - 5 + + - 25 + + 78
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT DISTINCT + 56 DIV - CASE 7 WHEN - COUNT( * ) THEN NULL WHEN - 32 THEN NULL ELSE + 30 END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT + 56 / - CASE 7 WHEN - COUNT ( * ) THEN NULL WHEN - 32 THEN NULL ELSE + 30 END AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9462
SELECT - 23 DIV 29 * 44 DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9462
SELECT - 23 / 29 * 44 / - 71 AS col1
----
0

query I rowsort
SELECT DISTINCT + 32 * - 12
----
-384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT ALL - CAST( - - 56 AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL - CAST ( - - 56 AS INTEGER ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL 66 * + - COALESCE ( 8, - 69 * - + COUNT( * ) * 95 * ( 17 ) ) AS col1
----
-528

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL 66 * + - COALESCE ( 8, - 69 * - + COUNT ( * ) * 95 * ( 17 ) ) AS col1
----
-528

query I rowsort
SELECT 14 * + - 15 AS col2
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT DISTINCT COUNT( * ) * - 80 * + ( + CASE - + 5 WHEN - 9 + - 51 + 55 THEN - COUNT( * ) * - - MAX( + 79 ) + - 4 END ) AS col1
----
6640

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT COUNT ( * ) * - 80 * + ( + CASE - + 5 WHEN - 9 + - 51 + 55 THEN - COUNT ( * ) * - - MAX ( + 79 ) + - 4 END ) AS col1
----
6640

onlyif mysql # DIV for integer division: 
query II rowsort label-9468
SELECT ALL - 53 AS col2, - 26 DIV + + 98 col2
----
-53
0

skipif mysql # not compatible
query II rowsort label-9468
SELECT ALL - 53 AS col2, - 26 / + + 98 col2
----
-53
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT + 27 AS col0, - COUNT( DISTINCT - - ( - - 66 ) ) + + 19
----
27
18

skipif mysql # not compatible
query II rowsort label-9469
SELECT + 27 AS col0, - COUNT ( DISTINCT - - ( - - 66 ) ) + + 19
----
27
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT 27 * COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9470
SELECT 27 * COUNT ( * ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9471
SELECT DISTINCT 90 col0, CAST( - COUNT( * ) AS SIGNED ) * 35 AS col1
----
90
-35

skipif mysql # not compatible
query II rowsort label-9471
SELECT DISTINCT 90 col0, CAST ( - COUNT ( * ) AS INTEGER ) * 35 AS col1
----
90
-35

query I rowsort
SELECT DISTINCT 58 + + - 33
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL - CAST( NULL AS SIGNED ) + - 52 * + 13 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - CAST ( NULL AS INTEGER ) + - 52 * + 13 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9474
SELECT - 48, + 36 DIV + - 65 AS col0
----
-48
0

skipif mysql # not compatible
query II rowsort label-9474
SELECT - 48, + 36 / + - 65 AS col0
----
-48
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT 42 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT 42 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT ALL - CAST( + + 59 AS SIGNED ) + + 9
----
-50

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL - CAST ( + + 59 AS INTEGER ) + + 9
----
-50

query I rowsort
SELECT 23 + + NULLIF ( 14, + ( + 82 ) + - 64 ) * + 80 * 79
----
88503

query II rowsort
SELECT - 62, - 51 AS col2
----
-62
-51

query II rowsort
SELECT 32 + + 74, - 87 AS col0
----
106
-87

query II rowsort
SELECT DISTINCT 66 AS col0, + 81 AS col2
----
66
81

query II rowsort
SELECT 67 AS col1, + 57 * + 69 AS col2
----
67
3933

onlyif mysql # DIV for integer division: 
query II rowsort label-9482
SELECT DISTINCT - 1 + + 82, - 98 DIV - + ( 81 ) AS col0
----
81
1

skipif mysql # not compatible
query II rowsort label-9482
SELECT DISTINCT - 1 + + 82, - 98 / - + ( 81 ) AS col0
----
81
1

query I rowsort
SELECT DISTINCT + 43 - 63 + 23
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ( - NULLIF ( 13, - 17 * + MAX( ALL - 89 ) * + COUNT( * ) + + COALESCE ( - ( - + 56 ), - COUNT( * ), + + 14 ) + 21 - - - 95 + + - 96 + + + 62 + + - 57 * - COUNT( * ) ) ) - + - 2 + + + 31
----
20

skipif mysql # not compatible
query I rowsort label-9484
SELECT ( - NULLIF ( 13, - 17 * + MAX ( ALL - 89 ) * + COUNT ( * ) + + COALESCE ( - ( - + 56 ), - COUNT ( * ), + + 14 ) + 21 - - - 95 + + - 96 + + + 62 + + - 57 * - COUNT ( * ) ) ) - + - 2 + + + 31
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9485
SELECT COALESCE ( 10, - 89, - + 46 DIV + 27 DIV - MIN( DISTINCT - 92 ) + + 66, + COALESCE ( 52, + 8, 13 ) * 25 * - + COUNT( * ) - + 34 )
----
10

skipif mysql # not compatible
query I rowsort label-9485
SELECT COALESCE ( 10, - 89, - + 46 / + 27 / - MIN ( DISTINCT - 92 ) + + 66, + COALESCE ( 52, + 8, 13 ) * 25 * - + COUNT ( * ) - + 34 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT + SUM( - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-9486
SELECT + SUM ( - + 89 )
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9487
SELECT + - 16, + NULLIF ( + ( - + 76 ), - CAST( NULL AS DECIMAL ) ) AS col1
----
-16
-76

skipif mysql # not compatible
query II rowsort label-9487
SELECT + - 16, + NULLIF ( + ( - + 76 ), - CAST ( NULL AS REAL ) ) AS col1
----
-16
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9488
SELECT + CASE + 25 WHEN 2 THEN NULL WHEN + CAST( - 40 AS SIGNED ) THEN NULLIF ( - 64, 14 ) * + 22 + + - 4 + - + 99 / + 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT + CASE + 25 WHEN 2 THEN NULL WHEN + CAST ( - 40 AS INTEGER ) THEN NULLIF ( - 64, 14 ) * + 22 + + - 4 + - + 99 / + 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT + SUM( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-9489
SELECT + SUM ( - 97 )
----
-97

query II rowsort
SELECT ALL - 6, 16 AS col0
----
-6
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT + 60 * - + CASE + COUNT( * ) WHEN COUNT( * ) THEN - 42 + - - NULLIF ( - 72, ( - MIN( ALL 96 ) ) ) ELSE NULL END AS col2
----
6840

skipif mysql # not compatible
query I rowsort label-9491
SELECT + 60 * - + CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - 42 + - - NULLIF ( - 72, ( - MIN ( ALL 96 ) ) ) ELSE NULL END AS col2
----
6840

query I rowsort
SELECT DISTINCT - + 83 * 75 AS col0
----
-6225

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT - 30 col0, NULLIF ( - ( - COUNT( * ) ), + 7 * - 34 - 35 * + ( + + CASE - 19 WHEN - SUM( - ( - 89 ) ) + + 24 + + - 64 - - 84 + - - 51 THEN NULL WHEN - + 31 * - 73 THEN 27 - 67 END ) ) AS col1
----
-30
1

skipif mysql # not compatible
query II rowsort label-9493
SELECT - 30 col0, NULLIF ( - ( - COUNT ( * ) ), + 7 * - 34 - 35 * + ( + + CASE - 19 WHEN - SUM ( - ( - 89 ) ) + + 24 + + - 64 - - 84 + - - 51 THEN NULL WHEN - + 31 * - 73 THEN 27 - 67 END ) ) AS col1
----
-30
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9494
SELECT - ( + 83 ) + - 81 + NULLIF ( - COUNT( * ), + 22 + - - 88 ) DIV + 70 * 74
----
-164

skipif mysql # not compatible
query I rowsort label-9494
SELECT - ( + 83 ) + - 81 + NULLIF ( - COUNT ( * ), + 22 + - - 88 ) / + 70 * 74
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-9495
SELECT 11 DIV - 65 + - 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9495
SELECT 11 / - 65 + - 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT MIN( 43 ) * - 8
----
-344

skipif mysql # not compatible
query I rowsort label-9496
SELECT MIN ( 43 ) * - 8
----
-344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT MIN( - - 82 ) * - 52 * 89 * - 7 + 75 DIV - 45 + + ( + 21 )
----
2656492

skipif mysql # not compatible
query I rowsort label-9497
SELECT MIN ( - - 82 ) * - 52 * 89 * - 7 + 75 / - 45 + + ( + 21 )
----
2656492

query I rowsort
SELECT 33 * 75
----
2475

onlyif mysql # DIV for integer division: 
query I rowsort label-9499
SELECT ALL 53 DIV + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL 53 / + 69 AS col2
----
0

query I rowsort
SELECT DISTINCT - 9 + - - 42 + 60 + - 17 col0
----
76

query II rowsort
SELECT ALL + 54 + - 81 * 51, + 82 col2
----
-4077
82

query II rowsort
SELECT 17 + - 73 AS col1, 61 AS col0
----
-56
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT COUNT( * ) + 44 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9503
SELECT COUNT ( * ) + 44 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT CAST( NULL AS SIGNED ) + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT CAST ( NULL AS INTEGER ) + - 1 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9505
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - SUM( + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - SUM ( + 83 )
----
NULL

query I rowsort
SELECT - NULLIF ( - 26, - 81 / - + 65 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT 52 + 51 + + MIN( DISTINCT 44 ) col0
----
147

skipif mysql # not compatible
query I rowsort label-9507
SELECT 52 + 51 + + MIN ( DISTINCT 44 ) col0
----
147

query I rowsort
SELECT ALL 46 + - 52
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT 23 * + 79 * + MIN( + 67 ) AS col0
----
121739

skipif mysql # not compatible
query I rowsort label-9509
SELECT 23 * + 79 * + MIN ( + 67 ) AS col0
----
121739

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - MAX( + 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9510
SELECT - MAX ( + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT - COUNT( * ) + + - 84 * + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-9511
SELECT - COUNT ( * ) + + - 84 * + COUNT ( * )
----
-85

query I rowsort
SELECT ALL 10 - - + 67 * + + 93
----
6241

query I rowsort
SELECT + 22 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + + 64 - 27 * + MAX( ALL + + 96 ) AS col2
----
-2528

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + + 64 - 27 * + MAX ( ALL + + 96 ) AS col2
----
-2528

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT - COUNT( * ) + + ( ( - 64 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-9515
SELECT - COUNT ( * ) + + ( ( - 64 ) )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9516
SELECT ALL + 22 DIV + MAX( DISTINCT + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL + 22 / + MAX ( DISTINCT + 62 )
----
0

query I rowsort
SELECT + + 42 + - 28 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9518
SELECT + COUNT( * ) DIV + 28 + + - 86
----
-86

skipif mysql # not compatible
query I rowsort label-9518
SELECT + COUNT ( * ) / + 28 + + - 86
----
-86

query II rowsort
SELECT - - 67 + 83, + 29 * + + 52 - + + 17 - - + 4 AS col0
----
150
1495

query I rowsort
SELECT - - 62 - 68 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT - - COUNT( * ) * - - 96
----
96

skipif mysql # not compatible
query I rowsort label-9521
SELECT - - COUNT ( * ) * - - 96
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9522
SELECT - - COUNT( * ) DIV + - NULLIF ( - 40, 80 * - 84 ) AS col1, + 1 DIV + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-9522
SELECT - - COUNT ( * ) / + - NULLIF ( - 40, 80 * - 84 ) AS col1, + 1 / + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9523
SELECT 1 * - 18 + + COALESCE ( + 39, 31 + - 96 + 45, + 18 ) + + + SUM( + 69 ), 1 AS col2
----
90
1

skipif mysql # not compatible
query II rowsort label-9523
SELECT 1 * - 18 + + COALESCE ( + 39, 31 + - 96 + 45, + 18 ) + + + SUM ( + 69 ), 1 AS col2
----
90
1

query I rowsort
SELECT ALL - + 80 * - NULLIF ( + - 37, - + 18 * - 90 / 90 * - - ( + CASE - 35 WHEN - - 80 THEN + 81 * - 40 END ) - ( 47 ) )
----
-2960

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT + 64 DIV 24 + + 91 + - 26
----
67

skipif mysql # not compatible
query I rowsort label-9525
SELECT + 64 / 24 + + 91 + - 26
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT - 80 + + 95 - 86 * - + 46 * COUNT( * )
----
3971

skipif mysql # not compatible
query I rowsort label-9526
SELECT - 80 + + 95 - 86 * - + 46 * COUNT ( * )
----
3971

onlyif mysql # aggregate syntax: 
query II rowsort label-9527
SELECT - SUM( ALL + + 96 ) * 22 AS col1, 29 AS col0
----
-2112
29

skipif mysql # not compatible
query II rowsort label-9527
SELECT - SUM ( ALL + + 96 ) * 22 AS col1, 29 AS col0
----
-2112
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT - SUM( - 16 ) * + ( - 57 ) + COUNT( DISTINCT 9 )
----
-911

skipif mysql # not compatible
query I rowsort label-9528
SELECT - SUM ( - 16 ) * + ( - 57 ) + COUNT ( DISTINCT 9 )
----
-911

query I rowsort
SELECT - 18 * + + 78
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL 98 * NULLIF ( COUNT( + 49 ), - + ( + 24 ) ) + - + 71 * - 65 * + 32
----
147778

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL 98 * NULLIF ( COUNT ( + 49 ), - + ( + 24 ) ) + - + 71 * - 65 * + 32
----
147778

query I rowsort
SELECT + 88 * - 49 * + + 34 AS col2
----
-146608

query I rowsort
SELECT CASE 40 WHEN - - 92 + + 32 THEN - - 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - 76 - COUNT( * ) + + 14 * + 95 * 79 AS col1
----
104993

skipif mysql # not compatible
query I rowsort label-9533
SELECT - 76 - COUNT ( * ) + + 14 * + 95 * 79 AS col1
----
104993

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT + COALESCE ( 14, - + COUNT( * ) * - - ( - ( - 10 ) ) + + 53 )
----
14

skipif mysql # not compatible
query I rowsort label-9534
SELECT + COALESCE ( 14, - + COUNT ( * ) * - - ( - ( - 10 ) ) + + 53 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT - 52 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT - 52 / - 68 AS col0
----
0

query I rowsort
SELECT + 58 * + + 99 AS col1
----
5742

query I rowsort
SELECT - 28 * + 72 AS col2
----
-2016

query I rowsort
SELECT + 34 * 15
----
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9539
SELECT DISTINCT 99 DIV COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT 99 / COUNT ( * )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9540
SELECT MIN( - COALESCE ( + + 94, - 40 ) ) AS col2, 33 - + - CAST( NULL AS SIGNED ) + ( + COUNT( - 8 ) ) + + + 41 * + 92 * - COUNT( * )
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-9540
SELECT MIN ( - COALESCE ( + + 94, - 40 ) ) AS col2, 33 - + - CAST ( NULL AS INTEGER ) + ( + COUNT ( - 8 ) ) + + + 41 * + 92 * - COUNT ( * )
----
-94
NULL

query I rowsort
SELECT ALL 92 * - 15 AS col1
----
-1380

query I rowsort
SELECT + 98 - + + 42 AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9543
SELECT + + ( CAST( 83 AS SIGNED ) ) * + MIN( ALL + 28 )
----
2324

skipif mysql # not compatible
query I rowsort label-9543
SELECT + + ( CAST ( 83 AS INTEGER ) ) * + MIN ( ALL + 28 )
----
2324

query I rowsort
SELECT + + 82 * - 48 + 43 * 50 AS col1
----
-1786

query II rowsort
SELECT + 7, - 36 AS col1
----
7
-36

query I rowsort
SELECT + - 13 + - ( 6 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9547
SELECT - 35 AS col0, + 2 + + COUNT( * ) * - + 92 - 85
----
-35
-175

skipif mysql # not compatible
query II rowsort label-9547
SELECT - 35 AS col0, + 2 + + COUNT ( * ) * - + 92 - 85
----
-35
-175

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9548
SELECT ALL + NULLIF ( + 14, - COALESCE ( + ( + COALESCE ( + 64, - 50 ) ), - AVG ( ALL 43 ), 25 ) - ( - 58 ) + + 12 * - 48 * + CAST( + 33 AS DECIMAL ) + + ( + + 19 ) + - 77 + 77 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + NULLIF ( + 14, - COALESCE ( + ( + COALESCE ( + 64, - 50 ) ), - AVG ( ALL 43 ), 25 ) - ( - 58 ) + + 12 * - 48 * + CAST ( + 33 AS REAL ) + + ( + + 19 ) + - 77 + 77 ) AS col1
----
14

query I rowsort
SELECT ALL + 33 * - 61 + - 31 * + 87
----
-4710

query I rowsort
SELECT + 15 * 34
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL + COUNT( DISTINCT - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + COUNT ( DISTINCT - 54 )
----
1

query I rowsort
SELECT DISTINCT + ( - 37 ) * - 74 + + 73 - 42
----
2769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9553
SELECT ALL - - CASE WHEN + 6 NOT BETWEEN NULL AND 57 THEN NULL ELSE + COUNT( * ) * 76 + ( - CAST( NULL AS SIGNED ) ) END / - - 92 AS col1, - 7
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-9553
SELECT ALL - - CASE WHEN + 6 NOT BETWEEN NULL AND 57 THEN NULL ELSE + COUNT ( * ) * 76 + ( - CAST ( NULL AS INTEGER ) ) END / - - 92 AS col1, - 7
----
NULL
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT 16 + COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT 16 + COUNT ( * ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - 55 + 60 + + 37 - + + 42 * - COUNT( * ) - - - 71
----
13

skipif mysql # not compatible
query I rowsort label-9555
SELECT - 55 + 60 + + 37 - + + 42 * - COUNT ( * ) - - - 71
----
13

query I rowsort
SELECT ALL - 75 + 89
----
14

query I rowsort
SELECT + - 70 - + - ( + + 26 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT - - 6 DIV 23 col0
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT - - 6 / 23 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9559
SELECT + 32 * + SUM( ALL + 16 ) * + 97 + - - 26 - + 28 - - ( + - 78 ) + - 3 * - - COUNT( * ) * - CASE 48 WHEN 97 * 76 + 72 THEN + 66 ELSE - + 20 * - COALESCE ( + 93, 96 DIV 14 + - - CASE - - 19 WHEN + 3 THEN NULL WHEN + 93 THEN CASE 94 WHEN + + NULLIF ( + 89, + COUNT( * ) + + ( - 83 ) * NULLIF ( 24, + 21 ) ) * 73 + CAST( MIN( DISTINCT 16 ) AS SIGNED ) THEN NULL WHEN 69 THEN NULLIF ( 89, 49 ) ELSE NULL END + + COUNT( * ) ELSE - 25 DIV + 22 END ) END - + 66 DIV 26 AS col0
----
55162

skipif mysql # not compatible
query I rowsort label-9559
SELECT + 32 * + SUM ( ALL + 16 ) * + 97 + - - 26 - + 28 - - ( + - 78 ) + - 3 * - - COUNT ( * ) * - CASE 48 WHEN 97 * 76 + 72 THEN + 66 ELSE - + 20 * - COALESCE ( + 93, 96 / 14 + - - CASE - - 19 WHEN + 3 THEN NULL WHEN + 93 THEN CASE 94 WHEN + + NULLIF ( + 89, + COUNT ( * ) + + ( - 83 ) * NULLIF ( 24, + 21 ) ) * 73 + CAST ( MIN ( DISTINCT 16 ) AS INTEGER ) THEN NULL WHEN 69 THEN NULLIF ( 89, 49 ) ELSE NULL END + + COUNT ( * ) ELSE - 25 / + 22 END ) END - + 66 / 26 AS col0
----
55162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9560
SELECT ALL - - NULLIF ( + + 47, - 68 ) DIV - 61 * - - ( - 22 ) + + - 96 * - 92 + + COUNT( * ) AS col2
----
8833

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL - - NULLIF ( + + 47, - 68 ) / - 61 * - - ( - 22 ) + + - 96 * - 92 + + COUNT ( * ) AS col2
----
8833

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT ALL - 56 DIV - + 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - 56 / - + 52 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT DISTINCT + 71 DIV + COUNT( * ) + + ( 72 ) + 10
----
153

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT + 71 / + COUNT ( * ) + + ( 72 ) + 10
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT ALL - 88 / + 19 + - CASE - COUNT( * ) WHEN + COUNT( * ) - - 76 + - 62 * COUNT( * ) THEN NULL WHEN 35 + 54 THEN - COUNT( * ) + 23 * + 24 * 47 END + - CAST( NULL AS SIGNED ) * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL - 88 / + 19 + - CASE - COUNT ( * ) WHEN + COUNT ( * ) - - 76 + - 62 * COUNT ( * ) THEN NULL WHEN 35 + 54 THEN - COUNT ( * ) + 23 * + 24 * 47 END + - CAST ( NULL AS INTEGER ) * + 71
----
NULL

query I rowsort
SELECT - 12 - CASE - + 46 WHEN - ( 80 ) THEN 67 END + + - 25 / + AVG ( + 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT ALL + SUM( ALL 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL + SUM ( ALL 79 ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9566
SELECT DISTINCT - 94 DIV COALESCE ( - 77, - 79, ( CAST( NULL AS SIGNED ) ) + + + 34 + + + 54 ) + - 64 + + 20 * - - 87 AS col1
----
1677

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - 94 / COALESCE ( - 77, - 79, ( CAST ( NULL AS INTEGER ) ) + + + 34 + + + 54 ) + - 64 + + 20 * - - 87 AS col1
----
1677

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT - 76 + 63 + - ( + 61 ) + - 97 + 59 DIV ( - 49 ) * + 81 AS col2
----
-252

skipif mysql # not compatible
query I rowsort label-9567
SELECT - 76 + 63 + - ( + 61 ) + - 97 + 59 / ( - 49 ) * + 81 AS col2
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT 23 + - COUNT( * ) * - ( - 66 ) + + ( - 81 ) col0
----
-124

skipif mysql # not compatible
query I rowsort label-9568
SELECT 23 + - COUNT ( * ) * - ( - 66 ) + + ( - 81 ) col0
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9569
SELECT + COUNT( * ) DIV 90 - + 70 * - ( 30 )
----
2100

skipif mysql # not compatible
query I rowsort label-9569
SELECT + COUNT ( * ) / 90 - + 70 * - ( 30 )
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT ALL - MAX( DISTINCT + 75 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL - MAX ( DISTINCT + 75 ) col0
----
-75

query I rowsort
SELECT 28 * + 45 + + 8
----
1268

query I rowsort
SELECT ALL - 92 - - 35 AS col1
----
-57

query I rowsort
SELECT DISTINCT + 47 * - 50 * 49 AS col0
----
-115150

onlyif mysql # DIV for integer division: 
query I rowsort label-9574
SELECT + 63 DIV + 16 - 40 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9574
SELECT + 63 / + 16 - 40 AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9575
SELECT - COUNT( * ) DIV 33 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9575
SELECT - COUNT ( * ) / 33 * COUNT ( * )
----
0

query I rowsort
SELECT - 90 * - 14 AS col1
----
1260

query I rowsort
SELECT DISTINCT + CASE + 53 WHEN - 58 THEN NULL WHEN - 31 * + 35 THEN NULL ELSE 68 END AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9578
SELECT DISTINCT + 40 DIV + 10
----
4

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT + 40 / + 10
----
4

query I rowsort
SELECT - NULLIF ( - 72, - 16 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT 61 * + COUNT( * ) + 73
----
134

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT 61 * + COUNT ( * ) + 73
----
134

query I rowsort
SELECT DISTINCT 5 + + 92 * - 62 * + 40 * + 18
----
-4106875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9582
SELECT 70 + + COALESCE ( + 64, + - 60, COUNT( * ) + - ( + 23 ) DIV + MIN( 10 ) * + CAST( NULL AS SIGNED ) ) AS col1
----
134

skipif mysql # not compatible
query I rowsort label-9582
SELECT 70 + + COALESCE ( + 64, + - 60, COUNT ( * ) + - ( + 23 ) / + MIN ( 10 ) * + CAST ( NULL AS INTEGER ) ) AS col1
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9583
SELECT ALL COALESCE ( - + CAST( NULL AS SIGNED ), - 44 * COUNT( * ) + CAST( - + COUNT( * ) AS SIGNED ) ) * + 7 AS col2, 3 AS col2
----
-315
3

skipif mysql # not compatible
query II rowsort label-9583
SELECT ALL COALESCE ( - + CAST ( NULL AS INTEGER ), - 44 * COUNT ( * ) + CAST ( - + COUNT ( * ) AS INTEGER ) ) * + 7 AS col2, 3 AS col2
----
-315
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT COUNT( - + 16 ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT COUNT ( - + 16 ) - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT - 83 DIV + 2 + - - 75 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9585
SELECT - 83 / + 2 + - - 75 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT 33 + + - CASE + 16 WHEN + 3 THEN + - 87 ELSE NULL END * - + COUNT( 59 ) * - COUNT( * ) + - CASE + 70 WHEN - COUNT( DISTINCT - + 84 ) THEN NULL ELSE + + ( + 91 ) * + 37 + - 37 / + 37 - + 11 END / - - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT 33 + + - CASE + 16 WHEN + 3 THEN + - 87 ELSE NULL END * - + COUNT ( 59 ) * - COUNT ( * ) + - CASE + 70 WHEN - COUNT ( DISTINCT - + 84 ) THEN NULL ELSE + + ( + 91 ) * + 37 + - 37 / + 37 - + 11 END / - - 60
----
NULL

query I rowsort
SELECT ALL 94 - - + 54 col1
----
148

query I rowsort
SELECT 42 + + 67 * 86
----
5804

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT DISTINCT ( - 24 ) DIV 9 * 55 DIV + 84 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT ( - 24 ) / 9 * 55 / + 84 AS col2
----
-1

query II rowsort
SELECT ALL + 33 * + 77 * - 21 AS col1, + NULLIF ( + 39, - 4 ) * + 75 col2
----
-53361
2925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9591
SELECT DISTINCT - 0 col1, + MAX( + - CAST( + + CAST( + 76 AS SIGNED ) AS SIGNED ) )
----
0
-76

skipif mysql # not compatible
query II rowsort label-9591
SELECT DISTINCT - 0 col1, + MAX ( + - CAST ( + + CAST ( + 76 AS INTEGER ) AS INTEGER ) )
----
0
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT CAST( NULL AS SIGNED ) * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT CAST ( NULL AS INTEGER ) * + - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9593
SELECT DISTINCT ( + 93 ) * MAX( - CAST( - 76 AS SIGNED ) ) * - CASE + - COUNT( * ) WHEN - 42 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + 99 END + - CAST( NULL AS DECIMAL ) + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT ( + 93 ) * MAX ( - CAST ( - 76 AS INTEGER ) ) * - CASE + - COUNT ( * ) WHEN - 42 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 99 END + - CAST ( NULL AS REAL ) + + 33 AS col1
----
NULL

query I rowsort
SELECT 48 * + 40
----
1920

query II rowsort
SELECT ALL - 84, 68 AS col0
----
-84
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT ALL - 88 DIV 74 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - 88 / 74 AS col1
----
-1

query I rowsort
SELECT ALL - COALESCE ( + 43, + - 85, - 47 ) col2
----
-43

query II rowsort
SELECT 30, 27 + - 53 AS col2
----
30
-26

query I rowsort
SELECT 86 * ( + - 62 )
----
-5332

query II rowsort
SELECT - 86, + 16 col0
----
-86
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9601
SELECT ALL - - COALESCE ( MAX( DISTINCT - 86 ), - - 29, + ( - + 54 ) * - + COUNT( * ) DIV - + 21 * + NULLIF ( - 13, + MAX( DISTINCT - 50 ) * + 81 + + + 64 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - - COALESCE ( MAX ( DISTINCT - 86 ), - - 29, + ( - + 54 ) * - + COUNT ( * ) / - + 21 * + NULLIF ( - 13, + MAX ( DISTINCT - 50 ) * + 81 + + + 64 ) )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9602
SELECT - 20, - 45 * 52 * 92 - - 73 * + + 76 + + + CAST( NULL AS SIGNED ) AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-9602
SELECT - 20, - 45 * 52 * 92 - - 73 * + + 76 + + + CAST ( NULL AS INTEGER ) AS col1
----
-20
NULL

query I rowsort
SELECT - 88 * + 27
----
-2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL + - 65 * - + CAST( NULL AS SIGNED ) / - ( 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + - 65 * - + CAST ( NULL AS INTEGER ) / - ( 68 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT ALL + - 49 DIV + 39
----
-1

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + - 49 / + 39
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT ALL - - MAX( - 45 ) + + 43 * + CASE 4 WHEN - 2 + - 1 - + 87 THEN 56 / - + 3 WHEN 0 + - - 90 THEN + + 60 + - + 29 * 99 - 15 END * + COALESCE ( + NULLIF ( - 69, - 21 ), 13 + COALESCE ( - 38, + MIN( + 66 ) * CAST( 96 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL - - MAX ( - 45 ) + + 43 * + CASE 4 WHEN - 2 + - 1 - + 87 THEN 56 / - + 3 WHEN 0 + - - 90 THEN + + 60 + - + 29 * 99 - 15 END * + COALESCE ( + NULLIF ( - 69, - 21 ), 13 + COALESCE ( - 38, + MIN ( + 66 ) * CAST ( 96 AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT + 54 + 6 * - + COALESCE ( + - 87, + - 5 DIV - 54 ) * - 56 col1
----
-29178

skipif mysql # not compatible
query I rowsort label-9607
SELECT + 54 + 6 * - + COALESCE ( + - 87, + - 5 / - 54 ) * - 56 col1
----
-29178

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ( - 63 ) * - SUM( DISTINCT - + 76 ) AS col1
----
-4788

skipif mysql # not compatible
query I rowsort label-9608
SELECT ( - 63 ) * - SUM ( DISTINCT - + 76 ) AS col1
----
-4788

query II rowsort
SELECT - 43, - ( + + ( + + 92 ) ) * - + 6 AS col0
----
-43
552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9610
SELECT 54 + - + 52 - + COUNT( * ) + + 58 DIV - MIN( DISTINCT + 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT 54 + - + 52 - + COUNT ( * ) + + 58 / - MIN ( DISTINCT + 50 ) AS col0
----
0

query I rowsort
SELECT - 60 * + - 33
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT DISTINCT 34 + COUNT( * ) - + + COUNT( * ) col2
----
34

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT 34 + COUNT ( * ) - + + COUNT ( * ) col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT - 4 + + - MIN( 9 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9613
SELECT - 4 + + - MIN ( 9 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL + - 94 + MAX( 82 ) + 99 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL + - 94 + MAX ( 82 ) + 99 AS col2
----
87

query I rowsort
SELECT ALL - 34 + 53 * + 96 AS col0
----
5054

query I rowsort
SELECT 77 * - 91 AS col2
----
-7007

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT ALL - 23 DIV - - ( + - ( - 97 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - 23 / - - ( + - ( - 97 ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT + - 19 + ( + 82 ) col2
----
63

query I rowsort
SELECT DISTINCT - + 56 - 1 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - MAX( ALL - - 13 ) col2
----
-13

skipif mysql # not compatible
query I rowsort label-9620
SELECT - MAX ( ALL - - 13 ) col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL + ( 49 ) - - + MAX( + 89 ) + + 16 - 68 col0
----
86

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + ( 49 ) - - + MAX ( + 89 ) + + 16 - 68 col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9622
SELECT - COUNT( * ), + 84 * - + 51 AS col2
----
-1
-4284

skipif mysql # not compatible
query II rowsort label-9622
SELECT - COUNT ( * ), + 84 * - + 51 AS col2
----
-1
-4284

query I rowsort
SELECT - 35 * - 1 AS col0
----
35

query I rowsort
SELECT ALL ( 66 ) * + 37
----
2442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9625
SELECT - 54 * 27 * - ( - COUNT( * ) ) * - ( + COUNT( * ) ) + - COALESCE ( + 33, 39 ) + 25 + - 90 AS col2, ( - ( + CAST( NULL AS SIGNED ) ) ) * 1 / 91 + - 77 + + COUNT( * ) + - + 70 * NULLIF ( 27, + 61 * 29 ) / + - 39 / + 34 + 54 * - 28 AS col1
----
1360
NULL

skipif mysql # not compatible
query II rowsort label-9625
SELECT - 54 * 27 * - ( - COUNT ( * ) ) * - ( + COUNT ( * ) ) + - COALESCE ( + 33, 39 ) + 25 + - 90 AS col2, ( - ( + CAST ( NULL AS INTEGER ) ) ) * 1 / 91 + - 77 + + COUNT ( * ) + - + 70 * NULLIF ( 27, + 61 * 29 ) / + - 39 / + 34 + 54 * - 28 AS col1
----
1360
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT CASE - - 53 WHEN - 40 THEN NULL ELSE 12 + 30 - ( - 89 ) * + COUNT( * ) END col1
----
131

skipif mysql # not compatible
query I rowsort label-9626
SELECT CASE - - 53 WHEN - 40 THEN NULL ELSE 12 + 30 - ( - 89 ) * + COUNT ( * ) END col1
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9627
SELECT DISTINCT 82 * 91 * - + 65 * - + 87 AS col0, ( - CAST( + CAST( - 8 AS SIGNED ) AS SIGNED ) ) AS col2
----
42197610
8

skipif mysql # not compatible
query II rowsort label-9627
SELECT DISTINCT 82 * 91 * - + 65 * - + 87 AS col0, ( - CAST ( + CAST ( - 8 AS INTEGER ) AS INTEGER ) ) AS col2
----
42197610
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9628
SELECT - 3 DIV + - 59 - + + ( - 27 ) + + 76
----
103

skipif mysql # not compatible
query I rowsort label-9628
SELECT - 3 / + - 59 - + + ( - 27 ) + + 76
----
103

query II rowsort
SELECT ALL + 3 AS col2, + 77
----
3
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9630
SELECT + COUNT( * ), - 55 * 1 * 59 AS col2
----
1
-3245

skipif mysql # not compatible
query II rowsort label-9630
SELECT + COUNT ( * ), - 55 * 1 * 59 AS col2
----
1
-3245

query I rowsort
SELECT + 63 + - 29
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-9632
SELECT DISTINCT + 19 AS col1, - 8 DIV + + 32 AS col0
----
19
0

skipif mysql # not compatible
query II rowsort label-9632
SELECT DISTINCT + 19 AS col1, - 8 / + + 32 AS col0
----
19
0

query I rowsort
SELECT ALL 40 * + + ( ( + 63 ) ) + 69
----
2589

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + 59 * - ( - - COUNT( 47 ) ) + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9634
SELECT + 59 * - ( - - COUNT ( 47 ) ) + + COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT ALL + + 13 * + 21
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT DISTINCT 97 * - MAX( 97 ) + - COALESCE ( 55, - + 5, - 58 ) * - 91
----
-4404

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT 97 * - MAX ( 97 ) + - COALESCE ( 55, - + 5, - 58 ) * - 91
----
-4404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9637
SELECT ALL - 91 * - 57 / - - ( + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) + - - ( + 4 ) * + 30 + - - SUM( ALL - 85 ) * + - COUNT( * ) + - - 58 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - 91 * - 57 / - - ( + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + - - ( + 4 ) * + 30 + - - SUM ( ALL - 85 ) * + - COUNT ( * ) + - - 58 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 23, 32 AS col2
----
23
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9639
SELECT ALL MIN( 56 ) * - + 9 * + - COALESCE ( - - 60, + 44 ) AS col2, 41 AS col1
----
30240
41

skipif mysql # not compatible
query II rowsort label-9639
SELECT ALL MIN ( 56 ) * - + 9 * + - COALESCE ( - - 60, + 44 ) AS col2, 41 AS col1
----
30240
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9640
SELECT + 39 DIV + + COUNT( * ) AS col2, 70
----
39
70

skipif mysql # not compatible
query II rowsort label-9640
SELECT + 39 / + + COUNT ( * ) AS col2, 70
----
39
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT CAST( + - 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-9641
SELECT CAST ( + - 68 AS INTEGER )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT - - 55 * COUNT( * ) + MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT - - 55 * COUNT ( * ) + MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT - SUM( DISTINCT 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9643
SELECT - SUM ( DISTINCT 16 ) AS col2
----
-16

query II rowsort
SELECT - - 20, 92 AS col2
----
20
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - - ( + 43 ) * - 13 + SUM( DISTINCT - 59 ) + 21 AS col2
----
-597

skipif mysql # not compatible
query I rowsort label-9645
SELECT - - ( + 43 ) * - 13 + SUM ( DISTINCT - 59 ) + 21 AS col2
----
-597

query I rowsort
SELECT ALL + 38 * - ( ( + 76 ) )
----
-2888

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9647
SELECT ALL + SUM( DISTINCT + + 43 ) - - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) * MAX( DISTINCT 5 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + SUM ( DISTINCT + + 43 ) - - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) * MAX ( DISTINCT 5 ) AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT DISTINCT - 94 DIV + 66
----
-1

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT - 94 / + 66
----
-1

query II rowsort
SELECT - 33 + - - 85 AS col2, + 72
----
52
72

query III rowsort
SELECT - + 25 col0, 93, + 37 AS col0
----
-25
93
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT - 36 * COUNT( * ) * - SUM( + 35 )
----
1260

skipif mysql # not compatible
query I rowsort label-9651
SELECT - 36 * COUNT ( * ) * - SUM ( + 35 )
----
1260

query I rowsort
SELECT - 42 * + + 71 AS col0
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - 53 + - ( - CASE - 36 WHEN - + CASE + 99 WHEN 89 THEN - + 14 ELSE - 68 END * 12 THEN - COUNT( * ) END ) / + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT - 53 + - ( - CASE - 36 WHEN - + CASE + 99 WHEN 89 THEN - + 14 ELSE - 68 END * 12 THEN - COUNT ( * ) END ) / + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + 59 - - + MIN( DISTINCT - - 46 ) * + - 76
----
-3437

skipif mysql # not compatible
query I rowsort label-9654
SELECT + 59 - - + MIN ( DISTINCT - - 46 ) * + - 76
----
-3437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT ALL CAST( - 88 AS SIGNED ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL CAST ( - 88 AS INTEGER ) AS col2
----
-88

query II rowsort
SELECT - 6 * + - 1 AS col0, 43 * - 98 AS col1
----
6
-4214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT ALL COALESCE ( + 95, + ( 51 ) * + 37 + 81, + COUNT( * ) DIV + COUNT( * ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL COALESCE ( + 95, + ( 51 ) * + 37 + 81, + COUNT ( * ) / + COUNT ( * ) ) AS col1
----
95

query II rowsort
SELECT DISTINCT ( 26 ), + 81 AS col0
----
26
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9659
SELECT - CASE 72 WHEN + 14 THEN + 80 + + CAST( NULL AS SIGNED ) + 89 + + + 81 + - - COUNT( * ) * - 50 * 12 ELSE 56 END * - ( - ( + 48 ) ) AS col1
----
-2688

skipif mysql # not compatible
query I rowsort label-9659
SELECT - CASE 72 WHEN + 14 THEN + 80 + + CAST ( NULL AS INTEGER ) + 89 + + + 81 + - - COUNT ( * ) * - 50 * 12 ELSE 56 END * - ( - ( + 48 ) ) AS col1
----
-2688

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9660
SELECT DISTINCT - COUNT( * ) DIV + 12 AS col0, + 4
----
0
4

skipif mysql # not compatible
query II rowsort label-9660
SELECT DISTINCT - COUNT ( * ) / + 12 AS col0, + 4
----
0
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9661
SELECT ALL - ( COUNT( * ) ) DIV + 32 * - + 33 - - + ( + 25 ) * - - 58 AS col2, - SUM( + - 72 ) + COUNT( * ) + - + 69 * + - COUNT( * ) + + 26 AS col0
----
1450
168

skipif mysql # not compatible
query II rowsort label-9661
SELECT ALL - ( COUNT ( * ) ) / + 32 * - + 33 - - + ( + 25 ) * - - 58 AS col2, - SUM ( + - 72 ) + COUNT ( * ) + - + 69 * + - COUNT ( * ) + + 26 AS col0
----
1450
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT + COUNT( * ) * + - 46 + 1
----
-45

skipif mysql # not compatible
query I rowsort label-9662
SELECT + COUNT ( * ) * + - 46 + 1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT CAST( + 32 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9663
SELECT CAST ( + 32 AS INTEGER ) AS col2
----
32

query I rowsort
SELECT + ( 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9665
SELECT ALL 67 DIV + CASE - - MIN( ALL 46 ) WHEN - + 55 THEN NULL ELSE 58 END + 92 AS col0, + COUNT( * ) AS col0
----
93
1

skipif mysql # not compatible
query II rowsort label-9665
SELECT ALL 67 / + CASE - - MIN ( ALL 46 ) WHEN - + 55 THEN NULL ELSE 58 END + 92 AS col0, + COUNT ( * ) AS col0
----
93
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9666
SELECT DISTINCT + 93 DIV - 87 + - + 23 + + + 4 * + 88, - 89 AS col0
----
328
-89

skipif mysql # not compatible
query II rowsort label-9666
SELECT DISTINCT + 93 / - 87 + - + 23 + + + 4 * + 88, - 89 AS col0
----
328
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT ALL 11 DIV - COUNT( * ) + 45 + + 15 * ( - ( 32 ) ) DIV - COUNT( * ) AS col1
----
514

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL 11 / - COUNT ( * ) + 45 + + 15 * ( - ( 32 ) ) / - COUNT ( * ) AS col1
----
514

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT ALL ( - + 54 ) DIV - 45 + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL ( - + 54 ) / - 45 + - 22
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT COALESCE ( 90, + COUNT( * ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9669
SELECT COALESCE ( 90, + COUNT ( * ) ) AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9670
SELECT + 6 DIV COALESCE ( 22, 80 * - 9 + + - 36, - - 3 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT + 6 / COALESCE ( 22, 80 * - 9 + + - 36, - - 3 ) AS col2
----
0

query I rowsort
SELECT - 98 * - 28 - - 19 * 77 * 1 + + 76 * - 4 - - - 90 col2
----
3813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT + + 22 * - 9 * CAST( - + ( - AVG ( DISTINCT + 88 ) ) AS SIGNED ) * ( + 12 ) + - 78 AS col2
----
-209166

skipif mysql # not compatible
query I rowsort label-9672
SELECT + + 22 * - 9 * CAST ( - + ( - AVG ( DISTINCT + 88 ) ) AS INTEGER ) * ( + 12 ) + - 78 AS col2
----
-209166

query I rowsort
SELECT ALL - + 31 * + 7 + + + 2 col0
----
-215

query I rowsort
SELECT + + 79 * 25 - 50 AS col1
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT + ( COUNT( * ) ) * ( - - 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9675
SELECT + ( COUNT ( * ) ) * ( - - 39 ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9676
SELECT DISTINCT 64 * - - COUNT( * ) + NULLIF ( - 60, - 27 * - - 76 * + MIN( + 78 ) ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT 64 * - - COUNT ( * ) + NULLIF ( - 60, - 27 * - - 76 * + MIN ( + 78 ) ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + - 1 * SUM( + 73 ) + + - 57 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-9677
SELECT + - 1 * SUM ( + 73 ) + + - 57 AS col1
----
-130

query I rowsort
SELECT - - ( - + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9679
SELECT - 64, - COUNT( * ) + 61 AS col2
----
-64
60

skipif mysql # not compatible
query II rowsort label-9679
SELECT - 64, - COUNT ( * ) + 61 AS col2
----
-64
60

query I rowsort
SELECT 26 + + - 95 - + 81 + - ( - - ( - + 99 ) )
----
-51

query II rowsort
SELECT DISTINCT 68 AS col1, - 58 + 12 * - + 35 AS col1
----
68
-478

query I rowsort
SELECT DISTINCT - 19 * + + 25
----
-475

query I rowsort
SELECT DISTINCT - 20 + - 5 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9684
SELECT COUNT( * ) DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-9684
SELECT COUNT ( * ) / + 22
----
0

query II rowsort
SELECT 41 AS col2, + 92 + - 19 + + + 90 * - + 67 + - 31 AS col2
----
41
-5988

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT + 7 * + 87 + + COUNT( ALL - + 22 )
----
610

skipif mysql # not compatible
query I rowsort label-9686
SELECT + 7 * + 87 + + COUNT ( ALL - + 22 )
----
610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9687
SELECT DISTINCT - ( CASE 3 WHEN - + CAST( NULL AS SIGNED ) + + MIN( DISTINCT 14 ) THEN NULL ELSE - 78 + + - 91 + - 6 END ) + 92 + + NULLIF ( - + 69, - COUNT( + 6 ) - - COUNT( * ) - COUNT( * ) - ( - 29 ) + MIN( + 17 ) + - 13 * + 58 ) * - ( - + ( + 30 ) )
----
-1803

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - ( CASE 3 WHEN - + CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT 14 ) THEN NULL ELSE - 78 + + - 91 + - 6 END ) + 92 + + NULLIF ( - + 69, - COUNT ( + 6 ) - - COUNT ( * ) - COUNT ( * ) - ( - 29 ) + MIN ( + 17 ) + - 13 * + 58 ) * - ( - + ( + 30 ) )
----
-1803

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL + 2 + + MIN( + + 68 ) + - + 65
----
5

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL + 2 + + MIN ( + + 68 ) + - + 65
----
5

query II rowsort
SELECT + 53 AS col1, - 92
----
53
-92

query II rowsort
SELECT 27, - 54 AS col0
----
27
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT ALL - 39 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL - 39 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT DISTINCT + 84 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + 84 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 92 - + + 47
----
45

query I rowsort
SELECT ALL + + 42 + - 73 AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT 48 DIV - 9 + - 48 + + 13 col2
----
-40

skipif mysql # not compatible
query I rowsort label-9695
SELECT 48 / - 9 + - 48 + + 13 col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT ( - COUNT( * ) ) * - + 23 * 29 + + + 14 + 5 * + 14 * - 65 AS col1, 77 - 0 * 44
----
-3869
77

skipif mysql # not compatible
query II rowsort label-9696
SELECT ( - COUNT ( * ) ) * - + 23 * 29 + + + 14 + 5 * + 14 * - 65 AS col1, 77 - 0 * 44
----
-3869
77

query I rowsort
SELECT + + ( + 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT - - CASE + 62 WHEN - + 50 THEN + COUNT( * ) WHEN 26 - - COALESCE ( + 68, - 96 - - 69 * + 70, + 12 ) * + 57 THEN MAX( DISTINCT 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT - - CASE + 62 WHEN - + 50 THEN + COUNT ( * ) WHEN 26 - - COALESCE ( + 68, - 96 - - 69 * + 70, + 12 ) * + 57 THEN MAX ( DISTINCT 50 ) END
----
NULL

query I rowsort
SELECT 14 + - - ( - - 5 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT + MAX( - 29 ) * - 96 + MAX( + 4 ) + - 11
----
2777

skipif mysql # not compatible
query I rowsort label-9700
SELECT + MAX ( - 29 ) * - 96 + MAX ( + 4 ) + - 11
----
2777

query I rowsort
SELECT 4 - + ( + 85 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT DISTINCT - 60 * - 20 - + COUNT( ALL - NULLIF ( - 51, + CASE - 71 WHEN - 69 / 8 THEN - COALESCE ( 63, + 68 ) END ) ) AS col0
----
1199

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT - 60 * - 20 - + COUNT ( ALL - NULLIF ( - 51, + CASE - 71 WHEN - 69 / 8 THEN - COALESCE ( 63, + 68 ) END ) ) AS col0
----
1199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT ALL + 2 - + 5 + 6 * - CAST( - 62 AS SIGNED )
----
369

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + 2 - + 5 + 6 * - CAST ( - 62 AS INTEGER )
----
369

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT + COUNT( * ), 45 AS col2
----
1
45

skipif mysql # not compatible
query II rowsort label-9704
SELECT + COUNT ( * ), 45 AS col2
----
1
45

query I rowsort
SELECT ALL - + 87 * - 10 AS col1
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT + - COUNT( * ) - - + COUNT( * ) + - + COUNT( * ) + + 4 + + + 53 * + + COUNT( * ) * + 94 AS col2
----
4985

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + - COUNT ( * ) - - + COUNT ( * ) + - + COUNT ( * ) + + 4 + + + 53 * + + COUNT ( * ) * + 94 AS col2
----
4985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL - 11 * + + CASE - - 31 WHEN + CAST( + 33 AS SIGNED ) - + CAST( - + 90 AS SIGNED ) THEN 14 + - + 46 * 93 * 55 WHEN 25 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL - 11 * + + CASE - - 31 WHEN + CAST ( + 33 AS INTEGER ) - + CAST ( - + 90 AS INTEGER ) THEN 14 + - + 46 * 93 * 55 WHEN 25 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL - SUM( - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - SUM ( - 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT - - ( - ( - COUNT( * ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - - ( - ( - COUNT ( * ) ) ) col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9710
SELECT + CAST( NULL AS DECIMAL ) + + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT + CAST ( NULL AS REAL ) + + - 82 AS col2
----
NULL

query I rowsort
SELECT 62 * 63 + + 84 AS col1
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT - 15 * + + 60 + - CASE 43 WHEN + 60 THEN - + 49 + + COUNT( * ) * + ( - 2 ) ELSE COUNT( * ) END
----
-901

skipif mysql # not compatible
query I rowsort label-9712
SELECT - 15 * + + 60 + - CASE 43 WHEN + 60 THEN - + 49 + + COUNT ( * ) * + ( - 2 ) ELSE COUNT ( * ) END
----
-901

query II rowsort
SELECT ALL - 50 AS col2, 34 - + ( + + 78 )
----
-50
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9714
SELECT - 80 AS col2, 32 * + COUNT( * ) - + 35 + 62 - - 87 + - CAST( NULL AS SIGNED ) + + 53 + + 51
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-9714
SELECT - 80 AS col2, 32 * + COUNT ( * ) - + 35 + 62 - - 87 + - CAST ( NULL AS INTEGER ) + + 53 + + 51
----
-80
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT 39 + - 80 * 46 DIV 95
----
1

skipif mysql # not compatible
query I rowsort label-9715
SELECT 39 + - 80 * 46 / 95
----
1

query II rowsort
SELECT 5, - 16 - + 73 AS col1
----
5
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL 12 * + MAX( + 27 ) + - - 76 AS col2
----
400

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL 12 * + MAX ( + 27 ) + - - 76 AS col2
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT ALL NULLIF ( + + 21, + ( + 30 ) ) DIV - 5 + + 1
----
-3

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL NULLIF ( + + 21, + ( + 30 ) ) / - 5 + + 1
----
-3

query I rowsort
SELECT DISTINCT 59 * - 81
----
-4779

query I rowsort
SELECT ALL 18 * 42 AS col2
----
756

query I rowsort
SELECT ALL ( - - 65 ) * + 0 * - 20 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ( COUNT( * ) ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9722
SELECT ( COUNT ( * ) ) + + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT ALL 64 * 83 * + - 56 * + CASE + ( + 48 ) WHEN 43 THEN - 11 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT 32 * - + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT 32 * - + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 82 + - 85 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT 77 DIV - - 61
----
1

skipif mysql # not compatible
query I rowsort label-9726
SELECT 77 / - - 61
----
1

query II rowsort
SELECT ALL 58 + - 37, 49 AS col2
----
21
49

query I rowsort
SELECT 93 + 91 + 16 + - + 73
----
127

query I rowsort
SELECT ALL 22 + - - 87 * - 93
----
-8069

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9730
SELECT CAST( 88 AS DECIMAL ) / + - 31 + - ( + - 68 ) + - + 49 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9730
SELECT CAST ( 88 AS REAL ) / + - 31 + - ( + - 68 ) + - + 49 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 51 * + 82
----
4182

query I rowsort
SELECT 2 + + 5
----
7

query I rowsort
SELECT ALL NULLIF ( + + 86, + CASE 34 WHEN - + 67 THEN + 40 ELSE NULL END / - 66 ) * 24 * 92 * - - 68 + 2 AS col1
----
12912386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9734
SELECT DISTINCT + 89 * - - COUNT( * ) AS col1, CAST( NULL AS SIGNED )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-9734
SELECT DISTINCT + 89 * - - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER )
----
89
NULL

query I rowsort
SELECT DISTINCT + - 73 * + 90
----
-6570

query I rowsort
SELECT - 55 * + 60 + 92
----
-3208

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT + 64 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT + 64 / - 92
----
0

query I rowsort
SELECT ALL - + 38 col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9739
SELECT DISTINCT 12 * - COALESCE ( + 81, - 97 ) - + - CASE COUNT( * ) WHEN + 4 THEN COUNT( * ) WHEN 26 * 89 + ( 86 ) / - + 74 THEN + CASE WHEN - COUNT( * ) NOT IN ( AVG ( + - 71 ), 49 - - - 61 ) THEN - 26 / + COUNT( * ) - + 34 + 61 * MIN( 23 ) ELSE + - 53 END ELSE - 65 + + - CASE CAST( + 0 AS SIGNED ) WHEN - ( + - 23 ) THEN 80 WHEN 0 * 30 + - 43 THEN NULL WHEN - 69 - + 10 THEN 86 * 51 END + 23 * 88 * 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT 12 * - COALESCE ( + 81, - 97 ) - + - CASE COUNT ( * ) WHEN + 4 THEN COUNT ( * ) WHEN 26 * 89 + ( 86 ) / - + 74 THEN + CASE WHEN - COUNT ( * ) NOT IN ( AVG ( + - 71 ), 49 - - - 61 ) THEN - 26 / + COUNT ( * ) - + 34 + 61 * MIN ( 23 ) ELSE + - 53 END ELSE - 65 + + - CASE CAST ( + 0 AS INTEGER ) WHEN - ( + - 23 ) THEN 80 WHEN 0 * 30 + - 43 THEN NULL WHEN - 69 - + 10 THEN 86 * 51 END + 23 * 88 * 91 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9740
SELECT DISTINCT + COUNT( * ) DIV + + 11
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT + COUNT ( * ) / + + 11
----
0

query I rowsort
SELECT - - 1 * - 49 AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT - 30 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-9742
SELECT - 30 / - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT - 57 - - ( COUNT( DISTINCT - + 43 ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9743
SELECT - 57 - - ( COUNT ( DISTINCT - + 43 ) ) AS col1
----
-56

query I rowsort
SELECT DISTINCT 1 * + + 49
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9745
SELECT - 71 + + 53 + + COUNT( * ) DIV - + 93 * - 22 + + COALESCE ( - 98, NULLIF ( 27, + + COUNT( * ) + ( + 66 ) * - 70 ) DIV 66 )
----
-116

skipif mysql # not compatible
query I rowsort label-9745
SELECT - 71 + + 53 + + COUNT ( * ) / - + 93 * - 22 + + COALESCE ( - 98, NULLIF ( 27, + + COUNT ( * ) + ( + 66 ) * - 70 ) / 66 )
----
-116

query I rowsort
SELECT - + 44 * + + 43 * + 51 AS col0
----
-96492

query I rowsort
SELECT ALL 18 + + + 53 AS col0
----
71

query I rowsort
SELECT DISTINCT + 28 * 95 col1
----
2660

onlyif mysql # aggregate syntax: 
query II rowsort label-9749
SELECT ALL COALESCE ( + - 96, 14 * + + 17 - COUNT( * ) ) AS col0, + 15 AS col2
----
-96
15

skipif mysql # not compatible
query II rowsort label-9749
SELECT ALL COALESCE ( + - 96, 14 * + + 17 - COUNT ( * ) ) AS col0, + 15 AS col2
----
-96
15

query I rowsort
SELECT DISTINCT - 56 + - 6 * 10 * + 33
----
-2036

query I rowsort
SELECT ALL 41 + 16 - - 86
----
143

query II rowsort
SELECT - 80 AS col0, - 54 * - CASE - 61 WHEN - 35 THEN + ( + + 92 ) WHEN - - 40 THEN NULL WHEN - - 57 THEN - 52 * + 38 + - 97 END AS col2
----
-80
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9753
SELECT ALL 35 DIV - - 34 col2
----
1

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL 35 / - - 34 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT + CAST( NULL AS SIGNED ) + - - 95 + 29 * + 75 / + COUNT( * ) * - CAST( + 32 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT + CAST ( NULL AS INTEGER ) + - - 95 + 29 * + 75 / + COUNT ( * ) * - CAST ( + 32 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT MIN( + 35 ) + 37 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT MIN ( + 35 ) + 37 AS col0
----
72

query I rowsort
SELECT ALL NULLIF ( - 51, - + 69 ) + + 81
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9757
SELECT + CAST( NULL AS SIGNED ) * - 98 * - COUNT( * ) AS col2, NULLIF ( - 8, - 57 ) DIV - 46 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9757
SELECT + CAST ( NULL AS INTEGER ) * - 98 * - COUNT ( * ) AS col2, NULLIF ( - 8, - 57 ) / - 46 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT 16 * - + 27 * COUNT( * ) col1
----
-432

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT 16 * - + 27 * COUNT ( * ) col1
----
-432

query I rowsort
SELECT DISTINCT 34 * + 58
----
1972

query I rowsort
SELECT DISTINCT 10 * + 62
----
620

query I rowsort
SELECT ALL 69 - + + 76
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + 74 - - - 38 - + COUNT( * ) + - 91 + - COUNT( * ) * 29 + + - 41 + 36 - 49 * + 10 * - 13 * + 65 AS col1
----
413960

skipif mysql # not compatible
query I rowsort label-9762
SELECT + 74 - - - 38 - + COUNT ( * ) + - 91 + - COUNT ( * ) * 29 + + - 41 + 36 - 49 * + 10 * - 13 * + 65 AS col1
----
413960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9763
SELECT + CASE 80 WHEN 59 * - 54 * + + CAST( NULL AS DECIMAL ) * COUNT( DISTINCT - ( + - 25 ) ) - - COUNT( * ) THEN 14 + - 94 + + 21 + + COALESCE ( + + 23, COUNT( ALL - CAST( NULL AS SIGNED ) ) ) * + + 19 * - 43 * - 91 END + + + 98 - 22 + + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT + CASE 80 WHEN 59 * - 54 * + + CAST ( NULL AS REAL ) * COUNT ( DISTINCT - ( + - 25 ) ) - - COUNT ( * ) THEN 14 + - 94 + + 21 + + COALESCE ( + + 23, COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) * + + 19 * - 43 * - 91 END + + + 98 - 22 + + + 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9764
SELECT ALL 62 AS col0, 68 * 14 AS col1, CAST( + 28 AS SIGNED ) * - 27
----
62
952
-756

skipif mysql # not compatible
query III rowsort label-9764
SELECT ALL 62 AS col0, 68 * 14 AS col1, CAST ( + 28 AS INTEGER ) * - 27
----
62
952
-756

query I rowsort
SELECT + + 40 + - 61 AS col0
----
-21

query II rowsort
SELECT 73 AS col1, 18
----
73
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL + + SUM( DISTINCT - + ( 20 ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + + SUM ( DISTINCT - + ( 20 ) ) AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT DISTINCT 33 DIV 63 - + 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT 33 / 63 - + 20 AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT + 48 - 45 DIV - 99 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9769
SELECT + 48 - 45 / - 99 AS col1
----
48

query I rowsort
SELECT DISTINCT + + COALESCE ( + 82, - 99 )
----
82

query I rowsort
SELECT DISTINCT 49 * - - 92
----
4508

query I rowsort
SELECT + + 39 + 69 AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9773
SELECT ALL + 28 * + 92 * + COALESCE ( 48, - CAST( COALESCE ( - 98, + ( + + 32 ) ) AS SIGNED ), 67 ) AS col1, - 2 col1
----
123648
-2

skipif mysql # not compatible
query II rowsort label-9773
SELECT ALL + 28 * + 92 * + COALESCE ( 48, - CAST ( COALESCE ( - 98, + ( + + 32 ) ) AS INTEGER ), 67 ) AS col1, - 2 col1
----
123648
-2

query I rowsort
SELECT DISTINCT + + ( - 36 )
----
-36

query I rowsort
SELECT ALL - 58 * 87 + - - 39 AS col0
----
-5007

query II rowsort
SELECT + 65, + 72 AS col1
----
65
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT - - 33 * + - COUNT( * ) * 37 + + SUM( ALL + 33 )
----
-1188

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT - - 33 * + - COUNT ( * ) * 37 + + SUM ( ALL + 33 )
----
-1188

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT - 77 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT - 77 / 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL 33 * + COUNT( * ) + - - 7 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL 33 * + COUNT ( * ) + - - 7 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9780
SELECT - SUM( ALL 29 ) AS col1, - 93 DIV 24 AS col2
----
-29
-3

skipif mysql # not compatible
query II rowsort label-9780
SELECT - SUM ( ALL 29 ) AS col1, - 93 / 24 AS col2
----
-29
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT - 23 * - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT - 23 * - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9782
SELECT - COUNT( * ) AS col1, + 11 AS col1
----
-1
11

skipif mysql # not compatible
query II rowsort label-9782
SELECT - COUNT ( * ) AS col1, + 11 AS col1
----
-1
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9783
SELECT ALL CAST( NULL AS SIGNED ), - 94 * - + CASE - + CAST( NULL AS SIGNED ) WHEN + + 74 * - COUNT( * ) * 25 + + - COUNT( * ) THEN - 50 ELSE NULL END * 46 + - CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9783
SELECT ALL CAST ( NULL AS INTEGER ), - 94 * - + CASE - + CAST ( NULL AS INTEGER ) WHEN + + 74 * - COUNT ( * ) * 25 + + - COUNT ( * ) THEN - 50 ELSE NULL END * 46 + - CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9784
SELECT ALL - 99 * - MIN( DISTINCT - ( + + 68 ) ) * - 47 * + CAST( NULL AS SIGNED ) * - 71 * - 81 * + 99 + + + 64 / - 77 * - - 27 + 43 * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - 99 * - MIN ( DISTINCT - ( + + 68 ) ) * - 47 * + CAST ( NULL AS INTEGER ) * - 71 * - 81 * + 99 + + + 64 / - 77 * - - 27 + 43 * 41 AS col2
----
NULL

query II rowsort
SELECT - NULLIF ( 30, - - 15 * - 46 * 33 ) + - 3, + 71 col1
----
-33
71

query I rowsort
SELECT DISTINCT + 98 * + 60 AS col0
----
5880

query I rowsort
SELECT ALL ( - - 8 )
----
8

query I rowsort
SELECT ALL CASE WHEN - 57 IS NULL THEN NULL WHEN + 29 IS NOT NULL THEN NULL ELSE - 3 END - 4
----
NULL

query I rowsort
SELECT ALL + 80 * 35
----
2800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9790
SELECT DISTINCT + 71 - COUNT( * ) * + + COALESCE ( - + 85, - CAST( NULL AS SIGNED ) ) * + 66 + - - 39 DIV 41 AS col1
----
5681

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + 71 - COUNT ( * ) * + + COALESCE ( - + 85, - CAST ( NULL AS INTEGER ) ) * + 66 + - - 39 / 41 AS col1
----
5681

query II rowsort
SELECT - 47 AS col1, - 14
----
-47
-14

query I rowsort
SELECT + 63 + - ( 58 )
----
5

query I rowsort
SELECT ALL - 53 - - 31 AS col1
----
-22

query I rowsort
SELECT - 33 * 41 * + 73 AS col1
----
-98769

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + 39 + + COUNT( * ) * ( + 83 ) AS col0
----
122

skipif mysql # not compatible
query I rowsort label-9795
SELECT + 39 + + COUNT ( * ) * ( + 83 ) AS col0
----
122

query I rowsort
SELECT + + 95 * + 32
----
3040

query I rowsort
SELECT ALL 49 * - + 16 + 93
----
-691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9798
SELECT + 19 DIV - + 73 - - 1 + - ( + + ( - SUM( ALL + 56 ) ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9798
SELECT + 19 / - + 73 - - 1 + - ( + + ( - SUM ( ALL + 56 ) ) ) AS col0
----
57

query I rowsort
SELECT + NULLIF ( + 17, - 21 ) + + - 6 AS col1
----
11

query I rowsort
SELECT DISTINCT COALESCE ( + 52, - 78 ) AS col2
----
52

query I rowsort
SELECT ALL - 23 * - - 15 - - + 73 AS col1
----
-272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9802
SELECT + 85 / - 39 * CASE + CASE - 55 WHEN - ( 25 ) + + 78 + 22 - + - 69 * - - CAST( + 88 AS SIGNED ) THEN 50 WHEN + - 23 THEN - 76 + - - COUNT( * ) * - - ( + COALESCE ( COALESCE ( + COUNT( * ), COUNT( * ) - - - SUM( DISTINCT + - ( 13 ) ) + + - COALESCE ( + + MAX( ALL + 44 ), 11 * - 28 * + 56 + 73, - COUNT( * ) ), 88 + 42 - + - 58 * + 68 * + 58 ), + 45 + + 28, + 56 ) ) WHEN 85 THEN 16 + 68 ELSE NULL END WHEN - 70 THEN + 24 * + COALESCE ( 90, + 86 + ( 80 ) * 27 ) WHEN COUNT( * ) * + 2 THEN NULL END * SUM( ALL 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 85 / - 39 * CASE + CASE - 55 WHEN - ( 25 ) + + 78 + 22 - + - 69 * - - CAST ( + 88 AS INTEGER ) THEN 50 WHEN + - 23 THEN - 76 + - - COUNT ( * ) * - - ( + COALESCE ( COALESCE ( + COUNT ( * ), COUNT ( * ) - - - SUM ( DISTINCT + - ( 13 ) ) + + - COALESCE ( + + MAX ( ALL + 44 ), 11 * - 28 * + 56 + 73, - COUNT ( * ) ), 88 + 42 - + - 58 * + 68 * + 58 ), + 45 + + 28, + 56 ) ) WHEN 85 THEN 16 + 68 ELSE NULL END WHEN - 70 THEN + 24 * + COALESCE ( 90, + 86 + ( 80 ) * 27 ) WHEN COUNT ( * ) * + 2 THEN NULL END * SUM ( ALL 76 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9803
SELECT + 53, 35 + - NULLIF ( - 92, 89 ) DIV - 97 * + 75 * 83 AS col2
----
53
35

skipif mysql # not compatible
query II rowsort label-9803
SELECT + 53, 35 + - NULLIF ( - 92, 89 ) / - 97 * + 75 * 83 AS col2
----
53
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL + 48 * - + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL + 48 * - + COUNT ( * )
----
-48

query II rowsort
SELECT 74 col1, - 10 AS col0
----
74
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT - 32 * SUM( ALL 2 )
----
-64

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT - 32 * SUM ( ALL 2 )
----
-64

query II rowsort
SELECT - 48 col1, - 99 - - 23
----
-48
-76

query II rowsort
SELECT 87 AS col2, ( - 2 )
----
87
-2

query II rowsort
SELECT ALL - - ( + - 32 ) AS col2, + 31 AS col2
----
-32
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL - 16 * - + 99 * - - 3 * - - COUNT( * ) AS col0
----
4752

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL - 16 * - + 99 * - - 3 * - - COUNT ( * ) AS col0
----
4752

query II rowsort
SELECT DISTINCT + 5 + + 30, + 9 + + 8 AS col1
----
35
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL - CASE + + CASE 39 WHEN - COUNT( + 25 ) THEN - + 96 WHEN ( - 88 ) * + + 1 THEN - - 77 + + 42 + - 75 ELSE - COUNT( * ) END WHEN + 18 THEN NULL WHEN - + 55 * 64 THEN NULL ELSE + 1 END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - CASE + + CASE 39 WHEN - COUNT ( + 25 ) THEN - + 96 WHEN ( - 88 ) * + + 1 THEN - - 77 + + 42 + - 75 ELSE - COUNT ( * ) END WHEN + 18 THEN NULL WHEN - + 55 * 64 THEN NULL ELSE + 1 END AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT + + 67 * - CAST( NULL AS SIGNED ) / + 91 / - COUNT( * ) + - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT + + 67 * - CAST ( NULL AS INTEGER ) / + 91 / - COUNT ( * ) + - 25 AS col1
----
NULL

query I rowsort
SELECT 71 * + 35 AS col2
----
2485

query I rowsort
SELECT ALL 59 * + + 26 * + ( - 83 )
----
-127322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9816
SELECT + 79 * - 97 - - 22 * 19 DIV 61 * 99 - - - COUNT( * )
----
-7070

skipif mysql # not compatible
query I rowsort label-9816
SELECT + 79 * - 97 - - 22 * 19 / 61 * 99 - - - COUNT ( * )
----
-7070

query I rowsort
SELECT ALL - 56 * - - 49 col2
----
-2744

query I rowsort
SELECT 61 - - 40 AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9819
SELECT ALL - COALESCE ( COUNT( * ), NULLIF ( 5, + 8 * - CASE + - 8 WHEN + + 15 - - 39 * + 62 THEN - 66 DIV + NULLIF ( COUNT( * ), - + CAST( NULL AS SIGNED ) ) WHEN + 16 + - NULLIF ( COUNT( * ), + 1 * 6 * - - ( + + 23 ) * 46 ) * + COUNT( * ) THEN NULL WHEN - 65 THEN NULL END ) ) DIV - 20 * + - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL - COALESCE ( COUNT ( * ), NULLIF ( 5, + 8 * - CASE + - 8 WHEN + + 15 - - 39 * + 62 THEN - 66 / + NULLIF ( COUNT ( * ), - + CAST ( NULL AS INTEGER ) ) WHEN + 16 + - NULLIF ( COUNT ( * ), + 1 * 6 * - - ( + + 23 ) * 46 ) * + COUNT ( * ) THEN NULL WHEN - 65 THEN NULL END ) ) / - 20 * + - 51 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT CAST( + 36 AS SIGNED ) + 17
----
53

skipif mysql # not compatible
query I rowsort label-9820
SELECT CAST ( + 36 AS INTEGER ) + 17
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9821
SELECT ALL - 21 - - 78 + - - 78 * 83 + CASE 21 WHEN + 75 THEN NULL WHEN - 24 * - 66 + - 64 THEN - 42 END - + 42 * + 49 - + + 78 * + - COUNT( * ) * - 79 - - ( + - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL - 21 - - 78 + - - 78 * 83 + CASE 21 WHEN + 75 THEN NULL WHEN - 24 * - 66 + - 64 THEN - 42 END - + 42 * + 49 - + + 78 * + - COUNT ( * ) * - 79 - - ( + - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT 11 * 30 AS col1
----
330

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT ALL - 12 DIV - - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - 12 / - - 64 AS col1
----
0

query I rowsort
SELECT 86 + + + 15
----
101

query II rowsort
SELECT 21 * 23 AS col0, 45
----
483
45

query I rowsort
SELECT DISTINCT - 40 * + 67
----
-2680

onlyif mysql # aggregate syntax: 
query II rowsort label-9827
SELECT ALL - NULLIF ( - - ( - 33 ), + + 64 ) * 68 col2, - COUNT( * ) * - 89 * - + CASE WHEN NOT 88 NOT IN ( - 99 + + 33, + COUNT( + NULLIF ( + - ( - + 78 ), - 46 + 83 - NULLIF ( - 53, + - 98 ) ) ), - 33, COUNT( * ) ) THEN CASE + + 73 WHEN - 13 / + 21 - + 38 * - - 25 THEN NULL WHEN + COUNT( * ) THEN + + 88 ELSE NULL END + - - 21 + 43 END AS col0
----
2244
NULL

skipif mysql # not compatible
query II rowsort label-9827
SELECT ALL - NULLIF ( - - ( - 33 ), + + 64 ) * 68 col2, - COUNT ( * ) * - 89 * - + CASE WHEN NOT 88 NOT IN ( - 99 + + 33, + COUNT ( + NULLIF ( + - ( - + 78 ), - 46 + 83 - NULLIF ( - 53, + - 98 ) ) ), - 33, COUNT ( * ) ) THEN CASE + + 73 WHEN - 13 / + 21 - + 38 * - - 25 THEN NULL WHEN + COUNT ( * ) THEN + + 88 ELSE NULL END + - - 21 + 43 END AS col0
----
2244
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - 7 * - 66 + - COUNT( * ) + + 68 + 67 * + 99 * 55
----
365344

skipif mysql # not compatible
query I rowsort label-9828
SELECT - 7 * - 66 + - COUNT ( * ) + + 68 + 67 * + 99 * 55
----
365344

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT ALL - + COUNT( * ) * 33 AS col0, + 93 * + COUNT( * ) * + 1 + 46 AS col1
----
-33
139

skipif mysql # not compatible
query II rowsort label-9829
SELECT ALL - + COUNT ( * ) * 33 AS col0, + 93 * + COUNT ( * ) * + 1 + 46 AS col1
----
-33
139

query I rowsort
SELECT ALL + ( + - ( CASE 7 WHEN 8 THEN + 51 * 36 * 71 * - 9 * + 79 WHEN + + 65 + + + 25 THEN NULL WHEN 31 THEN NULL END ) )
----
NULL

query I rowsort
SELECT ALL - + 53 * + 16
----
-848

query I rowsort
SELECT + 43 * - 49 AS col0
----
-2107

onlyif mysql # DIV for integer division: 
query I rowsort label-9833
SELECT - 83 + + 36 + COALESCE ( - ( + 16 ), - 8 DIV + 13 + - 56 )
----
-63

skipif mysql # not compatible
query I rowsort label-9833
SELECT - 83 + + 36 + COALESCE ( - ( + 16 ), - 8 / + 13 + - 56 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT 83 + + 74 - + - 57 - + - COUNT( * ) - 34 * + CAST( NULL AS SIGNED ) / 28 * - + 25 * - + 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT 83 + + 74 - + - 57 - + - COUNT ( * ) - 34 * + CAST ( NULL AS INTEGER ) / 28 * - + 25 * - + 25 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL 40 + 96 - COUNT( * ) + - 46 col0
----
89

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL 40 + 96 - COUNT ( * ) + - 46 col0
----
89

query I rowsort
SELECT - 10 + + - 37 + - - 49 * - - 73 + + 84 AS col0
----
3614

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT ALL 49 DIV - 92 * - 44
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL 49 / - 92 * - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT - - 11 + CASE + MIN( + ( + 37 ) ) WHEN 23 * 27 THEN + + ( ( - 62 ) ) WHEN + CASE - 66 WHEN + 67 THEN + 86 + 95 * - - 38 - 37 WHEN + ( 50 ) THEN + 37 + 89 + - - 50 ELSE - 87 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT - - 11 + CASE + MIN ( + ( + 37 ) ) WHEN 23 * 27 THEN + + ( ( - 62 ) ) WHEN + CASE - 66 WHEN + 67 THEN + 86 + 95 * - - 38 - 37 WHEN + ( 50 ) THEN + 37 + 89 + - - 50 ELSE - 87 END THEN NULL END
----
NULL

query II rowsort
SELECT ALL 63 + + + 73, - 77 AS col0
----
136
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ( 96 ) * - 30 * + - COUNT( * ) + 38 * + SUM( ALL - 52 ) + - MAX( - 3 )
----
907

skipif mysql # not compatible
query I rowsort label-9840
SELECT ( 96 ) * - 30 * + - COUNT ( * ) + 38 * + SUM ( ALL - 52 ) + - MAX ( - 3 )
----
907

onlyif mysql # aggregate syntax: 
query II rowsort label-9841
SELECT 32 * MAX( DISTINCT - 50 ) + - + 76 * + NULLIF ( - + 52, + 16 ) AS col0, + 10 * + - 88 * 45 + + + SUM( ALL 31 ) col1
----
2352
-39569

skipif mysql # not compatible
query II rowsort label-9841
SELECT 32 * MAX ( DISTINCT - 50 ) + - + 76 * + NULLIF ( - + 52, + 16 ) AS col0, + 10 * + - 88 * 45 + + + SUM ( ALL 31 ) col1
----
2352
-39569

onlyif mysql # aggregate syntax: 
query II rowsort label-9842
SELECT 91 + + CASE + + 18 WHEN - 32 THEN NULL ELSE + ( - + 75 ) - + COUNT( * ) * 46 END + - COUNT( * ) + + COUNT( * ) AS col1, - 38
----
-30
-38

skipif mysql # not compatible
query II rowsort label-9842
SELECT 91 + + CASE + + 18 WHEN - 32 THEN NULL ELSE + ( - + 75 ) - + COUNT ( * ) * 46 END + - COUNT ( * ) + + COUNT ( * ) AS col1, - 38
----
-30
-38

query I rowsort
SELECT ALL - 26 + - ( - 21 ) AS col0
----
-5

query II rowsort
SELECT ALL - 25 AS col2, + 71 AS col2
----
-25
71

query I rowsort
SELECT + 13 * 17 * - + 53 * 49 + 17 + + + 84
----
-573836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9846
SELECT ALL + 52 - - + MIN( CAST( NULL AS SIGNED ) ), + 22 + - - SUM( - 21 ) AS col0, + 56 + - ( + COALESCE ( + CAST( NULL AS SIGNED ), - + ( - - 1 ) * - + CAST( MAX( + 49 ) AS SIGNED ) + 5 - - 10 + - + 76 - - 46, + 59 * 37 ) ) + + - 6 - 49 + - - COUNT( * ) / - COUNT( * ) + - + 49 + + CAST( NULL AS SIGNED ) * 67 * - + 31 * + COUNT( * ) + - 52 + + - 26 * CAST( COUNT( * ) AS SIGNED ) col1
----
NULL
1
NULL

skipif mysql # not compatible
query III rowsort label-9846
SELECT ALL + 52 - - + MIN ( CAST ( NULL AS INTEGER ) ), + 22 + - - SUM ( - 21 ) AS col0, + 56 + - ( + COALESCE ( + CAST ( NULL AS INTEGER ), - + ( - - 1 ) * - + CAST ( MAX ( + 49 ) AS INTEGER ) + 5 - - 10 + - + 76 - - 46, + 59 * 37 ) ) + + - 6 - 49 + - - COUNT ( * ) / - COUNT ( * ) + - + 49 + + CAST ( NULL AS INTEGER ) * 67 * - + 31 * + COUNT ( * ) + - 52 + + - 26 * CAST ( COUNT ( * ) AS INTEGER ) col1
----
NULL
1
NULL

query I rowsort
SELECT NULLIF ( - 25, + 92 ) * + + 52 + + 6 + - 25 AS col0
----
-1319

query I rowsort
SELECT ALL 88 - + - 56 + 2 + 45 * - 69
----
-2959

query I rowsort
SELECT 77 * - + 21
----
-1617

query I rowsort
SELECT DISTINCT 17 - ( - 42 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL - COUNT( DISTINCT - 33 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL - COUNT ( DISTINCT - 33 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT + COUNT( ALL + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-9852
SELECT + COUNT ( ALL + 35 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT MIN( DISTINCT - 46 ) + - 68 + + 0 + + - 14 * + - 94 * 30 * - + MIN( - NULLIF ( - 83, + 44 ) ) AS col2
----
-3276954

skipif mysql # not compatible
query I rowsort label-9853
SELECT MIN ( DISTINCT - 46 ) + - 68 + + 0 + + - 14 * + - 94 * 30 * - + MIN ( - NULLIF ( - 83, + 44 ) ) AS col2
----
-3276954

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT 67 * - + MAX( + 62 )
----
-4154

skipif mysql # not compatible
query I rowsort label-9854
SELECT 67 * - + MAX ( + 62 )
----
-4154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9855
SELECT DISTINCT 87 * - 16 DIV + NULLIF ( + COUNT( * ), CAST( - 6 AS SIGNED ) ) col2, + 11 + - ( - 69 )
----
-1392
80

skipif mysql # not compatible
query II rowsort label-9855
SELECT DISTINCT 87 * - 16 / + NULLIF ( + COUNT ( * ), CAST ( - 6 AS INTEGER ) ) col2, + 11 + - ( - 69 )
----
-1392
80

query II rowsort
SELECT ALL 90, 82 AS col2
----
90
82

query I rowsort
SELECT + 37 * + 0 * 68 * - 92 + 59
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9858
SELECT MAX( ALL + + 64 ) + 84 col1, 97 col0
----
148
97

skipif mysql # not compatible
query II rowsort label-9858
SELECT MAX ( ALL + + 64 ) + 84 col1, 97 col0
----
148
97

query II rowsort
SELECT DISTINCT 48 AS col2, - 32 AS col2
----
48
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT DISTINCT 51 * 17 * 36 * + COUNT( * )
----
31212

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT 51 * 17 * 36 * + COUNT ( * )
----
31212

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL 86 * + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL 86 * + COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL COUNT( DISTINCT - 53 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL COUNT ( DISTINCT - 53 ) col1
----
1

query I rowsort
SELECT 17 + NULLIF ( - - 64, + - 62 / 1 + - 88 + 8 + 96 ) * + 97 + + 1 * - 39 * + - 37 col1
----
7668

query II rowsort
SELECT DISTINCT 59 AS col0, - NULLIF ( - 7, 20 ) AS col0
----
59
7

query II rowsort
SELECT + 14, ( 67 ) AS col2
----
14
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + + NULLIF ( - ( - + 94 ), + COUNT( * ) ) / + CASE 45 WHEN - COUNT( * ) THEN NULL WHEN - COALESCE ( 58, + AVG ( ALL 14 ) * + 13 + 51 ) THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT + + NULLIF ( - ( - + 94 ), + COUNT ( * ) ) / + CASE 45 WHEN - COUNT ( * ) THEN NULL WHEN - COALESCE ( 58, + AVG ( ALL 14 ) * + 13 + 51 ) THEN COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT - 28 + - + 61
----
-89

query I rowsort
SELECT + 67 * - 17
----
-1139

query I rowsort
SELECT - 41 + 24
----
-17

query I rowsort
SELECT DISTINCT + - 38 + - 4
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL + COUNT( * ) + + 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL + COUNT ( * ) + + 1 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL - 82 * - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL - 82 * - COUNT ( * ) AS col1
----
82

query I rowsort
SELECT - 8 * - - 43
----
-344

query I rowsort
SELECT ALL + ( + 29 ) + - 99 + - - 37 + - 72 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT 85 AS col1, + 34 * 38 * - COUNT( * ) AS col2
----
85
-1292

skipif mysql # not compatible
query II rowsort label-9875
SELECT 85 AS col1, + 34 * 38 * - COUNT ( * ) AS col2
----
85
-1292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT - + CASE 1 WHEN CASE - 38 WHEN - CAST( NULL AS SIGNED ) THEN + + 1 WHEN - 77 * + 71 + - 81 THEN NULL WHEN + + 59 THEN 7 ELSE NULL END THEN COUNT( * ) * - 83 * + 98 * AVG ( DISTINCT + CAST( + 82 AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT - + CASE 1 WHEN CASE - 38 WHEN - CAST ( NULL AS INTEGER ) THEN + + 1 WHEN - 77 * + 71 + - 81 THEN NULL WHEN + + 59 THEN 7 ELSE NULL END THEN COUNT ( * ) * - 83 * + 98 * AVG ( DISTINCT + CAST ( + 82 AS INTEGER ) ) END AS col1
----
NULL

query I rowsort
SELECT - - 85 + - 71
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT SUM( + + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-9878
SELECT SUM ( + + 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - + COUNT( * ) + - + NULLIF ( COUNT( * ), + - 44 + 61 - - 33 - 75 * - - 26 )
----
-2

skipif mysql # not compatible
query I rowsort label-9879
SELECT - + COUNT ( * ) + - + NULLIF ( COUNT ( * ), + - 44 + 61 - - 33 - 75 * - - 26 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT COUNT( * ), 30 * - 44 col2
----
1
-1320

skipif mysql # not compatible
query II rowsort label-9880
SELECT COUNT ( * ), 30 * - 44 col2
----
1
-1320

query I rowsort
SELECT - 10 * - 86
----
860

onlyif mysql # aggregate syntax: 
query II rowsort label-9882
SELECT DISTINCT + SUM( ALL 13 ) AS col2, + 57 * - 20
----
13
-1140

skipif mysql # not compatible
query II rowsort label-9882
SELECT DISTINCT + SUM ( ALL 13 ) AS col2, + 57 * - 20
----
13
-1140

onlyif mysql # aggregate syntax: 
query II rowsort label-9883
SELECT DISTINCT 71 * 76 * + ( + 66 ) AS col2, - 51 * + COUNT( + + 56 )
----
356136
-51

skipif mysql # not compatible
query II rowsort label-9883
SELECT DISTINCT 71 * 76 * + ( + 66 ) AS col2, - 51 * + COUNT ( + + 56 )
----
356136
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT COUNT( * ) * 56 * - 60
----
-3360

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT COUNT ( * ) * 56 * - 60
----
-3360

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT DISTINCT + 39 DIV + ( + 63 )
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT + 39 / + ( + 63 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + COUNT( - ( - 43 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9886
SELECT + COUNT ( - ( - 43 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT ALL 8 * - CAST( NULL AS SIGNED ) - + 17 * + - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL 8 * - CAST ( NULL AS INTEGER ) - + 17 * + - 16 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT + 64 * 57 DIV 57 col1
----
64

skipif mysql # not compatible
query I rowsort label-9888
SELECT + 64 * 57 / 57 col1
----
64

query I rowsort
SELECT + 40 * - 69 * + 50
----
-138000

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL 46 * + ( 95 ) * CASE AVG ( DISTINCT + 55 ) WHEN 40 THEN - 53 WHEN - COUNT( * ) + 3 + - + MIN( ALL + - 55 ) THEN NULL ELSE NULL END * 80 / + - COUNT( * ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL 46 * + ( 95 ) * CASE AVG ( DISTINCT + 55 ) WHEN 40 THEN - 53 WHEN - COUNT ( * ) + 3 + - + MIN ( ALL + - 55 ) THEN NULL ELSE NULL END * 80 / + - COUNT ( * ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT + 16 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT + 16 / - 17
----
0

query I rowsort
SELECT DISTINCT - 67 * + 22 AS col0
----
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + COUNT( - 99 ) + - 25
----
-24

skipif mysql # not compatible
query I rowsort label-9893
SELECT + COUNT ( - 99 ) + - 25
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT + 4 * + + COALESCE ( 46, - - COUNT( * ) ) * 56
----
10304

skipif mysql # not compatible
query I rowsort label-9894
SELECT + 4 * + + COALESCE ( 46, - - COUNT ( * ) ) * 56
----
10304

query I rowsort
SELECT ALL - 49 * + 3 AS col0
----
-147

query II rowsort
SELECT + 74 * - 66, - ( - 12 ) + + - 77 AS col2
----
-4884
-65

query I rowsort
SELECT ALL 82 + + 42 col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) + - 20 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) + - 20 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT + - 55 * + 15 * - + 56 * - - COUNT( * ) AS col2
----
46200

skipif mysql # not compatible
query I rowsort label-9899
SELECT + - 55 * + 15 * - + 56 * - - COUNT ( * ) AS col2
----
46200

onlyif mysql # DIV for integer division: 
query I rowsort label-9900
SELECT + 69 + + 38 DIV 69 * - 34 DIV 98 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9900
SELECT + 69 + + 38 / 69 * - 34 / 98 AS col0
----
69

query I rowsort
SELECT DISTINCT NULLIF ( + 19, + ( 97 ) ) + - - 97 col0
----
116

query II rowsort
SELECT ALL + ( 90 ) AS col2, 39
----
90
39

query I rowsort
SELECT DISTINCT - NULLIF ( 13, 84 ) + 9
----
-4

query I rowsort
SELECT ALL - - 73 + + - 21 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT + + COUNT( * ) + + - 8 + + 81 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + + COUNT ( * ) + + - 8 + + 81 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9906
SELECT ALL ( - 25 ) AS col0, - 99 DIV 18 + + 49 + + 98 * + CAST( - COUNT( * ) AS SIGNED ) + 12
----
-25
-42

skipif mysql # not compatible
query II rowsort label-9906
SELECT ALL ( - 25 ) AS col0, - 99 / 18 + + 49 + + 98 * + CAST ( - COUNT ( * ) AS INTEGER ) + 12
----
-25
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT - 28 DIV + 95 + - + 75
----
-75

skipif mysql # not compatible
query I rowsort label-9907
SELECT - 28 / + 95 + - + 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT + 67 * 41 + + COUNT( * ) col2
----
2748

skipif mysql # not compatible
query I rowsort label-9908
SELECT + 67 * 41 + + COUNT ( * ) col2
----
2748

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT ALL 11 - - + COUNT( * ) * 30 * + - COALESCE ( + - MAX( ALL 77 ), + ( - 66 ) + - + MAX( ALL + 93 ), + 92 * + + 9 ), - ( MAX( + - 76 ) ) AS col0
----
2321
76

skipif mysql # not compatible
query II rowsort label-9909
SELECT ALL 11 - - + COUNT ( * ) * 30 * + - COALESCE ( + - MAX ( ALL 77 ), + ( - 66 ) + - + MAX ( ALL + 93 ), + 92 * + + 9 ), - ( MAX ( + - 76 ) ) AS col0
----
2321
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT + - CASE - 19 WHEN - 41 * 70 THEN + 59 + CAST( + - COUNT( * ) AS SIGNED ) * 94 + + 32 * - COUNT( * ) WHEN - - MAX( 20 ) + - 24 THEN 52 + CAST( NULL AS SIGNED ) ELSE NULL END + COALESCE ( + + 97, + 35 / + + 8 ) * - COUNT( * ) * - 51 + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT + - CASE - 19 WHEN - 41 * 70 THEN + 59 + CAST ( + - COUNT ( * ) AS INTEGER ) * 94 + + 32 * - COUNT ( * ) WHEN - - MAX ( 20 ) + - 24 THEN 52 + CAST ( NULL AS INTEGER ) ELSE NULL END + COALESCE ( + + 97, + 35 / + + 8 ) * - COUNT ( * ) * - 51 + + 65 AS col1
----
NULL

query I rowsort
SELECT + + 79 + 39 * + 96
----
3823

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT ALL - - 69 * + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL - - 69 * + COUNT ( * ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-9913
SELECT DISTINCT 73 DIV + 90, - 0 * + COALESCE ( - - 13, + + 18 ) col0
----
0
0

skipif mysql # not compatible
query II rowsort label-9913
SELECT DISTINCT 73 / + 90, - 0 * + COALESCE ( - - 13, + + 18 ) col0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT ALL + + MAX( - 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + + MAX ( - 29 ) AS col1
----
-29

query I rowsort
SELECT - + 29 + + + NULLIF ( + - 69, 13 * + 32 + 16 ) AS col1
----
-98

query I rowsort
SELECT ALL + 52 * + 2 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT NULLIF ( - 16, 4 ) * - - NULLIF ( - 78, - + 33 ) + 96 - - - 5 * + 73 * - - 54 * + MAX( DISTINCT + 81 )
----
-1595166

skipif mysql # not compatible
query I rowsort label-9917
SELECT NULLIF ( - 16, 4 ) * - - NULLIF ( - 78, - + 33 ) + 96 - - - 5 * + 73 * - - 54 * + MAX ( DISTINCT + 81 )
----
-1595166

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT DISTINCT + 35 * COUNT( ALL + 10 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT + 35 * COUNT ( ALL + 10 ) AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT - COALESCE ( + CASE - ( + 33 ) WHEN 24 THEN - 27 + - ( - ( + 12 ) ) DIV - - 57 - - 5 WHEN 80 THEN NULL ELSE - 90 END, + + COALESCE ( - ( 34 ), + 45, - 92 ), + 1 - - 46 ) * - NULLIF ( - 65, + 52 + - 77 )
----
5850

skipif mysql # not compatible
query I rowsort label-9919
SELECT - COALESCE ( + CASE - ( + 33 ) WHEN 24 THEN - 27 + - ( - ( + 12 ) ) / - - 57 - - 5 WHEN 80 THEN NULL ELSE - 90 END, + + COALESCE ( - ( 34 ), + 45, - 92 ), + 1 - - 46 ) * - NULLIF ( - 65, + 52 + - 77 )
----
5850

query I rowsort
SELECT ALL + NULLIF ( - + 20, + 2 )
----
-20

query I rowsort
SELECT - ( 47 ) + 63 + - ( + CASE - 76 WHEN + 62 THEN + + 4 END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT ALL + ( 11 ) DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL + ( 11 ) / + 68 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT - 4 DIV - 34 col1
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT - 4 / - 34 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT ALL 16 DIV + 78 + - + 68 - + 15
----
-83

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL 16 / + 78 + - + 68 - + 15
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT DISTINCT - 25 DIV + - 84 + ( + 79 ) + + 92 * + - 27 * - 76 AS col1
----
188863

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT - 25 / + - 84 + ( + 79 ) + + 92 * + - 27 * - 76 AS col1
----
188863

query I rowsort
SELECT DISTINCT + ( - ( - 25 ) )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT 92 DIV + - 77 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9927
SELECT 92 / + - 77 AS col0
----
-1

query II rowsort
SELECT COALESCE ( 28, + 49 ) * - 7 * 62, + 10 col0
----
-12152
10

query I rowsort
SELECT 30 + 45
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT DISTINCT - ( NULLIF ( + - 21, - 65 * + COUNT( * ) + - 97 * + 89 + CAST( NULL AS SIGNED ) * + 92 * 66 ) ) * + - 6 AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT - ( NULLIF ( + - 21, - 65 * + COUNT ( * ) + - 97 * + 89 + CAST ( NULL AS INTEGER ) * + 92 * 66 ) ) * + - 6 AS col0
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9931
SELECT ALL + COUNT( * ) + - COUNT( - 99 ) + - + 13 + - + 97 + 64 DIV - + 62
----
-111

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL + COUNT ( * ) + - COUNT ( - 99 ) + - + 13 + - + 97 + 64 / - + 62
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL - 63 + - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - 63 + - COUNT ( * ) AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT ALL CAST( - 99 AS SIGNED ) col2
----
-99

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL CAST ( - 99 AS INTEGER ) col2
----
-99

query I rowsort
SELECT + 63 + 56 + 26 * 24 AS col2
----
743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9935
SELECT - + 81 AS col0, COALESCE ( + + CASE + 3 WHEN - - 93 THEN - 57 WHEN - 76 + + + 6 THEN 12 + - CAST( NULL AS SIGNED ) / - COUNT( DISTINCT + 52 ) ELSE - + CAST( NULL AS SIGNED ) END, CAST( NULL AS SIGNED ) )
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-9935
SELECT - + 81 AS col0, COALESCE ( + + CASE + 3 WHEN - - 93 THEN - 57 WHEN - 76 + + + 6 THEN 12 + - CAST ( NULL AS INTEGER ) / - COUNT ( DISTINCT + 52 ) ELSE - + CAST ( NULL AS INTEGER ) END, CAST ( NULL AS INTEGER ) )
----
-81
NULL

query II rowsort
SELECT - - 27 AS col0, + NULLIF ( - 20, - 83 * - 14 + - 20 * - - COALESCE ( + 94, 34 ) * 80 ) AS col1
----
27
-20

query I rowsort
SELECT DISTINCT + 38 - + 97 AS col1
----
-59

query II rowsort
SELECT ALL 72, 16 AS col0
----
72
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT COALESCE ( - 89, + COUNT( * ) * - 56 )
----
-89

skipif mysql # not compatible
query I rowsort label-9939
SELECT COALESCE ( - 89, + COUNT ( * ) * - 56 )
----
-89

query II rowsort
SELECT - 34, - 28 AS col1
----
-34
-28

query I rowsort
SELECT - COALESCE ( ( + - 92 ), 23 ) AS col0
----
92

query I rowsort
SELECT 27 + 50 + + 81
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9943
SELECT DISTINCT 40 AS col0, - CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-9943
SELECT DISTINCT 40 AS col0, - CAST ( NULL AS INTEGER )
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL + 39 * - 22 * COUNT( DISTINCT + 8 ) * + + 90
----
-77220

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL + 39 * - 22 * COUNT ( DISTINCT + 8 ) * + + 90
----
-77220

query I rowsort
SELECT ALL ( 36 ) * + + 98 AS col2
----
3528

query I rowsort
SELECT DISTINCT - 95 * - 77
----
7315

onlyif mysql # aggregate syntax: 
query III rowsort label-9947
SELECT ALL + COUNT( * ) AS col1, - MIN( CASE + 4 WHEN - 39 + - + 69 THEN + 7 ELSE + 81 END ) col2, ( 40 )
----
1
-81
40

skipif mysql # not compatible
query III rowsort label-9947
SELECT ALL + COUNT ( * ) AS col1, - MIN ( CASE + 4 WHEN - 39 + - + 69 THEN + 7 ELSE + 81 END ) col2, ( 40 )
----
1
-81
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9948
SELECT 68 AS col0, 69 + + COALESCE ( + 68, - + 82 + - - 40 + + - 67 * + - 98, 61 * NULLIF ( - ( + 5 ), - 95 + COUNT( * ) * - AVG ( 18 ) / - - COUNT( * ) + - 74 ) + - 22 - - 95 )
----
68
137

skipif mysql # not compatible
query II rowsort label-9948
SELECT 68 AS col0, 69 + + COALESCE ( + 68, - + 82 + - - 40 + + - 67 * + - 98, 61 * NULLIF ( - ( + 5 ), - 95 + COUNT ( * ) * - AVG ( 18 ) / - - COUNT ( * ) + - 74 ) + - 22 - - 95 )
----
68
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT 5 * - ( - ( COUNT( - 73 ) ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9949
SELECT 5 * - ( - ( COUNT ( - 73 ) ) ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT ALL 29 DIV + - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL 29 / + - 63 AS col0
----
0

query I rowsort
SELECT 57 * - + 74 - - 69
----
-4149

query II rowsort
SELECT + 74 AS col2, + 86 + + + 14 AS col2
----
74
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9953
SELECT ALL - MAX( - 79 ) AS col1, - 82
----
79
-82

skipif mysql # not compatible
query II rowsort label-9953
SELECT ALL - MAX ( - 79 ) AS col1, - 82
----
79
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT 95 * - + COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9954
SELECT 95 * - + COUNT ( * ) AS col0
----
-95

query I rowsort
SELECT ALL 93 + + 44 + + 63
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT 5 * + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9956
SELECT 5 * + - COUNT ( * )
----
-5

query I rowsort
SELECT ALL + ( + 35 ) + - 4 AS col2
----
31

query I rowsort
SELECT ALL - NULLIF ( 21, - 67 ) + 36
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9959
SELECT + 42 AS col2, - 30 DIV COUNT( * ) * 40 + + 12
----
42
-1188

skipif mysql # not compatible
query II rowsort label-9959
SELECT + 42 AS col2, - 30 / COUNT ( * ) * 40 + + 12
----
42
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT 86 * + 75 * + 25 + COUNT( ALL + 10 )
----
161251

skipif mysql # not compatible
query I rowsort label-9960
SELECT 86 * + 75 * + 25 + COUNT ( ALL + 10 )
----
161251

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT - CASE + 14 WHEN + 3 THEN + - 24 - 81 + - 12 * - COUNT( * ) WHEN + ( + COUNT( * ) ) THEN 27 ELSE + 16 END + + 20
----
4

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT - CASE + 14 WHEN + 3 THEN + - 24 - 81 + - 12 * - COUNT ( * ) WHEN + ( + COUNT ( * ) ) THEN 27 ELSE + 16 END + + 20
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-9962
SELECT DISTINCT - 78 AS col2, ( + + 31 ) * 47 DIV + 99 + 78 * 61
----
-78
4772

skipif mysql # not compatible
query II rowsort label-9962
SELECT DISTINCT - 78 AS col2, ( + + 31 ) * 47 / + 99 + 78 * 61
----
-78
4772

query II rowsort
SELECT DISTINCT - ( + 69 ) AS col2, 64
----
-69
64

query I rowsort
SELECT + 51 + 30 AS col2
----
81

query I rowsort
SELECT ALL + 53 + - 29 * + + 32 col0
----
-875

query I rowsort
SELECT - ( - - 9 ) * 7
----
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9967
SELECT + 83 DIV + CAST( - - 61 AS SIGNED ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-9967
SELECT + 83 / + CAST ( - - 61 AS INTEGER ) + + 24
----
25

query II rowsort
SELECT ALL COALESCE ( 67, - + NULLIF ( + 48, + - 11 ) + - 73 ) col2, + 7 AS col2
----
67
7

query I rowsort
SELECT DISTINCT - 51 * - - 23
----
-1173

query I rowsort
SELECT ALL + ( + NULLIF ( - 6, + + 23 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT + ( 30 ) * - COUNT( * ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-9971
SELECT + ( 30 ) * - COUNT ( * ) col1
----
-30

query I rowsort
SELECT + 10 * 46 * 42 AS col2
----
19320

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9973
SELECT - 49 - CAST( NULL AS SIGNED ), - 63 DIV + 30 AS col2
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-9973
SELECT - 49 - CAST ( NULL AS INTEGER ), - 63 / + 30 AS col2
----
NULL
-2

query I rowsort
SELECT + ( 43 ) + + 95
----
138

query I rowsort
SELECT - 76 * - + ( - - 88 )
----
6688

query I rowsort
SELECT ALL - 57 * - 94 col0
----
5358

query II rowsort
SELECT + 74, 45 AS col2
----
74
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL - NULLIF ( 82, + 27 * - + 77 * - + 80 / + 84 + - COUNT( * ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - NULLIF ( 82, + 27 * - + 77 * - + 80 / + 84 + - COUNT ( * ) ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + 99 - + COUNT( * ) col2
----
98

skipif mysql # not compatible
query I rowsort label-9979
SELECT + 99 - + COUNT ( * ) col2
----
98

query II rowsort
SELECT DISTINCT 64 AS col1, - 63 * + 63 AS col1
----
64
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - MAX( 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-9981
SELECT - MAX ( 40 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9982
SELECT + 56 + - COUNT( * ), ( + ( - COUNT( * ) ) ) + + + ( + ( + SUM( DISTINCT + 84 ) ) ) col2
----
55
83

skipif mysql # not compatible
query II rowsort label-9982
SELECT + 56 + - COUNT ( * ), ( + ( - COUNT ( * ) ) ) + + + ( + ( + SUM ( DISTINCT + 84 ) ) ) col2
----
55
83

query I rowsort
SELECT - COALESCE ( + 64, + + 91 ) AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL 29 + COUNT( * ) * + 75 * + CASE - COUNT( * ) WHEN + 53 THEN NULL WHEN COUNT( * ) * - COUNT( * ) + - 63 THEN - 76 END * - - 58 * - + CAST( NULL AS SIGNED ) - + + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL 29 + COUNT ( * ) * + 75 * + CASE - COUNT ( * ) WHEN + 53 THEN NULL WHEN COUNT ( * ) * - COUNT ( * ) + - 63 THEN - 76 END * - - 58 * - + CAST ( NULL AS INTEGER ) - + + 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT MAX( + NULLIF ( + + 87, - - 37 * - - 57 ) ) + - - 70
----
157

skipif mysql # not compatible
query I rowsort label-9985
SELECT MAX ( + NULLIF ( + + 87, - - 37 * - - 57 ) ) + - - 70
----
157

query I rowsort
SELECT 15 * + 2 AS col0
----
30

query I rowsort
SELECT 86 + 85 AS col0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL 23 * - NULLIF ( - - 21, NULLIF ( + ( + 52 ), + + COUNT( * ) ) )
----
-483

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL 23 * - NULLIF ( - - 21, NULLIF ( + ( + 52 ), + + COUNT ( * ) ) )
----
-483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9989
SELECT ALL CASE + - 80 WHEN 74 THEN - CASE - 65 WHEN + + 95 / 83 + + ( - 59 ) - COUNT( * ) + - - 92 + - AVG ( DISTINCT + 32 ) * + 49 THEN - + 9 * + CAST( + 77 AS SIGNED ) + COUNT( * ) WHEN + 94 THEN - COUNT( * ) / CASE - 1 WHEN - COUNT( * ) - 58 * CASE - - COUNT( * ) WHEN + 89 THEN NULL WHEN - 18 THEN 93 * + - 14 * SUM( 31 ) ELSE - CAST( + 63 AS DECIMAL ) END THEN NULL ELSE - 59 * - COALESCE ( 23, - 77, - + CAST( NULL AS SIGNED ), + + 75 / + - COUNT( * ) ) / - 53 - + 61 - 83 * + 82 END * + 44 + COALESCE ( ( ( 84 ) ), + 78 - - 54, 73 ) WHEN 1 * + MAX( 80 ) THEN NULL END WHEN ( 25 ) + - MIN( ALL - ( 35 ) ) THEN NULL ELSE - ( - CAST( NULL AS SIGNED ) ) END + - 75 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL CASE + - 80 WHEN 74 THEN - CASE - 65 WHEN + + 95 / 83 + + ( - 59 ) - COUNT ( * ) + - - 92 + - AVG ( DISTINCT + 32 ) * + 49 THEN - + 9 * + CAST ( + 77 AS INTEGER ) + COUNT ( * ) WHEN + 94 THEN - COUNT ( * ) / CASE - 1 WHEN - COUNT ( * ) - 58 * CASE - - COUNT ( * ) WHEN + 89 THEN NULL WHEN - 18 THEN 93 * + - 14 * SUM ( 31 ) ELSE - CAST ( + 63 AS REAL ) END THEN NULL ELSE - 59 * - COALESCE ( 23, - 77, - + CAST ( NULL AS INTEGER ), + + 75 / + - COUNT ( * ) ) / - 53 - + 61 - 83 * + 82 END * + 44 + COALESCE ( ( ( 84 ) ), + 78 - - 54, 73 ) WHEN 1 * + MAX ( 80 ) THEN NULL END WHEN ( 25 ) + - MIN ( ALL - ( 35 ) ) THEN NULL ELSE - ( - CAST ( NULL AS INTEGER ) ) END + - 75 * 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT ALL + MAX( ALL + CAST( + 49 AS SIGNED ) ) + - ( + + COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL + MAX ( ALL + CAST ( + 49 AS INTEGER ) ) + - ( + + COUNT ( * ) )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT 5 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT 5 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 93 * + NULLIF ( - + 22, - - 13 + + 50 ) + - + 94
----
1952

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT + 57 + - CASE + - 64 WHEN - 77 THEN + - 80 + - 89 ELSE NULL END * - NULLIF ( 49, + COUNT( * ) ) + - MIN( DISTINCT + ( - 59 ) ) + 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 57 + - CASE + - 64 WHEN - 77 THEN + - 80 + - 89 ELSE NULL END * - NULLIF ( 49, + COUNT ( * ) ) + - MIN ( DISTINCT + ( - 59 ) ) + 35 col2
----
NULL

query I rowsort
SELECT 99 * + 99 + 69
----
9870

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL - CASE + COUNT( * ) WHEN - 96 THEN - 33 ELSE NULL END * + - MAX( - 76 ) + 92 / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL - CASE + COUNT ( * ) WHEN - 96 THEN - 33 ELSE NULL END * + - MAX ( - 76 ) + 92 / - 94
----
NULL

query I rowsort
SELECT + 45 * - 42 * + 36 AS col1
----
-68040

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT CASE - - 4 WHEN - + 83 THEN 56 WHEN - ( - + MIN( ALL + 13 ) ) * 70 * - + ( - 21 ) + 81 + - 45 THEN - - COUNT( + 16 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT CASE - - 4 WHEN - + 83 THEN 56 WHEN - ( - + MIN ( ALL + 13 ) ) * 70 * - + ( - 21 ) + 81 + - 45 THEN - - COUNT ( + 16 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9998
SELECT - 82 / CAST( NULL AS SIGNED ) * - 18 + - - 72 + - 34 * - + 12 + + 22 + + MIN( + ( - 26 ) ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9998
SELECT - 82 / CAST ( NULL AS INTEGER ) * - 18 + - - 72 + - 34 * - + 12 + + 22 + + MIN ( + ( - 26 ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL - 27 * - - ( - 27 ) + - CASE - - 7 WHEN - COUNT( * ) THEN 69 / + 64 ELSE NULL END * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL - 27 * - - ( - 27 ) + - CASE - - 7 WHEN - COUNT ( * ) THEN 69 / + 64 ELSE NULL END * - 7
----
NULL

