sqllogictest
Artifact Content
Not logged in

Artifact 3f4dfa5dcc0e5a748c235d39915b91a833fa03e4:


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(