hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

skipif mysql # not compatible
query I rowsort label-0
SELECT ( 67 ) * + 14 + COUNT ( * ) AS col2
----
939

query II rowsort
SELECT 63 AS col1, - 53
----
63
-53

query I rowsort
SELECT DISTINCT 97 + 62
----
159

query I rowsort
SELECT DISTINCT - 35 * - - 95 AS col0
----
-3325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4
SELECT - - 34 * + 25 * + MIN( + 24 ) + - 42 DIV + 33 + + 39 * 52 DIV 44 + + + MIN( + 2 ) + 29 * 4
----
20563

skipif mysql # not compatible
query I rowsort label-4
SELECT - - 34 * + 25 * + MIN ( + 24 ) + - 42 / + 33 + + 39 * 52 / 44 + + + MIN ( + 2 ) + 29 * 4
----
20563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT 97 * + CASE WHEN NOT + 48 NOT IN ( 82 * CAST( NULL AS SIGNED ) ) THEN - ( + 84 ) + + 46 * + + 28 WHEN 30 * - 10 IS NOT NULL THEN NULL END * 71 + ( - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT 97 * + CASE WHEN NOT + 48 NOT IN ( 82 * CAST ( NULL AS INTEGER ) ) THEN - ( + 84 ) + + 46 * + + 28 WHEN 30 * - 10 IS NOT NULL THEN NULL END * 71 + ( - 92 )
----
NULL

query I rowsort
SELECT DISTINCT 41 * + - 9 * - 25
----
9225

query I rowsort
SELECT ALL + + 9 - 14 - + 45 * 30
----
-1355

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8
SELECT ALL + + 47 / + - ( - + CAST( NULL AS SIGNED ) ), 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-8
SELECT ALL + + 47 / + - ( - + CAST ( NULL AS INTEGER ) ), 76 AS col0
----
NULL
76

onlyif mysql # DIV for integer division: 
query II rowsort label-9
SELECT DISTINCT + 95, + 90 * 2 DIV - + 6 AS col1
----
95
-30

skipif mysql # not compatible
query II rowsort label-9
SELECT DISTINCT + 95, + 90 * 2 / - + 6 AS col1
----
95
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-10
SELECT 10 DIV COUNT( + 70 ) * 42
----
420

skipif mysql # not compatible
query I rowsort label-10
SELECT 10 / COUNT ( + 70 ) * 42
----
420

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT - 98 DIV 73 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-11
SELECT - 98 / 73 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT COUNT( * ) + - 90 col1
----
-89

skipif mysql # not compatible
query I rowsort label-12
SELECT COUNT ( * ) + - 90 col1
----
-89

query I rowsort
SELECT ALL NULLIF ( - 90, 20 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT - 26 + + SUM( DISTINCT - 15 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-14
SELECT - 26 + + SUM ( DISTINCT - 15 ) AS col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-15
SELECT CASE + + 30 WHEN + - 51 THEN NULL WHEN + 27 THEN + 30 DIV + - CASE + + 90 WHEN - 96 * - 57 DIV + + 45 THEN 38 END * 49 + COUNT( * ) ELSE - COUNT( * ) END + + 43 DIV - 44 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-15
SELECT CASE + + 30 WHEN + - 51 THEN NULL WHEN + 27 THEN + 30 / + - CASE + + 90 WHEN - 96 * - 57 / + + 45 THEN 38 END * 49 + COUNT ( * ) ELSE - COUNT ( * ) END + + 43 / - 44 AS col1
----
-1

query I rowsort
SELECT 79 * + ( - - 33 ) AS col2
----
2607

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

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

query I rowsort
SELECT - + COALESCE ( - 8, + - 16, - 88 )
----
8

query II rowsort
SELECT DISTINCT 77, + 52 AS col0
----
77
52

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

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL 64 * COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL MAX( + + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL MAX ( + + 79 ) AS col0
----
79

query I rowsort
SELECT 66 - + 35 AS col1
----
31

query I rowsort
SELECT 85 + + 67 * 43 AS col1
----
2966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-24
SELECT ( + - 47 ) + - ( + COUNT( * ) ) DIV COUNT( + - 48 ) * + ( 70 ) * + 56 + + 16
----
-3951

skipif mysql # not compatible
query I rowsort label-24
SELECT ( + - 47 ) + - ( + COUNT ( * ) ) / COUNT ( + - 48 ) * + ( 70 ) * + 56 + + 16
----
-3951

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT ( SUM( + 96 ) ) + - 50 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT ( SUM ( + 96 ) ) + - 50 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT ALL AVG ( DISTINCT - 64 ) + + COUNT( + 9 ) - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL AVG ( DISTINCT - 64 ) + + COUNT ( + 9 ) - - CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT + 69 * - + COUNT( * ) + + 18
----
-51

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT + 69 * - + COUNT ( * ) + + 18
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT SUM( 56 ) col2
----
56

skipif mysql # not compatible
query I rowsort label-30
SELECT SUM ( 56 ) col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-31
SELECT 7 * + COUNT( * ) col1, 30 AS col1
----
7
30

skipif mysql # not compatible
query II rowsort label-31
SELECT 7 * + COUNT ( * ) col1, 30 AS col1
----
7
30

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT COUNT( * ) + + 44 + 51
----
96

skipif mysql # not compatible
query I rowsort label-32
SELECT COUNT ( * ) + + 44 + 51
----
96

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

skipif mysql # not compatible
query I rowsort label-33
SELECT + MIN ( 95 )
----
95

query I rowsort
SELECT DISTINCT 73 * 71 AS col1
----
5183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT CAST( - CASE + - COUNT( * ) WHEN 53 THEN - - MAX( DISTINCT - + 59 ) * - COUNT( - + 9 ) * - + 8 - CAST( + - 6 AS SIGNED ) + - 32 ELSE 98 END AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-35
SELECT CAST ( - CASE + - COUNT ( * ) WHEN 53 THEN - - MAX ( DISTINCT - + 59 ) * - COUNT ( - + 9 ) * - + 8 - CAST ( + - 6 AS INTEGER ) + - 32 ELSE 98 END AS INTEGER )
----
-98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-37
SELECT ALL COUNT( * ) * 36 - + 16 + ( + COUNT( * ) ) DIV + 35 AS col0, - 52
----
20
-52

skipif mysql # not compatible
query II rowsort label-37
SELECT ALL COUNT ( * ) * 36 - + 16 + ( + COUNT ( * ) ) / + 35 AS col0, - 52
----
20
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - COUNT( * ) * - 52 + 6 * + 71 col0
----
478

skipif mysql # not compatible
query I rowsort label-38
SELECT - COUNT ( * ) * - 52 + 6 * + 71 col0
----
478

query II rowsort
SELECT + - 45 AS col1, 66
----
-45
66

onlyif mysql # aggregate syntax: 
query II rowsort label-40
SELECT - 66 col2, COUNT( * ) * + ( COUNT( DISTINCT + - 90 ) ) col0
----
-66
1

skipif mysql # not compatible
query II rowsort label-40
SELECT - 66 col2, COUNT ( * ) * + ( COUNT ( DISTINCT + - 90 ) ) col0
----
-66
1

query I rowsort
SELECT + 18 * + 23 col2
----
414

query I rowsort
SELECT - 94 * + 0 * + + 46 + - + NULLIF ( - ( 32 ), + 42 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-43
SELECT - 50 col2, 99 + - - 32 * + COUNT( * ) + + 7 * - ( 18 )
----
-50
5

skipif mysql # not compatible
query II rowsort label-43
SELECT - 50 col2, 99 + - - 32 * + COUNT ( * ) + + 7 * - ( 18 )
----
-50
5

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL + 80 DIV - 10
----
-8

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 80 / - 10
----
-8

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

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

query I rowsort
SELECT + - 41 + - 61 AS col1
----
-102

query I rowsort
SELECT ALL + 30 * ( 77 ) * + 56
----
129360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-48
SELECT ALL CAST( NULL AS SIGNED ) / - COALESCE ( 93, - + 30 * - 79 * - + ( - - 96 ) + + MAX( 60 ), - MIN( ALL - 28 ) + - NULLIF ( CAST( NULL AS DECIMAL ), - CASE + 56 WHEN ( + 22 ) * + 50 THEN NULL WHEN COUNT( * ) THEN + 50 * + CASE - 54 WHEN + COUNT( * ) + + 33 THEN + 48 WHEN + 40 THEN - 51 WHEN + COUNT( * ) * 85 THEN NULL ELSE COUNT( * ) / ( 58 ) - + CAST( - 33 AS SIGNED ) * COUNT( * ) END END ) ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL CAST ( NULL AS INTEGER ) / - COALESCE ( 93, - + 30 * - 79 * - + ( - - 96 ) + + MAX ( 60 ), - MIN ( ALL - 28 ) + - NULLIF ( CAST ( NULL AS REAL ), - CASE + 56 WHEN ( + 22 ) * + 50 THEN NULL WHEN COUNT ( * ) THEN + 50 * + CASE - 54 WHEN + COUNT ( * ) + + 33 THEN + 48 WHEN + 40 THEN - 51 WHEN + COUNT ( * ) * 85 THEN NULL ELSE COUNT ( * ) / ( 58 ) - + CAST ( - 33 AS INTEGER ) * COUNT ( * ) END END ) ) + 12
----
NULL

query I rowsort
SELECT + 76 + 81
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT - SUM( + - 7 ) + - - 48 * - 31 AS col0
----
-1481

skipif mysql # not compatible
query I rowsort label-50
SELECT - SUM ( + - 7 ) + - - 48 * - 31 AS col0
----
-1481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-51
SELECT ALL CAST( - 99 AS SIGNED ) * 93 AS col1
----
-9207

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL CAST ( - 99 AS INTEGER ) * 93 AS col1
----
-9207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-52
SELECT - - ( - - CAST( - 85 AS SIGNED ) ) DIV + - CASE 39 WHEN - 37 * - SUM( ALL - + 50 ) + COUNT( ALL + - 54 ) + - 19 DIV 29 THEN NULL ELSE COUNT( * ) + + 97 * 19 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-52
SELECT - - ( - - CAST ( - 85 AS INTEGER ) ) / + - CASE 39 WHEN - 37 * - SUM ( ALL - + 50 ) + COUNT ( ALL + - 54 ) + - 19 / 29 THEN NULL ELSE COUNT ( * ) + + 97 * 19 END AS col0
----
0

query I rowsort
SELECT - 29 + 66 AS col1
----
37

query I rowsort
SELECT + 40 + 26 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT - 5 DIV - 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-55
SELECT - 5 / - 44 AS col2
----
0

query I rowsort
SELECT - 22 - 41
----
-63

query I rowsort
SELECT - 99 + - ( + - 35 ) * 52 + 5
----
1726

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT DISTINCT - 24 * - 18 DIV 2 AS col1
----
216

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - 24 * - 18 / 2 AS col1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT ALL 51 + + + 30 * + - SUM( - 0 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL 51 + + + 30 * + - SUM ( - 0 ) AS col1
----
51

query I rowsort
SELECT ALL + ( - + 67 ) * 52 + - 55
----
-3539

query I rowsort
SELECT - 39 + 42
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-63
SELECT ALL - 79 + + CAST( + 99 AS SIGNED ) + + - 73 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - 79 + + CAST ( + 99 AS INTEGER ) + + - 73 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT ( - MIN( ALL - + 10 ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT ( - MIN ( ALL - + 10 ) ) AS col0
----
10

query I rowsort
SELECT - 15 + + 75
----
60

query I rowsort
SELECT - 44 + + + 23 * + 79 + - - 36 AS col2
----
1809

query I rowsort
SELECT 7 * + 63 + - 92
----
349

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT DISTINCT - 10 DIV 32 - 48
----
-48

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - 10 / 32 - 48
----
-48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT DISTINCT + - 5 / CASE - 52 WHEN + - ( 11 ) + + - 9 * 45 THEN + 73 + - + 46 END * 60 / + - CAST( 52 AS SIGNED ) * + 38 - + 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT + - 5 / CASE - 52 WHEN + - ( 11 ) + + - 9 * 45 THEN + 73 + - + 46 END * 60 / + - CAST ( 52 AS INTEGER ) * + 38 - + 95 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-71
SELECT - 31 + 44 AS col1, COUNT( DISTINCT - - 88 ) DIV + + 40 + 42 AS col0
----
13
42

skipif mysql # not compatible
query II rowsort label-71
SELECT - 31 + 44 AS col1, COUNT ( DISTINCT - - 88 ) / + + 40 + 42 AS col0
----
13
42

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL CASE - 75 WHEN + 48 + 10 THEN + + SUM( - 61 ) + - 19 END * + 41 * + 76 + + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL CASE - 75 WHEN + 48 + 10 THEN + + SUM ( - 61 ) + - 19 END * + 41 * + 76 + + + 99 AS col2
----
NULL

query I rowsort
SELECT - 44 + - - 58 - 81 - + 77 * - 94
----
7171

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT ALL + + 38 DIV - - 94 * - 62 * - + 44
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL + + 38 / - - 94 * - 62 * - + 44
----
0

query I rowsort
SELECT ALL - 19 * + 49 - + 90
----
-1021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-76
SELECT - + 20 * + MAX( - 84 ) * - SUM( ALL 36 ) * - + COUNT( * ) + CAST( NULL AS SIGNED ) * - 5 * - CAST( + 93 AS SIGNED ) - - COALESCE ( + - 53, - 97 + - 36, 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT - + 20 * + MAX ( - 84 ) * - SUM ( ALL 36 ) * - + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 5 * - CAST ( + 93 AS INTEGER ) - - COALESCE ( + - 53, - 97 + - 36, 42 ) AS col0
----
NULL

query II rowsort
SELECT ALL 64 * + 28 AS col0, 37 + - + 83 AS col0
----
1792
-46

query I rowsort
SELECT + - 95 * + + 87 * 83
----
-685995

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL + + 83 * - 96 - + COUNT( * ) * + 84 + COUNT( * ) - + COUNT( * )
----
-8052

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL + + 83 * - 96 - + COUNT ( * ) * + 84 + COUNT ( * ) - + COUNT ( * )
----
-8052

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

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT MAX( ALL 5 ) col0
----
5

skipif mysql # not compatible
query I rowsort label-81
SELECT MAX ( ALL 5 ) col0
----
5

query II rowsort
SELECT 9 * + - 14 + 83 AS col0, - 77 * + - 33
----
-43
2541

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

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

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

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

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

query I rowsort
SELECT ALL 81 + + 20 col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-87
SELECT ALL COALESCE ( 40, 19 + + + 0 + 97 * + + CAST( - 48 AS SIGNED ) * + COUNT( * ) ) AS col2, + 9 DIV + 70
----
40
0

skipif mysql # not compatible
query II rowsort label-87
SELECT ALL COALESCE ( 40, 19 + + + 0 + 97 * + + CAST ( - 48 AS INTEGER ) * + COUNT ( * ) ) AS col2, + 9 / + 70
----
40
0

query I rowsort
SELECT + 39 * - 75
----
-2925

query I rowsort
SELECT ALL 45 + - 26 AS col0
----
19

query I rowsort
SELECT DISTINCT ( + + 26 ) * 61 - + - 12 AS col0
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL CASE WHEN NOT 22 IS NULL THEN + COUNT( * ) WHEN - 78 IS NOT NULL THEN - CASE + - 79 WHEN 78 THEN + ( 34 ) WHEN COUNT( * ) / COALESCE ( + COALESCE ( 41, CASE + 3 WHEN 78 + - 17 THEN 95 + + COUNT( * ) * 8 ELSE + 81 END + 7 ), + ( - 35 ) - ( + SUM( DISTINCT + 30 ) ), 54 ) THEN NULL ELSE NULL END END col2
----
1

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL CASE WHEN NOT 22 IS NULL THEN + COUNT ( * ) WHEN - 78 IS NOT NULL THEN - CASE + - 79 WHEN 78 THEN + ( 34 ) WHEN COUNT ( * ) / COALESCE ( + COALESCE ( 41, CASE + 3 WHEN 78 + - 17 THEN 95 + + COUNT ( * ) * 8 ELSE + 81 END + 7 ), + ( - 35 ) - ( + SUM ( DISTINCT + 30 ) ), 54 ) THEN NULL ELSE NULL END END col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-92
SELECT - 9 * - ( + 19 ) AS col2, - SUM( ALL - ( ( + 7 ) ) )
----
171
7

skipif mysql # not compatible
query II rowsort label-92
SELECT - 9 * - ( + 19 ) AS col2, - SUM ( ALL - ( ( + 7 ) ) )
----
171
7

onlyif mysql # DIV for integer division: 
query II rowsort label-93
SELECT DISTINCT - ( - + 51 ) DIV 48, - ( - 42 ) - - 22 AS col2
----
1
64

skipif mysql # not compatible
query II rowsort label-93
SELECT DISTINCT - ( - + 51 ) / 48, - ( - 42 ) - - 22 AS col2
----
1
64

query I rowsort
SELECT 20 + + 49 AS col1
----
69

query II rowsort
SELECT 23, + ( - - 37 ) + - 86 AS col0
----
23
-49

query I rowsort
SELECT ALL + 84 - - + 55 AS col1
----
139

query I rowsort
SELECT 36 * - 74
----
-2664

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

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

query II rowsort
SELECT ALL - 39 AS col0, - 7 col2
----
-39
-7

onlyif mysql # aggregate syntax: 
query III rowsort label-100
SELECT DISTINCT + MIN( DISTINCT 8 ) * + COUNT( * ) AS col1, 18 AS col2, + ( + COUNT( DISTINCT 96 ) )
----
8
18
1

skipif mysql # not compatible
query III rowsort label-100
SELECT DISTINCT + MIN ( DISTINCT 8 ) * + COUNT ( * ) AS col1, 18 AS col2, + ( + COUNT ( DISTINCT 96 ) )
----
8
18
1

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT 65 DIV - 48 + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-101
SELECT 65 / - 48 + - 8
----
-9

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

query I rowsort
SELECT 8 * - 41
----
-328

query I rowsort
SELECT - 78 * - + 44 AS col0
----
3432

query I rowsort
SELECT 67 - - + 8
----
75

query II rowsort
SELECT - 85 AS col0, 8 * - 93
----
-85
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL - ( 30 ) + - MAX( DISTINCT + + 41 )
----
-71

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - ( 30 ) + - MAX ( DISTINCT + + 41 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-108
SELECT + 45 * 63 DIV COUNT( * ) col1, COUNT( * ) AS col0
----
2835
1

skipif mysql # not compatible
query II rowsort label-108
SELECT + 45 * 63 / COUNT ( * ) col1, COUNT ( * ) AS col0
----
2835
1

query I rowsort
SELECT + - ( + NULLIF ( 92, - 70 * + AVG ( DISTINCT COALESCE ( + + 29, - - 75 * - 15, - ( - 85 ) ) ) ) )
----
-92

query I rowsort
SELECT + 11 + 82 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT + - SUM( - 49 ) * + 29 * 52 + - 29
----
73863

skipif mysql # not compatible
query I rowsort label-111
SELECT + - SUM ( - 49 ) * + 29 * 52 + - 29
----
73863

query I rowsort
SELECT - 38 + 54 + 31 * + 1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT 21 DIV - + 8
----
-2

skipif mysql # not compatible
query I rowsort label-113
SELECT 21 / - + 8
----
-2

query I rowsort
SELECT ALL + 51 + - 93
----
-42

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

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

query II rowsort
SELECT ALL 58 + + + 29 AS col1, 28 * - - 83
----
87
2324

query II rowsort
SELECT 11 + + 38 AS col0, 38 + + 37 AS col2
----
49
75

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

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL - SUM ( 22 ) + - 53 AS col2
----
-75

query I rowsort
SELECT 1 + - - ( + - 98 ) AS col1
----
-97

query I rowsort
SELECT DISTINCT 33 * + ( - 46 ) AS col2
----
-1518

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT ALL CASE 30 WHEN - - 55 + 56 + - + 85 THEN NULL WHEN + 83 THEN + 42 ELSE + ( + 32 ) DIV + 45 - - 81 + + 3 * + 57 END - + - 74 - + ( + 26 ) * 69 AS col2
----
-1468

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL CASE 30 WHEN - - 55 + 56 + - + 85 THEN NULL WHEN + 83 THEN + 42 ELSE + ( + 32 ) / + 45 - - 81 + + 3 * + 57 END - + - 74 - + ( + 26 ) * 69 AS col2
----
-1468

query I rowsort
SELECT DISTINCT 50 * - 36 AS col1
----
-1800

query I rowsort
SELECT 36 + - 67 - 46 + - 32 + 64
----
-45

query II rowsort
SELECT 55 + - + 46, + 76 AS col0
----
9
76

query I rowsort
SELECT DISTINCT 92 * ( + 84 )
----
7728

query I rowsort
SELECT 31 + 48 * + + 99 + + 49 + - 59 AS col2
----
4773

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT NULLIF ( SUM( 16 ), - 91 * + ( 17 ) * - 67 * - + 41 ) * + + 78 * COUNT( 4 ) + 28 * 15 + + 27 + 46 AS col0
----
1741

skipif mysql # not compatible
query I rowsort label-127
SELECT NULLIF ( SUM ( 16 ), - 91 * + ( 17 ) * - 67 * - + 41 ) * + + 78 * COUNT ( 4 ) + 28 * 15 + + 27 + 46 AS col0
----
1741

query I rowsort
SELECT - CASE + - 69 WHEN 47 THEN NULL WHEN 50 THEN + 8 + 67 + - 49 ELSE NULL END / + - 91 + - 46 * ( - 63 ) col1
----
NULL

query I rowsort
SELECT 23 * + 59
----
1357

query I rowsort
SELECT ALL - COALESCE ( 69, - 42 - - 52, + 83 ) + + 38
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-131
SELECT CAST( NULL AS SIGNED ) + + - MAX( 57 ) / + 75 * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT CAST ( NULL AS INTEGER ) + + - MAX ( 57 ) / + 75 * + 33
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT DISTINCT - - MIN( ALL - + 35 ) + + + 19 * + + COUNT( * ) + - 92
----
-108

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT - - MIN ( ALL - + 35 ) + + + 19 * + + COUNT ( * ) + - 92
----
-108

query I rowsort
SELECT - 9 * - 57 col1
----
513

query I rowsort
SELECT + 92 + + - 82 - - 85 AS col2
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL - - MIN( 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - - MIN ( 45 ) AS col0
----
45

query I rowsort
SELECT ALL + 46 * - 45 + + - 20
----
-2090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT DISTINCT 35 + + CAST( + 83 AS SIGNED ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT 35 + + CAST ( + 83 AS INTEGER ) AS col1
----
118

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

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

query I rowsort
SELECT DISTINCT - 65 - + + 36 AS col1
----
-101

query II rowsort
SELECT ALL - 50, + 6 AS col2
----
-50
6

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ALL MIN( + 25 ) - - 55 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL MIN ( + 25 ) - - 55 AS col0
----
80

query I rowsort
SELECT 27 * - - 33 * 46
----
40986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-145
SELECT DISTINCT - MIN( 95 ) DIV - - 46 col0
----
-2

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT - MIN ( 95 ) / - - 46 col0
----
-2

query I rowsort
SELECT 1 * 71 * + 4 AS col0
----
284

query I rowsort
SELECT 40 * + 72
----
2880

query I rowsort
SELECT ALL - 47 * - 4
----
188

query I rowsort
SELECT - 21 * 17 AS col2
----
-357

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT - 54, - 22 * + CASE + 19 WHEN + ( + 86 ) + + NULLIF ( 38, + + ( + 95 ) ) THEN - 76 WHEN - 55 * + + 6 * + ( COUNT( * ) ) THEN 10 ELSE NULL END AS col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-150
SELECT - 54, - 22 * + CASE + 19 WHEN + ( + 86 ) + + NULLIF ( 38, + + ( + 95 ) ) THEN - 76 WHEN - 55 * + + 6 * + ( COUNT ( * ) ) THEN 10 ELSE NULL END AS col0
----
-54
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT - 2 * - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT - 2 * - COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT DISTINCT CASE 66 WHEN + COUNT( * ) * ( - + 14 ) * ( + CAST( + + 53 AS SIGNED ) ) - - 71 + 81 THEN NULL WHEN - + COUNT( * ) + + 80 - + 64 + - + ( + 68 ) THEN AVG ( 50 ) + 97 * 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT CASE 66 WHEN + COUNT ( * ) * ( - + 14 ) * ( + CAST ( + + 53 AS INTEGER ) ) - - 71 + 81 THEN NULL WHEN - + COUNT ( * ) + + 80 - + 64 + - + ( + 68 ) THEN AVG ( 50 ) + 97 * 21 END
----
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( - - 28, - 15 * - - 68 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-156
SELECT - + ( CAST( NULL AS SIGNED ) ) * + + 44 col2, - 14 + - ( - + 21 )
----
NULL
7

skipif mysql # not compatible
query II rowsort label-156
SELECT - + ( CAST ( NULL AS INTEGER ) ) * + + 44 col2, - 14 + - ( - + 21 )
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - 68 + 21 * - + 80 * + - 17 + SUM( 70 ) AS col1
----
28562

skipif mysql # not compatible
query I rowsort label-157
SELECT - 68 + 21 * - + 80 * + - 17 + SUM ( 70 ) AS col1
----
28562

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT - - MAX( - + 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-158
SELECT - - MAX ( - + 59 ) AS col2
----
-59

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

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

query II rowsort
SELECT + 51 * + ( - 3 ), - 60 AS col1
----
-153
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-161
SELECT ALL + 46 + 96 * - COUNT( DISTINCT + + ( - - 15 ) ) * 4 * + COUNT( * ) + - 52 AS col2, - COUNT( * ) * + 47
----
-390
-47

skipif mysql # not compatible
query II rowsort label-161
SELECT ALL + 46 + 96 * - COUNT ( DISTINCT + + ( - - 15 ) ) * 4 * + COUNT ( * ) + - 52 AS col2, - COUNT ( * ) * + 47
----
-390
-47

query I rowsort
SELECT ALL + 13 + 45 * - + 16 * + ( + 36 ) + 54 AS col1
----
-25853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-163
SELECT ALL + 2 * - COUNT( DISTINCT + - CAST( 26 AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL + 2 * - COUNT ( DISTINCT + - CAST ( 26 AS INTEGER ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT + + MIN( 86 ) col1
----
86

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT + + MIN ( 86 ) col1
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT 1 * + 64 + + 59 + COUNT( * ) + + - 54 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT 1 * + 64 + + 59 + COUNT ( * ) + + - 54 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT + + CASE - + 21 WHEN 49 * 3 - 41 + - 54 + - 62 THEN + - MIN( 53 ) + NULLIF ( + - SUM( - - 97 ), + CAST( NULL AS SIGNED ) - + + 74 ) END / - 77 + 29 + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-167
SELECT + + CASE - + 21 WHEN 49 * 3 - 41 + - 54 + - 62 THEN + - MIN ( 53 ) + NULLIF ( + - SUM ( - - 97 ), + CAST ( NULL AS INTEGER ) - + + 74 ) END / - 77 + 29 + + 2 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT + - 25 DIV - - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-168
SELECT + - 25 / - - 89 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + COUNT( DISTINCT - + 81 )
----
1

skipif mysql # not compatible
query I rowsort label-170
SELECT + COUNT ( DISTINCT - + 81 )
----
1

query I rowsort
SELECT + - 81 * + + 70
----
-5670

query I rowsort
SELECT DISTINCT 22 * - 13 + - - 67 * + ( ( + 24 ) ) - 13
----
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT + - MIN( ALL - + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT + - MIN ( ALL - + 37 )
----
37

query I rowsort
SELECT DISTINCT - ( + - 32 ) * - - 6 * 30
----
5760

query II rowsort
SELECT + 78, + 34 col1
----
78
34

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

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

query I rowsort
SELECT ALL 22 * - - ( + 58 ) AS col0
----
1276

query I rowsort
SELECT + 28 + + 88 AS col2
----
116

query I rowsort
SELECT - 59 * + + 63 + + 59 * + + 17 AS col0
----
-2714

onlyif mysql # aggregate syntax: 
query II rowsort label-180
SELECT ALL - ( - + COUNT( * ) ) * - 23 * + + 65 AS col1, 40
----
-1495
40

skipif mysql # not compatible
query II rowsort label-180
SELECT ALL - ( - + COUNT ( * ) ) * - 23 * + + 65 AS col1, 40
----
-1495
40

query I rowsort
SELECT + 80 + + 93
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-182
SELECT COUNT( * ) AS col1, 39 * 80 AS col1
----
1
3120

skipif mysql # not compatible
query II rowsort label-182
SELECT COUNT ( * ) AS col1, 39 * 80 AS col1
----
1
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT - 74 + - ( - COUNT( ALL ( + 37 ) ) )
----
-73

skipif mysql # not compatible
query I rowsort label-183
SELECT - 74 + - ( - COUNT ( ALL ( + 37 ) ) )
----
-73

query II rowsort
SELECT ALL + 26 + + 79 col2, - 18 * 54
----
105
-972

query II rowsort
SELECT 3 AS col2, 40 AS col1
----
3
40

query II rowsort
SELECT 38 AS col1, - 6 AS col0
----
38
-6

query II rowsort
SELECT ALL ( + 59 ), 58 AS col2
----
59
58

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT - + 3 DIV 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-188
SELECT - + 3 / 43 AS col2
----
0

query I rowsort
SELECT + + 98 + 14
----
112

query I rowsort
SELECT ALL + 76 + + 47
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL - + 41 + - + SUM( ALL + + 91 ) + 11 + 26 + - 14 * - 78 * - - 74
----
80713

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL - + 41 + - + SUM ( ALL + + 91 ) + 11 + 26 + - 14 * - 78 * - - 74
----
80713

query I rowsort
SELECT - 97 * - 22 + + 65
----
2199

query II rowsort
SELECT - 20 AS col1, 41 * ( - + ( 38 ) ) * - 53
----
-20
82574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT - 73 * - COUNT( * ) * + 42 DIV 3
----
1022

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT - 73 * - COUNT ( * ) * + 42 / 3
----
1022

query I rowsort
SELECT ALL + - 12 + + ( + - 23 )
----
-35

query I rowsort
SELECT - - 35 + + 35 + + 19 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-197
SELECT - + CASE + 20 WHEN ( 93 ) THEN 29 * COUNT( * ) ELSE + 85 END + + NULLIF ( + - 5, - 93 ) + ( 5 ) AS col0, + 79 DIV + 9
----
-85
8

skipif mysql # not compatible
query II rowsort label-197
SELECT - + CASE + 20 WHEN ( 93 ) THEN 29 * COUNT ( * ) ELSE + 85 END + + NULLIF ( + - 5, - 93 ) + ( 5 ) AS col0, + 79 / + 9
----
-85
8

query I rowsort
SELECT + 47 - - - 91 + + 34 AS col0
----
-10

query II rowsort
SELECT + + 9 AS col0, + ( 75 ) + + - 84 * + + 12 * + + 5
----
9
-4965

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT ALL + 36 DIV - 42 - 53
----
-53

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + 36 / - 42 - 53
----
-53

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

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

query II rowsort
SELECT ALL + 42, 75 AS col1
----
42
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT DISTINCT CAST( NULL AS SIGNED ) / 94 * + + 53 - - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 94 * + + 53 - - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-204
SELECT ALL + COUNT( * ) DIV + - 64 * + - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + COUNT ( * ) / + - 64 * + - 16 AS col2
----
0

query I rowsort
SELECT DISTINCT + 8 * - 23
----
-184

onlyif mysql # aggregate syntax: 
query II rowsort label-206
SELECT COUNT( * ) * - 40 * - 0 + 0 * - COALESCE ( + + 74, + ( - 66 ), - 88 ) AS col0, 60
----
0
60

skipif mysql # not compatible
query II rowsort label-206
SELECT COUNT ( * ) * - 40 * - 0 + 0 * - COALESCE ( + + 74, + ( - 66 ), - 88 ) AS col0, 60
----
0
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-207
SELECT - CAST( NULL AS SIGNED ) * + + ( - 65 ) * 81 + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT - CAST ( NULL AS INTEGER ) * + + ( - 65 ) * 81 + 16 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT + 17 * + CAST( 33 AS SIGNED ) * - MAX( ALL - 94 )
----
52734

skipif mysql # not compatible
query I rowsort label-208
SELECT + 17 * + CAST ( 33 AS INTEGER ) * - MAX ( ALL - 94 )
----
52734

query I rowsort
SELECT DISTINCT 45 * 35 * + 6 AS col0
----
9450

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT DISTINCT - NULLIF ( - ( + CAST( - + CAST( 79 AS SIGNED ) AS SIGNED ) ), 96 * + + 78 )
----
-79

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT - NULLIF ( - ( + CAST ( - + CAST ( 79 AS INTEGER ) AS INTEGER ) ), 96 * + + 78 )
----
-79

query I rowsort
SELECT DISTINCT - 39 * - 36 AS col0
----
1404

query I rowsort
SELECT ALL + 30 * + ( + ( + + 85 ) )
----
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-214
SELECT - 72 * + 79 * COUNT( * ) * + CAST( NULL AS SIGNED ) - 63, CASE + COUNT( * ) WHEN + 4 THEN - 79 ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-214
SELECT - 72 * + 79 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) - 63, CASE + COUNT ( * ) WHEN + 4 THEN - 79 ELSE NULL END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT DISTINCT 68 + COUNT( * ) + - 77 + + + 44
----
36

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT 68 + COUNT ( * ) + - 77 + + + 44
----
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT DISTINCT + 13 + + + 38 + - COUNT( * ) + - COUNT( * ) + 69
----
118

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT + 13 + + + 38 + - COUNT ( * ) + - COUNT ( * ) + 69
----
118

query I rowsort
SELECT DISTINCT ( + 70 ) + + 36 AS col0
----
106

query II rowsort
SELECT ALL + 46 + + 17, 61 AS col0
----
63
61

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT - 73 - 74 * + ( + 38 ) + - NULLIF ( - 23, - - 14 + - NULLIF ( - 34, + 88 ) ) DIV - ( - 53 ) AS col0
----
-2885

skipif mysql # not compatible
query I rowsort label-220
SELECT - 73 - 74 * + ( + 38 ) + - NULLIF ( - 23, - - 14 + - NULLIF ( - 34, + 88 ) ) / - ( - 53 ) AS col0
----
-2885

query II rowsort
SELECT + ( - 39 ) AS col1, 90
----
-39
90

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT 67 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-222
SELECT 67 / 59
----
1

query I rowsort
SELECT ALL + 86 + 2 + - + 48 + + - 15
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT + 39 * - - 96 * + 71 + 19 * - - 70 + + 71 + + + SUM( - + 46 ) + - CASE + + CASE 97 WHEN + 89 THEN 96 END WHEN 67 THEN NULL WHEN - 49 * 16 * - + 94 THEN 89 * + 0 + + 98 * + 14 END * ( + 70 * 74 ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT + 39 * - - 96 * + 71 + 19 * - - 70 + + 71 + + + SUM ( - + 46 ) + - CASE + + CASE 97 WHEN + 89 THEN 96 END WHEN 67 THEN NULL WHEN - 49 * 16 * - + 94 THEN 89 * + 0 + + 98 * + 14 END * ( + 70 * 74 ) * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( 64, + - 30 + + 32 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT COUNT( * ) + - ( ( 84 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-226
SELECT COUNT ( * ) + - ( ( 84 ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT 77 * - 9 * + 26 * COUNT( * ) AS col2
----
-18018

skipif mysql # not compatible
query I rowsort label-227
SELECT 77 * - 9 * + 26 * COUNT ( * ) AS col2
----
-18018

query I rowsort
SELECT - 45 + + 42
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT DISTINCT - 3 * + + 25 + - 98 DIV 62 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - 3 * + + 25 + - 98 / 62 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL + COALESCE ( - COALESCE ( 44, 72 * + COUNT( * ), - SUM( ALL - 51 ) * + + 31 ), 5 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + COALESCE ( - COALESCE ( 44, 72 * + COUNT ( * ), - SUM ( ALL - 51 ) * + + 31 ), 5 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT + 1 * + MAX( DISTINCT - + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + 1 * + MAX ( DISTINCT - + 8 )
----
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-233
SELECT ALL - COALESCE ( + COALESCE ( + 56, 74 DIV + + 77 DIV - 27 + + + 51 + 69 ), + CAST( NULL AS SIGNED ) + - COUNT( * ) + + + 40 )
----
-56

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - COALESCE ( + COALESCE ( + 56, 74 / + + 77 / - 27 + + + 51 + 69 ), + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + 40 )
----
-56

query II rowsort
SELECT 21 AS col1, 7
----
21
7

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

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

query I rowsort
SELECT DISTINCT 86 * 66 AS col1
----
5676

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-237
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + NULLIF ( 78, - 7 ) AS col0, - 96
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-237
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + NULLIF ( 78, - 7 ) AS col0, - 96
----
NULL
-96

query II rowsort
SELECT ALL - 16 AS col2, 75
----
-16
75

query I rowsort
SELECT ( - 71 ) * - 68 + - 50 col0
----
4778

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL + COUNT( * ) + - - 95 + - + 75 * + + 58 + 49 * - 78
----
-8076

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + COUNT ( * ) + - - 95 + - + 75 * + + 58 + 49 * - 78
----
-8076

onlyif mysql # aggregate syntax: 
query II rowsort label-241
SELECT + 0 AS col0, SUM( ALL 11 ) AS col2
----
0
11

skipif mysql # not compatible
query II rowsort label-241
SELECT + 0 AS col0, SUM ( ALL 11 ) AS col2
----
0
11

query II rowsort
SELECT 72 AS col2, 3 * 2
----
72
6

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT - 6 * + + 68 + 13 * - + COUNT( * ) + - 26
----
-447

skipif mysql # not compatible
query I rowsort label-243
SELECT - 6 * + + 68 + 13 * - + COUNT ( * ) + - 26
----
-447

query II rowsort
SELECT + 10 AS col1, + 77 col2
----
10
77

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT SUM( ALL 65 ) + 95 + - 75
----
85

skipif mysql # not compatible
query I rowsort label-245
SELECT SUM ( ALL 65 ) + 95 + - 75
----
85

query II rowsort
SELECT ALL 79 + 39 + + 79 AS col0, 31 AS col1
----
197
31

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

skipif mysql # not compatible
query I rowsort label-247
SELECT 70 + + COUNT ( * ) AS col1
----
71

query II rowsort
SELECT ALL 21, 98 col2
----
21
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-249
SELECT DISTINCT 36 + COUNT( * ) + - 54 DIV - + 76
----
37

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT 36 + COUNT ( * ) + - 54 / - + 76
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-250
SELECT ALL 70 AS col2, - COUNT( * ) + - ( - - 33 )
----
70
-34

skipif mysql # not compatible
query II rowsort label-250
SELECT ALL 70 AS col2, - COUNT ( * ) + - ( - - 33 )
----
70
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ( - 21 ) + - MAX( - + 25 )
----
4

skipif mysql # not compatible
query I rowsort label-251
SELECT ( - 21 ) + - MAX ( - + 25 )
----
4

query II rowsort
SELECT DISTINCT - 95 AS col0, - 6 + 68 * 45
----
-95
3054

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - COUNT( * ) * 32 - 41 + 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-253
SELECT - COUNT ( * ) * 32 - 41 + 74 AS col0
----
1

query I rowsort
SELECT 13 * + 3
----
39

query I rowsort
SELECT ALL + - 82 - + + 7 AS col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-256
SELECT ALL - 63 * + ( - 88 ) AS col0, 13 DIV - MAX( DISTINCT 47 ) * 91 col2
----
5544
0

skipif mysql # not compatible
query II rowsort label-256
SELECT ALL - 63 * + ( - 88 ) AS col0, 13 / - MAX ( DISTINCT 47 ) * 91 col2
----
5544
0

query I rowsort
SELECT ALL + NULLIF ( + 46, + 41 / + + 67 / + 48 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT SUM( DISTINCT + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-258
SELECT SUM ( DISTINCT + 38 ) AS col1
----
38

query II rowsort
SELECT - 89 AS col2, 96
----
-89
96

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT - 9 * - CASE + 84 WHEN - 26 THEN + + ( 27 ) + - 11 + + NULLIF ( 7, + 11 * - + 51 * - 9 ) WHEN 70 + + COALESCE ( - COUNT( * ), - 18, + COUNT( * ) + 1, + 66 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT - 9 * - CASE + 84 WHEN - 26 THEN + + ( 27 ) + - 11 + + NULLIF ( 7, + 11 * - + 51 * - 9 ) WHEN 70 + + COALESCE ( - COUNT ( * ), - 18, + COUNT ( * ) + 1, + 66 ) THEN NULL END
----
NULL

query I rowsort
SELECT - ( + 93 ) col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + 67 - + - CASE 32 WHEN + + 27 THEN - COUNT( * ) WHEN + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE 1 END THEN 6 WHEN + + 41 * + + COUNT( * ) THEN - + 77 * - + 87 + - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT + 67 - + - CASE 32 WHEN + + 27 THEN - COUNT ( * ) WHEN + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE 1 END THEN 6 WHEN + + 41 * + + COUNT ( * ) THEN - + 77 * - + 87 + - 95 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT - 36 DIV + 30 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-263
SELECT - 36 / + 30 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT ALL - 47 DIV + 78 * 51 * + 56
----
0

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL - 47 / + 78 * 51 * + 56
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-265
SELECT + CASE - 68 WHEN - 99 * 52 THEN + 13 END + + NULLIF ( + + COUNT( * ), + 0 ) + + CAST( - ( CAST( NULL AS SIGNED ) ) AS DECIMAL ) / CASE + + 25 WHEN - + 84 / - 98 THEN NULL WHEN + 36 THEN + - COUNT( * ) + - CAST( NULL AS SIGNED ) + - 3 * - 16 ELSE NULL END * MAX( - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT + CASE - 68 WHEN - 99 * 52 THEN + 13 END + + NULLIF ( + + COUNT ( * ), + 0 ) + + CAST ( - ( CAST ( NULL AS INTEGER ) ) AS REAL ) / CASE + + 25 WHEN - + 84 / - 98 THEN NULL WHEN + 36 THEN + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 3 * - 16 ELSE NULL END * MAX ( - 90 )
----
NULL

query I rowsort
SELECT - + 36 + + 92
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-267
SELECT - 81 * - CAST( NULL AS SIGNED ) * 73 * + 85, NULLIF ( - COALESCE ( + 42, 87 * + COUNT( + + 74 ) + - COUNT( * ), 28 - 14, + - 51 ), + SUM( - 88 ) ) AS col1
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-267
SELECT - 81 * - CAST ( NULL AS INTEGER ) * 73 * + 85, NULLIF ( - COALESCE ( + 42, 87 * + COUNT ( + + 74 ) + - COUNT ( * ), 28 - 14, + - 51 ), + SUM ( - 88 ) ) AS col1
----
NULL
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-268
SELECT ALL + CAST( + - CAST( + 85 AS SIGNED ) AS SIGNED ) * 23 + + 56 AS col0
----
-1899

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL + CAST ( + - CAST ( + 85 AS INTEGER ) AS INTEGER ) * 23 + + 56 AS col0
----
-1899

query I rowsort
SELECT ALL - NULLIF ( 80, + 50 - + + 27 ) * - + 56
----
4480

query I rowsort
SELECT NULLIF ( - + 53, + 33 * + 11 + - + 68 * + - 56 + 63 + + - 12 * - 66 )
----
-53

query II rowsort
SELECT ALL 63 * + 64, 76 AS col0
----
4032
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT 57 DIV + + COALESCE ( + 84, - CASE MIN( + CASE + 4 WHEN + ( + 8 ) THEN + 39 END ) WHEN - 9 + + COALESCE ( - COUNT( * ), - + 29 * - - 21, + COUNT( * ) ) DIV - - 97 * + COUNT( * ) THEN NULL ELSE + 7 END, + 64 DIV COUNT( * ) ) * - SUM( 24 + - 45 ) + - 73 * 61 AS col0
----
-4453

skipif mysql # not compatible
query I rowsort label-272
SELECT 57 / + + COALESCE ( + 84, - CASE MIN ( + CASE + 4 WHEN + ( + 8 ) THEN + 39 END ) WHEN - 9 + + COALESCE ( - COUNT ( * ), - + 29 * - - 21, + COUNT ( * ) ) / - - 97 * + COUNT ( * ) THEN NULL ELSE + 7 END, + 64 / COUNT ( * ) ) * - SUM ( 24 + - 45 ) + - 73 * 61 AS col0
----
-4453

query I rowsort
SELECT COALESCE ( 7, + 13 - 54 * 40 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT 30 * 6 + MAX( DISTINCT - 71 ) AS col1
----
109

skipif mysql # not compatible
query I rowsort label-274
SELECT 30 * 6 + MAX ( DISTINCT - 71 ) AS col1
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-275
SELECT COALESCE ( COUNT( * ), + ( - 47 ) * + 84 DIV 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-275
SELECT COALESCE ( COUNT ( * ), + ( - 47 ) * + 84 / 29 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-276
SELECT - COUNT( * ) * - - 31 * + + 80 * 15 * + 6 * - 33 * - 0, - 77 AS col2
----
0
-77

skipif mysql # not compatible
query II rowsort label-276
SELECT - COUNT ( * ) * - - 31 * + + 80 * 15 * + 6 * - 33 * - 0, - 77 AS col2
----
0
-77

query I rowsort
SELECT NULLIF ( 66, 38 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-278
SELECT ALL + COALESCE ( - - COUNT( * ), COALESCE ( - 58, + 9 - + + 28 * + 47 * CASE - + 71 WHEN 22 THEN 44 END ) + - 55, + CAST( NULL AS SIGNED ) - + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL + COALESCE ( - - COUNT ( * ), COALESCE ( - 58, + 9 - + + 28 * + 47 * CASE - + 71 WHEN 22 THEN 44 END ) + - 55, + CAST ( NULL AS INTEGER ) - + 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT + COUNT( ALL - - 82 ) + 44 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-279
SELECT + COUNT ( ALL - - 82 ) + 44 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-280
SELECT - 85 * + CASE CAST( NULL AS DECIMAL ) WHEN 20 THEN COUNT( * ) + + AVG ( DISTINCT + 0 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT - 85 * + CASE CAST ( NULL AS REAL ) WHEN 20 THEN COUNT ( * ) + + AVG ( DISTINCT + 0 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + CASE - 66 WHEN - 86 * - + 23 THEN - 36 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 32 * + 95 AS col1
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT + MIN( - + 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + MIN ( - + 27 ) AS col0
----
-27

query I rowsort
SELECT - 21 - - 90 AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT + 91 DIV - + COUNT( * ) * - + ( - + COUNT( DISTINCT - + 31 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-285
SELECT + 91 / - + COUNT ( * ) * - + ( - + COUNT ( DISTINCT - + 31 ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT + CASE - MAX( DISTINCT - 1 ) WHEN 25 THEN NULL WHEN + + 16 THEN 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-286
SELECT + CASE - MAX ( DISTINCT - 1 ) WHEN 25 THEN NULL WHEN + + 16 THEN 59 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-287
SELECT ALL - 3 DIV 25 * 50 * - ( - + SUM( DISTINCT + 67 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - 3 / 25 * 50 * - ( - + SUM ( DISTINCT + 67 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL + NULLIF ( 56, MAX( - 55 ) )
----
56

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL + NULLIF ( 56, MAX ( - 55 ) )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-289
SELECT + + 23 - + CASE + - 33 WHEN - 53 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + + 17 + - 42 END AS col1, - 71 AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-289
SELECT + + 23 - + CASE + - 33 WHEN - 53 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + + 17 + - 42 END AS col1, - 71 AS col0
----
NULL
-71

query I rowsort
SELECT DISTINCT 95 + - - 48 AS col0
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-291
SELECT + 64 + COUNT( * ) - + 2 * + - MIN( DISTINCT - - 64 ) AS col1, - 91 AS col2
----
193
-91

skipif mysql # not compatible
query II rowsort label-291
SELECT + 64 + COUNT ( * ) - + 2 * + - MIN ( DISTINCT - - 64 ) AS col1, - 91 AS col2
----
193
-91

query I rowsort
SELECT - 34 - + 79 AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + + 96 * - 12 * 42 * - - 91 + + COUNT( * )
----
-4402943

skipif mysql # not compatible
query I rowsort label-293
SELECT + + 96 * - 12 * 42 * - - 91 + + COUNT ( * )
----
-4402943

query I rowsort
SELECT ALL + 91 + 32 * + 68
----
2267

query I rowsort
SELECT - ( CASE 81 WHEN - 99 THEN NULL ELSE - 78 END ) col2
----
78

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

skipif mysql # not compatible
query I rowsort label-296
SELECT + 34 + COUNT ( * ) + + - 99 * + 19 AS col0
----
-1846

query I rowsort
SELECT ALL - 98 + - 63
----
-161

query I rowsort
SELECT + 52 * - + 42
----
-2184

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

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL 57 + + COUNT ( * ) AS col2
----
58

query I rowsort
SELECT + 39 - + 65
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT + MIN( DISTINCT 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + MIN ( DISTINCT 64 ) AS col1
----
64

query I rowsort
SELECT 62 * - 95 * 55 + - + 35
----
-323985

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-304
SELECT ALL 92 / - ( - 56 ) * + 82 + 22 + 55 * - CASE + 87 WHEN - CAST( NULL AS SIGNED ) - CAST( + COUNT( * ) AS SIGNED ) THEN + 64 * - + 99 WHEN + + 23 / - 3 * 64 + COALESCE ( + - CAST( NULL AS SIGNED ), - 56 ) THEN NULL ELSE NULL END * 34 + - CAST( + COALESCE ( - 14, + 74 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL 92 / - ( - 56 ) * + 82 + 22 + 55 * - CASE + 87 WHEN - CAST ( NULL AS INTEGER ) - CAST ( + COUNT ( * ) AS INTEGER ) THEN + 64 * - + 99 WHEN + + 23 / - 3 * 64 + COALESCE ( + - CAST ( NULL AS INTEGER ), - 56 ) THEN NULL ELSE NULL END * 34 + - CAST ( + COALESCE ( - 14, + 74 ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT DISTINCT + MAX( ALL + + 13 ) * - 89 - + COUNT( * ) AS col0
----
-1158

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT + MAX ( ALL + + 13 ) * - 89 - + COUNT ( * ) AS col0
----
-1158

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT DISTINCT 60 DIV - 26 - + - 34 + + 64 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT 60 / - 26 - + - 34 + + 64 AS col1
----
96

query II rowsort
SELECT ALL + NULLIF ( + 68, - + 59 * + CASE 90 WHEN - 4 THEN + - ( 72 ) * + 66 * - 10 END ) AS col2, + 80 + + 78 * 36 + - 71
----
68
2817

query I rowsort
SELECT ALL 35 * + 50 * - 20 * 41 - - 46 AS col0
----
-1434954

query I rowsort
SELECT ALL - 9 * 10
----
-90

query I rowsort
SELECT ( ( - 76 ) ) col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ( - COUNT( DISTINCT 0 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-311
SELECT ( - COUNT ( DISTINCT 0 ) )
----
-1

query I rowsort
SELECT - 32 * + 47 AS col1
----
-1504

query I rowsort
SELECT + 95 * + + 10 + + 18 * + 1 + - + 42
----
926

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT 18 * + 16 + - COUNT( * ) + - 23
----
264

skipif mysql # not compatible
query I rowsort label-314
SELECT 18 * + 16 + - COUNT ( * ) + - 23
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT ALL + - ( - 82 ) * CAST( ( 85 ) AS SIGNED ) * - 45 - + 42 - + - NULLIF ( + + 38, CASE + CASE - 72 WHEN + 56 - - - MIN( DISTINCT + - 57 ) + + 52 + + 60 * + + 81 * - COUNT( * ) - - 2 THEN 6 * 86 END WHEN - 31 THEN CAST( - COALESCE ( COUNT( * ), - 26 ) AS SIGNED ) WHEN + CASE - 50 WHEN - NULLIF ( ( - 74 ), 94 ) THEN - 75 WHEN - COUNT( * ) THEN NULL END THEN NULL WHEN + 99 THEN + 32 END ) * - 96
----
-317340

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL + - ( - 82 ) * CAST ( ( 85 ) AS INTEGER ) * - 45 - + 42 - + - NULLIF ( + + 38, CASE + CASE - 72 WHEN + 56 - - - MIN ( DISTINCT + - 57 ) + + 52 + + 60 * + + 81 * - COUNT ( * ) - - 2 THEN 6 * 86 END WHEN - 31 THEN CAST ( - COALESCE ( COUNT ( * ), - 26 ) AS INTEGER ) WHEN + CASE - 50 WHEN - NULLIF ( ( - 74 ), 94 ) THEN - 75 WHEN - COUNT ( * ) THEN NULL END THEN NULL WHEN + 99 THEN + 32 END ) * - 96
----
-317340

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

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

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

query I rowsort
SELECT DISTINCT - 74 * - 28 AS col2
----
2072

query II rowsort
SELECT DISTINCT + - 81, 8 col2
----
-81
8

onlyif mysql # aggregate syntax: 
query II rowsort label-320
SELECT - MIN( - - 61 ) + - 6 + - ( - - 66 ) AS col1, - 92 col0
----
-133
-92

skipif mysql # not compatible
query II rowsort label-320
SELECT - MIN ( - - 61 ) + - 6 + - ( - - 66 ) AS col1, - 92 col0
----
-133
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-321
SELECT - COALESCE ( CAST( + - CASE 25 WHEN + 6 * 45 THEN NULL WHEN + 64 * + CAST( NULL AS SIGNED ) * 56 THEN - 48 + + CASE - COUNT( * ) WHEN + - CASE + - AVG ( + ( 34 ) ) WHEN - COUNT( + 13 ) / - 87 + + 13 THEN ( MIN( DISTINCT 59 ) ) WHEN - 81 + 2 THEN + 92 ELSE NULL END + - 75 * + 44 THEN + 91 WHEN 74 THEN NULL ELSE - COALESCE ( - 93, 71 ) END + 1 ELSE ( 83 ) + 71 END AS SIGNED ), - ( ( 85 ) ) + 84 ) * COUNT( * ) + + 25
----
179

skipif mysql # not compatible
query I rowsort label-321
SELECT - COALESCE ( CAST ( + - CASE 25 WHEN + 6 * 45 THEN NULL WHEN + 64 * + CAST ( NULL AS INTEGER ) * 56 THEN - 48 + + CASE - COUNT ( * ) WHEN + - CASE + - AVG ( + ( 34 ) ) WHEN - COUNT ( + 13 ) / - 87 + + 13 THEN ( MIN ( DISTINCT 59 ) ) WHEN - 81 + 2 THEN + 92 ELSE NULL END + - 75 * + 44 THEN + 91 WHEN 74 THEN NULL ELSE - COALESCE ( - 93, 71 ) END + 1 ELSE ( 83 ) + 71 END AS INTEGER ), - ( ( 85 ) ) + 84 ) * COUNT ( * ) + + 25
----
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT DISTINCT - COUNT( * ) * 19 DIV - + 62 DIV - COUNT( * ) + - + 15
----
-15

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT - COUNT ( * ) * 19 / - + 62 / - COUNT ( * ) + - + 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT ALL - COUNT( * ) + NULLIF ( - + 62, - MAX( - 31 ) ) + - + 63 - + 69 + ( 60 ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL - COUNT ( * ) + NULLIF ( - + 62, - MAX ( - 31 ) ) + - + 63 - + 69 + ( 60 ) AS col1
----
-135

onlyif mysql # DIV for integer division: 
query II rowsort label-324
SELECT DISTINCT 83 + - + 69 DIV - 91 AS col1, 27 col1
----
83
27

skipif mysql # not compatible
query II rowsort label-324
SELECT DISTINCT 83 + - + 69 / - 91 AS col1, 27 col1
----
83
27

query I rowsort
SELECT ALL + 20 + - 67 AS col0
----
-47

query I rowsort
SELECT ALL - 61 + + - 48 * 5 AS col1
----
-301

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT DISTINCT + 98 DIV + - 9 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + 98 / + - 9 AS col2
----
-10

query I rowsort
SELECT ALL 11 + + 37
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT - COALESCE ( + + 42, + COUNT( * ) ) + - + 26 DIV 63 DIV - 78 col0
----
-42

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT - COALESCE ( + + 42, + COUNT ( * ) ) + - + 26 / 63 / - 78 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT COALESCE ( - 31, 46, + - ( + COALESCE ( + 2, - 80 ) ) * - 8 * + ( + 75 ) ) + + + 2 + NULLIF ( + - 73, + 78 ) * - NULLIF ( + + NULLIF ( 3, - - 46 ), + COUNT( * ) + - - 35 )
----
190

skipif mysql # not compatible
query I rowsort label-330
SELECT COALESCE ( - 31, 46, + - ( + COALESCE ( + 2, - 80 ) ) * - 8 * + ( + 75 ) ) + + + 2 + NULLIF ( + - 73, + 78 ) * - NULLIF ( + + NULLIF ( 3, - - 46 ), + COUNT ( * ) + - - 35 )
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT DISTINCT 63 + 67 + - COUNT( * ) * - 19 - - 97
----
246

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT 63 + 67 + - COUNT ( * ) * - 19 - - 97
----
246

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-332
SELECT DISTINCT 77 col0, 75 + - CAST( NULL AS DECIMAL )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-332
SELECT DISTINCT 77 col0, 75 + - CAST ( NULL AS REAL )
----
77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-333
SELECT - 82 AS col1, 20 * - 90 * + COUNT( * )
----
-82
-1800

skipif mysql # not compatible
query II rowsort label-333
SELECT - 82 AS col1, 20 * - 90 * + COUNT ( * )
----
-82
-1800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT COUNT( + 87 ) + ( 72 )
----
73

skipif mysql # not compatible
query I rowsort label-335
SELECT COUNT ( + 87 ) + ( 72 )
----
73

query I rowsort
SELECT DISTINCT 4 + 8 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT MIN( - + 87 ) * 67 * - 31 * + 18 AS col0
----
3252582

skipif mysql # not compatible
query I rowsort label-337
SELECT MIN ( - + 87 ) * 67 * - 31 * + 18 AS col0
----
3252582

query I rowsort
SELECT DISTINCT 68 - + 47 * - 97
----
4627

query I rowsort
SELECT 80 + + - 32
----
48

query I rowsort
SELECT ALL - 95 - + + 32 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT 96 / ( + - 55 ) * + CASE 96 WHEN - COUNT( * ) THEN - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT 96 / ( + - 55 ) * + CASE 96 WHEN - COUNT ( * ) THEN - 75 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT DISTINCT 55 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT 55 / - 96 AS col0
----
0

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

query I rowsort
SELECT ( + 85 ) * + ( + 70 ) AS col0
----
5950

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT DISTINCT 82 DIV 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT 82 / 9 AS col2
----
9

query II rowsort
SELECT ALL - 11 AS col1, 23
----
-11
23

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT DISTINCT + 9 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT + 9 / - 90
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT + COUNT( * ), 34 + 10 * + + NULLIF ( - 7, + + 81 ) * MAX( ALL + 83 ) + - ( 90 ) AS col0
----
1
-5866

skipif mysql # not compatible
query II rowsort label-348
SELECT + COUNT ( * ), 34 + 10 * + + NULLIF ( - 7, + + 81 ) * MAX ( ALL + 83 ) + - ( 90 ) AS col0
----
1
-5866

query I rowsort
SELECT ALL - 76 * + - 48 col0
----
3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-350
SELECT 48 AS col0, COUNT( * ) * + CASE + + 29 WHEN 92 + - + SUM( ALL + 92 ) - + 98 + SUM( DISTINCT - 53 ) * + 20 THEN 75 + - - 79 WHEN - - COUNT( * ) + + + CAST( NULL AS SIGNED ) + 14 - - 2 + + + 32 - 80 THEN NULL ELSE NULL END
----
48
NULL

skipif mysql # not compatible
query II rowsort label-350
SELECT 48 AS col0, COUNT ( * ) * + CASE + + 29 WHEN 92 + - + SUM ( ALL + 92 ) - + 98 + SUM ( DISTINCT - 53 ) * + 20 THEN 75 + - - 79 WHEN - - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + 14 - - 2 + + + 32 - 80 THEN NULL ELSE NULL END
----
48
NULL

query I rowsort
SELECT + 62 * + 1 * 0 AS col2
----
0

query I rowsort
SELECT DISTINCT - 84 * + 69 * - 72
----
417312

query I rowsort
SELECT + 75 * + 99 - 32 * - 63 + 35
----
9476

query II rowsort
SELECT 92, COALESCE ( - 25, + 4 * + 80 + - - ( 78 ), + 56 ) col0
----
92
-25

query I rowsort
SELECT ( 81 ) - - + 86 + + - 99 * - - ( - 49 )
----
5018

query I rowsort
SELECT - 28 * + 59
----
-1652

query I rowsort
SELECT ALL ( + 85 ) + - 39
----
46

query I rowsort
SELECT ALL 16 + + 32
----
48

query I rowsort
SELECT DISTINCT - 32 + + 73
----
41

query I rowsort
SELECT ALL - + 8 + - 43
----
-51

query II rowsort
SELECT 39 - - + 84 AS col0, + 59 AS col0
----
123
59

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ALL COUNT( - - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL COUNT ( - - 28 ) AS col2
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL + COUNT( DISTINCT + 71 ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + COUNT ( DISTINCT + 71 ) * 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT 29 + + + NULLIF ( - COUNT( ( 76 ) ), - 30 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-366
SELECT 29 + + + NULLIF ( - COUNT ( ( 76 ) ), - 30 ) AS col2
----
28

query I rowsort
SELECT 39 + - - 14 * + 22
----
347

query I rowsort
SELECT ALL - ( + 46 ) * - + ( 4 )
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT + 63 - + + 27 - + MIN( + 65 )
----
-29

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + 63 - + + 27 - + MIN ( + 65 )
----
-29

query I rowsort
SELECT 0 * 37 + - 54 + + 13
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-371
SELECT 64 * - - 38, + ( - + CAST( NULL AS SIGNED ) ) AS col2
----
2432
NULL

skipif mysql # not compatible
query II rowsort label-371
SELECT 64 * - - 38, + ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
2432
NULL

query I rowsort
SELECT + 14 * - 41 + 59 - - - NULLIF ( - 47, - 70 ) AS col2
----
-468

query I rowsort
SELECT DISTINCT 14 * - + ( + - 93 ) AS col0
----
1302

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

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL COUNT ( * ) * 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT MIN( 14 ) * + - 17 AS col1
----
-238

skipif mysql # not compatible
query I rowsort label-375
SELECT MIN ( 14 ) * + - 17 AS col1
----
-238

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT ALL + 73 * 47 DIV + 44 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + 73 * 47 / + 44 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT 67 - COUNT( * ) - - 97 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-377
SELECT 67 - COUNT ( * ) - - 97 AS col1
----
163

query I rowsort
SELECT DISTINCT - 80 * 87 AS col1
----
-6960

query I rowsort
SELECT ALL - - 94 * - - 15 + 79 + + + 78
----
1567

query II rowsort
SELECT - 27 * + ( 68 ) + + 14 - - 73 AS col2, + 85 - + - 98 * - + 67 * - 41
----
-1749
269291

query II rowsort
SELECT ALL - ( - + 23 ) AS col2, 18 AS col1
----
23
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-382
SELECT DISTINCT - CAST( - + 32 AS SIGNED ) * - 45 + - - CASE + 26 WHEN + 7 THEN 78 ELSE NULL END AS col1, 0 * 3 + - ( - 41 ) + + ( - ( - + 28 ) ) * ( + 26 )
----
NULL
769

skipif mysql # not compatible
query II rowsort label-382
SELECT DISTINCT - CAST ( - + 32 AS INTEGER ) * - 45 + - - CASE + 26 WHEN + 7 THEN 78 ELSE NULL END AS col1, 0 * 3 + - ( - 41 ) + + ( - ( - + 28 ) ) * ( + 26 )
----
NULL
769

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

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

query I rowsort
SELECT ALL - 18 * - 38 + 65
----
749

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-385
SELECT - 48 * + - 2 + + + 4 - + + COUNT( * ) DIV - + 34 + - 46 + - 23 + - 38
----
-7

skipif mysql # not compatible
query I rowsort label-385
SELECT - 48 * + - 2 + + + 4 - + + COUNT ( * ) / - + 34 + - 46 + - 23 + - 38
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT - SUM( - 65 ) - + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-386
SELECT - SUM ( - 65 ) - + - COUNT ( * )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-387
SELECT ALL 43 DIV - - COUNT( + 13 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL 43 / - - COUNT ( + 13 ) AS col2
----
43

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

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

query I rowsort
SELECT DISTINCT 61 * ( - + 20 ) - + 31 AS col1
----
-1251

query I rowsort
SELECT DISTINCT + 72 + - 93
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) * + 66 + - - 23
----
-43

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) * + 66 + - - 23
----
-43

query I rowsort
SELECT + + 48 * - + 81 * + + 77 AS col2
----
-299376

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT - - 84 + - + 89 + - COALESCE ( + COUNT( * ), + COUNT( * ) ) * + 87 * + 58 + + - 50 AS col1, + 98 * + 22
----
-5101
2156

skipif mysql # not compatible
query II rowsort label-394
SELECT - - 84 + - + 89 + - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) * + 87 * + 58 + + - 50 AS col1, + 98 * + 22
----
-5101
2156

query I rowsort
SELECT + 16 + - + 86 col0
----
-70

query I rowsort
SELECT - NULLIF ( - ( - 14 ), - 70 / - 48 * + 73 )
----
-14

query I rowsort
SELECT - 81 + - 77
----
-158

query I rowsort
SELECT + 93 + + 78 AS col1
----
171

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

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

query I rowsort
SELECT ALL ( 13 ) - - 27 + - + 1 - + 46 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT - CASE 22 WHEN - 62 * - 24 + + AVG ( ALL - + 3 ) * + - COUNT( * ) THEN NULL ELSE 94 END * + 72 AS col2
----
-6768

skipif mysql # not compatible
query I rowsort label-401
SELECT - CASE 22 WHEN - 62 * - 24 + + AVG ( ALL - + 3 ) * + - COUNT ( * ) THEN NULL ELSE 94 END * + 72 AS col2
----
-6768

query I rowsort
SELECT - ( + - 24 ) * - 52
----
-1248

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

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

skipif mysql # not compatible
query I rowsort label-404
SELECT - COUNT ( * ) + + 91 AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT - 85 DIV 16 * - 41 AS col2
----
205

skipif mysql # not compatible
query I rowsort label-405
SELECT - 85 / 16 * - 41 AS col2
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT - 91 * - - NULLIF ( - + MIN( + - 61 ), - 61 ) col1
----
-5551

skipif mysql # not compatible
query I rowsort label-406
SELECT - 91 * - - NULLIF ( - + MIN ( + - 61 ), - 61 ) col1
----
-5551

query I rowsort
SELECT - 3 + 6
----
3

query II rowsort
SELECT - 57 AS col1, + 62 AS col1
----
-57
62

query I rowsort
SELECT + 85 + - 97 AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-410
SELECT - 55 DIV + 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-410
SELECT - 55 / + 26 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-411
SELECT ALL + 57 DIV - - 36 + - 66 + 30 * - + 79 + - COUNT( * ) AS col2
----
-2436

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + 57 / - - 36 + - 66 + 30 * - + 79 + - COUNT ( * ) AS col2
----
-2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-412
SELECT ( + COUNT( * ) ) / + 27 + - 92 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT ( + COUNT ( * ) ) / + 27 + - 92 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - - 39 + 34
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT DISTINCT + 7 * - - 74 + COUNT( * ) + - 0
----
519

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT + 7 * - - 74 + COUNT ( * ) + - 0
----
519

onlyif mysql # aggregate syntax: 
query II rowsort label-415
SELECT ALL - + ( NULLIF ( 60, - - 41 ) ) * - 85 + - + 83 + + MIN( - 80 ) - 80 AS col2, 86
----
4857
86

skipif mysql # not compatible
query II rowsort label-415
SELECT ALL - + ( NULLIF ( 60, - - 41 ) ) * - 85 + - + 83 + + MIN ( - 80 ) - 80 AS col2, 86
----
4857
86

query I rowsort
SELECT ALL - 63 * - + 11 * COALESCE ( 92, - - 67 ) * - + 76 + - 7 + 31 * 24
----
-4844719

query I rowsort
SELECT DISTINCT + 28 * + 8 + - 29 * + + 19 AS col1
----
-327

query II rowsort
SELECT 21, - 29 * + 52 AS col0
----
21
-1508

query I rowsort
SELECT ALL 32 * 84
----
2688

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT - 1 * - NULLIF ( + 53, + 52 ) DIV - + 52 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-420
SELECT - 1 * - NULLIF ( + 53, + 52 ) / - + 52 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-421
SELECT DISTINCT - + COALESCE ( + 83, - 83 * 91 * - COALESCE ( - COUNT( * ), 24 * - 78 - - - 48 + - - 18 DIV - SUM( - NULLIF ( - NULLIF ( 98, ( + + 0 ) ), 28 ) ) DIV + + 6 ) * + 26 + + 10 + - MIN( DISTINCT + + ( - 6 ) ) ) * - 38 + - 11 AS col0
----
3143

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT - + COALESCE ( + 83, - 83 * 91 * - COALESCE ( - COUNT ( * ), 24 * - 78 - - - 48 + - - 18 / - SUM ( - NULLIF ( - NULLIF ( 98, ( + + 0 ) ), 28 ) ) / + + 6 ) * + 26 + + 10 + - MIN ( DISTINCT + + ( - 6 ) ) ) * - 38 + - 11 AS col0
----
3143

onlyif mysql # DIV for integer division: 
query II rowsort label-422
SELECT + 92 AS col0, - COALESCE ( - 9, + - 86 DIV - ( + 64 ) + - - 39 * + - 34 + 35 )
----
92
9

skipif mysql # not compatible
query II rowsort label-422
SELECT + 92 AS col0, - COALESCE ( - 9, + - 86 / - ( + 64 ) + - - 39 * + - 34 + 35 )
----
92
9

query I rowsort
SELECT ALL + - 67 * + 18 - + + ( + - 37 ) + 8 + + - 34
----
-1195

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-425
SELECT + + MAX( CAST( + 57 AS SIGNED ) ) * 7
----
399

skipif mysql # not compatible
query I rowsort label-425
SELECT + + MAX ( CAST ( + 57 AS INTEGER ) ) * 7
----
399

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT DISTINCT 16 * COUNT( ALL 72 ) - + 40 * COUNT( * ) * 83 + + 7 AS col2
----
-3297

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT 16 * COUNT ( ALL 72 ) - + 40 * COUNT ( * ) * 83 + + 7 AS col2
----
-3297

query I rowsort
SELECT + 74 * - 88 AS col0
----
-6512

query I rowsort
SELECT + 17 - - 73 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-430
SELECT DISTINCT 46 DIV - + 55 * - 10
----
0

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT 46 / - + 55 * - 10
----
0

query I rowsort
SELECT + 52 + - 32
----
20

query I rowsort
SELECT + 69 * 8
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT 81 * + NULLIF ( - NULLIF ( + - 50, + - 10 ), + + NULLIF ( ( + COUNT( * ) ), - 47 ) ) * - 16 AS col2
----
-64800

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT 81 * + NULLIF ( - NULLIF ( + - 50, + - 10 ), + + NULLIF ( ( + COUNT ( * ) ), - 47 ) ) * - 16 AS col2
----
-64800

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT + NULLIF ( + 93, + + 83 + + 76 ) * - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-434
SELECT + NULLIF ( + 93, + + 83 + + 76 ) * - COUNT ( * )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT DISTINCT 10 DIV + + 15
----
0

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT 10 / + + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT + COUNT( * ) * - + 31 * - 57
----
1767

skipif mysql # not compatible
query I rowsort label-436
SELECT + COUNT ( * ) * - + 31 * - 57
----
1767

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-438
SELECT ALL 4 * - - 91 col1, 77 + CAST( NULL AS SIGNED ) + + - 17
----
364
NULL

skipif mysql # not compatible
query II rowsort label-438
SELECT ALL 4 * - - 91 col1, 77 + CAST ( NULL AS INTEGER ) + + - 17
----
364
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-439
SELECT - CAST( NULL AS SIGNED ) * + 16 * - + 65 * - CASE AVG ( ALL + 41 ) WHEN AVG ( DISTINCT - + 41 ) * - 59 THEN + + 76 * 89 ELSE NULL END * ( - 68 ) + + CAST( + 83 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT - CAST ( NULL AS INTEGER ) * + 16 * - + 65 * - CASE AVG ( ALL + 41 ) WHEN AVG ( DISTINCT - + 41 ) * - 59 THEN + + 76 * 89 ELSE NULL END * ( - 68 ) + + CAST ( + 83 AS REAL ) AS col1
----
NULL

query II rowsort
SELECT + 86 + + + 19 col0, - 60 + 85 AS col0
----
105
25

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT ALL NULLIF ( - + 75, - - 14 + - CASE + + 49 WHEN - 82 + NULLIF ( - - 66, - COUNT( * ) + + 71 * - 9 / + + ( - 43 ) ) THEN NULL WHEN - CASE 61 WHEN 44 THEN - 80 WHEN - NULLIF ( - 95, 37 ) * - - 88 * - 11 THEN NULL ELSE - 28 END THEN NULL WHEN + - 90 THEN NULL ELSE + 29 / MIN( 47 ) END ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL NULLIF ( - + 75, - - 14 + - CASE + + 49 WHEN - 82 + NULLIF ( - - 66, - COUNT ( * ) + + 71 * - 9 / + + ( - 43 ) ) THEN NULL WHEN - CASE 61 WHEN 44 THEN - 80 WHEN - NULLIF ( - 95, 37 ) * - - 88 * - 11 THEN NULL ELSE - 28 END THEN NULL WHEN + - 90 THEN NULL ELSE + 29 / MIN ( 47 ) END ) AS col1
----
-75

query I rowsort
SELECT - 85 * + 69
----
-5865

query I rowsort
SELECT DISTINCT 3 * - 71
----
-213

query I rowsort
SELECT DISTINCT 96 + - + 4 * - 22 AS col2
----
184

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

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT ALL - + 89 DIV + 25 + - + 75
----
-78

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - + 89 / + 25 + - + 75
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT - 56 * - 58 + - - ( MIN( - 4 ) ) + - 51 * - + 1 * + 56 * + 51, COUNT( * ) AS col0
----
148900
1

skipif mysql # not compatible
query II rowsort label-447
SELECT - 56 * - 58 + - - ( MIN ( - 4 ) ) + - 51 * - + 1 * + 56 * + 51, COUNT ( * ) AS col0
----
148900
1

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT DISTINCT - 97 * + ( - 18 ) + - - 73 DIV 31
----
1748

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT - 97 * + ( - 18 ) + - - 73 / 31
----
1748

query II rowsort
SELECT ( + 37 ) AS col1, + 36 col2
----
37
36

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL - + 89 * - MAX( 52 )
----
4628

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL - + 89 * - MAX ( 52 )
----
4628

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-451
SELECT CAST( NULL AS DECIMAL ) + + ( - - 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT CAST ( NULL AS REAL ) + + ( - - 78 ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-453
SELECT - CAST( NULL AS SIGNED ) - + - 66 * - - 86 + - 84 * 79 * - 63 - + MIN( ALL - 18 ) + - 23 AS col2, 6
----
NULL
6

skipif mysql # not compatible
query II rowsort label-453
SELECT - CAST ( NULL AS INTEGER ) - + - 66 * - - 86 + - 84 * 79 * - 63 - + MIN ( ALL - 18 ) + - 23 AS col2, 6
----
NULL
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-454
SELECT ALL + - CASE 22 WHEN - - 2 THEN 33 WHEN COALESCE ( - 5, + 10 + 9 ) THEN NULL WHEN + ( + 25 ) THEN NULL END * + COALESCE ( - 74, ( 27 ) - + 30 + + 44 * - 66 ) * + CASE + CAST( - 89 AS SIGNED ) WHEN - COUNT( * ) THEN + CASE - 14 WHEN 78 + + CAST( 17 AS DECIMAL ) * ( + 77 ) THEN 52 END + 42 WHEN 22 * + 36 THEN - COUNT( * ) * 85 + - 46 ELSE 2 END + - 21 * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL + - CASE 22 WHEN - - 2 THEN 33 WHEN COALESCE ( - 5, + 10 + 9 ) THEN NULL WHEN + ( + 25 ) THEN NULL END * + COALESCE ( - 74, ( 27 ) - + 30 + + 44 * - 66 ) * + CASE + CAST ( - 89 AS INTEGER ) WHEN - COUNT ( * ) THEN + CASE - 14 WHEN 78 + + CAST ( 17 AS REAL ) * ( + 77 ) THEN 52 END + 42 WHEN 22 * + 36 THEN - COUNT ( * ) * 85 + - 46 ELSE 2 END + - 21 * 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT 92 * + + 73 * COUNT( * ) + - 31 + - + 49 AS col2
----
6636

skipif mysql # not compatible
query I rowsort label-455
SELECT 92 * + + 73 * COUNT ( * ) + - 31 + - + 49 AS col2
----
6636

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT ALL 61 DIV + 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL 61 / + 36 AS col1
----
1

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

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

query I rowsort
SELECT + 75 + + 42 AS col1
----
117

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

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

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

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

query I rowsort
SELECT 14 - + + 80 + + 74 * + - 18 * - NULLIF ( - - 1, 23 + + 79 * + - 84 / NULLIF ( - - 10, 22 * + - 27 ) * 30 - 83 )
----
1266

query I rowsort
SELECT 1 * 88 AS col1
----
88

query II rowsort
SELECT + 15 + - 90, 48 - + - 98 AS col2
----
-75
146

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

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT ALL 40 * - SUM( DISTINCT - 69 ) * - 46 * + NULLIF ( - 87, + 93 + MAX( DISTINCT + 63 ) )
----
11045520

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL 40 * - SUM ( DISTINCT - 69 ) * - 46 * + NULLIF ( - 87, + 93 + MAX ( DISTINCT + 63 ) )
----
11045520

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT 64 + 89 + - COUNT( * )
----
152

skipif mysql # not compatible
query I rowsort label-466
SELECT 64 + 89 + - COUNT ( * )
----
152

query I rowsort
SELECT ALL - 76 * + 10 AS col0
----
-760

query I rowsort
SELECT ALL 4 * 23
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT DISTINCT 83, COUNT( * ) * - ( - - ( 31 ) ) col0
----
83
-31

skipif mysql # not compatible
query II rowsort label-469
SELECT DISTINCT 83, COUNT ( * ) * - ( - - ( 31 ) ) col0
----
83
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT ( 47 ) + + + 49 + + 11 * - - 36 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT ( 47 ) + + + 49 + + 11 * - - 36 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-471
SELECT COUNT( * ) + 1 * + 44 * - CAST( + + COUNT( ( 52 ) ) AS SIGNED ) - - 71 DIV + - MAX( 80 ) * + 36 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-471
SELECT COUNT ( * ) + 1 * + 44 * - CAST ( + + COUNT ( ( 52 ) ) AS INTEGER ) - - 71 / + - MAX ( 80 ) * + 36 AS col0
----
-43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT ALL 38 DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL 38 / 73 AS col1
----
0

query I rowsort
SELECT DISTINCT 97 + + 73 * 43 * - 59
----
-185104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL - 14 * COALESCE ( + 53, - CASE 45 WHEN - - ( - 65 ) * - 84 THEN 71 * - COUNT( * ) ELSE - COUNT( * ) + - 64 END ) AS col1
----
-742

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - 14 * COALESCE ( + 53, - CASE 45 WHEN - - ( - 65 ) * - 84 THEN 71 * - COUNT ( * ) ELSE - COUNT ( * ) + - 64 END ) AS col1
----
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL COUNT( - 99 ) + 90 * + - 94 + - 11 AS col1
----
-8470

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL COUNT ( - 99 ) + 90 * + - 94 + - 11 AS col1
----
-8470

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

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT 49 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT COUNT( ALL + + 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-479
SELECT COUNT ( ALL + + 26 ) AS col2
----
1

query I rowsort
SELECT + 56 * - - 0
----
0

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

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

query I rowsort
SELECT DISTINCT CASE + 49 WHEN - 40 THEN - 57 END AS col2
----
NULL

query I rowsort
SELECT ALL + + 24 + + 74
----
98

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

query I rowsort
SELECT ALL 53 * 8
----
424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-486
SELECT ( COUNT( - 47 ) ) DIV 21 * + ( + + 27 ) * - 86 * 65 + - + 54 * 8 * 21 * - + COUNT( * )
----
9072

skipif mysql # not compatible
query I rowsort label-486
SELECT ( COUNT ( - 47 ) ) / 21 * + ( + + 27 ) * - 86 * 65 + - + 54 * 8 * 21 * - + COUNT ( * )
----
9072

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT ALL + NULLIF ( - - 89, - CAST( NULLIF ( - + 4, 50 * + 5 ) AS SIGNED ) ) - + 7 + NULLIF ( + 29, + + 33 ) * + 50
----
1532

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL + NULLIF ( - - 89, - CAST ( NULLIF ( - + 4, 50 * + 5 ) AS INTEGER ) ) - + 7 + NULLIF ( + 29, + + 33 ) * + 50
----
1532

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL - 52 * - + 35 * - 4 * SUM( 10 ) * 98
----
-7134400

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - 52 * - + 35 * - 4 * SUM ( 10 ) * 98
----
-7134400

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT DISTINCT - - 20 DIV + 76 * + + 35 col0
----
0

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT - - 20 / + 76 * + + 35 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-491
SELECT + 47 * + - CAST( - + MAX( DISTINCT 15 ) AS SIGNED )
----
705

skipif mysql # not compatible
query I rowsort label-491
SELECT + 47 * + - CAST ( - + MAX ( DISTINCT 15 ) AS INTEGER )
----
705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-492
SELECT ALL + + 69 * + COUNT( * ) / + COUNT( * ) * 38 * + + CAST( NULL AS SIGNED ), COUNT( * ) + + 98 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-492
SELECT ALL + + 69 * + COUNT ( * ) / + COUNT ( * ) * 38 * + + CAST ( NULL AS INTEGER ), COUNT ( * ) + + 98 AS col2
----
NULL
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-493
SELECT + + COALESCE ( 22, 65, COUNT( * ) + - + COUNT( * ) ) DIV + - 18 + - NULLIF ( - COALESCE ( - 94, - MIN( ALL 28 ) ), - 37 )
----
-95

skipif mysql # not compatible
query I rowsort label-493
SELECT + + COALESCE ( 22, 65, COUNT ( * ) + - + COUNT ( * ) ) / + - 18 + - NULLIF ( - COALESCE ( - 94, - MIN ( ALL 28 ) ), - 37 )
----
-95

query I rowsort
SELECT DISTINCT + 58 * + 73 AS col2
----
4234

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

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

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

skipif mysql # not compatible
query I rowsort label-496
SELECT + SUM ( + - 4 )
----
-4

query I rowsort
SELECT DISTINCT - COALESCE ( - - 92, 9, - 9 + - 75 ) AS col1
----
-92

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

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

query I rowsort
SELECT ALL - NULLIF ( + - 66, - 12 ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT DISTINCT + 8 DIV - 62 col2
----
0

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + 8 / - 62 col2
----
0

query II rowsort
SELECT 64 - + 87 AS col0, + 40
----
-23
40

query II rowsort
SELECT ALL - 35 AS col2, 51 * - + 92 AS col2
----
-35
-4692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-503
SELECT 83 + - + CASE - 71 WHEN 87 THEN - - 86 * + MIN( ALL CAST( NULL AS SIGNED ) ) + + 73 ELSE NULL END * + + NULLIF ( - COUNT( * ), - 55 ) * COUNT( * ) + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT 83 + - + CASE - 71 WHEN 87 THEN - - 86 * + MIN ( ALL CAST ( NULL AS INTEGER ) ) + + 73 ELSE NULL END * + + NULLIF ( - COUNT ( * ), - 55 ) * COUNT ( * ) + 39 AS col0
----
NULL

query I rowsort
SELECT ALL 50 + + 57
----
107

query I rowsort
SELECT ALL + 91 + - 31 AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-506
SELECT DISTINCT - 73 + - 93 DIV - SUM( DISTINCT + - 51 )
----
-74

skipif mysql # not compatible
query I rowsort label-506
SELECT DISTINCT - 73 + - 93 / - SUM ( DISTINCT + - 51 )
----
-74

query II rowsort
SELECT - 8 AS col2, - 21
----
-8
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT - MAX( ALL + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-508
SELECT - MAX ( ALL + 33 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-509
SELECT ALL 64 col0, SUM( DISTINCT + 38 ) - + 8 + + 71
----
64
101

skipif mysql # not compatible
query II rowsort label-509
SELECT ALL 64 col0, SUM ( DISTINCT + 38 ) - + 8 + + 71
----
64
101

onlyif mysql # DIV for integer division: 
query II rowsort label-510
SELECT - 65, 81 DIV - 41 col2
----
-65
-1

skipif mysql # not compatible
query II rowsort label-510
SELECT - 65, 81 / - 41 col2
----
-65
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-511
SELECT + 96 / + SUM( ALL CASE WHEN NULL = ( - 88 ) THEN 12 ELSE NULL END ) AS col1, - 74 AS col2
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-511
SELECT + 96 / + SUM ( ALL CASE WHEN NULL = ( - 88 ) THEN 12 ELSE NULL END ) AS col1, - 74 AS col2
----
NULL
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT DISTINCT 80 + 9 - - + 63 + COALESCE ( - + COUNT( * ), 53, - - 35 ) * - - 31
----
121

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT 80 + 9 - - + 63 + COALESCE ( - + COUNT ( * ), 53, - - 35 ) * - - 31
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT NULLIF ( - COUNT( * ), 96 - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-513
SELECT NULLIF ( - COUNT ( * ), 96 - 8 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL - COALESCE ( - 88, + + COALESCE ( COUNT( * ), - 16 ) ) - + - 12 + - 34
----
66

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL - COALESCE ( - 88, + + COALESCE ( COUNT ( * ), - 16 ) ) - + - 12 + - 34
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT ALL MIN( - + 65 ) DIV - COALESCE ( + COUNT( * ), COUNT( * ) * + 35 * 86 ) + + + 45
----
110

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL MIN ( - + 65 ) / - COALESCE ( + COUNT ( * ), COUNT ( * ) * + 35 * 86 ) + + + 45
----
110

query I rowsort
SELECT + 68 * 41
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL MIN( - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL MIN ( - 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT DISTINCT - 14 * - NULLIF ( ( + COUNT( * ) ), - 51 * 92 * + 37 + + MIN( 72 ) / COALESCE ( + MIN( - 8 ), - 32 + + - 51 * + - COUNT( 12 ) ) ) * + COUNT( * ) - + CASE + + COALESCE ( NULLIF ( ( 23 ), 61 ), + 44 + 53 + + 26, - 3 ) WHEN - ( + 36 ) * MAX( + 33 ) - 41 THEN NULL ELSE 75 END + 60
----
-1

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT - 14 * - NULLIF ( ( + COUNT ( * ) ), - 51 * 92 * + 37 + + MIN ( 72 ) / COALESCE ( + MIN ( - 8 ), - 32 + + - 51 * + - COUNT ( 12 ) ) ) * + COUNT ( * ) - + CASE + + COALESCE ( NULLIF ( ( 23 ), 61 ), + 44 + 53 + + 26, - 3 ) WHEN - ( + 36 ) * MAX ( + 33 ) - 41 THEN NULL ELSE 75 END + 60
----
-1

query I rowsort
SELECT ALL NULLIF ( + + NULLIF ( + 94, - + 64 ), - 35 ) AS col2
----
94

query I rowsort
SELECT ALL + 87 * - 42 AS col2
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT - + MAX( ALL + 94 ) * - - 31
----
-2914

skipif mysql # not compatible
query I rowsort label-521
SELECT - + MAX ( ALL + 94 ) * - - 31
----
-2914

query I rowsort
SELECT + 43 + - + 66 - + 14 * + 90 * - 98 AS col2
----
123457

query I rowsort
SELECT DISTINCT 82 * + - 16 AS col0
----
-1312

query I rowsort
SELECT ALL 87 * - 44
----
-3828

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT + + 26 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-525
SELECT + + 26 / - 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT - 21 DIV 19 + + 73 * + 34 - + + 11 AS col1
----
2470

skipif mysql # not compatible
query I rowsort label-526
SELECT - 21 / 19 + + 73 * + 34 - + + 11 AS col1
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT - 18 * - 97 + - + MAX( - CASE 45 WHEN - + 64 + + 54 THEN - COALESCE ( + 49, + ( + - 17 ) + - 65 ) ELSE NULL END ) + - + 18 / - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT - 18 * - 97 + - + MAX ( - CASE 45 WHEN - + 64 + + 54 THEN - COALESCE ( + 49, + ( + - 17 ) + - 65 ) ELSE NULL END ) + - + 18 / - 12
----
NULL

query II rowsort
SELECT ALL + 43 AS col1, 86 AS col0
----
43
86

query II rowsort
SELECT DISTINCT + - 71, + 83 + + - 93 * - 1 AS col1
----
-71
176

query II rowsort
SELECT ALL + 20 AS col1, - NULLIF ( - 18, - 90 ) * - 4 AS col1
----
20
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT CAST( NULL AS SIGNED ) / + 14 + 37 + - - 63 - - 41 + + COUNT( DISTINCT + - 23 ) * - 69 / + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-531
SELECT CAST ( NULL AS INTEGER ) / + 14 + 37 + - - 63 - - 41 + + COUNT ( DISTINCT + - 23 ) * - 69 / + 28
----
NULL

query I rowsort
SELECT + 10 + - - 66 + - 10 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL 1 * COALESCE ( - 76, 32 ) + + 20 * + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL 1 * COALESCE ( - 76, 32 ) + + 20 * + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT + CAST( NULL AS SIGNED ) * - + 49 + - 17 + + 86 + CAST( + - 91 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-534
SELECT + CAST ( NULL AS INTEGER ) * - + 49 + - 17 + + 86 + CAST ( + - 91 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-535
SELECT COALESCE ( + - COUNT( * ), 27 * - MIN( DISTINCT NULLIF ( - 39, + CAST( NULL AS SIGNED ) ) ), + 42 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-535
SELECT COALESCE ( + - COUNT ( * ), 27 * - MIN ( DISTINCT NULLIF ( - 39, + CAST ( NULL AS INTEGER ) ) ), + 42 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT ALL COUNT( * ) * + + 24 + 63 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL COUNT ( * ) * + + 24 + 63 AS col2
----
87

query I rowsort
SELECT - 69 - - 7
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-538
SELECT + ( 52 ), MAX( DISTINCT - + 70 ) * COUNT( * ) * + + 90 AS col1
----
52
-6300

skipif mysql # not compatible
query II rowsort label-538
SELECT + ( 52 ), MAX ( DISTINCT - + 70 ) * COUNT ( * ) * + + 90 AS col1
----
52
-6300

query II rowsort
SELECT ALL 62 * 17, 86 + 73 AS col0
----
1054
159

query I rowsort
SELECT ALL 44 * - - 95 + - 9
----
4171

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL + MIN( 87 ) col1
----
87

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL + MIN ( 87 ) col1
----
87

query I rowsort
SELECT - 9 + + ( ( - + CASE + 43 WHEN - 24 THEN + - 85 + + 96 ELSE NULL END ) ) + + NULLIF ( - 24, + - NULLIF ( + 0, 37 + 18 ) * - 39 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) + + 6 - + 81 THEN NULL WHEN + 87 THEN NULL WHEN CAST( 94 AS SIGNED ) THEN + 40 END * 36 + 77 - - 11 * - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) + + 6 - + 81 THEN NULL WHEN + 87 THEN NULL WHEN CAST ( 94 AS INTEGER ) THEN + 40 END * 36 + 77 - - 11 * - 78 AS col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 18, - 71 - 92 )
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-545
SELECT ALL CASE 95 WHEN - - 56 THEN + - 99 WHEN CAST( NULL AS DECIMAL ) + + ( - 39 ) * - 90 THEN NULL ELSE + - 97 END
----
-97

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL CASE 95 WHEN - - 56 THEN + - 99 WHEN CAST ( NULL AS REAL ) + + ( - 39 ) * - 90 THEN NULL ELSE + - 97 END
----
-97

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

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

query I rowsort
SELECT - 79 * - + 69 AS col1
----
5451

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-548
SELECT - 90 + + 73, CAST( NULL AS SIGNED ) AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-548
SELECT - 90 + + 73, CAST ( NULL AS INTEGER ) AS col0
----
-17
NULL

query I rowsort
SELECT - 49 * - - 24
----
-1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-550
SELECT + 55 + + 90 + CAST( NULL AS SIGNED ) + - CASE WHEN ( NULL ) <> 84 THEN - + 79 END * - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT + 55 + + 90 + CAST ( NULL AS INTEGER ) + - CASE WHEN ( NULL ) <> 84 THEN - + 79 END * - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-551
SELECT ALL CASE 64 WHEN - + 85 THEN - COUNT( * ) - - COALESCE ( - 82, + + 95, + - 67, 12 - + + 97 * - 90 * - - COUNT( * ) ) + - - 94 ELSE 84 DIV + + ( + ( - COUNT( * ) ) ) END
----
-84

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL CASE 64 WHEN - + 85 THEN - COUNT ( * ) - - COALESCE ( - 82, + + 95, + - 67, 12 - + + 97 * - 90 * - - COUNT ( * ) ) + - - 94 ELSE 84 / + + ( + ( - COUNT ( * ) ) ) END
----
-84

query II rowsort
SELECT DISTINCT - - 40 - - + 57 AS col0, 6
----
97
6

query I rowsort
SELECT ALL + 85 * - - ( + 3 ) AS col2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT - 75 + - ( 14 ) * + + 38 + + COUNT( * )
----
-606

skipif mysql # not compatible
query I rowsort label-554
SELECT - 75 + - ( 14 ) * + + 38 + + COUNT ( * )
----
-606

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT DISTINCT + 57 * 35 DIV - 45
----
-44

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT + 57 * 35 / - 45
----
-44

query II rowsort
SELECT - 45 - 24 AS col0, + 43 AS col1
----
-69
43

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

query I rowsort
SELECT - - 69 * - + 74 * + - 53 col0
----
270618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-559
SELECT ALL 2 / NULLIF ( - ( + CAST( NULL AS SIGNED ) ), - 43 * - - 70 ) + - 94, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-559
SELECT ALL 2 / NULLIF ( - ( + CAST ( NULL AS INTEGER ) ), - 43 * - - 70 ) + - 94, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT + 4 * 39 + + - COALESCE ( + 24, + 56, + 58 )
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-561
SELECT ALL ( + 80 ) / - - 13 * - + CASE WHEN NULL IS NOT NULL THEN - 10 END + + + CAST( + 95 AS SIGNED ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL ( + 80 ) / - - 13 * - + CASE WHEN NULL IS NOT NULL THEN - 10 END + + + CAST ( + 95 AS INTEGER ) + - 20
----
NULL

query II rowsort
SELECT - + 34 * 42 AS col1, 55
----
-1428
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-563
SELECT ALL CAST( NULL AS DECIMAL ) / - COUNT( * ) / + 72 + - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL CAST ( NULL AS REAL ) / - COUNT ( * ) / + 72 + - - 69
----
NULL

query I rowsort
SELECT + 87 * - 9 AS col2
----
-783

query I rowsort
SELECT + 69 + + ( + ( + CASE ( - 62 ) WHEN + - 38 THEN - 73 ELSE NULL END ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT CAST( - - 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-566
SELECT CAST ( - - 31 AS INTEGER )
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-567
SELECT DISTINCT 86 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT 86 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT ALL 71 / + COALESCE ( - COALESCE ( + COUNT( * ), 59 ), + - 97 / - + 23 - - 48 + - 5 ) + 60 + + 28 / - + ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) * 9 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL 71 / + COALESCE ( - COALESCE ( + COUNT ( * ), 59 ), + - 97 / - + 23 - - 48 + - 5 ) + 60 + + 28 / - + ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * 9 + + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT DISTINCT 80 + - SUM( - 75 ) + - CAST( 44 AS SIGNED ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT 80 + - SUM ( - 75 ) + - CAST ( 44 AS INTEGER ) AS col1
----
111

query I rowsort
SELECT ( + - 4 ) * - 92 AS col2
----
368

query II rowsort
SELECT 5 AS col0, 12
----
5
12

query II rowsort
SELECT + 53, 19 AS col0
----
53
19

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT 8 + 27 + + 48 + + 16 + - + 24 * + 36 + - 94 * + - 71 - - 47 + - 2 * 74 * + - 66 * + 55 * COUNT( * )
----
543196

skipif mysql # not compatible
query I rowsort label-573
SELECT 8 + 27 + + 48 + + 16 + - + 24 * + 36 + - 94 * + - 71 - - 47 + - 2 * 74 * + - 66 * + 55 * COUNT ( * )
----
543196

query I rowsort
SELECT 14 * - - 75
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT ALL 73 DIV + - 44 * + 99 DIV - - 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL 73 / + - 44 * + 99 / - - 71 AS col0
----
-1

query I rowsort
SELECT ALL 8 * + - 15
----
-120

query II rowsort
SELECT 93 * - 75 - ( 90 ) AS col1, NULLIF ( 35, 67 + 52 ) + - 13
----
-7065
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-578
SELECT ALL 19 * - COUNT( + - 99 ) * + - COUNT( * ) * - CAST( NULL AS SIGNED ) / 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL 19 * - COUNT ( + - 99 ) * + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT 34 - + MIN( - - 91 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-579
SELECT 34 - + MIN ( - - 91 ) AS col0
----
-57

query II rowsort
SELECT ALL 83 AS col1, - 14 + + 29 AS col1
----
83
15

query II rowsort
SELECT 26 AS col1, + 14
----
26
14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-583
SELECT - 86 DIV - CASE - - 2 WHEN - 92 THEN NULL WHEN - 44 DIV + - 51 + - 31 THEN NULL ELSE + + 64 * - - CAST( - 88 AS SIGNED ) + + 48 + + COUNT( - 33 ) + + + 55 END * - + 78 + + - 11 + + COUNT( * ) DIV - + 30 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-583
SELECT - 86 / - CASE - - 2 WHEN - 92 THEN NULL WHEN - 44 / + - 51 + - 31 THEN NULL ELSE + + 64 * - - CAST ( - 88 AS INTEGER ) + + 48 + + COUNT ( - 33 ) + + + 55 END * - + 78 + + - 11 + + COUNT ( * ) / - + 30 AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-584
SELECT + CAST( NULL AS SIGNED ) * 25 * MIN( ALL - 29 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT + CAST ( NULL AS INTEGER ) * 25 * MIN ( ALL - 29 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT COUNT( * ) + + - 93 col2
----
-92

skipif mysql # not compatible
query I rowsort label-585
SELECT COUNT ( * ) + + - 93 col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT + 99 * + - COALESCE ( + - CASE 48 WHEN CASE + - 42 WHEN + + 67 THEN NULL ELSE COUNT( * ) END * + 71 + CAST( NULL AS SIGNED ) - - 14 THEN - 85 END, - 35 ) AS col1
----
3465

skipif mysql # not compatible
query I rowsort label-586
SELECT + 99 * + - COALESCE ( + - CASE 48 WHEN CASE + - 42 WHEN + + 67 THEN NULL ELSE COUNT ( * ) END * + 71 + CAST ( NULL AS INTEGER ) - - 14 THEN - 85 END, - 35 ) AS col1
----
3465

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT ALL - - 46 + 95 + COUNT( * ) + + 85 * + 62 - - + CASE + 27 WHEN + COUNT( * ) THEN NULL WHEN + - NULLIF ( 25, + 21 - - + 70 ) THEN NULL WHEN + - 87 - CAST( - - 12 AS SIGNED ) THEN + 59 * + - MIN( ALL 68 ) - - CASE WHEN ( + 32 ) IS NULL THEN - CAST( + COALESCE ( 87, 36 + + - 26, - COUNT( * ) / - 69, 15 * AVG ( DISTINCT - 97 ) + 34 ) AS SIGNED ) END + 58 * 32 ELSE NULL END + MIN( + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL - - 46 + 95 + COUNT ( * ) + + 85 * + 62 - - + CASE + 27 WHEN + COUNT ( * ) THEN NULL WHEN + - NULLIF ( 25, + 21 - - + 70 ) THEN NULL WHEN + - 87 - CAST ( - - 12 AS INTEGER ) THEN + 59 * + - MIN ( ALL 68 ) - - CASE WHEN ( + 32 ) IS NULL THEN - CAST ( + COALESCE ( 87, 36 + + - 26, - COUNT ( * ) / - 69, 15 * AVG ( DISTINCT - 97 ) + 34 ) AS INTEGER ) END + 58 * 32 ELSE NULL END + MIN ( + 97 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-589
SELECT DISTINCT COUNT( * ) AS col2, ( 84 ) - - COUNT( * ) - ( + + 83 ) + + 74 DIV 25 * - 40 * - - 32 col1
----
1
-2558

skipif mysql # not compatible
query II rowsort label-589
SELECT DISTINCT COUNT ( * ) AS col2, ( 84 ) - - COUNT ( * ) - ( + + 83 ) + + 74 / 25 * - 40 * - - 32 col1
----
1
-2558

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT + 66 * + 87 * - 28 + ( + 80 ) + MIN( + 95 ) * - + COUNT( * )
----
-160791

skipif mysql # not compatible
query I rowsort label-590
SELECT + 66 * + 87 * - 28 + ( + 80 ) + MIN ( + 95 ) * - + COUNT ( * )
----
-160791

query I rowsort
SELECT ALL + - 50 + - COALESCE ( - 16, + 71 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT - COUNT( ALL + + 27 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-592
SELECT - COUNT ( ALL + + 27 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT + COUNT( * ) + - - 53 + - - NULLIF ( + 86, COUNT( * ) + + 54 + 53 ) + - + 53
----
87

skipif mysql # not compatible
query I rowsort label-593
SELECT + COUNT ( * ) + - - 53 + - - NULLIF ( + 86, COUNT ( * ) + + 54 + 53 ) + - + 53
----
87

query II rowsort
SELECT - - 62, + 46 * - 5 + + 14 * 5 AS col0
----
62
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT ALL + SUM( - 58 ) + - ( + 31 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL + SUM ( - 58 ) + - ( + 31 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + 24 - + 68 + - COUNT( * ) * 40
----
-84

skipif mysql # not compatible
query I rowsort label-596
SELECT + 24 - + 68 + - COUNT ( * ) * 40
----
-84

query I rowsort
SELECT 9 * - + 59 AS col0
----
-531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-598
SELECT ALL 75 + 29 + - ( + 53 ) * - 79 * + + CASE + SUM( ALL 91 ) WHEN + - AVG ( ALL - + 55 ) THEN NULL WHEN + + 55 / 18 + 28 + 96 * + + 21 + 63 THEN CAST( 88 AS SIGNED ) ELSE NULL END * 58 * + MIN( 9 ) + 63 / 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL 75 + 29 + - ( + 53 ) * - 79 * + + CASE + SUM ( ALL 91 ) WHEN + - AVG ( ALL - + 55 ) THEN NULL WHEN + + 55 / 18 + 28 + 96 * + + 21 + 63 THEN CAST ( 88 AS INTEGER ) ELSE NULL END * 58 * + MIN ( 9 ) + 63 / 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT 83 + + - CASE CASE + + 75 WHEN + - 43 / - COALESCE ( + - 51, 39 ) THEN COUNT( * ) + + + 84 WHEN 73 THEN NULL END WHEN 43 THEN + + 12 + ( 6 ) END * 73 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT 83 + + - CASE CASE + + 75 WHEN + - 43 / - COALESCE ( + - 51, 39 ) THEN COUNT ( * ) + + + 84 WHEN 73 THEN NULL END WHEN 43 THEN + + 12 + ( 6 ) END * 73 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT - 4 + - 21 * 30 + - 4 + COUNT( * ) * + 98
----
-540

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT - 4 + - 21 * 30 + - 4 + COUNT ( * ) * + 98
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT COUNT( * ) * + 4 + - - COUNT( * ) - - 46 col2
----
51

skipif mysql # not compatible
query I rowsort label-601
SELECT COUNT ( * ) * + 4 + - - COUNT ( * ) - - 46 col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-602
SELECT 18 + - 77 - - + COUNT( * ) DIV + 3 AS col0, + 57 DIV - - ( 91 )
----
-59
0

skipif mysql # not compatible
query II rowsort label-602
SELECT 18 + - 77 - - + COUNT ( * ) / + 3 AS col0, + 57 / - - ( 91 )
----
-59
0

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

skipif mysql # not compatible
query I rowsort label-603
SELECT 89 / - + COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT COUNT( * ) * + 64 * 86
----
5504

skipif mysql # not compatible
query I rowsort label-604
SELECT COUNT ( * ) * + 64 * 86
----
5504

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL ( + 97 ) * - CASE 58 WHEN - - 60 * - + 41 * COUNT( * ) + - + 54 + + 66 / - 99 / - 6 THEN NULL WHEN 62 * + ( 81 ) + 39 THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL ( + 97 ) * - CASE 58 WHEN - - 60 * - + 41 * COUNT ( * ) + - + 54 + + 66 / - 99 / - 6 THEN NULL WHEN 62 * + ( 81 ) + 39 THEN - - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( + 70 ) * 54 * - 39
----
-147420

query I rowsort
SELECT 60 * + - 30 + + 49
----
-1751

query I rowsort
SELECT ALL - 97 * - - 83 col2
----
-8051

query I rowsort
SELECT DISTINCT 67 * + - 1 AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT MAX( CAST( - + 4 AS SIGNED ) ) * + 45 + + 39
----
-141

skipif mysql # not compatible
query I rowsort label-610
SELECT MAX ( CAST ( - + 4 AS INTEGER ) ) * + 45 + + 39
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-611
SELECT + 9 + COUNT( * ) + 97 / - + CAST( NULL AS SIGNED ) AS col0, + 92 * - CAST( - 72 AS SIGNED ) + - - CAST( NULL AS SIGNED ) * - 35 * + - 30 * + - 50 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-611
SELECT + 9 + COUNT ( * ) + 97 / - + CAST ( NULL AS INTEGER ) AS col0, + 92 * - CAST ( - 72 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) * - 35 * + - 30 * + - 50 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT + CASE 23 WHEN - CAST( NULL AS SIGNED ) * 25 THEN NULL WHEN 30 * COUNT( * ) THEN + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT + CASE 23 WHEN - CAST ( NULL AS INTEGER ) * 25 THEN NULL WHEN 30 * COUNT ( * ) THEN + 6 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT - 23 + COUNT( ALL + - 48 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-614
SELECT - 23 + COUNT ( ALL + - 48 ) AS col1
----
-22

query I rowsort
SELECT DISTINCT - 75 + 80 * 39 * + 61 AS col1
----
190245

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

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

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

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + NULLIF ( + 7, COUNT ( * ) ) col2
----
7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-619
SELECT DISTINCT 38 + 57, COUNT( * ) AS col2
----
95
1

skipif mysql # not compatible
query II rowsort label-619
SELECT DISTINCT 38 + 57, COUNT ( * ) AS col2
----
95
1

query I rowsort
SELECT 98 * - 16 AS col2
----
-1568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-621
SELECT 28 + - 62 DIV COUNT( * ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-621
SELECT 28 + - 62 / COUNT ( * ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT + ( - 15 ) * - - MIN( - 79 ) * ( + 34 )
----
40290

skipif mysql # not compatible
query I rowsort label-622
SELECT + ( - 15 ) * - - MIN ( - 79 ) * ( + 34 )
----
40290

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

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

query I rowsort
SELECT + 13 * - 87 AS col2
----
-1131

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT ALL + NULLIF ( 85, + 39 ) DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL + NULLIF ( 85, + 39 ) / - 70
----
-1

query I rowsort
SELECT - 22 + - - NULLIF ( ( + - 86 ), 29 ) AS col2
----
-108

query II rowsort
SELECT DISTINCT + - 93 * + 30 AS col1, 95 + + 40 - - + 69 * + 62 * + + 60
----
-2790
256815

query I rowsort
SELECT ALL - 91 + 68 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT 89 * + CAST( NULL AS SIGNED ) * + + CASE + 17 WHEN + 85 + + + 87 * + 71 THEN + MAX( + 67 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT 89 * + CAST ( NULL AS INTEGER ) * + + CASE + 17 WHEN + 85 + + + 87 * + 71 THEN + MAX ( + 67 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 21 * + 18
----
-378

query II rowsort
SELECT + 80 AS col1, - 5 + - 43 AS col0
----
80
-48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-633
SELECT COALESCE ( - + 44, - + 52 + - + CAST( - 93 AS SIGNED ) * + MIN( - 5 ) + + - 70 + + 51, 91 DIV + 58 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-633
SELECT COALESCE ( - + 44, - + 52 + - + CAST ( - 93 AS INTEGER ) * + MIN ( - 5 ) + + - 70 + + 51, 91 / + 58 ) AS col0
----
-44

query I rowsort
SELECT NULLIF ( + 53, + - ( + 9 ) )
----
53

query I rowsort
SELECT + 80 * - 93
----
-7440

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-637
SELECT COALESCE ( - COUNT( * ), 21 * - + 95 DIV - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-637
SELECT COALESCE ( - COUNT ( * ), 21 * - + 95 / - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT COALESCE ( 34, - + 38 DIV COUNT( * ) * + 67 + - NULLIF ( + 43, 83 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-638
SELECT COALESCE ( 34, - + 38 / COUNT ( * ) * + 67 + - NULLIF ( + 43, 83 ) ) AS col1
----
34

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-641
SELECT ALL + MIN( DISTINCT ( - 81 ) ) AS col0, 58
----
-81
58

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL + MIN ( DISTINCT ( - 81 ) ) AS col0, 58
----
-81
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT DISTINCT 73 * ( + + 72 ) * + 68 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT 73 * ( + + 72 ) * + 68 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT + CASE - COUNT( * ) WHEN - + 28 + - 91 THEN NULL WHEN + 17 THEN 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - + 28 + - 91 THEN NULL WHEN + 17 THEN 39 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-644
SELECT + COUNT ( * ) / + 94 * 92 * + ( - - 14 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT DISTINCT + 20 DIV 13 col2
----
1

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT + 20 / 13 col2
----
1

query I rowsort
SELECT ALL 38 * 55 + - 40 - - 67 + 92 + - + 19 AS col1
----
2190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-647
SELECT - COUNT( * ) DIV - ( - 67 ) + + + SUM( ALL + 96 ) + 39 + + 72 + + 59 * 70 * + NULLIF ( 26, - + 14 ) AS col1
----
107587

skipif mysql # not compatible
query I rowsort label-647
SELECT - COUNT ( * ) / - ( - 67 ) + + + SUM ( ALL + 96 ) + 39 + + 72 + + 59 * 70 * + NULLIF ( 26, - + 14 ) AS col1
----
107587

onlyif mysql # aggregate syntax: 
query II rowsort label-648
SELECT ALL - - CASE - ( 93 ) WHEN 12 + - + 82 + 89 THEN NULL WHEN + + 23 THEN NULL ELSE + 27 + - COUNT( * ) END + - + 77, - 68 AS col0
----
-51
-68

skipif mysql # not compatible
query II rowsort label-648
SELECT ALL - - CASE - ( 93 ) WHEN 12 + - + 82 + 89 THEN NULL WHEN + + 23 THEN NULL ELSE + 27 + - COUNT ( * ) END + - + 77, - 68 AS col0
----
-51
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT COALESCE ( + + 53, + 12 DIV COALESCE ( + - 99, + COALESCE ( + - 65, + 79 + 98, 89 ) * + + 10 ), - - COUNT( * ) - - 24 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-649
SELECT COALESCE ( + + 53, + 12 / COALESCE ( + - 99, + COALESCE ( + - 65, + 79 + 98, 89 ) * + + 10 ), - - COUNT ( * ) - - 24 ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-650
SELECT ALL 65 + 55 DIV + 66 + - 51 + 7 - + NULLIF ( - - 58, + SUM( + - 57 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL 65 + 55 / + 66 + - 51 + 7 - + NULLIF ( - - 58, + SUM ( + - 57 ) )
----
-37

query I rowsort
SELECT - 0 * - 67 - 72 AS col2
----
-72

query I rowsort
SELECT DISTINCT - 85 + + - 60 AS col2
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-653
SELECT ALL COUNT( * ) + - NULLIF ( + ( - - NULLIF ( + + 14, + 29 ) ), 95 + - - COUNT( * ) + 95 * - 74 ) + + 99 - ( 50 ) + + - CAST( + ( - 62 ) AS SIGNED ) AS col2, + NULLIF ( - 72, + 12 * 81 ) + - ( + 81 )
----
98
-153

skipif mysql # not compatible
query II rowsort label-653
SELECT ALL COUNT ( * ) + - NULLIF ( + ( - - NULLIF ( + + 14, + 29 ) ), 95 + - - COUNT ( * ) + 95 * - 74 ) + + 99 - ( 50 ) + + - CAST ( + ( - 62 ) AS INTEGER ) AS col2, + NULLIF ( - 72, + 12 * 81 ) + - ( + 81 )
----
98
-153

query I rowsort
SELECT ALL - 52 + + - 9
----
-61

query I rowsort
SELECT + + 72 + - 52
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-656
SELECT ALL - 33 AS col0, + ( - 21 ) * - + 8 - - 61 * COUNT( * ) AS col0
----
-33
229

skipif mysql # not compatible
query II rowsort label-656
SELECT ALL - 33 AS col0, + ( - 21 ) * - + 8 - - 61 * COUNT ( * ) AS col0
----
-33
229

query I rowsort
SELECT ALL 11 + + 52
----
63

query I rowsort
SELECT ALL + 69 - + - 65 * + + 12 col1
----
849

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT + + COUNT( ALL + + 9 ) - + 97
----
-96

skipif mysql # not compatible
query I rowsort label-659
SELECT + + COUNT ( ALL + + 9 ) - + 97
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT DISTINCT + SUM( - + 13 ) * 6
----
-78

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + SUM ( - + 13 ) * 6
----
-78

query I rowsort
SELECT + 93 * 54 col1
----
5022

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT ALL CASE ( + 55 ) WHEN + - 78 / - 15 + 14 THEN - 51 * - COUNT( * ) WHEN - - 88 * 93 * + 13 THEN 47 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL CASE ( + 55 ) WHEN + - 78 / - 15 + 14 THEN - 51 * - COUNT ( * ) WHEN - - 88 * 93 * + 13 THEN 47 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL COUNT( * ) - - 93 * + 9 AS col0
----
838

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL COUNT ( * ) - - 93 * + 9 AS col0
----
838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT + ( - COALESCE ( + COUNT( * ), + 18, - MIN( + - 11 ) - - 52 ) ) DIV COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-665
SELECT + ( - COALESCE ( + COUNT ( * ), + 18, - MIN ( + - 11 ) - - 52 ) ) / COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT - 80 - + 84 AS col2, ( - COALESCE ( - 31, 17 * - 69 * 30 ) ) AS col0
----
-164
31

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

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

query I rowsort
SELECT - 27 + 71 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT ALL + MIN( - + 95 ) * - COUNT( * ) + + - MIN( + CASE - 54 WHEN + + 21 + - 84 THEN - - 1 ELSE NULL END ) + CAST( NULL AS SIGNED ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + MIN ( - + 95 ) * - COUNT ( * ) + + - MIN ( + CASE - 54 WHEN + + 21 + - 84 THEN - - 1 ELSE NULL END ) + CAST ( NULL AS INTEGER ) * 80
----
NULL

query I rowsort
SELECT - 44 + + + 78 * + 47
----
3622

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT 97 * + 46 + + 24 - - 34 + - 0 * 92 * - CASE + MIN( 30 ) WHEN 86 THEN + CASE - - 43 WHEN - 7 THEN - - COUNT( * ) * + 90 + + - 82 END * 27 + + - 69 + + ( - 92 ) WHEN ( - ( - - 95 ) ) * 82 + + 82 THEN + + ( + ( - 86 ) ) END + - MAX( DISTINCT + 31 ) * 0 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT 97 * + 46 + + 24 - - 34 + - 0 * 92 * - CASE + MIN ( 30 ) WHEN 86 THEN + CASE - - 43 WHEN - 7 THEN - - COUNT ( * ) * + 90 + + - 82 END * 27 + + - 69 + + ( - 92 ) WHEN ( - ( - - 95 ) ) * 82 + + 82 THEN + + ( + ( - 86 ) ) END + - MAX ( DISTINCT + 31 ) * 0 + + 92
----
NULL

query I rowsort
SELECT ALL - 24 * 53
----
-1272

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT ALL + 7 col0, ( - NULLIF ( ( + + 26 ), - ( - CASE + - 26 WHEN - + 65 THEN NULL WHEN - + ( - 70 ) + + 53 THEN + COUNT( * ) WHEN 72 THEN NULL ELSE - + 94 + ( + - 1 ) END ) ) ) * - COUNT( * ) - + 78 * + 27 + + 99
----
7
-1981

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL + 7 col0, ( - NULLIF ( ( + + 26 ), - ( - CASE + - 26 WHEN - + 65 THEN NULL WHEN - + ( - 70 ) + + 53 THEN + COUNT ( * ) WHEN 72 THEN NULL ELSE - + 94 + ( + - 1 ) END ) ) ) * - COUNT ( * ) - + 78 * + 27 + + 99
----
7
-1981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT + 67 * + CAST( COALESCE ( - 42, - 37 * + SUM( ALL - 29 ) / + ( 42 ), 45 ) AS SIGNED ) AS col0
----
-2814

skipif mysql # not compatible
query I rowsort label-674
SELECT + 67 * + CAST ( COALESCE ( - 42, - 37 * + SUM ( ALL - 29 ) / + ( 42 ), 45 ) AS INTEGER ) AS col0
----
-2814

query I rowsort
SELECT ALL + 1 * + 33 + - - 21 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT - 66 + + - 63 + CAST( + 18 AS SIGNED ) + + CASE - 59 WHEN + 74 * 7 * NULLIF ( - MAX( + 73 ), + MIN( + 92 ) ) + 19 + - 73 + COUNT( * ) + - COUNT( * ) * + 57 * - 94 * - COUNT( * ) / + COUNT( * ) THEN - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-676
SELECT - 66 + + - 63 + CAST ( + 18 AS INTEGER ) + + CASE - 59 WHEN + 74 * 7 * NULLIF ( - MAX ( + 73 ), + MIN ( + 92 ) ) + 19 + - 73 + COUNT ( * ) + - COUNT ( * ) * + 57 * - 94 * - COUNT ( * ) / + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-677
SELECT ALL - + 44 * - CAST( NULL AS SIGNED ) * + - 15 + + - NULLIF ( 50, + 16 * - - 21 ) * - 1 / - 87 + + + 87 - + 24 * ( + - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL - + 44 * - CAST ( NULL AS INTEGER ) * + - 15 + + - NULLIF ( 50, + 16 * - - 21 ) * - 1 / - 87 + + + 87 - + 24 * ( + - 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT - 14 * 7 + 29 * + COUNT( 45 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT - 14 * 7 + 29 * + COUNT ( 45 ) col0
----
-69

query I rowsort
SELECT ALL + - 46 * 39 + - 43 col1
----
-1837

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-681
SELECT ALL CASE - - MIN( ALL - 86 ) WHEN 83 * - + 42 * COUNT( * ) * - - CAST( NULL AS SIGNED ) * - 70 THEN - + ( + + ( + 26 ) ) * ( - + 25 ) ELSE - 40 END * - 17 + - 67 AS col2
----
613

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL CASE - - MIN ( ALL - 86 ) WHEN 83 * - + 42 * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - 70 THEN - + ( + + ( + 26 ) ) * ( - + 25 ) ELSE - 40 END * - 17 + - 67 AS col2
----
613

query II rowsort
SELECT 69 col2, ( 60 ) AS col2
----
69
60

query II rowsort
SELECT - 31 AS col1, - 78
----
-31
-78

query I rowsort
SELECT ALL 76 * - 52 + + 77 + + 98 * + - 31 + - ( + 40 ) AS col2
----
-6953

query I rowsort
SELECT + 68 * + + 37 * - + 12 * - + 32
----
966144

query I rowsort
SELECT - - 59 + - 51 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-687
SELECT ALL - 78 col2, COALESCE ( ( 64 ), + 24 * + CAST( NULL AS SIGNED ) + - + 52 * - 35 ) AS col2
----
-78
64

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL - 78 col2, COALESCE ( ( 64 ), + 24 * + CAST ( NULL AS INTEGER ) + - + 52 * - 35 ) AS col2
----
-78
64

query I rowsort
SELECT ALL + + 72 * 94
----
6768

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT DISTINCT - MAX( ALL - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT - MAX ( ALL - 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT ALL 27 AS col2, - COUNT( * ) + - 17
----
27
-18

skipif mysql # not compatible
query II rowsort label-690
SELECT ALL 27 AS col2, - COUNT ( * ) + - 17
----
27
-18

query I rowsort
SELECT - 71 + 33 AS col1
----
-38

query II rowsort
SELECT 34 + + 21 AS col0, 59
----
55
59

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL ( + COUNT( * ) ) * + 20 + - 43 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL ( + COUNT ( * ) ) * + 20 + - 43 AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT ( NULLIF ( + - ( + 52 ), 18 ) ) DIV 9 + 93 * 77 AS col1
----
7156

skipif mysql # not compatible
query I rowsort label-694
SELECT ( NULLIF ( + - ( + 52 ), 18 ) ) / 9 + 93 * 77 AS col1
----
7156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-695
SELECT DISTINCT - NULLIF ( - 28, + NULLIF ( + 51, + 81 * + 55 ) * 86 * + CAST( - - ( - 29 ) AS SIGNED ) - - - ( + 20 ) ) AS col0, + 79 * 73 AS col2
----
28
5767

skipif mysql # not compatible
query II rowsort label-695
SELECT DISTINCT - NULLIF ( - 28, + NULLIF ( + 51, + 81 * + 55 ) * 86 * + CAST ( - - ( - 29 ) AS INTEGER ) - - - ( + 20 ) ) AS col0, + 79 * 73 AS col2
----
28
5767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-696
SELECT ALL COUNT( * ) + + 32 + 74 - - + 9 DIV + - 48 * + ( - 75 ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL COUNT ( * ) + + 32 + 74 - - + 9 / + - 48 * + ( - 75 ) AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-697
SELECT DISTINCT CAST( 19 AS SIGNED ) * - ( - 33 ) + 27, - COALESCE ( 87, 79 + + 24 + - + 97 + 35 * + - 12, + - 67 ) * + MAX( ALL + 8 ) * 58 AS col0
----
654
-40368

skipif mysql # not compatible
query II rowsort label-697
SELECT DISTINCT CAST ( 19 AS INTEGER ) * - ( - 33 ) + 27, - COALESCE ( 87, 79 + + 24 + - + 97 + 35 * + - 12, + - 67 ) * + MAX ( ALL + 8 ) * 58 AS col0
----
654
-40368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-698
SELECT ( SUM( - - 98 ) ) DIV - + 79
----
-1

skipif mysql # not compatible
query I rowsort label-698
SELECT ( SUM ( - - 98 ) ) / - + 79
----
-1

query I rowsort
SELECT 62 * 68 AS col0
----
4216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-700
SELECT ALL CASE + COUNT( * ) WHEN - 69 * - CAST( NULL AS SIGNED ) THEN NULL ELSE 50 + + COUNT( * ) END + + + 47 + - 25 + - + 1
----
72

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL CASE + COUNT ( * ) WHEN - 69 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE 50 + + COUNT ( * ) END + + + 47 + - 25 + - + 1
----
72

query I rowsort
SELECT ALL - 75 + - - 12
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT 42 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT 42 / - 77
----
0

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

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

query I rowsort
SELECT ALL + 46 + + + 84
----
130

query II rowsort
SELECT + ( - + 81 ) AS col0, - 16 + - - 65 * + 30 AS col2
----
-81
1934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT ALL + + 91 * - - 95 + - 7 DIV - + 94 + SUM( ALL 0 ) * + - 70 DIV 19 + + 74 col1
----
8719

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + + 91 * - - 95 + - 7 / - + 94 + SUM ( ALL 0 ) * + - 70 / 19 + + 74 col1
----
8719

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT - + COUNT( * ) * + 46 * + 26 + ( + SUM( + 24 ) ) * - 33 AS col0
----
-1988

skipif mysql # not compatible
query I rowsort label-707
SELECT - + COUNT ( * ) * + 46 * + 26 + ( + SUM ( + 24 ) ) * - 33 AS col0
----
-1988

query II rowsort
SELECT 3 * + 89 AS col2, 46 - + 98 AS col2
----
267
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL + - 24 + COUNT( * ) * + - 86
----
-110

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + - 24 + COUNT ( * ) * + - 86
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-710
SELECT DISTINCT - CAST( 86 AS SIGNED ), - 6 - + 52 + - + 58 + - + ( 90 ) col2
----
-86
-206

skipif mysql # not compatible
query II rowsort label-710
SELECT DISTINCT - CAST ( 86 AS INTEGER ), - 6 - + 52 + - + 58 + - + ( 90 ) col2
----
-86
-206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT COUNT( - 17 ) + + - 15 / - CAST( NULL AS SIGNED ) + - AVG ( 0 ) + + + 3 * + 96 / - CAST( NULL AS SIGNED ) + COUNT( * ) * 51 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-711
SELECT COUNT ( - 17 ) + + - 15 / - CAST ( NULL AS INTEGER ) + - AVG ( 0 ) + + + 3 * + 96 / - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 51 * COUNT ( * ) col2
----
NULL

query II rowsort
SELECT DISTINCT + 2 - - - 32 - + - 69 + + - NULLIF ( + 44, + 18 ) * - + 48 * - ( + - 69 ) - + COALESCE ( + 42, + 6 ) col0, 46 * + 11 * 16 AS col2
----
145725
8096

query I rowsort
SELECT DISTINCT CASE WHEN NOT - 90 IS NOT NULL THEN + 49 * + + 49 END * + 58 + 11 + + 28 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL + + COALESCE ( COUNT( * ), + + ( + 47 ) ) - - 76
----
77

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + + COALESCE ( COUNT ( * ), + + ( + 47 ) ) - - 76
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-715
SELECT 6 * 81 * + - 20 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT 6 * 81 * + - 20 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 85 * - - ( + 76 ) * - 56 * - 24 AS col1
----
8682240

query I rowsort
SELECT - 69 * - 96 + + 94 * - 82
----
-1084

query I rowsort
SELECT 92 * - 80 col1
----
-7360

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT 37 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-719
SELECT 37 / - 70
----
0

query I rowsort
SELECT 8 * + 48 AS col0
----
384

query II rowsort
SELECT ALL 24 col0, 61
----
24
61

onlyif mysql # aggregate syntax: 
query II rowsort label-722
SELECT ALL ( + COUNT( * ) ) * + 14, 32 * COALESCE ( + CASE + 10 WHEN + - ( - 79 ) * - 21 * - COUNT( * ) THEN 54 + + 24 + - COUNT( * ) * 65 - + 68 ELSE NULL END, - 63 ) AS col1
----
14
-2016

skipif mysql # not compatible
query II rowsort label-722
SELECT ALL ( + COUNT ( * ) ) * + 14, 32 * COALESCE ( + CASE + 10 WHEN + - ( - 79 ) * - 21 * - COUNT ( * ) THEN 54 + + 24 + - COUNT ( * ) * 65 - + 68 ELSE NULL END, - 63 ) AS col1
----
14
-2016

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

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

query I rowsort
SELECT 33 - 75
----
-42

query I rowsort
SELECT 8 + + 82
----
90

query I rowsort
SELECT COALESCE ( + 5, + 81 * + + 37 ) * - 95
----
-475

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

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

query I rowsort
SELECT 23 + - 58 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-729
SELECT DISTINCT 47 col2, 49 + + + 38 - + COUNT( * ) + 87 AS col2
----
47
173

skipif mysql # not compatible
query II rowsort label-729
SELECT DISTINCT 47 col2, 49 + + + 38 - + COUNT ( * ) + 87 AS col2
----
47
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-730
SELECT ALL + 64 * 10 * - - 94 + + + 86 + - - COALESCE ( - + 23, - ( + + 19 ) * - 87 + - + CAST( NULL AS SIGNED ), - ( + COUNT( * ) ) - - ( + - COALESCE ( 6, MIN( DISTINCT + + 39 ) + + CAST( + 37 AS SIGNED ) ) ) + ( 13 ), 5 )
----
60223

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + 64 * 10 * - - 94 + + + 86 + - - COALESCE ( - + 23, - ( + + 19 ) * - 87 + - + CAST ( NULL AS INTEGER ), - ( + COUNT ( * ) ) - - ( + - COALESCE ( 6, MIN ( DISTINCT + + 39 ) + + CAST ( + 37 AS INTEGER ) ) ) + ( 13 ), 5 )
----
60223

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT COUNT( * ) + - - 59 col1
----
60

skipif mysql # not compatible
query I rowsort label-731
SELECT COUNT ( * ) + - - 59 col1
----
60

query II rowsort
SELECT + 57, 19 AS col1
----
57
19

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT DISTINCT - CASE - ( 71 ) WHEN + + 58 + - 0 + - 75 / + ( - 39 ) - + ( COUNT( * ) ) / 19 - 12 - - COUNT( ALL - NULLIF ( 48, 17 ) ) THEN NULL WHEN + 35 THEN NULL WHEN 12 THEN 9 + + COUNT( - 53 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT - CASE - ( 71 ) WHEN + + 58 + - 0 + - 75 / + ( - 39 ) - + ( COUNT ( * ) ) / 19 - 12 - - COUNT ( ALL - NULLIF ( 48, 17 ) ) THEN NULL WHEN + 35 THEN NULL WHEN 12 THEN 9 + + COUNT ( - 53 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 87 * - - 78 + - 16 * + 18
----
-7074

query I rowsort
SELECT 58 + - 4
----
54

query I rowsort
SELECT + 81 * 22 * 46 + + + 4 - - - ( 3 )
----
81973

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-738
SELECT 20 DIV + - CAST( - 49 AS SIGNED ) + - - 59
----
59

skipif mysql # not compatible
query I rowsort label-738
SELECT 20 / + - CAST ( - 49 AS INTEGER ) + - - 59
----
59

query I rowsort
SELECT ALL 85 * 10 - - - 76 * 56 AS col0
----
-3406

query II rowsort
SELECT 59 * - + 25 + + + 52 col1, 34 + + 90
----
-1423
124

query I rowsort
SELECT + 23 * - 46 AS col0
----
-1058

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT + CASE 96 WHEN - + COUNT( * ) THEN + - 27 * 24 + + 80 - 58 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT + CASE 96 WHEN - + COUNT ( * ) THEN + - 27 * 24 + + 80 - 58 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT + MIN( ALL + 61 ) + - ( - + 32 ) + - 65 * + 74 AS col0
----
-4717

skipif mysql # not compatible
query I rowsort label-744
SELECT + MIN ( ALL + 61 ) + - ( - + 32 ) + - 65 * + 74 AS col0
----
-4717

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT DISTINCT - 15 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT - 15 / 39
----
0

query I rowsort
SELECT + - 7 * + - 63 AS col1
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT DISTINCT - ( COUNT( DISTINCT - 37 ) ) * ( - + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT - ( COUNT ( DISTINCT - 37 ) ) * ( - + 19 ) AS col1
----
19

query I rowsort
SELECT DISTINCT 98 * + - 92 AS col0
----
-9016

query I rowsort
SELECT - 27 * - NULLIF ( - 12, - 61 ) AS col0
----
-324

query I rowsort
SELECT ALL 33 + + - ( - 5 ) AS col2
----
38

query I rowsort
SELECT ALL + 38 + + + 39
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL + 65 + - + ( - COUNT( * ) ) * - SUM( ALL 19 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + 65 + - + ( - COUNT ( * ) ) * - SUM ( ALL 19 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT + 92 DIV + 90 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-753
SELECT + 92 / + 90 AS col2
----
1

query I rowsort
SELECT - 97 + - 4 AS col1
----
-101

query I rowsort
SELECT - 9 * + 92 AS col2
----
-828

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT DISTINCT - 93 DIV - 23
----
4

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - 93 / - 23
----
4

query I rowsort
SELECT ALL + ( 7 ) + 38
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-758
SELECT DISTINCT - ( - 10 ) DIV - + 39 - - 21 col2, 17 AS col0
----
21
17

skipif mysql # not compatible
query II rowsort label-758
SELECT DISTINCT - ( - 10 ) / - + 39 - - 21 col2, 17 AS col0
----
21
17

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL - 3 + + CASE - 73 WHEN - 46 THEN + 61 * - 34 + - + 81 + + - MIN( ALL + 0 ) * + ( - - 29 ) * + 14 * - + 72 + + + NULLIF ( - + CASE CASE + ( - COUNT( * ) ) WHEN - 17 THEN COUNT( * ) WHEN - 88 * CASE + 10 WHEN - - 40 THEN - SUM( DISTINCT 39 ) ELSE NULL END THEN NULL END WHEN - 57 THEN MAX( DISTINCT + 32 ) * - - 89 * MIN( - 72 ) WHEN COUNT( * ) THEN 33 ELSE NULL END, + ( 97 ) ) - + 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL - 3 + + CASE - 73 WHEN - 46 THEN + 61 * - 34 + - + 81 + + - MIN ( ALL + 0 ) * + ( - - 29 ) * + 14 * - + 72 + + + NULLIF ( - + CASE CASE + ( - COUNT ( * ) ) WHEN - 17 THEN COUNT ( * ) WHEN - 88 * CASE + 10 WHEN - - 40 THEN - SUM ( DISTINCT 39 ) ELSE NULL END THEN NULL END WHEN - 57 THEN MAX ( DISTINCT + 32 ) * - - 89 * MIN ( - 72 ) WHEN COUNT ( * ) THEN 33 ELSE NULL END, + ( 97 ) ) - + 30 END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 75 * 75
----
5625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-762
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + + 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - CAST ( NULL AS REAL ) + + + 46 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-763
SELECT - 7 * + 69 / - CASE + CAST( NULL AS SIGNED ) WHEN + 81 THEN NULL WHEN + - 76 * + 9 + AVG ( ALL + ( + - 26 ) ) THEN NULLIF ( + CAST( NULL AS SIGNED ), - + 42 ) + - - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT - 7 * + 69 / - CASE + CAST ( NULL AS INTEGER ) WHEN + 81 THEN NULL WHEN + - 76 * + 9 + AVG ( ALL + ( + - 26 ) ) THEN NULLIF ( + CAST ( NULL AS INTEGER ), - + 42 ) + - - 32 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT ALL 70 DIV + 69 - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL 70 / + 69 - - COUNT ( * )
----
2

query I rowsort
SELECT + CASE - + 50 WHEN + - 28 THEN NULL WHEN - 87 + + 46 + 66 - 62 THEN NULL ELSE 70 END
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT MIN( 92 ) / 86 + - CAST( NULL AS SIGNED ) + + 12 - + ( - 2 ) / 22 / + - 87 + + ( + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT MIN ( 92 ) / 86 + - CAST ( NULL AS INTEGER ) + + 12 - + ( - 2 ) / 22 / + - 87 + + ( + 76 )
----
NULL

query I rowsort
SELECT ALL - 94 * + - 70 + - + 15 + + 30 - + 92
----
6503

query I rowsort
SELECT + ( + + 61 ) * + - 78
----
-4758

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT + 86 * + NULLIF ( - 25, - 32 / - COUNT( * ) ) col0
----
-2150

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + 86 * + NULLIF ( - 25, - 32 / - COUNT ( * ) ) col0
----
-2150

query I rowsort
SELECT + + 47 - 28 col2
----
19

query I rowsort
SELECT ALL + 42 * + 36 * + 96 col2
----
145152

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

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

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

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT NULLIF ( - + 30, - + 68 ) * - COUNT ( * )
----
30

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

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

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

query I rowsort
SELECT + + ( + + 43 ) * 54 + - 27 + + 63
----
2358

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT + SUM( ALL + + 86 ) * - - 30 AS col0
----
2580

skipif mysql # not compatible
query I rowsort label-777
SELECT + SUM ( ALL + + 86 ) * - - 30 AS col0
----
2580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT + - 12 + - + SUM( ALL + NULLIF ( 95, + + 39 - - 21 ) ) + + - 79 + 62 DIV - 62 AS col2
----
-187

skipif mysql # not compatible
query I rowsort label-778
SELECT + - 12 + - + SUM ( ALL + NULLIF ( 95, + + 39 - - 21 ) ) + + - 79 + 62 / - 62 AS col2
----
-187

onlyif mysql # aggregate syntax: 
query II rowsort label-779
SELECT + 86 * 69 * + - COUNT( * ) - - + 43 AS col1, + 33 AS col2
----
-5891
33

skipif mysql # not compatible
query II rowsort label-779
SELECT + 86 * 69 * + - COUNT ( * ) - - + 43 AS col1, + 33 AS col2
----
-5891
33

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-781
SELECT ALL COALESCE ( + + 99, + 31 * - CAST( 58 AS SIGNED ) + - ( COALESCE ( + + SUM( ALL + 13 ), - 95 ) ) - + + 23 + - + 88 * + + 69 ) DIV - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL COALESCE ( + + 99, + 31 * - CAST ( 58 AS INTEGER ) + - ( COALESCE ( + + SUM ( ALL + 13 ), - 95 ) ) - + + 23 + - + 88 * + + 69 ) / - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT SUM( 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-782
SELECT SUM ( 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ALL - 2 * + 66 * - 97 * - - COUNT( * ) + + 6 AS col1
----
12810

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL - 2 * + 66 * - 97 * - - COUNT ( * ) + + 6 AS col1
----
12810

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

query I rowsort
SELECT + 80 + 70 + - 3
----
147

query I rowsort
SELECT ALL 80 + + 59 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + 85 - - MIN( DISTINCT - 59 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-787
SELECT + 85 - - MIN ( DISTINCT - 59 ) col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT - CAST( - - 76 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-788
SELECT - CAST ( - - 76 AS INTEGER ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-789
SELECT DISTINCT + 34 + + NULLIF ( + + 70, - MIN( DISTINCT CAST( + + 58 AS SIGNED ) ) * + 18 * 96 ) + - + 11 + + + COUNT( * ) + 51 col0
----
145

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT + 34 + + NULLIF ( + + 70, - MIN ( DISTINCT CAST ( + + 58 AS INTEGER ) ) * + 18 * 96 ) + - + 11 + + + COUNT ( * ) + 51 col0
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-790
SELECT ALL NULLIF ( - + COUNT( * ), - 55 * - - ( + - 19 ) ) col2, + 41 - + MAX( - 89 ) col0
----
-1
130

skipif mysql # not compatible
query II rowsort label-790
SELECT ALL NULLIF ( - + COUNT ( * ), - 55 * - - ( + - 19 ) ) col2, + 41 - + MAX ( - 89 ) col0
----
-1
130

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

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( * ) + 39 AS col2
----
40

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

query I rowsort
SELECT - ( - - 88 ) - + ( + COALESCE ( + 96, + 82 ) ) AS col2
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT ALL NULLIF ( + 14, - COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL NULLIF ( + 14, - COUNT ( * ) ) AS col1
----
14

query I rowsort
SELECT + 96 + + 25
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT ALL + + ( - - 0 ) DIV - + 90 * + + 3 - + 6 - 4 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + + ( - - 0 ) / - + 90 * + + 3 - + 6 - 4 AS col1
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - 13 * COUNT( * ) - - 16 * - - 49
----
771

skipif mysql # not compatible
query I rowsort label-798
SELECT - 13 * COUNT ( * ) - - 16 * - - 49
----
771

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT - MIN( + 35 ) + - 61
----
-96

skipif mysql # not compatible
query I rowsort label-799
SELECT - MIN ( + 35 ) + - 61
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-800
SELECT ALL + 37 DIV COALESCE ( 99, + - AVG ( - - 52 ) * - 65, SUM( + 58 ) * + 50 ) - - + COUNT( * ) + + 67 - + 14 + + NULLIF ( - - ( + COUNT( * ) ), - - 37 * + NULLIF ( CASE - 99 WHEN + 72 THEN + 46 + + - 2 + - COUNT( * ) END, - 15 * + 71 - + - 96 ) + + 36 ) * - COUNT( * ) * + + 65
----
-11

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + 37 / COALESCE ( 99, + - AVG ( - - 52 ) * - 65, SUM ( + 58 ) * + 50 ) - - + COUNT ( * ) + + 67 - + 14 + + NULLIF ( - - ( + COUNT ( * ) ), - - 37 * + NULLIF ( CASE - 99 WHEN + 72 THEN + 46 + + - 2 + - COUNT ( * ) END, - 15 * + 71 - + - 96 ) + + 36 ) * - COUNT ( * ) * + + 65
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT + 72 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-801
SELECT + 72 / + 92 AS col1
----
0

query I rowsort
SELECT ( - - 35 ) + + + 71 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT 89 DIV + 98 * + ( - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-803
SELECT 89 / + 98 * + ( - 70 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-804
SELECT - 46 DIV + COUNT( * ) + - 27 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-804
SELECT - 46 / + COUNT ( * ) + - 27 AS col0
----
-73

query I rowsort
SELECT - 21 * - 94 AS col1
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT 50 + + 26 + - COUNT( * ) * + 6
----
70

skipif mysql # not compatible
query I rowsort label-806
SELECT 50 + + 26 + - COUNT ( * ) * + 6
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-807
SELECT DISTINCT - NULLIF ( - 31, - + COUNT( * ) - - + COUNT( DISTINCT - - COALESCE ( + ( + - 81 ), 0 ) ) ), - 44 col0
----
31
-44

skipif mysql # not compatible
query II rowsort label-807
SELECT DISTINCT - NULLIF ( - 31, - + COUNT ( * ) - - + COUNT ( DISTINCT - - COALESCE ( + ( + - 81 ), 0 ) ) ), - 44 col0
----
31
-44

query I rowsort
SELECT CASE WHEN NOT ( 84 ) BETWEEN - 57 + - 87 / - 1 AND + - 83 + - 25 THEN - 58 * + 42 - + 76 + - + 97 ELSE - 52 END + + - ( + - 61 ) * + 75
----
1966

query I rowsort
SELECT DISTINCT - 88 + - 25 col2
----
-113

query I rowsort
SELECT + 88 * 86 AS col0
----
7568

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT ALL + COUNT( * ) + 32 + - COUNT( * ) - + + 48
----
-16

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + COUNT ( * ) + 32 + - COUNT ( * ) - + + 48
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL - + SUM( - ( 39 ) ) + + ( - + 0 ) + - + 76
----
-37

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - + SUM ( - ( 39 ) ) + + ( - + 0 ) + - + 76
----
-37

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

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

query II rowsort
SELECT 56 AS col1, + 59 + - 88 AS col0
----
56
-29

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL ( + COUNT( * ) ) * - - 82 col2
----
82

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL ( + COUNT ( * ) ) * - - 82 col2
----
82

query I rowsort
SELECT DISTINCT 74 - + ( 44 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT ALL COUNT( * ) - 15 + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL COUNT ( * ) - 15 + COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-820
SELECT DISTINCT 67 DIV 14 AS col2, - 16 * - 57 * - + COUNT( * )
----
4
-912

skipif mysql # not compatible
query II rowsort label-820
SELECT DISTINCT 67 / 14 AS col2, - 16 * - 57 * - + COUNT ( * )
----
4
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT MAX( 19 ) + - ( - + 40 ) - 60 DIV + 87 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-821
SELECT MAX ( 19 ) + - ( - + 40 ) - 60 / + 87 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-822
SELECT CASE - - 5 WHEN + 70 * - 91 - + COUNT( + + 33 ) * + - COALESCE ( - 53, + + MAX( DISTINCT + 50 ), - 23 / + 51 - + 27 ) * 2 + - CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN 28 ELSE - + 31 END - 47 + - 26 + ( + + 81 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-822
SELECT CASE - - 5 WHEN + 70 * - 91 - + COUNT ( + + 33 ) * + - COALESCE ( - 53, + + MAX ( DISTINCT + 50 ), - 23 / + 51 - + 27 ) * 2 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN 28 ELSE - + 31 END - 47 + - 26 + ( + + 81 ) AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-823
SELECT - 50, 65 * SUM( 98 ) * + 45 DIV + - 15 + - 60 + - 9 col0
----
-50
-19179

skipif mysql # not compatible
query II rowsort label-823
SELECT - 50, 65 * SUM ( 98 ) * + 45 / + - 15 + - 60 + - 9 col0
----
-50
-19179

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

query II rowsort
SELECT 72, - 91 AS col0
----
72
-91

query I rowsort
SELECT 93 + + - 53 + - - 36 col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT 97 * - COUNT( * ) * 10
----
-970

skipif mysql # not compatible
query I rowsort label-827
SELECT 97 * - COUNT ( * ) * 10
----
-970

onlyif mysql # DIV for integer division: 
query II rowsort label-828
SELECT + 3 + - 81, - 29 + NULLIF ( + 3, 87 ) DIV + + 59 AS col0
----
-78
-29

skipif mysql # not compatible
query II rowsort label-828
SELECT + 3 + - 81, - 29 + NULLIF ( + 3, 87 ) / + + 59 AS col0
----
-78
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL + COUNT( * ) * + 72 + - 2 * - 81 * - + 30 AS col0
----
-4788

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL + COUNT ( * ) * + 72 + - 2 * - 81 * - + 30 AS col0
----
-4788

query I rowsort
SELECT DISTINCT NULLIF ( + 48, + 79 ) * - 10
----
-480

query I rowsort
SELECT + 60 * - 50
----
-3000

query I rowsort
SELECT - 97 * 2 col1
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT SUM( 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-833
SELECT SUM ( 25 ) AS col1
----
25

query I rowsort
SELECT 6 - 34 + - - 58
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-835
SELECT + SUM( + 22 ) - + 75 + + + 4 * + COUNT( * ) DIV + ( - - 76 ) * + 52 + + - 64 - - 57 + 81 * + + 38 AS col0
----
3018

skipif mysql # not compatible
query I rowsort label-835
SELECT + SUM ( + 22 ) - + 75 + + + 4 * + COUNT ( * ) / + ( - - 76 ) * + 52 + + - 64 - - 57 + 81 * + + 38 AS col0
----
3018

query I rowsort
SELECT ALL + - 98 * + 87 AS col2
----
-8526

query I rowsort
SELECT + COALESCE ( - + 98, + + NULLIF ( - 16, - 24 ) ) AS col0
----
-98

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

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - 90 + - - COUNT ( * ) AS col0
----
-89

query I rowsort
SELECT DISTINCT + - 85 + 72 AS col0
----
-13

query I rowsort
SELECT ALL - - 23 + - 99 + + + 82 col2
----
6

query I rowsort
SELECT ALL - 98 * + 79
----
-7742

query I rowsort
SELECT - 13 - - 11 - 18 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-843
SELECT DISTINCT + 6 + 46 + + 29 * + + 37 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT + 6 + 46 + + 29 * + + 37 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 27 + 33
----
60

query I rowsort
SELECT 36 + - 43 + + 68
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-846
SELECT ALL + 89 - - 5 + + ( + 54 ) * - - COUNT( * ) + + COUNT( * ) - + 8 - - COUNT( * ) * + 69 * + + 24 * - - 49 - - 4 + + - 81 * 55 DIV - 56 + NULLIF ( 41, 43 - + + 12 * - CAST( + + 55 AS DECIMAL ) ) AS col0
----
81409

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + 89 - - 5 + + ( + 54 ) * - - COUNT ( * ) + + COUNT ( * ) - + 8 - - COUNT ( * ) * + 69 * + + 24 * - - 49 - - 4 + + - 81 * 55 / - 56 + NULLIF ( 41, 43 - + + 12 * - CAST ( + + 55 AS REAL ) ) AS col0
----
81409

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL 26 * - MAX( - - 9 )
----
-234

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL 26 * - MAX ( - - 9 )
----
-234

query I rowsort
SELECT DISTINCT + 62 * + 27 * - 94 * 73
----
-11486988

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT 42 * - 73 AS col2, MIN( DISTINCT 78 )
----
-3066
78

skipif mysql # not compatible
query II rowsort label-849
SELECT 42 * - 73 AS col2, MIN ( DISTINCT 78 )
----
-3066
78

query I rowsort
SELECT ALL + 44 * - 66
----
-2904

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT 58 + - - CAST( - - 62 AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-852
SELECT 58 + - - CAST ( - - 62 AS INTEGER )
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-853
SELECT - 49 + + 46 / 13 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-853
SELECT - 49 + + 46 / 13 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 45 * + - ( 8 ) AS col1
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-855
SELECT + CASE + COUNT( * ) WHEN - 88 THEN NULL WHEN - 31 + - SUM( ALL + 74 ) THEN - 23 + - + 87 ELSE NULL END - 41 + + - 65 * + MIN( DISTINCT 83 ) / + CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-855
SELECT + CASE + COUNT ( * ) WHEN - 88 THEN NULL WHEN - 31 + - SUM ( ALL + 74 ) THEN - 23 + - + 87 ELSE NULL END - 41 + + - 65 * + MIN ( DISTINCT 83 ) / + CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT DISTINCT - MAX( DISTINCT + 97 ) * + 89 * - 33
----
284889

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT - MAX ( DISTINCT + 97 ) * + 89 * - 33
----
284889

query I rowsort
SELECT DISTINCT - 87 + + 4
----
-83

query II rowsort
SELECT + - 49 + - 3 AS col1, 45
----
-52
45

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

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

query II rowsort
SELECT + + 74 + + 9 AS col1, ( - 5 )
----
83
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT SUM( 66 ) AS col0, 3
----
66
3

skipif mysql # not compatible
query II rowsort label-861
SELECT SUM ( 66 ) AS col0, 3
----
66
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - 28 * + 82 * + - 69 THEN - + 1 WHEN 24 THEN - COUNT( * ) END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - 28 * + 82 * + - 69 THEN - + 1 WHEN 24 THEN - COUNT ( * ) END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL - ( + + COUNT( * ) ) + + 90 + + 13
----
102

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL - ( + + COUNT ( * ) ) + + 90 + + 13
----
102

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

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

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

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

query I rowsort
SELECT DISTINCT - - 20 * + 83 + + ( - 88 )
----
1572

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT NULLIF ( - + COUNT( * ), ( + 65 ) * - 6 + 97 * + + 3 + + - 76 - + 78 * + + 36 - + + MIN( ALL - 46 ) * 75 ) AS col2, 46 AS col1
----
-1
46

skipif mysql # not compatible
query II rowsort label-867
SELECT NULLIF ( - + COUNT ( * ), ( + 65 ) * - 6 + 97 * + + 3 + + - 76 - + 78 * + + 36 - + + MIN ( ALL - 46 ) * 75 ) AS col2, 46 AS col1
----
-1
46

query I rowsort
SELECT - 10 + + 24 / - CASE - + 93 WHEN + 27 / - + AVG ( DISTINCT - + 46 ) THEN - ( - 16 ) WHEN + 0 THEN NULL END * - 66 * - + 49
----
NULL

query I rowsort
SELECT ALL + + ( - - 1 ) * ( + - 25 ) - + + ( - 71 )
----
46

query I rowsort
SELECT + 45 * 5 * - 92
----
-20700

query I rowsort
SELECT - 51 * + - 35
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + 63 + - - 61 + ( + MAX( + + ( 25 ) ) )
----
149

skipif mysql # not compatible
query I rowsort label-872
SELECT + 63 + - - 61 + ( + MAX ( + + ( 25 ) ) )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL - 82 * - - NULLIF ( + 32, + 71 ) - - - 56 + - COUNT( ALL - 83 )
----
-2681

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - 82 * - - NULLIF ( + 32, + 71 ) - - - 56 + - COUNT ( ALL - 83 )
----
-2681

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + - 66, - 34, - 4 ) col0
----
-66

query II rowsort
SELECT ALL 11 * - 26 - - 10 AS col1, - 61 AS col1
----
-276
-61

query I rowsort
SELECT - 15 * - - 66
----
-990

query I rowsort
SELECT ALL 21 * COALESCE ( + 46, + + 38 ) AS col1
----
966

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-880
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 30 * - + 69
----
NULL
-2070

skipif mysql # not compatible
query II rowsort label-880
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 30 * - + 69
----
NULL
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT - ( COUNT( * ) ) + - + 71 + + - 34 + 61 * + - 72 AS col1
----
-4498

skipif mysql # not compatible
query I rowsort label-881
SELECT - ( COUNT ( * ) ) + - + 71 + + - 34 + 61 * + - 72 AS col1
----
-4498

query II rowsort
SELECT DISTINCT + 76 * + + ( 8 ) AS col1, 91 + + + 25 AS col0
----
608
116

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT - MIN( DISTINCT - 0 ) + - - 6 col0, 95 AS col0
----
6
95

skipif mysql # not compatible
query II rowsort label-883
SELECT - MIN ( DISTINCT - 0 ) + - - 6 col0, 95 AS col0
----
6
95

query I rowsort
SELECT ALL + ( - NULLIF ( + 41, - 40 ) )
----
-41

query I rowsort
SELECT - CASE + - 49 WHEN - - 5 THEN NULL WHEN + + 55 THEN - - 39 * + 77 END * - ( - + 49 )
----
NULL

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

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

query I rowsort
SELECT - 25 * - ( 65 ) AS col1
----
1625

onlyif mysql # aggregate syntax: 
query II rowsort label-888
SELECT DISTINCT NULLIF ( - + COALESCE ( 39, - 73 + 19, - ( 16 ) - + 58, 44 * 12 ), COUNT( * ) ), + 63 AS col1
----
-39
63

skipif mysql # not compatible
query II rowsort label-888
SELECT DISTINCT NULLIF ( - + COALESCE ( 39, - 73 + 19, - ( 16 ) - + 58, 44 * 12 ), COUNT ( * ) ), + 63 AS col1
----
-39
63

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT ALL + 86 + - COUNT( * ) + + + COUNT( ALL - 53 ) + - 14 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + 86 + - COUNT ( * ) + + + COUNT ( ALL - 53 ) + - 14 AS col1
----
72

query I rowsort
SELECT - - 39 + + 10
----
49

query I rowsort
SELECT ALL + 69 + 84 AS col0
----
153

query I rowsort
SELECT ALL - 58 + + 74
----
16

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

query II rowsort
SELECT - 97 AS col1, 75 AS col1
----
-97
75

query I rowsort
SELECT - 18 * 26 AS col1
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT DISTINCT + COUNT( DISTINCT 47 ) + + ( - - CASE 24 WHEN - 11 THEN NULL WHEN + 42 * - 45 - + - 49 - + 0 THEN + 68 END ) + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT + COUNT ( DISTINCT 47 ) + + ( - - CASE 24 WHEN - 11 THEN NULL WHEN + 42 * - 45 - + - 49 - + 0 THEN + 68 END ) + + 52 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 64 * - + 42
----
-2688

query I rowsort
SELECT ALL 84 + - 81 - 24 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + + COUNT( * ) * COUNT( * ) - 84 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-899
SELECT + + COUNT ( * ) * COUNT ( * ) - 84 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-900
SELECT - COUNT( * ), 10 * - 90 + - COUNT( * ) AS col2
----
-1
-901

skipif mysql # not compatible
query II rowsort label-900
SELECT - COUNT ( * ), 10 * - 90 + - COUNT ( * ) AS col2
----
-1
-901

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-901
SELECT DISTINCT ( + CAST( - 25 AS SIGNED ) ) AS col0, + 37 - - ( + - 49 )
----
-25
-12

skipif mysql # not compatible
query II rowsort label-901
SELECT DISTINCT ( + CAST ( - 25 AS INTEGER ) ) AS col0, + 37 - - ( + - 49 )
----
-25
-12

query I rowsort
SELECT - - 93 + + 83 AS col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT + + CASE - - COUNT( DISTINCT - 4 ) WHEN - 10 * - 34 * - 58 * - ( + - ( - - 22 ) ) THEN NULL WHEN + - 29 / - 53 THEN 21 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT + + CASE - - COUNT ( DISTINCT - 4 ) WHEN - 10 * - 34 * - 58 * - ( + - ( - - 22 ) ) THEN NULL WHEN + - 29 / - 53 THEN 21 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + - 4 AS col2, - 96 AS col2
----
-4
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT COUNT( * ) DIV 42 + 39 + + + 86 DIV - 77 + - ( + 92 ) + 42 * + COUNT( * ) - + 68
----
-80

skipif mysql # not compatible
query I rowsort label-905
SELECT COUNT ( * ) / 42 + 39 + + + 86 / - 77 + - ( + 92 ) + 42 * + COUNT ( * ) - + 68
----
-80

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-907
SELECT + ( - CAST( NULL AS DECIMAL ) ) AS col1, 68 + + - 69
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-907
SELECT + ( - CAST ( NULL AS REAL ) ) AS col1, 68 + + - 69
----
NULL
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT ALL 38 DIV 67 * - 78 * - 44 - - 38
----
38

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL 38 / 67 * - 78 * - 44 - - 38
----
38

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

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

query I rowsort
SELECT ALL 80 * - + ( 9 ) * - + 50
----
36000

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT + 73 * - + COUNT( ALL + 70 )
----
-73

skipif mysql # not compatible
query I rowsort label-912
SELECT + 73 * - + COUNT ( ALL + 70 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-913
SELECT DISTINCT - 99 + - + 12 / + 34 * CASE 6 WHEN + 15 THEN - MIN( ALL - 16 ) WHEN - CAST( 66 AS SIGNED ) / - 59 THEN + - 72 WHEN + 13 + COALESCE ( MIN( DISTINCT + 90 ), + - 49 ) - - - 66 - SUM( - 27 ) + 53 + - - 77 * + - COUNT( * ) * + 82 THEN NULL ELSE NULL END + - 91 + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT - 99 + - + 12 / + 34 * CASE 6 WHEN + 15 THEN - MIN ( ALL - 16 ) WHEN - CAST ( 66 AS INTEGER ) / - 59 THEN + - 72 WHEN + 13 + COALESCE ( MIN ( DISTINCT + 90 ), + - 49 ) - - - 66 - SUM ( - 27 ) + 53 + - - 77 * + - COUNT ( * ) * + 82 THEN NULL ELSE NULL END + - 91 + - 37
----
NULL

query I rowsort
SELECT ALL - 81 + - + 71 AS col2
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-915
SELECT ALL - NULLIF ( - - ( - 55 ), + 13 ) * - + 79 * 0 DIV COUNT( + ( - 94 ) )
----
0

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL - NULLIF ( - - ( - 55 ), + 13 ) * - + 79 * 0 / COUNT ( + ( - 94 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT 3 DIV - + COUNT( - 79 )
----
-3

skipif mysql # not compatible
query I rowsort label-916
SELECT 3 / - + COUNT ( - 79 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL + + 67 + 85 + - - 78 - COUNT( * ) * - 45 * - 72
----
-3010

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL + + 67 + 85 + - - 78 - COUNT ( * ) * - 45 * - 72
----
-3010

query I rowsort
SELECT ALL - + 4 * + - COALESCE ( + 5, - 67 ) * 19 AS col2
----
380

query II rowsort
SELECT + 49 * + NULLIF ( + - 84, 68 / - 5 ) * - 18 + - 63, 90 AS col0
----
74025
90

query I rowsort
SELECT - 89 + 15 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT COALESCE ( + 64, - 73 + 49, - 15 * MAX( + - 6 ), 26 )
----
64

skipif mysql # not compatible
query I rowsort label-921
SELECT COALESCE ( + 64, - 73 + 49, - 15 * MAX ( + - 6 ), 26 )
----
64

query I rowsort
SELECT ALL + + 91 + - 49 * + 66
----
-3143

query I rowsort
SELECT 12 + - ( - + 84 ) AS col2
----
96

query I rowsort
SELECT COALESCE ( 24, 73, - 2 + - ( + + 28 ) ) AS col0
----
24

query I rowsort
SELECT - 16 + + 4 * - ( 27 ) AS col0
----
-124

query I rowsort
SELECT + 38 - 61 * 14 AS col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL + 11 - - COUNT( * ) * ( + 94 ) + - + 59
----
46

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + 11 - - COUNT ( * ) * ( + 94 ) + - + 59
----
46

query I rowsort
SELECT 60 + + 43 col1
----
103

query I rowsort
SELECT - 88 * 72 + 26
----
-6310

query I rowsort
SELECT - 32 + + 80 + - - 0 AS col2
----
48

query I rowsort
SELECT 50 - 86 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-932
SELECT - COALESCE ( - ( COUNT( * ) ), - + 84 + + 83, - 42 * + - 78 ) + + ( - COALESCE ( - + 38, - 26, + - COUNT( * ) ) ) AS col0, MIN( DISTINCT + + 88 )
----
39
88

skipif mysql # not compatible
query II rowsort label-932
SELECT - COALESCE ( - ( COUNT ( * ) ), - + 84 + + 83, - 42 * + - 78 ) + + ( - COALESCE ( - + 38, - 26, + - COUNT ( * ) ) ) AS col0, MIN ( DISTINCT + + 88 )
----
39
88

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT DISTINCT 69 DIV 5
----
13

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT 69 / 5
----
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL 3 * - COUNT( * ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL 3 * - COUNT ( * ) col2
----
-3

query I rowsort
SELECT 42 * - 41
----
-1722

query I rowsort
SELECT 78 * + 30 AS col0
----
2340

query I rowsort
SELECT ( - - 38 ) + 26
----
64

query I rowsort
SELECT ALL 68 * - 92 * - + 67
----
419152

query I rowsort
SELECT ALL 26 + + 22 - + 81 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-941
SELECT SUM( 36 ) * + CAST( 74 AS SIGNED ) + - + ( + - 42 )
----
2706

skipif mysql # not compatible
query I rowsort label-941
SELECT SUM ( 36 ) * + CAST ( 74 AS INTEGER ) + - + ( + - 42 )
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT 61 + + ( + COUNT( * ) ) col0
----
62

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT 61 + + ( + COUNT ( * ) ) col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-943
SELECT + 91 AS col2, ( - + SUM( DISTINCT + 81 ) ) AS col0
----
91
-81

skipif mysql # not compatible
query II rowsort label-943
SELECT + 91 AS col2, ( - + SUM ( DISTINCT + 81 ) ) AS col0
----
91
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-944
SELECT ALL 32 + + + 9 DIV - MIN( DISTINCT + 74 ) * 36 + - - 15 * 16 AS col1
----
272

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL 32 + + + 9 / - MIN ( DISTINCT + 74 ) * 36 + - - 15 * 16 AS col1
----
272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL 96 + + COUNT( * ) * + MAX( - + CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT DISTINCT 25 + + NULLIF ( - 37, + CAST( NULL AS SIGNED ) ) - 28 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT 25 + + NULLIF ( - 37, + CAST ( NULL AS INTEGER ) ) - 28 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT 3 + - 1 DIV - + COALESCE ( - 64, 15 ) * 83
----
3

skipif mysql # not compatible
query I rowsort label-947
SELECT 3 + - 1 / - + COALESCE ( - 64, 15 ) * 83
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-948
SELECT - 9 AS col1, - 44 DIV + 59
----
-9
0

skipif mysql # not compatible
query II rowsort label-948
SELECT - 9 AS col1, - 44 / + 59
----
-9
0

query I rowsort
SELECT + COALESCE ( - + 16, - 79, - - 5 )
----
-16

query I rowsort
SELECT 56 * 31 + + 93
----
1829

query I rowsort
SELECT - 61 * + + 4 + - 17 + + 40 * 36 * + - 71 * 48
----
-4907781

query I rowsort
SELECT ALL + 76 - - 32
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL NULLIF ( - COUNT( * ), 74 * + 8 * + 2 + - - 74 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL NULLIF ( - COUNT ( * ), 74 * + 8 * + 2 + - - 74 ) AS col2
----
-1

query I rowsort
SELECT ALL + 26 * - ( 3 )
----
-78

query I rowsort
SELECT - 36 + - - 2
----
-34

query I rowsort
SELECT ALL 6 - 44 AS col2
----
-38

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

skipif mysql # not compatible
query I rowsort label-957
SELECT - CAST ( - 30 AS INTEGER ) * + CAST ( - + 89 AS INTEGER )
----
-2670

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT - 94 * + + COALESCE ( - 74, COALESCE ( + ( 3 ), + - ( 99 ) ) * SUM( - 8 ) * + COUNT( * ) ) AS col1
----
6956

skipif mysql # not compatible
query I rowsort label-958
SELECT - 94 * + + COALESCE ( - 74, COALESCE ( + ( 3 ), + - ( 99 ) ) * SUM ( - 8 ) * + COUNT ( * ) ) AS col1
----
6956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT + 3 / + - 29 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-959
SELECT + 3 / + - 29 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-960
SELECT + MIN( DISTINCT - - CAST( NULL AS DECIMAL ) ) / 25 - - 23 + - + 17 col0, - 59 col1
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-960
SELECT + MIN ( DISTINCT - - CAST ( NULL AS REAL ) ) / 25 - - 23 + - + 17 col0, - 59 col1
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT - COUNT( DISTINCT 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-961
SELECT - COUNT ( DISTINCT 73 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-962
SELECT - + ( CASE 45 WHEN + ( 9 ) * - 41 * - + 56 + - 23 + + - 23 * + - CASE - MAX( ALL - + 71 ) WHEN + COUNT( * ) * 65 THEN 71 ELSE NULL END + + 88 + + - ( - 58 ) + - 87 / - + 93 - + - 61 + + - 31 * 61 / + - 55 THEN CAST( NULL AS DECIMAL ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT - + ( CASE 45 WHEN + ( 9 ) * - 41 * - + 56 + - 23 + + - 23 * + - CASE - MAX ( ALL - + 71 ) WHEN + COUNT ( * ) * 65 THEN 71 ELSE NULL END + + 88 + + - ( - 58 ) + - 87 / - + 93 - + - 61 + + - 31 * 61 / + - 55 THEN CAST ( NULL AS REAL ) END )
----
NULL

query II rowsort
SELECT 22, 86 * + 10 AS col1
----
22
860

onlyif mysql # aggregate syntax: 
query II rowsort label-964
SELECT ALL COUNT( * ) col0, ( + 4 ) * - ( - + 51 ) - - - 67 AS col0
----
1
137

skipif mysql # not compatible
query II rowsort label-964
SELECT ALL COUNT ( * ) col0, ( + 4 ) * - ( - + 51 ) - - - 67 AS col0
----
1
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-965
SELECT 36 + + COUNT( * ) * 11 / + CAST( NULL AS SIGNED ) + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT 36 + + COUNT ( * ) * 11 / + CAST ( NULL AS INTEGER ) + - 47
----
NULL

query I rowsort
SELECT COALESCE ( + - 36, + 22 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT 78 * + + COUNT( - 34 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-967
SELECT 78 * + + COUNT ( - 34 ) col2
----
78

query I rowsort
SELECT DISTINCT 67 * + 42 + - + 51
----
2763

query I rowsort
SELECT + ( + 55 ) * - 44 + - - COALESCE ( + 56, - 68 ) AS col2
----
-2364

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL 42 * + 46 + - COUNT( * )
----
1931

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL 42 * + 46 + - COUNT ( * )
----
1931

onlyif mysql # aggregate syntax: 
query II rowsort label-971
SELECT + COUNT( - 3 ) AS col2, + 90 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-971
SELECT + COUNT ( - 3 ) AS col2, + 90 AS col0
----
1
90

query I rowsort
SELECT NULLIF ( 0, - 27 ) AS col1
----
0

query II rowsort
SELECT + 89 AS col0, + 4 AS col2
----
89
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-974
SELECT ALL - 3 * - + 46 + - CASE + - COALESCE ( - + CASE 26 WHEN - CAST( NULL AS SIGNED ) THEN - 25 ELSE NULL END, + ( + 38 ) ) WHEN - + COUNT( * ) / + + 12 THEN - + 32 WHEN + + COUNT( * ) THEN - 9 * 92 / + 13 * - - COUNT( * ) ELSE + - COUNT( * ) + + - 30 + 66 END + 65 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - 3 * - + 46 + - CASE + - COALESCE ( - + CASE 26 WHEN - CAST ( NULL AS INTEGER ) THEN - 25 ELSE NULL END, + ( + 38 ) ) WHEN - + COUNT ( * ) / + + 12 THEN - + 32 WHEN + + COUNT ( * ) THEN - 9 * 92 / + 13 * - - COUNT ( * ) ELSE + - COUNT ( * ) + + - 30 + 66 END + 65 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 19 * - 68 * 53 * + 45 + - 44 col0
----
-3081464

onlyif mysql # aggregate syntax: 
query II rowsort label-976
SELECT + SUM( + ( - 13 ) ) - 97 AS col1, - 54 * + 68
----
-110
-3672

skipif mysql # not compatible
query II rowsort label-976
SELECT + SUM ( + ( - 13 ) ) - 97 AS col1, - 54 * + 68
----
-110
-3672

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

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

query I rowsort
SELECT + 96 * - - 74
----
7104

query I rowsort
SELECT + 55 - + 58 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT MIN( 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-980
SELECT MIN ( 14 ) AS col1
----
14

query I rowsort
SELECT - - NULLIF ( - 27, 42 * - 18 ) + - 21
----
-48

query I rowsort
SELECT + - 27 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-983
SELECT DISTINCT + 23, - CASE 88 WHEN + 87 THEN NULL WHEN 2 THEN + - 74 WHEN - 82 + 37 + COUNT( * ) + + 39 / + 54 * + - 64 * - COUNT( * ) THEN NULL END AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-983
SELECT DISTINCT + 23, - CASE 88 WHEN + 87 THEN NULL WHEN 2 THEN + - 74 WHEN - 82 + 37 + COUNT ( * ) + + 39 / + 54 * + - 64 * - COUNT ( * ) THEN NULL END AS col0
----
23
NULL

query I rowsort
SELECT ALL + 46 * + 2 + 7 + 41 AS col1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-985
SELECT 97 AS col1, MIN( ALL - 87 ) AS col2
----
97
-87

skipif mysql # not compatible
query II rowsort label-985
SELECT 97 AS col1, MIN ( ALL - 87 ) AS col2
----
97
-87

query I rowsort
SELECT ALL + + 20 * 68 AS col2
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT - 77 - MIN( 47 )
----
-124

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT - 77 - MIN ( 47 )
----
-124

onlyif mysql # DIV for integer division: 
query II rowsort label-988
SELECT + + 87, - 29 DIV 5 + - 99 * + 52 + + - 15 * 78 AS col1
----
87
-6323

skipif mysql # not compatible
query II rowsort label-988
SELECT + + 87, - 29 / 5 + - 99 * + 52 + + - 15 * 78 AS col1
----
87
-6323

onlyif mysql # aggregate syntax: 
query II rowsort label-989
SELECT ALL 60 AS col0, - 96 + - + 64 + + COUNT( * )
----
60
-159

skipif mysql # not compatible
query II rowsort label-989
SELECT ALL 60 AS col0, - 96 + - + 64 + + COUNT ( * )
----
60
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT + COUNT( * ) * + 40 - + 60 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-990
SELECT + COUNT ( * ) * + 40 - + 60 AS col2
----
-20

query II rowsort
SELECT - 64 + + - 86, 20 + - 10 AS col0
----
-150
10

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT + 91 * 19 + - 28 DIV - COALESCE ( + 42, - 79 ) col1
----
1729

skipif mysql # not compatible
query I rowsort label-992
SELECT + 91 * 19 + - 28 / - COALESCE ( + 42, - 79 ) col1
----
1729

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

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

query I rowsort
SELECT + - 14 + - 70
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT DISTINCT 40 DIV 29 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT 40 / 29 AS col2
----
1

query I rowsort
SELECT + - 64 + + 20 * 5 AS col2
----
36

query I rowsort
SELECT DISTINCT + CASE + + 34 WHEN + + 97 - + 80 * - 46 * 51 THEN 50 * + 24 WHEN - + 12 * + 55 THEN - 3 WHEN + 66 THEN + + 65 + + 63 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-998
SELECT - - 82, + COUNT( ALL - 95 ) AS col1
----
82
1

skipif mysql # not compatible
query II rowsort label-998
SELECT - - 82, + COUNT ( ALL - 95 ) AS col1
----
82
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-999
SELECT ALL + CASE 68 WHEN COUNT( * ) THEN + 91 WHEN + ( - COALESCE ( + COUNT( * ), - MIN( DISTINCT 82 ) * - 92, - 22 + + 52 ) ) THEN NULL WHEN + - 95 THEN NULL ELSE NULL END + - COALESCE ( - - AVG ( + ( - 28 ) ), + 64 ) * - + CASE + - 1 WHEN ( - CASE 51 WHEN 31 THEN - + 55 END ) THEN NULL WHEN + 8 * + 10 - + 19 * CAST( - + COUNT( * ) AS SIGNED ) THEN - 55 * + + 64 WHEN - - 33 + + 10 THEN NULL ELSE - 30 * 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL + CASE 68 WHEN COUNT ( * ) THEN + 91 WHEN + ( - COALESCE ( + COUNT ( * ), - MIN ( DISTINCT 82 ) * - 92, - 22 + + 52 ) ) THEN NULL WHEN + - 95 THEN NULL ELSE NULL END + - COALESCE ( - - AVG ( + ( - 28 ) ), + 64 ) * - + CASE + - 1 WHEN ( - CASE 51 WHEN 31 THEN - + 55 END ) THEN NULL WHEN + 8 * + 10 - + 19 * CAST ( - + COUNT ( * ) AS INTEGER ) THEN - 55 * + + 64 WHEN - - 33 + + 10 THEN NULL ELSE - 30 * 69 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT + 50 + 60 * CAST( + 18 AS SIGNED ) * - + 46
----
-49630

skipif mysql # not compatible
query I rowsort label-1000
SELECT + 50 + 60 * CAST ( + 18 AS INTEGER ) * - + 46
----
-49630

query I rowsort
SELECT + 63 * - - 68
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT - 69 + + - ( + 85 ) + COUNT( * )
----
-153

skipif mysql # not compatible
query I rowsort label-1002
SELECT - 69 + + - ( + 85 ) + COUNT ( * )
----
-153

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

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

query I rowsort
SELECT ALL 51 + 13 AS col0
----
64

query I rowsort
SELECT + 33 + + 49
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1006
SELECT - 39 - + 86 DIV 47
----
-40

skipif mysql # not compatible
query I rowsort label-1006
SELECT - 39 - + 86 / 47
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1007
SELECT ALL - 58 DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL - 58 / - 88 AS col1
----
0

query II rowsort
SELECT DISTINCT 56 + 48 col2, 49 AS col2
----
104
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT DISTINCT 75 DIV 24 + - 41
----
-38

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT 75 / 24 + - 41
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT ALL + 75 DIV - 84 + - 67 DIV COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL + 75 / - 84 + - 67 / COUNT ( * )
----
-67

query I rowsort
SELECT + 38 * - - 18 * + 53 + - 51
----
36201

query I rowsort
SELECT ALL + COALESCE ( + 36, 80 - + 26 * - 44 + 77 ) AS col0
----
36

query I rowsort
SELECT - 31 + - - 94
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1014
SELECT ALL - CASE - COUNT( * ) WHEN + 35 * + 11 DIV + - CAST( NULL AS SIGNED ) THEN - + 59 * 39 + + + 77 + - 61 * - ( - - COUNT( ALL + 60 ) ) * - 5 ELSE 97 END DIV COALESCE ( - 58, - + 42 ) + 5 - 56 + 88 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - CASE - COUNT ( * ) WHEN + 35 * + 11 / + - CAST ( NULL AS INTEGER ) THEN - + 59 * 39 + + + 77 + - 61 * - ( - - COUNT ( ALL + 60 ) ) * - 5 ELSE 97 END / COALESCE ( - 58, - + 42 ) + 5 - 56 + 88 AS col2
----
38

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

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

query I rowsort
SELECT - 49 * + + 35
----
-1715

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1017
SELECT - 60 + - COUNT( * ) AS col2, + COUNT( 50 ) * CAST( NULL AS DECIMAL ) * + + 40 * + COUNT( * )
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-1017
SELECT - 60 + - COUNT ( * ) AS col2, + COUNT ( 50 ) * CAST ( NULL AS REAL ) * + + 40 * + COUNT ( * )
----
-61
NULL

query II rowsort
SELECT DISTINCT + 65 * + 21 - 84 col1, 29 AS col0
----
1281
29

query I rowsort
SELECT - 18 * + + 57 * - 36 * + 52 + + 20 AS col2
----
1920692

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL + MAX( DISTINCT - + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + MAX ( DISTINCT - + 79 ) AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1021
SELECT DISTINCT + + CAST( - - 82 AS SIGNED ) AS col2, 84
----
82
84

skipif mysql # not compatible
query II rowsort label-1021
SELECT DISTINCT + + CAST ( - - 82 AS INTEGER ) AS col2, 84
----
82
84

query I rowsort
SELECT - - 79 + - ( + 28 ) * + CASE - 11 WHEN NULLIF ( + ( + 65 ), - + 98 + 5 ) THEN - 93 * + + 4 * - CASE WHEN NOT NULL IS NOT NULL THEN - 40 END * + + 89 * 74 END * 67 + - + 14 * + + 11 * - + 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT - - 52 * + 84 + + + 38 * + - 75 + + - COUNT( DISTINCT + - 38 ) AS col0
----
1517

skipif mysql # not compatible
query I rowsort label-1023
SELECT - - 52 * + 84 + + + 38 * + - 75 + + - COUNT ( DISTINCT + - 38 ) AS col0
----
1517

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

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - - 30 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 85 * - 60 AS col1
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT COUNT( * ) * + - MAX( + - 98 ) + + + 65 + - COUNT( * ) * + 20 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-1026
SELECT COUNT ( * ) * + - MAX ( + - 98 ) + + + 65 + - COUNT ( * ) * + 20 AS col0
----
143

query I rowsort
SELECT DISTINCT 24 * 87 AS col0
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL 28 * - COUNT( * ) * 86 + - MAX( ALL + + 41 ) AS col2
----
-2449

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL 28 * - COUNT ( * ) * 86 + - MAX ( ALL + + 41 ) AS col2
----
-2449

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1029
SELECT DISTINCT - COUNT( * ) * - 95 DIV + + 32, 46 AS col2
----
2
46

skipif mysql # not compatible
query II rowsort label-1029
SELECT DISTINCT - COUNT ( * ) * - 95 / + + 32, 46 AS col2
----
2
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1030
SELECT ALL + 1 * 50 + + - 39 + + ( - 29 ) * + ( - 69 ) + + - COUNT( * ) DIV + + 91 * + 73 + - COUNT( * )
----
2011

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL + 1 * 50 + + - 39 + + ( - 29 ) * + ( - 69 ) + + - COUNT ( * ) / + + 91 * + 73 + - COUNT ( * )
----
2011

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT DISTINCT 13 + - 78 * + - CAST( - 15 AS SIGNED ) AS col1
----
-1157

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT 13 + - 78 * + - CAST ( - 15 AS INTEGER ) AS col1
----
-1157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1033
SELECT ALL 51 + - ( + 33 ) DIV + - MIN( - 59 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL 51 + - ( + 33 ) / + - MIN ( - 59 ) AS col2
----
51

query I rowsort
SELECT 52 * + 10 AS col0
----
520

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT ALL 3 DIV - 4 * 58 * - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL 3 / - 4 * 58 * - 38 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL 15 + 38 - 52 + + COUNT( * ) * + 67 + + + 11 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL 15 + 38 - 52 + + COUNT ( * ) * + 67 + + + 11 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL COUNT( + - 54 ) + + + ( - - COALESCE ( - 5, + + 43 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL COUNT ( + - 54 ) + + + ( - - COALESCE ( - 5, + + 43 ) )
----
-4

query I rowsort
SELECT 96 * + ( + 75 ) * + 7 * - 22
----
-1108800

query I rowsort
SELECT 67 * - 60
----
-4020

query I rowsort
SELECT ALL 37 - - - 32 + + - 64 col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1041
SELECT - ( + 34 ) * + + 17 + + COUNT( * ) + - 92 + + - 1 * + COUNT( * ) * + CAST( - - 49 AS SIGNED ) + - MAX( + - 89 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT - ( + 34 ) * + + 17 + + COUNT ( * ) + - 92 + + - 1 * + COUNT ( * ) * + CAST ( - - 49 AS INTEGER ) + - MAX ( + - 89 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 97 AS col1, 70 + + 63 + + ( + 36 ) AS col0
----
97
169

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT - MAX( DISTINCT - - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT - MAX ( DISTINCT - - 42 )
----
-42

query I rowsort
SELECT DISTINCT 45 - + 85 AS col2
----
-40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT 71 - - 41 * + CAST( NULL AS SIGNED ) AS col1, - 97
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-1046
SELECT 71 - - 41 * + CAST ( NULL AS INTEGER ) AS col1, - 97
----
NULL
-97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1048
SELECT DISTINCT - 36 * + 85 * - 70 * - 38 + CASE - + 36 WHEN - 86 + - + ( - + MIN( - 62 ) ) THEN NULL WHEN 67 THEN NULLIF ( - 64, + 87 ) * MIN( ALL - 79 ) - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT - 36 * + 85 * - 70 * - 38 + CASE - + 36 WHEN - 86 + - + ( - + MIN ( - 62 ) ) THEN NULL WHEN 67 THEN NULLIF ( - 64, + 87 ) * MIN ( ALL - 79 ) - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1049
SELECT + 56 col1, COALESCE ( - - 34, - 46 * MIN( - 63 ), 81, 94 ) DIV + 47
----
56
0

skipif mysql # not compatible
query II rowsort label-1049
SELECT + 56 col1, COALESCE ( - - 34, - 46 * MIN ( - 63 ), 81, 94 ) / + 47
----
56
0

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

query I rowsort
SELECT ALL - + 77 * 40 col1
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL - SUM( + 61 ) + 39
----
-22

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - SUM ( + 61 ) + 39
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1053
SELECT 50 col0, + COUNT( 0 )
----
50
1

skipif mysql # not compatible
query II rowsort label-1053
SELECT 50 col0, + COUNT ( 0 )
----
50
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT ALL + + 65 + CASE + 99 WHEN + + 98 + + NULLIF ( + 69, 94 ) THEN NULL ELSE 19 * - COUNT( * ) + + 18 DIV - - 42 + + + 24 END + 32 + + 6 + + 47 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL + + 65 + CASE + 99 WHEN + + 98 + + NULLIF ( + 69, 94 ) THEN NULL ELSE 19 * - COUNT ( * ) + + 18 / - - 42 + + + 24 END + 32 + + 6 + + 47 AS col2
----
155

query I rowsort
SELECT + 5 - + - 22 AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1056
SELECT + - 19, COUNT( * ) * + COUNT( ALL - 51 ) * 16 AS col2
----
-19
16

skipif mysql # not compatible
query II rowsort label-1056
SELECT + - 19, COUNT ( * ) * + COUNT ( ALL - 51 ) * 16 AS col2
----
-19
16

query II rowsort
SELECT + CASE - 20 WHEN + + 49 THEN 76 END AS col1, 40 AS col1
----
NULL
40

query I rowsort
SELECT ( - + 50 ) + 28 AS col1
----
-22

query II rowsort
SELECT - + 96, + 96 * - 31 AS col2
----
-96
-2976

query I rowsort
SELECT ALL + 51 + 72 col2
----
123

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT 29 + COUNT( * ) * + + ( - 52 ) * + 64 * - 4 - - + 84 DIV 64 * - + 27 AS col2
----
13314

skipif mysql # not compatible
query I rowsort label-1062
SELECT 29 + COUNT ( * ) * + + ( - 52 ) * + 64 * - 4 - - + 84 / 64 * - + 27 AS col2
----
13314

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT DISTINCT + - 60 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT + - 60 / 94
----
0

query I rowsort
SELECT 62 + - 9 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL - COUNT( * ) + 2 + + + 3 * - - 92
----
277

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL - COUNT ( * ) + 2 + + + 3 * - - 92
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL 4 * - COALESCE ( 15, 66 * 49 + + MAX( - ( + - 59 ) ) * - 81 * - 33 ) * - + 66 + - 1 AS col2
----
3959

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL 4 * - COALESCE ( 15, 66 * 49 + + MAX ( - ( + - 59 ) ) * - 81 * - 33 ) * - + 66 + - 1 AS col2
----
3959

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT 71 + 46 AS col1, COUNT( * )
----
117
1

skipif mysql # not compatible
query II rowsort label-1067
SELECT 71 + 46 AS col1, COUNT ( * )
----
117
1

query I rowsort
SELECT ALL + 67 + COALESCE ( - 57, 79 ) - - 86 + + + 45 * 12
----
636

query I rowsort
SELECT 87 + - + ( - ( 58 ) ) + + - 72 col1
----
73

query I rowsort
SELECT ALL - 95 * + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT MAX( - 53 ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT MAX ( - 53 ) col2
----
-53

query II rowsort
SELECT ALL 61 - - - NULLIF ( - 19, 46 ) AS col0, - 4 + 57
----
80
53

query I rowsort
SELECT ( 19 ) + 14
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT COUNT( * ) + 72 + 28 + 44
----
145

skipif mysql # not compatible
query I rowsort label-1074
SELECT COUNT ( * ) + 72 + 28 + 44
----
145

query I rowsort
SELECT ALL - 68 - ( 74 ) * 71 + + 60 col2
----
-5262

query I rowsort
SELECT 2 * 44 AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1077
SELECT DISTINCT COUNT( * ) DIV 21 DIV - 36 * COUNT( DISTINCT + 90 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT COUNT ( * ) / 21 / - 36 * COUNT ( DISTINCT + 90 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT COUNT( * ) * + 41 * + + 52
----
2132

skipif mysql # not compatible
query I rowsort label-1078
SELECT COUNT ( * ) * + 41 * + + 52
----
2132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1079
SELECT COUNT( * ) DIV + 32 * + + 31 * + + 85 * + - CAST( - - 89 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1079
SELECT COUNT ( * ) / + 32 * + + 31 * + + 85 * + - CAST ( - - 89 AS INTEGER )
----
0

query I rowsort
SELECT ALL 61 * - + ( - - 53 )
----
-3233

onlyif mysql # DIV for integer division: 
query I rowsort label-1081
SELECT - 31 DIV - 98 * - 90
----
0

skipif mysql # not compatible
query I rowsort label-1081
SELECT - 31 / - 98 * - 90
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1082
SELECT 16 DIV CAST( + 84 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1082
SELECT 16 / CAST ( + 84 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1083
SELECT DISTINCT - + CAST( - COUNT( * ) AS SIGNED ) AS col1, - 2 + + 49
----
1
47

skipif mysql # not compatible
query II rowsort label-1083
SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - 2 + + 49
----
1
47

query I rowsort
SELECT + 53 + + 36 AS col2
----
89

query I rowsort
SELECT DISTINCT + 65 * - 30 + 92 AS col1
----
-1858

query I rowsort
SELECT ALL 27 * + 68
----
1836

query I rowsort
SELECT DISTINCT + + 13 + + 74 - 88
----
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1089
SELECT ALL + - 62 + - 49 + 21 DIV COUNT( DISTINCT - 44 )
----
-90

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + - 62 + - 49 + 21 / COUNT ( DISTINCT - 44 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT DISTINCT + COUNT( * ) + 97 AS col2, COUNT( * )
----
98
1

skipif mysql # not compatible
query II rowsort label-1090
SELECT DISTINCT + COUNT ( * ) + 97 AS col2, COUNT ( * )
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL 86 + + 93 + + - CASE 36 WHEN 9 + + 12 * AVG ( + 26 ) THEN - COUNT( DISTINCT + + 43 ) - + + 69 ELSE 47 * 98 END AS col2
----
-4427

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 86 + + 93 + + - CASE 36 WHEN 9 + + 12 * AVG ( + 26 ) THEN - COUNT ( DISTINCT + + 43 ) - + + 69 ELSE 47 * 98 END AS col2
----
-4427

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT + + COUNT( * ) * + 96 * - 9 col1
----
-864

skipif mysql # not compatible
query I rowsort label-1093
SELECT + + COUNT ( * ) * + 96 * - 9 col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT - COALESCE ( + 62, - 26 + - 2, - + 70 * - + 44 * - COUNT( * ) + COUNT( DISTINCT - + 5 ) + 33 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1094
SELECT - COALESCE ( + 62, - 26 + - 2, - + 70 * - + 44 * - COUNT ( * ) + COUNT ( DISTINCT - + 5 ) + 33 ) AS col1
----
-62

query I rowsort
SELECT ALL - 99 - 44 * + 71 col0
----
-3223

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL + 72 * + - 79 * + MAX( ALL - 53 ) * COALESCE ( + 71, COUNT( * ) * + 6 ) + - 60 * - - 45
----
21401244

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + 72 * + - 79 * + MAX ( ALL - 53 ) * COALESCE ( + 71, COUNT ( * ) * + 6 ) + - 60 * - - 45
----
21401244

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

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

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

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

query I rowsort
SELECT + 50 * 97
----
4850

query I rowsort
SELECT DISTINCT COALESCE ( 30, + + 5 ) AS col1
----
30

query I rowsort
SELECT ALL + 9 * - 21 * + + 21
----
-3969

onlyif mysql # aggregate syntax: 
query II rowsort label-1102
SELECT DISTINCT COUNT( * ), + 28 - - 82 AS col0
----
1
110

skipif mysql # not compatible
query II rowsort label-1102
SELECT DISTINCT COUNT ( * ), + 28 - - 82 AS col0
----
1
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT + MAX( DISTINCT + 79 ) * 84 * + 56
----
371616

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + MAX ( DISTINCT + 79 ) * 84 * + 56
----
371616

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL COUNT( * ) * 7 * 31 AS col1
----
217

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL COUNT ( * ) * 7 * 31 AS col1
----
217

query I rowsort
SELECT - 14 * + ( 47 ) AS col2
----
-658

query I rowsort
SELECT ALL NULLIF ( + 74, - 16 )
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - CASE COUNT( * ) WHEN 51 + + 42 THEN + + 49 WHEN - 71 THEN + 25 END + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT - CASE COUNT ( * ) WHEN 51 + + 42 THEN + + 49 WHEN - 71 THEN + 25 END + - 7
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT 62 col0, COUNT( ALL - - 23 ) - 24 AS col2
----
62
-23

skipif mysql # not compatible
query II rowsort label-1110
SELECT 62 col0, COUNT ( ALL - - 23 ) - 24 AS col2
----
62
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1111
SELECT + 89 * - + 22 + + + 1 DIV - COALESCE ( 36, CAST( NULL AS SIGNED ) + - 4 )
----
-1958

skipif mysql # not compatible
query I rowsort label-1111
SELECT + 89 * - + 22 + + + 1 / - COALESCE ( 36, CAST ( NULL AS INTEGER ) + - 4 )
----
-1958

query I rowsort
SELECT - - 47 + - + 14 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ALL + CASE + 65 WHEN + 37 - - + 28 + + 31 THEN NULL WHEN - + CASE + - 65 WHEN + - 81 THEN COUNT( * ) END + - + 14 THEN - 54 * + 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL + CASE + 65 WHEN + 37 - - + 28 + + 31 THEN NULL WHEN - + CASE + - 65 WHEN + - 81 THEN COUNT ( * ) END + - + 14 THEN - 54 * + 86 END AS col1
----
NULL

query I rowsort
SELECT - + 31 * + 71 AS col1
----
-2201

query I rowsort
SELECT DISTINCT + 10 * 56 + + 61
----
621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1116
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1, CASE COALESCE ( - - 80, - 35 / + COUNT( * ), - 71, + - 41 ) WHEN 79 THEN - + NULLIF ( 8, - NULLIF ( + - ( + 8 ), 20 ) ) * - CAST( NULL AS SIGNED ) WHEN - 66 THEN NULL ELSE NULL END - + 31, - COUNT( * ) AS col1
----
NULL
NULL
-1

skipif mysql # not compatible
query III rowsort label-1116
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1, CASE COALESCE ( - - 80, - 35 / + COUNT ( * ), - 71, + - 41 ) WHEN 79 THEN - + NULLIF ( 8, - NULLIF ( + - ( + 8 ), 20 ) ) * - CAST ( NULL AS INTEGER ) WHEN - 66 THEN NULL ELSE NULL END - + 31, - COUNT ( * ) AS col1
----
NULL
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT - + 25 * - - COUNT( ALL - 90 ) + + ( + ( + 54 ) ) * + 77
----
4133

skipif mysql # not compatible
query I rowsort label-1117
SELECT - + 25 * - - COUNT ( ALL - 90 ) + + ( + ( + 54 ) ) * + 77
----
4133

query II rowsort
SELECT ALL + ( - + 78 ) * + 38 AS col1, 95 AS col1
----
-2964
95

query I rowsort
SELECT ALL + 60 * - + 83 + - ( + 97 )
----
-5077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1120
SELECT DISTINCT - 53 * + - 54 * - 45 + - MIN( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - 53 * + - 54 * - 45 + - MIN ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 98 * - 89 + 35
----
-8687

query II rowsort
SELECT + + 87 col2, + 85
----
87
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1123
SELECT DISTINCT + + 87 * - COUNT( * ) + 28 - - 42 - + CAST( 51 AS SIGNED ) + + COUNT( * ) DIV 34 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT + + 87 * - COUNT ( * ) + 28 - - 42 - + CAST ( 51 AS INTEGER ) + + COUNT ( * ) / 34 AS col2
----
-68

query I rowsort
SELECT + 5 + 74 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT ALL + 74 * 69 + - 15 DIV + 50
----
5106

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + 74 * 69 + - 15 / + 50
----
5106

query I rowsort
SELECT DISTINCT 79 * + + 96 AS col1
----
7584

query I rowsort
SELECT + - 65 * + 41
----
-2665

query I rowsort
SELECT + - 96 + + 66 col1
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL 5 * - 45 - + SUM( ALL - + 37 )
----
-188

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL 5 * - 45 - + SUM ( ALL - + 37 )
----
-188

query I rowsort
SELECT + 94 * + 4 AS col2
----
376

query II rowsort
SELECT ALL + 49 AS col1, 98
----
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT + MIN( 99 ) + + 66
----
165

skipif mysql # not compatible
query I rowsort label-1133
SELECT + MIN ( 99 ) + + 66
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1134
SELECT ALL ( CASE + CAST( - 95 AS SIGNED ) WHEN + 32 + 26 THEN + 91 WHEN + - 70 THEN + 77 END ) * + 51 - + COUNT( * ) col1, - 78 * + 99
----
NULL
-7722

skipif mysql # not compatible
query II rowsort label-1134
SELECT ALL ( CASE + CAST ( - 95 AS INTEGER ) WHEN + 32 + 26 THEN + 91 WHEN + - 70 THEN + 77 END ) * + 51 - + COUNT ( * ) col1, - 78 * + 99
----
NULL
-7722

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + ( + - 43 ) + - MAX( ALL - 6 ) + - 20
----
-57

skipif mysql # not compatible
query I rowsort label-1135
SELECT + ( + - 43 ) + - MAX ( ALL - 6 ) + - 20
----
-57

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

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

query I rowsort
SELECT ALL COALESCE ( - ( - + 92 ), - 30 * 17 * + + 3 - 92 + ( + 51 ) - 71, - + 88, + 51 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1138
SELECT + 20 + + + COUNT( * ) * + ( - - COUNT( * ) ) AS col0, + 51
----
21
51

skipif mysql # not compatible
query II rowsort label-1138
SELECT + 20 + + + COUNT ( * ) * + ( - - COUNT ( * ) ) AS col0, + 51
----
21
51

query II rowsort
SELECT DISTINCT 85 * + - 77, NULLIF ( - NULLIF ( + 72, - + 87 ), 47 * - 82 ) AS col0
----
-6545
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT - 14 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-1140
SELECT - 14 / - 66
----
0

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

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT COUNT ( * ) * - ( - + 18 ) col2
----
18

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 11, 70 ) * - 2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - MIN( - 16 ) + + - 85
----
-69

skipif mysql # not compatible
query I rowsort label-1144
SELECT - MIN ( - 16 ) + + - 85
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL CASE 52 WHEN - 52 THEN 31 + + SUM( - 85 ) WHEN - 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL CASE 52 WHEN - 52 THEN 31 + + SUM ( - 85 ) WHEN - 88 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1146
SELECT - CAST( + 74 AS SIGNED ), - 35 AS col1
----
-74
-35

skipif mysql # not compatible
query II rowsort label-1146
SELECT - CAST ( + 74 AS INTEGER ), - 35 AS col1
----
-74
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT - 43 + + + 10 * - COUNT( * ) + + 93 col2
----
40

skipif mysql # not compatible
query I rowsort label-1147
SELECT - 43 + + + 10 * - COUNT ( * ) + + 93 col2
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-1148
SELECT 0 AS col0, - 95 DIV + 68 AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-1148
SELECT 0 AS col0, - 95 / + 68 AS col1
----
0
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1149
SELECT - 30 * + ( - MAX( + - 69 ) ) AS col0, + 0
----
-2070
0

skipif mysql # not compatible
query II rowsort label-1149
SELECT - 30 * + ( - MAX ( + - 69 ) ) AS col0, + 0
----
-2070
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL + COUNT( * ) + + 70 - + 4 * + - 3 col2
----
83

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL + COUNT ( * ) + + 70 - + 4 * + - 3 col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1151
SELECT DISTINCT - + 4 DIV - + 63 * COUNT( ALL + 85 ) * + CAST( + 12 AS SIGNED ) + - 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - + 4 / - + 63 * COUNT ( ALL + 85 ) * + CAST ( + 12 AS INTEGER ) + - 25 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1152
SELECT ALL 71 DIV + + COUNT( * ) + + COALESCE ( + 62, - ( - COALESCE ( 37, 32, + 76 DIV - 20 ) ) + + 65, - + 36 * + 16 ) * + MIN( - - 94 ) * - - 98 + - ( 49 ) + - 41 + + 78 AS col0
----
571203

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL 71 / + + COUNT ( * ) + + COALESCE ( + 62, - ( - COALESCE ( 37, 32, + 76 / - 20 ) ) + + 65, - + 36 * + 16 ) * + MIN ( - - 94 ) * - - 98 + - ( 49 ) + - 41 + + 78 AS col0
----
571203

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT 32, - 54 + + + 93 + - - NULLIF ( + + 10, 87 * + COUNT( * ) + - 73 ) AS col1
----
32
49

skipif mysql # not compatible
query II rowsort label-1153
SELECT 32, - 54 + + + 93 + - - NULLIF ( + + 10, 87 * + COUNT ( * ) + - 73 ) AS col1
----
32
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT ALL - 5 DIV - + 47 + + 14 + - 4 DIV - 22 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL - 5 / - + 47 + + 14 + - 4 / - 22 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT DISTINCT - 70 DIV 72 * - 17 * + + 20 + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT - 70 / 72 * - 17 * + + 20 + - 98 AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1156
SELECT DISTINCT - 63 / CAST( 65 AS SIGNED ) - - ( 20 ) * - 80 + - 75 + - CASE - + 57 WHEN + 56 THEN NULL WHEN + - 81 THEN - 46 + + - 28 + NULLIF ( - - 50, + + 64 ) / - 89 WHEN - 21 / + + 52 * + + ( - 90 ) THEN COUNT( - 37 ) * + + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT - 63 / CAST ( 65 AS INTEGER ) - - ( 20 ) * - 80 + - 75 + - CASE - + 57 WHEN + 56 THEN NULL WHEN + - 81 THEN - 46 + + - 28 + NULLIF ( - - 50, + + 64 ) / - 89 WHEN - 21 / + + 52 * + + ( - 90 ) THEN COUNT ( - 37 ) * + + 95 END AS col0
----
NULL

query I rowsort
SELECT + + COALESCE ( + - 27, 13 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT COUNT( * ) * + + ( 38 ) - - 69
----
107

skipif mysql # not compatible
query I rowsort label-1158
SELECT COUNT ( * ) * + + ( 38 ) - - 69
----
107

query II rowsort
SELECT 75 AS col2, 87
----
75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 0 * + 94 * + 40 - - MIN( ALL - + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1160
SELECT 0 * + 94 * + 40 - - MIN ( ALL - + 79 ) AS col1
----
-79

query II rowsort
SELECT ALL - - 25, 57 col0
----
25
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1162
SELECT DISTINCT - - 52 AS col0, - NULLIF ( + 97, + NULLIF ( ( + 70 ), - - 91 + - NULLIF ( - 15, + 78 + - AVG ( DISTINCT ( - COALESCE ( - + 92, 27 ) ) ) + - 13 * + 40 ) ) ) * + + 47 - - - 68 + - - CASE - - CASE 80 WHEN COUNT( * ) THEN + + NULLIF ( 18, + - COUNT( * ) - + COUNT( DISTINCT + 78 ) ) WHEN + 57 THEN NULL END WHEN - SUM( DISTINCT 6 ) - 34 + - - 96 THEN + 51 ELSE NULL END + - + 53 * - COALESCE ( - 98, 29 + + - 81 + - - 52 * + + 85 + + 54 ) + - CAST( NULL AS SIGNED )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1162
SELECT DISTINCT - - 52 AS col0, - NULLIF ( + 97, + NULLIF ( ( + 70 ), - - 91 + - NULLIF ( - 15, + 78 + - AVG ( DISTINCT ( - COALESCE ( - + 92, 27 ) ) ) + - 13 * + 40 ) ) ) * + + 47 - - - 68 + - - CASE - - CASE 80 WHEN COUNT ( * ) THEN + + NULLIF ( 18, + - COUNT ( * ) - + COUNT ( DISTINCT + 78 ) ) WHEN + 57 THEN NULL END WHEN - SUM ( DISTINCT 6 ) - 34 + - - 96 THEN + 51 ELSE NULL END + - + 53 * - COALESCE ( - 98, 29 + + - 81 + - - 52 * + + 85 + + 54 ) + - CAST ( NULL AS INTEGER )
----
52
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1163
SELECT DISTINCT - + 57, 10 + - + 42 - + + CAST( - 67 AS SIGNED ) DIV - - 79 AS col1
----
-57
-32

skipif mysql # not compatible
query II rowsort label-1163
SELECT DISTINCT - + 57, 10 + - + 42 - + + CAST ( - 67 AS INTEGER ) / - - 79 AS col1
----
-57
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1164
SELECT + COUNT( * ) + - 14 * + 52 - 94 DIV + 17 + - 6
----
-738

skipif mysql # not compatible
query I rowsort label-1164
SELECT + COUNT ( * ) + - 14 * + 52 - 94 / + 17 + - 6
----
-738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1165
SELECT ALL 86 DIV MAX( + 97 ) DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL 86 / MAX ( + 97 ) / - 62
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1166
SELECT COALESCE ( + - COUNT( * ), - - 37 ) + 10 + - 8 DIV 28 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1166
SELECT COALESCE ( + - COUNT ( * ), - - 37 ) + 10 + - 8 / 28 AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1167
SELECT 80 DIV 32 * - 17 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1167
SELECT 80 / 32 * - 17 AS col2
----
-34

query I rowsort
SELECT 16 * 75 col0
----
1200

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT ALL 39 * NULLIF ( + 14, ( - 75 ) ) DIV - + 44 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL 39 * NULLIF ( + 14, ( - 75 ) ) / - + 44 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT 36 * - 87 + + - 95 + - 89 + 68 * - 9 * + 46 - - - COUNT( * ) + - 92 - 19 + - + 23 * - 36 AS col0
----
-30752

skipif mysql # not compatible
query I rowsort label-1170
SELECT 36 * - 87 + + - 95 + - 89 + 68 * - 9 * + 46 - - - COUNT ( * ) + - 92 - 19 + - + 23 * - 36 AS col0
----
-30752

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT ALL - COUNT( * ) * + + 33 AS col1, + MAX( - - ( + 39 ) ) - + MAX( ALL + 7 )
----
-33
32

skipif mysql # not compatible
query II rowsort label-1171
SELECT ALL - COUNT ( * ) * + + 33 AS col1, + MAX ( - - ( + 39 ) ) - + MAX ( ALL + 7 )
----
-33
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT DISTINCT COUNT( * ) * + 84 * - 8
----
-672

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT COUNT ( * ) * + 84 * - 8
----
-672

query I rowsort
SELECT ALL 3 * - 34 * + 33 col0
----
-3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT ALL MIN( - - 57 ) + - 54 * - + NULLIF ( ( + CAST( CAST( 90 AS SIGNED ) AS SIGNED ) ), + - 69 ) AS col1
----
4917

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL MIN ( - - 57 ) + - 54 * - + NULLIF ( ( + CAST ( CAST ( 90 AS INTEGER ) AS INTEGER ) ), + - 69 ) AS col1
----
4917

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ( MAX( - 77 ) ) * + + 63
----
-4851

skipif mysql # not compatible
query I rowsort label-1175
SELECT ( MAX ( - 77 ) ) * + + 63
----
-4851

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1176
SELECT DISTINCT CAST( + - 44 AS SIGNED ) + + 96 + - 93 * 15 * - 81 + + - 33 DIV 8
----
113043

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT CAST ( + - 44 AS INTEGER ) + + 96 + - 93 * 15 * - 81 + + - 33 / 8
----
113043

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT 30 * 98 DIV 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1177
SELECT 30 * 98 / 54 AS col0
----
54

query I rowsort
SELECT ALL - 74 * 33 AS col1
----
-2442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT DISTINCT - COUNT( * ) * 9 + - 73 * + CAST( NULL AS SIGNED ) * 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT - COUNT ( * ) * 9 + - 73 * + CAST ( NULL AS INTEGER ) * 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL MIN( + 5 ) + 28 + + 9 * 30 * - - ( COALESCE ( - - 27, ( COUNT( * ) ), 54 ) ) * + ( + + 18 ) + + 8 * - 84
----
130581

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL MIN ( + 5 ) + 28 + + 9 * 30 * - - ( COALESCE ( - - 27, ( COUNT ( * ) ), 54 ) ) * + ( + + 18 ) + + 8 * - 84
----
130581

query I rowsort
SELECT - CASE + ( - 93 ) WHEN 12 THEN - 46 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT ALL 7 + - 36 * 84 DIV 55 - - ( + 2 ) * - + 99 + 41 + - 56 AS col0
----
-260

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL 7 + - 36 * 84 / 55 - - ( + 2 ) * - + 99 + 41 + - 56 AS col0
----
-260

query I rowsort
SELECT DISTINCT 12 + - 47
----
-35

query I rowsort
SELECT ALL - 59 * 75 + - 52
----
-4477

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT + ( COUNT( * ) ) + - 90 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1185
SELECT + ( COUNT ( * ) ) + - 90 AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1186
SELECT CASE - 56 WHEN - 34 THEN NULL ELSE - ( + 35 ) * - COUNT( * ) * - COUNT( * ) * - 19 * + + CAST( NULL AS SIGNED ) * + 40 END col1, + 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1186
SELECT CASE - 56 WHEN - 34 THEN NULL ELSE - ( + 35 ) * - COUNT ( * ) * - COUNT ( * ) * - 19 * + + CAST ( NULL AS INTEGER ) * + 40 END col1, + 67
----
NULL
67

query I rowsort
SELECT 42 + + 51 + 57 AS col2
----
150

query I rowsort
SELECT 73 * + 75 AS col0
----
5475

query I rowsort
SELECT - 83 * - 82
----
6806

query I rowsort
SELECT ALL + + 64 - + - 59 * - 27
----
-1529

query I rowsort
SELECT 19 + - 95
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1192
SELECT + 68 * + + 39 + - ( 78 ) + - + 33 - + + 91 * - 86 * - 30 DIV - COUNT( * ) AS col0
----
237321

skipif mysql # not compatible
query I rowsort label-1192
SELECT + 68 * + + 39 + - ( 78 ) + - + 33 - + + 91 * - 86 * - 30 / - COUNT ( * ) AS col0
----
237321

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL - + SUM( - + 49 ) * + + 68 AS col0
----
3332

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - + SUM ( - + 49 ) * + + 68 AS col0
----
3332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1194
SELECT + CAST( NULL AS SIGNED ) * + NULLIF ( - - 82, + + 36 + - - 87 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT + CAST ( NULL AS INTEGER ) * + NULLIF ( - - 82, + + 36 + - - 87 * - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1195
SELECT ALL - - 34 DIV - - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL - - 34 / - - 62 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1196
SELECT DISTINCT - 10 * 75, + 16 + + CASE + COUNT( * ) WHEN - 12 THEN NULL ELSE - - 75 * - 98 * + - COALESCE ( - 26, 54 ) - + CASE 27 WHEN - 6 THEN + 99 END + 36 + + ( - 5 ) + + 39 + - 4 * - 36 * + - SUM( ALL + + ( + - CAST( NULL AS SIGNED ) ) ) + 95 * + 49 END AS col0
----
-750
NULL

skipif mysql # not compatible
query II rowsort label-1196
SELECT DISTINCT - 10 * 75, + 16 + + CASE + COUNT ( * ) WHEN - 12 THEN NULL ELSE - - 75 * - 98 * + - COALESCE ( - 26, 54 ) - + CASE 27 WHEN - 6 THEN + 99 END + 36 + + ( - 5 ) + + 39 + - 4 * - 36 * + - SUM ( ALL + + ( + - CAST ( NULL AS INTEGER ) ) ) + 95 * + 49 END AS col0
----
-750
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT + - 22 - - COUNT( * ) DIV - COUNT( DISTINCT - + 80 )
----
-23

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1198
SELECT + 90 + 4 AS col0, + COUNT( * ) + + COUNT( * )
----
94
2

skipif mysql # not compatible
query II rowsort label-1198
SELECT + 90 + 4 AS col0, + COUNT ( * ) + + COUNT ( * )
----
94
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ( + COUNT( * ) ) * CASE 73 WHEN - + 12 THEN - 66 * + - ( + 10 ) + + - 35 WHEN - COUNT( * ) THEN - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT ( + COUNT ( * ) ) * CASE 73 WHEN - + 12 THEN - 66 * + - ( + 10 ) + + - 35 WHEN - COUNT ( * ) THEN - 69 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1200
SELECT ALL - CASE + 1 WHEN - - COALESCE ( + CAST( - ( - - 11 ) AS DECIMAL ), - - 61 ) THEN - 39 + + 4 + 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL - CASE + 1 WHEN - - COALESCE ( + CAST ( - ( - - 11 ) AS REAL ), - - 61 ) THEN - 39 + + 4 + 86 END AS col0
----
NULL

query I rowsort
SELECT + 39 * 47 - 89
----
1744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL - 50 * - CAST( - 17 AS SIGNED )
----
-850

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - 50 * - CAST ( - 17 AS INTEGER )
----
-850

query I rowsort
SELECT 96 * - 32 * + 52 col0
----
-159744

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT 15 DIV + + 89 * 12 * + 39 * - 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT 15 / + + 89 * 12 * + 39 * - 15 AS col0
----
0

query II rowsort
SELECT + 78, + 42 AS col1
----
78
42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1207
SELECT ALL - 87 * - ( + + 87 ) AS col2, CASE + ( - 53 ) WHEN CAST( NULL AS SIGNED ) - 14 THEN NULL WHEN + + 86 THEN ( NULLIF ( - + 7, + 81 + CASE + COUNT( * ) WHEN - 36 THEN 82 * + 78 * NULLIF ( - 42, ( - 9 ) * 99 ) + 38 WHEN - 92 * MAX( DISTINCT 33 ) + 71 THEN NULL ELSE + 25 * - - 25 * - + 40 + MAX( DISTINCT - ( + 82 ) ) * + 96 END ) ) / - 24 - + 37 WHEN 49 * - + CAST( NULL AS DECIMAL ) * 71 THEN NULL END
----
7569
NULL

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL - 87 * - ( + + 87 ) AS col2, CASE + ( - 53 ) WHEN CAST ( NULL AS INTEGER ) - 14 THEN NULL WHEN + + 86 THEN ( NULLIF ( - + 7, + 81 + CASE + COUNT ( * ) WHEN - 36 THEN 82 * + 78 * NULLIF ( - 42, ( - 9 ) * 99 ) + 38 WHEN - 92 * MAX ( DISTINCT 33 ) + 71 THEN NULL ELSE + 25 * - - 25 * - + 40 + MAX ( DISTINCT - ( + 82 ) ) * + 96 END ) ) / - 24 - + 37 WHEN 49 * - + CAST ( NULL AS REAL ) * 71 THEN NULL END
----
7569
NULL

query I rowsort
SELECT 41 * 99
----
4059

query I rowsort
SELECT 11 + + 24 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1210
SELECT ALL CAST( NULL AS SIGNED ) + - + 37 * + + NULLIF ( + COUNT( * ), + 0 ) * + + COUNT( * ) - + - ( - 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL CAST ( NULL AS INTEGER ) + - + 37 * + + NULLIF ( + COUNT ( * ), + 0 ) * + + COUNT ( * ) - + - ( - 51 ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 11, - - 58 * 48 + + 63 ) + - - 26
----
37

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

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

query I rowsort
SELECT ALL - ( - 36 ) * - + 24 col0
----
-864

query II rowsort
SELECT ALL 0, 49 AS col1
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT COUNT( * ) + 52 + 45
----
98

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT COUNT ( * ) + 52 + 45
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL + 99 + COALESCE ( + COUNT( ALL - + CASE - ( + ( - + 10 ) ) WHEN - - 9 + - + 98 + + 60 * - 20 THEN - - 26 - - 76 ELSE NULL END ), - 56 )
----
99

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL + 99 + COALESCE ( + COUNT ( ALL - + CASE - ( + ( - + 10 ) ) WHEN - - 9 + - + 98 + + 60 * - 20 THEN - - 26 - - 76 ELSE NULL END ), - 56 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT + COALESCE ( 37, 89, + 7 DIV + 8 ) + + - 0 col0
----
37

skipif mysql # not compatible
query I rowsort label-1217
SELECT + COALESCE ( 37, 89, + 7 / + 8 ) + + - 0 col0
----
37

query II rowsort
SELECT ALL - 6, 87 + + 23 AS col2
----
-6
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1219
SELECT COUNT( * ) col0, - ( 27 ) * - + 50 DIV + COUNT( * ) AS col2
----
1
1350

skipif mysql # not compatible
query II rowsort label-1219
SELECT COUNT ( * ) col0, - ( 27 ) * - + 50 / + COUNT ( * ) AS col2
----
1
1350

query II rowsort
SELECT - - 39 AS col0, - ( 64 ) AS col0
----
39
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT DISTINCT + MAX( DISTINCT - + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + MAX ( DISTINCT - + 28 ) AS col0
----
-28

query II rowsort
SELECT - 21 AS col2, 77
----
-21
77

query I rowsort
SELECT - 71 + - 73
----
-144

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

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

query I rowsort
SELECT ALL + 3 * CASE - + 56 WHEN + - 85 * NULLIF ( + ( 8 ), + 23 * - 14 + 94 ) + 90 + - 56 THEN + 64 ELSE NULL END + - 39
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 53 * + + 58
----
3074

query I rowsort
SELECT + 13 * + 98 col1
----
1274

query I rowsort
SELECT + - 40 + + 50 col2
----
10

query I rowsort
SELECT + 72 * - 87 + 1
----
-6263

query I rowsort
SELECT ALL 91 * + 40 + - 6 col2
----
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL ( - - 14 ) * - 20 * - - SUM( ALL + 51 ) + - 86
----
-14366

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL ( - - 14 ) * - 20 * - - SUM ( ALL + 51 ) + - 86
----
-14366

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL + 74 * - NULLIF ( - 80, - + COUNT( * ) ) + - 96
----
5824

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL + 74 * - NULLIF ( - 80, - + COUNT ( * ) ) + - 96
----
5824

query II rowsort
SELECT + 61 * - 41, 35 AS col2
----
-2501
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT - 67 + COUNT( * ) - 12
----
-78

skipif mysql # not compatible
query I rowsort label-1236
SELECT - 67 + COUNT ( * ) - 12
----
-78

query I rowsort
SELECT - 96 * + 97 - + 95
----
-9407

query I rowsort
SELECT ALL - 97 * + + 40 * - 64 + 13 AS col1
----
248333

query I rowsort
SELECT - 31 * 99 * - - 52 AS col0
----
-159588

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL - COUNT( * ) * - 50 + - 59
----
-9

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL - COUNT ( * ) * - 50 + - 59
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT + COUNT( * ) + + 32 * 52
----
1665

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT + COUNT ( * ) + + 32 * 52
----
1665

query I rowsort
SELECT DISTINCT COALESCE ( + + 60, 32 ) AS col0
----
60

query I rowsort
SELECT ALL 72 - - 98 + - 24 - 74 * + 23 AS col0
----
-1556

query I rowsort
SELECT - - COALESCE ( - 73, 7, - 36 ) * - 0 AS col0
----
0

query I rowsort
SELECT + ( - 66 ) * + 28 AS col1
----
-1848

query I rowsort
SELECT + - 38 * - NULLIF ( + 5, + 96 )
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT ALL + CAST( NULL AS SIGNED ) * + + 44 * CASE COALESCE ( - + 73, + 22 * - SUM( + + 72 ) ) WHEN + + 23 THEN NULL WHEN + 62 THEN + 74 END + - - 29 * - AVG ( + 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 44 * CASE COALESCE ( - + 73, + 22 * - SUM ( + + 72 ) ) WHEN + + 23 THEN NULL WHEN + 62 THEN + 74 END + - - 29 * - AVG ( + 72 ) AS col2
----
NULL

query I rowsort
SELECT + 45 - 87 * - 31 AS col1
----
2742

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT - 88 + + COUNT( * ) + - + 34
----
-121

skipif mysql # not compatible
query I rowsort label-1252
SELECT - 88 + + COUNT ( * ) + - + 34
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT + - COUNT( - 61 ) * + 24 DIV 29 * + - 29 + - - 18 * MIN( DISTINCT 38 )
----
684

skipif mysql # not compatible
query I rowsort label-1253
SELECT + - COUNT ( - 61 ) * + 24 / 29 * + - 29 + - - 18 * MIN ( DISTINCT 38 )
----
684

query I rowsort
SELECT + + 11 + + - 46 col1
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-1255
SELECT DISTINCT 75 DIV - 78 * - - 61 + + 74, NULLIF ( - 11, - - 74 ) AS col1
----
74
-11

skipif mysql # not compatible
query II rowsort label-1255
SELECT DISTINCT 75 / - 78 * - - 61 + + 74, NULLIF ( - 11, - - 74 ) AS col1
----
74
-11

query I rowsort
SELECT + 98 * - + 98
----
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL COUNT( - 87 ) * - MAX( ALL - - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL COUNT ( - 87 ) * - MAX ( ALL - - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT DISTINCT - SUM( + 35 ) / - 7 - + - 93 + - + CASE - NULLIF ( - ( - - 7 ), - 66 ) WHEN COUNT( * ) THEN + 2 WHEN 86 THEN NULL END + + + 60 / NULLIF ( + 11, + ( 93 ) ) * - MAX( ALL 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - SUM ( + 35 ) / - 7 - + - 93 + - + CASE - NULLIF ( - ( - - 7 ), - 66 ) WHEN COUNT ( * ) THEN + 2 WHEN 86 THEN NULL END + + + 60 / NULLIF ( + 11, + ( 93 ) ) * - MAX ( ALL 52 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1259
SELECT ALL + 53 DIV + 43 + NULLIF ( + + 57, - 84 + - - ( - - 58 ) + + - MAX( DISTINCT - + 21 ) + - - 60 + 45 DIV - ( 45 ) * + ( 11 ) * + 11 + 23 - + NULLIF ( + + 93, - 66 * + COUNT( * ) - - 17 ) + - 37 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL + 53 / + 43 + NULLIF ( + + 57, - 84 + - - ( - - 58 ) + + - MAX ( DISTINCT - + 21 ) + - - 60 + 45 / - ( 45 ) * + ( 11 ) * + 11 + 23 - + NULLIF ( + + 93, - 66 * + COUNT ( * ) - - 17 ) + - 37 ) AS col0
----
58

query I rowsort
SELECT + 14 * 6
----
84

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

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

query II rowsort
SELECT - 92 * + 55 + - - 9 AS col1, 36 AS col0
----
-5051
36

query II rowsort
SELECT ALL + 95, + 92 AS col2
----
95
92

query II rowsort
SELECT ALL - 76 * - 14 - + 81 AS col2, - 75 AS col1
----
983
-75

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

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 29 * COUNT ( * ) - + - 31 AS col1
----
60

query I rowsort
SELECT - COALESCE ( - 89, - 91 ) - - 2
----
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1268
SELECT 56 - 15 - + - 15 DIV - - 34 - + 90 - + COALESCE ( COUNT( * ), + 86 * - 23 ) + + COUNT( DISTINCT + 76 ) * + 12 DIV - 75
----
-50

skipif mysql # not compatible
query I rowsort label-1268
SELECT 56 - 15 - + - 15 / - - 34 - + 90 - + COALESCE ( COUNT ( * ), + 86 * - 23 ) + + COUNT ( DISTINCT + 76 ) * + 12 / - 75
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT ALL + COUNT( * ) * - COUNT( * ) * - - 72, 78 * - 69 col2
----
-72
-5382

skipif mysql # not compatible
query II rowsort label-1269
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - - 72, 78 * - 69 col2
----
-72
-5382

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT MIN( 78 ) * + 0 + + 74 + - 72 + + - ( COALESCE ( + 92, 38, + 24 ) ) + + 56 * 11
----
526

skipif mysql # not compatible
query I rowsort label-1270
SELECT MIN ( 78 ) * + 0 + + 74 + - 72 + + - ( COALESCE ( + 92, 38, + 24 ) ) + + 56 * 11
----
526

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL - 16 - - - SUM( ALL + - 38 ) * + 13 - - MIN( + 39 ) * + - ( 29 ) AS col1
----
-653

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - 16 - - - SUM ( ALL + - 38 ) * + 13 - - MIN ( + 39 ) * + - ( 29 ) AS col1
----
-653

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL + 53 * - MAX( 45 ) AS col0
----
-2385

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL + 53 * - MAX ( 45 ) AS col0
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT 46 + - CASE - 20 + - COUNT( * ) WHEN - 31 * 60 THEN + 2 WHEN 11 * 32 THEN NULL WHEN 3 * - 85 THEN 93 WHEN 90 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT 46 + - CASE - 20 + - COUNT ( * ) WHEN - 31 * 60 THEN + 2 WHEN 11 * 32 THEN NULL WHEN 3 * - 85 THEN 93 WHEN 90 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1274
SELECT 81 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT 55 + + 16
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1277
SELECT 65 + + 31 DIV COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-1277
SELECT 65 + + 31 / COUNT ( * )
----
96

query I rowsort
SELECT ALL + 53 * 62
----
3286

query I rowsort
SELECT 75 + 6 AS col0
----
81

query I rowsort
SELECT 84 * 23 AS col2
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT SUM( ALL 98 ) + - 21 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1281
SELECT SUM ( ALL 98 ) + - 21 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1282
SELECT 61 * + CASE 77 WHEN 18 THEN + 41 + + CASE + MAX( DISTINCT 18 ) WHEN MIN( 49 ) + - CAST( NULL AS SIGNED ) THEN + 5 + - 66 WHEN + 80 THEN NULL END WHEN + ( 40 ) * + 81 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT 61 * + CASE 77 WHEN 18 THEN + 41 + + CASE + MAX ( DISTINCT 18 ) WHEN MIN ( 49 ) + - CAST ( NULL AS INTEGER ) THEN + 5 + - 66 WHEN + 80 THEN NULL END WHEN + ( 40 ) * + 81 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT DISTINCT + COUNT( * ) + - 16 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT + COUNT ( * ) + - 16 AS col1
----
-15

query I rowsort
SELECT ALL + 81 + - 2 col1
----
79

query I rowsort
SELECT DISTINCT + 9 + ( 15 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT DISTINCT 10 + ( COUNT( + 95 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT 10 + ( COUNT ( + 95 ) ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL CASE + MIN( ALL 57 ) WHEN - 31 THEN - 45 * 72 + + 55 WHEN + 80 + - 88 THEN NULL ELSE NULL END + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL CASE + MIN ( ALL 57 ) WHEN - 31 THEN - 45 * 72 + + 55 WHEN + 80 + - 88 THEN NULL ELSE NULL END + 91 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 64 + 98
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1290
SELECT COUNT( * ) DIV 89 - + MAX( - 15 + + 9 )
----
6

skipif mysql # not compatible
query I rowsort label-1290
SELECT COUNT ( * ) / 89 - + MAX ( - 15 + + 9 )
----
6

query I rowsort
SELECT 25 * + 89 col0
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT 83 * - 83 + SUM( - 25 ) AS col2
----
-6914

skipif mysql # not compatible
query I rowsort label-1292
SELECT 83 * - 83 + SUM ( - 25 ) AS col2
----
-6914

query I rowsort
SELECT ALL 9 + 44 AS col1
----
53

query I rowsort
SELECT 21 + ( COALESCE ( + 31, - 21 ) ) AS col2
----
52

query I rowsort
SELECT DISTINCT - 47 - 56 col0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT ALL CAST( NULL AS SIGNED ) * 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL CAST ( NULL AS INTEGER ) * 53 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL - CAST( COUNT( DISTINCT - 24 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - CAST ( COUNT ( DISTINCT - 24 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL 73 - 83
----
-10

query I rowsort
SELECT ALL 55 * 94
----
5170

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

skipif mysql # not compatible
query I rowsort label-1300
SELECT ( CAST ( NULL AS INTEGER ) ) * 65 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT DISTINCT 95 - + 92 * - COUNT( - ( + 30 ) )
----
187

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT 95 - + 92 * - COUNT ( - ( + 30 ) )
----
187

query I rowsort
SELECT DISTINCT - 98 * + 77
----
-7546

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT ALL - + 17 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL - + 17 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT - SUM( - 31 ) * - 82 AS col1
----
-2542

skipif mysql # not compatible
query I rowsort label-1305
SELECT - SUM ( - 31 ) * - 82 AS col1
----
-2542

query I rowsort
SELECT DISTINCT - + 42 * 68
----
-2856

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT COUNT ( * ) / 63 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT ALL ( 78 ) DIV - 41
----
-1

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL ( 78 ) / - 41
----
-1

query I rowsort
SELECT + 43 + 58
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT MIN( DISTINCT 47 ) DIV 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT MIN ( DISTINCT 47 ) / 70 AS col0
----
0

query I rowsort
SELECT DISTINCT 92 + - 17 * 83 AS col0
----
-1319

query I rowsort
SELECT ALL + + 13 * 3 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT DISTINCT - + 50 * - NULLIF ( - COUNT( * ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT - + 50 * - NULLIF ( - COUNT ( * ), - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT 42 - 41 * + 86 AS col0
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT ( MAX( ALL 47 ) ) * NULLIF ( 98, - 2 * + 93 + - 85 )
----
4606

skipif mysql # not compatible
query I rowsort label-1315
SELECT ( MAX ( ALL 47 ) ) * NULLIF ( 98, - 2 * + 93 + - 85 )
----
4606

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT - 7 + COUNT( * ) * 52 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1317
SELECT - 7 + COUNT ( * ) * 52 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL COUNT( - COALESCE ( + 84, - 57 * NULLIF ( + 6, - 37 * 19 ) ) ) + + 26 * 89
----
2315

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL COUNT ( - COALESCE ( + 84, - 57 * NULLIF ( + 6, - 37 * 19 ) ) ) + + 26 * 89
----
2315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1319
SELECT DISTINCT ( 72 ) * CAST( COUNT( * ) AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT ( 72 ) * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
72

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

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

query I rowsort
SELECT + 73 + ( 52 + + 79 * 64 ) AS col1
----
5181

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

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

query I rowsort
SELECT 99 + - - 36 + - ( ( + 83 ) )
----
52

query I rowsort
SELECT 34 - - + 6
----
40

query I rowsort
SELECT ALL - 60 + - 87 AS col1
----
-147

query I rowsort
SELECT 5 * 80 * - 77 AS col2
----
-30800

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

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - CAST ( NULL AS INTEGER ) * 5 * 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1328
SELECT 24 + - COUNT( * ) + 59 DIV - 87
----
23

skipif mysql # not compatible
query I rowsort label-1328
SELECT 24 + - COUNT ( * ) + 59 / - 87
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1329
SELECT ALL - ( + MIN( DISTINCT - 73 ) ) DIV + 42 col2
----
1

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - ( + MIN ( DISTINCT - 73 ) ) / + 42 col2
----
1

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

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

query I rowsort
SELECT DISTINCT - 42 * 60 AS col0
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT ALL CASE 38 WHEN 22 THEN NULL WHEN 5 + - ( + ( COALESCE ( + 64, - 3 * + 82 ) ) ) THEN - COUNT( * ) + 63 END * - ( - 94 ) - - ( - 63 ) / NULLIF ( + SUM( 71 ), 79 + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL CASE 38 WHEN 22 THEN NULL WHEN 5 + - ( + ( COALESCE ( + 64, - 3 * + 82 ) ) ) THEN - COUNT ( * ) + 63 END * - ( - 94 ) - - ( - 63 ) / NULLIF ( + SUM ( 71 ), 79 + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 61 * + - 26
----
1586

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT 88 DIV + 86 + + 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1334
SELECT 88 / + 86 + + 9 AS col0
----
10

query I rowsort
SELECT DISTINCT + 22 * - - 20 - - ( 82 - 45 ) AS col2
----
477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT + SUM( DISTINCT + NULLIF ( + 76, - CAST( 85 AS SIGNED ) ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1336
SELECT + SUM ( DISTINCT + NULLIF ( + 76, - CAST ( 85 AS INTEGER ) ) ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + 13 + + - COUNT( * ) - 23
----
-11

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 13 + + - COUNT ( * ) - 23
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1338
SELECT ALL - 98 / + - 66 * MIN( - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - 98 / + - 66 * MIN ( - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT - 25 DIV - - 57
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT - 25 / - - 57
----
0

query I rowsort
SELECT 52 * 43 + + 1 col2
----
2237

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT - COALESCE ( - + COUNT( * ), 87 ) * - 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1341
SELECT - COALESCE ( - + COUNT ( * ), 87 ) * - 74 AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT + CAST( NULL AS SIGNED ) * + + 64 * - AVG ( - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT + CAST ( NULL AS INTEGER ) * + + 64 * - AVG ( - 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT DISTINCT + SUM( 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT + SUM ( 91 ) AS col0
----
91

query I rowsort
SELECT + - 0 + + - 49
----
-49

query I rowsort
SELECT ALL + + COALESCE ( 3, + ( 51 ) + - 81 )
----
3

query I rowsort
SELECT ALL - 45 + 31 * 93
----
2838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1347
SELECT + - MIN( ALL - 41 ) * + 18 + + CAST( + 50 AS SIGNED ) AS col1
----
788

skipif mysql # not compatible
query I rowsort label-1347
SELECT + - MIN ( ALL - 41 ) * + 18 + + CAST ( + 50 AS INTEGER ) AS col1
----
788

query I rowsort
SELECT + 97 - + 86 AS col1
----
11

query I rowsort
SELECT ALL + - ( 47 ) AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1350
SELECT + - 64 * + - COUNT( * ) + 62 / CASE + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) / 30 + 40 * 72 WHEN 40 / COUNT( DISTINCT 35 * 79 ) THEN NULL WHEN SUM( DISTINCT CASE - 23 WHEN - 43 + 23 THEN + 2 ELSE NULL END ) * NULLIF ( AVG ( DISTINCT + 51 ), - COUNT( * ) + - 22 * - 92 ) THEN COUNT( * ) + + 47 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT + - 64 * + - COUNT ( * ) + 62 / CASE + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) / 30 + 40 * 72 WHEN 40 / COUNT ( DISTINCT 35 * 79 ) THEN NULL WHEN SUM ( DISTINCT CASE - 23 WHEN - 43 + 23 THEN + 2 ELSE NULL END ) * NULLIF ( AVG ( DISTINCT + 51 ), - COUNT ( * ) + - 22 * - 92 ) THEN COUNT ( * ) + + 47 * - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 59 * - + ( + 10 ) * + 14 + 55 AS col1
----
-8205

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL 81 + + COUNT( * ) - 0 * + 59
----
82

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL 81 + + COUNT ( * ) - 0 * + 59
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT + 64 + 16 * MIN( 34 )
----
608

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 64 + 16 * MIN ( 34 )
----
608

query I rowsort
SELECT ALL 8 + - + 66
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT + 77 + 97 - + 89 DIV 13
----
168

skipif mysql # not compatible
query I rowsort label-1355
SELECT + 77 + 97 - + 89 / 13
----
168

query I rowsort
SELECT + + 23 + + NULLIF ( 87, - 21 * 67 + + 80 ) AS col0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT ALL + 12 + 28 DIV 64
----
12

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL + 12 + 28 / 64
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT DISTINCT - 54 DIV 33
----
-1

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - 54 / 33
----
-1

query I rowsort
SELECT ALL + ( - + 69 ) + ( 95 )
----
26

query I rowsort
SELECT + + 32 * - 28
----
-896

query I rowsort
SELECT - COALESCE ( - 7, - 98 * - 35 ) + 20
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL 10 - - ( - 17 ) - + 67 * COUNT( - 67 + 86 )
----
-74

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL 10 - - ( - 17 ) - + 67 * COUNT ( - 67 + 86 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT + 39 * - + 12 * - COUNT( * )
----
468

skipif mysql # not compatible
query I rowsort label-1363
SELECT + 39 * - + 12 * - COUNT ( * )
----
468

query I rowsort
SELECT - 45 * - - 16
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT + COUNT( * ) * - - 16 * + NULLIF ( + COALESCE ( ( + ( - 9 ) ), 35 ), - 2 )
----
-144

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT + COUNT ( * ) * - - 16 * + NULLIF ( + COALESCE ( ( + ( - 9 ) ), 35 ), - 2 )
----
-144

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

skipif mysql # not compatible
query I rowsort label-1366
SELECT + 15 * - ( - + COUNT ( - 51 ) ) AS col1
----
15

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

query I rowsort
SELECT DISTINCT 56 * - - COALESCE ( - 14, 91 + 81, 21 + + 90 * - 3 ) * 64 AS col0
----
-50176

query I rowsort
SELECT DISTINCT CASE + 64 WHEN - 46 THEN + 16 WHEN + 46 * 81 + AVG ( DISTINCT 0 ) THEN - 81 * 98 WHEN + 55 * 60 THEN + 25 * 25 ELSE 64 END AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL NULLIF ( - COUNT( + + 32 ), - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL NULLIF ( - COUNT ( + + 32 ), - 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT - 85 * + MAX( ALL + 46 ) AS col2
----
-3910

skipif mysql # not compatible
query I rowsort label-1371
SELECT - 85 * + MAX ( ALL + 46 ) AS col2
----
-3910

query I rowsort
SELECT ALL 91 * + 40 col1
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL SUM( - 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL SUM ( - 56 ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1374
SELECT MAX( 83 ) * + COUNT( CAST( - 8 AS SIGNED ) ) - - 52 + 48 * 79 AS col0
----
3927

skipif mysql # not compatible
query I rowsort label-1374
SELECT MAX ( 83 ) * + COUNT ( CAST ( - 8 AS INTEGER ) ) - - 52 + 48 * 79 AS col0
----
3927

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT DISTINCT - 11 DIV + + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT - 11 / + + 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT - COUNT( * ) + + - 47
----
-48

skipif mysql # not compatible
query I rowsort label-1377
SELECT - COUNT ( * ) + + - 47
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT - COUNT( * ) / - ( CAST( NULL AS SIGNED ) ) * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT - COUNT ( * ) / - ( CAST ( NULL AS INTEGER ) ) * 95 AS col0
----
NULL

query I rowsort
SELECT ALL - 94 * - 93 AS col0
----
8742

query I rowsort
SELECT - 19 + 21 * - - 8
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT DISTINCT - 85 * + + CASE + 64 WHEN - COUNT( * ) THEN 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT - 85 * + + CASE + 64 WHEN - COUNT ( * ) THEN 4 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT DISTINCT - COUNT( * ) DIV - COALESCE ( - 47, - 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - COUNT ( * ) / - COALESCE ( - 47, - 97 ) AS col2
----
0

query I rowsort
SELECT ALL + COALESCE ( + - ( 54 ), - 68 + + 25 ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1384
SELECT ALL CAST( 33 AS SIGNED ) * - - MIN( 16 ) + 52 * CASE + 78 * + 71 + + 19 * + COUNT( * ) WHEN + 38 + + 56 THEN - COUNT( * ) / 1 + + 30 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL CAST ( 33 AS INTEGER ) * - - MIN ( 16 ) + 52 * CASE + 78 * + 71 + + 19 * + COUNT ( * ) WHEN + 38 + + 56 THEN - COUNT ( * ) / 1 + + 30 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT DISTINCT - ( MIN( ALL - 98 ) ) * 6 + + 88
----
676

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT - ( MIN ( ALL - 98 ) ) * 6 + + 88
----
676

query I rowsort
SELECT - ( + + CASE + 13 WHEN 68 * 89 THEN NULL WHEN 65 THEN 7 END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL + - COUNT( DISTINCT 75 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + - COUNT ( DISTINCT 75 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1388
SELECT - 26 DIV + - ( + - MIN( + 14 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1388
SELECT - 26 / + - ( + - MIN ( + 14 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + COUNT( 91 ) + - 34 + COALESCE ( 69 - - COUNT( * ) * 92, 42 )
----
128

skipif mysql # not compatible
query I rowsort label-1389
SELECT + COUNT ( 91 ) + - 34 + COALESCE ( 69 - - COUNT ( * ) * 92, 42 )
----
128

query I rowsort
SELECT - + 77 * - 10 AS col0
----
770

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1391
SELECT DISTINCT + 66 DIV - CAST( - - 33 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT + 66 / - CAST ( - - 33 AS INTEGER ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT ALL 46 * 62 + - + 33 + - 38 DIV 66 AS col0
----
2819

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL 46 * 62 + - + 33 + - 38 / 66 AS col0
----
2819

onlyif mysql # aggregate syntax: 
query II rowsort label-1393
SELECT ALL + 84, + NULLIF ( - COUNT( * ), + 63 * 64 - COUNT( 80 ) * - 20 ) AS col1
----
84
-1

skipif mysql # not compatible
query II rowsort label-1393
SELECT ALL + 84, + NULLIF ( - COUNT ( * ), + 63 * 64 - COUNT ( 80 ) * - 20 ) AS col1
----
84
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1394
SELECT - - CASE CAST( NULL AS SIGNED ) WHEN - 51 / SUM( COALESCE ( + 84, + 43 * - 99 ) ) THEN 78 * CAST( NULL AS SIGNED ) END * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT - - CASE CAST ( NULL AS INTEGER ) WHEN - 51 / SUM ( COALESCE ( + 84, + 43 * - 99 ) ) THEN 78 * CAST ( NULL AS INTEGER ) END * - 60 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1395
SELECT ALL + 25 * CAST( - 60 AS SIGNED ) * - 46 + 12 col2
----
69012

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + 25 * CAST ( - 60 AS INTEGER ) * - 46 + 12 col2
----
69012

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1397
SELECT DISTINCT + 39 * + ( - CAST( NULL AS DECIMAL ) ) + 10 + ( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT + 39 * + ( - CAST ( NULL AS REAL ) ) + 10 + ( 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT - COUNT( * ) + MAX( - 32 ) * 42 AS col1
----
-1345

skipif mysql # not compatible
query I rowsort label-1398
SELECT - COUNT ( * ) + MAX ( - 32 ) * 42 AS col1
----
-1345

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1399
SELECT + CAST( NULL AS DECIMAL ) * - 37 * + 98 / - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT + CAST ( NULL AS REAL ) * - 37 * + 98 / - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT ALL COUNT( DISTINCT NULLIF ( + 97, + CAST( NULL AS SIGNED ) ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL COUNT ( DISTINCT NULLIF ( + 97, + CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * )
----
-1

query II rowsort
SELECT + 4 AS col1, + NULLIF ( 88, 15 ) * - 76
----
4
-6688

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT - 55 + + COALESCE ( - + COUNT( * ), COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-1402
SELECT - 55 + + COALESCE ( - + COUNT ( * ), COUNT ( * ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - MAX( ALL + 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-1403
SELECT - MAX ( ALL + 18 ) AS col1
----
-18

query II rowsort
SELECT 70 AS col2, + 48
----
70
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT + ( + + CASE - - 97 WHEN ( + 68 ) THEN COUNT( * ) ELSE 4 END )
----
4

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + ( + + CASE - - 97 WHEN ( + 68 ) THEN COUNT ( * ) ELSE 4 END )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT + - ( + + 74 ) - + NULLIF ( + COUNT( * ), - 93 * + 86 + ( ( 64 ) ) ) * COUNT( DISTINCT + 56 )
----
-75

skipif mysql # not compatible
query I rowsort label-1406
SELECT + - ( + + 74 ) - + NULLIF ( + COUNT ( * ), - 93 * + 86 + ( ( 64 ) ) ) * COUNT ( DISTINCT + 56 )
----
-75

query I rowsort
SELECT + 21 * + + 91 AS col1
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + 92 - - 44 + + COUNT( * ) col0
----
137

skipif mysql # not compatible
query I rowsort label-1408
SELECT + 92 - - 44 + + COUNT ( * ) col0
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT ALL 97 - - + 45 + - 10 DIV COALESCE ( 1, + ( 35 ) * + 65, 13 ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL 97 - - + 45 + - 10 / COALESCE ( 1, + ( 35 ) * + 65, 13 ) AS col1
----
132

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1410
SELECT ALL 79 DIV - + ( CAST( + + 63 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL 79 / - + ( CAST ( + + 63 AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1411
SELECT + 85 * - - COUNT( * ) col1, NULLIF ( 49, 82 + - MAX( 66 ) / - 79 )
----
85
49

skipif mysql # not compatible
query II rowsort label-1411
SELECT + 85 * - - COUNT ( * ) col1, NULLIF ( 49, 82 + - MAX ( 66 ) / - 79 )
----
85
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT 97 * - - SUM( - 77 ) AS col0
----
-7469

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT 97 * - - SUM ( - 77 ) AS col0
----
-7469

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT DISTINCT NULLIF ( - 83, - 94 * 21 + + 15 + 62 ) DIV 21 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT NULLIF ( - 83, - 94 * 21 + + 15 + 62 ) / 21 AS col0
----
-3

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

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

query I rowsort
SELECT ( - + 97 ) - + - 95
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT ALL ( 92 ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL ( 92 ) / 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT NULLIF ( + + 86, - - 21 ) / - - 2 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT NULLIF ( + + 86, - - 21 ) / - - 2 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 66 * - + 61 AS col2
----
-4026

query I rowsort
SELECT 69 - 62 AS col1
----
7

query I rowsort
SELECT 40 * - 48 AS col0
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT 75 * - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1421
SELECT 75 * - COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT ALL 37 * ( + - 11 ) AS col1
----
-407

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT SUM( DISTINCT + 81 ) + 87 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-1424
SELECT SUM ( DISTINCT + 81 ) + 87 AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1425
SELECT COUNT( ALL + 36 ) * - 21 + + - CASE 33 WHEN - COUNT( * ) + COUNT( * ) THEN - 97 * CAST( NULLIF ( CAST( NULL AS SIGNED ), AVG ( 72 ) * - MIN( 84 ) ) AS SIGNED ) ELSE NULL END + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT COUNT ( ALL + 36 ) * - 21 + + - CASE 33 WHEN - COUNT ( * ) + COUNT ( * ) THEN - 97 * CAST ( NULLIF ( CAST ( NULL AS INTEGER ), AVG ( 72 ) * - MIN ( 84 ) ) AS INTEGER ) ELSE NULL END + 20
----
NULL

query I rowsort
SELECT ALL 1 + + 24 + 6
----
31

query I rowsort
SELECT ALL 77 + - 90 AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1428
SELECT ALL + COUNT( * ) + + + 53 + + - NULLIF ( - - ( COUNT( * ) ), 16 ) DIV + 27
----
54

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + COUNT ( * ) + + + 53 + + - NULLIF ( - - ( COUNT ( * ) ), 16 ) / + 27
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT MIN( ALL + - 1 ) + + COALESCE ( - - NULLIF ( - COUNT( * ), + 11 ), 15 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1429
SELECT MIN ( ALL + - 1 ) + + COALESCE ( - - NULLIF ( - COUNT ( * ), + 11 ), 15 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT CASE WHEN ( + 43 ) IS NOT NULL THEN - COUNT( * ) END * - 76
----
76

skipif mysql # not compatible
query I rowsort label-1430
SELECT CASE WHEN ( + 43 ) IS NOT NULL THEN - COUNT ( * ) END * - 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT DISTINCT + - SUM( DISTINCT - COALESCE ( 69, + 92 * ( - 98 ) ) ) + 48
----
117

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT + - SUM ( DISTINCT - COALESCE ( 69, + 92 * ( - 98 ) ) ) + 48
----
117

query II rowsort
SELECT - 10 + + 54, 3 AS col0
----
44
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT + 98 * + 58 * - + 80 + - COUNT( DISTINCT 15 ) * MIN( ALL 19 * 10 ) + 81
----
-454829

skipif mysql # not compatible
query I rowsort label-1433
SELECT + 98 * + 58 * - + 80 + - COUNT ( DISTINCT 15 ) * MIN ( ALL 19 * 10 ) + 81
----
-454829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1434
SELECT + 10 * + + CAST( + CASE + 44 WHEN 95 * - COUNT( * ) THEN + 75 WHEN 85 THEN NULL ELSE + 15 END AS SIGNED ) + + MAX( DISTINCT - 95 ) + - 96
----
-41

skipif mysql # not compatible
query I rowsort label-1434
SELECT + 10 * + + CAST ( + CASE + 44 WHEN 95 * - COUNT ( * ) THEN + 75 WHEN 85 THEN NULL ELSE + 15 END AS INTEGER ) + + MAX ( DISTINCT - 95 ) + - 96
----
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1435
SELECT ALL + + CAST( NULL AS SIGNED ) * 41 AS col1, + 79 DIV + + 94 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1435
SELECT ALL + + CAST ( NULL AS INTEGER ) * 41 AS col1, + 79 / + + 94 AS col1
----
NULL
0

query I rowsort
SELECT 40 + + + 71 + 94 * - 81 AS col1
----
-7503

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL + 76 + - COUNT( * ) + NULLIF ( 3, + 31 + - 53 ) + + ( - 52 - 43 )
----
-17

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL + 76 + - COUNT ( * ) + NULLIF ( 3, + 31 + - 53 ) + + ( - 52 - 43 )
----
-17

query I rowsort
SELECT ALL - + 18 - + 68 AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT DISTINCT - + NULLIF ( + COUNT( * ), + - CASE - - 11 WHEN 15 + ( 97 ) * + CAST( NULL AS SIGNED ) THEN - 4 END ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - + NULLIF ( + COUNT ( * ), + - CASE - - 11 WHEN 15 + ( 97 ) * + CAST ( NULL AS INTEGER ) THEN - 4 END ) * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 20 + + 62 AS col1
----
82

query I rowsort
SELECT ALL + 10 - + 38 AS col0
----
-28

query I rowsort
SELECT 97 * 40 AS col0
----
3880

query I rowsort
SELECT + 53 * + - ( 2 ) AS col1
----
-106

query I rowsort
SELECT 55 + - 94 + 49 + 6 * 93 AS col0
----
568

query I rowsort
SELECT + 62 + - 13
----
49

query I rowsort
SELECT ( + 11 ) * + 28 + - 73 * + 39 AS col1
----
-2539

query I rowsort
SELECT 34 + + 22 AS col0
----
56

query I rowsort
SELECT DISTINCT 38 * 34 AS col2
----
1292

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT COUNT ( * ) * 48
----
48

query I rowsort
SELECT ALL 56 * 1 AS col1
----
56

query I rowsort
SELECT ALL + ( 20 ) * + - 44
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT ( + 66 ) * - + 30 * + MIN( ALL 94 ) * 67 AS col2
----
-12470040

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT ( + 66 ) * - + 30 * + MIN ( ALL 94 ) * 67 AS col2
----
-12470040

query I rowsort
SELECT 33 * + 4 AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1454
SELECT CASE + - 81 WHEN - ( - 41 ) + + 6 THEN CAST( NULL AS DECIMAL ) WHEN 74 * - 62 THEN - 36 + NULLIF ( 20, NULLIF ( + 0, 64 * + 27 ) ) ELSE NULL END + - 29 * NULLIF ( 0, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT CASE + - 81 WHEN - ( - 41 ) + + 6 THEN CAST ( NULL AS REAL ) WHEN 74 * - 62 THEN - 36 + NULLIF ( 20, NULLIF ( + 0, 64 * + 27 ) ) ELSE NULL END + - 29 * NULLIF ( 0, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 37 + + 35
----
72

query I rowsort
SELECT ALL 96 + + 85
----
181

query I rowsort
SELECT DISTINCT + ( 35 ) + + + 15 * - 98
----
-1435

query II rowsort
SELECT ALL 82, 62 * 14 * 80 col1
----
82
69440

query I rowsort
SELECT ALL + 94 + + ( 70 ) + - 78
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT 72, + COUNT( ALL - - 90 ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-1460
SELECT 72, + COUNT ( ALL - - 90 ) AS col0
----
72
1

query II rowsort
SELECT ALL 84 + - 66 * - 27, 87 AS col2
----
1866
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1462
SELECT ALL NULLIF ( - 38, 25 + + 84 + COUNT( ALL 84 ) + ( 1 - 54 * 13 ) ) + - 96 DIV 12 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL NULLIF ( - 38, 25 + + 84 + COUNT ( ALL 84 ) + ( 1 - 54 * 13 ) ) + - 96 / 12 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT ALL 54 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL 54 / + + 89
----
0

query I rowsort
SELECT ALL 54 * - ( - 4 ) + 33 AS col1
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT 86 * - 86 + - 84 * - 73 * + - 62 * COUNT( * )
----
-387580

skipif mysql # not compatible
query I rowsort label-1465
SELECT 86 * - 86 + - 84 * - 73 * + - 62 * COUNT ( * )
----
-387580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1466
SELECT 72 DIV + COUNT( * ) + 30 AS col2, - 3 + - CAST( NULL AS SIGNED ) + + 1
----
102
NULL

skipif mysql # not compatible
query II rowsort label-1466
SELECT 72 / + COUNT ( * ) + 30 AS col2, - 3 + - CAST ( NULL AS INTEGER ) + + 1
----
102
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL COUNT( * ) * + + 62 * - 89 * - 34 AS col1
----
187612

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL COUNT ( * ) * + + 62 * - 89 * - 34 AS col1
----
187612

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

skipif mysql # not compatible
query I rowsort label-1468
SELECT - 17 / + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1469
SELECT DISTINCT - COUNT ( * ) AS col0, - 69
----
-1
-69

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

skipif mysql # not compatible
query I rowsort label-1470
SELECT 27 / + 47 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 25 ) - - - NULLIF ( - 32, + 40 + 50 )
----
57

query II rowsort
SELECT ALL - 42 AS col0, - 13 + - 68 * - 55 * - 65 AS col1
----
-42
-243113

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - + 52 * + - 2 + + MAX( DISTINCT + + 28 )
----
132

skipif mysql # not compatible
query I rowsort label-1473
SELECT - + 52 * + - 2 + + MAX ( DISTINCT + + 28 )
----
132

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

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

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

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

query I rowsort
SELECT - COALESCE ( - 89, - 51 ) * 90 AS col2
----
8010

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT COUNT( ALL + + 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1477
SELECT COUNT ( ALL + + 8 ) AS col2
----
1

query I rowsort
SELECT ALL - - 77 col1
----
77

query I rowsort
SELECT DISTINCT + ( + 79 ) * + - 83
----
-6557

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

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

query I rowsort
SELECT DISTINCT + 82 * - - 65 * + 44 + + 17
----
234537

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT DISTINCT COUNT( * ) * - 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT COUNT ( * ) * - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT - 45 * - 28 * - COUNT( * ) * + - COUNT( * ) * - + MIN( ALL + 24 ) AS col1
----
-30240

skipif mysql # not compatible
query I rowsort label-1483
SELECT - 45 * - 28 * - COUNT ( * ) * + - COUNT ( * ) * - + MIN ( ALL + 24 ) AS col1
----
-30240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1484
SELECT ALL - ( 77 ) * COUNT( - 95 ) DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL - ( 77 ) * COUNT ( - 95 ) / 56
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + 32 + COUNT( - + 32 ) + - 77 * 34
----
-2585

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 32 + COUNT ( - + 32 ) + - 77 * 34
----
-2585

query II rowsort
SELECT 33 AS col2, ( + 70 ) AS col1
----
33
70

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

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

query I rowsort
SELECT - 9 + - 48 + + 19
----
-38

query I rowsort
SELECT - 14 * - 19 AS col2
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT - COUNT( * ) - - + 30 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1490
SELECT - COUNT ( * ) - - + 30 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT + 25 + + + COUNT( * ) - + - COALESCE ( + 98, - 55 ) + + 25 - 5
----
144

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT + 25 + + + COUNT ( * ) - + - COALESCE ( + 98, - 55 ) + + 25 - 5
----
144

query I rowsort
SELECT ALL NULLIF ( - 90, + - 14 * CASE + + 23 WHEN - 48 * 95 THEN NULL WHEN 6 * - 66 THEN + 35 * - 22 - + 50 END ) AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1493
SELECT - CASE + COUNT( * ) WHEN - COUNT( * ) + - 14 THEN - - 43 * - 46 ELSE - ( 77 ) * CASE 18 + 20 WHEN 34 + 54 THEN NULL ELSE 52 END END + + ( + ( + 55 ) ) DIV 53 AS col0
----
4005

skipif mysql # not compatible
query I rowsort label-1493
SELECT - CASE + COUNT ( * ) WHEN - COUNT ( * ) + - 14 THEN - - 43 * - 46 ELSE - ( 77 ) * CASE 18 + 20 WHEN 34 + 54 THEN NULL ELSE 52 END END + + ( + ( + 55 ) ) / 53 AS col0
----
4005

query I rowsort
SELECT ALL + 7 + - - 20 * 41
----
827

query I rowsort
SELECT DISTINCT NULLIF ( + - 80, + 81 * - 52 * - - COALESCE ( + 45, 71, 66 - + 18 ) + 27 * + 18 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT SUM( ALL 59 ) + + - 43 * - 27 + + ( - 57 )
----
1163

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT SUM ( ALL 59 ) + + - 43 * - 27 + + ( - 57 )
----
1163

query I rowsort
SELECT ALL 43 + 20
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1498
SELECT - COUNT( * ) AS col2, 58 * + 57 * + + 58 * - 62 col1
----
-1
-11888376

skipif mysql # not compatible
query II rowsort label-1498
SELECT - COUNT ( * ) AS col2, 58 * + 57 * + + 58 * - 62 col1
----
-1
-11888376

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL NULLIF ( + - ( + 9 ), MAX( - - 14 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL NULLIF ( + - ( + 9 ), MAX ( - - 14 ) )
----
-9

query I rowsort
SELECT - NULLIF ( - 10, + 8 * - + 50 ) + 24 * - 67 AS col2
----
-1598

query I rowsort
SELECT DISTINCT + 63 + - 54 AS col2
----
9

query I rowsort
SELECT ALL 7 + - - 46 AS col0
----
53

query II rowsort
SELECT - 47 AS col0, + 73 AS col0
----
-47
73

query I rowsort
SELECT ALL 36 - 29
----
7

query I rowsort
SELECT DISTINCT + ( + 82 ) AS col2
----
82

query I rowsort
SELECT ALL + 27 * - 33 - - ( + 92 ) - - CASE - 65 WHEN 53 / + 59 + ( 52 + + 76 ) THEN NULL WHEN + 30 * - 54 THEN NULL ELSE 16 + - 54 END + 33
----
-804

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

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

query I rowsort
SELECT ALL + 54 / 80 + - CASE 9 WHEN + 48 THEN + 88 WHEN ( 85 ) THEN 30 END
----
NULL

query II rowsort
SELECT ALL + + 25 AS col0, 68
----
25
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1510
SELECT + - 0 AS col2, 12 + + CAST( + 15 AS SIGNED )
----
0
27

skipif mysql # not compatible
query II rowsort label-1510
SELECT + - 0 AS col2, 12 + + CAST ( + 15 AS INTEGER )
----
0
27

query I rowsort
SELECT + + 16 + - + 49 + + + 65 * + 40 AS col1
----
2567

query I rowsort
SELECT - 63 * - 95 - 29 + 10 AS col2
----
5966

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT + 78 * + COALESCE ( 44, COUNT( * ) ) - + + ( 72 ) + MAX( DISTINCT 46 )
----
3406

skipif mysql # not compatible
query I rowsort label-1513
SELECT + 78 * + COALESCE ( 44, COUNT ( * ) ) - + + ( 72 ) + MAX ( DISTINCT 46 )
----
3406

query I rowsort
SELECT ALL 47 * - 13 AS col0
----
-611

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT 21 col0, ( - 31 ) + + COUNT( * ) AS col1
----
21
-30

skipif mysql # not compatible
query II rowsort label-1515
SELECT 21 col0, ( - 31 ) + + COUNT ( * ) AS col1
----
21
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-1516
SELECT DISTINCT + + 9 AS col0, + 26 + + 54 * - + 94 + - 73 * 89 + COUNT( * ) * - 66 AS col2
----
9
-11613

skipif mysql # not compatible
query II rowsort label-1516
SELECT DISTINCT + + 9 AS col0, + 26 + + 54 * - + 94 + - 73 * 89 + COUNT ( * ) * - 66 AS col2
----
9
-11613

query I rowsort
SELECT ALL - 33 * + - 51
----
1683

query I rowsort
SELECT DISTINCT 36 * 75 col0
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT + 80 + + ( + COUNT( DISTINCT - 27 ) ) * - 59 * + 39
----
-2221

skipif mysql # not compatible
query I rowsort label-1519
SELECT + 80 + + ( + COUNT ( DISTINCT - 27 ) ) * - 59 * + 39
----
-2221

query II rowsort
SELECT + 33 * + - 33 AS col2, 85 + + 5
----
-1089
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT 38 * ( + COALESCE ( - 29, + 52 - - 39 ) ) DIV COUNT( * ) + 70 * NULLIF ( + 83, + 26 DIV COUNT( * ) ) AS col0
----
4708

skipif mysql # not compatible
query I rowsort label-1521
SELECT 38 * ( + COALESCE ( - 29, + 52 - - 39 ) ) / COUNT ( * ) + 70 * NULLIF ( + 83, + 26 / COUNT ( * ) ) AS col0
----
4708

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT MIN( 19 ) AS col0, + 28 AS col2
----
19
28

skipif mysql # not compatible
query II rowsort label-1522
SELECT MIN ( 19 ) AS col0, + 28 AS col2
----
19
28

query I rowsort
SELECT - 91 + 34 col1
----
-57

query I rowsort
SELECT ALL - 66 * + ( + + 68 )
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT ALL 38 * + COUNT( * ) + + + 96
----
134

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL 38 * + COUNT ( * ) + + + 96
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT - 55 DIV 65 * - - SUM( ALL 43 ) * 29
----
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT - 55 / 65 * - - SUM ( ALL 43 ) * 29
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT ALL - 39 + + + 40 * + CAST( NULL AS SIGNED ) * 53 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - 39 + + + 40 * + CAST ( NULL AS INTEGER ) * 53 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT ALL 78 * - - CAST( + 70 AS SIGNED ) * + 5 * - COUNT( DISTINCT 9 )
----
-27300

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL 78 * - - CAST ( + 70 AS INTEGER ) * + 5 * - COUNT ( DISTINCT 9 )
----
-27300

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL CASE + + 79 WHEN + 62 * + 61 THEN NULL WHEN + MAX( DISTINCT - + 86 ) THEN - + 34 / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL CASE + + 79 WHEN + 62 * + 61 THEN NULL WHEN + MAX ( DISTINCT - + 86 ) THEN - + 34 / - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 49 * - 65
----
3185

query I rowsort
SELECT + 37 * ( + 97 ) * 84 AS col1
----
301476

query II rowsort
SELECT ALL + 76 - - 10, - 68 AS col0
----
86
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1533
SELECT - SUM( 49 ) DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT - SUM ( 49 ) / - 68 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT ALL - 4 DIV - 67 * - + 42
----
0

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - 4 / - 67 * - + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT DISTINCT NULLIF ( - - 59, 80 + + - MIN( ALL 69 ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT NULLIF ( - - 59, 80 + + - MIN ( ALL 69 ) ) AS col0
----
59

query I rowsort
SELECT - + ( + 77 ) - + 59 + - - 15 + + - 79 + - 79
----
-279

query I rowsort
SELECT DISTINCT + + 13 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT - 15 * 45 + 37 + 26 * - + 82 * + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT - 15 * 45 + 37 + 26 * - + 82 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1539
SELECT ALL - + 45 * - CASE CAST( - ( + - NULLIF ( - 45, 20 / 23 ) ) AS SIGNED ) WHEN ( 98 ) THEN NULL WHEN + COUNT( * ) + COALESCE ( 15 + + 89, + COUNT( DISTINCT 61 ) ) THEN ( - 81 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL - + 45 * - CASE CAST ( - ( + - NULLIF ( - 45, 20 / 23 ) ) AS INTEGER ) WHEN ( 98 ) THEN NULL WHEN + COUNT ( * ) + COALESCE ( 15 + + 89, + COUNT ( DISTINCT 61 ) ) THEN ( - 81 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - 6 * - - SUM( 48 )
----
-288

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 6 * - - SUM ( 48 )
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1541
SELECT DISTINCT + - CASE + 39 WHEN CASE - - 25 WHEN + 95 / + COUNT( * ) THEN NULL ELSE + 9 END THEN + CAST( + 98 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT + - CASE + 39 WHEN CASE - - 25 WHEN + 95 / + COUNT ( * ) THEN NULL ELSE + 9 END THEN + CAST ( + 98 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL - 4 * - ( CASE - 19 WHEN + 46 * + + 25 + - + SUM( ALL 88 ) + - ( - 50 ) THEN + 35 / + COUNT( * ) WHEN + 74 THEN NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL - 4 * - ( CASE - 19 WHEN + 46 * + + 25 + - + SUM ( ALL 88 ) + - ( - 50 ) THEN + 35 / + COUNT ( * ) WHEN + 74 THEN NULL END ) col0
----
NULL

query I rowsort
SELECT 41 * 84 * 50 + - + 46
----
172154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1544
SELECT ALL - COALESCE ( + ( 73 ), + CASE + 64 WHEN - 46 DIV COUNT( * ) THEN 77 + - 67 DIV + 7 END DIV COALESCE ( COUNT( * ), + 41 + - 71 ) + - ( 65 ) * SUM( 74 ), CAST( + COUNT( 57 ) AS SIGNED ) )
----
-73

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - COALESCE ( + ( 73 ), + CASE + 64 WHEN - 46 / COUNT ( * ) THEN 77 + - 67 / + 7 END / COALESCE ( COUNT ( * ), + 41 + - 71 ) + - ( 65 ) * SUM ( 74 ), CAST ( + COUNT ( 57 ) AS INTEGER ) )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT 20 * - 64 * CAST( NULL AS SIGNED ) * - 26 * + + 84 * - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT 20 * - 64 * CAST ( NULL AS INTEGER ) * - 26 * + + 84 * - 90 AS col2
----
NULL

query I rowsort
SELECT 64 * - - 4 * + 70 * - 28
----
-501760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1547
SELECT ALL 48 + 22 AS col2, + 72 DIV - 37 - 48 DIV + - ( + COUNT( * ) ) AS col0
----
70
47

skipif mysql # not compatible
query II rowsort label-1547
SELECT ALL 48 + 22 AS col2, + 72 / - 37 - 48 / + - ( + COUNT ( * ) ) AS col0
----
70
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT NULLIF ( + 93, + COUNT( * ) * - ( + ( + + 63 ) ) + ( 3 ) ) * + 69
----
6417

skipif mysql # not compatible
query I rowsort label-1548
SELECT NULLIF ( + 93, + COUNT ( * ) * - ( + ( + + 63 ) ) + ( 3 ) ) * + 69
----
6417

query I rowsort
SELECT ALL 21 + 69
----
90

query II rowsort
SELECT 70 * - - 42 - 25, + 55 * + 73 col0
----
2915
4015

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

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

query I rowsort
SELECT ALL 15 * - 50
----
-750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT 59 * - - 47 * CASE WHEN ( NULL ) <= + CASE + + 4 WHEN + CAST( NULL AS SIGNED ) * 73 - + 60 THEN + 5 END THEN ( CASE - 38 WHEN 41 * 32 THEN 71 WHEN COUNT( * ) * - 94 THEN + COUNT( * ) WHEN - 6 * 9 THEN MIN( 56 ) ELSE 12 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT 59 * - - 47 * CASE WHEN ( NULL ) <= + CASE + + 4 WHEN + CAST ( NULL AS INTEGER ) * 73 - + 60 THEN + 5 END THEN ( CASE - 38 WHEN 41 * 32 THEN 71 WHEN COUNT ( * ) * - 94 THEN + COUNT ( * ) WHEN - 6 * 9 THEN MIN ( 56 ) ELSE 12 END ) END
----
NULL

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

query I rowsort
SELECT DISTINCT 8 + - + 36 AS col1
----
-28

query I rowsort
SELECT ALL 67 + 15
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL 37 * - + MIN( + - 3 ) col1
----
111

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL 37 * - + MIN ( + - 3 ) col1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT 49 + 53 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT 49 + 53 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 84 * - NULLIF ( 85, - ( 43 ) ) AS col1
----
-7140

query II rowsort
SELECT 1 AS col1, 21 AS col2
----
1
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1561
SELECT CAST( + 78 AS SIGNED ) + COALESCE ( + + MAX( ALL - 8 ), - COUNT( * ), 76 DIV COUNT( - 22 ) ) * 73
----
-506

skipif mysql # not compatible
query I rowsort label-1561
SELECT CAST ( + 78 AS INTEGER ) + COALESCE ( + + MAX ( ALL - 8 ), - COUNT ( * ), 76 / COUNT ( - 22 ) ) * 73
----
-506

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1563
SELECT COALESCE ( + + 8, 75 * 94 / + 37 ) * + CASE - + CASE - - 32 WHEN 82 THEN + 91 * COUNT( * ) ELSE NULL END WHEN 52 THEN NULL WHEN 57 - 39 THEN 0 / CAST( NULL AS SIGNED ) + - 16 * + 3 END / CASE 20 + 91 WHEN 38 - 7 THEN CASE 33 WHEN + COUNT( * ) * 8 THEN 45 * + COALESCE ( COUNT( * ) * 26, + 51 * - 20, + 93 - 4, + 35 ) END + + 94 WHEN - 74 * + 7 + 13 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1563
SELECT COALESCE ( + + 8, 75 * 94 / + 37 ) * + CASE - + CASE - - 32 WHEN 82 THEN + 91 * COUNT ( * ) ELSE NULL END WHEN 52 THEN NULL WHEN 57 - 39 THEN 0 / CAST ( NULL AS INTEGER ) + - 16 * + 3 END / CASE 20 + 91 WHEN 38 - 7 THEN CASE 33 WHEN + COUNT ( * ) * 8 THEN 45 * + COALESCE ( COUNT ( * ) * 26, + 51 * - 20, + 93 - 4, + 35 ) END + + 94 WHEN - 74 * + 7 + 13 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + - 84 - ( - - 59 ) AS col1
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT DISTINCT + - COUNT( * ) * - - 37 * - - COALESCE ( + + 28, - 86, COUNT( * ) ) AS col1, 45 col2
----
-1036
45

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT + - COUNT ( * ) * - - 37 * - - COALESCE ( + + 28, - 86, COUNT ( * ) ) AS col1, 45 col2
----
-1036
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1566
SELECT ALL 84 * - COUNT( * ) * 94 + 38 DIV 79 + + 7 + - + NULLIF ( - ( + 33 ), 22 * + 46 ) AS col0
----
-7856

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL 84 * - COUNT ( * ) * 94 + 38 / 79 + + 7 + - + NULLIF ( - ( + 33 ), 22 * + 46 ) AS col0
----
-7856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1567
SELECT - 54 + + 14 + ( MIN( + 65 ) ) + + 78 DIV + 86 * 58 * 75 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1567
SELECT - 54 + + 14 + ( MIN ( + 65 ) ) + + 78 / + 86 * 58 * 75 AS col2
----
25

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT 9 + - - ( COUNT ( * ) ) * + COUNT ( * ) * 17 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - COUNT( * ) - 54 + - + 74 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-1569
SELECT - COUNT ( * ) - 54 + - + 74 AS col2
----
-129

query II rowsort
SELECT ALL 89 AS col2, - 60 AS col1
----
89
-60

query II rowsort
SELECT 70, + 25 * - - 76 AS col0
----
70
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT 99 + + 32 + 89 * + - 87 * + COUNT( * ) * 18 + + + 96 * + - 86 AS col2
----
-147499

skipif mysql # not compatible
query I rowsort label-1572
SELECT 99 + + 32 + 89 * + - 87 * + COUNT ( * ) * 18 + + + 96 * + - 86 AS col2
----
-147499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT COUNT( DISTINCT - 62 ) DIV NULLIF ( + 28, - + 57 ) * + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT COUNT ( DISTINCT - 62 ) / NULLIF ( + 28, - + 57 ) * + 99 AS col0
----
0

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

query I rowsort
SELECT 17 * + + ( 35 ) + + ( 11 )
----
606

query I rowsort
SELECT + 3 + + 81 AS col0
----
84

query I rowsort
SELECT DISTINCT + 44 + + - 65 + + - 32 AS col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT DISTINCT - COALESCE ( + ( + - 48 ), - 8 DIV + 67 )
----
48

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT - COALESCE ( + ( + - 48 ), - 8 / + 67 )
----
48

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

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

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

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT + 94 + + COUNT ( * ) col2
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1581
SELECT - AVG ( DISTINCT + 41 ) / - ( - CAST( NULL AS DECIMAL ) ) + + 91 * + AVG ( ALL - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT - AVG ( DISTINCT + 41 ) / - ( - CAST ( NULL AS REAL ) ) + + 91 * + AVG ( ALL - 82 )
----
NULL

query I rowsort
SELECT + 83 * + 57 - - - 66 + - 68
----
4597

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT 89 + + MAX( - - 18 ) * - 99 * - 38 AS col2
----
67805

skipif mysql # not compatible
query I rowsort label-1583
SELECT 89 + + MAX ( - - 18 ) * - 99 * - 38 AS col2
----
67805

query I rowsort
SELECT + NULLIF ( - - 22, - 4 + + 98 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1585
SELECT ALL - MAX( ALL CAST( + 53 AS SIGNED ) ) * - - 53 + + 35 AS col1
----
-2774

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL - MAX ( ALL CAST ( + 53 AS INTEGER ) ) * - - 53 + + 35 AS col1
----
-2774

query I rowsort
SELECT ALL - 39 + + + ( + 29 ) - + - NULLIF ( 46, + 11 + - 93 + + 83 - - 63 + - 1 * + 75 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1587
SELECT DISTINCT 26 DIV - NULLIF ( COUNT( DISTINCT + 1 ), + 25 + 34 ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT 26 / - NULLIF ( COUNT ( DISTINCT + 1 ), + 25 + 34 ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL - NULLIF ( - - 74, - + 33 / + COUNT( * ) * + 24 + - 10 + 92 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL - NULLIF ( - - 74, - + 33 / + COUNT ( * ) * + 24 + - 10 + 92 ) col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1589
SELECT 49 DIV 87, CAST( NULL AS SIGNED ) + 22 + + - 81 + + CASE + ( 56 ) WHEN 0 + 30 THEN 58 * CAST( NULL AS DECIMAL ) ELSE NULL END * - 38 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1589
SELECT 49 / 87, CAST ( NULL AS INTEGER ) + 22 + + - 81 + + CASE + ( 56 ) WHEN 0 + 30 THEN 58 * CAST ( NULL AS REAL ) ELSE NULL END * - 38 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT MIN( DISTINCT 32 ) + - 96 + 16 * - + 89 AS col0
----
-1488

skipif mysql # not compatible
query I rowsort label-1590
SELECT MIN ( DISTINCT 32 ) + - 96 + 16 * - + 89 AS col0
----
-1488

onlyif mysql # DIV for integer division: 
query I rowsort label-1591
SELECT DISTINCT + 31 DIV - ( + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT + 31 / - ( + 53 )
----
0

query I rowsort
SELECT ALL 31 - + 92 * - - 46 AS col1
----
-4201

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT NULLIF ( + 29, 37 ) + - - 42 * + - COALESCE ( - + NULLIF ( - + 76, - 66 ), + MAX( ( 89 ) ) - MAX( + 14 ) ) * 12 + + 26 * MAX( DISTINCT 51 ) AS col0
----
-36949

skipif mysql # not compatible
query I rowsort label-1593
SELECT NULLIF ( + 29, 37 ) + - - 42 * + - COALESCE ( - + NULLIF ( - + 76, - 66 ), + MAX ( ( 89 ) ) - MAX ( + 14 ) ) * 12 + + 26 * MAX ( DISTINCT 51 ) AS col0
----
-36949

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT DISTINCT COUNT( * ) * + 64 * 74
----
4736

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT COUNT ( * ) * + 64 * 74
----
4736

query I rowsort
SELECT DISTINCT 19 * + 91 AS col1
----
1729

query I rowsort
SELECT DISTINCT 83 * 41
----
3403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT + 21 + + CAST( + + 15 AS SIGNED ) + - CAST( + 17 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 21 + + CAST ( + + 15 AS INTEGER ) + - CAST ( + 17 AS INTEGER ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT + 61 * - + COALESCE ( + + 33, CASE + + 15 WHEN - ( 87 ) THEN 76 - 46 WHEN 55 THEN 97 * - 76 WHEN COUNT( * ) + + 89 THEN NULL END, 92 ) + - 11
----
-2024

skipif mysql # not compatible
query I rowsort label-1598
SELECT + 61 * - + COALESCE ( + + 33, CASE + + 15 WHEN - ( 87 ) THEN 76 - 46 WHEN 55 THEN 97 * - 76 WHEN COUNT ( * ) + + 89 THEN NULL END, 92 ) + - 11
----
-2024

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

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

query I rowsort
SELECT + ( + ( + 14 ) ) + - - 26 AS col2
----
40

query I rowsort
SELECT ALL 14 + - 77 + 50
----
-13

query I rowsort
SELECT ALL - 48 + - 58
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT - + COALESCE ( - 15, 1, 17 DIV 43 + 25 DIV - 84 DIV ( - 71 ) )
----
15

skipif mysql # not compatible
query I rowsort label-1603
SELECT - + COALESCE ( - 15, 1, 17 / 43 + 25 / - 84 / ( - 71 ) )
----
15

query I rowsort
SELECT ALL + 45 + + 50 AS col1
----
95

query I rowsort
SELECT + - 65 * + + ( + + 12 )
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT DISTINCT - 54 + + - ( + MAX( + NULLIF ( + 39, 43 / 48 ) ) ) + + + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - 54 + + - ( + MAX ( + NULLIF ( + 39, 43 / 48 ) ) ) + + + COUNT ( * )
----
-92

query I rowsort
SELECT - + 27 * + 69
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL - 21 * - + SUM( + 98 )
----
2058

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL - 21 * - + SUM ( + 98 )
----
2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT + 69 * - + COUNT( * ) * - 75 + - 90 / - CASE 38 WHEN - SUM( DISTINCT + 40 ) + + + 85 THEN 60 WHEN + 30 THEN - 38 * - SUM( ALL CAST( NULL AS SIGNED ) ) END + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 69 * - + COUNT ( * ) * - 75 + - 90 / - CASE 38 WHEN - SUM ( DISTINCT + 40 ) + + + 85 THEN 60 WHEN + 30 THEN - 38 * - SUM ( ALL CAST ( NULL AS INTEGER ) ) END + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT + CAST( NULL AS SIGNED ) * + - 69 + + CASE + COUNT( * ) WHEN - - 79 THEN + - 63 + 70 END / - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT + CAST ( NULL AS INTEGER ) * + - 69 + + CASE + COUNT ( * ) WHEN - - 79 THEN + - 63 + 70 END / - - 56
----
NULL

query I rowsort
SELECT ALL + - 87 col0
----
-87

query I rowsort
SELECT ALL 58 * - - 81 - - 46
----
4744

query II rowsort
SELECT + 53 AS col1, 56 + - 3
----
53
53

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

query I rowsort
SELECT NULLIF ( + 91, + 73 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT NULLIF ( - SUM( - + ( - CAST( + 40 AS SIGNED ) ) ), + 3 * - + COUNT( * ) + - 80 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1616
SELECT NULLIF ( - SUM ( - + ( - CAST ( + 40 AS INTEGER ) ) ), + 3 * - + COUNT ( * ) + - 80 ) AS col0
----
-40

query I rowsort
SELECT 44 * - 42 - 4 * + 57 AS col2
----
-2076

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1619
SELECT DISTINCT + 52, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 27 * - ( - 57 ) * + - 86 - 36 * + 14 * - 68 AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1619
SELECT DISTINCT + 52, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 27 * - ( - 57 ) * + - 86 - 36 * + 14 * - 68 AS col1
----
52
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1622
SELECT - 42 * - COUNT( * ) / - CAST( NULL AS DECIMAL ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT - 42 * - COUNT ( * ) / - CAST ( NULL AS REAL ) * 37
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT - COUNT( * ) + 43 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1625
SELECT - COUNT ( * ) + 43 AS col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1626
SELECT + 36 - - + 81 DIV - - COUNT( * ) DIV - + COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1626
SELECT + 36 - - + 81 / - - COUNT ( * ) / - + COUNT ( * ) AS col2
----
-45

query I rowsort
SELECT ALL ( + - 4 ) col0
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT - COALESCE ( - 35, + 3 ) + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - COALESCE ( - 35, + 3 ) + COUNT ( * ) AS col2
----
36

query I rowsort
SELECT ALL 98 + 29
----
127

query I rowsort
SELECT ALL 2 + - - 93 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1632
SELECT DISTINCT + 8 + - NULLIF ( + NULLIF ( CASE - + CAST( NULL AS DECIMAL ) WHEN + + 12 + - + 74 THEN NULL WHEN - 38 * + 42 * 58 THEN - ( - CAST( + 54 AS SIGNED ) ) + + COUNT( * ) * - 5 WHEN COALESCE ( 77, 23, - CASE + 3 WHEN - 82 + + COUNT( * ) THEN NULL WHEN + 68 THEN + 40 WHEN 23 THEN AVG ( - ( - 55 ) ) ELSE 81 END ) * - 58 THEN NULL ELSE 24 END, 73 * 72 + + COALESCE ( + 7, 68 * - 24 + - COALESCE ( - 45, 41 * CAST( NULL AS SIGNED ), + MIN( DISTINCT 67 ) - + 68 ) ) / 96 ), - 41 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT + 8 + - NULLIF ( + NULLIF ( CASE - + CAST ( NULL AS REAL ) WHEN + + 12 + - + 74 THEN NULL WHEN - 38 * + 42 * 58 THEN - ( - CAST ( + 54 AS INTEGER ) ) + + COUNT ( * ) * - 5 WHEN COALESCE ( 77, 23, - CASE + 3 WHEN - 82 + + COUNT ( * ) THEN NULL WHEN + 68 THEN + 40 WHEN 23 THEN AVG ( - ( - 55 ) ) ELSE 81 END ) * - 58 THEN NULL ELSE 24 END, 73 * 72 + + COALESCE ( + 7, 68 * - 24 + - COALESCE ( - 45, 41 * CAST ( NULL AS INTEGER ), + MIN ( DISTINCT 67 ) - + 68 ) ) / 96 ), - 41 ) AS col2
----
-16

query I rowsort
SELECT + 86 + + + 96 + - 5 * 47
----
-53

query I rowsort
SELECT DISTINCT 29 + - - 5
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL - 16 + + 71 + COALESCE ( + 42, - NULLIF ( - 44, - + CASE - COUNT( * ) WHEN 28 + + + COUNT( * ) THEN + AVG ( ALL 43 ) - 59 WHEN 76 + 0 THEN NULL ELSE NULL END * 17 ) )
----
97

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - 16 + + 71 + COALESCE ( + 42, - NULLIF ( - 44, - + CASE - COUNT ( * ) WHEN 28 + + + COUNT ( * ) THEN + AVG ( ALL 43 ) - 59 WHEN 76 + 0 THEN NULL ELSE NULL END * 17 ) )
----
97

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

query I rowsort
SELECT - - ( 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1638
SELECT - + COALESCE ( + 14, 97 ) + - + MAX( ALL + 38 ) * 79 AS col1, + CASE - - CAST( + 21 AS SIGNED ) WHEN - + 22 * 96 THEN ( + 57 ) WHEN + 9 * ( 42 ) + + 95 THEN NULL END * 27
----
-3016
NULL

skipif mysql # not compatible
query II rowsort label-1638
SELECT - + COALESCE ( + 14, 97 ) + - + MAX ( ALL + 38 ) * 79 AS col1, + CASE - - CAST ( + 21 AS INTEGER ) WHEN - + 22 * 96 THEN ( + 57 ) WHEN + 9 * ( 42 ) + + 95 THEN NULL END * 27
----
-3016
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT + NULLIF ( + 62, - 15 + COUNT( * ) + + 3 + + 68 + 77 + - ( - - 4 ) - + + ( 26 ) * - 39 * 47 )
----
62

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT + NULLIF ( + 62, - 15 + COUNT ( * ) + + 3 + + 68 + 77 + - ( - - 4 ) - + + ( 26 ) * - 39 * 47 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL - COALESCE ( - COUNT( * ), - ( - + COUNT( * ) ) + + 4, 11 + + 21 ) * + + 95 * + 54
----
5130

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL - COALESCE ( - COUNT ( * ), - ( - + COUNT ( * ) ) + + 4, 11 + + 21 ) * + + 95 * + 54
----
5130

query II rowsort
SELECT ALL + 4 AS col1, 7 AS col1
----
4
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT DISTINCT 47 DIV - 60 - 95
----
-95

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT 47 / - 60 - 95
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1644
SELECT - 97 / + ( + 29 ) + - CAST( NULL AS DECIMAL ) + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT - 97 / + ( + 29 ) + - CAST ( NULL AS REAL ) + + 52 AS col1
----
NULL

query I rowsort
SELECT + 9 * + + 97
----
873

query I rowsort
SELECT ALL 14 * 2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT + 73 DIV - + 27
----
-2

skipif mysql # not compatible
query I rowsort label-1647
SELECT + 73 / - + 27
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT CAST( NULL AS SIGNED ) * 52 * MIN( + - 19 ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT CAST ( NULL AS INTEGER ) * 52 * MIN ( + - 19 ) + + 96
----
NULL

query II rowsort
SELECT DISTINCT + 55, - 46 + + - 82 AS col0
----
55
-128

query I rowsort
SELECT + ( 75 ) + - 16 AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1651
SELECT - 43 + + 26, + ( - 63 ) DIV + + 58 * ( + - COUNT( - - 37 ) ) AS col0
----
-17
1

skipif mysql # not compatible
query II rowsort label-1651
SELECT - 43 + + 26, + ( - 63 ) / + + 58 * ( + - COUNT ( - - 37 ) ) AS col0
----
-17
1

query II rowsort
SELECT ALL + 39, + 10 AS col0
----
39
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - 19 * + - ( + 79 ) * + + COUNT( * ) AS col1
----
1501

skipif mysql # not compatible
query I rowsort label-1653
SELECT - 19 * + - ( + 79 ) * + + COUNT ( * ) AS col1
----
1501

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT CASE - 40 WHEN 8 THEN NULL WHEN - 94 * 49 * 7 THEN NULL ELSE + - 9 DIV - ( - ( - - 80 ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-1656
SELECT CASE - 40 WHEN 8 THEN NULL WHEN - 94 * 49 * 7 THEN NULL ELSE + - 9 / - ( - ( - - 80 ) ) END
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1657
SELECT 87 * 33 * + MIN( + ( 1 ) ) + - COUNT( * ) AS col0, 13 * CAST( NULL AS SIGNED ) + + 5 AS col0
----
2870
NULL

skipif mysql # not compatible
query II rowsort label-1657
SELECT 87 * 33 * + MIN ( + ( 1 ) ) + - COUNT ( * ) AS col0, 13 * CAST ( NULL AS INTEGER ) + + 5 AS col0
----
2870
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1658
SELECT CASE - 13 WHEN - 47 * - 5 THEN + CAST( NULL AS DECIMAL ) * + + ( + 5 ) + + 25 + CASE - - 56 WHEN - 91 THEN 5 ELSE 32 + COUNT( * ) END + 45 WHEN - 85 * - 16 + COUNT( * ) THEN + SUM( 57 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT CASE - 13 WHEN - 47 * - 5 THEN + CAST ( NULL AS REAL ) * + + ( + 5 ) + + 25 + CASE - - 56 WHEN - 91 THEN 5 ELSE 32 + COUNT ( * ) END + 45 WHEN - 85 * - 16 + COUNT ( * ) THEN + SUM ( 57 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1659
SELECT - 83 * - 64, 87 * - + 99 + - AVG ( ALL + CASE + NULLIF ( 54, + 16 ) WHEN + - 59 THEN - ( 31 ) + ( 47 ) WHEN - 74 - - CAST( 53 + 62 AS SIGNED ) THEN NULL END ) AS col1
----
5312
NULL

skipif mysql # not compatible
query II rowsort label-1659
SELECT - 83 * - 64, 87 * - + 99 + - AVG ( ALL + CASE + NULLIF ( 54, + 16 ) WHEN + - 59 THEN - ( 31 ) + ( 47 ) WHEN - 74 - - CAST ( 53 + 62 AS INTEGER ) THEN NULL END ) AS col1
----
5312
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - MAX( - 34 ) + + + 46 * - - 89
----
4128

skipif mysql # not compatible
query I rowsort label-1660
SELECT - MAX ( - 34 ) + + + 46 * - - 89
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL + COUNT( * ) * ( - 73 ) + + - 53
----
-126

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + COUNT ( * ) * ( - 73 ) + + - 53
----
-126

query I rowsort
SELECT ALL + - 24 * - 92 + + 57 * + - 86
----
-2694

query I rowsort
SELECT DISTINCT - + 19 * - 99 AS col0
----
1881

query I rowsort
SELECT DISTINCT + 79 + - + 33 AS col2
----
46

query I rowsort
SELECT - - COALESCE ( + 27, 91, + 91 )
----
27

query I rowsort
SELECT DISTINCT - - 60 + - - 4 * + 61 AS col2
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1667
SELECT MAX( ALL + + 96 ) * + 83 * - 50 DIV + COUNT( * ) AS col0
----
-398400

skipif mysql # not compatible
query I rowsort label-1667
SELECT MAX ( ALL + + 96 ) * + 83 * - 50 / + COUNT ( * ) AS col0
----
-398400

query II rowsort
SELECT - 76 AS col2, - 56 - + 72 + + 79 AS col2
----
-76
-49

query II rowsort
SELECT - 37 AS col2, 98 AS col1
----
-37
98

query II rowsort
SELECT ALL NULLIF ( - - 86, + 58 + + + 95 ) AS col2, 35 * + ( - - 57 ) + + NULLIF ( 34, + + 36 * ( - 87 ) - - 85 )
----
86
2029

onlyif mysql # aggregate syntax: 
query II rowsort label-1671
SELECT - ( + 76 ) * - - MAX( DISTINCT + 20 ) AS col1, 45
----
-1520
45

skipif mysql # not compatible
query II rowsort label-1671
SELECT - ( + 76 ) * - - MAX ( DISTINCT + 20 ) AS col1, 45
----
-1520
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT + 81 + + ( ( 49 ) ) DIV - 17
----
79

skipif mysql # not compatible
query I rowsort label-1672
SELECT + 81 + + ( ( 49 ) ) / - 17
----
79

query I rowsort
SELECT DISTINCT 21 * + 91
----
1911

query I rowsort
SELECT ALL - 13 * - 29 AS col0
----
377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1675
SELECT CASE + + 33 WHEN CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) + + 27 - CASE 37 WHEN - - 89 + ( + COUNT( * ) ) THEN NULL ELSE - AVG ( 85 ) * + 67 - COUNT( * ) * 13 END - + 67 THEN NULL WHEN 15 THEN 94 END + - 76 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT CASE + + 33 WHEN CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) + + 27 - CASE 37 WHEN - - 89 + ( + COUNT ( * ) ) THEN NULL ELSE - AVG ( 85 ) * + 67 - COUNT ( * ) * 13 END - + 67 THEN NULL WHEN 15 THEN 94 END + - 76 * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT - SUM( ALL - COALESCE ( - ( - - 18 ), - 90 + + 4 ) ) AS col2, + ( + - 17 )
----
-18
-17

skipif mysql # not compatible
query II rowsort label-1676
SELECT - SUM ( ALL - COALESCE ( - ( - - 18 ), - 90 + + 4 ) ) AS col2, + ( + - 17 )
----
-18
-17

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

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

query I rowsort
SELECT + 8 * 48
----
384

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

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

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

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - + 76 * COUNT ( 5 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ( - ( + COUNT( * ) ) ) + + + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1681
SELECT ( - ( + COUNT ( * ) ) ) + + + 23 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1682
SELECT 53 DIV SUM( - 44 ) * 60 + - - 84 AS col2, 24 AS col1
----
24
24

skipif mysql # not compatible
query II rowsort label-1682
SELECT 53 / SUM ( - 44 ) * 60 + - - 84 AS col2, 24 AS col1
----
24
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1683
SELECT ALL - COALESCE ( 61, + - 21 * + + COUNT( ALL 4 ) * + 54 + 6 + - + CAST( NULL AS SIGNED ), 5 DIV + 28 ), 86 - + 95 - + 82 col2
----
-61
-91

skipif mysql # not compatible
query II rowsort label-1683
SELECT ALL - COALESCE ( 61, + - 21 * + + COUNT ( ALL 4 ) * + 54 + 6 + - + CAST ( NULL AS INTEGER ), 5 / + 28 ), 86 - + 95 - + 82 col2
----
-61
-91

query I rowsort
SELECT 94 * + 84 col1
----
7896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1685
SELECT DISTINCT 96 + - 31 + - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT 96 + - 31 + - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT 84 * + MAX( 82 )
----
6888

skipif mysql # not compatible
query I rowsort label-1687
SELECT 84 * + MAX ( 82 )
----
6888

query I rowsort
SELECT 3 / - CASE - - 75 WHEN - + ( - 57 ) - + 84 * 32 THEN + 53 * - 19 * + + 30 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL MIN( DISTINCT 54 ) + + 40 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL MIN ( DISTINCT 54 ) + + 40 AS col0
----
94

query I rowsort
SELECT 19 * + 85 - - ( - 17 ) * + 38
----
969

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT ALL 6 * + 90 DIV - 10
----
-54

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL 6 * + 90 / - 10
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL - - CASE 89 WHEN - - MAX( + + 61 ) * + 22 / 42 + 76 + - 44 / - CASE + CAST( + - ( + ( CAST( - 62 AS SIGNED ) ) ) AS SIGNED ) WHEN COUNT( * ) THEN - 30 WHEN + 38 THEN 0 * - 79 WHEN - 3 * 10 THEN - 1 + CAST( 91 AS SIGNED ) * - 71 ELSE NULL END / 20 THEN NULL ELSE NULLIF ( + 53, 2 ) + + 3 END AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - - CASE 89 WHEN - - MAX ( + + 61 ) * + 22 / 42 + 76 + - 44 / - CASE + CAST ( + - ( + ( CAST ( - 62 AS INTEGER ) ) ) AS INTEGER ) WHEN COUNT ( * ) THEN - 30 WHEN + 38 THEN 0 * - 79 WHEN - 3 * 10 THEN - 1 + CAST ( 91 AS INTEGER ) * - 71 ELSE NULL END / 20 THEN NULL ELSE NULLIF ( + 53, 2 ) + + 3 END AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL - - CASE + 21 WHEN 0 THEN - 71 WHEN - 22 THEN + - 27 * + + 44 * + + 72 END / + - CASE - 64 WHEN - 87 * 97 * CASE - NULLIF ( + 67, - 23 ) WHEN - 68 THEN + 54 WHEN + COUNT( * ) THEN NULL ELSE + 36 * - 65 END THEN + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL - - CASE + 21 WHEN 0 THEN - 71 WHEN - 22 THEN + - 27 * + + 44 * + + 72 END / + - CASE - 64 WHEN - 87 * 97 * CASE - NULLIF ( + 67, - 23 ) WHEN - 68 THEN + 54 WHEN + COUNT ( * ) THEN NULL ELSE + 36 * - 65 END THEN + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL + 49 + - MAX( ALL 24 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + 49 + - MAX ( ALL 24 ) AS col1
----
25

query II rowsort
SELECT DISTINCT + 27 + + 10 AS col2, + 45 * - ( - - 95 ) + 11 AS col0
----
37
-4264

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL - 69 + 2 + 50 * - + 63 * + COUNT( * ) col1
----
-3217

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - 69 + 2 + 50 * - + 63 * + COUNT ( * ) col1
----
-3217

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT - COUNT( * ) + + 4 DIV + COUNT( * ) + - + 61 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1698
SELECT - COUNT ( * ) + + 4 / + COUNT ( * ) + - + 61 AS col2
----
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT 20 * + - 91 * - + COALESCE ( - + 87, - 68 ) + CAST( + 9 AS SIGNED ) AS col1
----
-158331

skipif mysql # not compatible
query I rowsort label-1700
SELECT 20 * + - 91 * - + COALESCE ( - + 87, - 68 ) + CAST ( + 9 AS INTEGER ) AS col1
----
-158331

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT - 4 * NULLIF ( - COUNT( * ), - 65 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1701
SELECT - 4 * NULLIF ( - COUNT ( * ), - 65 ) AS col0
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL + 34 - - COUNT( 72 )
----
35

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL + 34 - - COUNT ( 72 )
----
35

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

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

query I rowsort
SELECT ALL - 42 * + 55 * 60
----
-138600

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT NULLIF ( - MAX( - - 21 ), - 24 )
----
-21

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT NULLIF ( - MAX ( - - 21 ), - 24 )
----
-21

query I rowsort
SELECT 48 + - - 77 * 13 AS col0
----
1049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1708
SELECT ALL + CASE - 52 WHEN + 51 THEN NULL WHEN + + 24 / 34 THEN - CAST( NULL AS SIGNED ) / COUNT( * ) * - 23 END - MAX( DISTINCT - - 76 ) * 37 + - CASE - 1 WHEN 11 + - 83 THEN 16 WHEN - COUNT( * ) THEN 20 + NULLIF ( - COUNT( * ) + + 89, - 4 / + 36 + COALESCE ( 76 - 48, COUNT( * ), CASE 27 WHEN COUNT( * ) / - 85 THEN 85 / + 17 END * 39 ) ) * CAST( NULL AS SIGNED ) END + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + CASE - 52 WHEN + 51 THEN NULL WHEN + + 24 / 34 THEN - CAST ( NULL AS INTEGER ) / COUNT ( * ) * - 23 END - MAX ( DISTINCT - - 76 ) * 37 + - CASE - 1 WHEN 11 + - 83 THEN 16 WHEN - COUNT ( * ) THEN 20 + NULLIF ( - COUNT ( * ) + + 89, - 4 / + 36 + COALESCE ( 76 - 48, COUNT ( * ), CASE 27 WHEN COUNT ( * ) / - 85 THEN 85 / + 17 END * 39 ) ) * CAST ( NULL AS INTEGER ) END + 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT - 37 DIV + - 81 col2
----
0

skipif mysql # not compatible
query I rowsort label-1709
SELECT - 37 / + - 81 col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1710
SELECT - SUM ( - 32 ) AS col0
----
32

query I rowsort
SELECT - ( + NULLIF ( - + 16, - + 23 ) ) AS col0
----
16

query I rowsort
SELECT 75 - + 13 AS col2
----
62

query II rowsort
SELECT - 3 col2, 94
----
-3
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1714
SELECT 84 + + + 67 DIV + 72 col2, 82 * 54
----
84
4428

skipif mysql # not compatible
query II rowsort label-1714
SELECT 84 + + + 67 / + 72 col2, 82 * 54
----
84
4428

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT ALL MIN( 49 ) * + 54 + 83 + + 53
----
2782

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL MIN ( 49 ) * + 54 + 83 + + 53
----
2782

query I rowsort
SELECT 94 * - + 71 AS col0
----
-6674

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL ( - + 4 ) * + + 6 + + + 81 * 16 + - COUNT( * ) AS col1
----
1271

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL ( - + 4 ) * + + 6 + + + 81 * 16 + - COUNT ( * ) AS col1
----
1271

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT DISTINCT + COUNT( * ) * 49 * 16 + COUNT( * ) col1
----
785

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT + COUNT ( * ) * 49 * 16 + COUNT ( * ) col1
----
785

query I rowsort
SELECT 10 - + + COALESCE ( - 0, - 11 * - 14 )
----
10

query I rowsort
SELECT 84 + + 14 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT 93 + - COUNT( * ) + - + 8 + + 83
----
167

skipif mysql # not compatible
query I rowsort label-1721
SELECT 93 + - COUNT ( * ) + - + 8 + + 83
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT 29 * ( - 29 ) * - 59 - - + CAST( NULL AS SIGNED ) + + + NULLIF ( + ( + + CAST( NULL AS SIGNED ) ), + + COUNT( - 79 ) + + - 75 ) / + 35 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT 29 * ( - 29 ) * - 59 - - + CAST ( NULL AS INTEGER ) + + + NULLIF ( + ( + + CAST ( NULL AS INTEGER ) ), + + COUNT ( - 79 ) + + - 75 ) / + 35 * - 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT ALL - ( - 7 ) * + 91 * 98 * - 68 * - 73 + - ( + 2 ) * - 81 DIV 45 DIV 84
----
309882664

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL - ( - 7 ) * + 91 * 98 * - 68 * - 73 + - ( + 2 ) * - 81 / 45 / 84
----
309882664

query II rowsort
SELECT + 81, 85 AS col0
----
81
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - 0 * ( COUNT( * ) ) * + 89 + - NULLIF ( + + 82, - + 12 + - 21 + - 86 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 0 * ( COUNT ( * ) ) * + 89 + - NULLIF ( + + 82, - + 12 + - 21 + - 86 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL - COUNT( DISTINCT - + 76 ) * + 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - COUNT ( DISTINCT - + 76 ) * + 72 AS col1
----
-72

query I rowsort
SELECT + 53 + 45 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL + 42 * - - 35 * + COUNT( * ) + - + 42
----
1428

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + 42 * - - 35 * + COUNT ( * ) + - + 42
----
1428

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1729
SELECT ALL + 18 * CAST( NULL AS DECIMAL ) + 53 - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + 18 * CAST ( NULL AS REAL ) + 53 - - 7
----
NULL

query I rowsort
SELECT + - ( + 63 ) * 33 - + + 94 col0
----
-2173

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT - 22 * - MIN( - 13 ) + + - 26 + + 39 * ( MIN( ALL - 84 ) ) + MAX( ALL 94 ) - COUNT( - 20 ) * + + 58 + - 51 * 37
----
-5439

skipif mysql # not compatible
query I rowsort label-1731
SELECT - 22 * - MIN ( - 13 ) + + - 26 + + 39 * ( MIN ( ALL - 84 ) ) + MAX ( ALL 94 ) - COUNT ( - 20 ) * + + 58 + - 51 * 37
----
-5439

query I rowsort
SELECT + + 46 * 26 + 37 + - 12 AS col1
----
1221

query I rowsort
SELECT ALL - 38 - + 6
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT + - 32 * CAST( NULL AS SIGNED ) * - - ( + - CASE + 23 WHEN - 24 * NULLIF ( + 55, + + COUNT( * ) ) THEN NULL WHEN - 83 THEN 92 / 14 * 26 + + 22 * + 75 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT + - 32 * CAST ( NULL AS INTEGER ) * - - ( + - CASE + 23 WHEN - 24 * NULLIF ( + 55, + + COUNT ( * ) ) THEN NULL WHEN - 83 THEN 92 / 14 * 26 + + 22 * + 75 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT + 97 * COUNT( * ) * - + 2 * + 51
----
-9894

skipif mysql # not compatible
query I rowsort label-1735
SELECT + 97 * COUNT ( * ) * - + 2 * + 51
----
-9894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1736
SELECT DISTINCT + CASE + 1 WHEN + COUNT( * ) * + + 12 - + + 5 * + CAST( + + COUNT( * ) AS SIGNED ) + - 37 * - 30 + SUM( DISTINCT + - 20 ) THEN NULL WHEN - + 37 THEN - 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT + CASE + 1 WHEN + COUNT ( * ) * + + 12 - + + 5 * + CAST ( + + COUNT ( * ) AS INTEGER ) + - 37 * - 30 + SUM ( DISTINCT + - 20 ) THEN NULL WHEN - + 37 THEN - 61 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT + COUNT( * ) - + - 3
----
4

skipif mysql # not compatible
query I rowsort label-1738
SELECT + COUNT ( * ) - + - 3
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1739
SELECT + + CAST( NULL AS SIGNED ) / + + 2 + COUNT( * ) * + + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT + + CAST ( NULL AS INTEGER ) / + + 2 + COUNT ( * ) * + + 38 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT ALL + 11 DIV 83 + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + 11 / 83 + - 17
----
-17

query I rowsort
SELECT + + 5 * + 60 AS col2
----
300

query I rowsort
SELECT + - 31 * 82
----
-2542

query I rowsort
SELECT - + 25 + - 37
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL - MAX( ALL + + 63 ) * ( - 15 )
----
945

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL - MAX ( ALL + + 63 ) * ( - 15 )
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT + MIN( - 71 ) + - ( 61 ) AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-1745
SELECT + MIN ( - 71 ) + - ( 61 ) AS col1
----
-132

query I rowsort
SELECT DISTINCT 97 + + 30 AS col0
----
127

query I rowsort
SELECT DISTINCT - COALESCE ( - 24, - + 4 ) + + - 48 * + 69
----
-3288

query I rowsort
SELECT + 14 + - 87 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT ALL - 25 / - 5 * CAST( NULL AS SIGNED ) / + - AVG ( ALL 55 ) / 6 + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL - 25 / - 5 * CAST ( NULL AS INTEGER ) / + - AVG ( ALL 55 ) / 6 + - 57
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1750
SELECT COUNT( * ) DIV 94 * + 41 + + + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1750
SELECT COUNT ( * ) / 94 * + 41 + + + 81 AS col1
----
81

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

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

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

query I rowsort
SELECT ALL + ( + ( 22 ) ) * + + 98 + + 29 AS col2
----
2185

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT - 77 DIV - + 51
----
1

skipif mysql # not compatible
query I rowsort label-1754
SELECT - 77 / - + 51
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT ALL + 48 DIV + + 31 + - 74 - SUM( + 85 ) - 63 + + 80
----
-141

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL + 48 / + + 31 + - 74 - SUM ( + 85 ) - 63 + + 80
----
-141

query I rowsort
SELECT DISTINCT - 92 * + 48 + - 16 col2
----
-4432

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL + COUNT( * ) * + 7 * - 8 - + - 56
----
0

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + COUNT ( * ) * + 7 * - 8 - + - 56
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT - COUNT ( * ) / + - 11 col0
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT ALL - - 99 * + 49 + + ( - - 88 ) AS col1, + COUNT( * ) AS col1
----
4939
1

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL - - 99 * + 49 + + ( - - 88 ) AS col1, + COUNT ( * ) AS col1
----
4939
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT DISTINCT + 0 * - CAST( - 95 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + 0 * - CAST ( - 95 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT + + NULLIF ( + - 87, - - 7 )
----
-87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1765
SELECT ALL + - CAST( + 45 AS SIGNED ) AS col1, + 55 AS col1
----
-45
55

skipif mysql # not compatible
query II rowsort label-1765
SELECT ALL + - CAST ( + 45 AS INTEGER ) AS col1, + 55 AS col1
----
-45
55

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

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

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

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

query II rowsort
SELECT + + 20 * + - 51 AS col0, - 2 * + 94 AS col2
----
-1020
-188

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT - - 51 + + COUNT( * ), + 86 col1
----
52
86

skipif mysql # not compatible
query II rowsort label-1770
SELECT - - 51 + + COUNT ( * ), + 86 col1
----
52
86

query I rowsort
SELECT ALL + 82 * - 86 * 59 * - - 91 * - 36 AS col2
----
1363038768

query I rowsort
SELECT - + 76 + 31
----
-45

query I rowsort
SELECT + + 71 - - 4 + + ( + 84 ) col1
----
159

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT + 97 * + 71 - - - MAX( ALL COALESCE ( 72, - NULLIF ( + + 48, - 29 * 89 ) ) ) + + 99 - - 88 * + - 70 / 27 + 85 + CAST( NULL AS SIGNED ) * MIN( DISTINCT 48 ) * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT + 97 * + 71 - - - MAX ( ALL COALESCE ( 72, - NULLIF ( + + 48, - 29 * 89 ) ) ) + + 99 - - 88 * + - 70 / 27 + 85 + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT 48 ) * 51
----
NULL

query I rowsort
SELECT + - 96 - + 67 + + 58
----
-105

query II rowsort
SELECT DISTINCT + 32 * + 77, 1 * 80 AS col0
----
2464
80

query I rowsort
SELECT + 15 * 61
----
915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT + 55 + - CAST( 72 AS SIGNED ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-1779
SELECT + 55 + - CAST ( 72 AS INTEGER ) col0
----
-17

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

query I rowsort
SELECT + - 94 * + + 6 AS col0
----
-564

query II rowsort
SELECT DISTINCT - 88 + 91 AS col0, 70
----
3
70

query I rowsort
SELECT ALL 56 * 74 AS col0
----
4144

query I rowsort
SELECT + 26 + 21 + - 89 + + 59 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT ALL 38 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL 38 / 65 AS col1
----
0

query I rowsort
SELECT ALL 50 + - - 16 * + 74
----
1234

query I rowsort
SELECT + 55 + + 39
----
94

query II rowsort
SELECT 56 AS col2, - 38 col1
----
56
-38

query I rowsort
SELECT + 37 * - 38
----
-1406

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

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT COUNT ( * ) + 55 AS col1
----
56

query I rowsort
SELECT - 72 + - - 27 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1792
SELECT ALL 84 - + MAX( + + 88 ) + + NULLIF ( 70, - 89 ) AS col1, - 85 * + 27 * + + 32 col2
----
66
-73440

skipif mysql # not compatible
query II rowsort label-1792
SELECT ALL 84 - + MAX ( + + 88 ) + + NULLIF ( 70, - 89 ) AS col1, - 85 * + 27 * + + 32 col2
----
66
-73440

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT 60 DIV - 72 + + 7 * + ( 52 ) AS col0
----
364

skipif mysql # not compatible
query I rowsort label-1793
SELECT 60 / - 72 + + 7 * + ( 52 ) AS col0
----
364

query I rowsort
SELECT 47 * ( 91 )
----
4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT CAST( NULL AS SIGNED ) + - NULLIF ( + + 17, COUNT( * ) ) + - + MAX( DISTINCT + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT CAST ( NULL AS INTEGER ) + - NULLIF ( + + 17, COUNT ( * ) ) + - + MAX ( DISTINCT + 26 )
----
NULL

query I rowsort
SELECT ALL + 24 - + 74
----
-50

query I rowsort
SELECT - 56 + + 13
----
-43

query II rowsort
SELECT - 0 * 69 - - 39 AS col0, - NULLIF ( - 63, + + 99 )
----
39
63

query I rowsort
SELECT 74 * - - 86 AS col1
----
6364

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

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT - + CAST ( + 14 AS INTEGER ) AS col2
----
-14

query II rowsort
SELECT ALL - 64 AS col1, + COALESCE ( - 32, - 21, - - 14 * + 25 )
----
-64
-32

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

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

query I rowsort
SELECT 54 + - 17
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT 84 DIV + 79
----
1

skipif mysql # not compatible
query I rowsort label-1804
SELECT 84 / + 79
----
1

query I rowsort
SELECT DISTINCT - 44 * 61
----
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - NULLIF ( 51, + + 0 + + NULLIF ( + + 86, + + 74 + + COUNT( * ) ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - NULLIF ( 51, + + 0 + + NULLIF ( + + 86, + + 74 + + COUNT ( * ) ) ) AS col1
----
-51

query I rowsort
SELECT DISTINCT + 53 * 9 - ( 41 ) AS col2
----
436

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

skipif mysql # not compatible
query I rowsort label-1808
SELECT 64 / COUNT ( * ) + 26
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT - ( - COUNT( * ) ) * COALESCE ( + 55, - 21 )
----
55

skipif mysql # not compatible
query I rowsort label-1809
SELECT - ( - COUNT ( * ) ) * COALESCE ( + 55, - 21 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT + ( + + NULLIF ( - ( COUNT( * ) ), + 96 * + 3 + + 72 ) ) + + - MAX( DISTINCT - 97 )
----
96

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + ( + + NULLIF ( - ( COUNT ( * ) ), + 96 * + 3 + + 72 ) ) + + - MAX ( DISTINCT - 97 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT + + 38 + - + COUNT( * ) * + - 80 * - + 70 col2
----
-5562

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT + + 38 + - + COUNT ( * ) * + - 80 * - + 70 col2
----
-5562

query I rowsort
SELECT ALL ( - 24 ) + + 25
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT 2 * + + NULLIF ( CASE COUNT( * ) WHEN + 42 / - + 73 * + 37 + + 89 THEN NULL WHEN + 4 THEN + - 39 END, - + 55 + + ( 59 ) + 96 + - - 37 + - 62 * - 7 * 86 ) * - ( + 22 / - MAX( DISTINCT + 28 ) + 53 ) - + COUNT( ALL 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT 2 * + + NULLIF ( CASE COUNT ( * ) WHEN + 42 / - + 73 * + 37 + + 89 THEN NULL WHEN + 4 THEN + - 39 END, - + 55 + + ( 59 ) + 96 + - - 37 + - 62 * - 7 * 86 ) * - ( + 22 / - MAX ( DISTINCT + 28 ) + 53 ) - + COUNT ( ALL 11 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT ALL + 59 + + - 37 - + MAX( + + 52 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL + 59 + + - 37 - + MAX ( + + 52 ) AS col0
----
-30

query II rowsort
SELECT ALL 45 AS col2, 3 + 15
----
45
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT DISTINCT ( 98 ) * 48 * ( - + 90 ) + - 67 DIV - - 94 * + 48
----
-423360

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT ( 98 ) * 48 * ( - + 90 ) + - 67 / - - 94 * + 48
----
-423360

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT 19 + + - ( + NULLIF ( + 15, - + NULLIF ( CASE WHEN - 93 IS NOT NULL THEN NULL ELSE - 48 END, - 84 + - 28 + - - 74 ) * + 17 * COUNT( * ) / - MAX( + - 72 ) + 64 ) ) + COALESCE ( 33, - 46 ) * + 70
----
2314

skipif mysql # not compatible
query I rowsort label-1817
SELECT 19 + + - ( + NULLIF ( + 15, - + NULLIF ( CASE WHEN - 93 IS NOT NULL THEN NULL ELSE - 48 END, - 84 + - 28 + - - 74 ) * + 17 * COUNT ( * ) / - MAX ( + - 72 ) + 64 ) ) + COALESCE ( 33, - 46 ) * + 70
----
2314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1818
SELECT DISTINCT 44 + + CAST( NULL AS SIGNED ) + + + CASE - CAST( NULL AS SIGNED ) WHEN 66 * + 32 / - 2 + + 90 THEN + - 56 WHEN 29 THEN NULL WHEN 92 + 85 + + 31 / + 68 THEN NULL WHEN + NULLIF ( 73, 49 ) THEN NULL ELSE 87 + + 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT 44 + + CAST ( NULL AS INTEGER ) + + + CASE - CAST ( NULL AS INTEGER ) WHEN 66 * + 32 / - 2 + + 90 THEN + - 56 WHEN 29 THEN NULL WHEN 92 + 85 + + 31 / + 68 THEN NULL WHEN + NULLIF ( 73, 49 ) THEN NULL ELSE 87 + + 86 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1819
SELECT NULLIF ( 53, + 83 ) + + + COUNT( * ) DIV - - 21 + + - 94 + + 14 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1819
SELECT NULLIF ( 53, + 83 ) + + + COUNT ( * ) / - - 21 + + - 94 + + 14 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-1820
SELECT 32 * + 80, + 33 + - + 95 DIV - 82 - + - 7 col0
----
2560
41

skipif mysql # not compatible
query II rowsort label-1820
SELECT 32 * + 80, + 33 + - + 95 / - 82 - + - 7 col0
----
2560
41

query I rowsort
SELECT 3 * - 58 col0
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT ALL 96 * COUNT( * ) DIV 7 * 89
----
1157

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL 96 * COUNT ( * ) / 7 * 89
----
1157

query I rowsort
SELECT 9 + + - 1 AS col0
----
8

query I rowsort
SELECT DISTINCT - 55 - - 57 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT COUNT( * ) + - - COUNT( * ) + + CASE - COUNT( * ) WHEN - ( 23 ) / + 64 * - 94 * + 1 + - 69 + - CASE - COUNT( * ) WHEN 57 THEN + CASE ( + 47 ) WHEN + 6 * - COUNT( * ) THEN 44 END * - 60 - 99 WHEN 83 THEN NULL END * - MIN( + 3 / + 69 ) THEN ( 6 ) WHEN + 40 THEN NULL END * 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT COUNT ( * ) + - - COUNT ( * ) + + CASE - COUNT ( * ) WHEN - ( 23 ) / + 64 * - 94 * + 1 + - 69 + - CASE - COUNT ( * ) WHEN 57 THEN + CASE ( + 47 ) WHEN + 6 * - COUNT ( * ) THEN 44 END * - 60 - 99 WHEN 83 THEN NULL END * - MIN ( + 3 / + 69 ) THEN ( 6 ) WHEN + 40 THEN NULL END * 16 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT COALESCE ( + 15, + COUNT( * ) ) * - - 0 * CASE 50 WHEN 96 THEN - MIN( ALL - 69 ) * + 19 ELSE + 49 END + 97 + 66 * 16 AS col1
----
1153

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT COALESCE ( + 15, + COUNT ( * ) ) * - - 0 * CASE 50 WHEN 96 THEN - MIN ( ALL - 69 ) * + 19 ELSE + 49 END + 97 + 66 * 16 AS col1
----
1153

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT DISTINCT 83 DIV + + 67
----
1

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT 83 / + + 67
----
1

query I rowsort
SELECT 18 * - 8
----
-144

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

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL COUNT ( * ) - - 99 * + 19 AS col2
----
1882

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT MIN( + 70 ) AS col0, 49
----
70
49

skipif mysql # not compatible
query II rowsort label-1831
SELECT MIN ( + 70 ) AS col0, 49
----
70
49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL - + CASE 65 WHEN CAST( - 96 AS SIGNED ) THEN - 73 WHEN + 53 * + - 45 * + 73 + - - 20 / - 93 THEN - - 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - + CASE 65 WHEN CAST ( - 96 AS INTEGER ) THEN - 73 WHEN + 53 * + - 45 * + 73 + - - 20 / - 93 THEN - - 51 END AS col0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT 86 * NULLIF ( + + COUNT ( * ), + ( 72 ) )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL 4 + + 78 - - 6 + 19 + - COALESCE ( - COALESCE ( + 65, - 82 / - COUNT( DISTINCT - 60 ) + ( - ( 99 ) ) ), + 43 ) + CASE + CASE - 16 WHEN 86 * CASE + COALESCE ( 86, - 81, 62, - SUM( - 6 ) * 57 ) WHEN - 47 + MIN( ( - COALESCE ( + 35, - 20 ) ) ) / + MIN( - 92 ) THEN 74 + + COUNT( * ) * + 41 ELSE NULL END THEN NULL WHEN 0 * + 68 THEN NULL WHEN 7 THEN NULL ELSE 34 END WHEN CAST( 33 AS SIGNED ) THEN - 56 WHEN - 54 + - 37 THEN NULL END + - COUNT( * ) / CASE + 22 + - COUNT( * ) WHEN + NULLIF ( ( + 15 ), + CASE 64 WHEN 93 / ( 91 ) THEN NULL WHEN - 36 + 18 THEN - COUNT( * ) + 76 * - ( - 38 / + ( + 64 ) ) WHEN CAST( + ( 13 ) AS SIGNED ) * + COALESCE ( - 14, 70, COUNT( * ) * AVG ( - 91 ) ) THEN NULL END + 31 ) + 18 * + 37 THEN NULL WHEN 77 * 47 THEN + 10 ELSE NULL END * ( - 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL 4 + + 78 - - 6 + 19 + - COALESCE ( - COALESCE ( + 65, - 82 / - COUNT ( DISTINCT - 60 ) + ( - ( 99 ) ) ), + 43 ) + CASE + CASE - 16 WHEN 86 * CASE + COALESCE ( 86, - 81, 62, - SUM ( - 6 ) * 57 ) WHEN - 47 + MIN ( ( - COALESCE ( + 35, - 20 ) ) ) / + MIN ( - 92 ) THEN 74 + + COUNT ( * ) * + 41 ELSE NULL END THEN NULL WHEN 0 * + 68 THEN NULL WHEN 7 THEN NULL ELSE 34 END WHEN CAST ( 33 AS INTEGER ) THEN - 56 WHEN - 54 + - 37 THEN NULL END + - COUNT ( * ) / CASE + 22 + - COUNT ( * ) WHEN + NULLIF ( ( + 15 ), + CASE 64 WHEN 93 / ( 91 ) THEN NULL WHEN - 36 + 18 THEN - COUNT ( * ) + 76 * - ( - 38 / + ( + 64 ) ) WHEN CAST ( + ( 13 ) AS INTEGER ) * + COALESCE ( - 14, 70, COUNT ( * ) * AVG ( - 91 ) ) THEN NULL END + 31 ) + 18 * + 37 THEN NULL WHEN 77 * 47 THEN + 10 ELSE NULL END * ( - 88 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT + COUNT( - - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1838
SELECT + COUNT ( - - 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL + CASE + 3 WHEN + COUNT( * ) * + 39 * + + 34 THEN NULL WHEN 28 THEN + 97 WHEN 46 - 53 THEN - + 3 ELSE NULL END + - + 77 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL + CASE + 3 WHEN + COUNT ( * ) * + 39 * + + 34 THEN NULL WHEN 28 THEN + 97 WHEN 46 - 53 THEN - + 3 ELSE NULL END + - + 77 / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1840
SELECT CASE + COUNT( * ) WHEN 60 + - 23 THEN - 94 END - 12 AS col0, ( - COALESCE ( + 51, - COUNT( 34 ), - 54 ) )
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-1840
SELECT CASE + COUNT ( * ) WHEN 60 + - 23 THEN - 94 END - 12 AS col0, ( - COALESCE ( + 51, - COUNT ( 34 ), - 54 ) )
----
NULL
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT ALL - + ( + 35 ) * - 34 + - - 13 + - 48 DIV 48 + - ( 2 ) + - 64 * - - 13 * 42
----
-33744

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - + ( + 35 ) * - 34 + - - 13 + - 48 / 48 + - ( 2 ) + - 64 * - - 13 * 42
----
-33744

query I rowsort
SELECT DISTINCT 15 + + - 18 + - - 87 col2
----
84

query I rowsort
SELECT ALL - - 73 + + - 45 - 44 AS col1
----
-16

query I rowsort
SELECT 50 + + 75
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT 13 * - 16 DIV - + COUNT( * ) AS col0
----
208

skipif mysql # not compatible
query I rowsort label-1845
SELECT 13 * - 16 / - + COUNT ( * ) AS col0
----
208

onlyif mysql # aggregate syntax: 
query II rowsort label-1846
SELECT COUNT( * ) - - 1, 90 col2
----
2
90

skipif mysql # not compatible
query II rowsort label-1846
SELECT COUNT ( * ) - - 1, 90 col2
----
2
90

onlyif mysql # aggregate syntax: 
query II rowsort label-1847
SELECT - 73 - + 1 AS col1, - 8 + 69 + - + SUM( ALL + 76 ) AS col0
----
-74
-15

skipif mysql # not compatible
query II rowsort label-1847
SELECT - 73 - + 1 AS col1, - 8 + 69 + - + SUM ( ALL + 76 ) AS col0
----
-74
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT - 61 + - COUNT( * ) + 22
----
-40

skipif mysql # not compatible
query I rowsort label-1848
SELECT - 61 + - COUNT ( * ) + 22
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL - COUNT( DISTINCT 76 ) * 88 * - 3
----
264

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - COUNT ( DISTINCT 76 ) * 88 * - 3
----
264

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

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT MIN ( - 72 )
----
-72

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

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL SUM ( DISTINCT + + 65 ) AS col1
----
65

query II rowsort
SELECT - 31 * - - 92 col1, + 19 AS col1
----
-2852
19

query II rowsort
SELECT - 42 + + 48 * - 68 col2, + 96 AS col0
----
-3306
96

query I rowsort
SELECT DISTINCT COALESCE ( - 97, - - ( ( - - 91 ) ) * 63 ) col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - MIN( - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-1855
SELECT - MIN ( - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + 83 + SUM( - 3 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-1856
SELECT + 83 + SUM ( - 3 ) col2
----
80

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

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

query I rowsort
SELECT - 95 * + 68 * + 27 AS col0
----
-174420

query I rowsort
SELECT + 1 * + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - COUNT( 38 ) + + ( 33 )
----
32

skipif mysql # not compatible
query I rowsort label-1860
SELECT - COUNT ( 38 ) + + ( 33 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT - 77 * + 41 + - MAX( DISTINCT - 18 )
----
-3139

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT - 77 * + 41 + - MAX ( DISTINCT - 18 )
----
-3139

query I rowsort
SELECT ALL - 19 + + - ( 82 ) col2
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1863
SELECT 58 DIV - - COUNT( * ) + + 96
----
154

skipif mysql # not compatible
query I rowsort label-1863
SELECT 58 / - - COUNT ( * ) + + 96
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + + 89 DIV - 53 + - + 92 DIV + 88
----
-2

skipif mysql # not compatible
query I rowsort label-1864
SELECT + + 89 / - 53 + - + 92 / + 88
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + 4 * + 39 * + COUNT( * ) + - 42 + 1 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-1865
SELECT + 4 * + 39 * + COUNT ( * ) + - 42 + 1 AS col1
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT CASE - 96 WHEN COUNT( * ) THEN NULL ELSE 45 END AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1867
SELECT CASE - 96 WHEN COUNT ( * ) THEN NULL ELSE 45 END AS col1
----
45

query I rowsort
SELECT DISTINCT - 63 * - - 29 - 55 * - + 46 + + + 91
----
794

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT COUNT( 41 )
----
1

skipif mysql # not compatible
query I rowsort label-1870
SELECT COUNT ( 41 )
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT + 61 DIV - 17
----
-3

skipif mysql # not compatible
query I rowsort label-1872
SELECT + 61 / - 17
----
-3

query I rowsort
SELECT + 79 + - - 98
----
177

query II rowsort
SELECT DISTINCT 57 AS col1, + 18 * + 63 AS col2
----
57
1134

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT 1 * COALESCE ( 5, + 27 * 17, - + CASE + 69 WHEN + - COUNT( DISTINCT + - 99 ) THEN - + 62 + + 5 + 75 * - 99 ELSE NULL END ) + - - 63 * - COALESCE ( 54, 11, + + 41 + - 98 * 16 ) + + 94 col0
----
-3303

skipif mysql # not compatible
query I rowsort label-1876
SELECT 1 * COALESCE ( 5, + 27 * 17, - + CASE + 69 WHEN + - COUNT ( DISTINCT + - 99 ) THEN - + 62 + + 5 + 75 * - 99 ELSE NULL END ) + - - 63 * - COALESCE ( 54, 11, + + 41 + - 98 * 16 ) + + 94 col0
----
-3303

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT ALL NULLIF ( + 85, + + 94 * + 45 ) DIV + + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL NULLIF ( + 85, + + 94 * + 45 ) / + + 98 AS col2
----
0

query I rowsort
SELECT + 43 * + 62
----
2666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1879
SELECT - 95 DIV COUNT( * ) * - + 18
----
1710

skipif mysql # not compatible
query I rowsort label-1879
SELECT - 95 / COUNT ( * ) * - + 18
----
1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT - NULLIF ( + CASE 42 WHEN + ( - 67 ) * - 37 THEN + 1 ELSE ( + 48 ) END, + CAST( NULL AS SIGNED ) ) + COUNT( * ) - - + COUNT( * ) + - 64
----
-110

skipif mysql # not compatible
query I rowsort label-1880
SELECT - NULLIF ( + CASE 42 WHEN + ( - 67 ) * - 37 THEN + 1 ELSE ( + 48 ) END, + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) - - + COUNT ( * ) + - 64
----
-110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT - 71 * + - MAX( DISTINCT 76 )
----
5396

skipif mysql # not compatible
query I rowsort label-1882
SELECT - 71 * + - MAX ( DISTINCT 76 )
----
5396

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

skipif mysql # not compatible
query I rowsort label-1883
SELECT - 89 + + ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL CASE 70 WHEN 56 * + 50 * + 58 THEN - - COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL CASE 70 WHEN 56 * + 50 * + 58 THEN - - COUNT ( * ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL + ( 43 ) + ( + CASE + 32 WHEN - 74 / - + COUNT( * ) * COUNT( * ) THEN + 14 * + 83 ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL + ( 43 ) + ( + CASE + 32 WHEN - 74 / - + COUNT ( * ) * COUNT ( * ) THEN + 14 * + 83 ELSE NULL END ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1886
SELECT - 41 * 59 * 96 DIV + - 61 AS col2, - 40
----
3806
-40

skipif mysql # not compatible
query II rowsort label-1886
SELECT - 41 * 59 * 96 / + - 61 AS col2, - 40
----
3806
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL - - COUNT( * ) + + 43
----
44

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - - COUNT ( * ) + + 43
----
44

query II rowsort
SELECT - 7 AS col2, 14
----
-7
14

query I rowsort
SELECT - + 62 + + NULLIF ( + 91, + + 88 * - 45 ) AS col2
----
29

query I rowsort
SELECT - + 93 * - - 72 AS col2
----
-6696

query I rowsort
SELECT + - 87 + + 38
----
-49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT ALL - + 60 + + 56 DIV + 69 * - + 42 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - + 60 + + 56 / + 69 * - + 42 AS col0
----
-60

query I rowsort
SELECT - 92 * - 2 col0
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT DISTINCT - 16 * NULLIF ( + + ( - + SUM( DISTINCT - CAST( + 87 AS SIGNED ) ) ), - COUNT( * ) * COUNT( * ) * ( + - COUNT( ALL + 54 ) ) + 31 + + 58 * COUNT( * ) ) AS col1
----
-1392

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - 16 * NULLIF ( + + ( - + SUM ( DISTINCT - CAST ( + 87 AS INTEGER ) ) ), - COUNT ( * ) * COUNT ( * ) * ( + - COUNT ( ALL + 54 ) ) + 31 + + 58 * COUNT ( * ) ) AS col1
----
-1392

query II rowsort
SELECT ALL + 10, + 95 - 73 - - 73 AS col0
----
10
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1897
SELECT DISTINCT 18 / SUM( DISTINCT - 3 ) * + - 59 + + 55 + - COUNT( * ) + + CASE 62 WHEN + - 61 * + + 30 + + ( 26 ) * + + ( CAST( NULL AS DECIMAL ) ) + + ( - ( - - 50 ) ) / + 96 THEN + 80 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT 18 / SUM ( DISTINCT - 3 ) * + - 59 + + 55 + - COUNT ( * ) + + CASE 62 WHEN + - 61 * + + 30 + + ( 26 ) * + + ( CAST ( NULL AS REAL ) ) + + ( - ( - - 50 ) ) / + 96 THEN + 80 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - + ( - 34 ) + 8
----
42

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1900
SELECT + 97 * + 88 + COUNT( ALL + 36 ) DIV - CAST( COALESCE ( - 21, 4 ) AS SIGNED ) + - 92 + + - ( - + 72 ) + + + 37
----
8553

skipif mysql # not compatible
query I rowsort label-1900
SELECT + 97 * + 88 + COUNT ( ALL + 36 ) / - CAST ( COALESCE ( - 21, 4 ) AS INTEGER ) + - 92 + + - ( - + 72 ) + + + 37
----
8553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1901
SELECT + + COALESCE ( + CAST( 1 AS SIGNED ), - 8 * 12 + + COUNT( * ) - + + 23 ) DIV MIN( - 56 ) + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-1901
SELECT + + COALESCE ( + CAST ( 1 AS INTEGER ), - 8 * 12 + + COUNT ( * ) - + + 23 ) / MIN ( - 56 ) + - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT - CASE - 37 WHEN + COUNT( * ) * - 23 * - - 26 THEN COUNT( * ) WHEN - 26 THEN + + 90 END * + + ( - COUNT( * ) ) * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT - CASE - 37 WHEN + COUNT ( * ) * - 23 * - - 26 THEN COUNT ( * ) WHEN - 26 THEN + + 90 END * + + ( - COUNT ( * ) ) * + 55
----
NULL

query I rowsort
SELECT ALL 38 - - ( - 5 ) AS col1
----
33

query I rowsort
SELECT 10 * - 62
----
-620

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1905
SELECT ALL + 14 DIV MIN( DISTINCT - 69 ) * + - 89 AS col1, - NULLIF ( - + 5, + 39 * + - 31 + + + 42 DIV 9 * + - 57 * + NULLIF ( - - 18, - 13 + + 57 ) ) + - 93 * + + 89 * - 65 AS col0
----
0
538010

skipif mysql # not compatible
query II rowsort label-1905
SELECT ALL + 14 / MIN ( DISTINCT - 69 ) * + - 89 AS col1, - NULLIF ( - + 5, + 39 * + - 31 + + + 42 / 9 * + - 57 * + NULLIF ( - - 18, - 13 + + 57 ) ) + - 93 * + + 89 * - 65 AS col0
----
0
538010

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

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

query I rowsort
SELECT 14 * 3 + - 5 * - 86 + - - 13
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT DISTINCT MAX( + + ( 9 ) ) * 95 * - 12 * + NULLIF ( - COALESCE ( + + 12, 18 ), - CASE 47 WHEN + COUNT( * ) THEN NULL WHEN - 96 THEN NULL ELSE - 68 + + - 80 END / + COUNT( DISTINCT - - 36 ) + + 80 ) AS col0
----
123120

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT MAX ( + + ( 9 ) ) * 95 * - 12 * + NULLIF ( - COALESCE ( + + 12, 18 ), - CASE 47 WHEN + COUNT ( * ) THEN NULL WHEN - 96 THEN NULL ELSE - 68 + + - 80 END / + COUNT ( DISTINCT - - 36 ) + + 80 ) AS col0
----
123120

query I rowsort
SELECT 21 + - - 72 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT 57 - + MAX( DISTINCT + 79 ) * + CASE + ( 24 ) WHEN - + 58 THEN NULL ELSE - ( - 75 ) + + 16 - + 46 END AS col2
----
-3498

skipif mysql # not compatible
query I rowsort label-1910
SELECT 57 - + MAX ( DISTINCT + 79 ) * + CASE + ( 24 ) WHEN - + 58 THEN NULL ELSE - ( - 75 ) + + 16 - + 46 END AS col2
----
-3498

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL 7 + - + NULLIF ( - MIN( ALL - - 9 ), - CASE - 31 WHEN - 37 THEN + 7 * 96 END ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL 7 + - + NULLIF ( - MIN ( ALL - - 9 ), - CASE - 31 WHEN - 37 THEN + 7 * 96 END ) AS col1
----
16

query I rowsort
SELECT DISTINCT 36 + - 77
----
-41

query I rowsort
SELECT 47 + + + 3 * - 73
----
-172

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT 63 DIV + 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1915
SELECT 63 / + 48 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1916
SELECT ALL + 34 + 34, + CASE + 79 WHEN + 85 THEN + CAST( NULL AS SIGNED ) WHEN - MIN( 90 ) * + 40 / - MAX( DISTINCT + ( + 25 ) ) + - - 16 THEN NULL ELSE NULL END AS col1
----
68
NULL

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL + 34 + 34, + CASE + 79 WHEN + 85 THEN + CAST ( NULL AS INTEGER ) WHEN - MIN ( 90 ) * + 40 / - MAX ( DISTINCT + ( + 25 ) ) + - - 16 THEN NULL ELSE NULL END AS col1
----
68
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT DISTINCT 65 DIV - + 70
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT 65 / - + 70
----
0

query I rowsort
SELECT - ( 9 ) + 2
----
-7

query I rowsort
SELECT ALL + NULLIF ( + 22, 51 ) * + - 32 * + 20 AS col0
----
-14080

query I rowsort
SELECT 7 + 13
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT 84 + COUNT( * ) - + COUNT( * ) * - + NULLIF ( 28, - 2 ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-1922
SELECT 84 + COUNT ( * ) - + COUNT ( * ) * - + NULLIF ( 28, - 2 ) AS col1
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-1923
SELECT DISTINCT ( + ( - MIN( - 62 ) ) ) AS col2, - 18 - + + 82 * - CASE 22 WHEN - 14 THEN NULL WHEN - CASE + 45 WHEN 14 THEN NULL WHEN + ( + + ( - COUNT( * ) ) ) THEN NULL ELSE - ( + 56 ) + - + COUNT( * ) * 58 * 17 END THEN 37 / 92 + - 12 * + 71 WHEN 45 THEN 50 ELSE NULL END + 91 AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-1923
SELECT DISTINCT ( + ( - MIN ( - 62 ) ) ) AS col2, - 18 - + + 82 * - CASE 22 WHEN - 14 THEN NULL WHEN - CASE + 45 WHEN 14 THEN NULL WHEN + ( + + ( - COUNT ( * ) ) ) THEN NULL ELSE - ( + 56 ) + - + COUNT ( * ) * 58 * 17 END THEN 37 / 92 + - 12 * + 71 WHEN 45 THEN 50 ELSE NULL END + 91 AS col2
----
62
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT 77 + - 5 DIV - 64 + + + 30 + + - 85 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1924
SELECT 77 + - 5 / - 64 + + + 30 + + - 85 AS col1
----
22

query I rowsort
SELECT ( 92 ) + 98
----
190

query I rowsort
SELECT 25 * + 53 col1
----
1325

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - 37 * + - 89 + CASE - 6 WHEN 62 * - - CASE - - ( + 21 ) WHEN + 86 THEN + - COUNT( ALL 17 ) END THEN + + 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT - 37 * + - 89 + CASE - 6 WHEN 62 * - - CASE - - ( + 21 ) WHEN + 86 THEN + - COUNT ( ALL 17 ) END THEN + + 39 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT 92 + - COUNT( * ) * - 51
----
143

skipif mysql # not compatible
query I rowsort label-1929
SELECT 92 + - COUNT ( * ) * - 51
----
143

query I rowsort
SELECT ALL + - 53 * 68 AS col2
----
-3604

onlyif mysql # aggregate syntax: 
query II rowsort label-1931
SELECT ALL - ( 50 ) AS col2, + ( + 79 ) - + + 81 - + COUNT( ALL 8 ) - 90 AS col0
----
-50
-93

skipif mysql # not compatible
query II rowsort label-1931
SELECT ALL - ( 50 ) AS col2, + ( + 79 ) - + + 81 - + COUNT ( ALL 8 ) - 90 AS col0
----
-50
-93

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

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT + COUNT ( * ) / 10
----
0

query I rowsort
SELECT ALL + 10 * - 78 * - + 19 col1
----
14820

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT COALESCE ( - 56, - 5, - MAX( ALL - 37 ) ) * - 91 AS col0
----
5096

skipif mysql # not compatible
query I rowsort label-1934
SELECT COALESCE ( - 56, - 5, - MAX ( ALL - 37 ) ) * - 91 AS col0
----
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT 32 + - CASE WHEN + COUNT( * ) <> + 40 THEN 19 + - 79 + 57 + - ( - + ( + COUNT( * ) ) ) END AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1935
SELECT 32 + - CASE WHEN + COUNT ( * ) <> + 40 THEN 19 + - 79 + 57 + - ( - + ( + COUNT ( * ) ) ) END AS col0
----
34

query I rowsort
SELECT 10 * - 49 + - 10
----
-500

onlyif mysql # aggregate syntax: 
query II rowsort label-1937
SELECT 66 + + CASE - 34 WHEN + 6 + + + 73 * + COUNT( * ) THEN NULL WHEN + + 92 THEN COUNT( * ) END - - ( - 73 ) + + CASE + 50 WHEN + + 85 THEN - 64 ELSE NULL END * - 50 AS col0, - 52 AS col0
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-1937
SELECT 66 + + CASE - 34 WHEN + 6 + + + 73 * + COUNT ( * ) THEN NULL WHEN + + 92 THEN COUNT ( * ) END - - ( - 73 ) + + CASE + 50 WHEN + + 85 THEN - 64 ELSE NULL END * - 50 AS col0, - 52 AS col0
----
NULL
-52

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

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL 66 + - COUNT ( * ) AS col2
----
65

query I rowsort
SELECT DISTINCT + 20 + 80 AS col1
----
100

query II rowsort
SELECT ALL 30 + 30 * - 96 AS col2, + 12
----
-2850
12

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

query I rowsort
SELECT ALL 24 * - + 55 col1
----
-1320

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

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

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

skipif mysql # not compatible
query II rowsort label-1944
SELECT - COUNT ( * ) AS col0, 34 * - COUNT ( * ) AS col2
----
-1
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT + COALESCE ( + ( + ( CASE - MAX( ALL 99 ) WHEN - - 87 - CAST( - + 78 AS SIGNED ) THEN - ( - 56 ) + + - 29 * - - COUNT( * ) WHEN + - 22 THEN COUNT( + + 64 ) END ) ), - + ( - 32 ) * 15 * + COALESCE ( 30, + COUNT( * ) + - 59 ) * 60 + 35 ) + 83
----
864118

skipif mysql # not compatible
query I rowsort label-1945
SELECT + COALESCE ( + ( + ( CASE - MAX ( ALL 99 ) WHEN - - 87 - CAST ( - + 78 AS INTEGER ) THEN - ( - 56 ) + + - 29 * - - COUNT ( * ) WHEN + - 22 THEN COUNT ( + + 64 ) END ) ), - + ( - 32 ) * 15 * + COALESCE ( 30, + COUNT ( * ) + - 59 ) * 60 + 35 ) + 83
----
864118

onlyif mysql # aggregate syntax: 
query II rowsort label-1946
SELECT ALL 82 + NULLIF ( - 21, COUNT( ALL - 33 ) ) AS col1, 50 AS col2
----
61
50

skipif mysql # not compatible
query II rowsort label-1946
SELECT ALL 82 + NULLIF ( - 21, COUNT ( ALL - 33 ) ) AS col1, 50 AS col2
----
61
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT DISTINCT 30 - + - CAST( NULL AS SIGNED ) * 39 * 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT 30 - + - CAST ( NULL AS INTEGER ) * 39 * 89 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL ( - MAX( 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL ( - MAX ( 96 ) )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT DISTINCT - 19 col2, + ( - COUNT( * ) )
----
-19
-1

skipif mysql # not compatible
query II rowsort label-1949
SELECT DISTINCT - 19 col2, + ( - COUNT ( * ) )
----
-19
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT + CAST( NULL AS SIGNED ) * - COALESCE ( 64, - - CASE CAST( NULL AS SIGNED ) WHEN AVG ( DISTINCT - 70 ) * + 46 * + + NULLIF ( + - 23, + - 9 / - + COUNT( * ) + - 19 * + AVG ( - - 74 ) * + CAST( NULL AS SIGNED ) + 3 ) + + + 43 * + 51 * ( 40 ) THEN + 12 + + 11 * 17 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT + CAST ( NULL AS INTEGER ) * - COALESCE ( 64, - - CASE CAST ( NULL AS INTEGER ) WHEN AVG ( DISTINCT - 70 ) * + 46 * + + NULLIF ( + - 23, + - 9 / - + COUNT ( * ) + - 19 * + AVG ( - - 74 ) * + CAST ( NULL AS INTEGER ) + 3 ) + + + 43 * + 51 * ( 40 ) THEN + 12 + + 11 * 17 END ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1952
SELECT ALL CAST( 46 AS SIGNED ) DIV 79 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL CAST ( 46 AS INTEGER ) / 79 / 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT + COUNT( * ) * + 51 + + 22 * COUNT( - 93 ) + - 8 - + 44 + + + 82 * + + 48 + COUNT( * ) AS col0
----
3958

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + COUNT ( * ) * + 51 + + 22 * COUNT ( - 93 ) + - 8 - + 44 + + + 82 * + + 48 + COUNT ( * ) AS col0
----
3958

query I rowsort
SELECT + 67 * 4
----
268

query I rowsort
SELECT - - 94 * 31
----
2914

query I rowsort
SELECT DISTINCT + - 51 * + 7 * ( + 12 )
----
-4284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1957
SELECT + 26 + - COALESCE ( COUNT( * ), - - COUNT( * ) + - COUNT( * ) + 73 - CAST( NULL AS SIGNED ) + 33 * + - 87 + + 93 + + 68 + 71 + + CAST( NULL AS SIGNED ) * NULLIF ( + - 77, - MIN( DISTINCT + ( 82 ) ) ) ) + - COUNT( - ( + 19 ) )
----
24

skipif mysql # not compatible
query I rowsort label-1957
SELECT + 26 + - COALESCE ( COUNT ( * ), - - COUNT ( * ) + - COUNT ( * ) + 73 - CAST ( NULL AS INTEGER ) + 33 * + - 87 + + 93 + + 68 + 71 + + CAST ( NULL AS INTEGER ) * NULLIF ( + - 77, - MIN ( DISTINCT + ( 82 ) ) ) ) + - COUNT ( - ( + 19 ) )
----
24

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

query I rowsort
SELECT ALL + 57 * - 91 + + 35 AS col0
----
-5152

query I rowsort
SELECT - 31 * - + 52 + - - 98
----
1710

query I rowsort
SELECT COALESCE ( - - 90, + 78 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT 51 * - CAST( NULL AS SIGNED ) / 25 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT 51 * - CAST ( NULL AS INTEGER ) / 25 + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT NULLIF ( 78, COUNT( * ) * + - COUNT( * ) + 62 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1963
SELECT NULLIF ( 78, COUNT ( * ) * + - COUNT ( * ) + 62 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1964
SELECT + 7, ( - + ( - - 2 ) ) - - 62 * + + MIN( + 4 ) + - CAST( 79 AS SIGNED ) col1
----
7
167

skipif mysql # not compatible
query II rowsort label-1964
SELECT + 7, ( - + ( - - 2 ) ) - - 62 * + + MIN ( + 4 ) + - CAST ( 79 AS INTEGER ) col1
----
7
167

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + SUM( DISTINCT + - 51 ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-1965
SELECT + SUM ( DISTINCT + - 51 ) col0
----
-51

query II rowsort
SELECT + 61, - 32 AS col0
----
61
-32

query I rowsort
SELECT ALL 5 * 30 + - 59 - - 12
----
103

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

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + 47 * + COUNT ( * ) + - COUNT ( * ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1969
SELECT ALL - CASE WHEN 6 NOT BETWEEN - COUNT( * ) AND 69 - - 40 THEN - ( + NULLIF ( - 15, + + 10 ) ) ELSE + CAST( NULL AS SIGNED ) * + 68 END * - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - CASE WHEN 6 NOT BETWEEN - COUNT ( * ) AND 69 - - 40 THEN - ( + NULLIF ( - 15, + + 10 ) ) ELSE + CAST ( NULL AS INTEGER ) * + 68 END * - 91 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1970
SELECT - 66 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT - 66 / 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT ALL - 14 * - + COUNT( * ) + - CASE - - COALESCE ( - - 85, 6 + + 65 + 16 * - COUNT( * ) / + ( - CAST( 40 AS SIGNED ) ) / + - CASE - 75 WHEN - 63 + + - 99 - - 12 * + MIN( - + 45 ) * CASE 72 WHEN - COUNT( * ) THEN - 93 * + 48 WHEN 86 / SUM( 23 ) - 45 THEN CAST( NULL AS SIGNED ) + 39 / - 28 END + - 2 * + ( 5 / 43 ) THEN NULL WHEN 50 THEN NULL ELSE 47 END, 20 * ( 32 ), - 78 * - COUNT( * ) - 19 ) WHEN 4 THEN - CAST( - 20 AS SIGNED ) ELSE NULL END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - 14 * - + COUNT ( * ) + - CASE - - COALESCE ( - - 85, 6 + + 65 + 16 * - COUNT ( * ) / + ( - CAST ( 40 AS INTEGER ) ) / + - CASE - 75 WHEN - 63 + + - 99 - - 12 * + MIN ( - + 45 ) * CASE 72 WHEN - COUNT ( * ) THEN - 93 * + 48 WHEN 86 / SUM ( 23 ) - 45 THEN CAST ( NULL AS INTEGER ) + 39 / - 28 END + - 2 * + ( 5 / 43 ) THEN NULL WHEN 50 THEN NULL ELSE 47 END, 20 * ( 32 ), - 78 * - COUNT ( * ) - 19 ) WHEN 4 THEN - CAST ( - 20 AS INTEGER ) ELSE NULL END - + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - 12 + + + 37 + + COUNT( ALL + 62 )
----
26

skipif mysql # not compatible
query I rowsort label-1973
SELECT - 12 + + + 37 + + COUNT ( ALL + 62 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT ALL CAST( NULL AS SIGNED ) * - 23 + + 57 + + 39 - 69 + - 7 / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL CAST ( NULL AS INTEGER ) * - 23 + + 57 + + 39 - 69 + - 7 / 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1975
SELECT - MIN( 97 ) + + - 32 + 26 * - NULLIF ( 68, - MAX( DISTINCT 36 ) ) + + 53 col2, NULLIF ( 7, + 52 ) AS col2
----
-1844
7

skipif mysql # not compatible
query II rowsort label-1975
SELECT - MIN ( 97 ) + + - 32 + 26 * - NULLIF ( 68, - MAX ( DISTINCT 36 ) ) + + 53 col2, NULLIF ( 7, + 52 ) AS col2
----
-1844
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT COUNT( * ) AS col1, ( - + 67 ) * 75 + - 51 col1
----
1
-5076

skipif mysql # not compatible
query II rowsort label-1976
SELECT COUNT ( * ) AS col1, ( - + 67 ) * 75 + - 51 col1
----
1
-5076

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT + MIN( + 90 ) - + - 10 * + 4
----
130

skipif mysql # not compatible
query I rowsort label-1977
SELECT + MIN ( + 90 ) - + - 10 * + 4
----
130

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT - 82 * + - COALESCE ( + - CAST( NULL AS SIGNED ), 97 * - + 36 ) AS col1
----
-286344

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 82 * + - COALESCE ( + - CAST ( NULL AS INTEGER ), 97 * - + 36 ) AS col1
----
-286344

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT MIN( DISTINCT + 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1980
SELECT MIN ( DISTINCT + 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT - - NULLIF ( COUNT( - + 45 ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT - - NULLIF ( COUNT ( - + 45 ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + 8 - 83
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT ALL - 50 DIV + - 10 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - 50 / + - 10 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT DISTINCT - CAST( - - 8 AS SIGNED ) * + - CASE - 94 WHEN + 81 THEN NULL WHEN + CAST( NULL AS SIGNED ) + - + CASE - + 94 WHEN - - 32 THEN + - COALESCE ( 82, - SUM( DISTINCT 33 ) ) WHEN + 84 * - CAST( 45 AS SIGNED ) THEN NULL END THEN - - 78 + - + 41 + - 6 + + 1 * + COUNT( * ) - COUNT( + 14 ) * 98 * 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT - CAST ( - - 8 AS INTEGER ) * + - CASE - 94 WHEN + 81 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + - + CASE - + 94 WHEN - - 32 THEN + - COALESCE ( 82, - SUM ( DISTINCT 33 ) ) WHEN + 84 * - CAST ( 45 AS INTEGER ) THEN NULL END THEN - - 78 + - + 41 + - 6 + + 1 * + COUNT ( * ) - COUNT ( + 14 ) * 98 * 97 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 81 + + 9 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL - + 87 - - + 75 * - 44 * MIN( ALL - 31 )
----
102213

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - + 87 - - + 75 * - 44 * MIN ( ALL - 31 )
----
102213

query I rowsort
SELECT - - 53 + + 94 AS col0
----
147

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1989
SELECT - 44, CASE + 97 WHEN - - 73 THEN NULL WHEN - 71 THEN - 16 * - COUNT( * ) WHEN + + ( - NULLIF ( - 72, - - CASE CAST( - + 4 AS DECIMAL ) WHEN - - 48 THEN COUNT( * ) END * SUM( - 98 ) + AVG ( DISTINCT ( + - 40 ) ) ) ) THEN NULL END * 66 / 96 + + 78 / + ( 34 * - COUNT( * ) ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1989
SELECT - 44, CASE + 97 WHEN - - 73 THEN NULL WHEN - 71 THEN - 16 * - COUNT ( * ) WHEN + + ( - NULLIF ( - 72, - - CASE CAST ( - + 4 AS REAL ) WHEN - - 48 THEN COUNT ( * ) END * SUM ( - 98 ) + AVG ( DISTINCT ( + - 40 ) ) ) ) THEN NULL END * 66 / 96 + + 78 / + ( 34 * - COUNT ( * ) ) AS col1
----
-44
NULL

query I rowsort
SELECT - + 79 + 15
----
-64

query II rowsort
SELECT - 77, ( + 33 ) AS col1
----
-77
33

query I rowsort
SELECT + - 4 + 98
----
94

query I rowsort
SELECT ALL - 93 * - + 84 * + ( ( ( - 56 ) ) ) * + 51 AS col2
----
-22311072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT - - CASE - MAX( + 90 ) WHEN - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) THEN NULL ELSE 88 - + COALESCE ( 76, + ( + NULLIF ( - 80, - - 51 * - CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) ) END AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1994
SELECT - - CASE - MAX ( + 90 ) WHEN - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN NULL ELSE 88 - + COALESCE ( 76, + ( + NULLIF ( - 80, - - 51 * - CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) ) END AS col2
----
12

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

query I rowsort
SELECT + - 54 * + 73 AS col1
----
-3942

query I rowsort
SELECT + 88 + - 53 * - 36 AS col1
----
1996

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT - SUM( 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT - SUM ( 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT 64 AS col2, NULLIF ( - - 92, COUNT( * ) ) + ( 19 ) AS col1
----
64
111

skipif mysql # not compatible
query II rowsort label-1999
SELECT 64 AS col2, NULLIF ( - - 92, COUNT ( * ) ) + ( 19 ) AS col1
----
64
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2000
SELECT ALL + 12 DIV - 55 + - - 18 + + MAX( ALL - 58 ) * - 69 AS col0
----
4020

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL + 12 / - 55 + - - 18 + + MAX ( ALL - 58 ) * - 69 AS col0
----
4020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2001
SELECT + 79 DIV 78 col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2001
SELECT + 79 / 78 col2, COUNT ( * )
----
1
1

query I rowsort
SELECT + 55 * + + 65 * 8
----
28600

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT ALL + 35 DIV + 26 + + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL + 35 / + 26 + + - 98
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) / - 96 + + 43 + + - 86 / - 75 * 18 + + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - 96 + + 43 + + - 86 / - 75 * 18 + + - 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL 1 DIV - - 61 + + + 66
----
66

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL 1 / - - 61 + + + 66
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2006
SELECT - COUNT( * ) * COALESCE ( ( + 67 ), - 12 DIV + - 86 ) + - + 94 - 12 + + 10 * 6
----
-113

skipif mysql # not compatible
query I rowsort label-2006
SELECT - COUNT ( * ) * COALESCE ( ( + 67 ), - 12 / + - 86 ) + - + 94 - 12 + + 10 * 6
----
-113

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

skipif mysql # not compatible
query I rowsort label-2007
SELECT - 25 + - COUNT ( * ) AS col2
----
-26

query I rowsort
SELECT ( CASE + 15 WHEN 4 THEN - 69 * - 32 / + + 67 END ) col2
----
NULL

query I rowsort
SELECT ALL 38 * 46 + 43 + - 6 + - 28 + - 13
----
1744

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

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

query I rowsort
SELECT ( - - 98 )
----
98

query I rowsort
SELECT + 75 * 77 + + - 49 AS col0
----
5726

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT ALL ( + 26 ) * 61 * - COUNT( * ) - + 78, 0 AS col1
----
-1664
0

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL ( + 26 ) * 61 * - COUNT ( * ) - + 78, 0 AS col1
----
-1664
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT COALESCE ( - 25, + + MAX( 34 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2014
SELECT COALESCE ( - 25, + + MAX ( 34 ) ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT 50 * + 2 - + CAST( - 15 AS SIGNED ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT 50 * + 2 - + CAST ( - 15 AS INTEGER ) AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT DISTINCT - + MIN( ALL - - 25 ) DIV MIN( ALL + - 62 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT - + MIN ( ALL - - 25 ) / MIN ( ALL + - 62 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2017
SELECT DISTINCT + CASE - 75 WHEN - 55 / ( + - CAST( 36 AS DECIMAL ) ) THEN NULL WHEN 0 * - 74 THEN + 4 * - 10 / + + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT + CASE - 75 WHEN - 55 / ( + - CAST ( 36 AS REAL ) ) THEN NULL WHEN 0 * - 74 THEN + 4 * - 10 / + + 31 END
----
NULL

query I rowsort
SELECT ALL + + 22 * - 83 AS col2
----
-1826

onlyif mysql # aggregate syntax: 
query II rowsort label-2019
SELECT ALL + MAX( 11 ), 13 AS col0
----
11
13

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL + MAX ( 11 ), 13 AS col0
----
11
13

query I rowsort
SELECT - 0 - - ( + 39 ) - - 96 AS col1
----
135

query I rowsort
SELECT + 78 + - 36 AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2022
SELECT COUNT( * ) DIV - - 78 * + + 5 + 79 + + - 45 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2022
SELECT COUNT ( * ) / - - 78 * + + 5 + 79 + + - 45 AS col0
----
34

query II rowsort
SELECT + 22 * 60 AS col1, 10
----
1320
10

query I rowsort
SELECT 51 + + 32
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT DISTINCT + 5 DIV + - 35 + + COUNT( * ) + + 49
----
50

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT + 5 / + - 35 + + COUNT ( * ) + + 49
----
50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT ALL CAST( CASE CASE + 83 WHEN - - 4 / 33 + - 22 * - COUNT( * ) THEN NULL WHEN + 22 THEN - + 69 END WHEN + 18 THEN - 11 END AS SIGNED ) / 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL CAST ( CASE CASE + 83 WHEN - - 4 / 33 + - 22 * - COUNT ( * ) THEN NULL WHEN + 22 THEN - + 69 END WHEN + 18 THEN - 11 END AS INTEGER ) / 29
----
NULL

query II rowsort
SELECT 31 * + + 11 AS col2, + 86
----
341
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT ALL + 61 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL + 61 / + 80
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT ALL 78 * 9 DIV 63
----
11

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL 78 * 9 / 63
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2032
SELECT - 91, + COALESCE ( - 1, + - CAST( NULL AS SIGNED ) + + 43 + + MAX( ALL + + 33 ) * - 47 * + - COUNT( ALL - 18 ), - 1 ) * 98 AS col0
----
-91
-98

skipif mysql # not compatible
query II rowsort label-2032
SELECT - 91, + COALESCE ( - 1, + - CAST ( NULL AS INTEGER ) + + 43 + + MAX ( ALL + + 33 ) * - 47 * + - COUNT ( ALL - 18 ), - 1 ) * 98 AS col0
----
-91
-98

query I rowsort
SELECT DISTINCT + 33 + 87 AS col1
----
120

query I rowsort
SELECT ALL 43 + + - 25
----
18

query I rowsort
SELECT DISTINCT 2 + + 40
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT ALL 37 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL 37 / 50
----
0

query I rowsort
SELECT 37 + + 66 AS col2
----
103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT CASE - 66 WHEN + COALESCE ( 84, + 79 ) * - 46 THEN 73 + - - COALESCE ( 51, + 71 - + + 72, - 63 ) WHEN - - COUNT( + 87 ) + 70 * - 66 THEN NULL END * COUNT( * ) * - MIN( DISTINCT + - 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT CASE - 66 WHEN + COALESCE ( 84, + 79 ) * - 46 THEN 73 + - - COALESCE ( 51, + 71 - + + 72, - 63 ) WHEN - - COUNT ( + 87 ) + 70 * - 66 THEN NULL END * COUNT ( * ) * - MIN ( DISTINCT + - 20 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT DISTINCT 36 * + COUNT( ALL + + CAST( 67 AS SIGNED ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT 36 * + COUNT ( ALL + + CAST ( 67 AS INTEGER ) ) AS col1
----
36

query I rowsort
SELECT DISTINCT 95 * + 57 AS col1
----
5415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2042
SELECT DISTINCT 6 - - 94 * + NULLIF ( 29, + CAST( - NULLIF ( 85, - + COUNT( * ) ) AS DECIMAL ) ) + - - COUNT( * ) col1
----
2733

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT 6 - - 94 * + NULLIF ( 29, + CAST ( - NULLIF ( 85, - + COUNT ( * ) ) AS REAL ) ) + - - COUNT ( * ) col1
----
2733

query I rowsort
SELECT ALL 65 * + 94
----
6110

query I rowsort
SELECT ALL 41 * + + 28
----
1148

query I rowsort
SELECT DISTINCT 0 * - 59 * - - 30
----
0

query II rowsort
SELECT + 5 AS col2, 67 + + - 56 AS col2
----
5
11

query I rowsort
SELECT + 84 + - + 98
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT + 54 * - 16 * - CASE - - 85 WHEN + - COALESCE ( + + 69, ( + 77 ) / - + 55 * + COUNT( * ) + - - 42 ) + 21 - + 8 THEN - 66 WHEN - 51 + + 12 + + 35 THEN - 96 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT + 54 * - 16 * - CASE - - 85 WHEN + - COALESCE ( + + 69, ( + 77 ) / - + 55 * + COUNT ( * ) + - - 42 ) + 21 - + 8 THEN - 66 WHEN - 51 + + 12 + + 35 THEN - 96 ELSE NULL END col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT + 67 - - ( - 58 ) + 92 DIV + 54
----
10

skipif mysql # not compatible
query I rowsort label-2050
SELECT + 67 - - ( - 58 ) + 92 / + 54
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT ALL + 76 + 24 DIV 96 - + 18 * - 7
----
202

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL + 76 + 24 / 96 - + 18 * - 7
----
202

query I rowsort
SELECT ALL + 16 + + 37 + - - 19 AS col2
----
72

query I rowsort
SELECT ALL - - 15 + + 1
----
16

query I rowsort
SELECT - ( 86 ) + + 93
----
7

query I rowsort
SELECT 25 + 26
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - MIN( 62 ) * + 7 + + 91
----
-343

skipif mysql # not compatible
query I rowsort label-2056
SELECT - MIN ( 62 ) * + 7 + + 91
----
-343

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

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

query I rowsort
SELECT ALL + 19 + 40
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2059
SELECT 38 + COUNT( * ) + + 51 * 32 + + 80 - 16 * - 96, 70 - - MIN( ALL + 88 ) AS col2
----
3287
158

skipif mysql # not compatible
query II rowsort label-2059
SELECT 38 + COUNT ( * ) + + 51 * 32 + + 80 - 16 * - 96, 70 - - MIN ( ALL + 88 ) AS col2
----
3287
158

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT ALL + 29 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + 29 / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT COUNT( DISTINCT + + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT COUNT ( DISTINCT + + 50 )
----
1

query I rowsort
SELECT 63 * - 62 AS col0
----
-3906

query I rowsort
SELECT 37 * 64 col2
----
2368

query I rowsort
SELECT ALL + 48 * - 42 * - 70
----
141120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2065
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) + 33 + SUM( DISTINCT - 94 ) AS col1, + 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-2065
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 33 + SUM ( DISTINCT - 94 ) AS col1, + 14
----
NULL
14

query I rowsort
SELECT ALL 60 * 87
----
5220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2067
SELECT + COUNT( * ) DIV - - 13 * + + 73 + - 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2067
SELECT + COUNT ( * ) / - - 13 * + + 73 + - 6 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT COUNT( DISTINCT - + 93 ) * - - 35 * - 37 AS col2
----
-1295

skipif mysql # not compatible
query I rowsort label-2068
SELECT COUNT ( DISTINCT - + 93 ) * - - 35 * - 37 AS col2
----
-1295

query I rowsort
SELECT DISTINCT + 39 * 8 * + 71 col2
----
22152

query I rowsort
SELECT ALL + 30 * + 79 * 59 * - ( + - 6 ) * 3 col2
----
2516940

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT MAX( ALL + + 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2071
SELECT MAX ( ALL + + 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT 26 * - COUNT( * ) * - SUM( - 33 )
----
-858

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT 26 * - COUNT ( * ) * - SUM ( - 33 )
----
-858

query I rowsort
SELECT + 95 * - 81 AS col0
----
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT - 88 * - + 2 + 72 + COUNT( * )
----
249

skipif mysql # not compatible
query I rowsort label-2074
SELECT - 88 * - + 2 + 72 + COUNT ( * )
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL + COUNT( * ) + + - 50 col0
----
-49

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL + COUNT ( * ) + + - 50 col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + MAX( + - 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-2076
SELECT + MAX ( + - 3 ) col0
----
-3

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

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

query I rowsort
SELECT DISTINCT 92 + 69 AS col0
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT + - 67 * - 29 - + COALESCE ( + 39, - - ( - - COALESCE ( - + 71, + 81 + 21 ) ) DIV + 11, + + 81 )
----
1904

skipif mysql # not compatible
query I rowsort label-2079
SELECT + - 67 * - 29 - + COALESCE ( + 39, - - ( - - COALESCE ( - + 71, + 81 + 21 ) ) / + 11, + + 81 )
----
1904

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

skipif mysql # not compatible
query I rowsort label-2080
SELECT - 71 * + 7 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL NULLIF ( + COUNT( * ), 50 ) + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL NULLIF ( + COUNT ( * ), 50 ) + 68 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL + 86 + - 61 + - ( COUNT( * ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + 86 + - 61 + - ( COUNT ( * ) ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT COALESCE ( + NULLIF ( + COUNT( * ), 18 * 24 - + 75 ), - - CASE - - 67 WHEN + 36 + + 73 + - + 29 THEN NULL ELSE + 68 DIV - 78 * + + 40 * + MAX( ALL - 17 ) + - ( - 70 ) END, ( + - 57 ) + - COUNT( * ) + - COUNT( * ) * - COUNT( * ), + - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-2083
SELECT COALESCE ( + NULLIF ( + COUNT ( * ), 18 * 24 - + 75 ), - - CASE - - 67 WHEN + 36 + + 73 + - + 29 THEN NULL ELSE + 68 / - 78 * + + 40 * + MAX ( ALL - 17 ) + - ( - 70 ) END, ( + - 57 ) + - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ), + - 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT - - SUM( ALL + 58 ) + 53
----
111

skipif mysql # not compatible
query I rowsort label-2084
SELECT - - SUM ( ALL + 58 ) + 53
----
111

query II rowsort
SELECT ALL + - 75 + - + 39, 25 AS col0
----
-114
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT DISTINCT CAST( - 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT CAST ( - 61 AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT MAX( + 21 ) AS col0, - 97 AS col0
----
21
-97

skipif mysql # not compatible
query II rowsort label-2087
SELECT MAX ( + 21 ) AS col0, - 97 AS col0
----
21
-97

query I rowsort
SELECT + - 65 * - 75 AS col2
----
4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2089
SELECT DISTINCT 40 AS col1, + NULLIF ( - 24, + NULLIF ( - 33, + - CASE - - COUNT( * ) WHEN - + CAST( 57 AS SIGNED ) + - 84 + MIN( - ( + 48 ) ) THEN NULL WHEN + 86 * - ( - SUM( + 67 ) ) + + 9 THEN NULL ELSE 64 * + 72 END ) + + 69 ) DIV + 68 AS col0
----
40
0

skipif mysql # not compatible
query II rowsort label-2089
SELECT DISTINCT 40 AS col1, + NULLIF ( - 24, + NULLIF ( - 33, + - CASE - - COUNT ( * ) WHEN - + CAST ( 57 AS INTEGER ) + - 84 + MIN ( - ( + 48 ) ) THEN NULL WHEN + 86 * - ( - SUM ( + 67 ) ) + + 9 THEN NULL ELSE 64 * + 72 END ) + + 69 ) / + 68 AS col0
----
40
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2090
SELECT DISTINCT + 15 * + CAST( NULL AS DECIMAL ) * + 23 AS col1, + 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-2090
SELECT DISTINCT + 15 * + CAST ( NULL AS REAL ) * + 23 AS col1, + 26
----
NULL
26

query I rowsort
SELECT ALL NULLIF ( + 85, - 76 * + 87 ) AS col0
----
85

query I rowsort
SELECT DISTINCT + 70 - 52
----
18

query I rowsort
SELECT DISTINCT - 16 * - 6 * + - 29 AS col1
----
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2094
SELECT ALL NULLIF ( - - CASE - 80 WHEN + 11 THEN - 43 WHEN - ( + 26 ) * - 30 + - - 53 + - + 74 * + CAST( NULL AS SIGNED ) / - 85 THEN NULL END, - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL NULLIF ( - - CASE - 80 WHEN + 11 THEN - 43 WHEN - ( + 26 ) * - 30 + - - 53 + - + 74 * + CAST ( NULL AS INTEGER ) / - 85 THEN NULL END, - 5 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( 69, 9 ) col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2097
SELECT ALL - 53 * NULLIF ( CAST( + 12 AS SIGNED ), - 68 - 36 + - + NULLIF ( + COALESCE ( CAST( NULL AS SIGNED ), - - 34 * 73 + + COALESCE ( 30, + COUNT( * ), 0 - + + NULLIF ( 1, - - 52 ), + 76 ) ), - 56 ) * - 60 ) AS col2
----
-636

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL - 53 * NULLIF ( CAST ( + 12 AS INTEGER ), - 68 - 36 + - + NULLIF ( + COALESCE ( CAST ( NULL AS INTEGER ), - - 34 * 73 + + COALESCE ( 30, + COUNT ( * ), 0 - + + NULLIF ( 1, - - 52 ), + 76 ) ), - 56 ) * - 60 ) AS col2
----
-636

query II rowsort
SELECT ALL + 56, - 79 AS col1
----
56
-79

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

query I rowsort
SELECT DISTINCT - 72 / - CASE - 35 WHEN 24 THEN + 33 + - + 15 END
----
NULL

query I rowsort
SELECT - 88 * - ( 94 ) AS col2
----
8272

query I rowsort
SELECT - 0 + - 20
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2103
SELECT ALL ( - 61 ) * - - COUNT( * ) * + 41 + - COUNT( * ) + + + 86 DIV + 90 AS col1
----
-2502

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL ( - 61 ) * - - COUNT ( * ) * + 41 + - COUNT ( * ) + + + 86 / + 90 AS col1
----
-2502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT + NULLIF ( - CAST( + 81 AS SIGNED ), - 60 ) * + - 63 + - + MAX( 25 ) AS col2
----
5078

skipif mysql # not compatible
query I rowsort label-2104
SELECT + NULLIF ( - CAST ( + 81 AS INTEGER ), - 60 ) * + - 63 + - + MAX ( 25 ) AS col2
----
5078

query I rowsort
SELECT + 82 - 24 col1
----
58

query I rowsort
SELECT - - 20 * + 77
----
1540

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2108
SELECT ALL + NULLIF ( MAX( 54 ), 43 + + - 17 ), - 74 + + COUNT( DISTINCT + 88 ) AS col1
----
54
-73

skipif mysql # not compatible
query II rowsort label-2108
SELECT ALL + NULLIF ( MAX ( 54 ), 43 + + - 17 ), - 74 + + COUNT ( DISTINCT + 88 ) AS col1
----
54
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT ALL - COUNT( * ) * 39 * + 34 + CAST( NULL AS SIGNED ) * 52 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL - COUNT ( * ) * 39 * + 34 + CAST ( NULL AS INTEGER ) * 52 * + 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT - - 71 + + 78 * + CASE - 80 WHEN + CAST( NULL AS SIGNED ) THEN - 49 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT - - 71 + + 78 * + CASE - 80 WHEN + CAST ( NULL AS INTEGER ) THEN - 49 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL - + NULLIF ( + - 46, - + 42 * + 48 / - - 71 - + COUNT( * ) ) * + 67 col1
----
3082

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - + NULLIF ( + - 46, - + 42 * + 48 / - - 71 - + COUNT ( * ) ) * + 67 col1
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL + 72 * + + CASE - 88 WHEN COUNT( 4 ) * - ( + 35 ) THEN + 82 END + - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL + 72 * + + CASE - 88 WHEN COUNT ( 4 ) * - ( + 35 ) THEN + 82 END + - 46 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT + 64 AS col1, - MAX( ALL + 27 )
----
64
-27

skipif mysql # not compatible
query II rowsort label-2114
SELECT + 64 AS col1, - MAX ( ALL + 27 )
----
64
-27

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

skipif mysql # not compatible
query I rowsort label-2115
SELECT + MAX ( - 81 )
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2116
SELECT - CAST( NULL AS DECIMAL ) * + + 62 * + 76 - - ( - - 96 ) * + - 13 + + - 30 * + 39 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT - CAST ( NULL AS REAL ) * + + 62 * + 76 - - ( - - 96 ) * + - 13 + + - 30 * + 39 + 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2117
SELECT + - 75 AS col2, CASE + 85 WHEN + 50 THEN NULL ELSE COUNT( * ) END * - 6 DIV - 9 AS col1
----
-75
0

skipif mysql # not compatible
query II rowsort label-2117
SELECT + - 75 AS col2, CASE + 85 WHEN + 50 THEN NULL ELSE COUNT ( * ) END * - 6 / - 9 AS col1
----
-75
0

query I rowsort
SELECT + 65 + + NULLIF ( - 52, + 62 * + 79 * - + 4 / - 75 ) * - 1 * 59 * COALESCE ( - 5, - 46 ) AS col0
----
-15275

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT DISTINCT - ( + ( - + 8 ) ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - ( + ( - + 8 ) ) / - 39
----
0

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

skipif mysql # not compatible
query II rowsort label-2121
SELECT + ( CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col2, - 38 * COUNT ( * )
----
NULL
-38

query I rowsort
SELECT + + 94 * + - 25 AS col2
----
-2350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2123
SELECT ALL CAST( NULL AS SIGNED ) * - 52, 1 * - ( - - 11 ) AS col0
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL CAST ( NULL AS INTEGER ) * - 52, 1 * - ( - - 11 ) AS col0
----
NULL
-11

query I rowsort
SELECT + 96 * - - 65 * 67
----
418080

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT + COUNT( * ) * NULLIF ( 15, 25 + + 7 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2125
SELECT + COUNT ( * ) * NULLIF ( 15, 25 + + 7 ) AS col0
----
15

query I rowsort
SELECT + 14 + 48 * + 97
----
4670

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + COUNT( * ) - + 5
----
-4

skipif mysql # not compatible
query I rowsort label-2127
SELECT + COUNT ( * ) - + 5
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + MAX( DISTINCT + 91 ) + + 69 * + 88
----
6163

skipif mysql # not compatible
query I rowsort label-2128
SELECT + MAX ( DISTINCT + 91 ) + + 69 * + 88
----
6163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL CASE + 93 WHEN 97 THEN 26 - - 49 WHEN + + 64 * - ( + 7 ) THEN - COUNT( * ) * + + 30 + - COUNT( * ) + - - COUNT( * ) + - + CAST( + ( + 16 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL CASE + 93 WHEN 97 THEN 26 - - 49 WHEN + + 64 * - ( + 7 ) THEN - COUNT ( * ) * + + 30 + - COUNT ( * ) + - - COUNT ( * ) + - + CAST ( + ( + 16 ) AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + MAX( + - 62 ) + COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2130
SELECT + MAX ( + - 62 ) + COUNT ( * ) AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2131
SELECT + 43 * + CASE - + 7 WHEN - 62 * + COUNT( * ) * + COUNT( * ) THEN - - 59 WHEN - + ( + 16 ) * - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + 15 + 25 - + 28 * - 11 * - 44 * + + 83 ELSE NULL END * + 84 + + 20 / ( 20 ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT + 43 * + CASE - + 7 WHEN - 62 * + COUNT ( * ) * + COUNT ( * ) THEN - - 59 WHEN - + ( + 16 ) * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 15 + 25 - + 28 * - 11 * - 44 * + + 83 ELSE NULL END * + 84 + + 20 / ( 20 ) * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + 60 + + COUNT( * ) + + 78
----
139

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 60 + + COUNT ( * ) + + 78
----
139

query II rowsort
SELECT 91 AS col0, + 16
----
91
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT + COALESCE ( + ( 56 ), - 71 + + 23 + 28, - 8 ) + + COALESCE ( + - COUNT( * ), - - COUNT( * ) * + 67 - + 59 ) DIV + 28
----
56

skipif mysql # not compatible
query I rowsort label-2134
SELECT + COALESCE ( + ( 56 ), - 71 + + 23 + 28, - 8 ) + + COALESCE ( + - COUNT ( * ), - - COUNT ( * ) * + 67 - + 59 ) / + 28
----
56

query I rowsort
SELECT ALL - 67 * 2
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2136
SELECT - 12 + + 49 + - - AVG ( CAST( NULL AS DECIMAL ) ) + + 24 + + 99 * + - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT - 12 + + 49 + - - AVG ( CAST ( NULL AS REAL ) ) + + 24 + + 99 * + - 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL 18 * - + SUM( DISTINCT + 88 )
----
-1584

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL 18 * - + SUM ( DISTINCT + 88 )
----
-1584

query I rowsort
SELECT DISTINCT 36 * + - 74 AS col0
----
-2664

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT 10 DIV - - MAX( DISTINCT - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-2140
SELECT 10 / - - MAX ( DISTINCT - 8 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - MIN( ALL 51 ) + - 84 - - 19 * + 61 / + - 13 + + COUNT( * ) + + + 28 * - 8 + 17 * 37 - - CASE 61 WHEN + 36 / + + 30 - ( + 22 ) * - 47 THEN - 50 + - 48 ELSE NULL END * + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - MIN ( ALL 51 ) + - 84 - - 19 * + 61 / + - 13 + + COUNT ( * ) + + + 28 * - 8 + 17 * 37 - - CASE 61 WHEN + 36 / + + 30 - ( + 22 ) * - 47 THEN - 50 + - 48 ELSE NULL END * + 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT SUM( + 81 ) * - 45 AS col2
----
-3645

skipif mysql # not compatible
query I rowsort label-2142
SELECT SUM ( + 81 ) * - 45 AS col2
----
-3645

query I rowsort
SELECT DISTINCT - 49 + + 79
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL + COUNT( + - 78 ) + - 26 - - - 71 + NULLIF ( ( COUNT( * ) ), + MIN( + 50 ) + - 24 )
----
-95

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + COUNT ( + - 78 ) + - 26 - - - 71 + NULLIF ( ( COUNT ( * ) ), + MIN ( + 50 ) + - 24 )
----
-95

query II rowsort
SELECT + 46, COALESCE ( 87, - + ( - 44 ) + + 29 ) AS col0
----
46
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT ALL - 72, - COUNT( * ) - - 27 AS col0
----
-72
26

skipif mysql # not compatible
query II rowsort label-2146
SELECT ALL - 72, - COUNT ( * ) - - 27 AS col0
----
-72
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2147
SELECT ALL + COUNT( * ) + + + 50 - + ( - - COALESCE ( MIN( 8 ), 86 * + + CASE - 99 WHEN - 6 THEN 73 ELSE + - COALESCE ( - - 31, + 2 DIV - + 67 + - - 38 - + ( 72 ) ) - - 1 + - COALESCE ( - COUNT( * ), ( 32 ) DIV 84 + - - 45, - NULLIF ( - COUNT( * ), + 80 * COUNT( * ) ) ) * + 32 END DIV + 79 ) ) + - COALESCE ( - 95, 72 )
----
138

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL + COUNT ( * ) + + + 50 - + ( - - COALESCE ( MIN ( 8 ), 86 * + + CASE - 99 WHEN - 6 THEN 73 ELSE + - COALESCE ( - - 31, + 2 / - + 67 + - - 38 - + ( 72 ) ) - - 1 + - COALESCE ( - COUNT ( * ), ( 32 ) / 84 + - - 45, - NULLIF ( - COUNT ( * ), + 80 * COUNT ( * ) ) ) * + 32 END / + 79 ) ) + - COALESCE ( - 95, 72 )
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT ALL - 89 DIV - 87
----
1

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - 89 / - 87
----
1

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

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

query I rowsort
SELECT ALL + + 8 + + 69 AS col0
----
77

query I rowsort
SELECT DISTINCT + - 38 * + - 49 + - 85
----
1777

query I rowsort
SELECT + 53 * + ( - 84 )
----
-4452

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

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + COUNT ( * ) / + - 45
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT CASE - 38 WHEN - 79 THEN + - NULLIF ( + 91, - 81 ) / - - 85 * + SUM( + 15 ) + - 61 - - ( - + 32 ) + 57 - + 39 - - MAX( ALL + 28 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT CASE - 38 WHEN - 79 THEN + - NULLIF ( + 91, - 81 ) / - - 85 * + SUM ( + 15 ) + - 61 - - ( - + 32 ) + 57 - + 39 - - MAX ( ALL + 28 ) END AS col2
----
NULL

query II rowsort
SELECT + + 77 AS col0, - 63 col1
----
77
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT DISTINCT - - COALESCE ( - 89, 49 DIV - COUNT( DISTINCT - 18 ) + - + 38 + - COALESCE ( - + 87, COUNT( * ), - - 88 * + - ( + + 84 ) + - + 84 + 12, + + 57 + 66 * + MAX( + + 60 ) ) * + + 82, - CASE - 64 WHEN - - 13 THEN + 53 DIV COUNT( * ) * + 45 * - - 24 + ( - 36 ) ELSE + 48 END * - 17 )
----
-89

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT - - COALESCE ( - 89, 49 / - COUNT ( DISTINCT - 18 ) + - + 38 + - COALESCE ( - + 87, COUNT ( * ), - - 88 * + - ( + + 84 ) + - + 84 + 12, + + 57 + 66 * + MAX ( + + 60 ) ) * + + 82, - CASE - 64 WHEN - - 13 THEN + 53 / COUNT ( * ) * + 45 * - - 24 + ( - 36 ) ELSE + 48 END * - 17 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2158
SELECT ALL - + 33 - + 7 + 16 DIV - - NULLIF ( - 14, + COUNT( * ) * 26 * - + 52 + 89 )
----
-41

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - + 33 - + 7 + 16 / - - NULLIF ( - 14, + COUNT ( * ) * 26 * - + 52 + 89 )
----
-41

query I rowsort
SELECT NULLIF ( + + 49, 90 ) col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL - CASE - - 67 WHEN - 88 + COALESCE ( + 57, + COUNT( * ), - + 85 + - - 78 ) THEN 7 + - COUNT( ( - CASE - 82 WHEN 92 THEN 18 END ) ) WHEN 63 THEN NULL ELSE + 16 END * 27 * 68
----
-29376

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - CASE - - 67 WHEN - 88 + COALESCE ( + 57, + COUNT ( * ), - + 85 + - - 78 ) THEN 7 + - COUNT ( ( - CASE - 82 WHEN 92 THEN 18 END ) ) WHEN 63 THEN NULL ELSE + 16 END * 27 * 68
----
-29376

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL - - CASE - - 2 WHEN 34 * + 19 + + ( - COUNT( * ) ) THEN + 77 * - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL - - CASE - - 2 WHEN 34 * + 19 + + ( - COUNT ( * ) ) THEN + 77 * - 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT DISTINCT - + CASE 27 WHEN - 68 THEN 30 * - CASE + + 90 WHEN + - 96 THEN - COUNT( * ) * - + 50 * 42 ELSE NULL END + + 35 + - + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT - + CASE 27 WHEN - 68 THEN 30 * - CASE + + 90 WHEN + - 96 THEN - COUNT ( * ) * - + 50 * 42 ELSE NULL END + + 35 + - + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL CASE - + 39 WHEN - 31 / - COUNT( * ) THEN NULL WHEN + ( + 91 ) * + + 85 THEN - 65 + + - 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL CASE - + 39 WHEN - 31 / - COUNT ( * ) THEN NULL WHEN + ( + 91 ) * + + 85 THEN - 65 + + - 19 END AS col0
----
NULL

query II rowsort
SELECT 76 * - - 95 AS col1, 97
----
7220
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2165
SELECT 47 * + - COUNT( * ), 64 AS col2
----
-47
64

skipif mysql # not compatible
query II rowsort label-2165
SELECT 47 * + - COUNT ( * ), 64 AS col2
----
-47
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT COUNT( - 73 ) + 97 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2166
SELECT COUNT ( - 73 ) + 97 AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT DISTINCT 2 DIV - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT 2 / - 65 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2168
SELECT CAST( + 78 AS SIGNED ) + + 65 + + 83
----
226

skipif mysql # not compatible
query I rowsort label-2168
SELECT CAST ( + 78 AS INTEGER ) + + 65 + + 83
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL 37 * + - SUM( DISTINCT - 47 )
----
1739

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL 37 * + - SUM ( DISTINCT - 47 )
----
1739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2170
SELECT DISTINCT 72 * + + 40 / + CASE 0 WHEN + + CASE + COUNT( * ) WHEN - 5 / + ( + 62 ) * - COALESCE ( + 80, + CAST( NULL AS DECIMAL ), - 86 + - 72 ) THEN + 41 * + 91 + + - 28 WHEN - - 81 + - ( + CAST( + 74 AS SIGNED ) ) * 66 THEN NULL ELSE NULL END THEN + 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT 72 * + + 40 / + CASE 0 WHEN + + CASE + COUNT ( * ) WHEN - 5 / + ( + 62 ) * - COALESCE ( + 80, + CAST ( NULL AS REAL ), - 86 + - 72 ) THEN + 41 * + 91 + + - 28 WHEN - - 81 + - ( + CAST ( + 74 AS INTEGER ) ) * 66 THEN NULL ELSE NULL END THEN + 78 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2171
SELECT ALL 1 * - - 84 AS col1, - 53 DIV 46 * + 17 col2
----
84
-17

skipif mysql # not compatible
query II rowsort label-2171
SELECT ALL 1 * - - 84 AS col1, - 53 / 46 * + 17 col2
----
84
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT MAX( + 12 ) - ( + 58 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2172
SELECT MAX ( + 12 ) - ( + 58 ) AS col0
----
-46

query II rowsort
SELECT 26 * + 85 AS col2, 8 col1
----
2210
8

query I rowsort
SELECT ALL 65 + + - 34 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT ALL COUNT( * ) + + CASE - CAST( - 11 AS SIGNED ) WHEN + + COUNT( * ) / + NULLIF ( + 91, COUNT( * ) + + - ( 66 ) * COUNT( * ) / 76 * + + 51 * 92 * 66 + + CAST( - 69 AS SIGNED ) + + + 21 * - 18 - - - 7 ) THEN - - 66 * + 97 WHEN 11 THEN + COUNT( * ) ELSE NULL END
----
2

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL COUNT ( * ) + + CASE - CAST ( - 11 AS INTEGER ) WHEN + + COUNT ( * ) / + NULLIF ( + 91, COUNT ( * ) + + - ( 66 ) * COUNT ( * ) / 76 * + + 51 * 92 * 66 + + CAST ( - 69 AS INTEGER ) + + + 21 * - 18 - - - 7 ) THEN - - 66 * + 97 WHEN 11 THEN + COUNT ( * ) ELSE NULL END
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT DISTINCT 94 + + 6 DIV + 76 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT 94 + + 6 / + 76 AS col0
----
94

query I rowsort
SELECT ALL - - 85 + + 4 + 65 * 77 AS col0
----
5094

query I rowsort
SELECT ALL - 49 + + 89 AS col0
----
40

query I rowsort
SELECT DISTINCT - - 35 + - 28 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT CASE + 61 WHEN - 96 * + 72 + + 4 THEN NULL WHEN + 91 / 52 * + COUNT( * ) THEN + 51 * + - 76 * + 92 * + 80 * + 78 * AVG ( ALL - 7 ) + - COUNT( ALL + 16 ) ELSE - 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-2180
SELECT CASE + 61 WHEN - 96 * + 72 + + 4 THEN NULL WHEN + 91 / 52 * + COUNT ( * ) THEN + 51 * + - 76 * + 92 * + 80 * + 78 * AVG ( ALL - 7 ) + - COUNT ( ALL + 16 ) ELSE - 60 END
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT ALL - 99 + - 33 DIV 74 * - 69 - + - 86 * + 95
----
8071

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL - 99 + - 33 / 74 * - 69 - + - 86 * + 95
----
8071

query I rowsort
SELECT 69 + + 59 * - + 70
----
-4061

query I rowsort
SELECT + 20 * + 13
----
260

query II rowsort
SELECT ALL + 33 - 68 - - 88 * 96 * - 30 AS col1, 79 AS col1
----
-253475
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2185
SELECT - CASE 6 WHEN + CASE - ( 25 ) WHEN 55 THEN NULL WHEN - COUNT( ALL - ( 44 ) ) THEN - COUNT( * ) END + + COUNT( * ) * - 50 + + CAST( - 3 AS DECIMAL ) THEN NULL WHEN 48 * + 43 THEN + SUM( + - ( - + 61 ) ) + + COALESCE ( - 84, 26 ) * + 27 ELSE 0 END * - COALESCE ( - + 19, + CAST( 79 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2185
SELECT - CASE 6 WHEN + CASE - ( 25 ) WHEN 55 THEN NULL WHEN - COUNT ( ALL - ( 44 ) ) THEN - COUNT ( * ) END + + COUNT ( * ) * - 50 + + CAST ( - 3 AS REAL ) THEN NULL WHEN 48 * + 43 THEN + SUM ( + - ( - + 61 ) ) + + COALESCE ( - 84, 26 ) * + 27 ELSE 0 END * - COALESCE ( - + 19, + CAST ( 79 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL 56 * 97 - SUM( - 51 ) + NULLIF ( + - 36, + + CAST( NULL AS SIGNED ) ) * + - 91 / - 0 * - 45 * - 10 * - CAST( NULL AS SIGNED ) * - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL 56 * 97 - SUM ( - 51 ) + NULLIF ( + - 36, + + CAST ( NULL AS INTEGER ) ) * + - 91 / - 0 * - 45 * - 10 * - CAST ( NULL AS INTEGER ) * - - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL - + ( + CASE + - COUNT( * ) WHEN + COUNT( * ) * - COUNT( * ) THEN 24 ELSE + 41 END )
----
-24

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - + ( + CASE + - COUNT ( * ) WHEN + COUNT ( * ) * - COUNT ( * ) THEN 24 ELSE + 41 END )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT CASE + 87 WHEN 20 / + COUNT( * ) THEN 93 WHEN + 91 THEN 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2188
SELECT CASE + 87 WHEN 20 / + COUNT ( * ) THEN 93 WHEN + 91 THEN 9 ELSE NULL END
----
NULL

query I rowsort
SELECT 84 + + 30 AS col1
----
114

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

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

query I rowsort
SELECT 17 * + 18 AS col2
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT - ( - ( + 56 ) ) * + + 30 + 56 + COUNT( * ) + - 10 * 19 * + COUNT( + - 53 ) * + ( 57 ) * 16 + - 2 * - 57 AS col0
----
-171429

skipif mysql # not compatible
query I rowsort label-2192
SELECT - ( - ( + 56 ) ) * + + 30 + 56 + COUNT ( * ) + - 10 * 19 * + COUNT ( + - 53 ) * + ( 57 ) * 16 + - 2 * - 57 AS col0
----
-171429

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT COUNT( DISTINCT 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2193
SELECT COUNT ( DISTINCT 40 ) AS col0
----
1

query II rowsort
SELECT ALL - 2 * ( 2 ) AS col0, + ( 70 ) AS col0
----
-4
70

query I rowsort
SELECT 56 * + 67
----
3752

query I rowsort
SELECT ALL + 30 + + - 20
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT 72 - 70 * - COUNT( * ) + + - COUNT( * ) + + 48 col0
----
189

skipif mysql # not compatible
query I rowsort label-2197
SELECT 72 - 70 * - COUNT ( * ) + + - COUNT ( * ) + + 48 col0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL 31 + + 80 * - 72 * + + COUNT( DISTINCT - 9 ) AS col1
----
-5729

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL 31 + + 80 * - 72 * + + COUNT ( DISTINCT - 9 ) AS col1
----
-5729

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2201
SELECT - NULLIF ( 40, ( ( + + MAX( + 78 ) ) ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT - NULLIF ( 40, ( ( + + MAX ( + 78 ) ) ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 7 - 88 + NULLIF ( 57, - - 88 + + 10 + - 58 / 80 ) * + 46 AS col2
----
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL 89 + - 82 * - + COUNT( * ) + + 36 + + + 78
----
285

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL 89 + - 82 * - + COUNT ( * ) + + 36 + + + 78
----
285

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT + 59 DIV - 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2204
SELECT + 59 / - 40 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2205
SELECT - CAST( 66 AS SIGNED ) + - 88, - CAST( NULL AS SIGNED ) + 88 AS col1
----
-154
NULL

skipif mysql # not compatible
query II rowsort label-2205
SELECT - CAST ( 66 AS INTEGER ) + - 88, - CAST ( NULL AS INTEGER ) + 88 AS col1
----
-154
NULL

query I rowsort
SELECT ALL 41 + + + 23 * - - 14 AS col1
----
363

query I rowsort
SELECT + 47 + ( 10 ) AS col0
----
57

query II rowsort
SELECT ALL NULLIF ( CASE - 44 WHEN + 52 THEN 69 ELSE NULL END, 85 ) AS col2, 60
----
NULL
60

query II rowsort
SELECT ALL 87 AS col0, - 61 col0
----
87
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT DISTINCT COUNT( 9 ) * 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT COUNT ( 9 ) * 78 AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT ALL - 94 AS col1, MAX( ALL - 50 )
----
-94
-50

skipif mysql # not compatible
query II rowsort label-2211
SELECT ALL - 94 AS col1, MAX ( ALL - 50 )
----
-94
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2212
SELECT - COUNT( * ) DIV + 27 + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-2212
SELECT - COUNT ( * ) / + 27 + - 39
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL + MAX( DISTINCT + + NULLIF ( - + 83, - 40 + 47 * + 52 / ( - 36 ) ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + MAX ( DISTINCT + + NULLIF ( - + 83, - 40 + 47 * + 52 / ( - 36 ) ) ) AS col0
----
-83

query I rowsort
SELECT + + 82 * + - 30 AS col1
----
-2460

query I rowsort
SELECT + 21 * 1
----
21

query I rowsort
SELECT ALL 90 * - 66
----
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + 60 + + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2218
SELECT + 60 + + COUNT ( * ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT 46 * + 40 - - - COUNT( * ), COUNT( * ) AS col0
----
1839
1

skipif mysql # not compatible
query II rowsort label-2219
SELECT 46 * + 40 - - - COUNT ( * ), COUNT ( * ) AS col0
----
1839
1

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

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

query I rowsort
SELECT ALL 17 * + 31 AS col2
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - - COUNT( * ) * - + COUNT( * ) * + 48 + - 49 + 30
----
-67

skipif mysql # not compatible
query I rowsort label-2222
SELECT - - COUNT ( * ) * - + COUNT ( * ) * + 48 + - 49 + 30
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT + SUM( ALL + + 90 ) + + + 11 + + CAST( NULL AS SIGNED ) / + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT + SUM ( ALL + + 90 ) + + + 11 + + CAST ( NULL AS INTEGER ) / + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2224
SELECT CAST( NULL AS DECIMAL ) * - 12 - COUNT( - 8 ) * - + AVG ( CAST( + 13 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT CAST ( NULL AS REAL ) * - 12 - COUNT ( - 8 ) * - + AVG ( CAST ( + 13 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2225
SELECT - NULLIF ( + - 89, + 22 ) * + ( 86 ) - - COUNT( * ) + + - NULLIF ( - MIN( DISTINCT COALESCE ( COALESCE ( - - 73, + 82 + COALESCE ( - 70, 42, - 92, ( - + ( - + 4 ) ) * - 88 + + - 96 ) ), + ( - + 72 ) - + 80 ) ), - - COUNT( * ) ) + + + CAST( - + 39 AS SIGNED ) AS col2, - 40 * 37
----
7689
-1480

skipif mysql # not compatible
query II rowsort label-2225
SELECT - NULLIF ( + - 89, + 22 ) * + ( 86 ) - - COUNT ( * ) + + - NULLIF ( - MIN ( DISTINCT COALESCE ( COALESCE ( - - 73, + 82 + COALESCE ( - 70, 42, - 92, ( - + ( - + 4 ) ) * - 88 + + - 96 ) ), + ( - + 72 ) - + 80 ) ), - - COUNT ( * ) ) + + + CAST ( - + 39 AS INTEGER ) AS col2, - 40 * 37
----
7689
-1480

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT MIN( ALL + 88 ) col2, 61
----
88
61

skipif mysql # not compatible
query II rowsort label-2226
SELECT MIN ( ALL + 88 ) col2, 61
----
88
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT - ( MAX( 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-2227
SELECT - ( MAX ( 17 ) )
----
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT + 1 DIV - + 71
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT + 1 / - + 71
----
0

query I rowsort
SELECT DISTINCT - 26 * - - 32
----
-832

query I rowsort
SELECT - 83 + - 84 - - - ( - ( 8 ) ) * 41
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL COALESCE ( - COUNT( * ), COUNT( ALL 94 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL COALESCE ( - COUNT ( * ), COUNT ( ALL 94 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 54 * ( - COALESCE ( 71, - 67, - 67 ) )
----
-3834

query II rowsort
SELECT DISTINCT 18 + ( 67 ) + - 62, - 88 * ( 84 ) col2
----
23
-7392

query II rowsort
SELECT ALL NULLIF ( 50, - 16 * + - 82 ) col2, - 11
----
50
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL + COALESCE ( - - 93, - ( 7 ) ) * - SUM( DISTINCT - 79 )
----
7347

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL + COALESCE ( - - 93, - ( 7 ) ) * - SUM ( DISTINCT - 79 )
----
7347

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - MAX( + 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2237
SELECT - MAX ( + 37 ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT - CAST( NULL AS SIGNED ) - - + 80 * - COUNT( 89 ) * - - 30
----
NULL

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

query I rowsort
SELECT - 19 - 3 AS col2
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - - COUNT( DISTINCT + 84 ) * + 2 * SUM( DISTINCT - 19 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2241
SELECT - - COUNT ( DISTINCT + 84 ) * + 2 * SUM ( DISTINCT - 19 ) AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT DISTINCT + ( - - 46 ) DIV 67 - 51 - + + 41 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT + ( - - 46 ) / 67 - 51 - + + 41 AS col1
----
-92

query II rowsort
SELECT DISTINCT - + 60 - - - 4 AS col0, 59
----
-64
59

query I rowsort
SELECT - + 27 * ( + - 41 ) col0
----
1107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2245
SELECT ALL - COUNT( * ) * 81 - - + ( - - CASE - NULLIF ( 86, + 58 ) WHEN - 41 THEN - 1 END ), CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2245
SELECT ALL - COUNT ( * ) * 81 - - + ( - - CASE - NULLIF ( 86, + 58 ) WHEN - 41 THEN - 1 END ), CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT - - NULLIF ( 33, 35 * 20 + - 57 + - - ( - 79 ) * COUNT( * ) + 94 + 56 ) - + 92
----
-59

skipif mysql # not compatible
query I rowsort label-2246
SELECT - - NULLIF ( 33, 35 * 20 + - 57 + - - ( - 79 ) * COUNT ( * ) + 94 + 56 ) - + 92
----
-59

query I rowsort
SELECT - 35 + 51
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT + NULLIF ( - 84, - 76 ) DIV - + 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2248
SELECT + NULLIF ( - 84, - 76 ) / - + 76 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL CASE + 23 WHEN + 13 + - 40 + - 87 * + 70 THEN + 71 ELSE - 44 + 21 END * - 69 * + SUM( + 43 ) AS col0
----
68241

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL CASE + 23 WHEN + 13 + - 40 + - 87 * + 70 THEN + 71 ELSE - 44 + 21 END * - 69 * + SUM ( + 43 ) AS col0
----
68241

query I rowsort
SELECT - - 59 * + 22 * 34 * - COALESCE ( 69, - 93, - + 53 )
----
-3045108

query I rowsort
SELECT ALL + NULLIF ( - ( 8 ), + 72 / - + 84 )
----
-8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2253
SELECT + COUNT( * ) + - 47 DIV + COUNT( DISTINCT + 39 ) + + 67 - - - MAX( 28 ) + + ( - - 26 ) - 86 * - 74
----
6383

skipif mysql # not compatible
query I rowsort label-2253
SELECT + COUNT ( * ) + - 47 / + COUNT ( DISTINCT + 39 ) + + 67 - - - MAX ( 28 ) + + ( - - 26 ) - 86 * - 74
----
6383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT + 0 * - ( + + 4 ) * ( + 35 ) + + 13 + + - COALESCE ( + CAST( NULL AS SIGNED ), + + CAST( + 30 AS SIGNED ) * - 50, + COUNT( * ) * - + 19 + - 96 ) AS col1
----
1513

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 0 * - ( + + 4 ) * ( + 35 ) + + 13 + + - COALESCE ( + CAST ( NULL AS INTEGER ), + + CAST ( + 30 AS INTEGER ) * - 50, + COUNT ( * ) * - + 19 + - 96 ) AS col1
----
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL NULLIF ( + MAX( DISTINCT + + 5 ), + MIN( - - 86 ) ) * + ( COUNT( * ) ) + + - 46 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL NULLIF ( + MAX ( DISTINCT + + 5 ), + MIN ( - - 86 ) ) * + ( COUNT ( * ) ) + + - 46 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT ALL 19 + - 4 * - 77 DIV - 70 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 19 + - 4 * - 77 / - 70 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL 78 + - 91 - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL 78 + - 91 - COUNT ( * )
----
-14

query I rowsort
SELECT + 68 * 61 + - + 45 + + 15
----
4118

query I rowsort
SELECT 81 + + 46 AS col2
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL SUM( - - 65 ) + + 26 + 24 + + 54 / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL SUM ( - - 65 ) + + 26 + 24 + + 54 / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 68 * 36 + - + 17
----
2431

query I rowsort
SELECT ( - NULLIF ( 30, + - 21 / - - 31 ) ) + 68
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT 97 + - - MAX( + + 7 )
----
104

skipif mysql # not compatible
query I rowsort label-2263
SELECT 97 + - - MAX ( + + 7 )
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-2264
SELECT - 81, + 36 * + 13 * - 40 + - COUNT( * ) AS col0
----
-81
-18721

skipif mysql # not compatible
query II rowsort label-2264
SELECT - 81, + 36 * + 13 * - 40 + - COUNT ( * ) AS col0
----
-81
-18721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2265
SELECT 45 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT 45 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL - COUNT( * ) * - 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - COUNT ( * ) * - 46 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT 51 / 36 / + 9 + CAST( CASE - ( - 26 ) WHEN 75 * 12 THEN - 52 WHEN - 10 * + 80 + - 78 THEN 49 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT 51 / 36 / + 9 + CAST ( CASE - ( - 26 ) WHEN 75 * 12 THEN - 52 WHEN - 10 * + 80 + - 78 THEN 49 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - ( - + MAX( ALL 9 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2268
SELECT - ( - + MAX ( ALL 9 ) ) AS col0
----
9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2270
SELECT - 39 + + 55 - - 88 + + COUNT( * ) + - 89, 84 AS col1
----
16
84

skipif mysql # not compatible
query II rowsort label-2270
SELECT - 39 + + 55 - - 88 + + COUNT ( * ) + - 89, 84 AS col1
----
16
84

query I rowsort
SELECT ALL - 76 * 13 * - 27
----
26676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT 90 + + + 76 + - 24 * - + CASE CAST( NULL AS SIGNED ) WHEN + - 67 THEN 25 * - 60 * + COUNT( * ) WHEN - CASE - 12 WHEN + - 32 + - ( + + 46 ) THEN COUNT( * ) * + 46 * + 76 + COUNT( * ) + + 60 WHEN 62 THEN NULL END * + 43 + + ( - + 98 ) THEN + 60 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT 90 + + + 76 + - 24 * - + CASE CAST ( NULL AS INTEGER ) WHEN + - 67 THEN 25 * - 60 * + COUNT ( * ) WHEN - CASE - 12 WHEN + - 32 + - ( + + 46 ) THEN COUNT ( * ) * + 46 * + 76 + COUNT ( * ) + + 60 WHEN 62 THEN NULL END * + 43 + + ( - + 98 ) THEN + 60 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT COUNT( * ) * - CASE COUNT( * ) WHEN + ( - MIN( DISTINCT + 80 ) ) + - 15 * 35 * - COUNT( 45 ) * - 7 + + 99 + + MAX( 33 ) THEN - - 33 + 91 WHEN NULLIF ( - + 7, 27 ) THEN NULL ELSE COUNT( * ) * + ( - ( + MIN( 68 ) ) ) END
----
68

skipif mysql # not compatible
query I rowsort label-2273
SELECT COUNT ( * ) * - CASE COUNT ( * ) WHEN + ( - MIN ( DISTINCT + 80 ) ) + - 15 * 35 * - COUNT ( 45 ) * - 7 + + 99 + + MAX ( 33 ) THEN - - 33 + 91 WHEN NULLIF ( - + 7, 27 ) THEN NULL ELSE COUNT ( * ) * + ( - ( + MIN ( 68 ) ) ) END
----
68

query I rowsort
SELECT DISTINCT - + 57 * - + 13 * + 56 + + + 72 AS col0
----
41568

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - MIN( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - MIN ( DISTINCT 45 )
----
-45

query I rowsort
SELECT 82 * - 3
----
-246

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

skipif mysql # not compatible
query I rowsort label-2277
SELECT - - MAX ( + - 98 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2278
SELECT NULLIF ( - 66, + MIN( DISTINCT + COALESCE ( - - 40, - 44 ) ) * + ( - - COUNT( * ) ) + + 84 * + 56 * 67 DIV - 80 ) + - 1 + 2 + 44 DIV + + 38 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2278
SELECT NULLIF ( - 66, + MIN ( DISTINCT + COALESCE ( - - 40, - 44 ) ) * + ( - - COUNT ( * ) ) + + 84 * + 56 * 67 / - 80 ) + - 1 + 2 + 44 / + + 38 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT 0 * 74 * - ( MIN( 93 ) ) + + 45 - - - 48 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2279
SELECT 0 * 74 * - ( MIN ( 93 ) ) + + 45 - - - 48 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT DISTINCT - 60 / + COUNT( * ) * ( CAST( NULL AS SIGNED ) ) * + 31 + - CASE + - 80 WHEN - COALESCE ( + + 33, - 86 * + 14 - + COUNT( * ) * - 84 + + + 31 ) * + 23 * + + 69 * - 11 THEN NULL ELSE - 60 END - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT - 60 / + COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) * + 31 + - CASE + - 80 WHEN - COALESCE ( + + 33, - 86 * + 14 - + COUNT ( * ) * - 84 + + + 31 ) * + 23 * + + 69 * - 11 THEN NULL ELSE - 60 END - 39
----
NULL

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

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

query II rowsort
SELECT ALL - - 22 AS col0, - 43 AS col2
----
22
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT + - 77 + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + - 77 + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL - 35 + + + 48 + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - 35 + + + 48 + COUNT ( * ) AS col0
----
14

query I rowsort
SELECT ALL + 80 + + 75
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT + MIN( + + 52 ) * + + 67 - - 75
----
3559

skipif mysql # not compatible
query I rowsort label-2286
SELECT + MIN ( + + 52 ) * + + 67 - - 75
----
3559

query I rowsort
SELECT 72 * + 51 * 28 AS col0
----
102816

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT 20 * 73 * - + 92 * 46 * NULLIF ( + 87, CAST( + 15 AS SIGNED ) + AVG ( + - 67 ) ) AS col2
----
-537548640

skipif mysql # not compatible
query I rowsort label-2290
SELECT 20 * 73 * - + 92 * 46 * NULLIF ( + 87, CAST ( + 15 AS INTEGER ) + AVG ( + - 67 ) ) AS col2
----
-537548640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT ALL 1 - + - COUNT( * ) + + 21 + - CASE + 27 WHEN 97 * + ( + 23 ) THEN - + MAX( - CAST( NULL AS SIGNED ) ) + COALESCE ( 79, + 84 ) + - 83 * - 89 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL 1 - + - COUNT ( * ) + + 21 + - CASE + 27 WHEN 97 * + ( + 23 ) THEN - + MAX ( - CAST ( NULL AS INTEGER ) ) + COALESCE ( 79, + 84 ) + - 83 * - 89 ELSE NULL END col0
----
NULL

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

query II rowsort
SELECT 40 col1, - 95 AS col0
----
40
-95

query II rowsort
SELECT 45 AS col1, - 68
----
45
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT 0 * + CASE - 9 WHEN - - 25 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT 0 * + CASE - 9 WHEN - - 25 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 35 * - 59
----
-2065

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT - 26, - COUNT( * ) + + 45 - + - 57 * - ( - - COUNT( * ) ) * 53 AS col1
----
-26
-2977

skipif mysql # not compatible
query II rowsort label-2297
SELECT - 26, - COUNT ( * ) + + 45 - + - 57 * - ( - - COUNT ( * ) ) * 53 AS col1
----
-26
-2977

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT 42 + + 31 * - 78 * 41 * - COUNT( * )
----
99180

skipif mysql # not compatible
query I rowsort label-2298
SELECT 42 + + 31 * - 78 * 41 * - COUNT ( * )
----
99180

query I rowsort
SELECT DISTINCT 0 * - 95 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2300
SELECT ALL 80 AS col2, + COUNT( * ) + + 49
----
80
50

skipif mysql # not compatible
query II rowsort label-2300
SELECT ALL 80 AS col2, + COUNT ( * ) + + 49
----
80
50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2302
SELECT 35 * + 48 AS col0, - 35 + - - CASE - 12 WHEN - CAST( 20 AS SIGNED ) - COALESCE ( - - 35, 83 ) THEN NULL ELSE + 53 END
----
1680
18

skipif mysql # not compatible
query II rowsort label-2302
SELECT 35 * + 48 AS col0, - 35 + - - CASE - 12 WHEN - CAST ( 20 AS INTEGER ) - COALESCE ( - - 35, 83 ) THEN NULL ELSE + 53 END
----
1680
18

query I rowsort
SELECT ALL - 14 + - + 30 * + 67
----
-2024

query II rowsort
SELECT DISTINCT 79 AS col0, 68 * - - 17
----
79
1156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT ALL 57 DIV 72 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL 57 / 72 + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL - 64 + + 82 * 28 - - 93 * - 85
----
-5673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2307
SELECT ( - + 33 ) + + 52 + - NULLIF ( - + 84, - + 51 + - 89 - + 16 ) * + 92 * COUNT( * ) * - + 20 + + 55 DIV COUNT( * ) AS col1
----
-154486

skipif mysql # not compatible
query I rowsort label-2307
SELECT ( - + 33 ) + + 52 + - NULLIF ( - + 84, - + 51 + - 89 - + 16 ) * + 92 * COUNT ( * ) * - + 20 + + 55 / COUNT ( * ) AS col1
----
-154486

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - 53 - NULLIF ( + - 72, - 62 + + 54 ) * - COUNT( * )
----
-125

skipif mysql # not compatible
query I rowsort label-2308
SELECT - 53 - NULLIF ( + - 72, - 62 + + 54 ) * - COUNT ( * )
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-2309
SELECT ALL - COUNT( * ), + COUNT( * ) + + - ( 2 ) * + ( 43 ) * 66 AS col0
----
-1
-5675

skipif mysql # not compatible
query II rowsort label-2309
SELECT ALL - COUNT ( * ), + COUNT ( * ) + + - ( 2 ) * + ( 43 ) * 66 AS col0
----
-1
-5675

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2310
SELECT ALL 28 + + CAST( NULL AS DECIMAL ) - + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL 28 + + CAST ( NULL AS REAL ) - + 66 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 31, - COALESCE ( 16, 66 * 59 + - 44 + - 64 ), 17 * + 30 ) - 99 + 21 + + 49 * - - ( - - 21 ) * + - 79 AS col0
----
-81338

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT ALL COUNT( * ) AS col1, 48 AS col0
----
1
48

skipif mysql # not compatible
query II rowsort label-2312
SELECT ALL COUNT ( * ) AS col1, 48 AS col0
----
1
48

query I rowsort
SELECT + + 95 * - - 18 + + 41 col1
----
1751

query I rowsort
SELECT ALL + 38 * - 73 + - - 59
----
-2715

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2316
SELECT + 85 + - COUNT( * ) AS col1, - 7 * + - COUNT( * ) * COUNT( * ) DIV + - 93 + 28
----
84
28

skipif mysql # not compatible
query II rowsort label-2316
SELECT + 85 + - COUNT ( * ) AS col1, - 7 * + - COUNT ( * ) * COUNT ( * ) / + - 93 + 28
----
84
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT - 67 - + MAX( - ( 66 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2317
SELECT - 67 - + MAX ( - ( 66 ) ) AS col2
----
-1

query II rowsort
SELECT ALL + ( 92 ) AS col0, 59
----
92
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2319
SELECT COUNT( + 49 ) DIV - NULLIF ( - 57, - - COUNT( * ) ) + + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-2319
SELECT COUNT ( + 49 ) / - NULLIF ( - 57, - - COUNT ( * ) ) + + - 8
----
-8

query I rowsort
SELECT 49 * - 52 - + 33
----
-2581

query I rowsort
SELECT DISTINCT + NULLIF ( 62, + + 89 ) col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2322
SELECT ALL - COUNT( * ) DIV + SUM( DISTINCT - 7 ) * 99 * + - NULLIF ( - 50, + COUNT( + 21 ) * - COUNT( * ) * + + 6 + - + CAST( NULL AS SIGNED ) + 1 * 88 + - + ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - COUNT ( * ) / + SUM ( DISTINCT - 7 ) * 99 * + - NULLIF ( - 50, + COUNT ( + 21 ) * - COUNT ( * ) * + + 6 + - + CAST ( NULL AS INTEGER ) + 1 * 88 + - + ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT - 7 + - CAST( 39 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 7 + - CAST ( 39 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL COALESCE ( + 29, NULLIF ( - + COUNT( * ), - 57 ) ) * + + 58 + + + 63 * COUNT( + - 10 ) * + 71 AS col2
----
6155

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL COALESCE ( + 29, NULLIF ( - + COUNT ( * ), - 57 ) ) * + + 58 + + + 63 * COUNT ( + - 10 ) * + 71 AS col2
----
6155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2325
SELECT ALL + COUNT( * ) * + + 28 - + + 31 - - COUNT( ALL COALESCE ( 20, 94, - CAST( NULL AS SIGNED ) ) ) DIV - - 57
----
-3

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + COUNT ( * ) * + + 28 - + + 31 - - COUNT ( ALL COALESCE ( 20, 94, - CAST ( NULL AS INTEGER ) ) ) / - - 57
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2326
SELECT + 77 DIV - ( 76 ) AS col0, - CASE 19 WHEN + 6 THEN + COALESCE ( + CAST( ( ( 16 ) ) AS SIGNED ), + NULLIF ( - 94, COUNT( * ) * + - 60 ), - + CASE + 58 WHEN - 14 THEN NULL ELSE + + 41 END ) END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2326
SELECT + 77 / - ( 76 ) AS col0, - CASE 19 WHEN + 6 THEN + COALESCE ( + CAST ( ( ( 16 ) ) AS INTEGER ), + NULLIF ( - 94, COUNT ( * ) * + - 60 ), - + CASE + 58 WHEN - 14 THEN NULL ELSE + + 41 END ) END AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2327
SELECT ALL + ( + NULLIF ( 2, + 31 - - 41 + - + 51 ) ) * - COUNT( * ) DIV - 60 * + 33
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + ( + NULLIF ( 2, + 31 - - 41 + - + 51 ) ) * - COUNT ( * ) / - 60 * + 33
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT - 88 + + 58, COUNT( * ) AS col0
----
-30
1

skipif mysql # not compatible
query II rowsort label-2328
SELECT - 88 + + 58, COUNT ( * ) AS col0
----
-30
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT + MIN( ALL - - 53 ) AS col2, + 26 + 73
----
53
99

skipif mysql # not compatible
query II rowsort label-2329
SELECT + MIN ( ALL - - 53 ) AS col2, + 26 + 73
----
53
99

query I rowsort
SELECT + 53 * - - 87 * + - 29 AS col0
----
-133719

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - 65 + + - 32 + + 33 - + 95 - - 82 * + 33 + - COUNT( * ) * 84 * COALESCE ( - + 50, - - 54, 18 * - 12 ) * - 4 AS col0
----
-14253

skipif mysql # not compatible
query I rowsort label-2331
SELECT - 65 + + - 32 + + 33 - + 95 - - 82 * + 33 + - COUNT ( * ) * 84 * COALESCE ( - + 50, - - 54, 18 * - 12 ) * - 4 AS col0
----
-14253

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + COUNT( * ) + - - 61 col1
----
62

skipif mysql # not compatible
query I rowsort label-2332
SELECT + COUNT ( * ) + - - 61 col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT DISTINCT - COALESCE ( - 91, CAST( NULL AS SIGNED ) * - - 51 * - + 88 * + 47 + MIN( DISTINCT 78 ), - ( - - 52 ) * + 80 ) * - SUM( + 31 ) AS col1
----
-2821

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT - COALESCE ( - 91, CAST ( NULL AS INTEGER ) * - - 51 * - + 88 * + 47 + MIN ( DISTINCT 78 ), - ( - - 52 ) * + 80 ) * - SUM ( + 31 ) AS col1
----
-2821

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2334
SELECT ALL CAST( + - 96 AS SIGNED ) DIV - 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL CAST ( + - 96 AS INTEGER ) / - 59 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT - 58 + - SUM( DISTINCT 96 )
----
-154

skipif mysql # not compatible
query I rowsort label-2335
SELECT - 58 + - SUM ( DISTINCT 96 )
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2336
SELECT ALL + + 3 + CAST( NULL AS SIGNED ) + + 1 + + - COUNT( - 58 ) + + 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL + + 3 + CAST ( NULL AS INTEGER ) + + 1 + + - COUNT ( - 58 ) + + 54 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2337
SELECT - + ( SUM( ALL 83 ) ) AS col1, 30 * - 37 + + + 1 + - 70 * - + 82
----
-83
4631

skipif mysql # not compatible
query II rowsort label-2337
SELECT - + ( SUM ( ALL 83 ) ) AS col1, 30 * - 37 + + + 1 + - 70 * - + 82
----
-83
4631

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2339
SELECT ALL COUNT( * ) + - 4 AS col2, 85 * - 10 AS col0
----
-3
-850

skipif mysql # not compatible
query II rowsort label-2339
SELECT ALL COUNT ( * ) + - 4 AS col2, 85 * - 10 AS col0
----
-3
-850

query I rowsort
SELECT - 1 + + 89 AS col2
----
88

query I rowsort
SELECT ALL 45 * - 99 AS col1
----
-4455

query I rowsort
SELECT + 15 * - 18 AS col1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + 85 + - 67 + MIN( DISTINCT 54 ) + 47 + - 74 + 52 * 94 + - 90 * 16
----
3493

skipif mysql # not compatible
query I rowsort label-2343
SELECT + 85 + - 67 + MIN ( DISTINCT 54 ) + 47 + - 74 + 52 * 94 + - 90 * 16
----
3493

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL - 77 + - - COUNT( ALL - 68 )
----
-76

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - 77 + - - COUNT ( ALL - 68 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT + + 97 + - + 71, - COALESCE ( 52, + + COALESCE ( + + ( - 44 ), - 78, + 42 * + COUNT( * ) ) * - 79 + 36 + + + 64 - SUM( 1 ) + 18 ) * ( - 93 ) + 36 AS col0
----
26
4872

skipif mysql # not compatible
query II rowsort label-2345
SELECT + + 97 + - + 71, - COALESCE ( 52, + + COALESCE ( + + ( - 44 ), - 78, + 42 * + COUNT ( * ) ) * - 79 + 36 + + + 64 - SUM ( 1 ) + 18 ) * ( - 93 ) + 36 AS col0
----
26
4872

query I rowsort
SELECT ALL - 33 * - 30 * + 56 AS col2
----
55440

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT + + 47 + - + COUNT( * ) - 64
----
-18

skipif mysql # not compatible
query I rowsort label-2347
SELECT + + 47 + - + COUNT ( * ) - 64
----
-18

query II rowsort
SELECT ALL - 41 + + 7 AS col0, 47
----
-34
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2349
SELECT + COUNT( * ) DIV - COALESCE ( + 47, CAST( + 49 AS SIGNED ) * - 91, + 49, - NULLIF ( + 14, 14 - - CAST( + 20 AS SIGNED ) + + - SUM( - - 45 ) + - 51 ) * + - 13 + + 99 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT + COUNT ( * ) / - COALESCE ( + 47, CAST ( + 49 AS INTEGER ) * - 91, + 49, - NULLIF ( + 14, 14 - - CAST ( + 20 AS INTEGER ) + + - SUM ( - - 45 ) + - 51 ) * + - 13 + + 99 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2350
SELECT + CAST( - 16 AS SIGNED ) * ( - - MIN( + - 34 ) ) * 42 * - 4 AS col0
----
-91392

skipif mysql # not compatible
query I rowsort label-2350
SELECT + CAST ( - 16 AS INTEGER ) * ( - - MIN ( + - 34 ) ) * 42 * - 4 AS col0
----
-91392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2351
SELECT ALL MIN( - - 51 ) / + + 76 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL MIN ( - - 51 ) / + + 76 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 67 + + 94 AS col1
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT - 37 DIV + - 73 + - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2354
SELECT - 37 / + - 73 + - 53 AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT + CAST( - CAST( + + 61 AS SIGNED ) AS SIGNED ) * + 20 * - - 51 + - 83 AS col0
----
-62303

skipif mysql # not compatible
query I rowsort label-2355
SELECT + CAST ( - CAST ( + + 61 AS INTEGER ) AS INTEGER ) * + 20 * - - 51 + - 83 AS col0
----
-62303

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT ALL 61 DIV - 32
----
-1

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL 61 / - 32
----
-1

query I rowsort
SELECT + 31 * + - 88
----
-2728

query II rowsort
SELECT ALL + 81, 54 AS col0
----
81
54

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

query I rowsort
SELECT - 1 * + 79
----
-79

query I rowsort
SELECT ( - 34 ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT + MIN( ALL 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT + MIN ( ALL 33 )
----
33

query I rowsort
SELECT + 48 - + 11 AS col1
----
37

query I rowsort
SELECT - 65 * + 21 AS col0
----
-1365

query I rowsort
SELECT + 67 * - 28 * + 1 + - 63
----
-1939

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT + CASE WHEN NULL IN ( + 54, 51, + COUNT( * ), + 95 / - 55 + + + 28 + 7 ) THEN 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + CASE WHEN NULL IN ( + 54, 51, + COUNT ( * ), + 95 / - 55 + + + 28 + 7 ) THEN 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT DISTINCT + COUNT( 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT + COUNT ( 36 ) AS col1
----
1

query I rowsort
SELECT ALL + 55 * - - 99 * 22 AS col2
----
119790

query I rowsort
SELECT ALL 92 * + 19 + + + 48 AS col2
----
1796

query I rowsort
SELECT DISTINCT - 57 * + + 21 + - + 62
----
-1259

query I rowsort
SELECT DISTINCT + 38 * + - 62 + + 57 col2
----
-2299

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT - 33 DIV + 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2372
SELECT - 33 / + 47 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2373
SELECT - + 44 AS col1, - 84 + 10 DIV 40 * + 0 + 89 + - + COUNT( - ( + 39 ) ) * 11
----
-44
-6

skipif mysql # not compatible
query II rowsort label-2373
SELECT - + 44 AS col1, - 84 + 10 / 40 * + 0 + 89 + - + COUNT ( - ( + 39 ) ) * 11
----
-44
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL 88 * - COUNT( * ) + + + 9 + - + COUNT( ALL + 99 ) * + + ( - 93 )
----
14

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL 88 * - COUNT ( * ) + + + 9 + - + COUNT ( ALL + 99 ) * + + ( - 93 )
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ALL + 37 * - ( - 38 ) * MAX( + 16 ) * + 29 + 20 AS col1
----
652404

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + 37 * - ( - 38 ) * MAX ( + 16 ) * + 29 + 20 AS col1
----
652404

query I rowsort
SELECT DISTINCT + 23 * + 50 + - ( - - 82 ) * - 62 * ( - 33 )
----
-166622

query I rowsort
SELECT DISTINCT + + 46 + - 72 * 59
----
-4202

query I rowsort
SELECT ALL - 45 + + + 92
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT DISTINCT + COALESCE ( - 66, + - 46 + 15 ) - + + 54 - + + 96 + + CAST( + 25 AS SIGNED ) * 46 col0
----
934

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + COALESCE ( - 66, + - 46 + 15 ) - + + 54 - + + 96 + + CAST ( + 25 AS INTEGER ) * 46 col0
----
934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT 77 - - + CAST( + - 77 AS SIGNED ) + + 64 * - - 94 AS col2
----
6016

skipif mysql # not compatible
query I rowsort label-2381
SELECT 77 - - + CAST ( + - 77 AS INTEGER ) + + 64 * - - 94 AS col2
----
6016

onlyif mysql # aggregate syntax: 
query II rowsort label-2382
SELECT - MAX( DISTINCT - + ( + 20 ) ), - 59 AS col2
----
20
-59

skipif mysql # not compatible
query II rowsort label-2382
SELECT - MAX ( DISTINCT - + ( + 20 ) ), - 59 AS col2
----
20
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2383
SELECT - NULLIF ( - 72, - 34 ) + 76 + 98 - + - 61 col2, CASE - - ( - 50 ) WHEN + 11 + 58 THEN + - COUNT( * ) END / - COUNT( * ) col1
----
307
NULL

skipif mysql # not compatible
query II rowsort label-2383
SELECT - NULLIF ( - 72, - 34 ) + 76 + 98 - + - 61 col2, CASE - - ( - 50 ) WHEN + 11 + 58 THEN + - COUNT ( * ) END / - COUNT ( * ) col1
----
307
NULL

query I rowsort
SELECT - COALESCE ( - 57, 31, + 21 * + - 93 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL - 30 - + + SUM( DISTINCT + 6 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - 30 - + + SUM ( DISTINCT + 6 ) AS col0
----
-36

query I rowsort
SELECT ALL + 22 * + + 2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT NULLIF ( - SUM( DISTINCT - 38 ), + 95 ) - - ( + ( - 54 ) ) + - 78 + - - 50 DIV 62 + + - COALESCE ( + 62, 89 ) + - - NULLIF ( 84, - ( + + 26 ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2387
SELECT NULLIF ( - SUM ( DISTINCT - 38 ), + 95 ) - - ( + ( - 54 ) ) + - 78 + - - 50 / 62 + + - COALESCE ( + 62, 89 ) + - - NULLIF ( 84, - ( + + 26 ) ) AS col1
----
-72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT 90 DIV + - 90
----
-1

skipif mysql # not compatible
query I rowsort label-2389
SELECT 90 / + - 90
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2390
SELECT - COUNT( * ) DIV - + 57 + + 73
----
73

skipif mysql # not compatible
query I rowsort label-2390
SELECT - COUNT ( * ) / - + 57 + + 73
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2391
SELECT COALESCE ( 52, + 20 + COUNT( * ), 46 + + CAST( NULL AS SIGNED ) + + 92 * + 40 * 53 + 96 + + 49, + ( - COUNT( * ) ) * - 14 ) * - 69 AS col0
----
-3588

skipif mysql # not compatible
query I rowsort label-2391
SELECT COALESCE ( 52, + 20 + COUNT ( * ), 46 + + CAST ( NULL AS INTEGER ) + + 92 * + 40 * 53 + 96 + + 49, + ( - COUNT ( * ) ) * - 14 ) * - 69 AS col0
----
-3588

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT ALL 42 DIV - - 92 * - + 32
----
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL 42 / - - 92 * - + 32
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT 23 * 97 + + COALESCE ( - CAST( 41 AS SIGNED ), 39 )
----
2190

skipif mysql # not compatible
query I rowsort label-2393
SELECT 23 * 97 + + COALESCE ( - CAST ( 41 AS INTEGER ), 39 )
----
2190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2394
SELECT 45 - 15 * + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT 45 - 15 * + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 51 * + 95 AS col2
----
4845

query I rowsort
SELECT DISTINCT 77 + + - 58
----
19

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

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

query I rowsort
SELECT DISTINCT + 69 * + + 71
----
4899

query I rowsort
SELECT ALL + 60 + - ( - COALESCE ( - 73, + 65 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ( 74 ) + - CASE 70 WHEN - COUNT( * ) THEN 29 WHEN - - 28 THEN NULL END + - 29 / + 93 * + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ( 74 ) + - CASE 70 WHEN - COUNT ( * ) THEN 29 WHEN - - 28 THEN NULL END + - 29 / + 93 * + 50 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT CAST( 42 AS SIGNED ) * - - 77 + - MAX( + 76 ) AS col0
----
3158

skipif mysql # not compatible
query I rowsort label-2401
SELECT CAST ( 42 AS INTEGER ) * - - 77 + - MAX ( + 76 ) AS col0
----
3158

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2402
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - ( + 81 ) * + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT CAST ( NULL AS REAL ) * - ( + 81 ) * + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2403
SELECT COALESCE ( + 19, + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - ( + ( - + 60 ) ) + CAST( NULL AS SIGNED ) + - + 34 + + 46 * - 45, - 27 ) + + + COUNT( * ) + + 66 * + NULLIF ( - - 13, - COUNT( * ) + 27 ) AS col1
----
878

skipif mysql # not compatible
query I rowsort label-2403
SELECT COALESCE ( + 19, + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - ( + ( - + 60 ) ) + CAST ( NULL AS INTEGER ) + - + 34 + + 46 * - 45, - 27 ) + + + COUNT ( * ) + + 66 * + NULLIF ( - - 13, - COUNT ( * ) + 27 ) AS col1
----
878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2404
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) * - MAX( ALL - + 28 ) AS col0, 70 + + 91 AS col0
----
NULL
161

skipif mysql # not compatible
query II rowsort label-2404
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - MAX ( ALL - + 28 ) AS col0, 70 + + 91 AS col0
----
NULL
161

query I rowsort
SELECT DISTINCT + - 23 + - 41
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT + 84 + + 12 + AVG ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT + 84 + + 12 + AVG ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 35 + 28 - 99 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - CASE - + COUNT( * ) WHEN - - 85 * + COUNT( * ) * + + 4 + - COUNT( * ) * - COUNT( + + 82 ) + 62 / - - COUNT( * ) THEN + - 81 * - SUM( - - 57 ) + - 10 + - 81 - - - 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - CASE - + COUNT ( * ) WHEN - - 85 * + COUNT ( * ) * + + 4 + - COUNT ( * ) * - COUNT ( + + 82 ) + 62 / - - COUNT ( * ) THEN + - 81 * - SUM ( - - 57 ) + - 10 + - 81 - - - 3 END AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT - 44 * + 94 AS col0
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT + 52 * - 11 * + 32 + MAX( + - 2 )
----
-18306

skipif mysql # not compatible
query I rowsort label-2411
SELECT + 52 * - 11 * + 32 + MAX ( + - 2 )
----
-18306

query I rowsort
SELECT ALL + + ( 77 ) - - 63 + 5 * + 26
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2413
SELECT ALL - + 81 DIV - 75, ( - 8 ) DIV - - COUNT( * ) AS col2
----
1
-8

skipif mysql # not compatible
query II rowsort label-2413
SELECT ALL - + 81 / - 75, ( - 8 ) / - - COUNT ( * ) AS col2
----
1
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT - - 31 * - 70 * - 81 + + - COUNT( * ) * - + 39 AS col0
----
175809

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT - - 31 * - 70 * - 81 + + - COUNT ( * ) * - + 39 AS col0
----
175809

query I rowsort
SELECT ALL + NULLIF ( - + 83, + AVG ( - 40 ) )
----
-83

query I rowsort
SELECT - 22 * + - 84
----
1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2418
SELECT DISTINCT + + 26 * - COUNT( * ) * - 12 * - - CASE - - 9 WHEN + 53 THEN + 23 WHEN + + 71 * - - 31 THEN 88 + + + COUNT( * ) END / + CAST( 92 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT + + 26 * - COUNT ( * ) * - 12 * - - CASE - - 9 WHEN + 53 THEN + 23 WHEN + + 71 * - - 31 THEN 88 + + + COUNT ( * ) END / + CAST ( 92 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2419
SELECT DISTINCT 43 DIV COUNT( * ) * - 34
----
-1462

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT 43 / COUNT ( * ) * - 34
----
-1462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2420
SELECT 20 + + 46 DIV + - CAST( + + NULLIF ( + 61, - SUM( - 75 ) + + CAST( + + 37 AS SIGNED ) ) AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2420
SELECT 20 + + 46 / + - CAST ( + + NULLIF ( + 61, - SUM ( - 75 ) + + CAST ( + + 37 AS INTEGER ) ) AS INTEGER ) AS col0
----
20

query I rowsort
SELECT COALESCE ( - - 6, - + 7 * 48 + + 19 ) * 50
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT COUNT( * ) + - 78 - - 11 + - - 7 * + 39 + + ( - + 86 ) * - 88 * 11
----
83455

skipif mysql # not compatible
query I rowsort label-2422
SELECT COUNT ( * ) + - 78 - - 11 + - - 7 * + 39 + + ( - + 86 ) * - 88 * 11
----
83455

query I rowsort
SELECT 19 * 66 AS col2
----
1254

query II rowsort
SELECT DISTINCT - 93 AS col2, 16 AS col0
----
-93
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL 46 * 71 / - + ( 4 ) * + 6 / - CAST( NULL AS SIGNED ) * 98 + + SUM( - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL 46 * 71 / - + ( 4 ) * + 6 / - CAST ( NULL AS INTEGER ) * 98 + + SUM ( - 55 )
----
NULL

query I rowsort
SELECT - 59 * + + 32 + + - 90
----
-1978

query I rowsort
SELECT 44 * + 32 AS col0
----
1408

query I rowsort
SELECT ALL - 56 * 57
----
-3192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2429
SELECT 83 DIV - 6 + - MIN( + 96 ) + - + 1
----
-110

skipif mysql # not compatible
query I rowsort label-2429
SELECT 83 / - 6 + - MIN ( + 96 ) + - + 1
----
-110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2430
SELECT SUM( DISTINCT - ( - 11 ) ) AS col1, CASE + 52 WHEN 62 THEN + 10 WHEN + 31 THEN + 8 WHEN + CAST( - 49 AS DECIMAL ) THEN NULL ELSE + SUM( + - 22 ) END AS col1
----
11
-22

skipif mysql # not compatible
query II rowsort label-2430
SELECT SUM ( DISTINCT - ( - 11 ) ) AS col1, CASE + 52 WHEN 62 THEN + 10 WHEN + 31 THEN + 8 WHEN + CAST ( - 49 AS REAL ) THEN NULL ELSE + SUM ( + - 22 ) END AS col1
----
11
-22

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

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

query II rowsort
SELECT + 33, + 84 AS col2
----
33
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT COUNT( * ) - COUNT( * ) * - 76 DIV - 26
----
-1

skipif mysql # not compatible
query I rowsort label-2433
SELECT COUNT ( * ) - COUNT ( * ) * - 76 / - 26
----
-1

query I rowsort
SELECT + 4 * 89 + + 10
----
366

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

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

query I rowsort
SELECT DISTINCT + CASE + - 90 WHEN - 13 - - ( - 49 ) THEN + 96 WHEN + + 31 THEN NULL ELSE + 58 END - + - 14
----
72

query I rowsort
SELECT ALL 34 * 79 * 29 AS col2
----
77894

query I rowsort
SELECT - COALESCE ( 47, - 4, + - 63 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT COUNT( DISTINCT - - 3 ) * + 95
----
95

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT COUNT ( DISTINCT - - 3 ) * + 95
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2440
SELECT + - 65 * ( + COUNT( * ) ) AS col0, + 32 AS col1
----
-65
32

skipif mysql # not compatible
query II rowsort label-2440
SELECT + - 65 * ( + COUNT ( * ) ) AS col0, + 32 AS col1
----
-65
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL - 54 * COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - 54 * COUNT ( * ) AS col0
----
-54

query I rowsort
SELECT DISTINCT + + 5 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL 23 - + COUNT( 26 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL 23 - + COUNT ( 26 ) AS col1
----
22

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

query I rowsort
SELECT - 24 * + 61
----
-1464

query I rowsort
SELECT ALL - - 53 * + 33
----
1749

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT ALL - 50 * + COUNT( * ) AS col1, 12 + - - 60 AS col2
----
-50
72

skipif mysql # not compatible
query II rowsort label-2447
SELECT ALL - 50 * + COUNT ( * ) AS col1, 12 + - - 60 AS col2
----
-50
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT DISTINCT 31 DIV - 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT 31 / - 78 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2449
SELECT + MAX( DISTINCT + ( - 3 ) ) DIV + + 15 * - 57 DIV COUNT( * ), - 40 AS col2
----
0
-40

skipif mysql # not compatible
query II rowsort label-2449
SELECT + MAX ( DISTINCT + ( - 3 ) ) / + + 15 * - 57 / COUNT ( * ), - 40 AS col2
----
0
-40

query I rowsort
SELECT + 72 + + + NULLIF ( + 47, 36 + - + 54 * - 59 )
----
119

query II rowsort
SELECT - 43, + 84 * 2 - + 56 AS col2
----
-43
112

onlyif mysql # aggregate syntax: 
query II rowsort label-2452
SELECT - 99, MAX( DISTINCT - ( - 18 ) ) AS col1
----
-99
18

skipif mysql # not compatible
query II rowsort label-2452
SELECT - 99, MAX ( DISTINCT - ( - 18 ) ) AS col1
----
-99
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT + COALESCE ( + COALESCE ( - COUNT( * ), - 26 - + 76 ), - 69, + COUNT( * ) ) + + + 89 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT + COALESCE ( + COALESCE ( - COUNT ( * ), - 26 - + 76 ), - 69, + COUNT ( * ) ) + + + 89 AS col2
----
88

query I rowsort
SELECT ALL - 60 + + + 72
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2455
SELECT - 18 - - + 12 AS col1, - NULLIF ( - COUNT( DISTINCT - + ( - 9 ) ), 36 ) - + 28 / - CASE 11 WHEN 78 THEN - ( + COALESCE ( + - CAST( NULL AS SIGNED ), 84, - - 55 ) ) WHEN + 11 - 48 + CAST( NULL AS SIGNED ) + - 90 THEN 75 - 46 ELSE NULL END + - 90 + - - 0 * + COUNT( * )
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-2455
SELECT - 18 - - + 12 AS col1, - NULLIF ( - COUNT ( DISTINCT - + ( - 9 ) ), 36 ) - + 28 / - CASE 11 WHEN 78 THEN - ( + COALESCE ( + - CAST ( NULL AS INTEGER ), 84, - - 55 ) ) WHEN + 11 - 48 + CAST ( NULL AS INTEGER ) + - 90 THEN 75 - 46 ELSE NULL END + - 90 + - - 0 * + COUNT ( * )
----
-6
NULL

query I rowsort
SELECT ALL - 87 * + - 27 AS col0
----
2349

query I rowsort
SELECT ALL + 96 + + 84 + + 16
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - 94 + + ( - 8 ) * - 25 + - COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 94 + + ( - 8 ) * - 25 + - COUNT ( * )
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT DISTINCT COALESCE ( 39, + 4 DIV + + COALESCE ( - ( - + 45 ), + 59 + - 66 + 25 + 90, 32 * - 31 ) + 22 )
----
39

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT COALESCE ( 39, + 4 / + + COALESCE ( - ( - + 45 ), + 59 + - 66 + 25 + 90, 32 * - 31 ) + 22 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT DISTINCT - 75 DIV 54 * + 25 DIV 41 + - - 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - 75 / 54 * + 25 / 41 + - - 31 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2461
SELECT ( - 52 ), + CASE - COUNT( * ) WHEN - - 47 THEN - 14 END * CAST( - 25 AS SIGNED ) - 47 + MIN( ALL - 91 ) / - 25 AS col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-2461
SELECT ( - 52 ), + CASE - COUNT ( * ) WHEN - - 47 THEN - 14 END * CAST ( - 25 AS INTEGER ) - 47 + MIN ( ALL - 91 ) / - 25 AS col0
----
-52
NULL

query I rowsort
SELECT - 59 + + 83 - - 58 - + 2 * - - 19 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT + SUM( ALL - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2463
SELECT + SUM ( ALL - 12 ) AS col0
----
-12

query I rowsort
SELECT 97 * - - 38 + + 63
----
3749

query I rowsort
SELECT + 41 - 52
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2466
SELECT DISTINCT 52 * + NULLIF ( + 0, 86 + + 15 + - + CAST( - 13 AS SIGNED ) * + + 66 ) - + - COALESCE ( + 55, - 53, + CASE - + 22 WHEN - ( NULLIF ( - 87, MAX( ( 12 ) ) * + COUNT( * ) + + 64 ) ) THEN + 8 WHEN 1 * - 57 DIV - - 92 THEN - + AVG ( + - 12 ) ELSE NULL END ) DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT 52 * + NULLIF ( + 0, 86 + + 15 + - + CAST ( - 13 AS INTEGER ) * + + 66 ) - + - COALESCE ( + 55, - 53, + CASE - + 22 WHEN - ( NULLIF ( - 87, MAX ( ( 12 ) ) * + COUNT ( * ) + + 64 ) ) THEN + 8 WHEN 1 * - 57 / - - 92 THEN - + AVG ( + - 12 ) ELSE NULL END ) / 63 AS col1
----
0

query II rowsort
SELECT ALL + - 71 col1, 4 AS col0
----
-71
4

query I rowsort
SELECT + + 89 * - + 98 AS col1
----
-8722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2469
SELECT + CASE - - ( - 26 ) WHEN + 26 + - MIN( + - 39 ) THEN NULL ELSE COALESCE ( + + 0, 28 ) * 53 END * + - CAST( 52 AS SIGNED ) + 44
----
44

skipif mysql # not compatible
query I rowsort label-2469
SELECT + CASE - - ( - 26 ) WHEN + 26 + - MIN ( + - 39 ) THEN NULL ELSE COALESCE ( + + 0, 28 ) * 53 END * + - CAST ( 52 AS INTEGER ) + 44
----
44

query I rowsort
SELECT DISTINCT + - 94 col0
----
-94

query II rowsort
SELECT + + 19, 36 AS col1
----
19
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT + 42 DIV 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT + 42 / 90 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT ALL ( 64 ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL ( 64 ) / 72 AS col1
----
0

query II rowsort
SELECT DISTINCT + 81 AS col2, 76
----
81
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT + 93 * COALESCE ( COUNT( * ), + 75, - 63 * - CAST( NULL AS SIGNED ) ) + 37 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-2475
SELECT + 93 * COALESCE ( COUNT ( * ), + 75, - 63 * - CAST ( NULL AS INTEGER ) ) + 37 AS col1
----
130

query I rowsort
SELECT ALL - - ( + 80 ) * - 43
----
-3440

query I rowsort
SELECT ALL + 37 * 21 + - 84
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT + MIN( 75 ) + + 87 * - + 52 * - 26 * + - 35 AS col0
----
-4116765

skipif mysql # not compatible
query I rowsort label-2478
SELECT + MIN ( 75 ) + + 87 * - + 52 * - 26 * + - 35 AS col0
----
-4116765

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

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

query I rowsort
SELECT - 55 + - - 49 * + - 76
----
-3779

query I rowsort
SELECT DISTINCT 89 + + - 59 - + ( 53 ) AS col1
----
-23

query I rowsort
SELECT ALL + 28 + + + 29
----
57

query I rowsort
SELECT - 95 + - + 33 + 87 * - 18
----
-1694

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT ALL CASE + 42 WHEN - + 40 THEN NULL WHEN + - 13 DIV - COUNT( * ) THEN NULL WHEN - + COUNT( * ) THEN + 12 DIV + - ( + 89 ) DIV + 96 * + 75 + - 88 + + 41 - + - ( + 99 ) - - 61 * + 34 ELSE - 55 * 68 * + 5 + + 66 END + COUNT( * ) + - 80 * 45 AS col0
----
-22233

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL CASE + 42 WHEN - + 40 THEN NULL WHEN + - 13 / - COUNT ( * ) THEN NULL WHEN - + COUNT ( * ) THEN + 12 / + - ( + 89 ) / + 96 * + 75 + - 88 + + 41 - + - ( + 99 ) - - 61 * + 34 ELSE - 55 * 68 * + 5 + + 66 END + COUNT ( * ) + - 80 * 45 AS col0
----
-22233

query I rowsort
SELECT ALL NULLIF ( - + 71, - ( 51 ) + + 52 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2487
SELECT + COUNT( * ) DIV - - NULLIF ( + - 64, 31 * - 56 * + + COUNT( * ) + - + 22 + - - 27 * - - NULLIF ( - - 79, + - 67 * - 84 * + + 23 + - - 24 - + 6 * + - COUNT( * ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT + COUNT ( * ) / - - NULLIF ( + - 64, 31 * - 56 * + + COUNT ( * ) + - + 22 + - - 27 * - - NULLIF ( - - 79, + - 67 * - 84 * + + 23 + - - 24 - + 6 * + - COUNT ( * ) ) ) AS col1
----
0

query I rowsort
SELECT - ( - 67 ) + - 83
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT DISTINCT + COALESCE ( - 9, - 2 DIV - + 24 * - 65, + 66 )
----
-9

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT + COALESCE ( - 9, - 2 / - + 24 * - 65, + 66 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT DISTINCT CAST( 13 AS SIGNED ) * + + 49 AS col1
----
637

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT CAST ( 13 AS INTEGER ) * + + 49 AS col1
----
637

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT - 78 DIV + 31 - - + 37 * + 83
----
3069

skipif mysql # not compatible
query I rowsort label-2491
SELECT - 78 / + 31 - - + 37 * + 83
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT 57 * COUNT( * ) * - 56 * + ( 29 ) * - + 67
----
6202056

skipif mysql # not compatible
query I rowsort label-2492
SELECT 57 * COUNT ( * ) * - 56 * + ( 29 ) * - + 67
----
6202056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT 88 + + 5 + - CAST( + 58 AS SIGNED ) * + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2493
SELECT 88 + + 5 + - CAST ( + 58 AS INTEGER ) * + COUNT ( * ) AS col2
----
35

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

query I rowsort
SELECT 36 * + 51 * + - 64 AS col1
----
-117504

query I rowsort
SELECT ALL - COALESCE ( + 51, + 28 ) AS col0
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - 16 * SUM( 10 ) * - + 21 * + 46 * 65
----
10046400

skipif mysql # not compatible
query I rowsort label-2498
SELECT - 16 * SUM ( 10 ) * - + 21 * + 46 * 65
----
10046400

query I rowsort
SELECT ALL + 11 + 48 * + + 67 * - 74 AS col0
----
-237973

query I rowsort
SELECT 47 - - + COALESCE ( - 25, - COALESCE ( + - 60, + 87 + - NULLIF ( NULLIF ( 96, + 14 ), - 1 ) ) ) col1
----
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT DISTINCT CAST( - 54 AS SIGNED ) + + + COUNT( * ) * - 9 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT CAST ( - 54 AS INTEGER ) + + + COUNT ( * ) * - 9 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL COUNT( * ) + - 57 + - 33 * - - 24 * + 32 * - 60 AS col0
----
1520584

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL COUNT ( * ) + - 57 + - 33 * - - 24 * + 32 * - 60 AS col0
----
1520584

query II rowsort
SELECT 57 AS col2, 57
----
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT ( - 40 ) * + COUNT( + CAST( NULL AS SIGNED ) ) + 88 AS col0
----
88

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

query I rowsort
SELECT DISTINCT 31 * - + 62 * - + 85 col2
----
163370

query I rowsort
SELECT 19 + 7 + + 6 * - + 93
----
-532

query II rowsort
SELECT - 4 AS col0, - 47
----
-4
-47

query I rowsort
SELECT ALL 77 - + 38 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT 25 + + 11 * + NULLIF ( + - SUM( DISTINCT - + 74 ), - 57 ) + + COALESCE ( + 71, + 24 + - COUNT( * ) * + - 79 )
----
910

skipif mysql # not compatible
query I rowsort label-2510
SELECT 25 + + 11 * + NULLIF ( + - SUM ( DISTINCT - + 74 ), - 57 ) + + COALESCE ( + 71, + 24 + - COUNT ( * ) * + - 79 )
----
910

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

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

query I rowsort
SELECT ( - COALESCE ( + - ( - 63 ), 52, + + 15 ) ) - + 20
----
-83

query I rowsort
SELECT 44 + - + 44 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2514
SELECT ALL 23 - + COALESCE ( 31, - 41, - MIN( ALL 8 ) ) DIV - ( 90 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL 23 - + COALESCE ( 31, - 41, - MIN ( ALL 8 ) ) / - ( 90 ) AS col0
----
23

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

skipif mysql # not compatible
query I rowsort label-2515
SELECT ( + CAST ( NULL AS INTEGER ) ) * 22 + + 24 col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT 3 + + 85 + - CAST( + 63 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-2517
SELECT 3 + + 85 + - CAST ( + 63 AS INTEGER )
----
25

query I rowsort
SELECT - 1 * 2 AS col2
----
-2

query I rowsort
SELECT 33 * - 26
----
-858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2520
SELECT - COALESCE ( + 2, + - SUM( DISTINCT 25 ), - 17 ) DIV - 72 + - COALESCE ( NULLIF ( + - COUNT( * ), + 26 ), - 54 + + - CAST( 74 AS SIGNED ) ) + - - 3 * - - ( 18 ) + - 91 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2520
SELECT - COALESCE ( + 2, + - SUM ( DISTINCT 25 ), - 17 ) / - 72 + - COALESCE ( NULLIF ( + - COUNT ( * ), + 26 ), - 54 + + - CAST ( 74 AS INTEGER ) ) + - - 3 * - - ( 18 ) + - 91 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2521
SELECT + - MAX( + CAST( NULL AS SIGNED ) ) * + 67 + + + 36 + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT + - MAX ( + CAST ( NULL AS INTEGER ) ) * + 67 + + + 36 + - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL + CASE + 39 WHEN 94 + + - 7 - - 72 / + - 17 * + COUNT( * ) + + 47 + + COUNT( * ) + - 2 * - + 52 / - - 47 THEN 96 WHEN AVG ( ALL 88 ) THEN - + COUNT( * ) * - 58 + 83 * - 69 ELSE NULL END * - + 13 + - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL + CASE + 39 WHEN 94 + + - 7 - - 72 / + - 17 * + COUNT ( * ) + + 47 + + COUNT ( * ) + - 2 * - + 52 / - - 47 THEN 96 WHEN AVG ( ALL 88 ) THEN - + COUNT ( * ) * - 58 + 83 * - 69 ELSE NULL END * - + 13 + - 96 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + + 61 / - + 9 ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + + 61 / - + 9 ) * - 30
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 23, - 91 - 14 * - + 47 AS col1
----
-23
567

query I rowsort
SELECT ALL + - 17 + 30 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT - 0 DIV 90 + - + 41 + 38 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2527
SELECT - 0 / 90 + - + 41 + 38 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT - + 64 * + - ( + 11 ) + + + CAST( NULL AS SIGNED ) + ( - 54 ) + + + COALESCE ( - + 28, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT - + 64 * + - ( + 11 ) + + + CAST ( NULL AS INTEGER ) + ( - 54 ) + + + COALESCE ( - + 28, + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 25 * 57 * + - 69 - 71
----
98254

query II rowsort
SELECT 57 AS col2, + ( 27 )
----
57
27

query II rowsort
SELECT + 66 + - 56 * 92 AS col1, - 29 + 98
----
-5086
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT - CASE + 6 WHEN - 33 / - COUNT( * ) THEN + COUNT( * ) + - 22 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT - CASE + 6 WHEN - 33 / - COUNT ( * ) THEN + COUNT ( * ) + - 22 END col1
----
NULL

query I rowsort
SELECT 28 * 0 + + 73 col1
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT COUNT( * ) + - ( - 99 ) * 26 + - 90 + + NULLIF ( + + COALESCE ( + 40, 13 * 39 ), + 64 ) - COUNT( * ) AS col0
----
2524

skipif mysql # not compatible
query I rowsort label-2535
SELECT COUNT ( * ) + - ( - 99 ) * 26 + - 90 + + NULLIF ( + + COALESCE ( + 40, 13 * 39 ), + 64 ) - COUNT ( * ) AS col0
----
2524

onlyif mysql # aggregate syntax: 
query II rowsort label-2536
SELECT 54 + + 63, - COUNT( * ) col2
----
117
-1

skipif mysql # not compatible
query II rowsort label-2536
SELECT 54 + + 63, - COUNT ( * ) col2
----
117
-1

query I rowsort
SELECT 70 + - + 95
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL CASE - 61 WHEN - - 94 * - - 46 THEN NULL WHEN COUNT( * ) THEN - + 54 * + 90 + + 30 WHEN 2 * + + 67 / - - 20 + 7 + - + 72 / - + 77 + 77 THEN + 87 - + 75 WHEN - MAX( ALL + - CAST( 62 AS SIGNED ) ) THEN CAST( 19 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL CASE - 61 WHEN - - 94 * - - 46 THEN NULL WHEN COUNT ( * ) THEN - + 54 * + 90 + + 30 WHEN 2 * + + 67 / - - 20 + 7 + - + 72 / - + 77 + 77 THEN + 87 - + 75 WHEN - MAX ( ALL + - CAST ( 62 AS INTEGER ) ) THEN CAST ( 19 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT ALL 24 / - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL 24 / - - CAST ( NULL AS INTEGER ) col0
----
NULL

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

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

query I rowsort
SELECT ALL - 66 * + 69
----
-4554

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

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

query I rowsort
SELECT - - 82 - - 1 + + 18 * - 20 * 91 AS col1
----
-32677

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + - SUM( ALL - 5 ) * + 55
----
275

skipif mysql # not compatible
query I rowsort label-2544
SELECT + - SUM ( ALL - 5 ) * + 55
----
275

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT - COUNT( * ) + - SUM( - 93 )
----
92

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - COUNT ( * ) + - SUM ( - 93 )
----
92

query I rowsort
SELECT ALL + + 78 + + - 96 AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2549
SELECT ALL - - 94 DIV - + COALESCE ( - SUM( DISTINCT - CAST( NULL AS SIGNED ) ), + CASE WHEN NOT NULL BETWEEN + 91 AND + + 2 THEN + 9 ELSE + + 81 END ) + MAX( DISTINCT ( - + 47 ) ) + + - 89
----
-137

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - - 94 / - + COALESCE ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ), + CASE WHEN NOT NULL BETWEEN + 91 AND + + 2 THEN + 9 ELSE + + 81 END ) + MAX ( DISTINCT ( - + 47 ) ) + + - 89
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT - COUNT( ALL + 74 ) * + 87 + + 60 + 69 + + 56 col1
----
98

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT - COUNT ( ALL + 74 ) * + 87 + + 60 + 69 + + 56 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + - COUNT( DISTINCT + + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-2551
SELECT + - COUNT ( DISTINCT + + 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT COUNT( 20 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2552
SELECT COUNT ( 20 ) AS col0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT DISTINCT + - CAST( + 37 AS SIGNED ) * + 79 + - 55
----
-2978

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + - CAST ( + 37 AS INTEGER ) * + 79 + - 55
----
-2978

query I rowsort
SELECT DISTINCT + + 29 col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2556
SELECT DISTINCT 67 * ( - - 60 ), CAST( NULL AS SIGNED ) AS col1
----
4020
NULL

skipif mysql # not compatible
query II rowsort label-2556
SELECT DISTINCT 67 * ( - - 60 ), CAST ( NULL AS INTEGER ) AS col1
----
4020
NULL

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

skipif mysql # not compatible
query I rowsort label-2557
SELECT - 78 * - ( - + COALESCE ( + ( 52 ), - COUNT ( * ) ) )
----
-4056

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT ALL - 69 DIV - + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - 69 / - + 90 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT + 7 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT + 7 / + 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT - ( - COALESCE ( + 68, + 40 + + CAST( - - 16 AS SIGNED ), - + SUM( 60 ) + + COUNT( 83 ) * - 73 ) ) * - 97
----
-6596

skipif mysql # not compatible
query I rowsort label-2560
SELECT - ( - COALESCE ( + 68, + 40 + + CAST ( - - 16 AS INTEGER ), - + SUM ( 60 ) + + COUNT ( 83 ) * - 73 ) ) * - 97
----
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT + CASE + - 3 WHEN + COALESCE ( + 73, + SUM( DISTINCT + 21 ), - + ( - 73 ) * - 5, - 31 + + ( + + 70 ) ) THEN 36 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT + CASE + - 3 WHEN + COALESCE ( + 73, + SUM ( DISTINCT + 21 ), - + ( - 73 ) * - 5, - 31 + + ( + + 70 ) ) THEN 36 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL + MIN( DISTINCT - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + MIN ( DISTINCT - 30 )
----
-30

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

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

query I rowsort
SELECT - 24 * - 48 * + 67
----
77184

query I rowsort
SELECT - 53 * - 31 AS col2
----
1643

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

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

query I rowsort
SELECT - 88 * + 36 AS col1
----
-3168

onlyif mysql # aggregate syntax: 
query II rowsort label-2568
SELECT DISTINCT CASE - COUNT( * ) WHEN - 32 THEN - + 97 ELSE - - COUNT( * ) END AS col1, 38
----
1
38

skipif mysql # not compatible
query II rowsort label-2568
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 32 THEN - + 97 ELSE - - COUNT ( * ) END AS col1, 38
----
1
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ALL CASE - COALESCE ( + COUNT( * ), + + 77 + - 94 * + + 86, + 73 ) WHEN - COUNT( * ) * + 45 THEN NULL WHEN - - 59 / - + CASE - ( 35 ) WHEN ( MAX( + 13 ) ) THEN NULL ELSE + + 80 / + - 24 + + + 67 * 57 END THEN NULL ELSE - 75 END col1
----
-75

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL CASE - COALESCE ( + COUNT ( * ), + + 77 + - 94 * + + 86, + 73 ) WHEN - COUNT ( * ) * + 45 THEN NULL WHEN - - 59 / - + CASE - ( 35 ) WHEN ( MAX ( + 13 ) ) THEN NULL ELSE + + 80 / + - 24 + + + 67 * 57 END THEN NULL ELSE - 75 END col1
----
-75

query I rowsort
SELECT DISTINCT - 80 * + 55 AS col1
----
-4400

query I rowsort
SELECT - 52 * 10 col0
----
-520

query I rowsort
SELECT ALL ( 35 ) AS col2
----
35

query I rowsort
SELECT ALL + 7 + - 4
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - COALESCE ( + - 36, - - 46 ) + - 43 * + COUNT( * ) * - COALESCE ( + COUNT( * ), + 5 - - 0 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2575
SELECT - COALESCE ( + - 36, - - 46 ) + - 43 * + COUNT ( * ) * - COALESCE ( + COUNT ( * ), + 5 - - 0 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + MAX( DISTINCT - - 60 ) - MIN( - + 1 )
----
61

skipif mysql # not compatible
query I rowsort label-2576
SELECT + MAX ( DISTINCT - - 60 ) - MIN ( - + 1 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - COALESCE ( - NULLIF ( - + ( 33 ), - 51 ), - + MAX( + - 79 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-2577
SELECT - COALESCE ( - NULLIF ( - + ( 33 ), - 51 ), - + MAX ( + - 79 ) )
----
-33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2579
SELECT DISTINCT 67 DIV + 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT 67 / + 43 AS col2
----
1

query I rowsort
SELECT ALL + 59 + + 78
----
137

query I rowsort
SELECT DISTINCT + 48 + 97 AS col1
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2582
SELECT + + 78 DIV + CASE + 78 WHEN 23 + 16 THEN NULL WHEN - COUNT( * ) THEN - + CAST( NULL AS SIGNED ) ELSE - COUNT( * ) END AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-2582
SELECT + + 78 / + CASE + 78 WHEN 23 + 16 THEN NULL WHEN - COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) END AS col1
----
-78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2584
SELECT DISTINCT + + 13 * + 65 / + MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + + 13 * + 65 / + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + - ( + ( 36 ) ) + + + COUNT( * ) + + ( 28 ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-2585
SELECT + - ( + ( 36 ) ) + + + COUNT ( * ) + + ( 28 ) col0
----
-7

query I rowsort
SELECT - - 34 * - 24 col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT COALESCE ( - - 22, - + 15, - + COUNT( * ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2587
SELECT COALESCE ( - - 22, - + 15, - + COUNT ( * ) ) AS col0
----
22

query I rowsort
SELECT - + 60 * - 5 AS col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT + COUNT( * ) * - 97 + - 25
----
-122

skipif mysql # not compatible
query I rowsort label-2589
SELECT + COUNT ( * ) * - 97 + - 25
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT DISTINCT + - 76 / + - 20 * 53 - - 88 * CASE 11 WHEN - 26 THEN + 5 - CAST( NULL AS SIGNED ) END * ( + 69 ) - + 22 + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + - 76 / + - 20 * 53 - - 88 * CASE 11 WHEN - 26 THEN + 5 - CAST ( NULL AS INTEGER ) END * ( + 69 ) - + 22 + - 42
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT DISTINCT + 49 DIV + 74 - - 49 * 55 AS col2
----
2695

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT + 49 / + 74 - - 49 * 55 AS col2
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + 62 * + 78 * + COUNT( * )
----
4836

skipif mysql # not compatible
query I rowsort label-2593
SELECT + 62 * + 78 * + COUNT ( * )
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT + CASE - CASE - 45 WHEN + - 77 THEN + + 29 END WHEN 74 THEN 89 + - ( - + 9 ) * + SUM( DISTINCT 83 ) WHEN + 42 - + - 64 * + 50 THEN NULL WHEN 37 + 93 THEN NULL END / 86 + + COUNT( * ) + - 93 * + ( - 65 ) * - 45 * - 85 * + - MAX( 24 ) - 22 * + + 90 * - + 41 * + 96 - + - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT + CASE - CASE - 45 WHEN + - 77 THEN + + 29 END WHEN 74 THEN 89 + - ( - + 9 ) * + SUM ( DISTINCT 83 ) WHEN + 42 - + - 64 * + 50 THEN NULL WHEN 37 + 93 THEN NULL END / 86 + + COUNT ( * ) + - 93 * + ( - 65 ) * - 45 * - 85 * + - MAX ( 24 ) - 22 * + + 90 * - + 41 * + 96 - + - 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2595
SELECT DISTINCT - COUNT( * ) DIV - + 16 - 54, - 60 + - - 38 + - + 78 AS col0
----
-54
-100

skipif mysql # not compatible
query II rowsort label-2595
SELECT DISTINCT - COUNT ( * ) / - + 16 - 54, - 60 + - - 38 + - + 78 AS col0
----
-54
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT CAST( + AVG ( + 8 ) AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2596
SELECT CAST ( + AVG ( + 8 ) AS INTEGER ) AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2597
SELECT ALL + 83 AS col1, - 57 + + + 32 * + ( + + COALESCE ( COALESCE ( + CASE + 23 WHEN - 26 THEN - - CAST( NULL AS SIGNED ) END, 79 ), + 73 + + - 31 ) )
----
83
2471

skipif mysql # not compatible
query II rowsort label-2597
SELECT ALL + 83 AS col1, - 57 + + + 32 * + ( + + COALESCE ( COALESCE ( + CASE + 23 WHEN - 26 THEN - - CAST ( NULL AS INTEGER ) END, 79 ), + 73 + + - 31 ) )
----
83
2471

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

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

query I rowsort
SELECT ( + NULLIF ( + + 45, + 56 * - - 54 * 95 * 10 - - 32 ) )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2600
SELECT 65 * - NULLIF ( + 98, - 96 + + - 64 ) + + - 47 DIV + 83 + - COUNT( * )
----
-6371

skipif mysql # not compatible
query I rowsort label-2600
SELECT 65 * - NULLIF ( + 98, - 96 + + - 64 ) + + - 47 / + 83 + - COUNT ( * )
----
-6371

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2602
SELECT + NULLIF ( NULLIF ( - 31, - 54 - + 16 ), + 82 * + ( - + CASE - CAST( + 72 AS DECIMAL ) WHEN - - ( + 80 ) THEN - + COUNT( * ) ELSE NULL END ) + CAST( - 67 AS SIGNED ) ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - COUNT( * ) + 40 * - ( 86 ) - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT + NULLIF ( NULLIF ( - 31, - 54 - + 16 ), + 82 * + ( - + CASE - CAST ( + 72 AS REAL ) WHEN - - ( + 80 ) THEN - + COUNT ( * ) ELSE NULL END ) + CAST ( - 67 AS INTEGER ) ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - COUNT ( * ) + 40 * - ( 86 ) - - 20
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2603
SELECT - COUNT ( * ) * - 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT + 36 + - + COUNT( * ) + + CASE + CAST( - 60 AS SIGNED ) WHEN - 76 + + 36 * - 93 THEN NULL WHEN ( + 57 ) * 12 + + CAST( - 74 AS SIGNED ) + - - 70 THEN NULL WHEN + 80 THEN + - CAST( NULL AS SIGNED ) ELSE - NULLIF ( - - 1, - - 19 + - 52 + + - MIN( ALL - ( - 29 ) ) * + - 16 * 63 ) * - 97 + + 79 + - 94 - - + 39 END + + COUNT( * ) + - 73 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 36 + - + COUNT ( * ) + + CASE + CAST ( - 60 AS INTEGER ) WHEN - 76 + + 36 * - 93 THEN NULL WHEN ( + 57 ) * 12 + + CAST ( - 74 AS INTEGER ) + - - 70 THEN NULL WHEN + 80 THEN + - CAST ( NULL AS INTEGER ) ELSE - NULLIF ( - - 1, - - 19 + - 52 + + - MIN ( ALL - ( - 29 ) ) * + - 16 * 63 ) * - 97 + + 79 + - 94 - - + 39 END + + COUNT ( * ) + - 73 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT COUNT( * ) * + COUNT( * ) - + + 51
----
-50

skipif mysql # not compatible
query I rowsort label-2605
SELECT COUNT ( * ) * + COUNT ( * ) - + + 51
----
-50

query I rowsort
SELECT ALL 48 * + - 34 AS col2
----
-1632

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

query II rowsort
SELECT + 0 AS col1, - 23
----
0
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT DISTINCT CASE - 28 WHEN + NULLIF ( + COUNT( * ), 43 - 67 ) THEN 13 ELSE NULL END * 76 + - COALESCE ( 35, + + MAX( ALL + + 8 ) ) + 82 + + ( COUNT( * ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT CASE - 28 WHEN + NULLIF ( + COUNT ( * ), 43 - 67 ) THEN 13 ELSE NULL END * 76 + - COALESCE ( 35, + + MAX ( ALL + + 8 ) ) + 82 + + ( COUNT ( * ) ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT CASE - 81 WHEN - 76 / SUM( ALL - 7 ) - ( + 20 ) + + 16 THEN - COUNT( * ) ELSE NULL END / + ( + ( + + CAST( 20 AS SIGNED ) ) ) + 86 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT CASE - 81 WHEN - 76 / SUM ( ALL - 7 ) - ( + 20 ) + + 16 THEN - COUNT ( * ) ELSE NULL END / + ( + ( + + CAST ( 20 AS INTEGER ) ) ) + 86 + 58
----
NULL

query II rowsort
SELECT DISTINCT - 2 AS col0, 11 * - 86 AS col2
----
-2
-946

query I rowsort
SELECT 79 + + 20
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT 73, + 80 - - 18 * - MAX( DISTINCT - 23 ) AS col0
----
73
494

skipif mysql # not compatible
query II rowsort label-2613
SELECT 73, + 80 - - 18 * - MAX ( DISTINCT - 23 ) AS col0
----
73
494

query I rowsort
SELECT 89 + - 32 * - - 16 * + - 11 * - - 99
----
557657

query I rowsort
SELECT 98 * 11
----
1078

query II rowsort
SELECT ALL - 76 + 17 AS col1, + 63 * - + 86
----
-59
-5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2617
SELECT 89, COUNT( * ) - 91 + + 0 + - - 30 DIV + + 11 + - 13 AS col2
----
89
-101

skipif mysql # not compatible
query II rowsort label-2617
SELECT 89, COUNT ( * ) - 91 + + 0 + - - 30 / + + 11 + - 13 AS col2
----
89
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT 5 + COUNT( * ) AS col0, ( - 40 ) AS col1
----
6
-40

skipif mysql # not compatible
query II rowsort label-2618
SELECT 5 + COUNT ( * ) AS col0, ( - 40 ) AS col1
----
6
-40

query I rowsort
SELECT - CASE 60 WHEN 11 * - 25 THEN ( - 37 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 10 + - 85
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT 82 + 44 + 94 * - COUNT( * ) * + + CAST( NULL AS SIGNED ) / + + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT 82 + 44 + 94 * - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / + + 36 AS col2
----
NULL

query I rowsort
SELECT ALL + - 40 + + 15 * - 58
----
-910

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2624
SELECT + 47 AS col0, 9 * - ( - + COUNT( * ) ) * - ( + 53 ) + CAST( 24 AS SIGNED ) * 64 AS col0
----
47
1059

skipif mysql # not compatible
query II rowsort label-2624
SELECT + 47 AS col0, 9 * - ( - + COUNT ( * ) ) * - ( + 53 ) + CAST ( 24 AS INTEGER ) * 64 AS col0
----
47
1059

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT - + 34 AS col0, 25 - + + 63 + COUNT( * ) + 14 AS col0
----
-34
-23

skipif mysql # not compatible
query II rowsort label-2625
SELECT - + 34 AS col0, 25 - + + 63 + COUNT ( * ) + 14 AS col0
----
-34
-23

query I rowsort
SELECT ALL - + 10 * - 97
----
970

query I rowsort
SELECT 36 - - 32 * 9 AS col2
----
324

query I rowsort
SELECT 67 + + 3 AS col2
----
70

query I rowsort
SELECT 26 * + 25 * + 99
----
64350

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT - + NULLIF ( - 54, + 32 + - COUNT( * ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-2630
SELECT - + NULLIF ( - 54, + 32 + - COUNT ( * ) ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ( - 66 ) + - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-2631
SELECT ( - 66 ) + - - COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ( + 22 ) * 14 + COUNT( * ) - - 91 + + + 0 + 79 * + 34 * - 75 * - 93 AS col1
----
18735250

skipif mysql # not compatible
query I rowsort label-2632
SELECT ( + 22 ) * 14 + COUNT ( * ) - - 91 + + + 0 + 79 * + 34 * - 75 * - 93 AS col1
----
18735250

query I rowsort
SELECT ALL 85 * 18 AS col1
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT DISTINCT + 0 - - + 23 + - + 30 + + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT + 0 - - + 23 + - + 30 + + + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL - MAX( - - 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL - MAX ( - - 55 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2636
SELECT 88 col2, - 85 * + COALESCE ( CAST( NULL AS SIGNED ), + 36, + COUNT( * ) )
----
88
-3060

skipif mysql # not compatible
query II rowsort label-2636
SELECT 88 col2, - 85 * + COALESCE ( CAST ( NULL AS INTEGER ), + 36, + COUNT ( * ) )
----
88
-3060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT 85 / SUM( CAST( - CASE - 61 WHEN + - ( + 72 ) * + 43 * 50 * 74 THEN - + 30 * - 25 + + 93 * ( - 33 ) END AS SIGNED ) ) + NULLIF ( - + 4, + 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT 85 / SUM ( CAST ( - CASE - 61 WHEN + - ( + 72 ) * + 43 * 50 * 74 THEN - + 30 * - 25 + + 93 * ( - 33 ) END AS INTEGER ) ) + NULLIF ( - + 4, + 91 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) * - NULLIF ( - COUNT( * ), - 83 + + 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) * - NULLIF ( - COUNT ( * ), - 83 + + 17 ) AS col1
----
NULL

query I rowsort
SELECT 28 * ( + + ( + + 78 ) ) col1
----
2184

query II rowsort
SELECT DISTINCT 13 * - + 44 AS col2, + 14 * + 88 * + - 55
----
-572
-67760

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT - 25 DIV 74 + - 95
----
-95

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 25 / 74 + - 95
----
-95

query I rowsort
SELECT ALL - ( - + CASE - 97 WHEN 76 THEN NULL ELSE - - 0 + 16 END ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL 1 + + - ( + CASE 72 WHEN 54 - + - 15 THEN + + COALESCE ( + 52, + MAX( ALL + 52 ) - COUNT( 7 ) + + COUNT( * ) + + COUNT( * ) * + 79 * + - 96, + 15 * - 91 ) / + + NULLIF ( + - 94, - 97 ) + - + MIN( 84 ) WHEN - 5 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL 1 + + - ( + CASE 72 WHEN 54 - + - 15 THEN + + COALESCE ( + 52, + MAX ( ALL + 52 ) - COUNT ( 7 ) + + COUNT ( * ) + + COUNT ( * ) * + 79 * + - 96, + 15 * - 91 ) / + + NULLIF ( + - 94, - 97 ) + - + MIN ( 84 ) WHEN - 5 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT + COUNT( * ) * - 16 - + 24 + - 33 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-2644
SELECT + COUNT ( * ) * - 16 - + 24 + - 33 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ( 21 ) * + + 95 * - 59 - + 4 - - 60 + + + 35 + + 60 * NULLIF ( + 5, - 19 ) * COUNT( * ) * - 43 col2
----
-130514

skipif mysql # not compatible
query I rowsort label-2645
SELECT ( 21 ) * + + 95 * - 59 - + 4 - - 60 + + + 35 + + 60 * NULLIF ( + 5, - 19 ) * COUNT ( * ) * - 43 col2
----
-130514

query I rowsort
SELECT ALL 58 * + 76
----
4408

query II rowsort
SELECT ALL 29 + - 74, - 23 AS col0
----
-45
-23

query I rowsort
SELECT DISTINCT 52 + - + ( 36 ) AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT DISTINCT 64 + + CAST( + 45 AS SIGNED ) * - 67 AS col0
----
-2951

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT 64 + + CAST ( + 45 AS INTEGER ) * - 67 AS col0
----
-2951

query I rowsort
SELECT 26 - - + 60 + - 66 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL MIN( DISTINCT - 37 ) * - + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL MIN ( DISTINCT - 37 ) * - + COUNT ( * )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT DISTINCT + CAST( 19 AS SIGNED ) * + 9 * - 71 AS col1
----
-12141

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT + CAST ( 19 AS INTEGER ) * + 9 * - 71 AS col1
----
-12141

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT 2 * 47 * COUNT( * ) + - 10 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2653
SELECT 2 * 47 * COUNT ( * ) + - 10 AS col1
----
84

query I rowsort
SELECT ALL 11 - + + NULLIF ( + 42, 87 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2655
SELECT 5 + + - MIN( ALL 35 ) DIV - 43
----
5

skipif mysql # not compatible
query I rowsort label-2655
SELECT 5 + + - MIN ( ALL 35 ) / - 43
----
5

query I rowsort
SELECT 51 + 62 AS col1
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2657
SELECT 95 - + 29 + - COUNT( * ) + + CAST( 8 AS SIGNED ) AS col0, - 3 + + 93 * + + 69
----
73
6414

skipif mysql # not compatible
query II rowsort label-2657
SELECT 95 - + 29 + - COUNT ( * ) + + CAST ( 8 AS INTEGER ) AS col0, - 3 + + 93 * + + 69
----
73
6414

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

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

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

query I rowsort
SELECT DISTINCT + 15 * - 64 * - 2 AS col0
----
1920

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT DISTINCT 96 - CASE 41 WHEN + + ( 92 ) THEN - 92 WHEN - - COUNT( * ) THEN NULL END, - 14 AS col1
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-2661
SELECT DISTINCT 96 - CASE 41 WHEN + + ( 92 ) THEN - 92 WHEN - - COUNT ( * ) THEN NULL END, - 14 AS col1
----
NULL
-14

query I rowsort
SELECT ALL + + ( + 2 ) * + 61 * + 15 col1
----
1830

query I rowsort
SELECT ALL ( + 31 ) * - - 44 AS col0
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT COALESCE ( + 93, - 83, - 11 * - COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT COALESCE ( + 93, - 83, - 11 * - COUNT ( * ) )
----
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - + SUM( ALL 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2666
SELECT - + SUM ( ALL 9 ) AS col0
----
-9

query II rowsort
SELECT ALL - NULLIF ( + + 21, + - 26 ) AS col1, 37 col0
----
-21
37

query I rowsort
SELECT ALL + 22 * 81 * 94 * + 64 AS col2
----
10720512

query I rowsort
SELECT 43 * - 80 AS col1
----
-3440

query I rowsort
SELECT 35 + - ( - ( + - 92 ) )
----
-57

query I rowsort
SELECT ALL + 83 * - 80
----
-6640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2672
SELECT - NULLIF ( 85, - 42 + 21 * - + 64 + SUM( ALL + - 64 ) ) DIV - COUNT( + 94 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2672
SELECT - NULLIF ( 85, - 42 + 21 * - + 64 + SUM ( ALL + - 64 ) ) / - COUNT ( + 94 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ALL 20 * - - 75 + 51 + - - NULLIF ( + - 42, - - 89 ) + 77 + - CASE - - 21 WHEN + + 50 THEN + SUM( ALL + 46 ) / 88 + - 52 * - + NULLIF ( + - 68, 33 ) + + COUNT( * ) * 99 END * - - 71 / - 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL 20 * - - 75 + 51 + - - NULLIF ( + - 42, - - 89 ) + 77 + - CASE - - 21 WHEN + + 50 THEN + SUM ( ALL + 46 ) / 88 + - 52 * - + NULLIF ( + - 68, 33 ) + + COUNT ( * ) * 99 END * - - 71 / - 43 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT COALESCE ( + 2, + - 25 + - CASE - 35 WHEN CASE + - NULLIF ( 73, - + 97 * + 93 ) WHEN - 3 THEN + 87 + 96 END THEN 4 WHEN 76 / - - 22 * - 41 * CAST( 98 AS SIGNED ) - + + 34 THEN - 6 WHEN + + 76 * - + 79 / 38 THEN NULL ELSE - 61 END + + 49 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2674
SELECT COALESCE ( + 2, + - 25 + - CASE - 35 WHEN CASE + - NULLIF ( 73, - + 97 * + 93 ) WHEN - 3 THEN + 87 + 96 END THEN 4 WHEN 76 / - - 22 * - 41 * CAST ( 98 AS INTEGER ) - + + 34 THEN - 6 WHEN + + 76 * - + 79 / 38 THEN NULL ELSE - 61 END + + 49 ) col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2675
SELECT + 76 * + 71 + + + COUNT( ALL - + 8 ) * 80 DIV 94, - NULLIF ( - 22, - 65 * + 90 - + COUNT( * ) ) AS col1
----
5396
22

skipif mysql # not compatible
query II rowsort label-2675
SELECT + 76 * + 71 + + + COUNT ( ALL - + 8 ) * 80 / 94, - NULLIF ( - 22, - 65 * + 90 - + COUNT ( * ) ) AS col1
----
5396
22

query I rowsort
SELECT - 47 + 56 * - 34 * - 91 * - - 94
----
16286769

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT 39 * - MAX( - 4 ) - - 35, ( - 35 ) AS col0
----
191
-35

skipif mysql # not compatible
query II rowsort label-2677
SELECT 39 * - MAX ( - 4 ) - - 35, ( - 35 ) AS col0
----
191
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT SUM( + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2678
SELECT SUM ( + 21 ) AS col2
----
21

query I rowsort
SELECT ALL 17 * + 56 col1
----
952

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2680
SELECT - NULLIF ( + ( - 34 ), + 76 ) + + + CAST( NULL AS SIGNED ) * - + 25 / - + ( + 63 ) AS col0, 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-2680
SELECT - NULLIF ( + ( - 34 ), + 76 ) + + + CAST ( NULL AS INTEGER ) * - + 25 / - + ( + 63 ) AS col0, 65 AS col1
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL - 25 * COUNT( * ) + MIN( DISTINCT 34 ) + + 37 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - 25 * COUNT ( * ) + MIN ( DISTINCT 34 ) + + 37 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT SUM( DISTINCT + + CASE + - 69 WHEN + 91 + - 70 + + + 55 THEN NULL WHEN + 14 THEN - - 29 * + + 89 * + + 98 + 52 WHEN - 24 + - 10 * + 89 THEN COALESCE ( - 31, - - 15 + - + 63 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT SUM ( DISTINCT + + CASE + - 69 WHEN + 91 + - 70 + + + 55 THEN NULL WHEN + 14 THEN - - 29 * + + 89 * + + 98 + 52 WHEN - 24 + - 10 * + 89 THEN COALESCE ( - 31, - - 15 + - + 63 ) END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 49 * 82 * + ( - 60 ) AS col1
----
-241080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2684
SELECT - CAST( NULL AS DECIMAL ) * + + COUNT( * ) + + + COUNT( * ) + CAST( - 73 AS DECIMAL ) * 3 + - + COUNT( * ) * - 2 * - + 4 * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - CAST ( NULL AS REAL ) * + + COUNT ( * ) + + + COUNT ( * ) + CAST ( - 73 AS REAL ) * 3 + - + COUNT ( * ) * - 2 * - + 4 * 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2685
SELECT DISTINCT 31 AS col0, 49 * + COUNT( * )
----
31
49

skipif mysql # not compatible
query II rowsort label-2685
SELECT DISTINCT 31 AS col0, 49 * + COUNT ( * )
----
31
49

query I rowsort
SELECT + + 33 + 60 * 66
----
3993

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - - COALESCE ( ( + ( COUNT( * ) ) ), + MIN( 59 ) ) * + ( COUNT( * ) ) + 66 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2688
SELECT - - COALESCE ( ( + ( COUNT ( * ) ) ), + MIN ( 59 ) ) * + ( COUNT ( * ) ) + 66 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2689
SELECT 81 AS col1, + ( + MIN( DISTINCT + 62 ) ) DIV + 67 + - - 94
----
81
94

skipif mysql # not compatible
query II rowsort label-2689
SELECT 81 AS col1, + ( + MIN ( DISTINCT + 62 ) ) / + 67 + - - 94
----
81
94

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

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

query II rowsort
SELECT - - 50 AS col2, - 67 + + 78
----
50
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT - + NULLIF ( - 78, - COUNT( * ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2692
SELECT - + NULLIF ( - 78, - COUNT ( * ) ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT ALL - 99, + 62 * + MAX( - ( 77 ) ) AS col0
----
-99
-4774

skipif mysql # not compatible
query II rowsort label-2693
SELECT ALL - 99, + 62 * + MAX ( - ( 77 ) ) AS col0
----
-99
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL 89 * + COUNT( - - 36 ) * - COUNT( * ) + - + 64
----
-153

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL 89 * + COUNT ( - - 36 ) * - COUNT ( * ) + - + 64
----
-153

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT + + 89 + - CASE - CASE - - 51 WHEN - COALESCE ( + 40, + COUNT( ALL 1 ) / NULLIF ( + NULLIF ( 83, - 29 ), 70 ), + AVG ( ALL - 79 ), 9 + - 60 ) * + ( + CASE + 48 WHEN - - 63 * 98 + - + 64 THEN NULL WHEN + + 10 * 86 * - 24 THEN + - CAST( + 94 AS SIGNED ) + - 74 + - - 1 ELSE NULL END ) * 78 + - ( 43 ) / 79 * ( - 71 ) + 92 THEN + - 70 ELSE NULL END WHEN - - 85 THEN + ( 60 ) / - COUNT( * ) - - - 10 + - 16 ELSE NULL END * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT + + 89 + - CASE - CASE - - 51 WHEN - COALESCE ( + 40, + COUNT ( ALL 1 ) / NULLIF ( + NULLIF ( 83, - 29 ), 70 ), + AVG ( ALL - 79 ), 9 + - 60 ) * + ( + CASE + 48 WHEN - - 63 * 98 + - + 64 THEN NULL WHEN + + 10 * 86 * - 24 THEN + - CAST ( + 94 AS INTEGER ) + - 74 + - - 1 ELSE NULL END ) * 78 + - ( 43 ) / 79 * ( - 71 ) + 92 THEN + - 70 ELSE NULL END WHEN - - 85 THEN + ( 60 ) / - COUNT ( * ) - - - 10 + - 16 ELSE NULL END * 23 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 84 * - - 6
----
504

query I rowsort
SELECT + - 20 * - 17 * + - 18
----
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT + MIN( + 5 ) * + - 39 * - - 54 * 21 AS col1
----
-221130

skipif mysql # not compatible
query I rowsort label-2699
SELECT + MIN ( + 5 ) * + - 39 * - - 54 * 21 AS col1
----
-221130

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT - + 40 DIV + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT - + 40 / + 56 AS col0
----
0

query I rowsort
SELECT + - 71 - - - 27 AS col2
----
-98

query I rowsort
SELECT + 17 * + - 94
----
-1598

query I rowsort
SELECT ALL CASE + 82 WHEN + + 30 THEN NULL ELSE - 87 END + 96
----
9

query I rowsort
SELECT ALL - 6 + + 53 + COALESCE ( - + 47, 16, + - 33 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2706
SELECT ALL NULLIF ( 19, + 45 ) / - CAST( NULL AS DECIMAL ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL NULLIF ( 19, + 45 ) / - CAST ( NULL AS REAL ) + 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2707
SELECT ALL + COUNT( ALL - - CAST( - - 17 AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL + COUNT ( ALL - - CAST ( - - 17 AS REAL ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT 10 DIV + 18 + + 34 * 35 AS col1
----
1190

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT 10 / + 18 + + 34 * 35 AS col1
----
1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2709
SELECT CASE MAX( 50 ) WHEN - 58 THEN + + 86 WHEN 96 + + 54 THEN NULL WHEN ( - - 62 ) * ( - 59 ) + - 7 * - + 36 THEN + 26 * CAST( NULL AS SIGNED ) END / + ( - ( + - 36 ) ) + 16 - - + ( + - CAST( NULL AS DECIMAL ) ) + 56 * - COALESCE ( + 36, + 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT CASE MAX ( 50 ) WHEN - 58 THEN + + 86 WHEN 96 + + 54 THEN NULL WHEN ( - - 62 ) * ( - 59 ) + - 7 * - + 36 THEN + 26 * CAST ( NULL AS INTEGER ) END / + ( - ( + - 36 ) ) + 16 - - + ( + - CAST ( NULL AS REAL ) ) + 56 * - COALESCE ( + 36, + 13 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT 16 DIV 26 + - 9 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT 16 / 26 + - 9 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT ALL 85 DIV 21 + 59 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL 85 / 21 + 59 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2712
SELECT ALL 54 DIV + 72 + - + 91 + - - COUNT( * ) * - 65 DIV + + 41
----
-92

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL 54 / + 72 + - + 91 + - - COUNT ( * ) * - 65 / + + 41
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT + 71 * COUNT( - ( - + 60 ) ) col1
----
71

skipif mysql # not compatible
query I rowsort label-2713
SELECT + 71 * COUNT ( - ( - + 60 ) ) col1
----
71

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2716
SELECT + CAST( - - 68 AS SIGNED ) AS col1, 1 * ( - 83 ) + - - MIN( ( - - 80 ) ) + + - SUM( DISTINCT + 80 )
----
68
-83

skipif mysql # not compatible
query II rowsort label-2716
SELECT + CAST ( - - 68 AS INTEGER ) AS col1, 1 * ( - 83 ) + - - MIN ( ( - - 80 ) ) + + - SUM ( DISTINCT + 80 )
----
68
-83

query I rowsort
SELECT - 53 + - + 81 AS col1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT DISTINCT CASE 3 WHEN 16 THEN NULL WHEN + - ( - 41 ) + - - 66 THEN + + 60 / 14 * + 66 + 42 + 46 + - - COUNT( * ) / - - 96 END * - - 31 * - 90 + 24 - - COUNT( * ) + - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT CASE 3 WHEN 16 THEN NULL WHEN + - ( - 41 ) + - - 66 THEN + + 60 / 14 * + 66 + 42 + 46 + - - COUNT ( * ) / - - 96 END * - - 31 * - 90 + 24 - - COUNT ( * ) + - + 11 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 47 * + 72
----
3384

query I rowsort
SELECT ALL - 81 * - 91 + - 0
----
7371

query I rowsort
SELECT DISTINCT - 72 * + 28 AS col2
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT + 96 * 13 - COUNT( * ) AS col1
----
1247

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 96 * 13 - COUNT ( * ) AS col1
----
1247

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT - - 67 * 60 + COALESCE ( + 40, - 37 + 96 ) * - + 65 * - 23 * - - ( 76 ), CASE + - COUNT( * ) WHEN + + 47 THEN NULL WHEN + COUNT( * ) THEN - 13 END col2
----
4548820
NULL

skipif mysql # not compatible
query II rowsort label-2723
SELECT - - 67 * 60 + COALESCE ( + 40, - 37 + 96 ) * - + 65 * - 23 * - - ( 76 ), CASE + - COUNT ( * ) WHEN + + 47 THEN NULL WHEN + COUNT ( * ) THEN - 13 END col2
----
4548820
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT - + 65 * + + 19 - CASE - 47 WHEN + 30 + - 41 THEN + 52 WHEN - COUNT( * ) THEN + + 31 ELSE - 3 END
----
-1232

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - + 65 * + + 19 - CASE - 47 WHEN + 30 + - 41 THEN + 52 WHEN - COUNT ( * ) THEN + + 31 ELSE - 3 END
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) + + 77
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2726
SELECT - 63 + + 98, 90 DIV - + 98 AS col0
----
35
0

skipif mysql # not compatible
query II rowsort label-2726
SELECT - 63 + + 98, 90 / - + 98 AS col0
----
35
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2727
SELECT + 32 * - 42 col2, - COUNT( + - ( 90 ) ) + + 70
----
-1344
69

skipif mysql # not compatible
query II rowsort label-2727
SELECT + 32 * - 42 col2, - COUNT ( + - ( 90 ) ) + + 70
----
-1344
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT DISTINCT + - 91 * 46 * 11 * + 47 + - 69 - + - 97 DIV 94 + - - 70 DIV + COUNT( * )
----
-2164160

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT + - 91 * 46 * 11 * + 47 + - 69 - + - 97 / 94 + - - 70 / + COUNT ( * )
----
-2164160

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT DISTINCT + + 74 * + COUNT( * ) * - ( - 75 ) AS col0, 52 AS col1
----
5550
52

skipif mysql # not compatible
query II rowsort label-2729
SELECT DISTINCT + + 74 * + COUNT ( * ) * - ( - 75 ) AS col0, 52 AS col1
----
5550
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT DISTINCT NULLIF ( + 10, 86 * - AVG ( - + 25 ) + + + MAX( DISTINCT 24 ) * - 9 + AVG ( DISTINCT NULLIF ( + 91, - 67 ) ) )
----
10

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT NULLIF ( + 10, 86 * - AVG ( - + 25 ) + + + MAX ( DISTINCT 24 ) * - 9 + AVG ( DISTINCT NULLIF ( + 91, - 67 ) ) )
----
10

query II rowsort
SELECT - + 10 - + 25 AS col2, + 22 + + 84
----
-35
106

query I rowsort
SELECT ALL + + 24 * + 97 * - 37
----
-86136

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

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

query I rowsort
SELECT + + 60 + + ( 98 ) AS col2
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT - - ( - 52 ) AS col2, - 90 - MIN( ALL 87 ) AS col2
----
-52
-177

skipif mysql # not compatible
query II rowsort label-2735
SELECT - - ( - 52 ) AS col2, - 90 - MIN ( ALL 87 ) AS col2
----
-52
-177

query I rowsort
SELECT - 79 + 58 * + - 4
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT COALESCE ( 91, 21 * - COUNT( * ) * - 27 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2737
SELECT COALESCE ( 91, 21 * - COUNT ( * ) * - 27 ) AS col0
----
91

query I rowsort
SELECT - 62 - + 93 + 77 * 74 - + + 2 col1
----
5541

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT 14 DIV - 86 + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-2739
SELECT 14 / - 86 + - 98 AS col2
----
-98

query II rowsort
SELECT - 6 + + + 71, 75 AS col2
----
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL + COALESCE ( - SUM( ALL - + 32 ), + COUNT( * ) + 63 ) + - 56 - - + 86 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + COALESCE ( - SUM ( ALL - + 32 ), + COUNT ( * ) + 63 ) + - 56 - - + 86 AS col2
----
62

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

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL + - 44 + + - CAST ( - 14 AS INTEGER )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL 84 + + + CASE 87 WHEN 75 + - MAX( + 1 ) THEN + + 38 + - MAX( DISTINCT - COALESCE ( - 83, - - 20 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL 84 + + + CASE 87 WHEN 75 + - MAX ( + 1 ) THEN + + 38 + - MAX ( DISTINCT - COALESCE ( - 83, - - 20 ) ) END AS col2
----
NULL

query II rowsort
SELECT 66, + 6 AS col0
----
66
6

query I rowsort
SELECT DISTINCT 54 + 75 + - 90 * + - 6 * 95 * 53 + 22
----
2719051

query I rowsort
SELECT DISTINCT 13 + + 71 AS col1
----
84

query I rowsort
SELECT ( + 13 ) * + - NULLIF ( 92, + 72 ) col0
----
-1196

query I rowsort
SELECT ALL 89 + - 24 col1
----
65

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

query I rowsort
SELECT 60 + + 9 * + 45 AS col1
----
465

onlyif mysql # aggregate syntax: 
query II rowsort label-2751
SELECT 61 AS col0, 13 - - + COUNT( DISTINCT - 1 ) AS col0
----
61
14

skipif mysql # not compatible
query II rowsort label-2751
SELECT 61 AS col0, 13 - - + COUNT ( DISTINCT - 1 ) AS col0
----
61
14

query II rowsort
SELECT + 96 AS col0, + 42 - - 0
----
96
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ( - - 26 ) + + MIN( ALL 11 )
----
37

skipif mysql # not compatible
query I rowsort label-2753
SELECT ( - - 26 ) + + MIN ( ALL 11 )
----
37

query I rowsort
SELECT 5 * + + 44
----
220

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

skipif mysql # not compatible
query I rowsort label-2755
SELECT 8 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2756
SELECT DISTINCT - 46 AS col2, NULLIF ( 49, + - MIN( DISTINCT + + ( - 5 ) ) ) + - - NULLIF ( - - ( + + 51 ), + CASE - NULLIF ( - 21, + - 40 ) WHEN + + COUNT( * ) THEN NULL WHEN + - 71 THEN + 2 * - COALESCE ( - - 52, 44 + + - 7 ) END * 72 ) - COUNT( * ) - + 38
----
-46
61

skipif mysql # not compatible
query II rowsort label-2756
SELECT DISTINCT - 46 AS col2, NULLIF ( 49, + - MIN ( DISTINCT + + ( - 5 ) ) ) + - - NULLIF ( - - ( + + 51 ), + CASE - NULLIF ( - 21, + - 40 ) WHEN + + COUNT ( * ) THEN NULL WHEN + - 71 THEN + 2 * - COALESCE ( - - 52, 44 + + - 7 ) END * 72 ) - COUNT ( * ) - + 38
----
-46
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT ALL 35 + + + 87 * + - 81 + - 23 * MAX( DISTINCT - + 96 ) * - COUNT( * ) + + COALESCE ( - - 10, - - 77 * NULLIF ( - + 50, 10 + - 80 ), + 97, - 42 ) + + 52
----
-9158

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL 35 + + + 87 * + - 81 + - 23 * MAX ( DISTINCT - + 96 ) * - COUNT ( * ) + + COALESCE ( - - 10, - - 77 * NULLIF ( - + 50, 10 + - 80 ), + 97, - 42 ) + + 52
----
-9158

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT 76 * - + ( - 94 ) - + - 56 + + - 85 DIV - 73
----
7201

skipif mysql # not compatible
query I rowsort label-2758
SELECT 76 * - + ( - 94 ) - + - 56 + + - 85 / - 73
----
7201

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2760
SELECT ALL 0 - COUNT( ALL + 43 ), + 95 + - COUNT( * ) AS col0
----
-1
94

skipif mysql # not compatible
query II rowsort label-2760
SELECT ALL 0 - COUNT ( ALL + 43 ), + 95 + - COUNT ( * ) AS col0
----
-1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT 14 + + 53 + - COUNT( * ) * - - 50 + + - CASE + COALESCE ( 85, + + COUNT( * ) ) WHEN - + ( + CASE + - 23 WHEN + 29 THEN NULL WHEN 5 + + 28 THEN + 91 - - 69 ELSE NULL END ) THEN COUNT( * ) * 17 WHEN + + 44 THEN NULL ELSE NULL END * - 89 / + - 84 / - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT 14 + + 53 + - COUNT ( * ) * - - 50 + + - CASE + COALESCE ( 85, + + COUNT ( * ) ) WHEN - + ( + CASE + - 23 WHEN + 29 THEN NULL WHEN 5 + + 28 THEN + 91 - - 69 ELSE NULL END ) THEN COUNT ( * ) * 17 WHEN + + 44 THEN NULL ELSE NULL END * - 89 / + - 84 / - 48
----
NULL

query I rowsort
SELECT ALL 76 * + 62 AS col1
----
4712

query II rowsort
SELECT + 72 AS col2, + ( + - 26 ) AS col0
----
72
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT 30 - - - ( + 37 ) + + 66 + + - 34 DIV + + 51 * - + 57 * - 18
----
59

skipif mysql # not compatible
query I rowsort label-2764
SELECT 30 - - - ( + 37 ) + + 66 + + - 34 / + + 51 * - + 57 * - 18
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT - SUM( - + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - SUM ( - + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT - 85 * - - 15 * - + 30 - - + COUNT( * ) AS col2
----
38251

skipif mysql # not compatible
query I rowsort label-2766
SELECT - 85 * - - 15 * - + 30 - - + COUNT ( * ) AS col2
----
38251

query I rowsort
SELECT - 61 + 42
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT COUNT( * ) * + NULLIF ( - 22, + 90 )
----
-22

skipif mysql # not compatible
query I rowsort label-2768
SELECT COUNT ( * ) * + NULLIF ( - 22, + 90 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ( COUNT( * ) ) * - 91 + + - 10 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-2769
SELECT ( COUNT ( * ) ) * - 91 + + - 10 AS col0
----
-101

query I rowsort
SELECT - ( 89 ) * - + 7 + 81 AS col0
----
704

query I rowsort
SELECT + 10 + 71
----
81

query II rowsort
SELECT - - 59 AS col1, + 53 AS col2
----
59
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2773
SELECT DISTINCT + - ( + 79 ) / + 33 + 5 + + - CAST( NULL AS DECIMAL ) - + 23 * COUNT( * ) * 52 * - ( - + AVG ( - - ( + 6 ) ) ) * + - CAST( + ( 36 ) AS DECIMAL ) / 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT + - ( + 79 ) / + 33 + 5 + + - CAST ( NULL AS REAL ) - + 23 * COUNT ( * ) * 52 * - ( - + AVG ( - - ( + 6 ) ) ) * + - CAST ( + ( 36 ) AS REAL ) / 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT SUM( DISTINCT - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-2774
SELECT SUM ( DISTINCT - 40 )
----
-40

query I rowsort
SELECT ALL - 43 + - - 83
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL + ( - COUNT( ALL 11 ) ) + + + 29 * - 94 + - COALESCE ( - - 70, 79 - 54 + + - ( + 8 ) ) col0
----
-2797

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL + ( - COUNT ( ALL 11 ) ) + + + 29 * - 94 + - COALESCE ( - - 70, 79 - 54 + + - ( + 8 ) ) col0
----
-2797

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT - + CASE - + 32 WHEN - ( ( + + NULLIF ( 93, + 95 ) ) ) * 73 + - + 37 THEN 95 + + MAX( DISTINCT - - 27 ) - - 58 ELSE COUNT( * ) * 7 + + + 29 + - 59 END
----
23

skipif mysql # not compatible
query I rowsort label-2777
SELECT - + CASE - + 32 WHEN - ( ( + + NULLIF ( 93, + 95 ) ) ) * 73 + - + 37 THEN 95 + + MAX ( DISTINCT - - 27 ) - - 58 ELSE COUNT ( * ) * 7 + + + 29 + - 59 END
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2778
SELECT DISTINCT + 6 + CASE - - 38 WHEN + 67 THEN NULL WHEN + 49 / - AVG ( DISTINCT + 45 ) - - + CASE - CAST( + COUNT( * ) AS SIGNED ) WHEN - NULLIF ( - ( + - MAX( DISTINCT - 81 ) ), - 25 * - - 36 ) * + - 53 - 70 + - - 13 * - 42 THEN - CAST( - 27 AS SIGNED ) END THEN 92 + - - COUNT( * ) * - + 48 + 41 + + 92 WHEN CAST( NULL AS DECIMAL ) * + ( - 95 ) THEN NULL ELSE - 18 * - 31 END + ( 63 )
----
627

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT + 6 + CASE - - 38 WHEN + 67 THEN NULL WHEN + 49 / - AVG ( DISTINCT + 45 ) - - + CASE - CAST ( + COUNT ( * ) AS INTEGER ) WHEN - NULLIF ( - ( + - MAX ( DISTINCT - 81 ) ), - 25 * - - 36 ) * + - 53 - 70 + - - 13 * - 42 THEN - CAST ( - 27 AS INTEGER ) END THEN 92 + - - COUNT ( * ) * - + 48 + 41 + + 92 WHEN CAST ( NULL AS REAL ) * + ( - 95 ) THEN NULL ELSE - 18 * - 31 END + ( 63 )
----
627

query II rowsort
SELECT 14, 26 * 99 col1
----
14
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT 79 + - 76 DIV - 5
----
94

skipif mysql # not compatible
query I rowsort label-2780
SELECT 79 + - 76 / - 5
----
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT - 84 AS col0, ( + MAX( DISTINCT + 2 ) ) AS col1
----
-84
2

skipif mysql # not compatible
query II rowsort label-2782
SELECT - 84 AS col0, ( + MAX ( DISTINCT + 2 ) ) AS col1
----
-84
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2783
SELECT DISTINCT 45, 91 DIV + + 65 AS col2
----
45
1

skipif mysql # not compatible
query II rowsort label-2783
SELECT DISTINCT 45, 91 / + + 65 AS col2
----
45
1

query I rowsort
SELECT DISTINCT NULLIF ( - 63, + NULLIF ( - 90, - + 72 ) ) - 9 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL 95 * + COUNT( * ) * 49
----
4655

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL 95 * + COUNT ( * ) * 49
----
4655

query I rowsort
SELECT 88 * 11
----
968

onlyif mysql # DIV for integer division: 
query II rowsort label-2787
SELECT ALL + 17 DIV + - 38 AS col0, 52 DIV - 96 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-2787
SELECT ALL + 17 / + - 38 AS col0, 52 / - 96 AS col1
----
0
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2789
SELECT ALL - 69 AS col1, 57 DIV - 82 - - 28 + + 16
----
-69
44

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL - 69 AS col1, 57 / - 82 - - 28 + + 16
----
-69
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT DISTINCT 32 * - - CAST( NULL AS SIGNED ) - 95 + - 75 + + SUM( DISTINCT - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT 32 * - - CAST ( NULL AS INTEGER ) - 95 + - 75 + + SUM ( DISTINCT - 63 )
----
NULL

query I rowsort
SELECT ALL 59 * - - 74
----
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT 78 * + CASE COUNT( - + 20 ) WHEN - 20 / 10 / + COUNT( * ) THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT 78 * + CASE COUNT ( - + 20 ) WHEN - 20 / 10 / + COUNT ( * ) THEN + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL - 32 * 95 - 69
----
-3109

query II rowsort
SELECT 69 AS col1, - 30
----
69
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2795
SELECT CAST( + + 22 AS SIGNED ) AS col0, 30 AS col0
----
22
30

skipif mysql # not compatible
query II rowsort label-2795
SELECT CAST ( + + 22 AS INTEGER ) AS col0, 30 AS col0
----
22
30

query II rowsort
SELECT ALL - + 28 AS col1, - ( + 19 ) AS col0
----
-28
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT - MAX( 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT - MAX ( 66 ) AS col1
----
-66

query I rowsort
SELECT ( - 29 ) * 32 * 52 AS col0
----
-48256

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL - 99 + - 43 + - + 50 * + COUNT( * ) * + - 36 * 67 * 25 * + 81
----
244214858

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL - 99 + - 43 + - + 50 * + COUNT ( * ) * + - 36 * 67 * 25 * + 81
----
244214858

query II rowsort
SELECT 18, 87 AS col0
----
18
87

query II rowsort
SELECT ALL - - 51 AS col0, - 10 AS col1
----
51
-10

query II rowsort
SELECT + - 82, 45 + - 32 AS col2
----
-82
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT COALESCE ( + - COUNT( * ), + 16 * + COALESCE ( + - COUNT( * ), 87 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2803
SELECT COALESCE ( + - COUNT ( * ), + 16 * + COALESCE ( + - COUNT ( * ), 87 ) ) AS col2
----
-1

query I rowsort
SELECT - 34 - - 32 + - 13
----
-15

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

query I rowsort
SELECT - 8 * - 36 - + - 36 AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL 78 + CASE - 47 WHEN COUNT( * ) THEN COALESCE ( 49, 54 ) WHEN + 66 - - 67 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL 78 + CASE - 47 WHEN COUNT ( * ) THEN COALESCE ( 49, 54 ) WHEN + 66 - - 67 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 74 - + + 7
----
67

query I rowsort
SELECT ALL ( + 98 ) + 2 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2810
SELECT ALL + + 0, - 77 + + CASE - 49 WHEN + - ( COALESCE ( + - 18, - + 5 ) ) + - + 82 THEN 39 END + + 9 * + COUNT( + 24 ) * - + NULLIF ( 78, SUM( 63 ) * + 67 / 9 + - 53 + - 0 ) + - 2 - + 35 * - COUNT( * ) * - - ( - + CAST( NULL AS DECIMAL ) ) + AVG ( ALL - 40 ) * + + 25 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2810
SELECT ALL + + 0, - 77 + + CASE - 49 WHEN + - ( COALESCE ( + - 18, - + 5 ) ) + - + 82 THEN 39 END + + 9 * + COUNT ( + 24 ) * - + NULLIF ( 78, SUM ( 63 ) * + 67 / 9 + - 53 + - 0 ) + - 2 - + 35 * - COUNT ( * ) * - - ( - + CAST ( NULL AS REAL ) ) + AVG ( ALL - 40 ) * + + 25 AS col2
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT + COALESCE ( - - 76, + CAST( NULL AS SIGNED ) * - - 27 )
----
76

skipif mysql # not compatible
query I rowsort label-2811
SELECT + COALESCE ( - - 76, + CAST ( NULL AS INTEGER ) * - - 27 )
----
76

query II rowsort
SELECT - 69 col2, 17
----
-69
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL SUM( ALL 31 ) * - 12
----
-372

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL SUM ( ALL 31 ) * - 12
----
-372

query I rowsort
SELECT ALL + - 6 + + 83 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT - ( + 91 ) - + COALESCE ( - 80, - + NULLIF ( NULLIF ( - COUNT( * ), - - 68 ), - 66 ), + 25 ) * + 65 * + ( 57 ) + - - 51 AS col1
----
296360

skipif mysql # not compatible
query I rowsort label-2815
SELECT - ( + 91 ) - + COALESCE ( - 80, - + NULLIF ( NULLIF ( - COUNT ( * ), - - 68 ), - 66 ), + 25 ) * + 65 * + ( 57 ) + - - 51 AS col1
----
296360

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT ALL 80 + - ( - 50 ) + - - 42 * 70 * 41 * ( + 16 ) * - COUNT( * ) + 32 - 11 + - 83 AS col2, - CASE + 42 WHEN + 36 * 0 THEN + COUNT( * ) ELSE NULL END * - 28 * 5
----
-1928572
NULL

skipif mysql # not compatible
query II rowsort label-2816
SELECT ALL 80 + - ( - 50 ) + - - 42 * 70 * 41 * ( + 16 ) * - COUNT ( * ) + 32 - 11 + - 83 AS col2, - CASE + 42 WHEN + 36 * 0 THEN + COUNT ( * ) ELSE NULL END * - 28 * 5
----
-1928572
NULL

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

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

query II rowsort
SELECT 11, + 61 col1
----
11
61

query I rowsort
SELECT - 24 + + + 30 + - + 91 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - 7 + + + 57 * + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-2820
SELECT - 7 + + + 57 * + COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT ALL 13 - + CASE - CASE 73 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 9 THEN - 42 - + 85 + + 22 END WHEN + 6 + - 22 + NULLIF ( + + ( - COUNT( * ) ), - MAX( ALL 42 ) * COUNT( * ) * + 16 ) + 82 * - 27 * - 66 THEN + - 8 WHEN - 81 THEN NULL END * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL 13 - + CASE - CASE 73 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 9 THEN - 42 - + 85 + + 22 END WHEN + 6 + - 22 + NULLIF ( + + ( - COUNT ( * ) ), - MAX ( ALL 42 ) * COUNT ( * ) * + 16 ) + 82 * - 27 * - 66 THEN + - 8 WHEN - 81 THEN NULL END * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2822
SELECT ALL - 21 * + COUNT( * ) AS col2, 82
----
-21
82

skipif mysql # not compatible
query II rowsort label-2822
SELECT ALL - 21 * + COUNT ( * ) AS col2, 82
----
-21
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT ALL MAX( + 13 ), - 18 AS col1
----
13
-18

skipif mysql # not compatible
query II rowsort label-2824
SELECT ALL MAX ( + 13 ), - 18 AS col1
----
13
-18

query II rowsort
SELECT ALL - 30 * + + 92, + 19 * - 61 AS col1
----
-2760
-1159

query I rowsort
SELECT DISTINCT + 76 - + 68 * + + 33 * + 37
----
-82952

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2828
SELECT DISTINCT + 13 * - ( - COUNT( * ) ) DIV + + 49 DIV COUNT( 25 )
----
0

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT + 13 * - ( - COUNT ( * ) ) / + + 49 / COUNT ( 25 )
----
0

query I rowsort
SELECT - ( + 63 ) + - NULLIF ( + - 8, - - 77 ) AS col0
----
-55

query II rowsort
SELECT ( + 65 ) AS col1, + 23 * 84 * 6 AS col0
----
65
11592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT - 35 + + COUNT( * ) DIV - 14 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-2831
SELECT - 35 + + COUNT ( * ) / - 14 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2832
SELECT ALL + NULLIF ( - 17, - CAST( + - ( - 31 ) AS SIGNED ) ), + 46 * + COUNT( * ) + - ( 4 ) + - + COALESCE ( 85, + 9 + - + 81 ) + CASE - ( 16 ) WHEN - - 48 THEN 26 + ( + - 16 ) ELSE + 22 + - NULLIF ( 34, - 17 * - 99 * - COUNT( * ) ) END AS col1
----
-17
-55

skipif mysql # not compatible
query II rowsort label-2832
SELECT ALL + NULLIF ( - 17, - CAST ( + - ( - 31 ) AS INTEGER ) ), + 46 * + COUNT ( * ) + - ( 4 ) + - + COALESCE ( 85, + 9 + - + 81 ) + CASE - ( 16 ) WHEN - - 48 THEN 26 + ( + - 16 ) ELSE + 22 + - NULLIF ( 34, - 17 * - 99 * - COUNT ( * ) ) END AS col1
----
-17
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2833
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - CASE + + 22 WHEN - 45 + - ( CAST( + ( COUNT( * ) ) AS SIGNED ) ) - + - 84 THEN - NULLIF ( - 34, 54 ) WHEN + + COUNT( * ) THEN + 55 ELSE NULL END + - CAST( NULL AS SIGNED ) + + + 82 + 8 * - 28 * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - CASE + + 22 WHEN - 45 + - ( CAST ( + ( COUNT ( * ) ) AS INTEGER ) ) - + - 84 THEN - NULLIF ( - 34, 54 ) WHEN + + COUNT ( * ) THEN + 55 ELSE NULL END + - CAST ( NULL AS INTEGER ) + + + 82 + 8 * - 28 * 62
----
NULL

query I rowsort
SELECT ALL 34 * 44 + + 54
----
1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2835
SELECT + CASE + + 9 WHEN - - CAST( - 63 AS DECIMAL ) THEN NULL WHEN - - 76 THEN - 84 * + 11 * - 50 + - 79 * + - 84 / + CAST( NULL AS SIGNED ) + - COUNT( * ) END + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT + CASE + + 9 WHEN - - CAST ( - 63 AS REAL ) THEN NULL WHEN - - 76 THEN - 84 * + 11 * - 50 + - 79 * + - 84 / + CAST ( NULL AS INTEGER ) + - COUNT ( * ) END + 64
----
NULL

query I rowsort
SELECT ALL + 91 * 91 + - 4 * - ( - 85 )
----
7941

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2838
SELECT ALL - + COUNT( - + 23 ) * + - 97 * - 21 * - SUM( ALL + - 54 ) + + 34 + - 36 DIV + + 35 + + - 15 AS col2
----
-109980

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - + COUNT ( - + 23 ) * + - 97 * - 21 * - SUM ( ALL + - 54 ) + + 34 + - 36 / + + 35 + + - 15 AS col2
----
-109980

query I rowsort
SELECT - 34 * 92 + 12 + + - 89 * + - 14 * - 40 * + - 86 * - 70
----
-300039916

query I rowsort
SELECT + - 62 * - 18 - 1 * 67 AS col2
----
1049

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT + - MIN( 12 ) + - - ( - + 42 )
----
-54

skipif mysql # not compatible
query I rowsort label-2841
SELECT + - MIN ( 12 ) + - - ( - + 42 )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2842
SELECT ALL + 97 * CAST( NULL AS SIGNED ) - 46 + + 99 / 59 + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL + 97 * CAST ( NULL AS INTEGER ) - 46 + + 99 / 59 + 67 col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2844
SELECT ALL - 47 * - CAST( NULL AS SIGNED ) + + - AVG ( DISTINCT + + 79 ) + - - 59 AS col0, - 90 + - COUNT( * )
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-2844
SELECT ALL - 47 * - CAST ( NULL AS INTEGER ) + + - AVG ( DISTINCT + + 79 ) + - - 59 AS col0, - 90 + - COUNT ( * )
----
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT DISTINCT - 85 * + SUM( DISTINCT + 66 ) * - - 20
----
-112200

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT - 85 * + SUM ( DISTINCT + 66 ) * - - 20
----
-112200

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT ALL + + CASE 1 WHEN + + COUNT( * ) / - 94 THEN - + 28 END col1, + 16 + 78
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2846
SELECT ALL + + CASE 1 WHEN + + COUNT ( * ) / - 94 THEN - + 28 END col1, + 16 + 78
----
NULL
94

query I rowsort
SELECT + 95 + 1
----
96

query I rowsort
SELECT ALL 50 * - - 14 + + - 76
----
624

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2850
SELECT + SUM( - 75 ) AS col2, + COUNT( ALL 91 ) col1
----
-75
1

skipif mysql # not compatible
query II rowsort label-2850
SELECT + SUM ( - 75 ) AS col2, + COUNT ( ALL 91 ) col1
----
-75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + + 71 + - 66 + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-2851
SELECT + + 71 + - 66 + COUNT ( * )
----
6

query I rowsort
SELECT + NULLIF ( - + 42, + 14 )
----
-42

query I rowsort
SELECT DISTINCT 87 * + 60 AS col1
----
5220

query I rowsort
SELECT DISTINCT 38 * - 87 - NULLIF ( + 38, + 87 )
----
-3344

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT CASE - + COUNT( * ) WHEN + 13 THEN NULL WHEN ( - 72 ) THEN - - 66 * 90 WHEN COUNT( * ) + 92 THEN 27 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT CASE - + COUNT ( * ) WHEN + 13 THEN NULL WHEN ( - 72 ) THEN - - 66 * 90 WHEN COUNT ( * ) + 92 THEN 27 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 68, - - 2 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL MAX( DISTINCT - - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL MAX ( DISTINCT - - 51 )
----
51

query I rowsort
SELECT - 95 + - 97 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - 71 + + 16 + 1 * 81 * - 63 * - - COUNT( * ) * + COUNT( * ) * MIN( ALL + 52 )
----
-265411

skipif mysql # not compatible
query I rowsort label-2860
SELECT - 71 + + 16 + 1 * 81 * - 63 * - - COUNT ( * ) * + COUNT ( * ) * MIN ( ALL + 52 )
----
-265411

query I rowsort
SELECT ALL CASE 36 WHEN - + 31 THEN + + 63 END
----
NULL

query I rowsort
SELECT + 59 * + 68 AS col0
----
4012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2863
SELECT + COALESCE ( + 48, + 83 * + 74 + - 83 + - - CAST( NULL AS SIGNED ) ) - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-2863
SELECT + COALESCE ( + 48, + 83 * + 74 + - 83 + - - CAST ( NULL AS INTEGER ) ) - - COUNT ( * )
----
49

query I rowsort
SELECT - 23 * 85 * - ( 18 ) * 92 AS col0
----
3237480

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

query I rowsort
SELECT ALL - 27 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT - 11 DIV - + 30
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT - 11 / - + 30
----
0

query I rowsort
SELECT ALL 17 + 62 + + 53
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2869
SELECT DISTINCT CAST( NULL AS SIGNED ), 21 + - 89 AS col1
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-2869
SELECT DISTINCT CAST ( NULL AS INTEGER ), 21 + - 89 AS col1
----
NULL
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2870
SELECT 20 AS col0, - SUM( DISTINCT + CAST( - + 26 AS SIGNED ) ) AS col2
----
20
26

skipif mysql # not compatible
query II rowsort label-2870
SELECT 20 AS col0, - SUM ( DISTINCT + CAST ( - + 26 AS INTEGER ) ) AS col2
----
20
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL + + 15 * - CAST( - 89 AS SIGNED )
----
1335

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + + 15 * - CAST ( - 89 AS INTEGER )
----
1335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2873
SELECT 4 AS col1, - CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
4
-1

skipif mysql # not compatible
query II rowsort label-2873
SELECT 4 AS col1, - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
4
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL - AVG ( - 29 ) + + COALESCE ( + NULLIF ( + - 97, + 46 * + + 25 * + + 3 ), 99 * + + 76 ) + CAST( NULL AS SIGNED ) * 80 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - AVG ( - 29 ) + + COALESCE ( + NULLIF ( + - 97, + 46 * + + 25 * + + 3 ), 99 * + + 76 ) + CAST ( NULL AS INTEGER ) * 80 * 83
----
NULL

query I rowsort
SELECT DISTINCT + + 40 + + 26
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL + COUNT( * ) + + 56 * + 46 AS col2
----
2577

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + COUNT ( * ) + + 56 * + 46 AS col2
----
2577

query II rowsort
SELECT DISTINCT - 32, - 29 AS col1
----
-32
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL - NULLIF ( - 90, - 1 ) * + - 76 * COUNT( * )
----
-6840

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - NULLIF ( - 90, - 1 ) * + - 76 * COUNT ( * )
----
-6840

query I rowsort
SELECT ALL - 95 - - 55
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - COUNT( * ) - - 15
----
14

skipif mysql # not compatible
query I rowsort label-2881
SELECT - COUNT ( * ) - - 15
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT 3 * - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2882
SELECT 3 * - COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT - CASE - 66 WHEN - - SUM( DISTINCT - 50 ) - 16 + - 0 THEN NULL WHEN + COUNT( * ) + 7 THEN 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT - CASE - 66 WHEN - - SUM ( DISTINCT - 50 ) - 16 + - 0 THEN NULL WHEN + COUNT ( * ) + 7 THEN 28 END AS col0
----
NULL

query I rowsort
SELECT - 45 + + 98
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT + 39 * CAST( NULL AS SIGNED ) * - 31 + - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT + 39 * CAST ( NULL AS INTEGER ) * - 31 + - 64 AS col2
----
NULL

query II rowsort
SELECT 79 * CASE WHEN NOT NULL NOT BETWEEN - 65 AND NULL THEN - - 75 END / 66 + + 83 AS col2, - 20
----
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT - 76 - - + NULLIF ( + MIN( ALL 34 ), - 6 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - 76 - - + NULLIF ( + MIN ( ALL 34 ), - 6 ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2888
SELECT 98 - + MAX( + 65 ) DIV - 15 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-2888
SELECT 98 - + MAX ( + 65 ) / - 15 AS col1
----
102

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

query I rowsort
SELECT ALL 12 * + + ( + 22 )
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT 97 + - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2891
SELECT 97 + - COUNT ( * ) AS col0
----
96

query I rowsort
SELECT 4 * - 35 AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT 41 + - + MIN( DISTINCT + + 63 ) * + COUNT( * ) + - MIN( ALL 90 ) + - - 35
----
-77

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT 41 + - + MIN ( DISTINCT + + 63 ) * + COUNT ( * ) + - MIN ( ALL 90 ) + - - 35
----
-77

query I rowsort
SELECT 42 + + 77 col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL COUNT( * ) + + - 89 + - + MIN( DISTINCT - + 29 ) * - 52 + + + 86 + - 72 AS col0
----
-1582

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL COUNT ( * ) + + - 89 + - + MIN ( DISTINCT - + 29 ) * - 52 + + + 86 + - 72 AS col0
----
-1582

query I rowsort
SELECT 80 + - + ( 95 ) AS col0
----
-15

query I rowsort
SELECT - 14 + 55 AS col0
----
41

query I rowsort
SELECT - - CASE + 17 WHEN + 13 THEN + NULLIF ( 0, ( - 21 ) * - 46 + + - 1 * - - 79 ) * - 58 * + 82 * + 60 + 45 ELSE NULL END * - ( + 57 ) + + - 34 - ( - 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL + SUM( DISTINCT + - 7 ) + - NULLIF ( 96, + + 74 )
----
-103

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL + SUM ( DISTINCT + - 7 ) + - NULLIF ( 96, + + 74 )
----
-103

query I rowsort
SELECT + 54 * + 32 + 35
----
1763

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

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

query I rowsort
SELECT ALL - 15 * - 12 - 45 + + - 66 * - 20
----
1455

query II rowsort
SELECT ( + - 13 ) col0, CASE - 57 WHEN - CASE 4 WHEN 45 * + 76 THEN - 52 ELSE + 10 + + - 37 END THEN - - 30 * + 99 END + + + 0 * + 2
----
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT + COUNT( + + 60 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2904
SELECT + COUNT ( + + 60 ) col1
----
1

query I rowsort
SELECT + 21 * - - 82 + + 77 AS col0
----
1799

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT ALL - SUM( ALL 98 ) col2, COUNT( * ) + 83 col2
----
-98
84

skipif mysql # not compatible
query II rowsort label-2906
SELECT ALL - SUM ( ALL 98 ) col2, COUNT ( * ) + 83 col2
----
-98
84

query I rowsort
SELECT ALL - 0 * 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT MIN( ALL + 42 ) * 95
----
3990

skipif mysql # not compatible
query I rowsort label-2908
SELECT MIN ( ALL + 42 ) * 95
----
3990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT ALL - + CAST( - + 0 AS SIGNED ) * 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - + CAST ( - + 0 AS INTEGER ) * 38 AS col1
----
0

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

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

query I rowsort
SELECT ALL - 71 * + - 53 AS col1
----
3763

query I rowsort
SELECT 72 * 17 * + 24
----
29376

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT 8 + + - 54 * - COUNT( 46 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2913
SELECT 8 + + - 54 * - COUNT ( 46 ) AS col2
----
62

query II rowsort
SELECT 15, + 65 AS col2
----
15
65

query I rowsort
SELECT 14 * + 78 col2
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL MIN( 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL MIN ( 38 ) AS col0
----
38

query I rowsort
SELECT DISTINCT - COALESCE ( - 14, + 41 * + + 27 - 52 ) * 59
----
826

query I rowsort
SELECT 98 * + 91
----
8918

query I rowsort
SELECT 90 * + 54 * - 71 + + 95 col0
----
-344965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2920
SELECT DISTINCT CASE - 34 WHEN - + 41 THEN NULL WHEN + - 46 + - - 37 THEN + 68 ELSE - + 58 - - COUNT( * ) + + ( + 88 ) * - - 26 END DIV + 29 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT CASE - 34 WHEN - + 41 THEN NULL WHEN + - 46 + - - 37 THEN + 68 ELSE - + 58 - - COUNT ( * ) + + ( + 88 ) * - - 26 END / + 29 AS col1
----
76

query I rowsort
SELECT ALL 58 + + + 16 AS col2
----
74

query I rowsort
SELECT DISTINCT 17 * - + 47 AS col1
----
-799

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT 69 AS col1, CASE - 35 WHEN - + 7 THEN + NULLIF ( - 35, + 17 + 27 ) WHEN - - 20 * 2 + 2 + - SUM( - + 29 ) + - + 57 * 77 * + 62 * + 53 THEN - + COUNT( * ) ELSE NULL END
----
69
NULL

skipif mysql # not compatible
query II rowsort label-2923
SELECT 69 AS col1, CASE - 35 WHEN - + 7 THEN + NULLIF ( - 35, + 17 + 27 ) WHEN - - 20 * 2 + 2 + - SUM ( - + 29 ) + - + 57 * 77 * + 62 * + 53 THEN - + COUNT ( * ) ELSE NULL END
----
69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT COALESCE ( + 93, 52 * 34 + 68, + 49, - - ( - CAST( NULL AS SIGNED ) ) ) + + + 9 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-2924
SELECT COALESCE ( + 93, 52 * 34 + 68, + 49, - - ( - CAST ( NULL AS INTEGER ) ) ) + + + 9 AS col1
----
102

query I rowsort
SELECT ALL 22 + + 25 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT + 46 * + MIN( 66 )
----
3036

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 46 * + MIN ( 66 )
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT - CASE - 54 WHEN + 87 * + COALESCE ( 20 * - 81, 77 ) THEN NULL WHEN COUNT( * ) THEN + 78 + - 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT - CASE - 54 WHEN + 87 * + COALESCE ( 20 * - 81, 77 ) THEN NULL WHEN COUNT ( * ) THEN + 78 + - 77 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - MAX( - 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2928
SELECT - MAX ( - 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL + 92 + COALESCE ( 15, 78 * + ( + COUNT( DISTINCT + 82 ) ) )
----
107

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + 92 + COALESCE ( 15, 78 * + ( + COUNT ( DISTINCT + 82 ) ) )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL 10 - - NULLIF ( - ( 72 ), COUNT( * ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL 10 - - NULLIF ( - ( 72 ), COUNT ( * ) ) AS col2
----
-62

query I rowsort
SELECT ALL 68 - - 60 AS col0
----
128

query I rowsort
SELECT DISTINCT - 74 - + 33 * 33
----
-1163

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + MAX( DISTINCT 37 ) * 88 col1
----
3256

skipif mysql # not compatible
query I rowsort label-2933
SELECT + MAX ( DISTINCT 37 ) * 88 col1
----
3256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2934
SELECT CASE - 92 WHEN - CAST( 26 AS DECIMAL ) * + NULLIF ( - 47, - COUNT( * ) / + 40 + + COUNT( * ) * + 30 ) THEN 41 WHEN - COUNT( * ) * - CAST( - 60 * COUNT( * ) AS SIGNED ) THEN 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT CASE - 92 WHEN - CAST ( 26 AS REAL ) * + NULLIF ( - 47, - COUNT ( * ) / + 40 + + COUNT ( * ) * + 30 ) THEN 41 WHEN - COUNT ( * ) * - CAST ( - 60 * COUNT ( * ) AS INTEGER ) THEN 14 END AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( 56, - ( - 34 ) ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2936
SELECT CASE + 93 WHEN 83 THEN NULL ELSE - COUNT( * ) DIV 98 + - 43 END AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2936
SELECT CASE + 93 WHEN 83 THEN NULL ELSE - COUNT ( * ) / 98 + - 43 END AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT CASE 34 WHEN ( - 92 ) THEN 44 WHEN - COUNT( ALL - 94 ) + + 75 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT CASE 34 WHEN ( - 92 ) THEN 44 WHEN - COUNT ( ALL - 94 ) + + 75 THEN NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT - NULLIF ( - 4, + 15 ) * 33
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + CASE - 45 WHEN - 43 / 3 - 27 THEN 94 * - CASE 61 WHEN 27 - + 92 * + COUNT( * ) THEN - 42 WHEN - COUNT( * ) / - 20 THEN NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT + CASE - 45 WHEN - 43 / 3 - 27 THEN 94 * - CASE 61 WHEN 27 - + 92 * + COUNT ( * ) THEN - 42 WHEN - COUNT ( * ) / - 20 THEN NULL END END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + 70, 95 ) AS col0
----
70

query I rowsort
SELECT DISTINCT 44 * + 53 AS col1
----
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + CASE COUNT( * ) WHEN - 77 + 46 * + 31 THEN - 25 * 11 - + MAX( - 46 ) END * - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT + CASE COUNT ( * ) WHEN - 77 + 46 * + 31 THEN - 25 * 11 - + MAX ( - 46 ) END * - 50 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT ALL + NULLIF ( - CAST( 78 AS SIGNED ), AVG ( 52 ) + 44 ) * + 81
----
-6318

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + NULLIF ( - CAST ( 78 AS INTEGER ), AVG ( 52 ) + 44 ) * + 81
----
-6318

query I rowsort
SELECT + ( - 31 ) - - 42 col0
----
11

query I rowsort
SELECT DISTINCT 8 * - 20
----
-160

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

query I rowsort
SELECT ALL 43 * 71
----
3053

query I rowsort
SELECT + 25 + + 93 AS col1
----
118

query I rowsort
SELECT - 30 * 5 col0
----
-150

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

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

query I rowsort
SELECT ALL + 13 * 1 + 48
----
61

query I rowsort
SELECT 4 * - COALESCE ( 3, 1 ) + + 62 * + 65 AS col1
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL 81 * 16 + COUNT( * ) col0
----
1297

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL 81 * 16 + COUNT ( * ) col0
----
1297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2955
SELECT DISTINCT + COALESCE ( - MAX( DISTINCT 38 ), 67 + + 64, - 91 * - NULLIF ( 51, + 86 * MAX( 36 ) ), + 14 DIV 91 + NULLIF ( 71, 68 ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT + COALESCE ( - MAX ( DISTINCT 38 ), 67 + + 64, - 91 * - NULLIF ( 51, + 86 * MAX ( 36 ) ), + 14 / 91 + NULLIF ( 71, 68 ) ) AS col1
----
-38

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

skipif mysql # not compatible
query I rowsort label-2956
SELECT - 71 + - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT ALL + ( + 69 ) * NULLIF ( 0 * 70, 24 ) + 57 AS col1
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL + COUNT( * ) + - 84 * 85 AS col2
----
-7139

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + COUNT ( * ) + - 84 * 85 AS col2
----
-7139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2960
SELECT - 64 - - CASE + 36 WHEN + CAST( NULL AS SIGNED ) - - 13 THEN NULL ELSE NULLIF ( + CASE - 8 WHEN COUNT( * ) THEN COUNT( * ) END, 77 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT - 64 - - CASE + 36 WHEN + CAST ( NULL AS INTEGER ) - - 13 THEN NULL ELSE NULLIF ( + CASE - 8 WHEN COUNT ( * ) THEN COUNT ( * ) END, 77 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 7, 40 + - 65 )
----
7

query I rowsort
SELECT DISTINCT + ( COALESCE ( - 98, 63 ) ) + - 77
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL - MAX( + ( - 91 ) ) + 56 * + 7
----
483

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - MAX ( + ( - 91 ) ) + 56 * + 7
----
483

query I rowsort
SELECT ALL + 5 + 8
----
13

query I rowsort
SELECT - 28 + + 64 * - 2 AS col0
----
-156

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

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

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

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + COUNT ( ( - 12 ) ) * 11 AS col2
----
11

query I rowsort
SELECT - 5 + 20
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT DISTINCT CAST( 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT CAST ( 33 AS INTEGER )
----
33

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

query I rowsort
SELECT ALL + - 17 - 22
----
-39

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

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

query I rowsort
SELECT ALL + 59 - 87 AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT DISTINCT + 1 DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + 1 / - 14
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT DISTINCT CAST( - SUM( 38 ) AS SIGNED ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT CAST ( - SUM ( 38 ) AS INTEGER ) AS col2
----
-38

query I rowsort
SELECT + 23 + - 40 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - SUM( 37 ) * - 75 AS col0
----
2775

skipif mysql # not compatible
query I rowsort label-2977
SELECT - SUM ( 37 ) * - 75 AS col0
----
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT + NULLIF ( - MAX( DISTINCT - 91 ), 30 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2978
SELECT + NULLIF ( - MAX ( DISTINCT - 91 ), 30 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT - COUNT( - 66 ) * 32
----
-32

skipif mysql # not compatible
query I rowsort label-2979
SELECT - COUNT ( - 66 ) * 32
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT DISTINCT 24 * + MAX( DISTINCT CASE 17 WHEN 23 + 22 * ( CAST( NULL AS SIGNED ) ) THEN - ( - 10 ) ELSE NULL END * + ( 31 ) + + ( 89 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT 24 * + MAX ( DISTINCT CASE 17 WHEN 23 + 22 * ( CAST ( NULL AS INTEGER ) ) THEN - ( - 10 ) ELSE NULL END * + ( 31 ) + + ( 89 ) ) AS col0
----
NULL

query I rowsort
SELECT - + 2 + - 47 AS col0
----
-49

query I rowsort
SELECT ALL - 33 * 60
----
-1980

query I rowsort
SELECT + - 65 * - 21 + + 22 AS col2
----
1387

query I rowsort
SELECT ALL 51 * 63 AS col1
----
3213

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT 36 * NULLIF ( CASE - 11 WHEN - 75 - COUNT( * ) THEN + 97 ELSE NULL END + - 20, + COUNT( - 15 ) ) + - 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT 36 * NULLIF ( CASE - 11 WHEN - 75 - COUNT ( * ) THEN + 97 ELSE NULL END + - 20, + COUNT ( - 15 ) ) + - 52 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2986
SELECT DISTINCT 74 DIV - 57 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT 74 / - 57 + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT ALL - 15 / 60 + + CAST( NULL AS SIGNED ) / 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - 15 / 60 + + CAST ( NULL AS INTEGER ) / 15 col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT + ( - 5 ) DIV - ( - 74 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT + ( - 5 ) / - ( - 74 ) AS col0
----
0

query I rowsort
SELECT - 58 * + - 2 + + 52
----
168

query I rowsort
SELECT + ( - 78 ) * 38 AS col2
----
-2964

query I rowsort
SELECT ( + COALESCE ( + 94, 94 ) )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT ALL - COALESCE ( + AVG ( + 68 ), - 53 ) / + CASE + CAST( + ( + COUNT( * ) ) AS SIGNED ) * - 83 WHEN + 61 + + 81 THEN 42 + - 63 WHEN CASE 57 WHEN 6 THEN SUM( DISTINCT 61 ) + + 10 END THEN NULL WHEN + 2 THEN + 27 * + 77 END + 6 * AVG ( - 86 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL - COALESCE ( + AVG ( + 68 ), - 53 ) / + CASE + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * - 83 WHEN + 61 + + 81 THEN 42 + - 63 WHEN CASE 57 WHEN 6 THEN SUM ( DISTINCT 61 ) + + 10 END THEN NULL WHEN + 2 THEN + 27 * + 77 END + 6 * AVG ( - 86 ) col2
----
NULL

query I rowsort
SELECT 99 * 51 + + 9
----
5058

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL ( + - 80 ) * - CASE - 49 + COUNT( * ) WHEN - 55 THEN NULL WHEN ( - MAX( ALL 96 ) ) THEN MAX( DISTINCT - 80 ) + + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL ( + - 80 ) * - CASE - 49 + COUNT ( * ) WHEN - 55 THEN NULL WHEN ( - MAX ( ALL 96 ) ) THEN MAX ( DISTINCT - 80 ) + + 32 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2996
SELECT + 95 / + - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL - 2 * 19 + + COUNT( * ) * + 88
----
50

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL - 2 * 19 + + COUNT ( * ) * + 88
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT NULLIF ( 71, 95 + 37 * + 37 ) DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT NULLIF ( 71, 95 + 37 * + 37 ) / - 58
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2999
SELECT DISTINCT + COUNT( ALL 7 ) * CAST( + 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + COUNT ( ALL 7 ) * CAST ( + 59 AS INTEGER )
----
59

query I rowsort
SELECT DISTINCT - 27 * + 37 AS col2
----
-999

query I rowsort
SELECT CASE 27 WHEN - 77 * 7 + - 60 THEN 43 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT - 41 * + - 48 AS col0
----
1968

query I rowsort
SELECT ( - ( - 17 ) ) * - 10 AS col1
----
-170

query I rowsort
SELECT 67 + - 11 + - 33
----
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT ALL + 72 * - - 55 DIV 55
----
72

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + 72 * - - 55 / 55
----
72

query I rowsort
SELECT + 16 + - - 83 * - 22
----
-1810

query I rowsort
SELECT ALL + COALESCE ( + 54, + 5, - 52 ) - 78
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT COUNT( * ) * - 78 DIV 37 - 22 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3010
SELECT COUNT ( * ) * - 78 / 37 - 22 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT NULLIF ( COUNT( * ), - ( + COALESCE ( - 59, + COALESCE ( - ( + 21 ), 34 + 29 * COUNT( * ), + 40 * - CASE NULLIF ( + MIN( ALL - 45 ), + 6 ) WHEN 49 THEN NULL WHEN 46 * + 56 THEN NULL ELSE 72 END ) + - 89 * + COUNT( * ), - 88 ) ) ) * - 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3011
SELECT NULLIF ( COUNT ( * ), - ( + COALESCE ( - 59, + COALESCE ( - ( + 21 ), 34 + 29 * COUNT ( * ), + 40 * - CASE NULLIF ( + MIN ( ALL - 45 ), + 6 ) WHEN 49 THEN NULL WHEN 46 * + 56 THEN NULL ELSE 72 END ) + - 89 * + COUNT ( * ), - 88 ) ) ) * - 80 AS col1
----
-80

query I rowsort
SELECT DISTINCT + 95 * + 54
----
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT + 78 * MIN( ALL + 30 ) AS col1
----
2340

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + 78 * MIN ( ALL + 30 ) AS col1
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT COUNT( ALL - 89 ) - - 10 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3014
SELECT COUNT ( ALL - 89 ) - - 10 AS col1
----
11

query I rowsort
SELECT DISTINCT + ( - - 81 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL CASE + + 65 WHEN 98 THEN NULL WHEN - 81 + 22 THEN - 4 * - ( - 63 ) ELSE NULL END / + COUNT( DISTINCT + 0 * 13 + + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL CASE + + 65 WHEN 98 THEN NULL WHEN - 81 + 22 THEN - 4 * - ( - 63 ) ELSE NULL END / + COUNT ( DISTINCT + 0 * 13 + + 64 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT ALL - 96 + - + 6 DIV - ( 30 + - COUNT( * ) )
----
-96

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - 96 + - + 6 / - ( 30 + - COUNT ( * ) )
----
-96

query I rowsort
SELECT + 32 * + 63
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT SUM( - - 34 ) * - 65
----
-2210

skipif mysql # not compatible
query I rowsort label-3019
SELECT SUM ( - - 34 ) * - 65
----
-2210

query I rowsort
SELECT ALL + - 84 + + 88 * 55
----
4756

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT + + 3 DIV + - ( + 39 ) - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3021
SELECT + + 3 / + - ( + 39 ) - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - COALESCE ( - 91, + COUNT( * ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3022
SELECT - COALESCE ( - 91, + COUNT ( * ) ) AS col1
----
91

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

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

query I rowsort
SELECT ALL 7 + - - 65 + - - 97 - ( - 4 ) AS col2
----
173

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL + COUNT( * ) + NULLIF ( ( + 16 ), 35 - - 3 ) * + COUNT( 85 )
----
17

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL + COUNT ( * ) + NULLIF ( ( + 16 ), 35 - - 3 ) * + COUNT ( 85 )
----
17

query II rowsort
SELECT DISTINCT - 94, 38 - + 30 AS col2
----
-94
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL MIN( DISTINCT 77 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL MIN ( DISTINCT 77 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT COUNT( * ) + - 8 col0
----
-7

skipif mysql # not compatible
query I rowsort label-3029
SELECT COUNT ( * ) + - 8 col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT ALL CAST( NULL AS SIGNED ) - NULLIF ( + - CASE ( ( - 29 ) ) WHEN NULLIF ( AVG ( + 12 ), ( + 20 ) ) + - 35 THEN 23 - - 15 ELSE NULL END, 22 + + 60 / - 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL CAST ( NULL AS INTEGER ) - NULLIF ( + - CASE ( ( - 29 ) ) WHEN NULLIF ( AVG ( + 12 ), ( + 20 ) ) + - 35 THEN 23 - - 15 ELSE NULL END, 22 + + 60 / - 44 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT 50 AS col0, MIN( DISTINCT + - 49 ) AS col2
----
50
-49

skipif mysql # not compatible
query II rowsort label-3031
SELECT 50 AS col0, MIN ( DISTINCT + - 49 ) AS col2
----
50
-49

query II rowsort
SELECT 85 AS col2, - 69
----
85
-69

query I rowsort
SELECT 38 * + 78
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT - ( COUNT( * ) ) * + 19 + - 13 * + 84 AS col1
----
-1111

skipif mysql # not compatible
query I rowsort label-3034
SELECT - ( COUNT ( * ) ) * + 19 + - 13 * + 84 AS col1
----
-1111

query I rowsort
SELECT ALL 93 - NULLIF ( - 20, + 60 * 90 + - 5 )
----
113

query II rowsort
SELECT + 65, + 41 AS col0
----
65
41

query I rowsort
SELECT 51 + - 39 col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT ALL 63 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL 63 / - 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3039
SELECT 57 DIV - + 93 DIV + NULLIF ( + COUNT( * ), NULLIF ( + 22, + 67 ) * 34 - - 81 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT 57 / - + 93 / + NULLIF ( + COUNT ( * ), NULLIF ( + 22, + 67 ) * 34 - - 81 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL COALESCE ( + COUNT( * ), - - 92 * + 95, + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL COALESCE ( + COUNT ( * ), - - 92 * + 95, + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL - SUM( - 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - SUM ( - 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + 31 * ( COUNT( * ) ) * 70
----
2170

skipif mysql # not compatible
query I rowsort label-3042
SELECT + 31 * ( COUNT ( * ) ) * 70
----
2170

query II rowsort
SELECT + 61 AS col0, 76
----
61
76

query I rowsort
SELECT + ( 99 ) + + - 23 col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3045
SELECT 72 DIV + 39 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3045
SELECT 72 / + 39 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT 31 + + 5 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT 31 + + 5 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 + + 19 * - 43 AS col1
----
-799

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

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

query I rowsort
SELECT - 71 + 26 + + 7 - + 54 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3050
SELECT ALL - 8, - CAST( + 99 AS SIGNED ) AS col0
----
-8
-99

skipif mysql # not compatible
query II rowsort label-3050
SELECT ALL - 8, - CAST ( + 99 AS INTEGER ) AS col0
----
-8
-99

query I rowsort
SELECT DISTINCT - + 24 + 10 col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT 68 + - + 38 * COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT 68 + - + 38 * COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT - 83 * COUNT( ALL - 38 ) + 24
----
-59

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - 83 * COUNT ( ALL - 38 ) + 24
----
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT - + COUNT( - 69 ) + + 99 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - + COUNT ( - 69 ) + + 99 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + COUNT( * ) + + 23 + 74 * + 15 * 21 AS col2
----
23334

skipif mysql # not compatible
query I rowsort label-3056
SELECT + COUNT ( * ) + + 23 + 74 * + 15 * 21 AS col2
----
23334

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL SUM( DISTINCT - - 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL SUM ( DISTINCT - - 41 ) col0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT COUNT( ALL + 51 ) + + 86 - + 82 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3059
SELECT COUNT ( ALL + 51 ) + + 86 - + 82 AS col0
----
5

query I rowsort
SELECT - 96 + - 99 - - - 38 + 94 * + 77
----
7005

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT SUM( DISTINCT + 10 ) - + 27 * 27
----
-719

skipif mysql # not compatible
query I rowsort label-3061
SELECT SUM ( DISTINCT + 10 ) - + 27 * 27
----
-719

query I rowsort
SELECT ALL - 14 * - - 62 + + 96 * - 9 col2
----
-1732

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT DISTINCT - 70 * + 28 + - CAST( NULL AS SIGNED ) + + COALESCE ( - 79, + 85 ) / - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT - 70 * + 28 + - CAST ( NULL AS INTEGER ) + + COALESCE ( - 79, + 85 ) / - 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT COALESCE ( - + 33, 23 * 50 + + COALESCE ( + 19, - ( - ( + CASE - 76 WHEN 76 THEN 32 DIV 13 END ) ), 64 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3065
SELECT COALESCE ( - + 33, 23 * 50 + + COALESCE ( + 19, - ( - ( + CASE - 76 WHEN 76 THEN 32 / 13 END ) ), 64 ) ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3066
SELECT - NULLIF ( + - 15, ( - COALESCE ( 4, 94 * 22 + + ( - 56 + - COUNT( * ) * 99 ) * 65, 0 + + CASE + 11 WHEN + 36 THEN ( 13 ) DIV + 25 WHEN - 18 - 47 THEN CASE - CAST( NULL AS DECIMAL ) WHEN 11 THEN - 9 * 37 ELSE NULL END WHEN 70 * 18 THEN - 52 * 61 ELSE NULL END * ( + CASE - CAST( 29 AS SIGNED ) WHEN 34 + - MIN( 51 ) THEN NULL WHEN + 78 + + ( 22 ) THEN - 91 + 19 WHEN 6 + + CAST( NULL AS SIGNED ) DIV - 91 THEN NULL END ), 34 * - 4 ) ) ) DIV 91 + + COUNT( * ) * + 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3066
SELECT - NULLIF ( + - 15, ( - COALESCE ( 4, 94 * 22 + + ( - 56 + - COUNT ( * ) * 99 ) * 65, 0 + + CASE + 11 WHEN + 36 THEN ( 13 ) / + 25 WHEN - 18 - 47 THEN CASE - CAST ( NULL AS REAL ) WHEN 11 THEN - 9 * 37 ELSE NULL END WHEN 70 * 18 THEN - 52 * 61 ELSE NULL END * ( + CASE - CAST ( 29 AS INTEGER ) WHEN 34 + - MIN ( 51 ) THEN NULL WHEN + 78 + + ( 22 ) THEN - 91 + 19 WHEN 6 + + CAST ( NULL AS INTEGER ) / - 91 THEN NULL END ), 34 * - 4 ) ) ) / 91 + + COUNT ( * ) * + 99 AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3067
SELECT ALL - 82 DIV + 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL - 82 / + 68 AS col0
----
-1

query I rowsort
SELECT - 42 + + 67 + - 20 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT - 53 / COUNT( - 49 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT - 53 / COUNT ( - 49 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3070
SELECT - 29 * - - MAX( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT - 29 * - - MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 58 * + - 8 * + 60 AS col2
----
-27840

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

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

query I rowsort
SELECT - 99 * 2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT 11 * - - MIN( ALL 55 ) AS col0
----
605

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT 11 * - - MIN ( ALL 55 ) AS col0
----
605

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT ALL + COALESCE ( - ( 14 ), + ( + COUNT( * ) ), - COUNT( * ) + ( CAST( + COUNT( * ) AS SIGNED ) ) * NULLIF ( 32, + 48 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + COALESCE ( - ( 14 ), + ( + COUNT ( * ) ), - COUNT ( * ) + ( CAST ( + COUNT ( * ) AS INTEGER ) ) * NULLIF ( 32, + 48 ) )
----
-14

query II rowsort
SELECT + - 89 + + 24 col1, 67 * + COALESCE ( 11, 16 ) * 45
----
-65
33165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT ALL + 9 + + CAST( NULL AS SIGNED ) * - - 43 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL + 9 + + CAST ( NULL AS INTEGER ) * - - 43 + 98
----
NULL

query I rowsort
SELECT + ( + + 37 ) col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3082
SELECT ALL ( COUNT( ALL + - 67 ) ) + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) - - ( - 61 ) / + 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL ( COUNT ( ALL + - 67 ) ) + MAX ( DISTINCT CAST ( NULL AS REAL ) ) - - ( - 61 ) / + 14 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT CAST( 0 AS SIGNED ) + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT CAST ( 0 AS INTEGER ) + - 49
----
-49

query I rowsort
SELECT ALL 31 + - - 58 AS col1
----
89

query I rowsort
SELECT + 1 + 88
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT + - 90 * + MIN( - + 73 ) + 49 AS col2
----
6619

skipif mysql # not compatible
query I rowsort label-3086
SELECT + - 90 * + MIN ( - + 73 ) + 49 AS col2
----
6619

query I rowsort
SELECT ALL 75 * - + 7 * - 94 AS col0
----
49350

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT + COALESCE ( + 58, + NULLIF ( + - COUNT( * ), 61 + + COUNT( - 10 ) ), - 9 ) * - 68 AS col0
----
-3944

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + COALESCE ( + 58, + NULLIF ( + - COUNT ( * ), 61 + + COUNT ( - 10 ) ), - 9 ) * - 68 AS col0
----
-3944

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT 94 AS col0, NULLIF ( 65, - 51 * + - MIN( - 91 ) ) AS col1
----
94
65

skipif mysql # not compatible
query II rowsort label-3090
SELECT 94 AS col0, NULLIF ( 65, - 51 * + - MIN ( - 91 ) ) AS col1
----
94
65

query I rowsort
SELECT - 48 * + + 43
----
-2064

query I rowsort
SELECT ALL - ( - 92 ) * - + 59 * - 70
----
379960

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + 53 - - + ( 29 ) - + COUNT( * ) + + 61 + - 84 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 53 - - + ( 29 ) - + COUNT ( * ) + + 61 + - 84 AS col1
----
58

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

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

query I rowsort
SELECT ALL - 78 * + 34
----
-2652

query I rowsort
SELECT + 30 - + 33 + + - 88 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT - 35 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-3097
SELECT - 35 / 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT - 60 * 43 * + - 83 * + CASE + COUNT( DISTINCT 18 ) WHEN + 72 THEN + 25 WHEN 65 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT - 60 * 43 * + - 83 * + CASE + COUNT ( DISTINCT 18 ) WHEN + 72 THEN + 25 WHEN 65 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT DISTINCT + MAX( + ( 97 ) ) AS col2, - 8 + - 84 + 6
----
97
-86

skipif mysql # not compatible
query II rowsort label-3099
SELECT DISTINCT + MAX ( + ( 97 ) ) AS col2, - 8 + - 84 + 6
----
97
-86

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

skipif mysql # not compatible
query I rowsort label-3100
SELECT - 0 / COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ( + COALESCE ( + - 96, + 37 ) )
----
-96

query II rowsort
SELECT ALL + 22 AS col2, - ( + 85 )
----
22
-85

query I rowsort
SELECT - 76 - - 99 AS col1
----
23

query I rowsort
SELECT - 22 + + 4 col2
----
-18

query I rowsort
SELECT - 46 * + ( - + 27 ) * 22
----
27324

query II rowsort
SELECT DISTINCT + 18 col1, 52
----
18
52

query II rowsort
SELECT - + 35 + ( + 19 ) AS col1, 23
----
-16
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT + COUNT( ALL + 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3108
SELECT + COUNT ( ALL + 44 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT 60 * - + COUNT( DISTINCT 37 ) + + 66 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3109
SELECT 60 * - + COUNT ( DISTINCT 37 ) + + 66 AS col0
----
6

query I rowsort
SELECT ALL - ( - 74 ) * 48 AS col2
----
3552

query I rowsort
SELECT + CASE - 76 WHEN + - 46 THEN NULL ELSE - 23 END * ( + 83 ) + ( - 54 + 23 ) AS col0
----
-1940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL - CAST( + 35 AS SIGNED ) * + 42 + + COUNT( * ) AS col0
----
-1469

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - CAST ( + 35 AS INTEGER ) * + 42 + + COUNT ( * ) AS col0
----
-1469

query I rowsort
SELECT DISTINCT - NULLIF ( + 30, - - 49 + - ( + 46 ) ) * 51 AS col1
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT + COUNT( * ) * + + 7 * - - 57 + - 36 AS col2
----
363

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + COUNT ( * ) * + + 7 * - - 57 + - 36 AS col2
----
363

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3116
SELECT + 46, CAST( + - 90 AS SIGNED ) + - CAST( NULL AS DECIMAL ) + - AVG ( 56 ) + 26 col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-3116
SELECT + 46, CAST ( + - 90 AS INTEGER ) + - CAST ( NULL AS REAL ) + - AVG ( 56 ) + 26 col1
----
46
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3117
SELECT ALL - + SUM( ALL - 58 ) * - + 96 col2, COUNT( * ) - + - 35 * + COALESCE ( + 98 DIV - 30, 40 )
----
-5568
-104

skipif mysql # not compatible
query II rowsort label-3117
SELECT ALL - + SUM ( ALL - 58 ) * - + 96 col2, COUNT ( * ) - + - 35 * + COALESCE ( + 98 / - 30, 40 )
----
-5568
-104

query I rowsort
SELECT + ( + + ( NULLIF ( - 97, - 37 * 48 ) ) ) + + 93
----
-4

query I rowsort
SELECT DISTINCT - 56 * 28 col1
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT ( - 45 ) * + COUNT( - 27 ) + 99
----
54

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT ( - 45 ) * + COUNT ( - 27 ) + 99
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - MIN( 79 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-3121
SELECT - MIN ( 79 ) col1
----
-79

query I rowsort
SELECT ALL + + 70 * 75 * + 87 * + 18 + - 3 + 15 * - 43 + NULLIF ( + 85, + 99 )
----
8220937

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT - 20 AS col0, COUNT( * ) + + 48 + - 98 AS col1
----
-20
-49

skipif mysql # not compatible
query II rowsort label-3123
SELECT - 20 AS col0, COUNT ( * ) + + 48 + - 98 AS col1
----
-20
-49

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

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

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

query I rowsort
SELECT - - 27 col0
----
27

query I rowsort
SELECT DISTINCT + 40 * - 4 AS col2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL ( + 35 ) - + CASE - + 42 WHEN - - 32 THEN - MIN( ALL 17 ) * MAX( DISTINCT 25 + - 79 ) + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL ( + 35 ) - + CASE - + 42 WHEN - - 32 THEN - MIN ( ALL 17 ) * MAX ( DISTINCT 25 + - 79 ) + 88 END
----
NULL

query I rowsort
SELECT + 5 * 49 AS col0
----
245

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT ALL 75 DIV - 5
----
-15

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL 75 / - 5
----
-15

query I rowsort
SELECT + 66 + 24
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT 36 * COUNT( * ) * 30 AS col1
----
1080

skipif mysql # not compatible
query I rowsort label-3132
SELECT 36 * COUNT ( * ) * 30 AS col1
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT - 26, - SUM( ALL 26 )
----
-26
-26

skipif mysql # not compatible
query II rowsort label-3133
SELECT - 26, - SUM ( ALL 26 )
----
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL 48 * + COUNT( - + 44 ) * COUNT( - 70 ) * - - 99
----
4752

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL 48 * + COUNT ( - + 44 ) * COUNT ( - 70 ) * - - 99
----
4752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT NULLIF ( - 88, + 1 ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT NULLIF ( - 88, + 1 ) / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3136
SELECT ALL 83 AS col2, + 18 DIV + 57 AS col0
----
83
0

skipif mysql # not compatible
query II rowsort label-3136
SELECT ALL 83 AS col2, + 18 / + 57 AS col0
----
83
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT CAST( - - 61 AS SIGNED ) - - 54 * + 25 + + 31
----
1442

skipif mysql # not compatible
query I rowsort label-3137
SELECT CAST ( - - 61 AS INTEGER ) - - 54 * + 25 + + 31
----
1442

query I rowsort
SELECT 61 * - 80 * + - 14 AS col2
----
68320

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT 32 + - - 51 - - CASE - + 31 WHEN - - 24 THEN + 75 + - 88 / - 79 ELSE NULL END + 0 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT 32 + - - 51 - - CASE - + 31 WHEN - - 24 THEN + 75 + - 88 / - 79 ELSE NULL END + 0 / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3140
SELECT ALL - COUNT( * ) AS col1, + CASE - + 27 WHEN + 2 - - 53 THEN + - 37 / - 78 + ( - 6 ) * 37 WHEN - 99 THEN 82 * + 29 END + COUNT( * )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3140
SELECT ALL - COUNT ( * ) AS col1, + CASE - + 27 WHEN + 2 - - 53 THEN + - 37 / - 78 + ( - 6 ) * 37 WHEN - 99 THEN 82 * + 29 END + COUNT ( * )
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3141
SELECT - ( 8 ) * + + 55 + COUNT( ALL 43 ) + + 7 + - 48 DIV - 99 AS col2
----
-432

skipif mysql # not compatible
query I rowsort label-3141
SELECT - ( 8 ) * + + 55 + COUNT ( ALL 43 ) + + 7 + - 48 / - 99 AS col2
----
-432

query II rowsort
SELECT ALL - 77 AS col2, 26
----
-77
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT ALL - COUNT( * ) AS col1, 21 + - 71
----
-1
-50

skipif mysql # not compatible
query II rowsort label-3143
SELECT ALL - COUNT ( * ) AS col1, 21 + - 71
----
-1
-50

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3145
SELECT 67 + + MIN( - ( - 13 ) ), 21 + + 94 AS col1
----
80
115

skipif mysql # not compatible
query II rowsort label-3145
SELECT 67 + + MIN ( - ( - 13 ) ), 21 + + 94 AS col1
----
80
115

query I rowsort
SELECT NULLIF ( - 92, + 31 + - 99 ) * - 3
----
276

query I rowsort
SELECT 77 + - + 64 + - 60 AS col0
----
-47

query I rowsort
SELECT ALL 34 + 47 * - 43 col2
----
-1987

query II rowsort
SELECT 14 AS col2, + 37 AS col2
----
14
37

query I rowsort
SELECT ALL - 84 + - NULLIF ( - 54, - 35 * - 65 )
----
-30

query I rowsort
SELECT DISTINCT + 29 + - 13
----
16

query I rowsort
SELECT DISTINCT 40 + + 70 + + 45 AS col0
----
155

query I rowsort
SELECT DISTINCT + ( - 86 ) + - + 78
----
-164

query II rowsort
SELECT DISTINCT - 51 * + 27 + + 17 * - 65 col2, + 63 * 19
----
-2482
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL + + 55 + - - NULLIF ( + COALESCE ( - + NULLIF ( 13, SUM( DISTINCT 69 ) ), - 91 + 37 ), - 81 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + + 55 + - - NULLIF ( + COALESCE ( - + NULLIF ( 13, SUM ( DISTINCT 69 ) ), - 91 + 37 ), - 81 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT 93 * - - 27 + - COUNT( + CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) )
----
2511

skipif mysql # not compatible
query I rowsort label-3156
SELECT 93 * - - 27 + - COUNT ( + CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) )
----
2511

query II rowsort
SELECT ALL - - 34 col0, 55 AS col2
----
34
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT 86 / + COALESCE ( 65, + + 33 - - - 48 ) + + CAST( NULL AS SIGNED ) * + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT 86 / + COALESCE ( 65, + + 33 - - - 48 ) + + CAST ( NULL AS INTEGER ) * + 50 AS col0
----
NULL

query I rowsort
SELECT ALL + 68 + - ( - 75 )
----
143

query I rowsort
SELECT 73 * - 39 * - 70 + + 58 AS col1
----
199348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT COUNT( * ) * + 32 + + 89 + + - CASE 65 WHEN - 72 THEN NULL ELSE + 60 + 20 END + COUNT( DISTINCT 27 ) * - 27 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT COUNT ( * ) * + 32 + + 89 + + - CASE 65 WHEN - 72 THEN NULL ELSE + 60 + 20 END + COUNT ( DISTINCT 27 ) * - 27 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3163
SELECT 1 AS col2, 96 DIV 65 AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3163
SELECT 1 AS col2, 96 / 65 AS col1
----
1
1

query II rowsort
SELECT ALL 98, - 15 AS col1
----
98
-15

query II rowsort
SELECT - 9 AS col1, - 80 AS col0
----
-9
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT 95, ( + MIN( DISTINCT + 54 ) ) * - + ( + 90 ) AS col2
----
95
-4860

skipif mysql # not compatible
query II rowsort label-3166
SELECT 95, ( + MIN ( DISTINCT + 54 ) ) * - + ( + 90 ) AS col2
----
95
-4860

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3167
SELECT 32 col2, - COUNT( * ) DIV - - 18 AS col1
----
32
0

skipif mysql # not compatible
query II rowsort label-3167
SELECT 32 col2, - COUNT ( * ) / - - 18 AS col1
----
32
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3168
SELECT COUNT( * ) AS col1, - 42 * 83 * - - 26 + + CAST( NULL AS SIGNED ) + - 8 + + 5 * 51 / 8 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3168
SELECT COUNT ( * ) AS col1, - 42 * 83 * - - 26 + + CAST ( NULL AS INTEGER ) + - 8 + + 5 * 51 / 8 AS col2
----
1
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + - 11, + ( - 1 ) * + 36 + + 39, 18 )
----
-11

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

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

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

query I rowsort
SELECT + 99 + - + 6 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT 34 - - COUNT( * ) + - - COUNT( ALL CASE + + 50 WHEN 21 + + 16 THEN CAST( NULL AS SIGNED ) WHEN - 37 THEN NULL END ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3173
SELECT 34 - - COUNT ( * ) + - - COUNT ( ALL CASE + + 50 WHEN 21 + + 16 THEN CAST ( NULL AS INTEGER ) WHEN - 37 THEN NULL END ) AS col1
----
35

query I rowsort
SELECT + 43 * + - 50
----
-2150

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

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

query I rowsort
SELECT 26 + - 40 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT DISTINCT 36 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT 36 / - 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3178
SELECT ALL 71 + - + 40 AS col1, 22 * - 88 - - - 39 + + COUNT( * )
----
31
-1974

skipif mysql # not compatible
query II rowsort label-3178
SELECT ALL 71 + - + 40 AS col1, 22 * - 88 - - - 39 + + COUNT ( * )
----
31
-1974

query I rowsort
SELECT DISTINCT 88 * 50 AS col0
----
4400

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT 41 DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT 41 / + 84 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3181
SELECT 77 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT ALL 99 * 11 DIV 91 DIV - 95 + + 37
----
37

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL 99 * 11 / 91 / - 95 + + 37
----
37

query I rowsort
SELECT 48 - - NULLIF ( + 84, 79 ) AS col2
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT + 17 * + + 46 - CAST( - 80 AS SIGNED ) + + + 34 + - 97
----
799

skipif mysql # not compatible
query I rowsort label-3184
SELECT + 17 * + + 46 - CAST ( - 80 AS INTEGER ) + + + 34 + - 97
----
799

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL - 58 + - MAX( DISTINCT - + 24 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - 58 + - MAX ( DISTINCT - + 24 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT CASE - 9 WHEN 48 THEN 40 WHEN - 82 THEN - + COUNT( * ) * + + 74 * + 94 + - 89 + - 36 WHEN + SUM( 93 ) THEN 89 WHEN - COUNT( * ) THEN + NULLIF ( 39, - 6 ) ELSE MIN( DISTINCT + 90 ) END - - ( 14 + + 9 * 91 )
----
923

skipif mysql # not compatible
query I rowsort label-3186
SELECT CASE - 9 WHEN 48 THEN 40 WHEN - 82 THEN - + COUNT ( * ) * + + 74 * + 94 + - 89 + - 36 WHEN + SUM ( 93 ) THEN 89 WHEN - COUNT ( * ) THEN + NULLIF ( 39, - 6 ) ELSE MIN ( DISTINCT + 90 ) END - - ( 14 + + 9 * 91 )
----
923

query I rowsort
SELECT - NULLIF ( 22, + 77 + + + 20 ) * - 62 * - + 21 + - - 68 - 39
----
-28615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3188
SELECT + CAST( 27 AS SIGNED ) AS col1, - COALESCE ( 28, + NULLIF ( + 34, + 28 ) DIV 65 - COUNT( * ) * - 83, COUNT( - 13 ) ) - 33
----
27
-61

skipif mysql # not compatible
query II rowsort label-3188
SELECT + CAST ( 27 AS INTEGER ) AS col1, - COALESCE ( 28, + NULLIF ( + 34, + 28 ) / 65 - COUNT ( * ) * - 83, COUNT ( - 13 ) ) - 33
----
27
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL + MAX( ALL - ( - ( - 85 ) ) ) - 97
----
-182

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + MAX ( ALL - ( - ( - 85 ) ) ) - 97
----
-182

query I rowsort
SELECT - 24 + - + 41 + - 93
----
-158

query I rowsort
SELECT 31 * - + 64
----
-1984

query I rowsort
SELECT ALL + + 10 * + + 94
----
940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3193
SELECT ALL CAST( NULL AS SIGNED ) - COUNT( * ), + 19 * MIN( ALL 97 ) col1
----
NULL
1843

skipif mysql # not compatible
query II rowsort label-3193
SELECT ALL CAST ( NULL AS INTEGER ) - COUNT ( * ), + 19 * MIN ( ALL 97 ) col1
----
NULL
1843

query I rowsort
SELECT ALL - + COALESCE ( - - 63, 70 ) - + + 60
----
-123

query I rowsort
SELECT ALL + 45 * + 51 AS col1
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - + 1 + + CASE - + 44 WHEN ( COALESCE ( + 75, 56, + 35, 84 - 74 / - NULLIF ( + 81 * 44 + COUNT( * ) * - 34, - COUNT( 96 ) ) ) ) THEN 41 WHEN ( + 85 ) THEN NULL ELSE COUNT( * ) END - - COUNT( * ) * + 82 * - 15
----
-1230

skipif mysql # not compatible
query I rowsort label-3196
SELECT - + 1 + + CASE - + 44 WHEN ( COALESCE ( + 75, 56, + 35, 84 - 74 / - NULLIF ( + 81 * 44 + COUNT ( * ) * - 34, - COUNT ( 96 ) ) ) ) THEN 41 WHEN ( + 85 ) THEN NULL ELSE COUNT ( * ) END - - COUNT ( * ) * + 82 * - 15
----
-1230

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

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

query I rowsort
SELECT - 97 * - + 47 * - 14 AS col1
----
-63826

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

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

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

skipif mysql # not compatible
query I rowsort label-3200
SELECT - 46 * + 48 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 19 * 47 AS col1
----
-893

query I rowsort
SELECT - 7 + - 66 * + NULLIF ( + - 30, - 55 ) + - - 36 * - 42 AS col1
----
461

query II rowsort
SELECT ALL 78 col1, + 69 + + 41 * 66 AS col1
----
78
2775

query I rowsort
SELECT ALL - ( + 70 ) + 9 + + 71 * - + 23 AS col0
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT - 77 - - - COUNT( * ) + + + 41 + - 2 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 77 - - - COUNT ( * ) + + + 41 + - 2 AS col0
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT - ( COUNT( * ) ) + + 49 + + 43 + - ( + ( + - 52 ) ) * + - 73 * 51 + 60 col0
----
-193445

skipif mysql # not compatible
query I rowsort label-3207
SELECT - ( COUNT ( * ) ) + + 49 + + 43 + - ( + ( + - 52 ) ) * + - 73 * 51 + 60 col0
----
-193445

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3208
SELECT ALL + 47 + + 8 + - 68 AS col0, - COUNT( * ) DIV - COUNT( * )
----
-13
1

skipif mysql # not compatible
query II rowsort label-3208
SELECT ALL + 47 + + 8 + - 68 AS col0, - COUNT ( * ) / - COUNT ( * )
----
-13
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT - 41 + - 28 + - CAST( + 68 AS SIGNED ) - + + 7 * + 85 + + 99
----
-633

skipif mysql # not compatible
query I rowsort label-3209
SELECT - 41 + - 28 + - CAST ( + 68 AS INTEGER ) - + + 7 * + 85 + + 99
----
-633

query II rowsort
SELECT 20, - 7 AS col1
----
20
-7

query I rowsort
SELECT + 23 - 27 AS col0
----
-4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3213
SELECT ALL + 84 + 72 * - 33 + + CAST( + COUNT( * ) AS SIGNED ) * - 18 + - 29 + - ( 67 ) * COUNT( ALL 29 )
----
-2406

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + 84 + 72 * - 33 + + CAST ( + COUNT ( * ) AS INTEGER ) * - 18 + - 29 + - ( 67 ) * COUNT ( ALL 29 )
----
-2406

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL NULLIF ( + 59, + - 35 * 36 + - NULLIF ( 39, + + MIN( 72 ) ) )
----
59

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL NULLIF ( + 59, + - 35 * 36 + - NULLIF ( 39, + + MIN ( 72 ) ) )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT ALL ( - + NULLIF ( + CAST( NULL AS SIGNED ), - 35 ) ) * + 51 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL ( - + NULLIF ( + CAST ( NULL AS INTEGER ), - 35 ) ) * + 51 + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + COUNT( + 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3216
SELECT + COUNT ( + 38 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + NULLIF ( + - COUNT( * ), + 65 ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-3217
SELECT + NULLIF ( + - COUNT ( * ), + 65 ) + 89
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT ALL 71 * + MIN( DISTINCT 2 ) * - 71 - - COUNT( * ) DIV + - ( - + 75 ) * + + 12
----
-10082

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL 71 * + MIN ( DISTINCT 2 ) * - 71 - - COUNT ( * ) / + - ( - + 75 ) * + + 12
----
-10082

query I rowsort
SELECT + 56 + - + 94
----
-38

query I rowsort
SELECT - 95 * - 94 AS col1
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + COUNT( * ) * + 20 - + 14 * 43 * - + ( + 87 ) + 78 + - 87
----
52385

skipif mysql # not compatible
query I rowsort label-3221
SELECT + COUNT ( * ) * + 20 - + 14 * 43 * - + ( + 87 ) + 78 + - 87
----
52385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3222
SELECT + NULLIF ( + MAX( DISTINCT + 76 ), - - SUM( + + 63 ) * + 98 + - + 2 - 18 * + 18 ) DIV 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3222
SELECT + NULLIF ( + MAX ( DISTINCT + 76 ), - - SUM ( + + 63 ) * + 98 + - + 2 - 18 * + 18 ) / 41 AS col0
----
1

query I rowsort
SELECT CASE - 24 WHEN - COALESCE ( - 22, + 22 ) THEN - + 62 / + + 93 + + 89 / 92 WHEN ( 65 ) THEN - 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL + COUNT( ALL + + 21 ) * - 18 + 63 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL + COUNT ( ALL + + 21 ) * - 18 + 63 AS col0
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT DISTINCT + CASE + + 51 WHEN + 24 THEN NULL ELSE + CASE + 9 WHEN COUNT( * ) THEN + 26 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT + CASE + + 51 WHEN + 24 THEN NULL ELSE + CASE + 9 WHEN COUNT ( * ) THEN + 26 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT + 98 * + - NULLIF ( + + 76, - - CASE - - COALESCE ( + 19, + + COUNT( * ) / - COUNT( * ) * + 18, 63 ) WHEN + CASE 65 WHEN 85 THEN NULL ELSE ( ( 17 ) ) END THEN + 67 * NULLIF ( - COUNT( DISTINCT 11 ), 0 ) WHEN COUNT( * ) THEN NULL END ) * - COALESCE ( COUNT( * ), CAST( + 78 AS SIGNED ), 24 )
----
7448

skipif mysql # not compatible
query I rowsort label-3227
SELECT + 98 * + - NULLIF ( + + 76, - - CASE - - COALESCE ( + 19, + + COUNT ( * ) / - COUNT ( * ) * + 18, 63 ) WHEN + CASE 65 WHEN 85 THEN NULL ELSE ( ( 17 ) ) END THEN + 67 * NULLIF ( - COUNT ( DISTINCT 11 ), 0 ) WHEN COUNT ( * ) THEN NULL END ) * - COALESCE ( COUNT ( * ), CAST ( + 78 AS INTEGER ), 24 )
----
7448

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - 94 * - COUNT( * ) * 35 + - + 56 + - - SUM( + 60 ) * + 69 * - ( - 87 ) AS col2
----
363414

skipif mysql # not compatible
query I rowsort label-3228
SELECT - 94 * - COUNT ( * ) * 35 + - + 56 + - - SUM ( + 60 ) * + 69 * - ( - 87 ) AS col2
----
363414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3229
SELECT ALL - ( + 38 ) * + + CAST( - + COUNT( * ) AS SIGNED ) - + - SUM( ALL + 20 )
----
58

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - ( + 38 ) * + + CAST ( - + COUNT ( * ) AS INTEGER ) - + - SUM ( ALL + 20 )
----
58

query I rowsort
SELECT - - 6 * + + 0 - - 33
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL 72 * + MAX( ALL + - 1 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL 72 * + MAX ( ALL + - 1 ) AS col2
----
-72

query I rowsort
SELECT DISTINCT 11 * - 57 + 33 AS col1
----
-594

query II rowsort
SELECT ALL CASE - 64 WHEN - 55 THEN - - 66 * - AVG ( - 46 ) + 60 ELSE NULL END col0, 57 AS col1
----
NULL
57

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3237
SELECT + 47 / - COUNT ( * )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3238
SELECT DISTINCT 59 + + ( + CASE + COUNT( + - ( - + CAST( NULL AS SIGNED ) ) ) WHEN + NULLIF ( - 91, + 50 ) THEN NULL WHEN + 43 THEN 21 DIV 83 ELSE COUNT( * ) END )
----
60

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT 59 + + ( + CASE + COUNT ( + - ( - + CAST ( NULL AS INTEGER ) ) ) WHEN + NULLIF ( - 91, + 50 ) THEN NULL WHEN + 43 THEN 21 / 83 ELSE COUNT ( * ) END )
----
60

query I rowsort
SELECT - ( 78 ) * - 38
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT ALL - 88 + - - 0 * 61 * + 43 * 63 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL - 88 + - - 0 * 61 * + 43 * 63 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT + 17 DIV + 49 col1
----
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT + 17 / + 49 col1
----
0

query I rowsort
SELECT ALL - 98 * - 13
----
1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT DISTINCT CAST( 77 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT CAST ( 77 AS INTEGER ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3244
SELECT ALL + 53 - + COUNT( * ) AS col0, NULLIF ( - + 68, - + COALESCE ( + + 54, - + CASE COUNT( * ) WHEN 73 THEN ( - ( - ( 82 ) ) ) + 74 WHEN - 3 THEN NULL ELSE NULL END ) )
----
52
-68

skipif mysql # not compatible
query II rowsort label-3244
SELECT ALL + 53 - + COUNT ( * ) AS col0, NULLIF ( - + 68, - + COALESCE ( + + 54, - + CASE COUNT ( * ) WHEN 73 THEN ( - ( - ( 82 ) ) ) + 74 WHEN - 3 THEN NULL ELSE NULL END ) )
----
52
-68

query I rowsort
SELECT ALL - 72 * - + 43 + + 18 * 14 + 70 col1
----
3418

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - + ( - - COUNT( * ) ) - + 96 * CASE + + 58 WHEN - 18 THEN - MAX( + 41 ) * - + 77 + + 7 * - 40 END * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT - + ( - - COUNT ( * ) ) - + 96 * CASE + + 58 WHEN - 18 THEN - MAX ( + 41 ) * - + 77 + + 7 * - 40 END * 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT + ( - 75 ) * - 50 - + 9 DIV + 55 + 13 AS col1
----
3763

skipif mysql # not compatible
query I rowsort label-3247
SELECT + ( - 75 ) * - 50 - + 9 / + 55 + 13 AS col1
----
3763

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT + 60 DIV + + 55 + + 57 * - 96
----
-5471

skipif mysql # not compatible
query I rowsort label-3248
SELECT + 60 / + + 55 + + 57 * - 96
----
-5471

query I rowsort
SELECT - 15 * - NULLIF ( - 84, 60 ) AS col2
----
-1260

query I rowsort
SELECT - + 51 * + 99 AS col0
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT - 43 - - - NULLIF ( - COUNT( + 17 ), + 78 )
----
-42

skipif mysql # not compatible
query I rowsort label-3251
SELECT - 43 - - - NULLIF ( - COUNT ( + 17 ), + 78 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT - COUNT( + 27 ) * - 90 - + MAX( + 22 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT - COUNT ( + 27 ) * - 90 - + MAX ( + 22 ) * CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 70 * + + 47
----
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT ALL + COUNT( * ) + + NULLIF ( 3, + 40 + - 16 - + + 75 * 95 * - CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL + COUNT ( * ) + + NULLIF ( 3, + 40 + - 16 - + + 75 * 95 * - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT 19 + + - CAST( - 29 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3256
SELECT 19 + + - CAST ( - 29 AS INTEGER ) AS col2
----
48

query I rowsort
SELECT ALL + - 59 + + 46 AS col1
----
-13

query I rowsort
SELECT ALL 71 + - - 31 AS col1
----
102

query I rowsort
SELECT DISTINCT 83 + - COALESCE ( - ( + 77 ), + 77 )
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-3260
SELECT 70 + MIN( + - 75 ) col0, + COUNT( * ) + - + COUNT( * ) AS col2
----
-5
0

skipif mysql # not compatible
query II rowsort label-3260
SELECT 70 + MIN ( + - 75 ) col0, + COUNT ( * ) + - + COUNT ( * ) AS col2
----
-5
0

query I rowsort
SELECT 60 * + 55
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT COUNT( ALL - - 66 ) + - 33
----
-32

skipif mysql # not compatible
query I rowsort label-3262
SELECT COUNT ( ALL - - 66 ) + - 33
----
-32

query I rowsort
SELECT DISTINCT 5 - 23
----
-18

query I rowsort
SELECT DISTINCT 17 * + 2 AS col1
----
34

query II rowsort
SELECT ALL 52 AS col0, 58 AS col0
----
52
58

query I rowsort
SELECT DISTINCT 69 - - - 73 * + + 27 * + 16
----
-31467

query I rowsort
SELECT 2 + + + 84
----
86

query I rowsort
SELECT CASE - 68 WHEN ( + - 64 ) THEN 88 ELSE NULL END + - - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - - NULLIF ( + CASE + 98 WHEN + - 82 + - + 43 THEN + + COUNT( * ) ELSE 87 END, + 73 + 69 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3269
SELECT - - NULLIF ( + CASE + 98 WHEN + - 82 + - + 43 THEN + + COUNT ( * ) ELSE 87 END, + 73 + 69 ) AS col0
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-3270
SELECT ALL + 52 AS col1, - 80 DIV + 96 + 18 AS col2
----
52
18

skipif mysql # not compatible
query II rowsort label-3270
SELECT ALL + 52 AS col1, - 80 / + 96 + 18 AS col2
----
52
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - 91 + 89 - - 60 - COUNT( * ) col0
----
57

skipif mysql # not compatible
query I rowsort label-3271
SELECT - 91 + 89 - - 60 - COUNT ( * ) col0
----
57

query I rowsort
SELECT ALL + - 3 * + 93 * - + 29 AS col0
----
8091

query I rowsort
SELECT DISTINCT - - 91 * + ( 3 ) * - 12 * 85
----
-278460

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3274
SELECT DISTINCT - + CAST( NULLIF ( - 72, + + COALESCE ( + 40, CAST( - COALESCE ( + 43, - 83, 82 ) AS DECIMAL ) ) ) AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - + CAST ( NULLIF ( - 72, + + COALESCE ( + 40, CAST ( - COALESCE ( + 43, - 83, 82 ) AS REAL ) ) ) AS INTEGER ) AS col1
----
72

query I rowsort
SELECT + 40 + + 71 AS col0
----
111

query I rowsort
SELECT DISTINCT - + 99 + + - 47 AS col1
----
-146

query I rowsort
SELECT + NULLIF ( 0, + - ( - 16 ) ) col1
----
0

query I rowsort
SELECT + 67 * 17 AS col2
----
1139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT ALL + 33 + 44 + - CAST( NULL AS SIGNED ) * + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + 33 + 44 + - CAST ( NULL AS INTEGER ) * + 3 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3280
SELECT + NULLIF ( 90, - 28 + 36 ) * + SUM( + CASE - 58 WHEN - CAST( NULL AS SIGNED ) THEN - + CASE + 20 WHEN 54 * - 34 THEN - 75 WHEN 62 * 12 THEN 64 DIV 71 END WHEN + 95 THEN NULL ELSE + 10 + 10 END ) * - 57
----
-102600

skipif mysql # not compatible
query I rowsort label-3280
SELECT + NULLIF ( 90, - 28 + 36 ) * + SUM ( + CASE - 58 WHEN - CAST ( NULL AS INTEGER ) THEN - + CASE + 20 WHEN 54 * - 34 THEN - 75 WHEN 62 * 12 THEN 64 / 71 END WHEN + 95 THEN NULL ELSE + 10 + 10 END ) * - 57
----
-102600

query I rowsort
SELECT ALL 76 * 91
----
6916

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3283
SELECT DISTINCT - COALESCE ( NULLIF ( + 97, - 5 DIV + - 70 * - 11 ), - 39 * + - AVG ( DISTINCT - 40 ) DIV - + SUM( DISTINCT + 45 ) + + ( 34 - + 19 ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - COALESCE ( NULLIF ( + 97, - 5 / + - 70 * - 11 ), - 39 * + - AVG ( DISTINCT - 40 ) / - + SUM ( DISTINCT + 45 ) + + ( 34 - + 19 ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT ALL + - 57 + MAX( - 16 ), 81 AS col2
----
-73
81

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL + - 57 + MAX ( - 16 ), 81 AS col2
----
-73
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT ALL - CAST( - COALESCE ( 71, - 54 ) AS SIGNED ) + - ( + 1 )
----
70

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - CAST ( - COALESCE ( 71, - 54 ) AS INTEGER ) + - ( + 1 )
----
70

query I rowsort
SELECT ALL 30 + - 67 AS col2
----
-37

query II rowsort
SELECT ALL - 96, - NULLIF ( 89, 81 ) AS col1
----
-96
-89

query I rowsort
SELECT 41 * 82 AS col0
----
3362

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL + 88 * - 66 * + + COUNT( * )
----
-5808

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + 88 * - 66 * + + COUNT ( * )
----
-5808

query II rowsort
SELECT + 33 AS col0, + 83
----
33
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT ALL + CAST( - + 12 AS SIGNED ) * + 2 * 63
----
-1512

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + CAST ( - + 12 AS INTEGER ) * + 2 * 63
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL - 25 * - COUNT( - 36 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - 25 * - COUNT ( - 36 ) AS col1
----
25

query II rowsort
SELECT ALL + 70 - + 3 col2, - 70 AS col0
----
67
-70

query II rowsort
SELECT DISTINCT 47 col0, - 90 * + - 40
----
47
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT 92 + 14 + ( - MIN( DISTINCT - 56 ) ) * 15 * + 67 - + + COUNT( * ) + + 10 * - + 71 * + + 71 AS col0
----
5975

skipif mysql # not compatible
query I rowsort label-3295
SELECT 92 + 14 + ( - MIN ( DISTINCT - 56 ) ) * 15 * + 67 - + + COUNT ( * ) + + 10 * - + 71 * + + 71 AS col0
----
5975

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3296
SELECT DISTINCT - 53 - - 4 DIV + + CAST( - 77 AS SIGNED ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - 53 - - 4 / + + CAST ( - 77 AS INTEGER ) AS col0
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT COALESCE ( + COUNT( * ), + ( + + 59 ) ) * 58 + + 38
----
96

skipif mysql # not compatible
query I rowsort label-3298
SELECT COALESCE ( + COUNT ( * ), + ( + + 59 ) ) * 58 + + 38
----
96

query II rowsort
SELECT - 65 AS col0, - 21 + - - 78
----
-65
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3300
SELECT 95 + + - 29 * - 26 * - COUNT( * ) * - NULLIF ( - + MAX( + 50 ), - 87 + 15 + + 7 / + 8 * + COALESCE ( 63 * ( 90 ), 72 / - CAST( 74 * COUNT( * ) AS SIGNED ), - COUNT( DISTINCT 48 ) ) )
----
-37605

skipif mysql # not compatible
query I rowsort label-3300
SELECT 95 + + - 29 * - 26 * - COUNT ( * ) * - NULLIF ( - + MAX ( + 50 ), - 87 + 15 + + 7 / + 8 * + COALESCE ( 63 * ( 90 ), 72 / - CAST ( 74 * COUNT ( * ) AS INTEGER ), - COUNT ( DISTINCT 48 ) ) )
----
-37605

query I rowsort
SELECT ALL NULLIF ( 6, + 97 ) AS col1
----
6

query II rowsort
SELECT - + 8 AS col1, 49
----
-8
49

query II rowsort
SELECT ALL 19 * - - 72, + 1 AS col1
----
1368
1

query I rowsort
SELECT ALL + ( ( 78 ) ) * + 42
----
3276

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

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

query I rowsort
SELECT + + 23 + - 57 AS col2
----
-34

query I rowsort
SELECT + + 18 * + - 88 + + 5
----
-1579

query II rowsort
SELECT - 12 AS col2, 5 AS col1
----
-12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT + - NULLIF ( + CASE + + 62 WHEN 28 THEN + + 80 + 36 WHEN - - COUNT( * ) THEN 48 ELSE NULL END, - + 53 * + ( - 27 ) / + 79 ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT + - NULLIF ( + CASE + + 62 WHEN 28 THEN + + 80 + 36 WHEN - - COUNT ( * ) THEN 48 ELSE NULL END, - + 53 * + ( - 27 ) / + 79 ) * 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT ALL - COUNT( * ) * + + ( 84 ) + - 79 + + 42 * - CAST( - 49 AS SIGNED ) + 7 AS col1
----
1902

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL - COUNT ( * ) * + + ( 84 ) + - 79 + + 42 * - CAST ( - 49 AS INTEGER ) + 7 AS col1
----
1902

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT + 74 AS col2, - 85 + + NULLIF ( - 23, + 74 - + 20 + MAX( - - 29 ) / + - 67 ) * + 3
----
74
-154

skipif mysql # not compatible
query II rowsort label-3311
SELECT + 74 AS col2, - 85 + + NULLIF ( - 23, + 74 - + 20 + MAX ( - - 29 ) / + - 67 ) * + 3
----
74
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT ALL + 46 DIV - ( - + 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + 46 / - ( - + 37 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT - - 5 * - + 94 + SUM( DISTINCT - NULLIF ( - - 31, 33 ) )
----
-501

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT - - 5 * - + 94 + SUM ( DISTINCT - NULLIF ( - - 31, 33 ) )
----
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - + 7 * + COUNT( * ) * - 63 + 88 + + 32 * + - ( + 51 ) AS col2
----
-1103

skipif mysql # not compatible
query I rowsort label-3314
SELECT - + 7 * + COUNT ( * ) * - 63 + 88 + + 32 * + - ( + 51 ) AS col2
----
-1103

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - + 16 - + COALESCE ( + + 62, + 37 * + COUNT( * ) )
----
-78

skipif mysql # not compatible
query I rowsort label-3315
SELECT - + 16 - + COALESCE ( + + 62, + 37 * + COUNT ( * ) )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT + - 47 + COUNT( * ) - - COALESCE ( - + 56, - - 81 - - 25 + - COUNT( * ) - + 96 + 1 DIV + 83 ) * - 71 + COUNT( * )
----
3931

skipif mysql # not compatible
query I rowsort label-3316
SELECT + - 47 + COUNT ( * ) - - COALESCE ( - + 56, - - 81 - - 25 + - COUNT ( * ) - + 96 + 1 / + 83 ) * - 71 + COUNT ( * )
----
3931

query I rowsort
SELECT 1 * - 23 - + 78
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT + COUNT( 43 ) / - 76 + + 86 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT + COUNT ( 43 ) / - 76 + + 86 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT + COUNT( * ) + CAST( + + 52 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3319
SELECT + COUNT ( * ) + CAST ( + + 52 AS INTEGER ) AS col1
----
53

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

skipif mysql # not compatible
query I rowsort label-3320
SELECT - ( + + MIN ( ALL + 74 ) ) * + 87
----
-6438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3321
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CASE - NULLIF ( - 28, 26 * + - 98 / + COUNT( DISTINCT 34 ) ) WHEN 69 THEN NULL WHEN + COUNT( * ) THEN 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CASE - NULLIF ( - 28, 26 * + - 98 / + COUNT ( DISTINCT 34 ) ) WHEN 69 THEN NULL WHEN + COUNT ( * ) THEN 76 ELSE NULL END
----
NULL

query I rowsort
SELECT + 29 * 39 + - 67 + + 26 AS col1
----
1090

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3324
SELECT DISTINCT + COUNT( ALL 55 ) DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT + COUNT ( ALL 55 ) / + 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3325
SELECT ALL + 66 DIV + + 89, COALESCE ( - ( - 1 ), - CASE COALESCE ( - + 88, + COALESCE ( + CAST( NULL AS SIGNED ), - - COUNT( * ) ) ) WHEN - COALESCE ( + 27, 16, 0 - - 7 ) DIV + COUNT( * ) THEN NULL WHEN - 49 THEN - 23 END * CAST( - 47 AS SIGNED ) ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-3325
SELECT ALL + 66 / + + 89, COALESCE ( - ( - 1 ), - CASE COALESCE ( - + 88, + COALESCE ( + CAST ( NULL AS INTEGER ), - - COUNT ( * ) ) ) WHEN - COALESCE ( + 27, 16, 0 - - 7 ) / + COUNT ( * ) THEN NULL WHEN - 49 THEN - 23 END * CAST ( - 47 AS INTEGER ) ) AS col2
----
0
1

query I rowsort
SELECT - 40 * - 2 AS col0
----
80

query I rowsort
SELECT - 99 + + - 26 * 67 AS col1
----
-1841

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT - 87 DIV + NULLIF ( 51, - 18 + - 59 + 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-3328
SELECT - 87 / + NULLIF ( 51, - 18 + - 59 + 67 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3329
SELECT + 93 DIV - 10 col1, + 77
----
-9
77

skipif mysql # not compatible
query II rowsort label-3329
SELECT + 93 / - 10 col1, + 77
----
-9
77

query I rowsort
SELECT - 4 + 17 * 96
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL CASE - NULLIF ( + ( - + 9 ), - - 62 + 26 ) WHEN 36 + COUNT( * ) / - 35 THEN ( - CASE - COUNT( * ) WHEN + SUM( ALL 44 ) * - 27 THEN - 57 * 53 END ) ELSE - COALESCE ( + COUNT( * ), + 11, + 55 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL CASE - NULLIF ( + ( - + 9 ), - - 62 + 26 ) WHEN 36 + COUNT ( * ) / - 35 THEN ( - CASE - COUNT ( * ) WHEN + SUM ( ALL 44 ) * - 27 THEN - 57 * 53 END ) ELSE - COALESCE ( + COUNT ( * ), + 11, + 55 ) END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT - - 13 DIV - - ( + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT - - 13 / - - ( + 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - 82 + ( + 95 ) + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-3333
SELECT - 82 + ( + 95 ) + - COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT + NULLIF ( + + 10, - 37 ) + 75 + - + 97 * 97
----
-9324

query I rowsort
SELECT - 48 + 62 - 10 AS col2
----
4

query I rowsort
SELECT ALL 92 + 7 + + 24 * 96 col2
----
2403

query I rowsort
SELECT - 62 + + 94 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3338
SELECT ALL 19 * - 74 * - CAST( NULL AS SIGNED ) * - 76 * - + 80 AS col1, 68 * - 91 * 3
----
NULL
-18564

skipif mysql # not compatible
query II rowsort label-3338
SELECT ALL 19 * - 74 * - CAST ( NULL AS INTEGER ) * - 76 * - + 80 AS col1, 68 * - 91 * 3
----
NULL
-18564

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT + - ( + + 91 ) + - ( COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-3339
SELECT + - ( + + 91 ) + - ( COUNT ( * ) )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL + 6 + + 18 + + + CASE + - 88 WHEN + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) THEN - 41 WHEN COUNT( * ) THEN NULL WHEN - - SUM( ALL + CASE - - 71 WHEN - 7 THEN - 55 ELSE NULL END ) THEN - 46 * + 91 + - 88 WHEN 45 THEN COUNT( * ) * + ( + 34 ) - + CAST( + CAST( - ( MAX( 61 ) ) AS SIGNED ) AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + 6 + + 18 + + + CASE + - 88 WHEN + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - 41 WHEN COUNT ( * ) THEN NULL WHEN - - SUM ( ALL + CASE - - 71 WHEN - 7 THEN - 55 ELSE NULL END ) THEN - 46 * + 91 + - 88 WHEN 45 THEN COUNT ( * ) * + ( + 34 ) - + CAST ( + CAST ( - ( MAX ( 61 ) ) AS INTEGER ) AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT CASE 52 WHEN - - 69 + - - 76 * + ( + 94 ) THEN NULL WHEN + - 92 THEN + + AVG ( ALL + 96 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + COALESCE ( + 31, + + 43 ) ) * + 98 - NULLIF ( + - 4, - COALESCE ( - - 96, - + 93 ) ) AS col2
----
3042

query I rowsort
SELECT + 61 * 7 + + 20 * - ( 52 ) AS col1
----
-613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3344
SELECT + 73 DIV - + ( + + 97 ) * 94 + - ( 27 ) * + - SUM( ALL 73 ) + - 7
----
1964

skipif mysql # not compatible
query I rowsort label-3344
SELECT + 73 / - + ( + + 97 ) * 94 + - ( 27 ) * + - SUM ( ALL 73 ) + - 7
----
1964

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + ( + COUNT( * ) ) * - ( - + 60 ) * + 47 * - + 53 * - - 31 * + 66
----
-305795160

skipif mysql # not compatible
query I rowsort label-3345
SELECT + ( + COUNT ( * ) ) * - ( - + 60 ) * + 47 * - + 53 * - - 31 * + 66
----
-305795160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3346
SELECT DISTINCT + + ( - 24 ) col0, - ( - - SUM( + 19 ) ) * - + 64 DIV - + 61 AS col2
----
-24
-19

skipif mysql # not compatible
query II rowsort label-3346
SELECT DISTINCT + + ( - 24 ) col0, - ( - - SUM ( + 19 ) ) * - + 64 / - + 61 AS col2
----
-24
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT - 7 * + 80 * MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT - 7 * + 80 * MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-3349
SELECT + 71 * + + ( - - 27 ) AS col1, 85, COUNT( * ) + 22 col2
----
1917
85
23

skipif mysql # not compatible
query III rowsort label-3349
SELECT + 71 * + + ( - - 27 ) AS col1, 85, COUNT ( * ) + 22 col2
----
1917
85
23

query I rowsort
SELECT ALL + 70 * - 75
----
-5250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT DISTINCT COUNT( ALL 13 ) * - CAST( NULL AS SIGNED ) + + + 58 + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT COUNT ( ALL 13 ) * - CAST ( NULL AS INTEGER ) + + + 58 + + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT + MIN( DISTINCT + 42 ) * - 33 + - MAX( ALL + 6 )
----
-1392

skipif mysql # not compatible
query I rowsort label-3352
SELECT + MIN ( DISTINCT + 42 ) * - 33 + - MAX ( ALL + 6 )
----
-1392

query I rowsort
SELECT ( CASE - - 44 WHEN + 10 + - 81 + 54 THEN NULL ELSE + CASE + 89 WHEN + 59 THEN + 99 + + 73 * + 39 + - 48 WHEN + 85 THEN NULL END * 38 END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT - 17 * - + MIN( ( - 50 ) ) * COUNT( * )
----
-850

skipif mysql # not compatible
query I rowsort label-3355
SELECT - 17 * - + MIN ( ( - 50 ) ) * COUNT ( * )
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT 52 * - + 50 * - - SUM( DISTINCT - 37 ) AS col0
----
96200

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT 52 * - + 50 * - - SUM ( DISTINCT - 37 ) AS col0
----
96200

query I rowsort
SELECT + 64 - - - 72
----
-8

query I rowsort
SELECT - 81 * + 27 AS col0
----
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL CASE - AVG ( ALL + 1 ) WHEN + 17 / - 93 THEN - 80 ELSE NULL END * - - COUNT( * ) + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL CASE - AVG ( ALL + 1 ) WHEN + 17 / - 93 THEN - 80 ELSE NULL END * - - COUNT ( * ) + - 73
----
NULL

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

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

query II rowsort
SELECT 13 AS col1, 30 col1
----
13
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3362
SELECT ALL + CASE 26 WHEN 77 THEN + 50 WHEN CAST( 63 AS SIGNED ) * + 85 / 59 + - 59 THEN + 2 ELSE - 68 END + - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + CASE 26 WHEN 77 THEN + 50 WHEN CAST ( 63 AS INTEGER ) * + 85 / 59 + - 59 THEN + 2 ELSE - 68 END + - COUNT ( * )
----
-69

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

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - 8 / - COUNT ( * ) AS col1
----
8

query I rowsort
SELECT - 10 * - - 22
----
-220

onlyif mysql # aggregate syntax: 
query II rowsort label-3365
SELECT - MIN( - - 40 ) * 56 AS col1, - COUNT( * ) * - - 12 AS col0
----
-2240
-12

skipif mysql # not compatible
query II rowsort label-3365
SELECT - MIN ( - - 40 ) * 56 AS col1, - COUNT ( * ) * - - 12 AS col0
----
-2240
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT 84 - + 11 DIV - 64 DIV 3 * 88 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3366
SELECT 84 - + 11 / - 64 / 3 * 88 AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3367
SELECT DISTINCT - - 67 + 91 + - + CAST( - 19 AS SIGNED ) DIV + + 90
----
158

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT - - 67 + 91 + - + CAST ( - 19 AS INTEGER ) / + + 90
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT - - MIN( - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-3368
SELECT - - MIN ( - 82 )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3369
SELECT ALL + 10 + + CAST( 99 AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + 10 + + CAST ( 99 AS INTEGER )
----
109

query I rowsort
SELECT ALL + CASE - - CASE - 85 WHEN - + 2 * 40 * 5 THEN 98 / + + 0 * - - 95 + 99 END WHEN + 21 THEN + + 90 WHEN ( - ( 66 ) ) THEN NULLIF ( - 83, NULLIF ( + 96, - 84 ) * 37 ) ELSE + 72 END
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT + CASE - 68 WHEN 92 THEN 10 WHEN + MIN( + 78 ) - 21 - COUNT( ALL + 49 ) THEN NULL END + - 35 * 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT + CASE - 68 WHEN 92 THEN 10 WHEN + MIN ( + 78 ) - 21 - COUNT ( ALL + 49 ) THEN NULL END + - 35 * 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3372
SELECT DISTINCT + + COUNT( * ) * + 38 + - 68 DIV - 70
----
38

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + + COUNT ( * ) * + 38 + - 68 / - 70
----
38

query I rowsort
SELECT 19 + - 42 - 97 AS col2
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT + CAST( - - 8 AS SIGNED ) * 29 * + 52 - 73
----
11991

skipif mysql # not compatible
query I rowsort label-3374
SELECT + CAST ( - - 8 AS INTEGER ) * 29 * + 52 - 73
----
11991

query II rowsort
SELECT 34 AS col0, + 27 + 43
----
34
70

query I rowsort
SELECT 42 - - 98 AS col2
----
140

query I rowsort
SELECT + COALESCE ( 83, - - 70 )
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3378
SELECT ALL - CAST( NULL AS DECIMAL ) - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - CAST ( NULL AS REAL ) - - 22
----
NULL

query I rowsort
SELECT ALL - ( + NULLIF ( + - 60, + - 9 * + - 92 + - + 4 + - ( 86 ) ) ) AS col2
----
60

query I rowsort
SELECT 80 + + - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL 53 * - 42 * - COUNT( * )
----
2226

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL 53 * - 42 * - COUNT ( * )
----
2226

query I rowsort
SELECT + 21 * - + 87 * + 55 + 73 - + 34
----
-100446

query I rowsort
SELECT 70 + + 36
----
106

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

skipif mysql # not compatible
query I rowsort label-3384
SELECT COUNT ( * ) / - 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT CAST( NULL AS SIGNED ) + + - ( + 17 ) + + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT CAST ( NULL AS INTEGER ) + + - ( + 17 ) + + - 14
----
NULL

query I rowsort
SELECT CASE + - 71 WHEN + 74 THEN NULL ELSE + - 69 - 39 END + + 40
----
-68

query I rowsort
SELECT DISTINCT 11 + + 2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3388
SELECT COUNT( * ) DIV + 65, COUNT( * ) * + + 99 * + 75 + - 0 AS col1
----
0
7425

skipif mysql # not compatible
query II rowsort label-3388
SELECT COUNT ( * ) / + 65, COUNT ( * ) * + + 99 * + 75 + - 0 AS col1
----
0
7425

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT ALL 46 + ( 77 ) - 32 DIV 30
----
122

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL 46 + ( 77 ) - 32 / 30
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT DISTINCT 5 DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT 5 / 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT ALL + 76 + + 7 AS col2, - COUNT( * )
----
83
-1

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL + 76 + + 7 AS col2, - COUNT ( * )
----
83
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3392
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT MIN( DISTINCT - 44 ) + + 76 * 89 AS col2
----
6720

skipif mysql # not compatible
query I rowsort label-3393
SELECT MIN ( DISTINCT - 44 ) + + 76 * 89 AS col2
----
6720

query I rowsort
SELECT 30 + + 42
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-3395
SELECT ALL + 0 + - - 34 + + 68 * - + 85 col1, ( - 80 ) + + - 46 DIV + 5
----
-5746
-89

skipif mysql # not compatible
query II rowsort label-3395
SELECT ALL + 0 + - - 34 + + 68 * - + 85 col1, ( - 80 ) + + - 46 / + 5
----
-5746
-89

query II rowsort
SELECT ( 93 ) col1, 17 col1
----
93
17

query I rowsort
SELECT ALL 13 + - NULLIF ( - 78, - 92 + 66 * + 42 ) AS col2
----
91

query I rowsort
SELECT 85 + + + 57 * - 63 AS col2
----
-3506

query I rowsort
SELECT 47 * - 37 col2
----
-1739

query I rowsort
SELECT 78 + 33 - + ( + + 62 ) col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT ALL + 23 DIV - + 39 + - + 26 * - - 41 - - + 31
----
-1035

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL + 23 / - + 39 + - + 26 * - - 41 - - + 31
----
-1035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT MIN( 49 ) DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3402
SELECT MIN ( 49 ) / + 86 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT NULLIF ( + 28, - COALESCE ( - COUNT( * ), + 82 ) * + - 70 ) + - CASE + 86 WHEN - 21 THEN NULL WHEN - MIN( 26 ) + - 6 + - - COUNT( * ) * ( - 63 ) * COALESCE ( - MIN( - 31 ) * COUNT( * ) + - COUNT( * ), 97 ) + ( 4 ) THEN 18 + + COUNT( * ) END - 2 * - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT NULLIF ( + 28, - COALESCE ( - COUNT ( * ), + 82 ) * + - 70 ) + - CASE + 86 WHEN - 21 THEN NULL WHEN - MIN ( 26 ) + - 6 + - - COUNT ( * ) * ( - 63 ) * COALESCE ( - MIN ( - 31 ) * COUNT ( * ) + - COUNT ( * ), 97 ) + ( 4 ) THEN 18 + + COUNT ( * ) END - 2 * - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT ALL + 74 * - COUNT( * ) * + ( + 11 ) AS col0, - ( 78 )
----
-814
-78

skipif mysql # not compatible
query II rowsort label-3405
SELECT ALL + 74 * - COUNT ( * ) * + ( + 11 ) AS col0, - ( 78 )
----
-814
-78

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT + SUM( ALL - + 58 ) * 61 + + 66 + 51 col0, SUM( + 78 ) AS col2
----
-3421
78

skipif mysql # not compatible
query II rowsort label-3407
SELECT + SUM ( ALL - + 58 ) * 61 + + 66 + 51 col0, SUM ( + 78 ) AS col2
----
-3421
78

query I rowsort
SELECT ALL - 80 * NULLIF ( 82, - 54 ) AS col2
----
-6560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT 7 DIV - - 97 + 72 - + + COUNT( ALL + - 81 )
----
71

skipif mysql # not compatible
query I rowsort label-3409
SELECT 7 / - - 97 + 72 - + + COUNT ( ALL + - 81 )
----
71

query I rowsort
SELECT 66 * - 17 AS col2
----
-1122

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

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

query II rowsort
SELECT + 82 AS col2, 40 AS col2
----
82
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT COUNT( 12 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3413
SELECT COUNT ( 12 ) AS col0
----
1

query I rowsort
SELECT 15 * + + 43
----
645

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT MAX( + 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3415
SELECT MAX ( + 25 ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT ALL + CAST( 4 AS SIGNED ) * + NULLIF ( + 68, - - CASE 37 WHEN - - 55 THEN COUNT( COALESCE ( - + 41, 91 / 85 + + 31 ) ) WHEN - 55 THEN + 82 END ) + 34 AS col1
----
306

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + CAST ( 4 AS INTEGER ) * + NULLIF ( + 68, - - CASE 37 WHEN - - 55 THEN COUNT ( COALESCE ( - + 41, 91 / 85 + + 31 ) ) WHEN - 55 THEN + 82 END ) + 34 AS col1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL 16 * 61 * - - MAX( + + 97 ) * + COUNT( * ) + - 45
----
94627

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL 16 * 61 * - - MAX ( + + 97 ) * + COUNT ( * ) + - 45
----
94627

query I rowsort
SELECT - 40 * - - 72
----
-2880

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

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

query I rowsort
SELECT + 10 * + 95
----
950

query I rowsort
SELECT ALL 92 + - 36 + - + 74 * - 84
----
6272

query II rowsort
SELECT - 67 * + - 7 - - 77 * - - 31 * + - 97 + + 94 - 18 * 45, 95 AS col2
----
-231786
95

query I rowsort
SELECT + 33 - + 10
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT DISTINCT CAST( - - 17 AS SIGNED ) col0
----
17

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT CAST ( - - 17 AS INTEGER ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT - CASE + ( - 20 ) WHEN + 66 THEN - 67 * - 80 + 52 + + + 88 + 84 WHEN + - ( + 13 ) THEN - 54 + - COUNT( * ) * SUM( ( 99 ) ) * - 25 WHEN 58 * + COUNT( * ) THEN - ( 42 ) / 26 WHEN + 71 / 10 THEN NULL END - 5 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - CASE + ( - 20 ) WHEN + 66 THEN - 67 * - 80 + 52 + + + 88 + 84 WHEN + - ( + 13 ) THEN - 54 + - COUNT ( * ) * SUM ( ( 99 ) ) * - 25 WHEN 58 * + COUNT ( * ) THEN - ( 42 ) / 26 WHEN + 71 / 10 THEN NULL END - 5 * - 24
----
NULL

query I rowsort
SELECT ALL 85 * 65 + - + 72 AS col2
----
5453

query I rowsort
SELECT + 55 * 75
----
4125

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT ALL - 18 DIV + + 33
----
0

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - 18 / + + 33
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3429
SELECT + + COUNT( * ) DIV CASE - COALESCE ( ( + + 35 ), 84 * + 81 + - 3 ) WHEN - 29 THEN + 62 WHEN 41 + + 83 THEN NULL ELSE - 34 * + COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT + + COUNT ( * ) / CASE - COALESCE ( ( + + 35 ), 84 * + 81 + - 3 ) WHEN - 29 THEN + 62 WHEN 41 + + 83 THEN NULL ELSE - 34 * + COUNT ( * ) END
----
0

query I rowsort
SELECT ALL 47 - + 70
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT - ( COALESCE ( + COUNT( * ), + - 58, - + CASE - ( + - 8 ) WHEN CAST( NULL AS SIGNED ) * - 50 + - 65 + - 7 + + 85 * - ( CAST( NULL AS SIGNED ) ) * + 58 + - COUNT( * ) - - CASE 93 WHEN 84 + + 38 * 47 THEN NULL ELSE + 55 END * + 69 THEN 92 ELSE NULL END + MAX( - 40 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3431
SELECT - ( COALESCE ( + COUNT ( * ), + - 58, - + CASE - ( + - 8 ) WHEN CAST ( NULL AS INTEGER ) * - 50 + - 65 + - 7 + + 85 * - ( CAST ( NULL AS INTEGER ) ) * + 58 + - COUNT ( * ) - - CASE 93 WHEN 84 + + 38 * 47 THEN NULL ELSE + 55 END * + 69 THEN 92 ELSE NULL END + MAX ( - 40 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + COUNT( * ) - 88 - - - CASE ( - - ( + 84 ) ) WHEN 84 THEN - + 72 * + 97 * 92 WHEN + 73 * - ( + - 91 ) THEN NULL END * 65 AS col2
----
41764233

skipif mysql # not compatible
query I rowsort label-3432
SELECT + COUNT ( * ) - 88 - - - CASE ( - - ( + 84 ) ) WHEN 84 THEN - + 72 * + 97 * 92 WHEN + 73 * - ( + - 91 ) THEN NULL END * 65 AS col2
----
41764233

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT COALESCE ( - COUNT( * ), + + 96 + 82, 29 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT COALESCE ( - COUNT ( * ), + + 96 + 82, 29 ) AS col1
----
-1

query II rowsort
SELECT ALL 32 * ( + 76 ), + 76 + 77 AS col1
----
2432
153

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

query I rowsort
SELECT DISTINCT + 0 * + 35 + - - 85 col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT - ( + + 13 ) DIV - 8
----
1

skipif mysql # not compatible
query I rowsort label-3437
SELECT - ( + + 13 ) / - 8
----
1

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

skipif mysql # not compatible
query I rowsort label-3438
SELECT + COUNT ( * ) + + - SUM ( - + 10 ) AS col2
----
11

query II rowsort
SELECT - 69 AS col2, + 68 AS col0
----
-69
68

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

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

query I rowsort
SELECT + 95 + + 25 * - 38 AS col0
----
-855

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

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

query I rowsort
SELECT - 77 * 64
----
-4928

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT ALL + 40 DIV - - 93 + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + 40 / - - 93 + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ( + 51 ) * - - NULLIF ( + 47, - COUNT( * ) + - + 26 ) * - 83 + + + 50 AS col1
----
-198901

skipif mysql # not compatible
query I rowsort label-3445
SELECT ( + 51 ) * - - NULLIF ( + 47, - COUNT ( * ) + - + 26 ) * - 83 + + + 50 AS col1
----
-198901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT ALL COALESCE ( 9, + 47 * - COUNT( * ), + 24 + - 6 ) DIV - 87 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL COALESCE ( 9, + 47 * - COUNT ( * ), + 24 + - 6 ) / - 87 + + COUNT ( * )
----
1

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

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT COUNT ( * ) / + 10 * 26 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT ( - 6 ) / + - ( + 40 ) + + NULLIF ( CASE + COUNT( * ) WHEN 45 + - 71 THEN - NULLIF ( COALESCE ( 44, - + 93 * - 48 * + 6 * + - 9 * 74 + - 84, - 22 / - ( - 99 / 1 ), 28 + + 88 ), - 73 ) + 24 * 62 END, + 76 / - 31 ) / + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT ( - 6 ) / + - ( + 40 ) + + NULLIF ( CASE + COUNT ( * ) WHEN 45 + - 71 THEN - NULLIF ( COALESCE ( 44, - + 93 * - 48 * + 6 * + - 9 * 74 + - 84, - 22 / - ( - 99 / 1 ), 28 + + 88 ), - 73 ) + 24 * 62 END, + 76 / - 31 ) / + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL + COALESCE ( - COUNT( * ), + 88, - 79 ) / CASE - CASE - COALESCE ( - 77, - 17 ) WHEN 31 THEN - 59 * 50 + - 35 ELSE - 90 END WHEN + 85 THEN NULL WHEN - COUNT( * ) + + 58 THEN NULL WHEN NULLIF ( 39, + 24 ) - 2 * - 28 THEN NULL WHEN 3 THEN - COUNT( * ) ELSE NULL END + CASE + 6 + + 87 WHEN - 87 THEN - 87 * ( COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL + COALESCE ( - COUNT ( * ), + 88, - 79 ) / CASE - CASE - COALESCE ( - 77, - 17 ) WHEN 31 THEN - 59 * 50 + - 35 ELSE - 90 END WHEN + 85 THEN NULL WHEN - COUNT ( * ) + + 58 THEN NULL WHEN NULLIF ( 39, + 24 ) - 2 * - 28 THEN NULL WHEN 3 THEN - COUNT ( * ) ELSE NULL END + CASE + 6 + + 87 WHEN - 87 THEN - 87 * ( COUNT ( * ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL - 63 * + + 80 * + COUNT( DISTINCT + 19 ) + + COUNT( * ) * 52 * - 22 col0
----
-6184

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - 63 * + + 80 * + COUNT ( DISTINCT + 19 ) + + COUNT ( * ) * 52 * - 22 col0
----
-6184

query I rowsort
SELECT 13 * - - 17 + - 64 * - 81
----
5405

query I rowsort
SELECT ( - ( 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT ( COALESCE ( - + COUNT( * ), - COUNT( * ) * 54, 99 ) ) AS col1, 8 + - MAX( DISTINCT - - 25 ) AS col1
----
-1
-17

skipif mysql # not compatible
query II rowsort label-3453
SELECT ( COALESCE ( - + COUNT ( * ), - COUNT ( * ) * 54, 99 ) ) AS col1, 8 + - MAX ( DISTINCT - - 25 ) AS col1
----
-1
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT + MIN( - - 86 ) AS col1, - 60 * - 99 + 51 * 34
----
86
7674

skipif mysql # not compatible
query II rowsort label-3454
SELECT + MIN ( - - 86 ) AS col1, - 60 * - 99 + 51 * 34
----
86
7674

query I rowsort
SELECT - 75 + + - 41
----
-116

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3457
SELECT ALL + - 85 * + ( - - 4 ) + 18 DIV - 86 + + - 57 * + 0 * + + 65 - 41 + + 40 * + + 73 col1, + 99 AS col2
----
2539
99

skipif mysql # not compatible
query II rowsort label-3457
SELECT ALL + - 85 * + ( - - 4 ) + 18 / - 86 + + - 57 * + 0 * + + 65 - 41 + + 40 * + + 73 col1, + 99 AS col2
----
2539
99

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

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

query I rowsort
SELECT DISTINCT + 89 * + 17 - + 39 AS col0
----
1474

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

query II rowsort
SELECT DISTINCT + - 6 * + 6 AS col2, + 42
----
-36
42

query II rowsort
SELECT ALL + 28, + 94 AS col0
----
28
94

query I rowsort
SELECT + 22 * - 56 + - + 84
----
-1316

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

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

query I rowsort
SELECT DISTINCT + ( - 49 ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT + - 52 + 61 - - 7 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT + - 52 + 61 - - 7 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT + + ( - 75 ) * + 73 col2
----
-5475

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT DISTINCT + 13 DIV - - 16
----
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT + 13 / - - 16
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT - 22 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3470
SELECT - 22 / + 80 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + 92 + + - 15 * + - NULLIF ( 15, - COUNT( * ) )
----
317

skipif mysql # not compatible
query I rowsort label-3471
SELECT + 92 + + - 15 * + - NULLIF ( 15, - COUNT ( * ) )
----
317

query I rowsort
SELECT ALL 61 * - - 82 - + 47
----
4955

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT + CASE + + 75 WHEN 14 * + 31 + + AVG ( DISTINCT - + 46 ) * + 9 + 59 THEN NULL WHEN + 28 THEN 28 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT + CASE + + 75 WHEN 14 * + 31 + + AVG ( DISTINCT - + 46 ) * + 9 + 59 THEN NULL WHEN + 28 THEN 28 END * COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 1 + - + 56, + NULLIF ( + 62, + 36 ) + + + 86 AS col1
----
-55
148

query I rowsort
SELECT - ( - - 53 )
----
-53

query I rowsort
SELECT ALL 53 * - - 8 AS col1
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT MAX( - + 86 ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT MAX ( - + 86 ) * + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL 47 + + + CAST( NULL AS SIGNED ) + - 93 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL 47 + + + CAST ( NULL AS INTEGER ) + - 93 * 20
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 71, + 73 ) + + 53 AS col2
----
-18

query I rowsort
SELECT DISTINCT 82 + 63
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-3481
SELECT ALL - MIN( + 58 ) AS col2, 3 * 85 * 35 + + 18 * + 11 + + COUNT( * )
----
-58
9124

skipif mysql # not compatible
query II rowsort label-3481
SELECT ALL - MIN ( + 58 ) AS col2, 3 * 85 * 35 + + 18 * + 11 + + COUNT ( * )
----
-58
9124

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT 11 * - - CASE 43 WHEN + NULLIF ( 13, - - 23 * - 3 + + COUNT( * ) + - - 32 ) THEN NULL ELSE + COUNT( * ) END DIV - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-3483
SELECT 11 * - - CASE 43 WHEN + NULLIF ( 13, - - 23 * - 3 + + COUNT ( * ) + - - 32 ) THEN NULL ELSE + COUNT ( * ) END / - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT 46 * 40, COUNT( ALL + 12 ) AS col0
----
1840
1

skipif mysql # not compatible
query II rowsort label-3484
SELECT 46 * 40, COUNT ( ALL + 12 ) AS col0
----
1840
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3485
SELECT ALL - 72 DIV + + 75 AS col0, + 42 + + + CASE - 58 WHEN + 15 + - 35 THEN 96 ELSE NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL - 72 / + + 75 AS col0, + 42 + + + CASE - 58 WHEN + 15 + - 35 THEN 96 ELSE NULL END AS col2
----
0
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3487
SELECT ALL 74 * - + COUNT( * ) * - - CAST( + 94 AS SIGNED ) AS col1
----
-6956

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 74 * - + COUNT ( * ) * - - CAST ( + 94 AS INTEGER ) AS col1
----
-6956

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT CAST( - 90 AS SIGNED ) + + - 81 * + 51
----
-4221

skipif mysql # not compatible
query I rowsort label-3489
SELECT CAST ( - 90 AS INTEGER ) + + - 81 * + 51
----
-4221

onlyif mysql # DIV for integer division: 
query I rowsort label-3490
SELECT - 37 DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3490
SELECT - 37 / + 88 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT 94 * + 79 * 53 - 8 - + 69 DIV - 1 + - 86 DIV 19
----
393635

skipif mysql # not compatible
query I rowsort label-3491
SELECT 94 * + 79 * 53 - 8 - + 69 / - 1 + - 86 / 19
----
393635

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

query I rowsort
SELECT - ( - - ( 32 ) )
----
-32

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + CASE + + COUNT( * ) WHEN - + CASE - 86 WHEN - 16 / - 28 + + MIN( DISTINCT + + 14 ) / + + 64 THEN NULL WHEN - + 80 THEN + 86 END + + 83 THEN - + NULLIF ( + COUNT( * ), 29 ) WHEN + 53 + - 14 THEN - 25 * 29 + + 58 ELSE 73 * - 19 END
----
-1387

skipif mysql # not compatible
query I rowsort label-3497
SELECT + CASE + + COUNT ( * ) WHEN - + CASE - 86 WHEN - 16 / - 28 + + MIN ( DISTINCT + + 14 ) / + + 64 THEN NULL WHEN - + 80 THEN + 86 END + + 83 THEN - + NULLIF ( + COUNT ( * ), 29 ) WHEN + 53 + - 14 THEN - 25 * 29 + + 58 ELSE 73 * - 19 END
----
-1387

query II rowsort
SELECT + 53 * + ( - 6 ) col0, 28
----
-318
28

query I rowsort
SELECT ALL 93 + - 9 col0
----
84

query I rowsort
SELECT + 97 + 56
----
153

query I rowsort
SELECT DISTINCT + 92 + - 18 * 29 AS col1
----
-430

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

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

query II rowsort
SELECT - 65 AS col1, - 76
----
-65
-76

query II rowsort
SELECT 67 AS col2, - 25 AS col2
----
67
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3505
SELECT ALL MIN( ALL - 29 ) + - CAST( NULL AS SIGNED ) * + + 82, 47 AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL MIN ( ALL - 29 ) + - CAST ( NULL AS INTEGER ) * + + 82, 47 AS col2
----
NULL
47

query I rowsort
SELECT DISTINCT + 67 + - + 71
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3507
SELECT ALL 24 col0, COUNT( * ) * - - NULLIF ( + 56, 70 ) AS col0
----
24
56

skipif mysql # not compatible
query II rowsort label-3507
SELECT ALL 24 col0, COUNT ( * ) * - - NULLIF ( + 56, 70 ) AS col0
----
24
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT ALL + 49 + - 14 + - + CAST( NULL AS SIGNED ) * - NULLIF ( - CAST( NULL AS SIGNED ), + 98 * - 60 * 42 + - 7 ) + - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + 49 + - 14 + - + CAST ( NULL AS INTEGER ) * - NULLIF ( - CAST ( NULL AS INTEGER ), + 98 * - 60 * 42 + - 7 ) + - - 68
----
NULL

query I rowsort
SELECT DISTINCT - 94 + - + 4
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3510
SELECT ALL 41 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL 41 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ( - 97 ) * - 75 * + COUNT( * ) * - + 86
----
-625650

skipif mysql # not compatible
query I rowsort label-3511
SELECT ( - 97 ) * - 75 * + COUNT ( * ) * - + 86
----
-625650

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT MIN( + + 75 ) * + 19
----
1425

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT MIN ( + + 75 ) * + 19
----
1425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT 11 + - - CAST( 23 AS SIGNED ) + 63
----
97

skipif mysql # not compatible
query I rowsort label-3513
SELECT 11 + - - CAST ( 23 AS INTEGER ) + 63
----
97

query I rowsort
SELECT ALL 33 * - + 35
----
-1155

query II rowsort
SELECT DISTINCT - 78 AS col2, + 3
----
-78
3

query I rowsort
SELECT 62 * - 29 + - 60
----
-1858

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3517
SELECT DISTINCT - - 9 AS col1, 0 DIV - COUNT( * ) + 42 + + 71 AS col2
----
9
113

skipif mysql # not compatible
query II rowsort label-3517
SELECT DISTINCT - - 9 AS col1, 0 / - COUNT ( * ) + 42 + + 71 AS col2
----
9
113

query I rowsort
SELECT CASE NULLIF ( + + 81, - ( + - 66 ) / + + 73 * 95 ) WHEN 11 THEN 60 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - 7 * + - 69 AS col0
----
483

query I rowsort
SELECT + 1 + 48 AS col1
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT CASE - 70 WHEN + 71 + + CASE + + 38 WHEN - - ( CASE 67 WHEN - 17 THEN + + NULLIF ( + - 67, 95 + - + COUNT( * ) + + - 12 + + - COUNT( * ) * - NULLIF ( 82, - + 65 ) * ( ( + 4 ) + COUNT( * ) ) + NULLIF ( + 69 + ( 20 + 38 ) * + 71, - 39 ) ) * COUNT( * ) END ) * 68 THEN NULL WHEN 31 THEN NULL ELSE 92 * + 9 + 6 END + + 15 THEN CASE + MAX( ALL 63 ) WHEN 82 * 77 THEN NULL WHEN COUNT( * ) * - COUNT( * ) + 31 THEN + 52 WHEN - COUNT( * ) * - 86 THEN 2 ELSE NULL END WHEN + MAX( ( 95 ) ) THEN 91 * SUM( DISTINCT NULLIF ( 19, - 49 ) ) ELSE NULL END + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT CASE - 70 WHEN + 71 + + CASE + + 38 WHEN - - ( CASE 67 WHEN - 17 THEN + + NULLIF ( + - 67, 95 + - + COUNT ( * ) + + - 12 + + - COUNT ( * ) * - NULLIF ( 82, - + 65 ) * ( ( + 4 ) + COUNT ( * ) ) + NULLIF ( + 69 + ( 20 + 38 ) * + 71, - 39 ) ) * COUNT ( * ) END ) * 68 THEN NULL WHEN 31 THEN NULL ELSE 92 * + 9 + 6 END + + 15 THEN CASE + MAX ( ALL 63 ) WHEN 82 * 77 THEN NULL WHEN COUNT ( * ) * - COUNT ( * ) + 31 THEN + 52 WHEN - COUNT ( * ) * - 86 THEN 2 ELSE NULL END WHEN + MAX ( ( 95 ) ) THEN 91 * SUM ( DISTINCT NULLIF ( 19, - 49 ) ) ELSE NULL END + 56
----
NULL

query I rowsort
SELECT ALL - - 63 + - 88 + + ( + 93 ) + - ( + 81 )
----
-13

query I rowsort
SELECT ALL + 55 * + - 42 AS col0
----
-2310

query I rowsort
SELECT 57 + 27 * + 23 * + + ( + 59 )
----
36696

query I rowsort
SELECT + 60 * 62 AS col2
----
3720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3528
SELECT CAST( NULL AS DECIMAL ) / - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT CAST ( NULL AS REAL ) / - - 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT ALL + SUM( ALL + 68 ) + + - 0 AS col0, SUM( - 9 ) * 57 + - 23 AS col2
----
68
-536

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL + SUM ( ALL + 68 ) + + - 0 AS col0, SUM ( - 9 ) * 57 + - 23 AS col2
----
68
-536

query I rowsort
SELECT 34 + - ( ( - 98 ) ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - + COUNT( DISTINCT + - 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3531
SELECT - + COUNT ( DISTINCT + - 85 ) AS col1
----
-1

query I rowsort
SELECT - COALESCE ( 98, COALESCE ( + 4, - 78 ) / + 1 ) + - 1 * + 10 * - 35 + - CASE + - COALESCE ( - 53, + 49 ) WHEN + 88 * - - 88 / - ( + - 64 ) * 13 THEN NULL WHEN 37 * 73 THEN - 20 END / 41
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT - 86 AS col0, - 54 * - COALESCE ( 69, + 1 * + + MAX( - 6 ) * - COUNT( * ) ) * 95 + CASE WHEN NOT ( - COUNT( DISTINCT 41 ) ) >= NULL THEN 93 END AS col1
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-3533
SELECT - 86 AS col0, - 54 * - COALESCE ( 69, + 1 * + + MAX ( - 6 ) * - COUNT ( * ) ) * 95 + CASE WHEN NOT ( - COUNT ( DISTINCT 41 ) ) >= NULL THEN 93 END AS col1
----
-86
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT + 62 - COUNT( DISTINCT + 93 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT + 62 - COUNT ( DISTINCT + 93 ) AS col1
----
61

query I rowsort
SELECT ALL - 90 * 25 * 33 AS col0
----
-74250

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT - MIN( ALL - - 72 ) * - 89 col0
----
6408

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT - MIN ( ALL - - 72 ) * - 89 col0
----
6408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT + 64 + 10 / - COALESCE ( + - 82, 21 ) * 99 - + + COUNT( * ) + 12 + 46 * - 64 * - CAST( NULL AS SIGNED ) * - + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 64 + 10 / - COALESCE ( + - 82, 21 ) * 99 - + + COUNT ( * ) + 12 + 46 * - 64 * - CAST ( NULL AS INTEGER ) * - + 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT + 0 - + CASE + COUNT( * ) WHEN + + 15 THEN COUNT( * ) ELSE NULL END + + 80 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + 0 - + CASE + COUNT ( * ) WHEN + + 15 THEN COUNT ( * ) ELSE NULL END + + 80 + - 8
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3542
SELECT DISTINCT - ( + 21 ) * CASE - 96 WHEN 93 / 48 * - + 81 - + COUNT( ALL CAST( NULL AS SIGNED ) ) THEN - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - ( + 21 ) * CASE - 96 WHEN 93 / 48 * - + 81 - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) THEN - 65 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3543
SELECT ALL 22 DIV - 92 AS col0, + 30 AS col0
----
0
30

skipif mysql # not compatible
query II rowsort label-3543
SELECT ALL 22 / - 92 AS col0, + 30 AS col0
----
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - 28 * - + MAX( 18 ) * - 61
----
-30744

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 28 * - + MAX ( 18 ) * - 61
----
-30744

query II rowsort
SELECT ALL CASE - 31 WHEN 44 THEN - 11 ELSE + - 30 END AS col0, 11 AS col1
----
-30
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT COALESCE ( + COUNT( * ), - 71 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT COALESCE ( + COUNT ( * ), - 71 ) col2
----
1

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + ( - - 34 ) * + 51 + COUNT ( * ) AS col2
----
1735

query I rowsort
SELECT DISTINCT - 52 * + ( - 80 ) AS col0
----
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT + - 71 * - - ( - 31 ) + - COUNT( * ) + - ( - - 30 )
----
2170

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + - 71 * - - ( - 31 ) + - COUNT ( * ) + - ( - - 30 )
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL + 88 * - 31 + + + NULLIF ( - 15, CASE 60 WHEN + 61 THEN NULL WHEN - COALESCE ( COUNT( * ), + 14 ) * 83 THEN - + ( + + 25 ) WHEN + SUM( ( 20 ) ) + - + 41 * - - 88 THEN NULL ELSE NULL END ) AS col1
----
-2743

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + 88 * - 31 + + + NULLIF ( - 15, CASE 60 WHEN + 61 THEN NULL WHEN - COALESCE ( COUNT ( * ), + 14 ) * 83 THEN - + ( + + 25 ) WHEN + SUM ( ( 20 ) ) + - + 41 * - - 88 THEN NULL ELSE NULL END ) AS col1
----
-2743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3554
SELECT + MIN( - 20 ) AS col0, CAST( NULL AS SIGNED ) * 18 AS col2
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-3554
SELECT + MIN ( - 20 ) AS col0, CAST ( NULL AS INTEGER ) * 18 AS col2
----
-20
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT - CAST( + - NULLIF ( + 31, 90 * - 81 + - ( + AVG ( + - 2 ) ) ) AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3556
SELECT - CAST ( + - NULLIF ( + 31, 90 * - 81 + - ( + AVG ( + - 2 ) ) ) AS INTEGER ) AS col1
----
31

query I rowsort
SELECT DISTINCT 19 * 85 + - - 4 + 0 AS col1
----
1619

onlyif mysql # aggregate syntax: 
query III rowsort label-3558
SELECT ALL - 87 * - 27 + + 35 * - 94, ( - CASE + 69 WHEN - 61 THEN NULL ELSE 37 END ) * + 84 col2, - 52 - + COUNT( * ) col0
----
-941
-3108
-53

skipif mysql # not compatible
query III rowsort label-3558
SELECT ALL - 87 * - 27 + + 35 * - 94, ( - CASE + 69 WHEN - 61 THEN NULL ELSE 37 END ) * + 84 col2, - 52 - + COUNT ( * ) col0
----
-941
-3108
-53

query I rowsort
SELECT + + 29 * - 84 + 27
----
-2409

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT ALL 98 DIV + - ( + - 67 ) + - - 86 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL 98 / + - ( + - 67 ) + - - 86 AS col1
----
87

query I rowsort
SELECT DISTINCT COALESCE ( - + 67, 53 ) AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT ALL + COUNT( * ) * 23 - + CAST( + 48 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + COUNT ( * ) * 23 - + CAST ( + 48 AS INTEGER )
----
-25

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

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

query I rowsort
SELECT - 36 * - 84
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - 94 * + - MAX( + 59 )
----
5546

skipif mysql # not compatible
query I rowsort label-3566
SELECT - 94 * + - MAX ( + 59 )
----
5546

onlyif mysql # aggregate syntax: 
query II rowsort label-3567
SELECT ALL COALESCE ( + 25, + 81 ) * + SUM( - 43 ), - ( + 49 ) + + 8 col1
----
-1075
-41

skipif mysql # not compatible
query II rowsort label-3567
SELECT ALL COALESCE ( + 25, + 81 ) * + SUM ( - 43 ), - ( + 49 ) + + 8 col1
----
-1075
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT ALL NULLIF ( - - 53, + ( + 70 ) ) - - COUNT( * ) AS col0, SUM( ALL 12 )
----
54
12

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL NULLIF ( - - 53, + ( + 70 ) ) - - COUNT ( * ) AS col0, SUM ( ALL 12 )
----
54
12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT + 58 DIV + - 25
----
-2

skipif mysql # not compatible
query I rowsort label-3570
SELECT + 58 / + - 25
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - MIN( - 33 ) * + - 13 + - COUNT( * )
----
-430

skipif mysql # not compatible
query I rowsort label-3571
SELECT - MIN ( - 33 ) * + - 13 + - COUNT ( * )
----
-430

query I rowsort
SELECT DISTINCT 23 * - 97 col0
----
-2231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL ( + CASE 89 WHEN + 90 * - 20 + + CAST( 41 AS SIGNED ) + - ( 16 ) THEN + + ( + - CASE WHEN CAST( NULL AS SIGNED ) IS NOT NULL THEN + COUNT( * ) END ) WHEN + 99 THEN NULL WHEN - 72 THEN ( - 12 ) ELSE 73 * + + 86 - CASE - 94 WHEN + 72 * NULLIF ( - 27 * 45, 22 * + 94 ) THEN - 56 * + COALESCE ( - 55, 64 + - 40 ) WHEN 79 THEN 80 + + 44 WHEN + 63 THEN 8 * + 5 END END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL ( + CASE 89 WHEN + 90 * - 20 + + CAST ( 41 AS INTEGER ) + - ( 16 ) THEN + + ( + - CASE WHEN CAST ( NULL AS INTEGER ) IS NOT NULL THEN + COUNT ( * ) END ) WHEN + 99 THEN NULL WHEN - 72 THEN ( - 12 ) ELSE 73 * + + 86 - CASE - 94 WHEN + 72 * NULLIF ( - 27 * 45, 22 * + 94 ) THEN - 56 * + COALESCE ( - 55, 64 + - 40 ) WHEN 79 THEN 80 + + 44 WHEN + 63 THEN 8 * + 5 END END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT SUM( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT SUM ( - 7 )
----
-7

query I rowsort
SELECT DISTINCT - 41 * 72 col1
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT COALESCE ( 97, + - SUM( - 89 ) - 18 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT COALESCE ( 97, + - SUM ( - 89 ) - 18 ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT ALL CASE CAST( + - 9 AS SIGNED ) WHEN + 55 THEN COALESCE ( 57, - 77, + + 96 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL CASE CAST ( + - 9 AS INTEGER ) WHEN + 55 THEN COALESCE ( 57, - 77, + + 96 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + 16 + + + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3578
SELECT + 16 + + + COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3579
SELECT - COUNT( * ) - + + 81 DIV - 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT - COUNT ( * ) - + + 81 / - 79 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL ( + - MAX( 38 ) ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL ( + - MAX ( 38 ) ) col0
----
-38

query I rowsort
SELECT - 92 + - 59 * 36
----
-2216

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + - SUM( - 1 ) + - - 19 col0
----
20

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + - SUM ( - 1 ) + - - 19 col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3583
SELECT - CAST( - ( SUM( ALL + 31 ) ) AS SIGNED ) + - - 81, ( - 44 ) AS col2
----
112
-44

skipif mysql # not compatible
query II rowsort label-3583
SELECT - CAST ( - ( SUM ( ALL + 31 ) ) AS INTEGER ) + - - 81, ( - 44 ) AS col2
----
112
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3584
SELECT ALL + CAST( NULL AS DECIMAL ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL + CAST ( NULL AS REAL ) * 12
----
NULL

query I rowsort
SELECT DISTINCT + 12 + + 21 * + + 96 + - 56 + - 77 AS col0
----
1895

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT ALL 22 DIV + 22 + - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL 22 / + 22 + - 36 AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT + + 91 DIV 42 + + - 18 + + + 11 + - ( + 72 ) - + 57 * + 2 - - + 55
----
-136

skipif mysql # not compatible
query I rowsort label-3587
SELECT + + 91 / 42 + + - 18 + + + 11 + - ( + 72 ) - + 57 * + 2 - - + 55
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3588
SELECT ALL COUNT( * ) DIV - MAX( 47 ) + - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL COUNT ( * ) / - MAX ( 47 ) + - 33 AS col1
----
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT - - COUNT( * ) * - 35 * - NULLIF ( 51, + - 12 + + + CAST( - COUNT( * ) AS SIGNED ) )
----
1785

skipif mysql # not compatible
query I rowsort label-3590
SELECT - - COUNT ( * ) * - 35 * - NULLIF ( 51, + - 12 + + + CAST ( - COUNT ( * ) AS INTEGER ) )
----
1785

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT + - 18 + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3591
SELECT + - 18 + COUNT ( * ) AS col2
----
-17

query II rowsort
SELECT + 47 AS col2, 57 AS col2
----
47
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT + 29 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT + 29 / 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3594
SELECT DISTINCT + CAST( + 44 AS SIGNED ) DIV + - 38 + + 20 + + 53 - - - 15 - + NULLIF ( + COUNT( * ), + 94 DIV + ( - + 25 ) - 66 ) * - 13 * - COUNT( DISTINCT + 7 ) - 5
----
39

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + CAST ( + 44 AS INTEGER ) / + - 38 + + 20 + + 53 - - - 15 - + NULLIF ( + COUNT ( * ), + 94 / + ( - + 25 ) - 66 ) * - 13 * - COUNT ( DISTINCT + 7 ) - 5
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT ALL 29 / - NULLIF ( 49, 53 ) - - CASE + + 10 WHEN AVG ( ( + - 43 ) ) + - 70 THEN + 91 WHEN 93 * + + 32 - 30 * - - 30 THEN NULL END + CASE - ( + CAST( NULL AS SIGNED ) ) WHEN - 4 * 79 + 69 THEN 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL 29 / - NULLIF ( 49, 53 ) - - CASE + + 10 WHEN AVG ( ( + - 43 ) ) + - 70 THEN + 91 WHEN 93 * + + 32 - 30 * - - 30 THEN NULL END + CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN - 4 * 79 + 69 THEN 88 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT + 56 * - CAST( 11 AS SIGNED ) AS col1
----
-616

skipif mysql # not compatible
query I rowsort label-3596
SELECT + 56 * - CAST ( 11 AS INTEGER ) AS col1
----
-616

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3597
SELECT ALL NULLIF ( 78, - + MIN( + ( + 0 ) ) - - CAST( NULL AS DECIMAL ) ) * - 20 AS col0
----
-1560

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL NULLIF ( 78, - + MIN ( + ( + 0 ) ) - - CAST ( NULL AS REAL ) ) * - 20 AS col0
----
-1560

query I rowsort
SELECT DISTINCT + + 88 - 46 AS col1
----
42

query I rowsort
SELECT ALL - - 38 - + 13
----
25

query II rowsort
SELECT DISTINCT - 84, + 30 AS col1
----
-84
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT ALL COUNT( * ) * + 28, - 83 AS col2
----
28
-83

skipif mysql # not compatible
query II rowsort label-3601
SELECT ALL COUNT ( * ) * + 28, - 83 AS col2
----
28
-83

query I rowsort
SELECT 85 + 95 AS col2
----
180

query II rowsort
SELECT - 74, + COALESCE ( + 67, 87 * - + COALESCE ( - + 4, + + 17 ) ) + + 70 AS col0
----
-74
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3604
SELECT - 54 * + 85 + - - 69 * - 24 / + + ( CASE - 6 WHEN 8 / - 96 THEN - + 98 / + + 14 + + COALESCE ( - 42, 53, + CASE AVG ( 90 ) WHEN - - MIN( 3 ) * + + 93 * - - 10 THEN NULL WHEN 95 + 77 THEN 90 END + + 96, AVG ( DISTINCT 97 ) ) * + COALESCE ( + COUNT( * ) * 77, 89, COUNT( * ) ) + + CAST( 67 + + 93 AS SIGNED ) END ) * - 43 + 85 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT - 54 * + 85 + - - 69 * - 24 / + + ( CASE - 6 WHEN 8 / - 96 THEN - + 98 / + + 14 + + COALESCE ( - 42, 53, + CASE AVG ( 90 ) WHEN - - MIN ( 3 ) * + + 93 * - - 10 THEN NULL WHEN 95 + 77 THEN 90 END + + 96, AVG ( DISTINCT 97 ) ) * + COALESCE ( + COUNT ( * ) * 77, 89, COUNT ( * ) ) + + CAST ( 67 + + 93 AS INTEGER ) END ) * - 43 + 85 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 20 + 38 * - 37
----
-1386

onlyif mysql # DIV for integer division: 
query II rowsort label-3606
SELECT ALL 31 AS col2, 23 DIV 79
----
31
0

skipif mysql # not compatible
query II rowsort label-3606
SELECT ALL 31 AS col2, 23 / 79
----
31
0

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3609
SELECT DISTINCT ( - CAST( 48 AS SIGNED ) ) DIV + COUNT( * ), CAST( - - 90 AS SIGNED ) col2
----
-48
90

skipif mysql # not compatible
query II rowsort label-3609
SELECT DISTINCT ( - CAST ( 48 AS INTEGER ) ) / + COUNT ( * ), CAST ( - - 90 AS INTEGER ) col2
----
-48
90

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT DISTINCT 43 AS col0, - COUNT( * ) * - - 89
----
43
-89

skipif mysql # not compatible
query II rowsort label-3611
SELECT DISTINCT 43 AS col0, - COUNT ( * ) * - - 89
----
43
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ( + 5 ) * + 48 * - 7 + + - 84 * MIN( DISTINCT + - 29 ) AS col1
----
756

skipif mysql # not compatible
query I rowsort label-3613
SELECT ( + 5 ) * + 48 * - 7 + + - 84 * MIN ( DISTINCT + - 29 ) AS col1
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT 65 + 41 + - 3 / + + COUNT( * ) + - - CASE - - 40 WHEN - + 26 THEN - 85 WHEN - - 73 THEN + 84 END + - 89 + + - ( 24 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT 65 + 41 + - 3 / + + COUNT ( * ) + - - CASE - - 40 WHEN - + 26 THEN - 85 WHEN - - 73 THEN + 84 END + - 89 + + - ( 24 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 77 AS col0, + 61 * - - 90
----
77
5490

onlyif mysql # DIV for integer division: 
query I rowsort label-3616
SELECT 39 DIV + + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3616
SELECT 39 / + + 63 AS col2
----
0

query I rowsort
SELECT 74 + + 22
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3618
SELECT ALL + 28 + + + ( - COALESCE ( 98, NULLIF ( - 5, - - 10 ) - + - 38 * CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + 80 * 46 ) ) * - - 24 + 97 AS col1, - ( - - COALESCE ( + COUNT( * ), + 97 ) ) * 54 * - ( MAX( DISTINCT NULLIF ( + 80, 2 ) ) ) * - 25 AS col2
----
-2227
-108000

skipif mysql # not compatible
query II rowsort label-3618
SELECT ALL + 28 + + + ( - COALESCE ( 98, NULLIF ( - 5, - - 10 ) - + - 38 * CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + 80 * 46 ) ) * - - 24 + 97 AS col1, - ( - - COALESCE ( + COUNT ( * ), + 97 ) ) * 54 * - ( MAX ( DISTINCT NULLIF ( + 80, 2 ) ) ) * - 25 AS col2
----
-2227
-108000

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT 94 AS col2, 59 * 40 + MAX( ( 3 ) )
----
94
2363

skipif mysql # not compatible
query II rowsort label-3619
SELECT 94 AS col2, 59 * 40 + MAX ( ( 3 ) )
----
94
2363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3620
SELECT ALL - 83 + + CAST( NULL AS DECIMAL ) * COUNT( * ) * + CASE + + 98 WHEN + + 56 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) * 55 - + + 56 + + 2 + - + MIN( DISTINCT + 43 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - 83 + + CAST ( NULL AS REAL ) * COUNT ( * ) * + CASE + + 98 WHEN + + 56 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) * 55 - + + 56 + + 2 + - + MIN ( DISTINCT + 43 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 19 + + 22
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL + 28 + + SUM( ALL + - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL + 28 + + SUM ( ALL + - 28 )
----
0

query I rowsort
SELECT DISTINCT + - 27 + + 12
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT 58 AS col1, 59 + - + NULLIF ( + - 1, COUNT( * ) )
----
58
60

skipif mysql # not compatible
query II rowsort label-3624
SELECT 58 AS col1, 59 + - + NULLIF ( + - 1, COUNT ( * ) )
----
58
60

query I rowsort
SELECT + + 55 col0
----
55

query II rowsort
SELECT ALL - 42, - 67 AS col2
----
-42
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3627
SELECT DISTINCT - 65 - - CAST( + COUNT( * ) AS SIGNED ) * + 44 + 31 * - 47, 15 AS col0
----
-1478
15

skipif mysql # not compatible
query II rowsort label-3627
SELECT DISTINCT - 65 - - CAST ( + COUNT ( * ) AS INTEGER ) * + 44 + 31 * - 47, 15 AS col0
----
-1478
15

query I rowsort
SELECT DISTINCT - NULLIF ( - - 15, + 62 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT - NULLIF ( - COUNT( * ), + 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT - NULLIF ( - COUNT ( * ), + 44 ) AS col0
----
1

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

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

query I rowsort
SELECT DISTINCT - 74 * + 53 AS col1
----
-3922

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT - - 20 * - + COUNT( * ) - + - CAST( NULL AS SIGNED ) + + 46 * + - 96 + - 47 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT - - 20 * - + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + + 46 * + - 96 + - 47 * - 86
----
NULL

query I rowsort
SELECT - 51 * - - 39 * - 61 + - 67 col2
----
121262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3635
SELECT ALL - NULLIF ( + CAST( 83 AS SIGNED ), - 75 + 64 ) DIV - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - NULLIF ( + CAST ( 83 AS INTEGER ), - 75 + 64 ) / - COUNT ( * ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT 4 DIV + - ( 49 )
----
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT 4 / + - ( 49 )
----
0

query I rowsort
SELECT 40 * + + 49 AS col2
----
1960

query I rowsort
SELECT 14 * - 63 AS col1
----
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL ( 62 ) * - COUNT( * ) + 58 + + MIN( - - CAST( NULL AS SIGNED ) ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL ( 62 ) * - COUNT ( * ) + 58 + + MIN ( - - CAST ( NULL AS INTEGER ) ) * 71
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3641
SELECT ALL + 68 * + COUNT( * ), 40 AS col0, - - CAST( + 91 AS SIGNED ) + + 6 + - + 72 AS col0
----
68
40
25

skipif mysql # not compatible
query III rowsort label-3641
SELECT ALL + 68 * + COUNT ( * ), 40 AS col0, - - CAST ( + 91 AS INTEGER ) + + 6 + - + 72 AS col0
----
68
40
25

query I rowsort
SELECT ALL + 59 + ( - 33 )
----
26

query I rowsort
SELECT ALL - 96 + - + 90
----
-186

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

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 15 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT CAST( + 99 AS SIGNED ) * - 70
----
-6930

skipif mysql # not compatible
query I rowsort label-3646
SELECT CAST ( + 99 AS INTEGER ) * - 70
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL 4 + + SUM( - + 16 )
----
-12

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL 4 + + SUM ( - + 16 )
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT - COUNT( DISTINCT 62 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3649
SELECT - COUNT ( DISTINCT 62 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT ALL 57 + - 43 DIV - 62
----
57

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL 57 + - 43 / - 62
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT 55 - - SUM( - 44 ) * 22
----
-913

skipif mysql # not compatible
query I rowsort label-3651
SELECT 55 - - SUM ( - 44 ) * 22
----
-913

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT ALL - ( + COUNT( * ) ) + + + 87 - 88 * + ( + COUNT( * ) ) * - 63, + 30 AS col0
----
5630
30

skipif mysql # not compatible
query II rowsort label-3652
SELECT ALL - ( + COUNT ( * ) ) + + + 87 - 88 * + ( + COUNT ( * ) ) * - 63, + 30 AS col0
----
5630
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3653
SELECT - SUM( 27 ), - COALESCE ( + 13, + - CAST( NULL AS SIGNED ) * 0 ) * - - 0 * + 62 AS col0
----
-27
0

skipif mysql # not compatible
query II rowsort label-3653
SELECT - SUM ( 27 ), - COALESCE ( + 13, + - CAST ( NULL AS INTEGER ) * 0 ) * - - 0 * + 62 AS col0
----
-27
0

query I rowsort
SELECT ALL 91 + + - 90
----
1

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

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

query I rowsort
SELECT ALL 35 + - 45
----
-10

query I rowsort
SELECT - 88 - + 97 col1
----
-185

query II rowsort
SELECT - ( - + 74 ), COALESCE ( + COALESCE ( - ( - 35 ), + - 65 ), 32, + - 8 ) AS col1
----
74
35

query I rowsort
SELECT 47 + - + 72 + - 65 AS col0
----
-90

query I rowsort
SELECT ALL + 96 - 65
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT 78 * MAX( + 9 )
----
702

skipif mysql # not compatible
query I rowsort label-3661
SELECT 78 * MAX ( + 9 )
----
702

query I rowsort
SELECT + 11 * - + 38 * 2
----
-836

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT DISTINCT COALESCE ( - 13, - 73 + - + 79 * + + 80 ) AS col1, - MAX( 86 ) AS col2
----
-13
-86

skipif mysql # not compatible
query II rowsort label-3663
SELECT DISTINCT COALESCE ( - 13, - 73 + - + 79 * + + 80 ) AS col1, - MAX ( 86 ) AS col2
----
-13
-86

query I rowsort
SELECT + + 16 + - 87 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3665
SELECT + - COALESCE ( + 73, CAST( + ( + 96 ) AS SIGNED ), + 8 ) + - COUNT( * ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-3665
SELECT + - COALESCE ( + 73, CAST ( + ( + 96 ) AS INTEGER ), + 8 ) + - COUNT ( * ) col0
----
-74

query I rowsort
SELECT - - ( + - 70 ) + - - ( 90 ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + + MAX( DISTINCT - 52 ) + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3667
SELECT + + MAX ( DISTINCT - 52 ) + - COUNT ( * )
----
-53

query I rowsort
SELECT + - 89 * + 97 + - - 81 * - 66 - 51
----
-14030

query I rowsort
SELECT - - 59 * + 90 + + 94 col1
----
5404

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT NULLIF ( + COUNT( * ), - COUNT( * ) ), 32 AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-3671
SELECT NULLIF ( + COUNT ( * ), - COUNT ( * ) ), 32 AS col0
----
1
32

query II rowsort
SELECT ALL - ( - 53 ) * - 11 * - 68 col2, - 62 + 76 + - 17 + - 95 AS col1
----
39644
-98

query I rowsort
SELECT DISTINCT 83 * - 33
----
-2739

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

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

query I rowsort
SELECT DISTINCT 0 * 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT + ( - MIN( ALL + - 75 ) )
----
75

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + ( - MIN ( ALL + - 75 ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT MIN( 72 ) * - COALESCE ( + 40, + 71 ) * 22 + 84
----
-63276

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT MIN ( 72 ) * - COALESCE ( + 40, + 71 ) * 22 + 84
----
-63276

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + 79 * - 89 + - - 53 - COUNT( * ) * - MAX( ALL 67 ) AS col0
----
-6911

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + 79 * - 89 + - - 53 - COUNT ( * ) * - MAX ( ALL 67 ) AS col0
----
-6911

query I rowsort
SELECT + 99 - - - 50 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - 17 + 33 + 68 * + MAX( - + 87 ) AS col0
----
-5900

skipif mysql # not compatible
query I rowsort label-3680
SELECT - 17 + 33 + 68 * + MAX ( - + 87 ) AS col0
----
-5900

query I rowsort
SELECT + 70 * - 96 * - ( + + 24 ) + + 89 col1
----
161369

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT - 93 DIV + - 88 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3682
SELECT - 93 / + - 88 AS col1
----
1

query I rowsort
SELECT - 99 + + 55 AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3684
SELECT DISTINCT - 83 DIV MAX( ALL + 59 ), - CAST( - 80 AS SIGNED ) - + - 34 AS col0
----
-1
114

skipif mysql # not compatible
query II rowsort label-3684
SELECT DISTINCT - 83 / MAX ( ALL + 59 ), - CAST ( - 80 AS INTEGER ) - + - 34 AS col0
----
-1
114

query I rowsort
SELECT ALL + 28 + 41 * + - 93
----
-3785

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3686
SELECT - CAST( NULL AS DECIMAL ) * 64 + - 23 + + 61 * + ( 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT - CAST ( NULL AS REAL ) * 64 + - 23 + + 61 * + ( 45 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT COUNT( DISTINCT + CAST( + 34 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT COUNT ( DISTINCT + CAST ( + 34 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT ALL - 65 * + 18 AS col1
----
-1170

query I rowsort
SELECT - 63 + 48 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL + ( + 76 ) + - + MIN( ALL + ( + 29 ) )
----
47

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL + ( + 76 ) + - + MIN ( ALL + ( + 29 ) )
----
47

query I rowsort
SELECT DISTINCT - 20 * - 54
----
1080

query I rowsort
SELECT DISTINCT - 11 - - 40 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT - SUM( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3693
SELECT - SUM ( - 0 )
----
0

query I rowsort
SELECT ALL - 0 * + 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3695
SELECT + - NULLIF ( 4, - CAST( NULL AS SIGNED ) + - - 34 - + COUNT( * ) ) + - 88 + - 38 * + NULLIF ( 44, - 82 - 64 ) * COALESCE ( 0, 22 + + COUNT( * ) DIV + COUNT( * ), CAST( NULL AS SIGNED ) + - + COUNT( * ) * + 35 * 85 * - MAX( + 36 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-3695
SELECT + - NULLIF ( 4, - CAST ( NULL AS INTEGER ) + - - 34 - + COUNT ( * ) ) + - 88 + - 38 * + NULLIF ( 44, - 82 - 64 ) * COALESCE ( 0, 22 + + COUNT ( * ) / + COUNT ( * ), CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + 35 * 85 * - MAX ( + 36 ) )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3696
SELECT - 39 * SUM( CAST( NULL AS SIGNED ) ) * - + NULLIF ( - 4, - ( 63 ) ) - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 39 * SUM ( CAST ( NULL AS INTEGER ) ) * - + NULLIF ( - 4, - ( 63 ) ) - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3697
SELECT ALL 54 col0, CASE 38 WHEN - CASE + 21 WHEN - 53 * - - CASE 10 WHEN + + 2 THEN + 11 + 99 END / - COUNT( * ) THEN + 52 * CAST( NULL AS DECIMAL ) END / - 6 * - + 14 THEN 89 END
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3697
SELECT ALL 54 col0, CASE 38 WHEN - CASE + 21 WHEN - 53 * - - CASE 10 WHEN + + 2 THEN + 11 + 99 END / - COUNT ( * ) THEN + 52 * CAST ( NULL AS REAL ) END / - 6 * - + 14 THEN 89 END
----
54
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT - 66, 28 + + SUM( ALL - 96 ) * + COUNT( * ) AS col0
----
-66
-68

skipif mysql # not compatible
query II rowsort label-3698
SELECT - 66, 28 + + SUM ( ALL - 96 ) * + COUNT ( * ) AS col0
----
-66
-68

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

query II rowsort
SELECT DISTINCT - 13, 91 AS col2
----
-13
91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT ALL + 74 DIV + ( - ( + - 13 ) ) col0
----
5

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL + 74 / + ( - ( + - 13 ) ) col0
----
5

query I rowsort
SELECT DISTINCT + 68 * - + 58
----
-3944

query I rowsort
SELECT + - 35 - 68 AS col1
----
-103

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT DISTINCT + 13 col0, COUNT( * ) * 89
----
13
89

skipif mysql # not compatible
query II rowsort label-3706
SELECT DISTINCT + 13 col0, COUNT ( * ) * 89
----
13
89

query I rowsort
SELECT - + 80 * + 23
----
-1840

query I rowsort
SELECT ALL 38 * - 66
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT + 36 - - MIN( ALL - 43 )
----
-7

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 36 - - MIN ( ALL - 43 )
----
-7

query I rowsort
SELECT ALL 42 * - - 3 * - 11
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT DISTINCT 11 DIV - 83 * + 91 + + 40
----
40

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT 11 / - 83 * + 91 + + 40
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3712
SELECT ALL 79 DIV + 53 + SUM( + 50 ) - + 20
----
31

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL 79 / + 53 + SUM ( + 50 ) - + 20
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3713
SELECT + 0 + CAST( NULL AS SIGNED ) AS col0, + 21 + - 33 DIV + 44 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3713
SELECT + 0 + CAST ( NULL AS INTEGER ) AS col0, + 21 + - 33 / + 44 AS col1
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT 59 * + 23 + - - NULLIF ( 24, + - 27 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT 59 * + 23 + - - NULLIF ( 24, + - 27 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 2 * 6 + - 32 AS col2
----
-44

query I rowsort
SELECT - 58 - - 1 + - - 44
----
-13

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

query II rowsort
SELECT ( 66 ) AS col2, + 1 AS col2
----
66
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3719
SELECT ALL CAST( NULL AS SIGNED ) * 67 + + 20 / + COALESCE ( - COUNT( * ), - ( - COUNT( * ) ) ), 34 + - 1 + - COALESCE ( NULLIF ( 40, + 3 / + 98 ), - MIN( DISTINCT - 5 ) - - 77 ) * + CASE - 97 WHEN - 93 * - 41 + + + 46 / ( CASE WHEN 71 NOT BETWEEN 40 AND ( + MIN( - 45 ) + 17 ) THEN - 73 WHEN 99 < ( NULL ) THEN NULL END ) + - 70 * 2 THEN NULL WHEN CAST( 52 AS SIGNED ) THEN 34 / + 16 END * - 29 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3719
SELECT ALL CAST ( NULL AS INTEGER ) * 67 + + 20 / + COALESCE ( - COUNT ( * ), - ( - COUNT ( * ) ) ), 34 + - 1 + - COALESCE ( NULLIF ( 40, + 3 / + 98 ), - MIN ( DISTINCT - 5 ) - - 77 ) * + CASE - 97 WHEN - 93 * - 41 + + + 46 / ( CASE WHEN 71 NOT BETWEEN 40 AND ( + MIN ( - 45 ) + 17 ) THEN - 73 WHEN 99 < ( NULL ) THEN NULL END ) + - 70 * 2 THEN NULL WHEN CAST ( 52 AS INTEGER ) THEN 34 / + 16 END * - 29 AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT + 87 * - 12 * CAST( + COALESCE ( COALESCE ( - 12, - 51 ), + - 40, + 63 * + + 39 ) AS SIGNED )
----
12528

skipif mysql # not compatible
query I rowsort label-3720
SELECT + 87 * - 12 * CAST ( + COALESCE ( COALESCE ( - 12, - 51 ), + - 40, + 63 * + + 39 ) AS INTEGER )
----
12528

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT + 25 * ( + 78 ) + - COUNT( * ) AS col0
----
1949

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + 25 * ( + 78 ) + - COUNT ( * ) AS col0
----
1949

query I rowsort
SELECT - 22 + - - 94 AS col2
----
72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT NULLIF ( 70, - MIN( - - 45 ) ), + 25 AS col0
----
70
25

skipif mysql # not compatible
query II rowsort label-3724
SELECT NULLIF ( 70, - MIN ( - - 45 ) ), + 25 AS col0
----
70
25

query I rowsort
SELECT ALL NULLIF ( - 27, + - 7 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL 78 * + SUM( DISTINCT - 10 ) - + + 92 + + 59 * - 4 * + 5
----
-2052

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL 78 * + SUM ( DISTINCT - 10 ) - + + 92 + + 59 * - 4 * + 5
----
-2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT NULLIF ( - ( + ( + - CAST( NULL AS SIGNED ) ) ), - 57 + - ( - 41 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT NULLIF ( - ( + ( + - CAST ( NULL AS INTEGER ) ) ), - 57 + - ( - 41 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT + 84 * 55 + CASE + 42 WHEN + 35 + MIN( - 36 ) + 27 THEN NULL ELSE - ( + 89 ) - - - 22 + - - 24 * - + 58 + - - 63 * 75 + + 84 END - + + NULLIF ( SUM( + 16 ), + COUNT( * ) ) col1
----
7910

skipif mysql # not compatible
query I rowsort label-3728
SELECT + 84 * 55 + CASE + 42 WHEN + 35 + MIN ( - 36 ) + 27 THEN NULL ELSE - ( + 89 ) - - - 22 + - - 24 * - + 58 + - - 63 * 75 + + 84 END - + + NULLIF ( SUM ( + 16 ), + COUNT ( * ) ) col1
----
7910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3729
SELECT - COALESCE ( + COUNT( * ), + 87 * ( - COUNT( * ) ) - AVG ( 39 ) ) DIV 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3729
SELECT - COALESCE ( + COUNT ( * ), + 87 * ( - COUNT ( * ) ) - AVG ( 39 ) ) / 3 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL 9 * - + 70 - + + 0 + - COUNT( ALL - - 45 ) + - CAST( NULL AS SIGNED ) + - 22 * - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL 9 * - + 70 - + + 0 + - COUNT ( ALL - - 45 ) + - CAST ( NULL AS INTEGER ) + - 22 * - - 73
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT ALL + - ( - 84 ) / - ( - ( - 68 ) ) * 7 * 99 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + - ( - 84 ) / - ( - ( - 68 ) ) * 7 * 99 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT 7 + + - NULLIF ( + CAST( + + 31 AS SIGNED ), + 81 ) + + - 91
----
-115

skipif mysql # not compatible
query I rowsort label-3733
SELECT 7 + + - NULLIF ( + CAST ( + + 31 AS INTEGER ), + 81 ) + + - 91
----
-115

query I rowsort
SELECT ALL + + 79 * + 53
----
4187

query I rowsort
SELECT ALL - 44 * + - 36
----
1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT ALL - + 66 * 3 / + CAST( NULL AS SIGNED ) * 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL - + 66 * 3 / + CAST ( NULL AS INTEGER ) * 92 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3737
SELECT + COUNT ( * ) + - 0 * - 73 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT MAX( ALL + - 89 ) + 34 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3738
SELECT MAX ( ALL + - 89 ) + 34 AS col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3739
SELECT DISTINCT - CAST( + - 42 AS SIGNED ) + + 86
----
128

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT - CAST ( + - 42 AS INTEGER ) + + 86
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT ALL 83 + - + 22 col2, 70 * COUNT( * ) * + 77 * - 31 * - 49 * + - 15 AS col1
----
61
-122811150

skipif mysql # not compatible
query II rowsort label-3740
SELECT ALL 83 + - + 22 col2, 70 * COUNT ( * ) * + 77 * - 31 * - 49 * + - 15 AS col1
----
61
-122811150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3741
SELECT 56 + + 79 * + + 66 / + 53 + + - CASE + - COALESCE ( + + CAST( NULL AS SIGNED ), + 79, + COUNT( * ) * + 80 + + 28 * - - SUM( - 10 ) ) WHEN - 50 THEN - 17 + + 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT 56 + + 79 * + + 66 / + 53 + + - CASE + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 79, + COUNT ( * ) * + 80 + + 28 * - - SUM ( - 10 ) ) WHEN - 50 THEN - 17 + + 59 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3742
SELECT DISTINCT + - 24 + - + 60 - - - 43 - - 0 AS col0, + SUM( + + 42 ) * + - 33 + 34 * + 2 * + 31 * - - MIN( DISTINCT + + CAST( 58 AS SIGNED ) ) * + 21 - - + NULLIF ( + CAST( NULL AS SIGNED ), + - CASE - + 41 WHEN + + CAST( + + 43 AS SIGNED ) * - 72 * + COUNT( DISTINCT + NULLIF ( - 11, 33 + ( + 8 ) * 30 ) ) / 98 THEN 24 END + 57 )
----
-127
NULL

skipif mysql # not compatible
query II rowsort label-3742
SELECT DISTINCT + - 24 + - + 60 - - - 43 - - 0 AS col0, + SUM ( + + 42 ) * + - 33 + 34 * + 2 * + 31 * - - MIN ( DISTINCT + + CAST ( 58 AS INTEGER ) ) * + 21 - - + NULLIF ( + CAST ( NULL AS INTEGER ), + - CASE - + 41 WHEN + + CAST ( + + 43 AS INTEGER ) * - 72 * + COUNT ( DISTINCT + NULLIF ( - 11, 33 + ( + 8 ) * 30 ) ) / 98 THEN 24 END + 57 )
----
-127
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT + COUNT( * ) + - + 43
----
-42

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT + COUNT ( * ) + - + 43
----
-42

query I rowsort
SELECT ALL - 73 + - + 30 AS col1
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT DISTINCT 41 + + + CASE 63 WHEN + COUNT( * ) THEN 64 * 94 * + 18 ELSE + CAST( + 22 AS SIGNED ) END
----
63

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT 41 + + + CASE 63 WHEN + COUNT ( * ) THEN 64 * 94 * + 18 ELSE + CAST ( + 22 AS INTEGER ) END
----
63

query I rowsort
SELECT 14 * 93
----
1302

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3747
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT CAST ( NULL AS REAL ) * - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT COALESCE ( - 82, 36 + + 94 * 75 + - 37 * COUNT( * ) * - 52 * COUNT( * ) ) * + 18 * COUNT( DISTINCT + + 39 ) col0
----
-1476

skipif mysql # not compatible
query I rowsort label-3748
SELECT COALESCE ( - 82, 36 + + 94 * 75 + - 37 * COUNT ( * ) * - 52 * COUNT ( * ) ) * + 18 * COUNT ( DISTINCT + + 39 ) col0
----
-1476

query I rowsort
SELECT ALL 40 + - - 22
----
62

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT ( + - 27 ) DIV - 20
----
1

skipif mysql # not compatible
query I rowsort label-3752
SELECT ( + - 27 ) / - 20
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT ALL 34 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL 34 / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT DISTINCT - COALESCE ( - 93, + COUNT( DISTINCT - 50 ) )
----
93

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - COALESCE ( - 93, + COUNT ( DISTINCT - 50 ) )
----
93

query II rowsort
SELECT 95, 94 AS col0
----
95
94

query I rowsort
SELECT 90 + 97 AS col2
----
187

query I rowsort
SELECT ALL 92 * - 68 AS col2
----
-6256

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

query II rowsort
SELECT ALL - 63 AS col2, - 39
----
-63
-39

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

skipif mysql # not compatible
query I rowsort label-3760
SELECT 22 + CAST ( - 50 AS INTEGER ) AS col2
----
-28

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

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

query II rowsort
SELECT - 0 col1, 52 - - - 21 * 59 AS col1
----
0
-1187

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - 57 + 80 + - COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3763
SELECT - 57 + 80 + - COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL + MAX( DISTINCT - 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + MAX ( DISTINCT - 57 ) col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3765
SELECT ALL + 7 + - + 90 + - 5 + 44 * - 54 DIV + COUNT( * )
----
-2464

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + 7 + - + 90 + - 5 + 44 * - 54 / + COUNT ( * )
----
-2464

query I rowsort
SELECT - 98 + + + 99
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-3768
SELECT - - NULLIF ( + - 59, CAST ( NULL AS INTEGER ) )
----
-59

query I rowsort
SELECT ALL 11 + + + 96 * + + 85 AS col2
----
8171

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT - 5 + + 84 + - ( 41 ) + + 58 * + - COUNT( * ) + - 5 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT - 5 + + 84 + - ( 41 ) + + 58 * + - COUNT ( * ) + - 5 AS col2
----
-25

query I rowsort
SELECT + 64 * + + 26 + - 25 + 96 - - 88 * - 7
----
1119

query I rowsort
SELECT ALL + + 72 + + - 35 AS col2
----
37

query I rowsort
SELECT DISTINCT 12 + - + 3 + 90
----
99

query I rowsort
SELECT 14 - - 84
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL + ( COUNT( * ) ) * - + 97 - + COUNT( * ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + ( COUNT ( * ) ) * - + 97 - + COUNT ( * ) col0
----
-98

query I rowsort
SELECT 23 + - NULLIF ( - 22, + - 78 - + 55 + + - NULLIF ( + 25, - 42 ) + - 61 + 62 * - 96 ) * ( - + 49 )
----
-1055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3778
SELECT COUNT( + + ( - - 42 ) ) * NULLIF ( + 58, + + COUNT( + CAST( + - NULLIF ( 28, + - 56 + - 1 ) AS SIGNED ) ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3778
SELECT COUNT ( + + ( - - 42 ) ) * NULLIF ( + 58, + + COUNT ( + CAST ( + - NULLIF ( 28, + - 56 + - 1 ) AS INTEGER ) ) ) AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT + 59 DIV + - ( - COUNT( DISTINCT + + 51 ) ) + + 35
----
94

skipif mysql # not compatible
query I rowsort label-3779
SELECT + 59 / + - ( - COUNT ( DISTINCT + + 51 ) ) + + 35
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3780
SELECT DISTINCT 71 * - + 20 + CAST( NULL AS SIGNED ) * + 82 * COUNT( * ) + - 49 + - + ( - + 47 ) / - - 53 AS col2, CAST( + + MIN( ALL + ( + 98 ) ) AS SIGNED ) AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3780
SELECT DISTINCT 71 * - + 20 + CAST ( NULL AS INTEGER ) * + 82 * COUNT ( * ) + - 49 + - + ( - + 47 ) / - - 53 AS col2, CAST ( + + MIN ( ALL + ( + 98 ) ) AS INTEGER ) AS col0
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL 40 * - 16 + + + ( CASE + 29 WHEN + 33 THEN NULL ELSE - 26 * + COUNT( * ) + + - 56 END )
----
-722

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL 40 * - 16 + + + ( CASE + 29 WHEN + 33 THEN NULL ELSE - 26 * + COUNT ( * ) + + - 56 END )
----
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL COUNT( * ) * + ( + + 87 ) * 81 - + + CASE + + COUNT( * ) WHEN 72 THEN - COUNT( * ) END * - 12 * + 64 + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL COUNT ( * ) * + ( + + 87 ) * 81 - + + CASE + + COUNT ( * ) WHEN 72 THEN - COUNT ( * ) END * - 12 * + 64 + + 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3783
SELECT + 80 AS col2, CASE 43 WHEN COUNT( * ) * - 8 THEN + 55 END + 8 AS col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-3783
SELECT + 80 AS col2, CASE 43 WHEN COUNT ( * ) * - 8 THEN + 55 END + 8 AS col0
----
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT + 87 * - MAX( ALL 17 ) - + 54
----
-1533

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT + 87 * - MAX ( ALL 17 ) - + 54
----
-1533

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL 83 * + - 57 - + 53 + + COUNT( * ) + 7 * + 22 + 88 AS col0
----
-4541

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL 83 * + - 57 - + 53 + + COUNT ( * ) + 7 * + 22 + 88 AS col0
----
-4541

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

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

query I rowsort
SELECT ALL - COALESCE ( 2, 72 - 99 )
----
-2

query II rowsort
SELECT + 45 AS col1, 27
----
45
27

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

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

query II rowsort
SELECT ALL 92 * 35, + 32 AS col0
----
3220
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3791
SELECT ALL 51 * - COALESCE ( COUNT( * ), - 56 DIV - - CAST( NULL AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 51 * - COALESCE ( COUNT ( * ), - 56 / - - CAST ( NULL AS INTEGER ) )
----
-51

query II rowsort
SELECT + 54 AS col1, 47 AS col1
----
54
47

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

skipif mysql # not compatible
query I rowsort label-3793
SELECT MIN ( DISTINCT - 54 )
----
-54

query I rowsort
SELECT ALL + ( 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) + + 58 + + - ( - ( + COUNT( * ) ) ) + 70 + - 3 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) + + 58 + + - ( - ( + COUNT ( * ) ) ) + 70 + - 3 AS col2
----
127

query II rowsort
SELECT DISTINCT + 49 AS col1, - 87
----
49
-87

query I rowsort
SELECT + 71 + - 91 col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3798
SELECT 44 AS col2, - ( + COUNT( - 54 ) ) + COUNT( * ) AS col2
----
44
0

skipif mysql # not compatible
query II rowsort label-3798
SELECT 44 AS col2, - ( + COUNT ( - 54 ) ) + COUNT ( * ) AS col2
----
44
0

query I rowsort
SELECT DISTINCT CASE + + ( - 74 ) WHEN - + 77 THEN NULL WHEN + 47 THEN + 25 / - + 88 * - 29 + - + 16 / + + 66 END
----
NULL

query II rowsort
SELECT - + 13 AS col1, - 7
----
-13
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - - SUM( 5 ) col1
----
5

skipif mysql # not compatible
query I rowsort label-3801
SELECT - - SUM ( 5 ) col1
----
5

query I rowsort
SELECT ALL + 37 + - 84 col2
----
-47

query I rowsort
SELECT + + 31 - + + 65 col1
----
-34

query I rowsort
SELECT ALL - 67 + - 69 + + 30 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT + - 56 - + COALESCE ( 15, - CASE + 51 WHEN CASE + - MAX( DISTINCT - 67 ) WHEN + - 1 THEN NULL WHEN - + MAX( - + 69 ) * + - 1 THEN - 77 ELSE NULL END + - + 18 THEN + + 55 + + 59 END ) AS col1, 79 + + 84 * + - ( + 49 )
----
-71
-4037

skipif mysql # not compatible
query II rowsort label-3805
SELECT + - 56 - + COALESCE ( 15, - CASE + 51 WHEN CASE + - MAX ( DISTINCT - 67 ) WHEN + - 1 THEN NULL WHEN - + MAX ( - + 69 ) * + - 1 THEN - 77 ELSE NULL END + - + 18 THEN + + 55 + + 59 END ) AS col1, 79 + + 84 * + - ( + 49 )
----
-71
-4037

query I rowsort
SELECT DISTINCT + + 99 * + 64 AS col2
----
6336

query I rowsort
SELECT + + 81 + + 54
----
135

query I rowsort
SELECT ALL 4 + + + 8 + - 59
----
-47

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL COALESCE ( + + 19, + 19 * CASE 12 WHEN + - 75 THEN NULL ELSE MAX( 35 ) + - 4 END + - 13 * 32 + + - COALESCE ( 1, ( 87 ) + 47 * + NULLIF ( - 95, - - 66 * + 68 - 68 ), - + 54 * - 34 ) + 92 * 62 ) * + 53
----
1007

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL COALESCE ( + + 19, + 19 * CASE 12 WHEN + - 75 THEN NULL ELSE MAX ( 35 ) + - 4 END + - 13 * 32 + + - COALESCE ( 1, ( 87 ) + 47 * + NULLIF ( - 95, - - 66 * + 68 - 68 ), - + 54 * - 34 ) + 92 * 62 ) * + 53
----
1007

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3814
SELECT - 83 - - + 25 + - 5 + + + COALESCE ( - 17, - COALESCE ( + CAST( NULL AS SIGNED ), - - 89 + - - 16 ) ) * - - CAST( NULLIF ( + 7, - - ( - CAST( NULL AS SIGNED ) ) - COUNT( * ) - + COUNT( DISTINCT - 39 ) / + + 18 * + 84 ) AS SIGNED )
----
-182

skipif mysql # not compatible
query I rowsort label-3814
SELECT - 83 - - + 25 + - 5 + + + COALESCE ( - 17, - COALESCE ( + CAST ( NULL AS INTEGER ), - - 89 + - - 16 ) ) * - - CAST ( NULLIF ( + 7, - - ( - CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - + COUNT ( DISTINCT - 39 ) / + + 18 * + 84 ) AS INTEGER )
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + 53 + 89 + - - NULLIF ( MAX( ALL + 62 ), + - 32 ) * - + 9 * 92 AS col2
----
-51194

skipif mysql # not compatible
query I rowsort label-3815
SELECT + 53 + 89 + - - NULLIF ( MAX ( ALL + 62 ), + - 32 ) * - + 9 * 92 AS col2
----
-51194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3816
SELECT - CASE 44 WHEN - 49 * - - 47 THEN MAX( ALL + 77 ) + - 65 END + - - COALESCE ( - COUNT( - CAST( NULL AS SIGNED ) ), - 60 ) / - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT - CASE 44 WHEN - 49 * - - 47 THEN MAX ( ALL + 77 ) + - 65 END + - - COALESCE ( - COUNT ( - CAST ( NULL AS INTEGER ) ), - 60 ) / - 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT DISTINCT - 55 DIV - COALESCE ( + 55, 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - 55 / - COALESCE ( + 55, 26 ) AS col0
----
1

query I rowsort
SELECT - 47 + + 83 + ( + 53 ) AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3819
SELECT - 99 + - - COUNT( ALL - + 88 ) + + COUNT( * ) DIV - 47, 80 AS col0
----
-98
80

skipif mysql # not compatible
query II rowsort label-3819
SELECT - 99 + - - COUNT ( ALL - + 88 ) + + COUNT ( * ) / - 47, 80 AS col0
----
-98
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3821
SELECT + CAST( COUNT( * ) AS SIGNED ), 24 AS col2
----
1
24

skipif mysql # not compatible
query II rowsort label-3821
SELECT + CAST ( COUNT ( * ) AS INTEGER ), 24 AS col2
----
1
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT - CAST( - 28 AS SIGNED ) * - + 33 AS col0
----
-924

skipif mysql # not compatible
query I rowsort label-3822
SELECT - CAST ( - 28 AS INTEGER ) * - + 33 AS col0
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3823
SELECT + 66 * + 32 + + - COUNT( ALL - + 53 ) * + COUNT( * ) DIV - CAST( + - 52 AS SIGNED ) - - COUNT( * ) AS col2
----
2113

skipif mysql # not compatible
query I rowsort label-3823
SELECT + 66 * + 32 + + - COUNT ( ALL - + 53 ) * + COUNT ( * ) / - CAST ( + - 52 AS INTEGER ) - - COUNT ( * ) AS col2
----
2113

query II rowsort
SELECT DISTINCT + 65 * - + 33 AS col0, - 29
----
-2145
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3825
SELECT ( + COUNT( * ) ) col1, 85
----
1
85

skipif mysql # not compatible
query II rowsort label-3825
SELECT ( + COUNT ( * ) ) col1, 85
----
1
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT - CAST( + 30 AS SIGNED ) * + + 51 + + 81 * - + 17
----
-2907

skipif mysql # not compatible
query I rowsort label-3826
SELECT - CAST ( + 30 AS INTEGER ) * + + 51 + + 81 * - + 17
----
-2907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT + 63 * + - NULLIF ( + 70, + CAST( NULL AS SIGNED ) )
----
-4410

skipif mysql # not compatible
query I rowsort label-3827
SELECT + 63 * + - NULLIF ( + 70, + CAST ( NULL AS INTEGER ) )
----
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3828
SELECT ( - CASE + COUNT( * ) WHEN 69 * + - 6 THEN NULL WHEN + 92 THEN + 57 DIV - 21 ELSE - 66 END ) DIV - - ( - 94 ) * - 18 + + COUNT( * ) + - 42 + + 82
----
41

skipif mysql # not compatible
query I rowsort label-3828
SELECT ( - CASE + COUNT ( * ) WHEN 69 * + - 6 THEN NULL WHEN + 92 THEN + 57 / - 21 ELSE - 66 END ) / - - ( - 94 ) * - 18 + + COUNT ( * ) + - 42 + + 82
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT ( + + CAST( + 36 AS SIGNED ) )
----
36

skipif mysql # not compatible
query I rowsort label-3829
SELECT ( + + CAST ( + 36 AS INTEGER ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - 68 * COUNT( * ) + + 45 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - 68 * COUNT ( * ) + + 45 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3831
SELECT - - COALESCE ( + 47, - 98 * - 93 + + 10, COUNT( * ) * SUM( - COALESCE ( + 65, 34, - 30 ) ) + + COUNT( ALL 35 ) + 50 + 59 + + - COUNT( * ) + - + 13 + - + 78 DIV - - 64 * 16 * - 60 + + - MAX( + COALESCE ( + + 41, - 69 * - 98 - + CAST( NULL AS SIGNED ), 27, + 71 ) ), 19 ) + + 94 * - ( - 96 - - 58 ) AS col2
----
3619

skipif mysql # not compatible
query I rowsort label-3831
SELECT - - COALESCE ( + 47, - 98 * - 93 + + 10, COUNT ( * ) * SUM ( - COALESCE ( + 65, 34, - 30 ) ) + + COUNT ( ALL 35 ) + 50 + 59 + + - COUNT ( * ) + - + 13 + - + 78 / - - 64 * 16 * - 60 + + - MAX ( + COALESCE ( + + 41, - 69 * - 98 - + CAST ( NULL AS INTEGER ), 27, + 71 ) ), 19 ) + + 94 * - ( - 96 - - 58 ) AS col2
----
3619

query I rowsort
SELECT - + 52 * + + 80 * + 80
----
-332800

query I rowsort
SELECT ALL + NULLIF ( - + 79, - 97 ) * + + 10 * - + 32 + + 66
----
25346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL - + ( - + 57 ) * - - MAX( ALL + CAST( NULL AS SIGNED ) ) + - ( + - 77 ) + + COUNT( * ) + COUNT( * ) * - COUNT( * ) * - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - + ( - + 57 ) * - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - ( + - 77 ) + + COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) * - + 39
----
NULL

query I rowsort
SELECT + 19 + - 12 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT DISTINCT COALESCE ( 18, - - 98 + - MIN( DISTINCT 11 ), 49 + + 22 ) * 25 + + NULLIF ( + - COUNT( DISTINCT - ( + 78 ) ), 80 / - - ( - COUNT( * ) ) + + CASE - MIN( DISTINCT + + ( - - 49 ) ) WHEN + 38 THEN + 65 / + + 44 + - + 26 - + - 82 - 84 * - 6 * - 23 WHEN 60 / + 14 THEN ( - CAST( + 60 AS SIGNED ) ) WHEN + 11 THEN NULL ELSE NULL END * 95 )
----
449

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT COALESCE ( 18, - - 98 + - MIN ( DISTINCT 11 ), 49 + + 22 ) * 25 + + NULLIF ( + - COUNT ( DISTINCT - ( + 78 ) ), 80 / - - ( - COUNT ( * ) ) + + CASE - MIN ( DISTINCT + + ( - - 49 ) ) WHEN + 38 THEN + 65 / + + 44 + - + 26 - + - 82 - 84 * - 6 * - 23 WHEN 60 / + 14 THEN ( - CAST ( + 60 AS INTEGER ) ) WHEN + 11 THEN NULL ELSE NULL END * 95 )
----
449

query I rowsort
SELECT DISTINCT NULLIF ( 23, - 20 * - + 48 - + 5 ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3838
SELECT - + CAST( 63 AS SIGNED ) * + - CASE - SUM( + 1 ) WHEN + - COUNT( * ) - 0 + - ( ( + COUNT( + 9 ) ) ) DIV + SUM( - 33 ) * + - 71 * - + 62 THEN + + 97 * COUNT( * ) - + COUNT( * ) WHEN + + 73 THEN + - 61 * + + 47 + - 72 ELSE NULL END + 57 + + - 55 AS col2
----
6050

skipif mysql # not compatible
query I rowsort label-3838
SELECT - + CAST ( 63 AS INTEGER ) * + - CASE - SUM ( + 1 ) WHEN + - COUNT ( * ) - 0 + - ( ( + COUNT ( + 9 ) ) ) / + SUM ( - 33 ) * + - 71 * - + 62 THEN + + 97 * COUNT ( * ) - + COUNT ( * ) WHEN + + 73 THEN + - 61 * + + 47 + - 72 ELSE NULL END + 57 + + - 55 AS col2
----
6050

query I rowsort
SELECT ALL - 64 - - + 59
----
-5

query I rowsort
SELECT + 71 * + 12
----
852

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - 77 * - COALESCE ( + 93, COUNT( * ), - + 10 ) * + 58 + 71 - - 6
----
415415

skipif mysql # not compatible
query I rowsort label-3841
SELECT - 77 * - COALESCE ( + 93, COUNT ( * ), - + 10 ) * + 58 + 71 - - 6
----
415415

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT DISTINCT 83 * - COUNT( * ) * COUNT( * ) AS col0, + 55 + - 50
----
-83
5

skipif mysql # not compatible
query II rowsort label-3842
SELECT DISTINCT 83 * - COUNT ( * ) * COUNT ( * ) AS col0, + 55 + - 50
----
-83
5

query II rowsort
SELECT DISTINCT 14 col1, 78
----
14
78

query I rowsort
SELECT ALL 17 * - CASE - + NULLIF ( - - 46, + - 56 ) WHEN + 68 * - 57 * + + ( + 15 ) * 40 + - 34 THEN 26 * + + 8 WHEN 80 THEN NULL ELSE + NULLIF ( + 56, 81 ) END AS col0
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT CASE + + COUNT( * ) WHEN 16 * 56 - - ( - 74 ) THEN + - 31 WHEN 84 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT CASE + + COUNT ( * ) WHEN 16 * 56 - - ( - 74 ) THEN + - 31 WHEN 84 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT + 41 * NULLIF ( 5, COUNT( * ) + + CAST( NULL AS SIGNED ) + + + 7 * + + COUNT( * ) ) AS col2
----
205

skipif mysql # not compatible
query I rowsort label-3846
SELECT + 41 * NULLIF ( 5, COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + + 7 * + + COUNT ( * ) ) AS col2
----
205

query II rowsort
SELECT 95 AS col1, ( - - 71 )
----
95
71

query I rowsort
SELECT + 87 - 26
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT MAX( DISTINCT - 25 ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT MAX ( DISTINCT - 25 ) col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + 12 / + 88 + + - CASE - 13 WHEN - - COALESCE ( - 58, 74 / + 95, - 54 ) THEN NULL WHEN + COUNT( - + 10 ) / - 55 + - + COUNT( * ) * - 99 THEN NULL WHEN + 34 THEN NULL ELSE CASE + 15 WHEN + + 65 THEN - 64 WHEN 3 THEN + 29 ELSE NULL END END - - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT + 12 / + 88 + + - CASE - 13 WHEN - - COALESCE ( - 58, 74 / + 95, - 54 ) THEN NULL WHEN + COUNT ( - + 10 ) / - 55 + - + COUNT ( * ) * - 99 THEN NULL WHEN + 34 THEN NULL ELSE CASE + 15 WHEN + + 65 THEN - 64 WHEN 3 THEN + 29 ELSE NULL END END - - + 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT ALL - 38 AS col1, COUNT( * ) AS col0
----
-38
1

skipif mysql # not compatible
query II rowsort label-3851
SELECT ALL - 38 AS col1, COUNT ( * ) AS col0
----
-38
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3852
SELECT + 12 DIV 72 - 69
----
-69

skipif mysql # not compatible
query I rowsort label-3852
SELECT + 12 / 72 - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 93 - NULLIF ( - 32, + 10 * - 7 * CASE - + 15 WHEN - 80 + 28 THEN 54 / + 42 * + + COUNT( * ) + + + 82 * COUNT( * ) * + - MIN( DISTINCT + 1 ) * - COUNT( * ) END + COUNT( * ) ) + 80 * - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-3853
SELECT 93 - NULLIF ( - 32, + 10 * - 7 * CASE - + 15 WHEN - 80 + 28 THEN 54 / + 42 * + + COUNT ( * ) + + + 82 * COUNT ( * ) * + - MIN ( DISTINCT + 1 ) * - COUNT ( * ) END + COUNT ( * ) ) + 80 * - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT ALL 15 DIV - COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL 15 / - COUNT ( * ) AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3855
SELECT 99 DIV - 73 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3855
SELECT 99 / - 73 AS col2
----
-1

query I rowsort
SELECT ALL + 71 + - 6
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3857
SELECT ALL - - COALESCE ( ( + - 82 ), - - 16 * + 2 * - 85 + - MIN( 95 ), 58 DIV 19 + + 81, + - 72 ) + + + COUNT( * ) col2, - 95 * 92 + COUNT( * ) DIV - 99 AS col1
----
-81
-8740

skipif mysql # not compatible
query II rowsort label-3857
SELECT ALL - - COALESCE ( ( + - 82 ), - - 16 * + 2 * - 85 + - MIN ( 95 ), 58 / 19 + + 81, + - 72 ) + + + COUNT ( * ) col2, - 95 * 92 + COUNT ( * ) / - 99 AS col1
----
-81
-8740

query I rowsort
SELECT ( - 26 ) * 89 AS col0
----
-2314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3859
SELECT + ( 62 ) + - 94 * + + COALESCE ( - - MAX( CAST( NULL AS SIGNED ) ), + + 10 DIV - 98 ) + + 86 DIV + NULLIF ( 78, 3 ) + + + COUNT( * ) + 20
----
84

skipif mysql # not compatible
query I rowsort label-3859
SELECT + ( 62 ) + - 94 * + + COALESCE ( - - MAX ( CAST ( NULL AS INTEGER ) ), + + 10 / - 98 ) + + 86 / + NULLIF ( 78, 3 ) + + + COUNT ( * ) + 20
----
84

query I rowsort
SELECT + - ( + 18 ) AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT + CAST( - + 93 AS SIGNED ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3861
SELECT + CAST ( - + 93 AS INTEGER ) AS col0
----
-93

query I rowsort
SELECT 97 * + 8 AS col2
----
776

query I rowsort
SELECT - 76 * - 19 AS col0
----
1444

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT + 19 AS col1, - COUNT( * ) col2
----
19
-1

skipif mysql # not compatible
query II rowsort label-3864
SELECT + 19 AS col1, - COUNT ( * ) col2
----
19
-1

query I rowsort
SELECT ALL + 20 + + 59 AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3866
SELECT ALL - - COUNT( * ), + COUNT( ALL - 95 ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3866
SELECT ALL - - COUNT ( * ), + COUNT ( ALL - 95 ) col2
----
1
1

query I rowsort
SELECT 76 * 61 AS col1
----
4636

query I rowsort
SELECT ALL - 29 + - 72 + 84 * 31 AS col0
----
2503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL + 54 - + - 70 + - - 43 + 2 * - + 38 * + 50 * + 78 + - + NULLIF ( + 42, + + CAST( + 90 AS SIGNED ) ) * 40
----
-297913

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + 54 - + - 70 + - - 43 + 2 * - + 38 * + 50 * + 78 + - + NULLIF ( + 42, + + CAST ( + 90 AS INTEGER ) ) * 40
----
-297913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3870
SELECT MIN( ALL - 89 ) * + 32 - - 57 + + - CAST( + + 76 AS SIGNED ) * - CASE + + CASE - 6 WHEN - 82 THEN + - 90 * - 24 + + - COALESCE ( + 17, CAST( NULL AS SIGNED ) + - - COUNT( * ) + 26 / 33 ) / + + COALESCE ( - ( - 56 ), - 87 + 33 * 9 + - 71 ) WHEN ( + COALESCE ( + - 22, 95 / + COUNT( DISTINCT + 57 ), 55 ) ) + 79 * 12 THEN + 56 END WHEN + MAX( 34 ) + COUNT( 14 ) THEN 68 + 11 * - 79 WHEN - ( 44 ) THEN + COALESCE ( - COUNT( * ), + 17, + 10 - 52, CAST( + 39 AS SIGNED ) ) WHEN + 83 * COALESCE ( - 54, + ( - COUNT( * ) ) + - 45 ) THEN + 62 * ( COUNT( * ) ) + 86 END * 1 + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT MIN ( ALL - 89 ) * + 32 - - 57 + + - CAST ( + + 76 AS INTEGER ) * - CASE + + CASE - 6 WHEN - 82 THEN + - 90 * - 24 + + - COALESCE ( + 17, CAST ( NULL AS INTEGER ) + - - COUNT ( * ) + 26 / 33 ) / + + COALESCE ( - ( - 56 ), - 87 + 33 * 9 + - 71 ) WHEN ( + COALESCE ( + - 22, 95 / + COUNT ( DISTINCT + 57 ), 55 ) ) + 79 * 12 THEN + 56 END WHEN + MAX ( 34 ) + COUNT ( 14 ) THEN 68 + 11 * - 79 WHEN - ( 44 ) THEN + COALESCE ( - COUNT ( * ), + 17, + 10 - 52, CAST ( + 39 AS INTEGER ) ) WHEN + 83 * COALESCE ( - 54, + ( - COUNT ( * ) ) + - 45 ) THEN + 62 * ( COUNT ( * ) ) + 86 END * 1 + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT MAX( ALL + + 24 ) * NULLIF ( + + 32, + 36 ) + - 74
----
694

skipif mysql # not compatible
query I rowsort label-3871
SELECT MAX ( ALL + + 24 ) * NULLIF ( + + 32, + 36 ) + - 74
----
694

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT + 83 + - SUM( DISTINCT + 47 ) + - 28 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3872
SELECT + 83 + - SUM ( DISTINCT + 47 ) + - 28 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT - - 45 col0, + CASE WHEN ( - 98 ) BETWEEN NULL AND 44 / 38 * - + 93 + + 51 + 41 THEN - 72 * CASE - 59 WHEN - - 39 THEN NULL WHEN - 22 THEN NULL WHEN + COUNT( ALL 15 ) THEN NULL ELSE - 56 END * + 93 ELSE NULL END * - + 70
----
45
NULL

skipif mysql # not compatible
query II rowsort label-3873
SELECT - - 45 col0, + CASE WHEN ( - 98 ) BETWEEN NULL AND 44 / 38 * - + 93 + + 51 + 41 THEN - 72 * CASE - 59 WHEN - - 39 THEN NULL WHEN - 22 THEN NULL WHEN + COUNT ( ALL 15 ) THEN NULL ELSE - 56 END * + 93 ELSE NULL END * - + 70
----
45
NULL

query II rowsort
SELECT - + 32 AS col2, - 5 - NULLIF ( 37, - + 22 * - + 99 / - 31 ) AS col1
----
-32
-42

query II rowsort
SELECT - + 91 AS col0, - 75 + + NULLIF ( 3, + 72 ) AS col0
----
-91
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3876
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + + 38 DIV - 40 + - + 93 * - 10 * - 79 + NULLIF ( 61, - + 82 )
----
-73410

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + + 38 / - 40 + - + 93 * - 10 * - 79 + NULLIF ( 61, - + 82 )
----
-73410

query I rowsort
SELECT 49 + + ( + + 62 )
----
111

query I rowsort
SELECT 68 + - + 82 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3879
SELECT 48 + + 84 DIV CAST( + + 86 AS SIGNED ) + + 61
----
109

skipif mysql # not compatible
query I rowsort label-3879
SELECT 48 + + 84 / CAST ( + + 86 AS INTEGER ) + + 61
----
109

query II rowsort
SELECT 58 + - 2 col1, 85 AS col1
----
56
85

query I rowsort
SELECT 64 * - NULLIF ( 66, - 45 * - + 97 )
----
-4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT CAST( NULL AS SIGNED ) + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT CAST ( NULL AS INTEGER ) + + 94 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 10 * - ( 40 )
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3884
SELECT ALL SUM( ALL - ( - 68 ) ) + - NULLIF ( - ( 40 ), + CAST( NULL AS SIGNED ) ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL SUM ( ALL - ( - 68 ) ) + - NULLIF ( - ( 40 ), + CAST ( NULL AS INTEGER ) ) AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT 83 + 54 col2, + COUNT( * ) AS col1
----
137
1

skipif mysql # not compatible
query II rowsort label-3885
SELECT 83 + 54 col2, + COUNT ( * ) AS col1
----
137
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3886
SELECT MIN( DISTINCT + - COALESCE ( - 69, + 17 ) ) * - CAST( NULL AS SIGNED ) * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT MIN ( DISTINCT + - COALESCE ( - 69, + 17 ) ) * - CAST ( NULL AS INTEGER ) * 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3887
SELECT ( + - COUNT( * ) ) + 8 + - + 2 * 77, 10 * - - ( - 85 ) - 37 * 27 AS col1
----
-147
-1849

skipif mysql # not compatible
query II rowsort label-3887
SELECT ( + - COUNT ( * ) ) + 8 + - + 2 * 77, 10 * - - ( - 85 ) - 37 * 27 AS col1
----
-147
-1849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3888
SELECT ALL + CAST( AVG ( + + 28 ) AS SIGNED ) + - + SUM( ALL + 69 ) DIV - 84
----
28

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + CAST ( AVG ( + + 28 ) AS INTEGER ) + - + SUM ( ALL + 69 ) / - 84
----
28

query I rowsort
SELECT DISTINCT ( 81 ) + + 57
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT DISTINCT + - 67 DIV - + 58 col2
----
1

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + - 67 / - + 58 col2
----
1

query I rowsort
SELECT + 74 + 50 * 89 col2
----
4524

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT DISTINCT + - 92 - + + 8 AS col0, COUNT( * )
----
-100
1

skipif mysql # not compatible
query II rowsort label-3892
SELECT DISTINCT + - 92 - + + 8 AS col0, COUNT ( * )
----
-100
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + 15 * - SUM( + + 92 )
----
-1380

skipif mysql # not compatible
query I rowsort label-3893
SELECT + 15 * - SUM ( + + 92 )
----
-1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3894
SELECT DISTINCT - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 97 * 53 col0
----
5141

query II rowsort
SELECT 14 + - 38 AS col2, + 61 - - 18
----
-24
79

query I rowsort
SELECT ALL - + 12 - + 78 - + 65 AS col1
----
-155

query I rowsort
SELECT 63 * + 83 AS col0
----
5229

query I rowsort
SELECT ALL + 62 - - 31
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT ALL CASE CAST( + 99 AS SIGNED ) WHEN - - COUNT( * ) * 24 THEN NULL WHEN - 55 * + MIN( - 45 ) THEN + 24 * - - 11 - + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL CASE CAST ( + 99 AS INTEGER ) WHEN - - COUNT ( * ) * 24 THEN NULL WHEN - 55 * + MIN ( - 45 ) THEN + 24 * - - 11 - + 55 END
----
NULL

query I rowsort
SELECT 68 * - 62 * + + 30 AS col1
----
-126480

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL + 15 * MIN( ALL - 89 )
----
-1335

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL + 15 * MIN ( ALL - 89 )
----
-1335

query I rowsort
SELECT DISTINCT NULLIF ( - 80, 3 ) col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT + COUNT( * ) + 66 * + + 67 + + 61 AS col2
----
4484

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + COUNT ( * ) + 66 * + + 67 + + 61 AS col2
----
4484

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3905
SELECT ALL + 16 * - CAST( NULL AS SIGNED ) * 23 AS col0, 27 * 81
----
NULL
2187

skipif mysql # not compatible
query II rowsort label-3905
SELECT ALL + 16 * - CAST ( NULL AS INTEGER ) * 23 AS col0, 27 * 81
----
NULL
2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT DISTINCT CASE + COUNT( ALL + ( 54 ) ) WHEN - 8 * + COUNT( * ) + + MAX( - 89 ) + + - ( - 46 ) THEN NULL WHEN 18 + 1 * + + 19 THEN NULL WHEN + ( + CAST( + 65 AS SIGNED ) ) * + 92 THEN 27 * + + 24 * - - 43 END + + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT CASE + COUNT ( ALL + ( 54 ) ) WHEN - 8 * + COUNT ( * ) + + MAX ( - 89 ) + + - ( - 46 ) THEN NULL WHEN 18 + 1 * + + 19 THEN NULL WHEN + ( + CAST ( + 65 AS INTEGER ) ) * + 92 THEN 27 * + + 24 * - - 43 END + + + 87
----
NULL

query I rowsort
SELECT ALL - 44 + 53 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL + COUNT( + ( - 86 ) ) + + 57
----
58

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL + COUNT ( + ( - 86 ) ) + + 57
----
58

query I rowsort
SELECT - ( + 6 ) - - 72
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT - CAST( NULL AS SIGNED ) / + - 61 * - COUNT( ALL 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT - CAST ( NULL AS INTEGER ) / + - 61 * - COUNT ( ALL 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL + + MAX( - - 73 ) * - 11 * - 9 + + + 83
----
7310

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + + MAX ( - - 73 ) * - 11 * - 9 + + + 83
----
7310

query I rowsort
SELECT DISTINCT - 55 * + + 79 + ( 17 )
----
-4328

query I rowsort
SELECT ALL + 78 * + NULLIF ( 87, 22 - + 38 ) * + 62 * 56 AS col2
----
23560992

query I rowsort
SELECT + - 40 - + NULLIF ( - - 56, + 54 ) AS col1
----
-96

query II rowsort
SELECT ALL + 29 * - 41 * 88 * + ( 5 ) AS col0, + 94
----
-523160
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3916
SELECT 8 col0, COUNT( * ) + - 72
----
8
-71

skipif mysql # not compatible
query II rowsort label-3916
SELECT 8 col0, COUNT ( * ) + - 72
----
8
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL 55 * COUNT( * ) * + ( - COUNT( * ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL 55 * COUNT ( * ) * + ( - COUNT ( * ) ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3918
SELECT ALL + + 93 * - - 58 * + - MIN( CAST( - 73 AS SIGNED ) ) * - - 85 - - 58 AS col0
----
33469828

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + + 93 * - - 58 * + - MIN ( CAST ( - 73 AS INTEGER ) ) * - - 85 - - 58 AS col0
----
33469828

query I rowsort
SELECT + 43 + - 80 col0
----
-37

query II rowsort
SELECT 45 AS col1, 24
----
45
24

query I rowsort
SELECT + + ( 21 ) AS col1
----
21

query I rowsort
SELECT + 26 - + 48
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT MAX( DISTINCT - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3923
SELECT MAX ( DISTINCT - 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL + + COALESCE ( - 20, + + 13 * MIN( ALL - 25 ) ) col2
----
-20

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL + + COALESCE ( - 20, + + 13 * MIN ( ALL - 25 ) ) col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT ALL - 2 DIV - 51 * + ( 14 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - 2 / - 51 * + ( 14 ) AS col1
----
0

query I rowsort
SELECT ALL - 52 * + 80
----
-4160

query I rowsort
SELECT + 15 * + 15
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3928
SELECT ALL MIN( + 5 ) DIV + 59, 78 + - 98 AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL MIN ( + 5 ) / + 59, 78 + - 98 AS col0
----
0
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT + 54 + - 27 + - COUNT( * ) * + ( - + 72 ) * + CAST( + ( + 1 ) AS SIGNED ) * + 78 + - - 31 + - 6
----
5668

skipif mysql # not compatible
query I rowsort label-3929
SELECT + 54 + - 27 + - COUNT ( * ) * + ( - + 72 ) * + CAST ( + ( + 1 ) AS INTEGER ) * + 78 + - - 31 + - 6
----
5668

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT - CASE - + 27 WHEN - ( + CASE + 13 WHEN SUM( 37 ) THEN NULL ELSE + 25 END ) * - + 69 THEN + COUNT( * ) ELSE 55 END * 56
----
-3080

skipif mysql # not compatible
query I rowsort label-3930
SELECT - CASE - + 27 WHEN - ( + CASE + 13 WHEN SUM ( 37 ) THEN NULL ELSE + 25 END ) * - + 69 THEN + COUNT ( * ) ELSE 55 END * 56
----
-3080

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL 59 * - 34 AS col2, 47 * 11 + + 70 + COUNT( * )
----
-2006
588

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL 59 * - 34 AS col2, 47 * 11 + + 70 + COUNT ( * )
----
-2006
588

query I rowsort
SELECT + 64 + 83 AS col0
----
147

query I rowsort
SELECT - ( + - ( + 17 ) )
----
17

query I rowsort
SELECT - 46 * + ( 52 )
----
-2392

query I rowsort
SELECT ALL + 20 + - 82
----
-62

query I rowsort
SELECT ALL 64 * + ( + 40 ) * 16
----
40960

query I rowsort
SELECT - 34 + + - 18 AS col2
----
-52

query I rowsort
SELECT DISTINCT ( - + 6 ) AS col1
----
-6

query I rowsort
SELECT - 87 + - - 67
----
-20

query I rowsort
SELECT - 80 + - + 38 + + 0 AS col0
----
-118

query II rowsort
SELECT ALL ( + 61 ) AS col1, 57
----
61
57

query I rowsort
SELECT DISTINCT ( + + 77 ) AS col2
----
77

query I rowsort
SELECT - 57 + 99 + + - 72 AS col1
----
-30

query I rowsort
SELECT - 44 * 23 AS col2
----
-1012

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT ALL - 85 DIV + - 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - 85 / + - 67 AS col1
----
1

query I rowsort
SELECT - - 44 + - 55
----
-11

query I rowsort
SELECT - + ( + + 48 ) + + 91 * + 86 + - 51 AS col0
----
7727

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3948
SELECT ALL + SUM( 49 ) * 89 - + ( + + 19 ) DIV + - 85
----
4361

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL + SUM ( 49 ) * 89 - + ( + + 19 ) / + - 85
----
4361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT + NULLIF ( + NULLIF ( ( + CASE WHEN CAST( + 46 AS SIGNED ) IS NOT NULL THEN + 67 * 57 + - - COUNT( * ) + - COUNT( * ) DIV + 64 END ), + 75 * + 2 * - NULLIF ( 32, - 14 + - 9 ) ), - 5 ) AS col2
----
3820

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + NULLIF ( + NULLIF ( ( + CASE WHEN CAST ( + 46 AS INTEGER ) IS NOT NULL THEN + 67 * 57 + - - COUNT ( * ) + - COUNT ( * ) / + 64 END ), + 75 * + 2 * - NULLIF ( 32, - 14 + - 9 ) ), - 5 ) AS col2
----
3820

query II rowsort
SELECT + 5, - 80 * - 20 * - + 19 + + + 34 AS col0
----
5
-30366

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT ALL + 64 col1, - COUNT( * ) AS col1
----
64
-1

skipif mysql # not compatible
query II rowsort label-3951
SELECT ALL + 64 col1, - COUNT ( * ) AS col1
----
64
-1

query I rowsort
SELECT + + 86 * 56 * - 62
----
-298592

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT - + 17 * + - SUM( 30 ) AS col2
----
510

skipif mysql # not compatible
query I rowsort label-3953
SELECT - + 17 * + - SUM ( 30 ) AS col2
----
510

query I rowsort
SELECT ALL + NULLIF ( - 90, - - 31 ) col1
----
-90

query I rowsort
SELECT + 72 + ( + + 50 ) AS col1
----
122

query I rowsort
SELECT + 86 + 20 AS col1
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT ALL + - 55, 20 * + COUNT( * ) + + + 75 * + 70 AS col2
----
-55
5270

skipif mysql # not compatible
query II rowsort label-3957
SELECT ALL + - 55, 20 * + COUNT ( * ) + + + 75 * + 70 AS col2
----
-55
5270

query I rowsort
SELECT ALL + - COALESCE ( - - 29, 62 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT - CAST( + 12 AS SIGNED ) * 18 + + - ( + 89 ) + + 85 * 57
----
4540

skipif mysql # not compatible
query I rowsort label-3959
SELECT - CAST ( + 12 AS INTEGER ) * 18 + + - ( + 89 ) + + 85 * 57
----
4540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3960
SELECT + - COUNT( * ) * - 77 * CAST( - COUNT( * ) AS SIGNED ) + - 27 DIV + COUNT( * ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-3960
SELECT + - COUNT ( * ) * - 77 * CAST ( - COUNT ( * ) AS INTEGER ) + - 27 / + COUNT ( * ) AS col0
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT + 13 DIV + 39 - - ( + + 76 ) + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3961
SELECT + 13 / + 39 - - ( + + 76 ) + COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT 18 + + 47 AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT ALL 53 + - 51, - COUNT( * ) col1
----
2
-1

skipif mysql # not compatible
query II rowsort label-3963
SELECT ALL 53 + - 51, - COUNT ( * ) col1
----
2
-1

query I rowsort
SELECT ALL 64 * 83 AS col2
----
5312

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT ALL 5 DIV - 56 * + + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL 5 / - 56 * + + 72 AS col1
----
0

query I rowsort
SELECT ALL 17 + + 37 * + 84 AS col0
----
3125

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT - 43 + - COUNT( * ) + + 90 * + + 72
----
6436

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT - 43 + - COUNT ( * ) + + 90 * + + 72
----
6436

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3968
SELECT DISTINCT 52 + + 60 col1, + CAST( NULL AS SIGNED ) col2
----
112
NULL

skipif mysql # not compatible
query II rowsort label-3968
SELECT DISTINCT 52 + + 60 col1, + CAST ( NULL AS INTEGER ) col2
----
112
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3969
SELECT 83 DIV - + 62 * + ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3969
SELECT 83 / - + 62 * + ( + - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT COUNT( + 54 ) * + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-3970
SELECT COUNT ( + 54 ) * + - 26
----
-26

query I rowsort
SELECT DISTINCT 4 * + 73
----
292

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT 18 * 60, + COALESCE ( + 42, - 56 * - 19 + - - 58 + 76, - MIN( DISTINCT 96 ) ) AS col1
----
1080
42

skipif mysql # not compatible
query II rowsort label-3972
SELECT 18 * 60, + COALESCE ( + 42, - 56 * - 19 + - - 58 + 76, - MIN ( DISTINCT 96 ) ) AS col1
----
1080
42

query I rowsort
SELECT DISTINCT - 51 * - - 73
----
-3723

query I rowsort
SELECT ALL 14 - - 1 AS col1
----
15

query I rowsort
SELECT 99 + 54
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + COUNT( * ) + + MAX( ALL + 29 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3976
SELECT + COUNT ( * ) + + MAX ( ALL + 29 ) AS col2
----
30

query I rowsort
SELECT - - ( + 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3978
SELECT NULLIF ( + + 74, ( + 39 ) * - 85 ) AS col1, MIN( DISTINCT + + 74 ) AS col0
----
74
74

skipif mysql # not compatible
query II rowsort label-3978
SELECT NULLIF ( + + 74, ( + 39 ) * - 85 ) AS col1, MIN ( DISTINCT + + 74 ) AS col0
----
74
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3979
SELECT 20 + - 50 - 43 DIV - CAST( - 81 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-3979
SELECT 20 + - 50 - 43 / - CAST ( - 81 AS INTEGER )
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-3980
SELECT - NULLIF ( - 45, + 10 ), 80 * 18 DIV + - 9 + ( - ( - 55 ) ) AS col0
----
45
-105

skipif mysql # not compatible
query II rowsort label-3980
SELECT - NULLIF ( - 45, + 10 ), 80 * 18 / + - 9 + ( - ( - 55 ) ) AS col0
----
45
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - 34 * - SUM( DISTINCT 65 ) AS col2
----
2210

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 34 * - SUM ( DISTINCT 65 ) AS col2
----
2210

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + COUNT( + + 47 ) * + + 46 + + ( 85 )
----
131

skipif mysql # not compatible
query I rowsort label-3982
SELECT + COUNT ( + + 47 ) * + + 46 + + ( 85 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - + COUNT( * ) + + SUM( + + 52 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - + COUNT ( * ) + + SUM ( + + 52 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT + + MAX( - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3984
SELECT + + MAX ( - 17 ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT + - ( - + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT + - ( - + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL - + 39 + + COUNT( * ) * - + 23
----
-62

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL - + 39 + + COUNT ( * ) * - + 23
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT + 36 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-3987
SELECT + 36 / - 95
----
0

query II rowsort
SELECT 68 * 0 AS col0, 84
----
0
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3989
SELECT + MIN( 11 ) * + COUNT( * ) DIV + - 33 * 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT + MIN ( 11 ) * + COUNT ( * ) / + - 33 * 2 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3990
SELECT - 19 * - MIN( - 95 ) AS col2, + 32 + + COUNT( DISTINCT - + 24 ) + + COUNT( * ) + - 73 DIV - 44 AS col1
----
-1805
35

skipif mysql # not compatible
query II rowsort label-3990
SELECT - 19 * - MIN ( - 95 ) AS col2, + 32 + + COUNT ( DISTINCT - + 24 ) + + COUNT ( * ) + - 73 / - 44 AS col1
----
-1805
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT ALL - + COUNT( * ) + - + 33, - SUM( ALL - 76 ) col0
----
-34
76

skipif mysql # not compatible
query II rowsort label-3991
SELECT ALL - + COUNT ( * ) + - + 33, - SUM ( ALL - 76 ) col0
----
-34
76

query I rowsort
SELECT 74 - 65
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT DISTINCT + 75 + + 88 DIV - - 83 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT + 75 + + 88 / - - 83 AS col2
----
76

query I rowsort
SELECT DISTINCT 47 * + 3 AS col1
----
141

query I rowsort
SELECT DISTINCT 64 + + 9 AS col0
----
73

query II rowsort
SELECT DISTINCT - 31 AS col2, ( + + 39 )
----
-31
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT 73 + + 16 * + 79 + - 54 * + + COUNT( * ) AS col0
----
1283

skipif mysql # not compatible
query I rowsort label-3997
SELECT 73 + + 16 * + 79 + - 54 * + + COUNT ( * ) AS col0
----
1283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT DISTINCT 11 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT 11 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 47 AS col1, - 29 AS col1
----
-47
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + ( - - CASE - - ( + 80 ) WHEN 67 THEN NULL WHEN + - COUNT( * ) THEN - 0 + + ( - 11 ) WHEN + 2 THEN NULL WHEN + 42 THEN NULL END ) * - 76 + + 61 * + - 32 + - - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT + ( - - CASE - - ( + 80 ) WHEN 67 THEN NULL WHEN + - COUNT ( * ) THEN - 0 + + ( - 11 ) WHEN + 2 THEN NULL WHEN + 42 THEN NULL END ) * - 76 + + 61 * + - 32 + - - 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4001
SELECT 92 + - 65 + + 42 * 47 * + - 88 * - 89 + + COUNT( * ) + 3 * - - 48 AS col0, 64
----
15460540
64

skipif mysql # not compatible
query II rowsort label-4001
SELECT 92 + - 65 + + 42 * 47 * + - 88 * - 89 + + COUNT ( * ) + 3 * - - 48 AS col0, 64
----
15460540
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT NULLIF ( + - 7, + 4 ) + CAST( 55 AS SIGNED ) + + + 3 col1
----
51

skipif mysql # not compatible
query I rowsort label-4002
SELECT NULLIF ( + - 7, + 4 ) + CAST ( 55 AS INTEGER ) + + + 3 col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT ALL NULLIF ( + 45, + 29 DIV + ( - + 90 ) - - 75 ) DIV NULLIF ( - + 96, + 34 ) + + 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL NULLIF ( + 45, + 29 / + ( - + 90 ) - - 75 ) / NULLIF ( - + 96, + 34 ) + + 57 AS col2
----
57

query I rowsort
SELECT 27 + + + 77 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT COALESCE ( - 49, COUNT( * ) * + 71 ) + - 11 - - 1 * + - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4005
SELECT COALESCE ( - 49, COUNT ( * ) * + 71 ) + - 11 - - 1 * + - COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT - + ( + - 89 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT + 52 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT + 52 / 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT ALL NULLIF ( + 27, ( + 4 ) + - - 39 ) DIV - + 55 * - + 45 col2
----
0

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL NULLIF ( + 27, ( + 4 ) + - - 39 ) / - + 55 * - + 45 col2
----
0

query I rowsort
SELECT - 91 * 34
----
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT + COUNT( ALL + - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT + COUNT ( ALL + - 24 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 39 * + - 17 * + 51 / + CASE - + 51 WHEN ( + 8 ) THEN + 9 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT - 18 DIV + - 34 * - - 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT - 18 / + - 34 * - - 93 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT 34 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT 34 / + 78
----
0

query II rowsort
SELECT ALL 78, + 76 col1
----
78
76

query I rowsort
SELECT + ( + 99 ) * COALESCE ( + 45, 83 + 33 )
----
4455

query I rowsort
SELECT DISTINCT - 78 + + 38 * - - 51 - - 84
----
1944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT DISTINCT - CAST( + - 60 AS SIGNED ) + + 26
----
86

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT - CAST ( + - 60 AS INTEGER ) + + 26
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + 45 + 57 + + COUNT( - 25 )
----
103

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + 45 + 57 + + COUNT ( - 25 )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + 7 + + - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4019
SELECT + 7 + + - COUNT ( * ) AS col1
----
6

query I rowsort
SELECT - 90 - - 53 + - 7 * + 57 * + 16 AS col0
----
-6421

onlyif mysql # aggregate syntax: 
query II rowsort label-4021
SELECT + 91 col0, COUNT( * )
----
91
1

skipif mysql # not compatible
query II rowsort label-4021
SELECT + 91 col0, COUNT ( * )
----
91
1

query I rowsort
SELECT - 4 * + 27
----
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4023
SELECT ALL + 42 AS col0, 5 * MIN( DISTINCT CAST( NULL AS DECIMAL ) ) col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-4023
SELECT ALL + 42 AS col0, 5 * MIN ( DISTINCT CAST ( NULL AS REAL ) ) col0
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4024
SELECT - NULLIF ( 28, + 27 * - COALESCE ( + + 86, + COALESCE ( 61, + 97 * - 92 / MIN( - + 7 ) * - COUNT( * ) + + 13 + ( + + 62 ) / + 8 + - 36 * - - 93 * - - 17 ) * - - 30 * + COUNT( * ) * 77 + - COUNT( * ), + COALESCE ( 17, + ( 0 ) - + 72 / - 17 ) ) ) + + + CAST( - - 5 AS SIGNED ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4024
SELECT - NULLIF ( 28, + 27 * - COALESCE ( + + 86, + COALESCE ( 61, + 97 * - 92 / MIN ( - + 7 ) * - COUNT ( * ) + + 13 + ( + + 62 ) / + 8 + - 36 * - - 93 * - - 17 ) * - - 30 * + COUNT ( * ) * 77 + - COUNT ( * ), + COALESCE ( 17, + ( 0 ) - + 72 / - 17 ) ) ) + + + CAST ( - - 5 AS INTEGER ) AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT 61 * + - 62 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT 61 * + - 62 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 25 * + NULLIF ( + - ( - + 81 ), + 54 ) + - 73
----
-2098

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4027
SELECT - CAST( - 50 AS SIGNED ) DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4027
SELECT - CAST ( - 50 AS INTEGER ) / 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT + MIN( DISTINCT 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + MIN ( DISTINCT 56 ) AS col1
----
56

query I rowsort
SELECT ALL NULLIF ( + 17, + ( 91 ) ) * + 22
----
374

query II rowsort
SELECT DISTINCT - 54 * 80 col0, + 94 * 49 col1
----
-4320
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - 86 - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-4031
SELECT - 86 - COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + NULLIF ( + + 34, 51 * - + MIN( + + ( - 53 ) ) + + + 56 + + - COUNT( * ) / - + 83 / + + COALESCE ( - 32, + 95 ) ) * 26
----
884

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + NULLIF ( + + 34, 51 * - + MIN ( + + ( - 53 ) ) + + + 56 + + - COUNT ( * ) / - + 83 / + + COALESCE ( - 32, + 95 ) ) * 26
----
884

query I rowsort
SELECT DISTINCT ( 43 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4034
SELECT - - 79 * + CASE 2 WHEN + CAST( - - 43 AS DECIMAL ) THEN - CASE - 2 WHEN COUNT( * ) + + 63 THEN NULL WHEN - - COUNT( * ) THEN 60 + - 53 END END * - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT - - 79 * + CASE 2 WHEN + CAST ( - - 43 AS REAL ) THEN - CASE - 2 WHEN COUNT ( * ) + + 63 THEN NULL WHEN - - COUNT ( * ) THEN 60 + - 53 END END * - 0 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT + - 29 - COUNT( * ) + - + 42 + ( + CASE + CAST( - - 4 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN 36 WHEN - CASE - - CASE 74 WHEN + + 48 * 0 / - 91 + - 1 + - CAST( - 10 AS SIGNED ) THEN NULL WHEN - - 29 / 60 * - + 3 THEN + 78 / 61 WHEN ( - + 95 ) * + 60 + 83 + - COUNT( * ) THEN NULL ELSE NULL END WHEN + CASE + 65 WHEN + 56 THEN MAX( ALL + - 46 ) WHEN + 64 * - 18 THEN NULL END THEN AVG ( COALESCE ( - 20, 58 + - 89 ) ) WHEN + 81 THEN 7 + - COUNT( * ) * + ( - 62 ) END THEN 87 + + CAST( NULL AS SIGNED ) WHEN 63 THEN 20 END ) + + 38 / CAST( 85 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT + - 29 - COUNT ( * ) + - + 42 + ( + CASE + CAST ( - - 4 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN 36 WHEN - CASE - - CASE 74 WHEN + + 48 * 0 / - 91 + - 1 + - CAST ( - 10 AS INTEGER ) THEN NULL WHEN - - 29 / 60 * - + 3 THEN + 78 / 61 WHEN ( - + 95 ) * + 60 + 83 + - COUNT ( * ) THEN NULL ELSE NULL END WHEN + CASE + 65 WHEN + 56 THEN MAX ( ALL + - 46 ) WHEN + 64 * - 18 THEN NULL END THEN AVG ( COALESCE ( - 20, 58 + - 89 ) ) WHEN + 81 THEN 7 + - COUNT ( * ) * + ( - 62 ) END THEN 87 + + CAST ( NULL AS INTEGER ) WHEN 63 THEN 20 END ) + + 38 / CAST ( 85 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 60 + - 79 * 82
----
-6418

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + - COUNT( + 71 ) * - 95 + 76 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-4037
SELECT + - COUNT ( + 71 ) * - 95 + 76 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL SUM( ALL - 27 ) * - - ( + 74 ) * - 13 - + 57 AS col2
----
25917

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL SUM ( ALL - 27 ) * - - ( + 74 ) * - 13 - + 57 AS col2
----
25917

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL COUNT( * ) + - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL COUNT ( * ) + - + 15
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT - 96 + - ( + 6 ) + COUNT( * ) DIV + - 57 * 44
----
-102

skipif mysql # not compatible
query I rowsort label-4040
SELECT - 96 + - ( + 6 ) + COUNT ( * ) / + - 57 * 44
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + 5 * + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4041
SELECT + 5 * + + COUNT ( * )
----
5

query II rowsort
SELECT + 9 + - + 14 AS col1, ( + 97 )
----
-5
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT + + CASE + CAST( 93 AS SIGNED ) WHEN + MAX( ALL - 25 ) THEN - - 28 END + - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT + + CASE + CAST ( 93 AS INTEGER ) WHEN + MAX ( ALL - 25 ) THEN - - 28 END + - + 4
----
NULL

query I rowsort
SELECT DISTINCT 67 * - - 70 * 7
----
32830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4045
SELECT DISTINCT 5 DIV - ( + - 44 ) + 77 * + + CASE - + 10 WHEN + ( + + CAST( + ( + COUNT( * ) ) AS SIGNED ) ) + 86 THEN NULL WHEN 85 THEN NULL ELSE - 3 END
----
-231

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT 5 / - ( + - 44 ) + 77 * + + CASE - + 10 WHEN + ( + + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) ) + 86 THEN NULL WHEN 85 THEN NULL ELSE - 3 END
----
-231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4046
SELECT DISTINCT + + 8 DIV + 40 * NULLIF ( 48, + 70 + - COUNT( * ) + + + 17 * - + COUNT( * ) ) - 42
----
-42

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + + 8 / + 40 * NULLIF ( 48, + 70 + - COUNT ( * ) + + + 17 * - + COUNT ( * ) ) - 42
----
-42

query I rowsort
SELECT + - 78 + - - 51
----
-27

query I rowsort
SELECT ALL - 73 * - 61 - - - 36 AS col0
----
4417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4049
SELECT ALL - 76 DIV - + COALESCE ( 52, + MAX( ALL 93 ) ) - + 61
----
-60

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL - 76 / - + COALESCE ( 52, + MAX ( ALL 93 ) ) - + 61
----
-60

query II rowsort
SELECT DISTINCT + 35, ( - 90 ) * - - 1 AS col1
----
35
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT 93 * + COUNT( * ) - + 5
----
88

skipif mysql # not compatible
query I rowsort label-4051
SELECT 93 * + COUNT ( * ) - + 5
----
88

query I rowsort
SELECT ( - - 24 ) AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT + 69 - - - ( - ( SUM( ALL - 47 ) ) ) * + COALESCE ( + 91, + CAST( + 77 AS SIGNED ) + - 77 ) * - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT + 69 - - - ( - ( SUM ( ALL - 47 ) ) ) * + COALESCE ( + 91, + CAST ( + 77 AS INTEGER ) + - 77 ) * - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT + 28 * - COUNT( DISTINCT + 5 )
----
-28

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 28 * - COUNT ( DISTINCT + 5 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT + 46 - - + 63 DIV + 60 + + 97 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 46 - - + 63 / + 60 + + 97 AS col1
----
144

query II rowsort
SELECT ALL + 82, 30 AS col1
----
82
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT ALL CASE - CAST( - - 41 AS SIGNED ) WHEN NULLIF ( 53, COALESCE ( - 56, + 74 * 84 / NULLIF ( - NULLIF ( MIN( + 81 ), 89 ), + CAST( NULL AS SIGNED ) * - 24 * + 1 ) ) ) THEN + 20 WHEN + 43 + + 78 THEN NULL ELSE NULL END * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL CASE - CAST ( - - 41 AS INTEGER ) WHEN NULLIF ( 53, COALESCE ( - 56, + 74 * 84 / NULLIF ( - NULLIF ( MIN ( + 81 ), 89 ), + CAST ( NULL AS INTEGER ) * - 24 * + 1 ) ) ) THEN + 20 WHEN + 43 + + 78 THEN NULL ELSE NULL END * 85 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL + CAST( 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + CAST ( 21 AS INTEGER )
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4059
SELECT - COUNT( * ) / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT - COUNT ( * ) / - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - ( - 29 ) * + 34 * - 87
----
-85782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4061
SELECT - 92 - 65 - + ( - 0 ) + - 64 * - 15 * - + COUNT( * ) DIV + COUNT( * ) + 18
----
-1099

skipif mysql # not compatible
query I rowsort label-4061
SELECT - 92 - 65 - + ( - 0 ) + - 64 * - 15 * - + COUNT ( * ) / + COUNT ( * ) + 18
----
-1099

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - COUNT( * ) * + 89 + - 77 + - 75 AS col1
----
-241

skipif mysql # not compatible
query I rowsort label-4062
SELECT - COUNT ( * ) * + 89 + - 77 + - 75 AS col1
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT - CASE MIN( ALL 8 ) WHEN - 4 - - 55 THEN - 8 + 99 * + 67 - 74 ELSE NULL END - - + 24 + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT - CASE MIN ( ALL 8 ) WHEN - 4 - - 55 THEN - 8 + 99 * + 67 - 74 ELSE NULL END - - + 24 + + 46 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT - 38 + + - COALESCE ( CAST( NULL AS SIGNED ), - - CAST( - 35 AS SIGNED ) ) + + 31
----
28

skipif mysql # not compatible
query I rowsort label-4064
SELECT - 38 + + - COALESCE ( CAST ( NULL AS INTEGER ), - - CAST ( - 35 AS INTEGER ) ) + + 31
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT CASE - 41 WHEN - 30 THEN NULL WHEN + - 0 / - CASE + + 88 WHEN + - 33 THEN - COALESCE ( NULLIF ( 26, + 7 ), - 23, + 14 ) * - + 49 WHEN + + MIN( ALL 57 ) THEN - 15 * - 22 * + - 56 ELSE - + 70 END * + 27 + 54 * - + ( + - 96 ) * - COUNT( * ) * 86 + 85 + 90 * - COUNT( * ) * + - COUNT( - + 70 ) THEN NULL WHEN + + 86 THEN NULL ELSE 9 END AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4065
SELECT CASE - 41 WHEN - 30 THEN NULL WHEN + - 0 / - CASE + + 88 WHEN + - 33 THEN - COALESCE ( NULLIF ( 26, + 7 ), - 23, + 14 ) * - + 49 WHEN + + MIN ( ALL 57 ) THEN - 15 * - 22 * + - 56 ELSE - + 70 END * + 27 + 54 * - + ( + - 96 ) * - COUNT ( * ) * 86 + 85 + 90 * - COUNT ( * ) * + - COUNT ( - + 70 ) THEN NULL WHEN + + 86 THEN NULL ELSE 9 END AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT - - MIN( + - 14 ) DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-4066
SELECT - - MIN ( + - 14 ) / - 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - 14 + + - ( - - COUNT( - + 84 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4067
SELECT - 14 + + - ( - - COUNT ( - + 84 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL - + 57 * - COUNT( * ) + - 47 + COUNT( * ) * + 66 + + + 82 * - 2
----
-88

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - + 57 * - COUNT ( * ) + - 47 + COUNT ( * ) * + 66 + + + 82 * - 2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4069
SELECT DISTINCT + COUNT( - CAST( + - 35 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + COUNT ( - CAST ( + - 35 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT - NULLIF ( 70, 0 ) + - - ( + + 17 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL - SUM( ALL + 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL - SUM ( ALL + 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT - COALESCE ( - + 46, + NULLIF ( - COUNT( * ), - 69 + + - 51 ) * + 48 )
----
46

skipif mysql # not compatible
query I rowsort label-4072
SELECT - COALESCE ( - + 46, + NULLIF ( - COUNT ( * ), - 69 + + - 51 ) * + 48 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - 80 * 17 * - - 31 * - 20 * + MIN( CASE - 53 WHEN + 92 + + 51 THEN - 27 WHEN 28 THEN NULL ELSE 67 END )
----
56494400

skipif mysql # not compatible
query I rowsort label-4073
SELECT - 80 * 17 * - - 31 * - 20 * + MIN ( CASE - 53 WHEN + 92 + + 51 THEN - 27 WHEN 28 THEN NULL ELSE 67 END )
----
56494400

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT DISTINCT + - 94 + + COUNT( * ) * - 22, 46 col0
----
-116
46

skipif mysql # not compatible
query II rowsort label-4074
SELECT DISTINCT + - 94 + + COUNT ( * ) * - 22, 46 col0
----
-116
46

query I rowsort
SELECT + ( - 17 ) AS col2
----
-17

query I rowsort
SELECT - 39 + + + 3
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT DISTINCT 53 DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT 53 / + 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT NULLIF ( - 16, + - SUM( DISTINCT - - 96 ) / - 13 * + 65 + - 68 + + 24 + - 89 - - 10 * + + 34 ) * COALESCE ( - NULLIF ( - - 94, + 54 ), 61 * - COUNT( * ) ) - 76
----
1428

skipif mysql # not compatible
query I rowsort label-4078
SELECT NULLIF ( - 16, + - SUM ( DISTINCT - - 96 ) / - 13 * + 65 + - 68 + + 24 + - 89 - - 10 * + + 34 ) * COALESCE ( - NULLIF ( - - 94, + 54 ), 61 * - COUNT ( * ) ) - 76
----
1428

query I rowsort
SELECT ( ( - 1 ) ) * + - 6 + 77 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT 18 - + COUNT( * ) * 17 + + 37 + - COALESCE ( + 75, 8, MAX( - ( - + 65 ) ) ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-4080
SELECT 18 - + COUNT ( * ) * 17 + + 37 + - COALESCE ( + 75, 8, MAX ( - ( - + 65 ) ) ) col2
----
-37

query I rowsort
SELECT DISTINCT 88 * 46 col0
----
4048

query II rowsort
SELECT + 65 AS col2, + 53 * - 74 * + 86
----
65
-337292

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4083
SELECT 89 AS col2, 75 * ( - COUNT( * ) ) / + CAST( NULL AS DECIMAL )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-4083
SELECT 89 AS col2, 75 * ( - COUNT ( * ) ) / + CAST ( NULL AS REAL )
----
89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT 2 DIV COALESCE ( - 58, + + 45 - - AVG ( DISTINCT - 98 ), + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT 2 / COALESCE ( - 58, + + 45 - - AVG ( DISTINCT - 98 ), + 41 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4085
SELECT 62 DIV CASE + 37 WHEN + - 49 + 33 * 77 - - CAST( - 2 AS SIGNED ) DIV - 47 THEN + 6 WHEN - 47 THEN 80 WHEN - 83 - - CAST( - 97 AS SIGNED ) + + 74 THEN ( - NULLIF ( - + 54, + 68 ) ) ELSE - 26 + - 38 END * - 25 DIV - 57 + + 72 - 25 col2
----
47

skipif mysql # not compatible
query I rowsort label-4085
SELECT 62 / CASE + 37 WHEN + - 49 + 33 * 77 - - CAST ( - 2 AS INTEGER ) / - 47 THEN + 6 WHEN - 47 THEN 80 WHEN - 83 - - CAST ( - 97 AS INTEGER ) + + 74 THEN ( - NULLIF ( - + 54, + 68 ) ) ELSE - 26 + - 38 END * - 25 / - 57 + + 72 - 25 col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4086
SELECT DISTINCT COALESCE ( 50, - 92 ) * + 48 AS col1, CAST( - 97 AS SIGNED )
----
2400
-97

skipif mysql # not compatible
query II rowsort label-4086
SELECT DISTINCT COALESCE ( 50, - 92 ) * + 48 AS col1, CAST ( - 97 AS INTEGER )
----
2400
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4087
SELECT CAST( NULL AS DECIMAL ) * 38 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT CAST ( NULL AS REAL ) * 38 * 33
----
NULL

query I rowsort
SELECT ALL ( - - 60 ) + + ( 4 ) AS col2
----
64

query I rowsort
SELECT - ( + COALESCE ( - ( + NULLIF ( - 9, - 95 ) ), + 93 ) ) * - 92 + 34
----
862

query I rowsort
SELECT 53 + - - 92 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL - MAX( + 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - MAX ( + 12 ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT CAST( NULL AS SIGNED ) * - 8 / - SUM( 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT CAST ( NULL AS INTEGER ) * - 8 / - SUM ( 37 ) AS col1
----
NULL

query II rowsort
SELECT + 99, 91 - ( + 61 ) AS col1
----
99
30

query I rowsort
SELECT 89 * - 47 col1
----
-4183

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL - + 72 * + 47 * + 41 * + 79 * + 55 + + 81 + - - COUNT( * ) AS col0
----
-602842598

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - + 72 * + 47 * + 41 * + 79 * + 55 + + 81 + - - COUNT ( * ) AS col0
----
-602842598

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT - CASE - 82 WHEN + COUNT( * ) THEN ( MIN( ALL - - 14 ) ) WHEN + 51 + COUNT( * ) + 72 THEN NULL WHEN + 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT - CASE - 82 WHEN + COUNT ( * ) THEN ( MIN ( ALL - - 14 ) ) WHEN + 51 + COUNT ( * ) + 72 THEN NULL WHEN + 17 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT - - MAX( ALL + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4097
SELECT - - MAX ( ALL + 93 ) AS col2
----
93

query I rowsort
SELECT ( + - 31 ) - - 22
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT 12 * + COUNT( * ) + + 87 + - COALESCE ( 22, 21, + 17 * - - 17, + 15 ) + - ( 21 ) * - - 65 * - - 65
----
-88648

skipif mysql # not compatible
query I rowsort label-4099
SELECT 12 * + COUNT ( * ) + + 87 + - COALESCE ( 22, 21, + 17 * - - 17, + 15 ) + - ( 21 ) * - - 65 * - - 65
----
-88648

query II rowsort
SELECT 2, + 95 AS col0
----
2
95

query I rowsort
SELECT + 78 * - - 83 + - 47
----
6427

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + MIN( - - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4102
SELECT + MIN ( - - 29 )
----
29

query II rowsort
SELECT + 81, - 67 AS col1
----
81
-67

query I rowsort
SELECT 89 + - 5 AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4105
SELECT + 61 DIV - - COUNT( + 38 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-4105
SELECT + 61 / - - COUNT ( + 38 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT - 39 * + + 76 + 79 + MIN( DISTINCT 75 ) + - MAX( DISTINCT - 92 ) - - 49 * + MIN( DISTINCT - - ( - 79 ) ) * + 95 * 25 + + ( - 62 )
----
-9196405

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT - 39 * + + 76 + 79 + MIN ( DISTINCT 75 ) + - MAX ( DISTINCT - 92 ) - - 49 * + MIN ( DISTINCT - - ( - 79 ) ) * + 95 * 25 + + ( - 62 )
----
-9196405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4107
SELECT ALL - + COUNT( 26 ) DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - + COUNT ( 26 ) / 22
----
0

query I rowsort
SELECT ALL + + 17 - 9
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT 38 - + 66 + - + 59 + - 3 + - - CAST( NULL AS SIGNED ) * + 89 / - + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT 38 - + 66 + - + 59 + - 3 + - - CAST ( NULL AS INTEGER ) * + 89 / - + 69 AS col1
----
NULL

query I rowsort
SELECT - 27 - - 4 - 43 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4111
SELECT DISTINCT + 43, COUNT( * ) AS col1
----
43
1

skipif mysql # not compatible
query II rowsort label-4111
SELECT DISTINCT + 43, COUNT ( * ) AS col1
----
43
1

query II rowsort
SELECT ALL 76 AS col2, 37 AS col1
----
76
37

query I rowsort
SELECT 17 * + 37 AS col2
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT 61 * - - COUNT( DISTINCT - 73 )
----
61

skipif mysql # not compatible
query I rowsort label-4114
SELECT 61 * - - COUNT ( DISTINCT - 73 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT - COUNT( * ), - 23 AS col1
----
-1
-23

skipif mysql # not compatible
query II rowsort label-4115
SELECT - COUNT ( * ), - 23 AS col1
----
-1
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + SUM( + + 29 ) + + COALESCE ( + 92, - 28 ) + COUNT( * )
----
122

skipif mysql # not compatible
query I rowsort label-4116
SELECT + SUM ( + + 29 ) + + COALESCE ( + 92, - 28 ) + COUNT ( * )
----
122

query I rowsort
SELECT 18 + + 7 + + - 6
----
19

query I rowsort
SELECT 22 - - - 81 + 56 + 24 + - 12 - - 25
----
34

query I rowsort
SELECT ALL - 39 * - 57
----
2223

query I rowsort
SELECT 92 * - - ( - + 20 ) AS col1
----
-1840

query I rowsort
SELECT DISTINCT - 58 * + 64 * 92 AS col2
----
-341504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4122
SELECT DISTINCT - COALESCE ( + - COUNT( * ), - 21 * + NULLIF ( + 26, 45 ) + + 9 + - 71 + + 6 DIV - 72, 80 * - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT - COALESCE ( + - COUNT ( * ), - 21 * + NULLIF ( + 26, 45 ) + + 9 + - 71 + + 6 / - 72, 80 * - 41 )
----
1

query II rowsort
SELECT ALL - 40 * 7 AS col2, - ( 40 ) + + + 55 + 76 AS col1
----
-280
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT 18 * NULLIF ( + NULLIF ( - - 21, CASE - + COUNT( * ) WHEN + - 90 THEN ( + 18 ) ELSE NULL END ), + - 15 * - 74 + - + 0 ) * + + ( 10 ) AS col2
----
3780

skipif mysql # not compatible
query I rowsort label-4124
SELECT 18 * NULLIF ( + NULLIF ( - - 21, CASE - + COUNT ( * ) WHEN + - 90 THEN ( + 18 ) ELSE NULL END ), + - 15 * - 74 + - + 0 ) * + + ( 10 ) AS col2
----
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT SUM( - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4125
SELECT SUM ( - 83 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL - COALESCE ( NULLIF ( SUM( + + 13 ), CASE - 84 WHEN + 2 * - ( + 44 ) THEN NULL WHEN - COUNT( + 20 ) THEN NULL WHEN - 29 THEN 83 END + + CASE 8 WHEN + - 46 THEN + 10 + 72 END ), + + 59 ) * + 46 * + 56 + - + 15
----
-33503

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - COALESCE ( NULLIF ( SUM ( + + 13 ), CASE - 84 WHEN + 2 * - ( + 44 ) THEN NULL WHEN - COUNT ( + 20 ) THEN NULL WHEN - 29 THEN 83 END + + CASE 8 WHEN + - 46 THEN + 10 + 72 END ), + + 59 ) * + 46 * + 56 + - + 15
----
-33503

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT 37 DIV - + 41 * + 12
----
0

skipif mysql # not compatible
query I rowsort label-4127
SELECT 37 / - + 41 * + 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT 68 * + - ( + 45 ) + - COUNT( * ) + 99
----
-2962

skipif mysql # not compatible
query I rowsort label-4128
SELECT 68 * + - ( + 45 ) + - COUNT ( * ) + 99
----
-2962

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT DISTINCT 98 DIV - 20
----
-4

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT 98 / - 20
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4130
SELECT + MIN( DISTINCT + 81 ), - COUNT( * ) DIV + 30 col0
----
81
0

skipif mysql # not compatible
query II rowsort label-4130
SELECT + MIN ( DISTINCT + 81 ), - COUNT ( * ) / + 30 col0
----
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL COUNT( * ) * + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL COUNT ( * ) * + - 19
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT 27 DIV 92 * 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT 27 / 92 * 69 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4133
SELECT MIN( 92 ) DIV + COUNT( * ) + 30
----
122

skipif mysql # not compatible
query I rowsort label-4133
SELECT MIN ( 92 ) / + COUNT ( * ) + 30
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT DISTINCT - CASE 49 WHEN COUNT( * ) THEN NULL WHEN 59 THEN 17 END / + COUNT( * ) / - 41 * + + 55 + + 87 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT - CASE 49 WHEN COUNT ( * ) THEN NULL WHEN 59 THEN 17 END / + COUNT ( * ) / - 41 * + + 55 + + 87 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL 36 * + COUNT( * ) + + 38
----
74

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL 36 * + COUNT ( * ) + + 38
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - 49 * - 2 - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4136
SELECT - 49 * - 2 - COUNT ( * ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL + CAST( + + 60 AS SIGNED ) * + 74 col1
----
4440

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + CAST ( + + 60 AS INTEGER ) * + 74 col1
----
4440

query I rowsort
SELECT + 55 * - 54 - + 41 AS col1
----
-3011

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + MIN( ALL + + 70 ) + - - 68 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + MIN ( ALL + + 70 ) + - - 68 AS col1
----
138

query I rowsort
SELECT + 32 - + + 74 AS col0
----
-42

query I rowsort
SELECT + 71 * - 32 AS col2
----
-2272

query II rowsort
SELECT + 76 + + 32 + 27 AS col2, - 59 * + 22
----
135
-1298

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL - 46 * + + COUNT( * ) - COUNT( 76 )
----
-47

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL - 46 * + + COUNT ( * ) - COUNT ( 76 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT DISTINCT + ( 76 ) DIV 10 * + + 88 * + + 8 AS col0
----
4928

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + ( 76 ) / 10 * + + 88 * + + 8 AS col0
----
4928

query I rowsort
SELECT ALL NULLIF ( - - 4, 99 )
----
4

query I rowsort
SELECT - - 91 + + + 17 col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - COUNT( DISTINCT - + 8 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - COUNT ( DISTINCT - + 8 ) * - COUNT ( * )
----
1

query I rowsort
SELECT - + 74 * + 76 AS col1
----
-5624

query I rowsort
SELECT DISTINCT 13 * - 90 AS col2
----
-1170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4150
SELECT - CAST( 68 AS SIGNED ) AS col2, - NULLIF ( 49, - 10 ) + 63
----
-68
14

skipif mysql # not compatible
query II rowsort label-4150
SELECT - CAST ( 68 AS INTEGER ) AS col2, - NULLIF ( 49, - 10 ) + 63
----
-68
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT + 1 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT + 1 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4152
SELECT - 59 * - 33 * - COUNT( * ), 40 AS col1
----
-1947
40

skipif mysql # not compatible
query II rowsort label-4152
SELECT - 59 * - 33 * - COUNT ( * ), 40 AS col1
----
-1947
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT SUM( DISTINCT - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT SUM ( DISTINCT - 54 ) AS col1
----
-54

query I rowsort
SELECT ALL 35 * + + 92 AS col0
----
3220

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT - 47 + NULLIF ( 71, + 63 ) DIV + 25 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4155
SELECT - 47 + NULLIF ( 71, + 63 ) / + 25 AS col1
----
-45

query II rowsort
SELECT 9 AS col1, 33
----
9
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4157
SELECT DISTINCT 70 + COUNT( ALL + CAST( NULL AS SIGNED ) )
----
70

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT 70 + COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + 99 + - COUNT( * ) + - - 0 * - 33
----
98

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + 99 + - COUNT ( * ) + - - 0 * - 33
----
98

query I rowsort
SELECT - 99 * + - 90 * 27
----
240570

query I rowsort
SELECT + 11 + + 90 + 31 * 62
----
2023

onlyif mysql # aggregate syntax: 
query II rowsort label-4161
SELECT - 87 + - + MIN( 58 ), - 51 * + + 46 * + - COUNT( * ) AS col2
----
-145
2346

skipif mysql # not compatible
query II rowsort label-4161
SELECT - 87 + - + MIN ( 58 ), - 51 * + + 46 * + - COUNT ( * ) AS col2
----
-145
2346

query I rowsort
SELECT - 69 + 84 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + MIN( - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4163
SELECT + MIN ( - 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT - 70 * - 52 + - + MIN( - 11 ) AS col2
----
3651

skipif mysql # not compatible
query I rowsort label-4164
SELECT - 70 * - 52 + - + MIN ( - 11 ) AS col2
----
3651

query I rowsort
SELECT ALL - 9 * - 54
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT - 33 + - 2 + - 2 * - - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4166
SELECT - 33 + - 2 + - 2 * - - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT - COUNT( * ) * - NULLIF ( + 21, + 28 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-4167
SELECT - COUNT ( * ) * - NULLIF ( + 21, + 28 ) col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT + 89 * + + 95 * + COUNT( * )
----
8455

skipif mysql # not compatible
query I rowsort label-4168
SELECT + 89 * + + 95 * + COUNT ( * )
----
8455

query I rowsort
SELECT NULLIF ( 0, - 28 )
----
0

query I rowsort
SELECT 5 * - 2 * - - 53 + + + 9 + - - 32 * - 71
----
-2793

query I rowsort
SELECT + ( - 79 ) + + 20 + - 8 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT - ( - 49 ) * - ( - SUM( 27 ) ) + 54 col1
----
1377

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - ( - 49 ) * - ( - SUM ( 27 ) ) + 54 col1
----
1377

query II rowsort
SELECT ALL + + 99 AS col2, + 61
----
99
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT ALL + + COUNT( * ) DIV - NULLIF ( + MIN( + 14 ), + 97 DIV ( - 23 ) DIV - 68 + 35 - + 41 + + AVG ( + + 64 ) - + - MAX( - 25 ) + - 30 + + 66 - - - 9 * 68 + CASE + - ( + 39 ) WHEN 92 THEN + 89 WHEN 38 THEN - COUNT( * ) * - COUNT( * ) + 87 * + - 35 + 41 + - 44 * - 99 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + + COUNT ( * ) / - NULLIF ( + MIN ( + 14 ), + 97 / ( - 23 ) / - 68 + 35 - + 41 + + AVG ( + + 64 ) - + - MAX ( - 25 ) + - 30 + + 66 - - - 9 * 68 + CASE + - ( + 39 ) WHEN 92 THEN + 89 WHEN 38 THEN - COUNT ( * ) * - COUNT ( * ) + 87 * + - 35 + 41 + - 44 * - 99 END ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT + COUNT( * ) * + + 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT + COUNT ( * ) * + + 43 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL - + ( + + 79 ) * - COUNT( * ) * + 32 + + 59
----
2587

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - + ( + + 79 ) * - COUNT ( * ) * + 32 + + 59
----
2587

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + COUNT( * ) * - - 87
----
87

skipif mysql # not compatible
query I rowsort label-4177
SELECT + COUNT ( * ) * - - 87
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT + + 37 + 67 + + - 28 * - + COALESCE ( - 39, - COUNT( * ), + ( 73 ), + 27 * - 22 * - CASE + 12 WHEN + 75 * - - 30 / + 86 THEN + 0 END ), - 21 col0
----
-988
-21

skipif mysql # not compatible
query II rowsort label-4178
SELECT + + 37 + 67 + + - 28 * - + COALESCE ( - 39, - COUNT ( * ), + ( 73 ), + 27 * - 22 * - CASE + 12 WHEN + 75 * - - 30 / + 86 THEN + 0 END ), - 21 col0
----
-988
-21

query I rowsort
SELECT DISTINCT + 32 + + 59 AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4180
SELECT DISTINCT 94 + - - ( 1 ) + + + COUNT( * ) * + SUM( DISTINCT 82 ) - + COALESCE ( + + 93, - + 50 DIV - + 93 + - + 60, CASE - 64 WHEN 13 + + 98 * - 50 * - - 74 + + 85 * 51 THEN NULL WHEN 87 THEN 41 ELSE + 55 END DIV 42 + + 36 - + 42 + + + 73 DIV - - NULLIF ( + 48, + - 33 + - 99 ) )
----
84

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT 94 + - - ( 1 ) + + + COUNT ( * ) * + SUM ( DISTINCT 82 ) - + COALESCE ( + + 93, - + 50 / - + 93 + - + 60, CASE - 64 WHEN 13 + + 98 * - 50 * - - 74 + + 85 * 51 THEN NULL WHEN 87 THEN 41 ELSE + 55 END / 42 + + 36 - + 42 + + + 73 / - - NULLIF ( + 48, + - 33 + - 99 ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT + 6 - + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4181
SELECT + 6 - + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT ALL COALESCE ( + - 51, 98 * - 35 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT - ( - 46 ) AS col2, + CASE - 92 WHEN - COUNT( * ) THEN + - 71 * COUNT( * ) / + ( - 3 ) * - 55 WHEN - + 10 THEN NULL ELSE NULL END AS col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-4183
SELECT - ( - 46 ) AS col2, + CASE - 92 WHEN - COUNT ( * ) THEN + - 71 * COUNT ( * ) / + ( - 3 ) * - 55 WHEN - + 10 THEN NULL ELSE NULL END AS col2
----
46
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT + 46 + COALESCE ( 41, - 9, ( + - 83 ) + - + ( + + NULLIF ( + ( - MAX( DISTINCT - + 62 ) ), - 42 ) ) ) - 60 * + 62 AS col1, - 46 AS col1
----
-3633
-46

skipif mysql # not compatible
query II rowsort label-4184
SELECT + 46 + COALESCE ( 41, - 9, ( + - 83 ) + - + ( + + NULLIF ( + ( - MAX ( DISTINCT - + 62 ) ), - 42 ) ) ) - 60 * + 62 AS col1, - 46 AS col1
----
-3633
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL ( - 43 ) * + MAX( + 29 ) AS col2
----
-1247

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL ( - 43 ) * + MAX ( + 29 ) AS col2
----
-1247

query I rowsort
SELECT DISTINCT 16 + + 51 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL - COALESCE ( CASE + 0 WHEN - 33 * - COALESCE ( - SUM( + 46 ), + NULLIF ( - 76, 28 ) ) - 46 THEN COALESCE ( - + 81, - COUNT( * ) + - 95 + + 11 ) * + 49 + - 97 * + COALESCE ( - 53, 81 ) END, + + 85 + 16 * NULLIF ( - 80, + 2 ) ) + 4 * + + CASE + - 60 WHEN - COUNT( * ) * - - MAX( ALL + 72 ) * ( 66 ) * - - COUNT( * ) + + 86 THEN - COUNT( * ) ELSE NULL END * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL - COALESCE ( CASE + 0 WHEN - 33 * - COALESCE ( - SUM ( + 46 ), + NULLIF ( - 76, 28 ) ) - 46 THEN COALESCE ( - + 81, - COUNT ( * ) + - 95 + + 11 ) * + 49 + - 97 * + COALESCE ( - 53, 81 ) END, + + 85 + 16 * NULLIF ( - 80, + 2 ) ) + 4 * + + CASE + - 60 WHEN - COUNT ( * ) * - - MAX ( ALL + 72 ) * ( 66 ) * - - COUNT ( * ) + + 86 THEN - COUNT ( * ) ELSE NULL END * + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL SUM( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL SUM ( + 36 )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT DISTINCT + 86 DIV - 26 + + + 43 * + 42
----
1803

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT + 86 / - 26 + + + 43 * + 42
----
1803

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL COUNT( * ) - - 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL COUNT ( * ) - - 60 AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4191
SELECT ALL CAST( 31 AS SIGNED ) DIV - 13 + 89 + + 80 - - + 84 * ( + 73 ) DIV - NULLIF ( + 38, + + 15 * 0 + + 7 )
----
6

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL CAST ( 31 AS INTEGER ) / - 13 + 89 + + 80 - - + 84 * ( + 73 ) / - NULLIF ( + 38, + + 15 * 0 + + 7 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT DISTINCT - 60 * + - MAX( ( - + 79 ) )
----
-4740

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - 60 * + - MAX ( ( - + 79 ) )
----
-4740

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT - 41 * COUNT( * ) - ( + COUNT( * ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4193
SELECT - 41 * COUNT ( * ) - ( + COUNT ( * ) ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - COUNT( * ) * + 66 + + 60 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4194
SELECT - COUNT ( * ) * + 66 + + 60 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT 78 * - COALESCE ( 15, + MAX( ALL - 87 ), - COUNT( * ) + 52 + 7 + - 77 DIV + - 67 ) AS col0
----
-1170

skipif mysql # not compatible
query I rowsort label-4195
SELECT 78 * - COALESCE ( 15, + MAX ( ALL - 87 ), - COUNT ( * ) + 52 + 7 + - 77 / + - 67 ) AS col0
----
-1170

query I rowsort
SELECT + 31 + 86 * - + 25 col0
----
-2119

query I rowsort
SELECT DISTINCT + 68 * + + 17 - - - ( - 69 ) * - 54 AS col1
----
-2570

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT + 51 * + COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + 51 * + COUNT ( * ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL + 18 * + - 91 * + COUNT( + 9 ) * ( + 31 ) AS col1
----
-50778

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + 18 * + - 91 * + COUNT ( + 9 ) * ( + 31 ) AS col1
----
-50778

query II rowsort
SELECT - 7 * - - 53 col0, - 36
----
-371
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + - 93 * + - 19 - - SUM( ALL + 78 ) + ( - 47 ) AS col1
----
1798

skipif mysql # not compatible
query I rowsort label-4201
SELECT + - 93 * + - 19 - - SUM ( ALL + 78 ) + ( - 47 ) AS col1
----
1798

query I rowsort
SELECT 12 - - ( - 30 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT COUNT( * ) + + COUNT( * ) * + 90 + + + 2 + - + 23 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4203
SELECT COUNT ( * ) + + COUNT ( * ) * + 90 + + + 2 + - + 23 AS col2
----
70

query I rowsort
SELECT - - 46 col0
----
46

query I rowsort
SELECT + 74 + + - 31 + - 76
----
-33

query I rowsort
SELECT ALL - 3 + - 29 AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT ALL - + 39 + CAST( - 18 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - + 39 + CAST ( - 18 AS INTEGER ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT + SUM( ALL - 5 ) + - 39 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT + SUM ( ALL - 5 ) + - 39 AS col2
----
-44

query I rowsort
SELECT 18 * 28
----
504

query I rowsort
SELECT DISTINCT + 35 + 45
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL - CASE - 56 WHEN - 86 THEN + - COALESCE ( + 0, + 34, + - 90 * + 59 + + + 7 ) + + 23 + - COALESCE ( 68, - + COUNT( * ), + COUNT( * ) ) ELSE NULL END + + 52 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL - CASE - 56 WHEN - 86 THEN + - COALESCE ( + 0, + 34, + - 90 * + 59 + + + 7 ) + + 23 + - COALESCE ( 68, - + COUNT ( * ), + COUNT ( * ) ) ELSE NULL END + + 52 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 26 * + 87 * + 9
----
20358

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT COUNT( * ) + CASE - 98 WHEN - 72 THEN NULL ELSE - MAX( ALL + 43 ) * - - 23 - + ( 5 ) - + 48 END AS col0
----
-1041

skipif mysql # not compatible
query I rowsort label-4213
SELECT COUNT ( * ) + CASE - 98 WHEN - 72 THEN NULL ELSE - MAX ( ALL + 43 ) * - - 23 - + ( 5 ) - + 48 END AS col0
----
-1041

query I rowsort
SELECT 8 + 51 * + 52
----
2660

query I rowsort
SELECT DISTINCT 75 + + NULLIF ( - 0, + 59 * 24 * - 34 )
----
75

query II rowsort
SELECT - 72 AS col0, + 85
----
-72
85

query I rowsort
SELECT ALL 10 + 75
----
85

query I rowsort
SELECT 43 + 34 AS col0
----
77

query I rowsort
SELECT DISTINCT 39 - + 42 - ( - + 32 )
----
29

query I rowsort
SELECT ALL 4 * 92 AS col1
----
368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4221
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT CAST ( NULL AS REAL ) / - 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT 33 + + - 86 DIV 30 - + - 98
----
129

skipif mysql # not compatible
query I rowsort label-4222
SELECT 33 + + - 86 / 30 - + - 98
----
129

query I rowsort
SELECT COALESCE ( + + 87, 63, - 23 * 62 ) * + + 5 AS col0
----
435

query I rowsort
SELECT ALL 68 * - 13 AS col0
----
-884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT ( + 66 ) + COALESCE ( 36, - CAST( - 61 AS SIGNED ), - + 47 ) + - 42 * + ( - 2 )
----
186

skipif mysql # not compatible
query I rowsort label-4225
SELECT ( + 66 ) + COALESCE ( 36, - CAST ( - 61 AS INTEGER ), - + 47 ) + - 42 * + ( - 2 )
----
186

query III rowsort
SELECT + 48 AS col2, 54 * - 17 col0, + - 79
----
48
-918
-79

query I rowsort
SELECT 87 + + 26
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4228
SELECT ALL - CAST( NULL AS DECIMAL ) * + 17 / + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - CAST ( NULL AS REAL ) * + 17 / + 83 AS col1
----
NULL

query I rowsort
SELECT 12 + + + 73
----
85

query I rowsort
SELECT 58 + + 28 + 25 * - + 27 * + + 97
----
-65389

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + MAX( + - 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4231
SELECT + MAX ( + - 4 ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT + 62 * - CAST( NULL AS SIGNED ) / - MAX( + 86 ) + 5 + AVG ( 15 ) + + + 87 * + - ( + 8 ) * + 22 + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 62 * - CAST ( NULL AS INTEGER ) / - MAX ( + 86 ) + 5 + AVG ( 15 ) + + + 87 * + - ( + 8 ) * + 22 + + 79 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT + 44 * - CAST( + - 34 AS SIGNED )
----
1496

skipif mysql # not compatible
query I rowsort label-4233
SELECT + 44 * - CAST ( + - 34 AS INTEGER )
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT COUNT( * ) + + - 59
----
-58

skipif mysql # not compatible
query I rowsort label-4234
SELECT COUNT ( * ) + + - 59
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4235
SELECT ALL + + 66 * - 3 - - 33 DIV - ( + 58 )
----
-198

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + + 66 * - 3 - - 33 / - ( + 58 )
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT ALL + 37 + + 59 * 32 DIV COALESCE ( - + 98, - 92 + + 71 + - 27 + - 69 + + - 34, + - 32 + - 82 )
----
18

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + 37 + + 59 * 32 / COALESCE ( - + 98, - 92 + + 71 + - 27 + - 69 + + - 34, + - 32 + - 82 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT + 4 + CASE - 97 WHEN + + COUNT( ALL + 14 ) * 29 THEN - 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT + 4 + CASE - 97 WHEN + + COUNT ( ALL + 14 ) * 29 THEN - 56 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT ALL + + 74 * + + CAST( - - 8 AS SIGNED ) * - + 11 AS col2
----
-6512

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + + 74 * + + CAST ( - - 8 AS INTEGER ) * - + 11 AS col2
----
-6512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL - 82 + + + CASE - COUNT( * ) WHEN 27 / + COUNT( * ) + 64 * + 79 + 19 + 53 THEN NULL WHEN - 86 THEN + 2 / - 42 + + COUNT( * ) - + 73 * - 89 + + - COUNT( * ) * CAST( NULL AS SIGNED ) END - + + 76 + + COALESCE ( + COUNT( * ), + + 95 * - + 43 + + 25 + - 33 + 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - 82 + + + CASE - COUNT ( * ) WHEN 27 / + COUNT ( * ) + 64 * + 79 + 19 + 53 THEN NULL WHEN - 86 THEN + 2 / - 42 + + COUNT ( * ) - + 73 * - 89 + + - COUNT ( * ) * CAST ( NULL AS INTEGER ) END - + + 76 + + COALESCE ( + COUNT ( * ), + + 95 * - + 43 + + 25 + - 33 + 55 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT DISTINCT + 24 + - 66 + - 55 DIV + 60
----
-42

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT + 24 + - 66 + - 55 / + 60
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT MAX( DISTINCT 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT MAX ( DISTINCT 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL + COUNT( * ) + + 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + COUNT ( * ) + + 9 AS col0
----
10

query I rowsort
SELECT 11 - - 70 * + 88 col0
----
6171

query II rowsort
SELECT - 58, + NULLIF ( + + 53, 33 ) AS col2
----
-58
53

query I rowsort
SELECT 56 * 44 AS col1
----
2464

query I rowsort
SELECT 27 * - 34
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT DISTINCT 69 * - COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT 69 * - COUNT ( * ) AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT DISTINCT - ( - + 1 ) DIV - NULLIF ( 9, 52 + + + 0 ) * - 45
----
0

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT - ( - + 1 ) / - NULLIF ( 9, 52 + + + 0 ) * - 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4249
SELECT DISTINCT + COUNT( * ) - + 45, 15 + - - 49 + - 36 + - 30 * - NULLIF ( 97, + CAST( NULL AS SIGNED ) ) + - COUNT( + 23 ) * 72 * - 31 * - CAST( + 87 AS SIGNED ) AS col0
----
-44
-191246

skipif mysql # not compatible
query II rowsort label-4249
SELECT DISTINCT + COUNT ( * ) - + 45, 15 + - - 49 + - 36 + - 30 * - NULLIF ( 97, + CAST ( NULL AS INTEGER ) ) + - COUNT ( + 23 ) * 72 * - 31 * - CAST ( + 87 AS INTEGER ) AS col0
----
-44
-191246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT ALL - CAST( - ( - 35 ) AS SIGNED ) * - 61 AS col2
----
2135

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - CAST ( - ( - 35 ) AS INTEGER ) * - 61 AS col2
----
2135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT DISTINCT 63 * - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT 63 * - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4252
SELECT ALL + ( - 63 ) - - 68 * - 4 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
-335
NULL

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL + ( - 63 ) - - 68 * - 4 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
-335
NULL

query II rowsort
SELECT - 83, - 44 + 51 AS col0
----
-83
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL NULLIF ( + CASE - 53 WHEN MIN( ALL 77 ) THEN COALESCE ( 11, + - 22 * + + 20 + 86 ) * + ( + 13 ) + + 57 * - 74 ELSE - 14 * - 2 END, - - 79 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL NULLIF ( + CASE - 53 WHEN MIN ( ALL 77 ) THEN COALESCE ( 11, + - 22 * + + 20 + 86 ) * + ( + 13 ) + + 57 * - 74 ELSE - 14 * - 2 END, - - 79 ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-4255
SELECT - 37, - 4 DIV 41 AS col2
----
-37
0

skipif mysql # not compatible
query II rowsort label-4255
SELECT - 37, - 4 / 41 AS col2
----
-37
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4256
SELECT + CAST( NULL AS DECIMAL ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT + CAST ( NULL AS REAL ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - COUNT( DISTINCT ( + + 37 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4257
SELECT - COUNT ( DISTINCT ( + + 37 ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL COALESCE ( - COUNT( * ), - + 10, - 39, - - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL COALESCE ( - COUNT ( * ), - + 10, - 39, - - COUNT ( * ) ) col1
----
-1

query II rowsort
SELECT ALL 50, - 24 AS col2
----
50
-24

query I rowsort
SELECT + CASE - 1 WHEN + ( + ( - 32 ) ) + + 88 THEN 93 + + - 92 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT ALL + - COUNT( * ) AS col2, - 20 + 28
----
-1
8

skipif mysql # not compatible
query II rowsort label-4261
SELECT ALL + - COUNT ( * ) AS col2, - 20 + 28
----
-1
8

query I rowsort
SELECT DISTINCT + - 27 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL 26 * 84 + CASE NULLIF ( - - 14, - COUNT( * ) ) WHEN 24 THEN - 94 WHEN + - 2 + COUNT( * ) + + COUNT( * ) * + 69 * + COUNT( - 42 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL 26 * 84 + CASE NULLIF ( - - 14, - COUNT ( * ) ) WHEN 24 THEN - 94 WHEN + - 2 + COUNT ( * ) + + COUNT ( * ) * + 69 * + COUNT ( - 42 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 18 * - 44 + + 9
----
-783

query III rowsort
SELECT + 1 AS col1, 53 - + + ( - 94 ) AS col1, + 78 + + + 6
----
1
147
84

query I rowsort
SELECT ALL - 42 * + 14 + - + 25
----
-613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT + 30 / - - 76 / + - 43 + ( + + CAST( NULL AS SIGNED ) ) + + 90 * - - 23 * + - ( - + NULLIF ( - + 19, - - 5 * - + 10 ) ) * ( + ( 66 ) ) + 33 + COUNT( * ) + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT + 30 / - - 76 / + - 43 + ( + + CAST ( NULL AS INTEGER ) ) + + 90 * - - 23 * + - ( - + NULLIF ( - + 19, - - 5 * - + 10 ) ) * ( + ( 66 ) ) + 33 + COUNT ( * ) + + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT NULLIF ( 12, + COUNT( * ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4268
SELECT NULLIF ( 12, + COUNT ( * ) ) AS col2
----
12

query II rowsort
SELECT + 62 col1, + 96 * 88
----
62
8448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4270
SELECT ALL - - 16 * - - 30 + 58 + + CAST( - CAST( + 47 AS SIGNED ) AS SIGNED ) col2, + 33 AS col0
----
491
33

skipif mysql # not compatible
query II rowsort label-4270
SELECT ALL - - 16 * - - 30 + 58 + + CAST ( - CAST ( + 47 AS INTEGER ) AS INTEGER ) col2, + 33 AS col0
----
491
33

query II rowsort
SELECT - 35 AS col1, + 3
----
-35
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT ALL 47 * + COUNT( * ) * - + 91 + + - 29 AS col0, + ( + ( 86 ) ) col1
----
-4306
86

skipif mysql # not compatible
query II rowsort label-4272
SELECT ALL 47 * + COUNT ( * ) * - + 91 + + - 29 AS col0, + ( + ( 86 ) ) col1
----
-4306
86

query I rowsort
SELECT DISTINCT + ( + + 41 ) AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT ALL - + 18 * + - 50 + - NULLIF ( - + 85, - 80 + - 4 ) DIV + 29 col2
----
902

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - + 18 * + - 50 + - NULLIF ( - + 85, - 80 + - 4 ) / + 29 col2
----
902

query I rowsort
SELECT ALL 34 * 51 + 22 AS col1
----
1756

query I rowsort
SELECT - - ( + + ( + 39 ) ) + + 45 + - 24 AS col0
----
60

query I rowsort
SELECT + - 20 + + 88
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - NULLIF ( - 48, - 74 ) * - - MIN( ALL - + 99 ) + 97
----
-4655

skipif mysql # not compatible
query I rowsort label-4278
SELECT - NULLIF ( - 48, - 74 ) * - - MIN ( ALL - + 99 ) + 97
----
-4655

query I rowsort
SELECT - 53 - + 8 AS col1
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-4280
SELECT + ( + + 91 ), - 69 DIV + 79 col1
----
91
0

skipif mysql # not compatible
query II rowsort label-4280
SELECT + ( + + 91 ), - 69 / + 79 col1
----
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT + COUNT( * ) * - - 98 - 46
----
52

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT + COUNT ( * ) * - - 98 - 46
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4282
SELECT ALL - 45 * - - 15 AS col0, NULLIF ( + NULLIF ( 79, + - CAST( - 88 AS SIGNED ) ), - COALESCE ( 23, + 43 ) ) AS col0
----
-675
79

skipif mysql # not compatible
query II rowsort label-4282
SELECT ALL - 45 * - - 15 AS col0, NULLIF ( + NULLIF ( 79, + - CAST ( - 88 AS INTEGER ) ), - COALESCE ( 23, + 43 ) ) AS col0
----
-675
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4283
SELECT ALL COUNT( ALL - 79 ), 20 AS col2
----
1
20

skipif mysql # not compatible
query II rowsort label-4283
SELECT ALL COUNT ( ALL - 79 ), 20 AS col2
----
1
20

query I rowsort
SELECT ALL COALESCE ( - - NULLIF ( + 62, + ( - + ( + - 10 ) ) * 53 ), 1 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4285
SELECT - MIN( - - 82 ) + + - 85 + 11 * CAST( + 59 AS DECIMAL ) * + CAST( NULL AS DECIMAL ) AS col2, 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-4285
SELECT - MIN ( - - 82 ) + + - 85 + 11 * CAST ( + 59 AS REAL ) * + CAST ( NULL AS REAL ) AS col2, 25
----
NULL
25

query I rowsort
SELECT - 51 + - - 32 + + 59
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT - CAST( NULL AS SIGNED ) + + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT - CAST ( NULL AS INTEGER ) + + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4288
SELECT DISTINCT - 1 DIV - + 30 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4288
SELECT DISTINCT - 1 / - + 30 AS col2, COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT - COUNT( * ) + 52 + - 56 - + - 10 * + 57 * + + CAST( NULL AS SIGNED ) * - + 83 - COUNT( * ) - - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT - COUNT ( * ) + 52 + - 56 - + - 10 * + 57 * + + CAST ( NULL AS INTEGER ) * - + 83 - COUNT ( * ) - - 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4290
SELECT DISTINCT - 11 DIV - 61 * - ( COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - 11 / - 61 * - ( COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT + - ( - 32 ) + + 11
----
43

query I rowsort
SELECT + COALESCE ( + 41, 65 )
----
41

query I rowsort
SELECT - - 36 + 49 * + 17 + - 25 AS col2
----
844

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT ALL + 31 + + 56 DIV 63
----
31

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL + 31 + + 56 / 63
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT - 86 + - CAST( 94 AS SIGNED ) + - + 14
----
-194

skipif mysql # not compatible
query I rowsort label-4295
SELECT - 86 + - CAST ( 94 AS INTEGER ) + - + 14
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4296
SELECT - CAST( + + 28 AS SIGNED ), - CASE - - 48 WHEN + 26 * + 93 THEN + - 84 * - - 48 * + - NULLIF ( - + COUNT( * ), + + 62 ) * - 31 + + - NULLIF ( 56, - 30 ) * + MAX( - CAST( NULL AS SIGNED ) ) ELSE + 31 + - - COALESCE ( - 80, - COUNT( * ) * + + 84 + - COUNT( * ) + - - 68 ) + CAST( NULL AS SIGNED ) * + - 41 / + 43 * ( - - SUM( CAST( + 51 AS SIGNED ) ) ) / - 20 - 14 END * - + 59 AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-4296
SELECT - CAST ( + + 28 AS INTEGER ), - CASE - - 48 WHEN + 26 * + 93 THEN + - 84 * - - 48 * + - NULLIF ( - + COUNT ( * ), + + 62 ) * - 31 + + - NULLIF ( 56, - 30 ) * + MAX ( - CAST ( NULL AS INTEGER ) ) ELSE + 31 + - - COALESCE ( - 80, - COUNT ( * ) * + + 84 + - COUNT ( * ) + - - 68 ) + CAST ( NULL AS INTEGER ) * + - 41 / + 43 * ( - - SUM ( CAST ( + 51 AS INTEGER ) ) ) / - 20 - 14 END * - + 59 AS col1
----
-28
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4297
SELECT - ( + + 12 ) * + + 62 / - 16 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT - ( + + 12 ) * + + 62 / - 16 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4298
SELECT DISTINCT 45 DIV 19 * + 62 + 6 + - - 3 + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT 45 / 19 * + 62 + 6 + - - 3 + COUNT ( * )
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT ALL - 80 DIV 50 + + 8 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - 80 / 50 + + 8 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4300
SELECT ALL + 15 DIV COUNT( * ) + COUNT( * ) + 62 * - 4
----
-232

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + 15 / COUNT ( * ) + COUNT ( * ) + 62 * - 4
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT + CAST( + 51 AS SIGNED ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4301
SELECT + CAST ( + 51 AS INTEGER ) AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4302
SELECT DISTINCT - - 56 DIV + - 49 - 39 + ( - + COUNT( * ) ) DIV + 81 * - + 97 AS col2, + 50
----
-40
50

skipif mysql # not compatible
query II rowsort label-4302
SELECT DISTINCT - - 56 / + - 49 - 39 + ( - + COUNT ( * ) ) / + 81 * - + 97 AS col2, + 50
----
-40
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT + + 58 * - 29 / COUNT( * ) + - CAST( NULL AS SIGNED ) * + - 8 - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT + + 58 * - 29 / COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + - 8 - 49 AS col1
----
NULL

query I rowsort
SELECT + 29 + 31 AS col0
----
60

query I rowsort
SELECT + 0 * - 64 AS col1
----
0

query II rowsort
SELECT 80, 71 AS col2
----
80
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT COUNT( * ) DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-4307
SELECT COUNT ( * ) / + 61
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT ( + 61 ) DIV CASE 75 WHEN - 55 THEN + COUNT( * ) * + 92 * 67 WHEN - - 56 * + 23 - - 36 THEN NULL ELSE 2 END AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4308
SELECT ( + 61 ) / CASE 75 WHEN - 55 THEN + COUNT ( * ) * + 92 * 67 WHEN - - 56 * + 23 - - 36 THEN NULL ELSE 2 END AS col0
----
30

query I rowsort
SELECT 72 * + - 81
----
-5832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT NULLIF ( + 8, + + 38 / - 88 - 97 ) + - CASE + + 47 WHEN MIN( ALL - ( - CAST( NULL AS SIGNED ) ) ) THEN - + 21 * + COUNT( + CASE + 89 WHEN + 63 - + ( + 43 ) THEN NULL WHEN 76 / 5 - 32 + - 91 THEN - - 79 * + 21 + - CAST( + 21 AS SIGNED ) - - + 2 * - 72 ELSE NULL END ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT NULLIF ( + 8, + + 38 / - 88 - 97 ) + - CASE + + 47 WHEN MIN ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) THEN - + 21 * + COUNT ( + CASE + 89 WHEN + 63 - + ( + 43 ) THEN NULL WHEN 76 / 5 - 32 + - 91 THEN - - 79 * + 21 + - CAST ( + 21 AS INTEGER ) - - + 2 * - 72 ELSE NULL END ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4311
SELECT ALL 78, - 55 + + - 86 * - - ( + 20 ) * NULLIF ( + 8, - 41 ) + ( + 89 ) DIV CAST( + - 67 AS SIGNED ) AS col1
----
78
-13816

skipif mysql # not compatible
query II rowsort label-4311
SELECT ALL 78, - 55 + + - 86 * - - ( + 20 ) * NULLIF ( + 8, - 41 ) + ( + 89 ) / CAST ( + - 67 AS INTEGER ) AS col1
----
78
-13816

query I rowsort
SELECT 87 + + 98
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT MAX( DISTINCT - 41 ) * 59 * + 99 * + 33 * - + 13
----
102737349

skipif mysql # not compatible
query I rowsort label-4313
SELECT MAX ( DISTINCT - 41 ) * 59 * + 99 * + 33 * - + 13
----
102737349

query I rowsort
SELECT ALL - 15 + 84
----
69

query II rowsort
SELECT - 88 AS col2, + 24 + - 37 AS col1
----
-88
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4316
SELECT ALL - SUM( DISTINCT + 56 ) + COUNT( * ) * + 90 col1, + CAST( + + 78 AS SIGNED )
----
34
78

skipif mysql # not compatible
query II rowsort label-4316
SELECT ALL - SUM ( DISTINCT + 56 ) + COUNT ( * ) * + 90 col1, + CAST ( + + 78 AS INTEGER )
----
34
78

query I rowsort
SELECT 81 - 88 * + + 26 AS col0
----
-2207

query I rowsort
SELECT ALL 3 + 43 col2
----
46

query II rowsort
SELECT - 99 AS col0, + 59 + 26 * - - 45
----
-99
1229

query I rowsort
SELECT ALL - + 47 + ( 93 ) * - 12
----
-1163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4321
SELECT - 75 + + - MAX( - CAST( - 24 AS SIGNED ) ) DIV COUNT( * ) * - 15
----
285

skipif mysql # not compatible
query I rowsort label-4321
SELECT - 75 + + - MAX ( - CAST ( - 24 AS INTEGER ) ) / COUNT ( * ) * - 15
----
285

query I rowsort
SELECT ALL + - 59 + + 69 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT 66 * MAX( - 61 ) * NULLIF ( + COUNT( * ), - 1 - + - 33 + ( - - 51 ) * ( - + 98 ) ) AS col1
----
-4026

skipif mysql # not compatible
query I rowsort label-4323
SELECT 66 * MAX ( - 61 ) * NULLIF ( + COUNT ( * ), - 1 - + - 33 + ( - - 51 ) * ( - + 98 ) ) AS col1
----
-4026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT - + CAST( - 40 AS SIGNED ) col1
----
40

skipif mysql # not compatible
query I rowsort label-4324
SELECT - + CAST ( - 40 AS INTEGER ) col1
----
40

query II rowsort
SELECT ALL - 25 AS col2, 31
----
-25
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - 33 * - 65 * + ( + + COUNT( * ) ) * - 81 * 76 + - 9 AS col1
----
-13204629

skipif mysql # not compatible
query I rowsort label-4326
SELECT - 33 * - 65 * + ( + + COUNT ( * ) ) * - 81 * 76 + - 9 AS col1
----
-13204629

query I rowsort
SELECT DISTINCT - - 46 * - 70
----
-3220

query I rowsort
SELECT ALL + - 67 - - ( + - 78 )
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-4329
SELECT ALL - 84 * - + 47 * + 12, ( + + COUNT( * ) ) AS col1
----
47376
1

skipif mysql # not compatible
query II rowsort label-4329
SELECT ALL - 84 * - + 47 * + 12, ( + + COUNT ( * ) ) AS col1
----
47376
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4330
SELECT DISTINCT - + 54 * 71 * - - 57, CAST( + 71 AS SIGNED ) * + - 30 AS col0
----
-218538
-2130

skipif mysql # not compatible
query II rowsort label-4330
SELECT DISTINCT - + 54 * 71 * - - 57, CAST ( + 71 AS INTEGER ) * + - 30 AS col0
----
-218538
-2130

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT - 84 DIV + 18 + + + 88 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4331
SELECT - 84 / + 18 + + + 88 AS col1
----
84

query I rowsort
SELECT + ( - + 26 )
----
-26

query I rowsort
SELECT DISTINCT + - 25 - - 99
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - 8 * 65 + + 14 * - CASE 89 WHEN - 51 THEN - - COUNT( * ) ELSE - - 93 + 82 END + COUNT( * )
----
-2969

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 8 * 65 + + 14 * - CASE 89 WHEN - 51 THEN - - COUNT ( * ) ELSE - - 93 + 82 END + COUNT ( * )
----
-2969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4335
SELECT DISTINCT - CASE - + ( + 76 ) WHEN + 56 * - + 95 THEN - 41 + - NULLIF ( 8, + COUNT( * ) ) + - - COUNT( * ) * - ( 67 ) ELSE + COALESCE ( - 6, - CAST( NULL AS SIGNED ), + 38 ) + - - 71 + - 48 END * - 52, 64 * - 69 AS col0
----
884
-4416

skipif mysql # not compatible
query II rowsort label-4335
SELECT DISTINCT - CASE - + ( + 76 ) WHEN + 56 * - + 95 THEN - 41 + - NULLIF ( 8, + COUNT ( * ) ) + - - COUNT ( * ) * - ( 67 ) ELSE + COALESCE ( - 6, - CAST ( NULL AS INTEGER ), + 38 ) + - - 71 + - 48 END * - 52, 64 * - 69 AS col0
----
884
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT MIN( ALL 94 ) + + + 51 * - + 25
----
-1181

skipif mysql # not compatible
query I rowsort label-4336
SELECT MIN ( ALL 94 ) + + + 51 * - + 25
----
-1181

query I rowsort
SELECT ALL 69 * 43 * + - 5
----
-14835

query I rowsort
SELECT 81 - - + 88 * + + 81 AS col1
----
7209

query I rowsort
SELECT DISTINCT 4 * - ( 4 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL 98 + - - MAX( 91 )
----
189

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL 98 + - - MAX ( 91 )
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL 9 * - MIN( + 24 ) AS col2
----
-216

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL 9 * - MIN ( + 24 ) AS col2
----
-216

query I rowsort
SELECT DISTINCT 68 + ( 75 )
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4343
SELECT ALL CASE NULLIF ( + CAST( - - COUNT( * ) AS SIGNED ), 11 ) WHEN - 64 * - + CAST( NULL AS DECIMAL ) / - 36 * + ( + MIN( DISTINCT + 53 ) ) * - COUNT( - 66 ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) THEN NULL WHEN + 50 / 82 THEN 65 ELSE NULL END / - CAST( NULL AS SIGNED ) + - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL CASE NULLIF ( + CAST ( - - COUNT ( * ) AS INTEGER ), 11 ) WHEN - 64 * - + CAST ( NULL AS REAL ) / - 36 * + ( + MIN ( DISTINCT + 53 ) ) * - COUNT ( - 66 ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) THEN NULL WHEN + 50 / 82 THEN 65 ELSE NULL END / - CAST ( NULL AS INTEGER ) + - + 76
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4344
SELECT DISTINCT 3 + + - 82 - - + 87 * ( - 76 ) * - COUNT( - 15 ) + + 66 - + MAX( DISTINCT 81 ) DIV - 22 + + 14 + - 15
----
6601

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT 3 + + - 82 - - + 87 * ( - 76 ) * - COUNT ( - 15 ) + + 66 - + MAX ( DISTINCT 81 ) / - 22 + + 14 + - 15
----
6601

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT ALL + ( 97 ) DIV - 18
----
-5

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL + ( 97 ) / - 18
----
-5

query I rowsort
SELECT 12 + + ( NULLIF ( 36, + 86 ) ) AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4347
SELECT + 38 DIV + COUNT( * ) AS col0, - 35
----
38
-35

skipif mysql # not compatible
query II rowsort label-4347
SELECT + 38 / + COUNT ( * ) AS col0, - 35
----
38
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT 71 + - MIN( DISTINCT + 10 )
----
61

skipif mysql # not compatible
query I rowsort label-4348
SELECT 71 + - MIN ( DISTINCT + 10 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + MAX( + 36 ) + ( COUNT( * ) ) + + 54 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4349
SELECT + MAX ( + 36 ) + ( COUNT ( * ) ) + + 54 AS col1
----
91

query I rowsort
SELECT 2 * - + 98 AS col0
----
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-4351
SELECT ALL COUNT( * ) + 94 - + ( + - 23 ) AS col1, 15 AS col2
----
118
15

skipif mysql # not compatible
query II rowsort label-4351
SELECT ALL COUNT ( * ) + 94 - + ( + - 23 ) AS col1, 15 AS col2
----
118
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4352
SELECT ALL - COUNT( * ) + + + 96 col1, CAST( + 93 AS SIGNED ) AS col2
----
95
93

skipif mysql # not compatible
query II rowsort label-4352
SELECT ALL - COUNT ( * ) + + + 96 col1, CAST ( + 93 AS INTEGER ) AS col2
----
95
93

query I rowsort
SELECT - 4 + 58 + + + 27 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT MAX( + 46 ) + + 56 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT MAX ( + 46 ) + + 56 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - ( + MAX( ALL - 63 ) ) col2
----
63

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - ( + MAX ( ALL - 63 ) ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT COUNT( * ) * - - 15 + + - 34 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4356
SELECT COUNT ( * ) * - - 15 + + - 34 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT ALL ( - CASE - + 45 WHEN - + COUNT( * ) - - 57 / - 47 * - 60 + + ( MAX( - - 96 ) ) + 52 + + ( COUNT( * ) ) THEN 71 * 63 * 62 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL ( - CASE - + 45 WHEN - + COUNT ( * ) - - 57 / - 47 * - 60 + + ( MAX ( - - 96 ) ) + 52 + + ( COUNT ( * ) ) THEN 71 * 63 * 62 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT ALL + 47 DIV - 34
----
-1

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL + 47 / - 34
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT - COUNT( * ) DIV + ( - 77 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT - COUNT ( * ) / + ( - 77 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4360
SELECT ALL + - CAST( 59 AS SIGNED ) AS col0, + 55 AS col2
----
-59
55

skipif mysql # not compatible
query II rowsort label-4360
SELECT ALL + - CAST ( 59 AS INTEGER ) AS col0, + 55 AS col2
----
-59
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT + - 89 * 24 DIV ( - - 15 ) + 16 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT + - 89 * 24 / ( - - 15 ) + 16 AS col1
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT - - 8 DIV + 17 * - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT - - 8 / + 17 * - 42 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4363
SELECT ALL 8 DIV 66 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL 8 / 66 * + - COUNT ( * )
----
0

query I rowsort
SELECT ALL - 86 * + - 77 AS col2
----
6622

query I rowsort
SELECT ALL + 32 * - 97
----
-3104

query I rowsort
SELECT - 46 * - 80 * - 62 AS col2
----
-228160

query I rowsort
SELECT DISTINCT + 41 * - 32 * + 35 AS col2
----
-45920

query I rowsort
SELECT ALL - 87 * + + 83
----
-7221

query I rowsort
SELECT ALL 67 * 15 * + - 27 + 22 + ( + 65 ) AS col1
----
-27048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4370
SELECT - COALESCE ( - MIN( ALL + 19 ), CASE CASE - + 40 WHEN + - 92 THEN NULL WHEN + 18 THEN + 55 END WHEN 89 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - + COUNT( * ) THEN 37 * + COUNT( DISTINCT + 49 ) ELSE NULL END * + - 49 ) + - 86 - + + SUM( ALL 31 ) - 34 * ( - + 35 ) + + COUNT( * ) col1
----
1093

skipif mysql # not compatible
query I rowsort label-4370
SELECT - COALESCE ( - MIN ( ALL + 19 ), CASE CASE - + 40 WHEN + - 92 THEN NULL WHEN + 18 THEN + 55 END WHEN 89 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - + COUNT ( * ) THEN 37 * + COUNT ( DISTINCT + 49 ) ELSE NULL END * + - 49 ) + - 86 - + + SUM ( ALL 31 ) - 34 * ( - + 35 ) + + COUNT ( * ) col1
----
1093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4371
SELECT - COUNT( + - 92 ) * - 9 * + 54 + + 9 DIV + - ( + - 26 )
----
486

skipif mysql # not compatible
query I rowsort label-4371
SELECT - COUNT ( + - 92 ) * - 9 * + 54 + + 9 / + - ( + - 26 )
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4372
SELECT DISTINCT + 39 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT + 39 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT 79 * + 43 + + - ( COUNT( * ) ) AS col1
----
3396

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT 79 * + 43 + + - ( COUNT ( * ) ) AS col1
----
3396

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4374
SELECT ALL + 97 + 59 * + + 82 + + 8 + - 24 AS col1, - 28 * - - CAST( NULL AS DECIMAL ) + - COUNT( * ) - 90 col0
----
4919
NULL

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL + 97 + 59 * + + 82 + + 8 + - 24 AS col1, - 28 * - - CAST ( NULL AS REAL ) + - COUNT ( * ) - 90 col0
----
4919
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT - CAST( NULL AS SIGNED ) + - 52 / - SUM( ALL 71 ) * - 36 * - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT - CAST ( NULL AS INTEGER ) + - 52 / - SUM ( ALL 71 ) * - 36 * - - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT + 26 * + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4376
SELECT + 26 * + COUNT ( * ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4377
SELECT - - NULLIF ( - 66, - - 5 ) * NULLIF ( - ( - 21 ), 24 / 59 + - 61 + 36 ) + - SUM( ALL 48 ) + CAST( NULL AS SIGNED ) + - 96 - + 23 * COUNT( * ) / 12 + - + 45 * COUNT( * ) * ( - NULLIF ( + 15, 9 * 75 + 15 / 27 ) ) * - 92 / 73 + - 63 * + - 56 + + 40 * - 7 * - 62 + + 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT - - NULLIF ( - 66, - - 5 ) * NULLIF ( - ( - 21 ), 24 / 59 + - 61 + 36 ) + - SUM ( ALL 48 ) + CAST ( NULL AS INTEGER ) + - 96 - + 23 * COUNT ( * ) / 12 + - + 45 * COUNT ( * ) * ( - NULLIF ( + 15, 9 * 75 + 15 / 27 ) ) * - 92 / 73 + - 63 * + - 56 + + 40 * - 7 * - 62 + + 58 col0
----
NULL

query I rowsort
SELECT ALL 10 + 90
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4379
SELECT ALL CAST( NULL AS SIGNED ) - + + 96 + + 5 col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4379
SELECT ALL CAST ( NULL AS INTEGER ) - + + 96 + + 5 col2, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4380
SELECT 71 AS col0, COUNT( * )
----
71
1

skipif mysql # not compatible
query II rowsort label-4380
SELECT 71 AS col0, COUNT ( * )
----
71
1

query I rowsort
SELECT - - ( 83 ) * 52 + + - ( 40 ) - - 17 * - 45 AS col1
----
3511

query II rowsort
SELECT - + 29 AS col1, 98 AS col2
----
-29
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT - CAST( 18 AS SIGNED ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4383
SELECT - CAST ( 18 AS INTEGER ) AS col1
----
-18

query I rowsort
SELECT ALL ( + + 75 ) AS col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4385
SELECT + - 98 DIV - 9
----
10

skipif mysql # not compatible
query I rowsort label-4385
SELECT + - 98 / - 9
----
10

query I rowsort
SELECT ALL 39 * 93 AS col2
----
3627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4387
SELECT ALL + COALESCE ( - NULLIF ( - 10, 45 ), + COALESCE ( + 40, + 47 + - 78 * SUM( - + 90 ) DIV + 16 ) * + - 12 + + - 7 )
----
10

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + COALESCE ( - NULLIF ( - 10, 45 ), + COALESCE ( + 40, + 47 + - 78 * SUM ( - + 90 ) / + 16 ) * + - 12 + + - 7 )
----
10

query I rowsort
SELECT ALL + 40 * 59 * + ( + + 30 )
----
70800

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT + 82 + - - COALESCE ( - 85, ( - 15 ) * + 53 ) DIV + 55 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4389
SELECT + 82 + - - COALESCE ( - 85, ( - 15 ) * + 53 ) / + 55 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4390
SELECT - 1 * 63 + - 52 * + NULLIF ( + CAST( NULL AS SIGNED ), + - 53 ) * - 63 + + + 95 - + 71 AS col0, + COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4390
SELECT - 1 * 63 + - 52 * + NULLIF ( + CAST ( NULL AS INTEGER ), + - 53 ) * - 63 + + + 95 - + 71 AS col0, + COUNT ( * ) col0
----
NULL
1

query II rowsort
SELECT + 5 AS col2, - 64 AS col1
----
5
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT ALL 94 DIV - 36 + 35 + - 17 * + ( 14 ) AS col0
----
-205

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL 94 / - 36 + 35 + - 17 * + ( 14 ) AS col0
----
-205

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT 64 DIV 52 + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4393
SELECT 64 / 52 + + 96 AS col0
----
97

query I rowsort
SELECT - 40 * - 20 AS col0
----
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4395
SELECT + COUNT( * ) + 34 AS col2, - CASE + ( - COUNT( * ) ) WHEN + CAST( NULL AS SIGNED ) THEN - + COUNT( * ) END + + - 74
----
35
NULL

skipif mysql # not compatible
query II rowsort label-4395
SELECT + COUNT ( * ) + 34 AS col2, - CASE + ( - COUNT ( * ) ) WHEN + CAST ( NULL AS INTEGER ) THEN - + COUNT ( * ) END + + - 74
----
35
NULL

query I rowsort
SELECT ALL 31 * - 43 + - - 79
----
-1254

query I rowsort
SELECT ALL 50 * - ( - 7 ) + NULLIF ( 81, 67 )
----
431

query I rowsort
SELECT ALL 75 * + - 8 + + + 14 AS col0
----
-586

query II rowsort
SELECT + 76 col0, 31 * - 21
----
76
-651

query I rowsort
SELECT - 57 + + 92 + + - 51
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4401
SELECT + 68 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT + 68 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL - 56 * NULLIF ( + 89, 78 / COUNT( * ) ) AS col1
----
-4984

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - 56 * NULLIF ( + 89, 78 / COUNT ( * ) ) AS col1
----
-4984

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4403
SELECT COALESCE ( + + 25, + COUNT( * ) DIV - 28 * - - 66, + AVG ( ( - 32 ) ) DIV 97 DIV 16 * + + COUNT( ALL + 2 ) - - 84, + 66 ) AS col1, + 50
----
25
50

skipif mysql # not compatible
query II rowsort label-4403
SELECT COALESCE ( + + 25, + COUNT ( * ) / - 28 * - - 66, + AVG ( ( - 32 ) ) / 97 / 16 * + + COUNT ( ALL + 2 ) - - 84, + 66 ) AS col1, + 50
----
25
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT ALL + 45, - NULLIF ( - COUNT( * ), - 54 ) AS col1
----
45
1

skipif mysql # not compatible
query II rowsort label-4404
SELECT ALL + 45, - NULLIF ( - COUNT ( * ), - 54 ) AS col1
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT 2 * + 10 + CASE + - 88 WHEN + - 82 THEN 2 * 22 + - + 70 * + COUNT( * ) + + + COUNT( * ) * 61 * - 99 + + 11 + - COUNT( * ) + + COUNT( * ) + - + 83 * 28 + COUNT( * ) - + + 70 / CASE + 12 WHEN - 46 THEN 31 END + - 82 END * + - ( - ( 67 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT 2 * + 10 + CASE + - 88 WHEN + - 82 THEN 2 * 22 + - + 70 * + COUNT ( * ) + + + COUNT ( * ) * 61 * - 99 + + 11 + - COUNT ( * ) + + COUNT ( * ) + - + 83 * 28 + COUNT ( * ) - + + 70 / CASE + 12 WHEN - 46 THEN 31 END + - 82 END * + - ( - ( 67 ) )
----
NULL

query I rowsort
SELECT - 27 + ( - - 16 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4407
SELECT - COUNT( * ) * - - 75 * - 52 * - 17 AS col1, + ( 63 ) AS col0
----
-66300
63

skipif mysql # not compatible
query II rowsort label-4407
SELECT - COUNT ( * ) * - - 75 * - 52 * - 17 AS col1, + ( 63 ) AS col0
----
-66300
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT + MIN( + ( 19 ) )
----
19

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT + MIN ( + ( 19 ) )
----
19

query I rowsort
SELECT - + ( + + 88 ) + 56 AS col1
----
-32

query II rowsort
SELECT ALL - 90, + 11 AS col1
----
-90
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4411
SELECT - - COUNT( DISTINCT + 61 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT - - COUNT ( DISTINCT + 61 ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 77 AS col0, 2 AS col0
----
77
2

query I rowsort
SELECT - + CASE - 82 WHEN - 78 THEN NULL ELSE - 48 END AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT - + 93 + + 22 + + + 86 DIV + + 43 + - 42 + - + 27 + + 58 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4414
SELECT - + 93 + + 22 + + + 86 / + + 43 + - 42 + - + 27 + + 58 AS col0
----
-80

query I rowsort
SELECT + 27 * 20 - 98
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT - - 48 * + COUNT( 51 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT - - 48 * + COUNT ( 51 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT ALL COUNT( * ) AS col1, - 58 + - 92 + - 70 + - 6 col1
----
1
-226

skipif mysql # not compatible
query II rowsort label-4417
SELECT ALL COUNT ( * ) AS col1, - 58 + - 92 + - 70 + - 6 col1
----
1
-226

query I rowsort
SELECT + 2 + + 44 AS col2
----
46

query II rowsort
SELECT DISTINCT 28 AS col1, - 84 AS col0
----
28
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL - MIN( DISTINCT + + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - MIN ( DISTINCT + + 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + 16 + - - 93 + + 84 * 8 * - 15 * + + COUNT( * ) AS col0
----
-9971

skipif mysql # not compatible
query I rowsort label-4421
SELECT + 16 + - - 93 + + 84 * 8 * - 15 * + + COUNT ( * ) AS col0
----
-9971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4422
SELECT - 43 * 68 DIV + COUNT( * )
----
-2924

skipif mysql # not compatible
query I rowsort label-4422
SELECT - 43 * 68 / + COUNT ( * )
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT COALESCE ( - 83, - - 2 * + COUNT( * ) ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-4423
SELECT COALESCE ( - 83, - - 2 * + COUNT ( * ) ) col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT CAST( + + 67 AS SIGNED ) + + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4424
SELECT CAST ( + + 67 AS INTEGER ) + + COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL 29 + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL 29 + COUNT ( * )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT 55 * 35 DIV - ( - 38 )
----
50

skipif mysql # not compatible
query I rowsort label-4426
SELECT 55 * 35 / - ( - 38 )
----
50

query I rowsort
SELECT DISTINCT 40 * - + 74 AS col0
----
-2960

onlyif mysql # aggregate syntax: 
query II rowsort label-4428
SELECT DISTINCT 52 + + - COUNT( * ) AS col0, + NULLIF ( + + 72, 19 )
----
51
72

skipif mysql # not compatible
query II rowsort label-4428
SELECT DISTINCT 52 + + - COUNT ( * ) AS col0, + NULLIF ( + + 72, 19 )
----
51
72

query I rowsort
SELECT 81 * - - 45 AS col2
----
3645

query I rowsort
SELECT ALL 87 + 15
----
102

query I rowsort
SELECT + ( - CASE - - 86 WHEN 94 THEN 52 WHEN + AVG ( ALL 67 ) THEN NULL END ) / - 83 - 40 col2
----
NULL

query I rowsort
SELECT ALL 39 * - 20 AS col1
----
-780

query I rowsort
SELECT 71 * 31
----
2201

query II rowsort
SELECT 6 * + 95 AS col1, - 71 + 24
----
570
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT 74 - + + 8 + - SUM( - 92 ) * + + 90 * + 67 + - NULLIF ( - ( - + 29 ), - + AVG ( ALL 38 ) ) AS col0
----
554797

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT 74 - + + 8 + - SUM ( - 92 ) * + + 90 * + 67 + - NULLIF ( - ( - + 29 ), - + AVG ( ALL 38 ) ) AS col0
----
554797

query I rowsort
SELECT ALL - 34 - - 36 * - 56 AS col1
----
-2050

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT DISTINCT - 25 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT - 25 / 32
----
0

query I rowsort
SELECT ALL - + 50 * + 83
----
-4150

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL COUNT( * ) - + + 39 + - 74 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL COUNT ( * ) - + + 39 + - 74 AS col2
----
-112

query II rowsort
SELECT DISTINCT - + ( + + 26 ) AS col0, 23 - 63
----
-26
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT 36 * ( - COUNT( DISTINCT 84 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4441
SELECT 36 * ( - COUNT ( DISTINCT 84 ) ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT ( - 31 ), + COUNT( * ) + 15 AS col2
----
-31
16

skipif mysql # not compatible
query II rowsort label-4442
SELECT ( - 31 ), + COUNT ( * ) + 15 AS col2
----
-31
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL + - MIN( DISTINCT - + 18 ) * - COUNT( * ) * 85 / + NULLIF ( COUNT( * ), COUNT( ALL - 6 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + - MIN ( DISTINCT - + 18 ) * - COUNT ( * ) * 85 / + NULLIF ( COUNT ( * ), COUNT ( ALL - 6 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4444
SELECT - CAST( NULL AS SIGNED ) + 29, - 14 + - + 84 AS col2
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-4444
SELECT - CAST ( NULL AS INTEGER ) + 29, - 14 + - + 84 AS col2
----
NULL
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-4445
SELECT 25 DIV 94 AS col2, 91 AS col2
----
0
91

skipif mysql # not compatible
query II rowsort label-4445
SELECT 25 / 94 AS col2, 91 AS col2
----
0
91

query I rowsort
SELECT + 50 * - 76 AS col1
----
-3800

query I rowsort
SELECT DISTINCT + COALESCE ( 64, - - 84 )
----
64

query I rowsort
SELECT + CASE + ( + 98 ) WHEN - 43 THEN NULL WHEN 67 + + 89 THEN NULL ELSE + 10 + + 5 END * 48
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT ALL + 40 * + CAST( - + 32 AS SIGNED ) AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL + 40 * + CAST ( - + 32 AS INTEGER ) AS col0
----
-1280

query I rowsort
SELECT ALL + + 33 + + + 45
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - 73 + - 92 + - COUNT( * )
----
-166

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - 73 + - 92 + - COUNT ( * )
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT COUNT( * ) - - - 36 * 1 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4452
SELECT COUNT ( * ) - - - 36 * 1 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT + 66 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT + 66 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 33 + - 45 + - + 78 * + - 56
----
4356

query I rowsort
SELECT ALL + 1 + + - NULLIF ( 24, 12 + 95 * 48 ) * 21
----
-503

query I rowsort
SELECT 62 - 97 + 80
----
45

query II rowsort
SELECT - 3 col2, 59 - - 68
----
-3
127

query I rowsort
SELECT ALL 99 + + 64 + + 75
----
238

query I rowsort
SELECT 71 - - 90
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT 74 * - CAST( + 46 AS SIGNED ) AS col1
----
-3404

skipif mysql # not compatible
query I rowsort label-4460
SELECT 74 * - CAST ( + 46 AS INTEGER ) AS col1
----
-3404

query I rowsort
SELECT DISTINCT - ( - + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT SUM( + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4462
SELECT SUM ( + 68 )
----
68

query I rowsort
SELECT + 54 * + 17 * - 80 * + 7 + 76 AS col1
----
-514004

query I rowsort
SELECT 80 + - - ( + 46 )
----
126

query I rowsort
SELECT 16 * + 19
----
304

query II rowsort
SELECT + 35 AS col2, + ( + 18 ) col1
----
35
18

query I rowsort
SELECT ALL 85 * 22 * + + 69 AS col2
----
129030

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - SUM( ALL - 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - SUM ( ALL - 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - 16 * - COUNT( * ) + + 74
----
90

skipif mysql # not compatible
query I rowsort label-4469
SELECT - 16 * - COUNT ( * ) + + 74
----
90

query I rowsort
SELECT DISTINCT 32 * - 52 col1
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + 82 * + 41 - - COUNT( * )
----
3363

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 82 * + 41 - - COUNT ( * )
----
3363

query I rowsort
SELECT ALL - COALESCE ( + 38, + 57, + 27 ) * - + 68
----
2584

query II rowsort
SELECT + 83 AS col2, + 70 AS col1
----
83
70

query II rowsort
SELECT ALL - 84 AS col0, + 36 AS col1
----
-84
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL COUNT( * ) * + - CASE - 96 WHEN + NULLIF ( + - 11, - - MAX( ALL - 70 ) ) THEN NULL WHEN CASE + 62 WHEN 85 THEN + 82 + 13 * 24 WHEN 34 / 40 THEN NULL END / + - 20 THEN + 39 END / 7 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL COUNT ( * ) * + - CASE - 96 WHEN + NULLIF ( + - 11, - - MAX ( ALL - 70 ) ) THEN NULL WHEN CASE + 62 WHEN 85 THEN + 82 + 13 * 24 WHEN 34 / 40 THEN NULL END / + - 20 THEN + 39 END / 7 * - 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4476
SELECT DISTINCT + + MIN( DISTINCT + - CAST( - ( 41 ) AS SIGNED ) ) col2
----
41

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + + MIN ( DISTINCT + - CAST ( - ( 41 ) AS INTEGER ) ) col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL - 88 + - MAX( + + 71 ) * COUNT( * ) * + 97
----
-6975

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - 88 + - MAX ( + + 71 ) * COUNT ( * ) * + 97
----
-6975

query I rowsort
SELECT ALL + 30 + + + 49 - - 61 - - 11 * ( + ( 39 ) )
----
569

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT DISTINCT + - 80 + - 34 + + 94 * - + 23 * + 22 + - 91 - 71 DIV - ( + 56 ) AS col1
----
-47768

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT + - 80 + - 34 + + 94 * - + 23 * + 22 + - 91 - 71 / - ( + 56 ) AS col1
----
-47768

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT DISTINCT - 86 DIV + 5
----
-17

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT - 86 / + 5
----
-17

query I rowsort
SELECT ALL - 28 + 64 col2
----
36

query I rowsort
SELECT + + 47 + + 51 AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4483
SELECT + - CASE + ( + + ( + + COUNT( * ) ) ) WHEN - COUNT( * ) * 6 + + + 43 THEN + 9 END + 38 AS col1, 93 AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-4483
SELECT + - CASE + ( + + ( + + COUNT ( * ) ) ) WHEN - COUNT ( * ) * 6 + + + 43 THEN + 9 END + 38 AS col1, 93 AS col2
----
NULL
93

query I rowsort
SELECT - 34 - + - 15
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4485
SELECT DISTINCT - + 1 + + NULLIF ( 66, + - 12 ) + + - CASE - - COUNT( * ) WHEN CASE + 7 WHEN - + CAST( NULL AS SIGNED ) THEN 76 ELSE NULL END THEN + 86 WHEN - + 95 + + 62 THEN NULL END col2, 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-4485
SELECT DISTINCT - + 1 + + NULLIF ( 66, + - 12 ) + + - CASE - - COUNT ( * ) WHEN CASE + 7 WHEN - + CAST ( NULL AS INTEGER ) THEN 76 ELSE NULL END THEN + 86 WHEN - + 95 + + 62 THEN NULL END col2, 91
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL SUM( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL SUM ( + 83 )
----
83

query II rowsort
SELECT - 91, 69 AS col2
----
-91
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT - COUNT( * ) + 10 col2
----
9

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - COUNT ( * ) + 10 col2
----
9

query I rowsort
SELECT - 81 + + 5
----
-76

query I rowsort
SELECT ALL NULLIF ( + 50, - 19 ) col0
----
50

query I rowsort
SELECT DISTINCT NULLIF ( + 23, + + 0 )
----
23

query I rowsort
SELECT ALL + 34 - - - 83
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT - ( + NULLIF ( 97, - COUNT( * ) ) ) * - 99 AS col2
----
9603

skipif mysql # not compatible
query I rowsort label-4493
SELECT - ( + NULLIF ( 97, - COUNT ( * ) ) ) * - 99 AS col2
----
9603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4494
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4495
SELECT - CAST( + 44 AS SIGNED ) * + CAST( - + COUNT( * ) AS SIGNED ) * - 8
----
-352

skipif mysql # not compatible
query I rowsort label-4495
SELECT - CAST ( + 44 AS INTEGER ) * + CAST ( - + COUNT ( * ) AS INTEGER ) * - 8
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL + COUNT( * ) * 25 col1
----
25

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + COUNT ( * ) * 25 col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT DISTINCT + 17 * - 53 AS col0, + 11 + 13 + MIN( ( - + 20 ) ) col0
----
-901
4

skipif mysql # not compatible
query II rowsort label-4497
SELECT DISTINCT + 17 * - 53 AS col0, + 11 + 13 + MIN ( ( - + 20 ) ) col0
----
-901
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT - CAST( NULL AS SIGNED ) * + 23 / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT - CAST ( NULL AS INTEGER ) * + 23 / - 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4499
SELECT + MIN( DISTINCT + + ( + - 97 ) ) / - CASE 34 WHEN + 54 THEN COUNT( * ) * MAX( DISTINCT + + 83 ) / + CAST( NULL AS SIGNED ) + + 41 * + CAST( + SUM( + 69 ) AS DECIMAL ) + - NULLIF ( + 9, COALESCE ( 1, + + 11, NULLIF ( + 59, + AVG ( DISTINCT 8 ) - - COUNT( * ) + - 29 * - 13 - - 81 + 10 ) + + - 36 ) ) END - - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT + MIN ( DISTINCT + + ( + - 97 ) ) / - CASE 34 WHEN + 54 THEN COUNT ( * ) * MAX ( DISTINCT + + 83 ) / + CAST ( NULL AS INTEGER ) + + 41 * + CAST ( + SUM ( + 69 ) AS REAL ) + - NULLIF ( + 9, COALESCE ( 1, + + 11, NULLIF ( + 59, + AVG ( DISTINCT 8 ) - - COUNT ( * ) + - 29 * - 13 - - 81 + 10 ) + + - 36 ) ) END - - + 14 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - - 46, 84 ) AS col1
----
46

query I rowsort
SELECT - 19 * - 38 AS col0
----
722

query I rowsort
SELECT - + 20 * + - 63 * + 32
----
40320

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - - 45 * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4503
SELECT - - 45 * + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ALL + COUNT( * ) * + + 58 + + 58
----
116

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL + COUNT ( * ) * + + 58 + + 58
----
116

query I rowsort
SELECT ALL 53 * + + 7 * + 53 + + ( 52 ) * - 13 + + 14 AS col1
----
19001

query I rowsort
SELECT DISTINCT - 7 * + 81 + - 39
----
-606

query I rowsort
SELECT DISTINCT + - ( - + 40 )
----
40

query I rowsort
SELECT + + 18 + + + 39 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT + 18 + 49 DIV - 87 + - 22 col0
----
-4

skipif mysql # not compatible
query I rowsort label-4509
SELECT + 18 + 49 / - 87 + - 22 col0
----
-4

query I rowsort
SELECT - NULLIF ( - NULLIF ( + 2, - 45 * 58 ), 13 * + 20 - 55 - 21 + - 5 * + 1 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT + COUNT( ALL - 78 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + COUNT ( ALL - 78 ) col2
----
1

query I rowsort
SELECT ALL - 70 * 2 + + 88 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + MIN( 92 ) * - 66 AS col0
----
-6072

skipif mysql # not compatible
query I rowsort label-4513
SELECT + MIN ( 92 ) * - 66 AS col0
----
-6072

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT ALL - 41 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - 41 / + + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4515
SELECT + - ( + + COUNT( * ) ) DIV + 25 + NULLIF ( - - CAST( + 82 AS SIGNED ), + COUNT( DISTINCT 45 ) DIV + + 72 )
----
82

skipif mysql # not compatible
query I rowsort label-4515
SELECT + - ( + + COUNT ( * ) ) / + 25 + NULLIF ( - - CAST ( + 82 AS INTEGER ), + COUNT ( DISTINCT 45 ) / + + 72 )
----
82

query I rowsort
SELECT DISTINCT + 28 * + + 56
----
1568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4517
SELECT - CAST( NULL AS DECIMAL ), - 82 * 18 + + - 65 * + COUNT( * ) AS col0
----
NULL
-1541

skipif mysql # not compatible
query II rowsort label-4517
SELECT - CAST ( NULL AS REAL ), - 82 * 18 + + - 65 * + COUNT ( * ) AS col0
----
NULL
-1541

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT + CASE - + 65 WHEN - 74 THEN NULL ELSE + 56 END - + MAX( 2 ) + 94
----
148

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + CASE - + 65 WHEN - 74 THEN NULL ELSE + 56 END - + MAX ( 2 ) + 94
----
148

query I rowsort
SELECT + 52 * - 16
----
-832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4520
SELECT ALL 64 DIV + SUM( ALL 22 )
----
2

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL 64 / + SUM ( ALL 22 )
----
2

query I rowsort
SELECT - ( + 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + COUNT( * ) + 73 + 31 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-4522
SELECT + COUNT ( * ) + 73 + 31 AS col0
----
105

query I rowsort
SELECT ALL 16 * 86 AS col2
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT COALESCE ( - COUNT( * ), + + ( + 78 ), + - 61 * COALESCE ( 94, 37 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT COALESCE ( - COUNT ( * ), + + ( + 78 ), + - 61 * COALESCE ( 94, 37 ) )
----
-1

query I rowsort
SELECT DISTINCT 63 * + ( 42 ) AS col1
----
2646

query I rowsort
SELECT DISTINCT 21 * + - 77
----
-1617

query I rowsort
SELECT - 92 - + 73 AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - COUNT( * ) * 48
----
-48

skipif mysql # not compatible
query I rowsort label-4528
SELECT - COUNT ( * ) * 48
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4529
SELECT - 7 DIV + COUNT( * ) + - 94
----
-101

skipif mysql # not compatible
query I rowsort label-4529
SELECT - 7 / + COUNT ( * ) + - 94
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - 20 * - COUNT( * ) - 10 - 22 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4530
SELECT - 20 * - COUNT ( * ) - 10 - 22 AS col2
----
-12

query I rowsort
SELECT - 8 + 49
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT 76 * 77 - - SUM( ALL + CAST( NULL AS SIGNED ) - 17 * - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT 76 * 77 - - SUM ( ALL + CAST ( NULL AS INTEGER ) - 17 * - 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT + ( + COUNT( * ) ) * - 60 col2
----
-60

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT + ( + COUNT ( * ) ) * - 60 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - COUNT( * ) * + 55 + - 33 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4534
SELECT - COUNT ( * ) * + 55 + - 33 AS col1
----
-88

query I rowsort
SELECT ALL - 4 * - 52
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL + 13 + ( + MAX( DISTINCT 41 ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 13 + ( + MAX ( DISTINCT 41 ) ) AS col1
----
54

query I rowsort
SELECT ALL - ( ( + 43 ) ) AS col0
----
-43

query I rowsort
SELECT DISTINCT + 32 + 9
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4539
SELECT MAX( DISTINCT 65 ) + 62 DIV - 99 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4539
SELECT MAX ( DISTINCT 65 ) + 62 / - 99 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL + COUNT( * ) + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 30 END * + 98
----
2941

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + COUNT ( * ) + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 30 END * + 98
----
2941

query I rowsort
SELECT 40 * 19 AS col1
----
760

query I rowsort
SELECT 75 * 30
----
2250

query I rowsort
SELECT 49 * + 28
----
1372

query I rowsort
SELECT + 25 * + 67 + 11 AS col2
----
1686

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT DISTINCT 65 DIV 31 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT 65 / 31 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT 65 * + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-4546
SELECT 65 * + COUNT ( * ) col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT ALL - 42 DIV + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - 42 / + 76 AS col0
----
0

query I rowsort
SELECT CASE - 56 WHEN + 71 THEN - 49 ELSE NULL END * - 13
----
NULL

query I rowsort
SELECT 0 * 38 AS col2
----
0

query I rowsort
SELECT 6 - 50 * + 17 AS col1
----
-844

query I rowsort
SELECT DISTINCT 58 - - 42
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT MAX( - 62 ) + - 50 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-4552
SELECT MAX ( - 62 ) + - 50 AS col0
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4553
SELECT NULLIF ( SUM( DISTINCT 79 ), CAST( NULL AS SIGNED ) * - 66 ) + 19 * - ( - 11 )
----
288

skipif mysql # not compatible
query I rowsort label-4553
SELECT NULLIF ( SUM ( DISTINCT 79 ), CAST ( NULL AS INTEGER ) * - 66 ) + 19 * - ( - 11 )
----
288

query I rowsort
SELECT ALL - 52 * 36 AS col0
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT 90 * + SUM( DISTINCT - 88 ) AS col0
----
-7920

skipif mysql # not compatible
query I rowsort label-4555
SELECT 90 * + SUM ( DISTINCT - 88 ) AS col0
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT COALESCE ( + 15, 17 ) + - COALESCE ( + COUNT( * ) + 87, 31, - 50 + - 98 )
----
-73

skipif mysql # not compatible
query I rowsort label-4556
SELECT COALESCE ( + 15, 17 ) + - COALESCE ( + COUNT ( * ) + 87, 31, - 50 + - 98 )
----
-73

query I rowsort
SELECT ALL 62 * + 42
----
2604

query I rowsort
SELECT 15 + + 14 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT ( 95 ) + CAST( 77 AS SIGNED ) AS col1
----
172

skipif mysql # not compatible
query I rowsort label-4559
SELECT ( 95 ) + CAST ( 77 AS INTEGER ) AS col1
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4560
SELECT ALL CASE + 82 WHEN 3 THEN + 29 WHEN 44 THEN NULL ELSE CAST( - COUNT( * ) AS SIGNED ) - + 76 END + AVG ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL CASE + 82 WHEN 3 THEN + 29 WHEN 44 THEN NULL ELSE CAST ( - COUNT ( * ) AS INTEGER ) - + 76 END + AVG ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT 9 DIV + ( - 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT 9 / + ( - 74 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT COUNT( * ) DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT COUNT ( * ) / 95 AS col0
----
0

query I rowsort
SELECT 5 * 18 AS col2
----
90

query I rowsort
SELECT 41 + 48
----
89

query I rowsort
SELECT ALL 44 * + 18
----
792

query I rowsort
SELECT ALL ( 35 ) + 99 * 74 AS col2
----
7361

query I rowsort
SELECT DISTINCT 73 * - ( 73 * - COALESCE ( + 84, - 96 * + 26 ) )
----
447636

query I rowsort
SELECT ALL - 92 + - 46 * + 13
----
-690

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4569
SELECT CASE 64 WHEN + 46 THEN 42 * 97 + - ( - 2 + 47 ) WHEN CAST( + AVG ( DISTINCT - 63 ) AS DECIMAL ) * ( 48 + - 61 ) THEN NULL END * ( - ( 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT CASE 64 WHEN + 46 THEN 42 * 97 + - ( - 2 + 47 ) WHEN CAST ( + AVG ( DISTINCT - 63 ) AS REAL ) * ( 48 + - 61 ) THEN NULL END * ( - ( 85 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT SUM( ALL + 92 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-4570
SELECT SUM ( ALL + 92 ) col2
----
92

query I rowsort
SELECT DISTINCT 7 + 38 * 87 AS col2
----
3313

query I rowsort
SELECT ALL 11 + 0
----
11

query I rowsort
SELECT ALL 25 + 85 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - COUNT( * ) - - 53
----
52

skipif mysql # not compatible
query I rowsort label-4574
SELECT - COUNT ( * ) - - 53
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) * ( 19 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) * ( 19 ) AS col0
----
-18

query I rowsort
SELECT ALL + - 32 - - 21
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT - SUM( ALL + 44 ) * 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - SUM ( ALL + 44 ) * 0 AS col1
----
0

query I rowsort
SELECT DISTINCT - 47 * + 86
----
-4042

query I rowsort
SELECT + 58 - + 12
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT DISTINCT - COUNT( * ) * 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT - COUNT ( * ) * 5 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT ALL + 55 - + CAST( NULL AS SIGNED ) * CASE - COUNT( * ) * - 63 + + COALESCE ( 86, - 65 + - 28 ) WHEN 8 THEN - 20 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + 55 - + CAST ( NULL AS INTEGER ) * CASE - COUNT ( * ) * - 63 + + COALESCE ( 86, - 65 + - 28 ) WHEN 8 THEN - 20 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 71 * 61
----
4331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4583
SELECT NULLIF ( - + 33, COUNT( * ) * 45 + ( CAST( 39 AS SIGNED ) + + 71 ) ) * 71 col0
----
-2343

skipif mysql # not compatible
query I rowsort label-4583
SELECT NULLIF ( - + 33, COUNT ( * ) * 45 + ( CAST ( 39 AS INTEGER ) + + 71 ) ) * 71 col0
----
-2343

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT 90 DIV - 21 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4584
SELECT 90 / - 21 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4585
SELECT DISTINCT + 93 + + SUM( - 4 ) * CAST( - SUM( + 45 ) * + 91 AS SIGNED ) AS col1
----
16473

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + 93 + + SUM ( - 4 ) * CAST ( - SUM ( + 45 ) * + 91 AS INTEGER ) AS col1
----
16473

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT COUNT( * ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-4586
SELECT COUNT ( * ) + - 8
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT DISTINCT 22 + - 84 - - 11 * - 58 DIV + 58
----
-73

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT 22 + - 84 - - 11 * - 58 / + 58
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT 25 * COUNT( 51 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4588
SELECT 25 * COUNT ( 51 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT 96 - - SUM( DISTINCT CASE 51 WHEN - 12 THEN NULL ELSE + 70 END ) * + 60 AS col2
----
4296

skipif mysql # not compatible
query I rowsort label-4589
SELECT 96 - - SUM ( DISTINCT CASE 51 WHEN - 12 THEN NULL ELSE + 70 END ) * + 60 AS col2
----
4296

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT 68 * COUNT( * ) * + 16 AS col1
----
1088

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT 68 * COUNT ( * ) * + 16 AS col1
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL NULLIF ( + - 94, + MIN( - 79 ) ) + + 15
----
-79

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL NULLIF ( + - 94, + MIN ( - 79 ) ) + + 15
----
-79

query I rowsort
SELECT ALL 3 * + + ( + 10 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT - 9 * COUNT( * ) * - COALESCE ( 63 * 19, - 55, 15 ) AS col0
----
10773

skipif mysql # not compatible
query I rowsort label-4593
SELECT - 9 * COUNT ( * ) * - COALESCE ( 63 * 19, - 55, 15 ) AS col0
----
10773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4594
SELECT ALL COUNT( * ) + - MAX( - 15 ) + - 17 DIV 80
----
16

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL COUNT ( * ) + - MAX ( - 15 ) + - 17 / 80
----
16

query I rowsort
SELECT DISTINCT - 4 * 92 * + 2
----
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT ALL CAST( - 77 AS SIGNED ) + 5
----
-72

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL CAST ( - 77 AS INTEGER ) + 5
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT + 3 - + COUNT( * ) + - 33 DIV + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-4597
SELECT + 3 - + COUNT ( * ) + - 33 / + COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL COALESCE ( + COUNT( * ), 85, - CASE + 52 WHEN + AVG ( ALL + 87 ) THEN - SUM( 44 ) WHEN 47 * + COUNT( * ) + + 49 THEN NULL WHEN 99 + 46 * 63 THEN COUNT( * ) - ( + 83 ) * - 90 ELSE NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL COALESCE ( + COUNT ( * ), 85, - CASE + 52 WHEN + AVG ( ALL + 87 ) THEN - SUM ( 44 ) WHEN 47 * + COUNT ( * ) + + 49 THEN NULL WHEN 99 + 46 * 63 THEN COUNT ( * ) - ( + 83 ) * - 90 ELSE NULL END )
----
1

query I rowsort
SELECT DISTINCT ( + 20 ) + 9 AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT ALL ( - 57 ) DIV - 26 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL ( - 57 ) / - 26 AS col0
----
2

query I rowsort
SELECT + 26 + + ( + 17 ) * 63
----
1097

query I rowsort
SELECT ALL 95 + + 73 + 23 * + 20
----
628

query I rowsort
SELECT NULLIF ( + 11, AVG ( DISTINCT 20 ) + + 63 * NULLIF ( - 50, - ( - 54 ) / 84 ) ) AS col1
----
11

query I rowsort
SELECT - + ( 42 ) * 19 + NULLIF ( - 28, + 72 )
----
-826

query I rowsort
SELECT + + 75 * + + 3 AS col1
----
225

query I rowsort
SELECT ALL - 70 * + + 88
----
-6160

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4607
SELECT 6 DIV - + 18 * + CAST( 6 AS SIGNED ) + 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4607
SELECT 6 / - + 18 * + CAST ( 6 AS INTEGER ) + 22 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT COUNT( * ) * - - CAST( 64 AS SIGNED ) - 50
----
14

skipif mysql # not compatible
query I rowsort label-4608
SELECT COUNT ( * ) * - - CAST ( 64 AS INTEGER ) - 50
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT + MIN( + + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-4609
SELECT + MIN ( + + 36 )
----
36

query I rowsort
SELECT ALL - 79 * 53 - 73
----
-4260

query I rowsort
SELECT + 15 * - 99
----
-1485

query I rowsort
SELECT ALL 84 * 64 + 93
----
5469

query I rowsort
SELECT + 28 * + 81
----
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT ALL + 76 * 33 * CASE WHEN NOT - CAST( 30 AS SIGNED ) IN ( - ( + 98 ) * + CASE + 90 WHEN MIN( ALL 30 ) THEN 86 * + ( + 82 ) + - COUNT( * ) * - 38 END ) THEN NULL ELSE + 37 END AS col0
----
92796

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL + 76 * 33 * CASE WHEN NOT - CAST ( 30 AS INTEGER ) IN ( - ( + 98 ) * + CASE + 90 WHEN MIN ( ALL 30 ) THEN 86 * + ( + 82 ) + - COUNT ( * ) * - 38 END ) THEN NULL ELSE + 37 END AS col0
----
92796

query I rowsort
SELECT DISTINCT - 18 * + - 49 + - 68 * 7
----
406

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT ALL + ( - - 31 ) DIV 2 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + ( - - 31 ) / 2 AS col0
----
15

query I rowsort
SELECT + - 48 * - - 58 AS col1
----
-2784

query I rowsort
SELECT + 95 * + + 35 + - 80
----
3245

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - 69 + + - COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4619
SELECT - 69 + + - COUNT ( * ) AS col0
----
-70

query I rowsort
SELECT + + 88 + 18 + 42
----
148

query I rowsort
SELECT - - NULLIF ( 13, ( 79 ) ) + - 75
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + COUNT( * ) * + + 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4622
SELECT + COUNT ( * ) * + + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT COUNT( DISTINCT - 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4623
SELECT COUNT ( DISTINCT - 30 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT COUNT( DISTINCT 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4624
SELECT COUNT ( DISTINCT 25 ) AS col0
----
1

query I rowsort
SELECT - 93 + + 82 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT 59 * - 83 * - COUNT( * ) + 64 AS col0
----
4961

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT 59 * - 83 * - COUNT ( * ) + 64 AS col0
----
4961

query I rowsort
SELECT ALL ( + 34 ) col2
----
34

query I rowsort
SELECT - 69 + + - 5 * 83 * + 41
----
-17084

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - 28 * COUNT( * ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 28 * COUNT ( * ) col1
----
-28

query I rowsort
SELECT ALL + 89 + + 97
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT SUM( ALL CASE - 4 WHEN 47 * + 99 THEN NULL ELSE + 17 * + 8 END )
----
136

skipif mysql # not compatible
query I rowsort label-4631
SELECT SUM ( ALL CASE - 4 WHEN 47 * + 99 THEN NULL ELSE + 17 * + 8 END )
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4632
SELECT - 45 DIV - ( - + 72 ) * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 45 / - ( - + 72 ) * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + ( COUNT( * ) ) + 66
----
67

skipif mysql # not compatible
query I rowsort label-4633
SELECT + ( COUNT ( * ) ) + 66
----
67

query II rowsort
SELECT - 18 AS col1, 13 AS col1
----
-18
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT - 33 + 16 DIV - + 14 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4635
SELECT - 33 + 16 / - + 14 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT - 39 - CAST( + + 14 AS SIGNED ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4636
SELECT - 39 - CAST ( + + 14 AS INTEGER ) AS col0
----
-53

query I rowsort
SELECT ALL + 44 + + ( + - 94 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL COALESCE ( - 31, + COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL COALESCE ( - 31, + COUNT ( * ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT - 3 + - - COUNT( * ) + 12 + COUNT( ALL 23 + 9 ) * + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4639
SELECT - 3 + - - COUNT ( * ) + 12 + COUNT ( ALL 23 + 9 ) * + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL 73 * - MAX( DISTINCT - 78 ) AS col1
----
5694

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL 73 * - MAX ( DISTINCT - 78 ) AS col1
----
5694

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - COUNT( + 17 ) + CASE - ( 19 ) WHEN 13 + - 69 * + 83 THEN - SUM( DISTINCT 38 ) + + 91 WHEN + 71 THEN 37 WHEN + 52 - ( 54 ) THEN NULL END - - ( 8 - - 20 ) * + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT - COUNT ( + 17 ) + CASE - ( 19 ) WHEN 13 + - 69 * + 83 THEN - SUM ( DISTINCT 38 ) + + 91 WHEN + 71 THEN 37 WHEN + 52 - ( 54 ) THEN NULL END - - ( 8 - - 20 ) * + 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL + ( - COALESCE ( - 51, + COUNT( * ) ) ) + - 54 * + 66
----
-3513

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL + ( - COALESCE ( - 51, + COUNT ( * ) ) ) + - 54 * + 66
----
-3513

query I rowsort
SELECT ALL 49 * - 68
----
-3332

query I rowsort
SELECT - 55 + - - 96
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT - COUNT( * ) AS col1, 3 * - 94
----
-1
-282

skipif mysql # not compatible
query II rowsort label-4645
SELECT - COUNT ( * ) AS col1, 3 * - 94
----
-1
-282

query I rowsort
SELECT - COALESCE ( 9, - + 82, - 87 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL + - 52 * COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + - 52 * COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT - + COUNT( * ) AS col1, 79
----
-1
79

skipif mysql # not compatible
query II rowsort label-4648
SELECT - + COUNT ( * ) AS col1, 79
----
-1
79

query I rowsort
SELECT ALL 29 - + 88 AS col1
----
-59

query I rowsort
SELECT ALL + - ( + 10 ) * ( 73 ) * 61 col1
----
-44530

query I rowsort
SELECT DISTINCT + ( + - ( - + 35 ) ) col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL CAST( NULL AS SIGNED ) / + 38 - NULLIF ( + 57, + 40 * 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL CAST ( NULL AS INTEGER ) / + 38 - NULLIF ( + 57, + 40 * 15 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT + + SUM( + - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4653
SELECT + + SUM ( + - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + + 3 * - COUNT( * ) + + + 39 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4654
SELECT + + 3 * - COUNT ( * ) + + + 39 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT - + COUNT( * ) - - - COALESCE ( - - 49, + 27 ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-4655
SELECT - + COUNT ( * ) - - - COALESCE ( - - 49, + 27 ) col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - 64 * + - MAX( DISTINCT + 31 )
----
1984

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - 64 * + - MAX ( DISTINCT + 31 )
----
1984

query I rowsort
SELECT + - 58 - - + 86 + - 68
----
-40

query II rowsort
SELECT 99 AS col1, 49 + + - 94 AS col2
----
99
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT + 15 DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT + 15 / 23
----
0

query I rowsort
SELECT ALL 59 * + + 2 - + 5 col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL ( - ( + 65 ) ) * + COUNT( * ) + NULLIF ( - 91, 28 ) AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL ( - ( + 65 ) ) * + COUNT ( * ) + NULLIF ( - 91, 28 ) AS col2
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4662
SELECT + CAST( - 51 AS SIGNED ), + 32 AS col2
----
-51
32

skipif mysql # not compatible
query II rowsort label-4662
SELECT + CAST ( - 51 AS INTEGER ), + 32 AS col2
----
-51
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + COUNT( * ) * + + ( ( 39 ) ) + + 31
----
70

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + COUNT ( * ) * + + ( ( 39 ) ) + + 31
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT + 93 DIV + 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4664
SELECT + 93 / + 50 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * + 87 * COALESCE ( - 84, COUNT( ALL + COALESCE ( + 3, 99 / + NULLIF ( - CASE + 69 WHEN - 97 THEN NULL WHEN 22 + 80 THEN - 9 END, 11 * 38 - 20 ) ) ) ) - - COUNT( ALL 81 ) * 25 + + 12 col1
----
7345

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * + 87 * COALESCE ( - 84, COUNT ( ALL + COALESCE ( + 3, 99 / + NULLIF ( - CASE + 69 WHEN - 97 THEN NULL WHEN 22 + 80 THEN - 9 END, 11 * 38 - 20 ) ) ) ) - - COUNT ( ALL 81 ) * 25 + + 12 col1
----
7345

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4666
SELECT + 69 * - NULLIF ( MIN( ALL + + 87 ), + 6 * CAST( NULL AS DECIMAL ) ) * 6 AS col1
----
-36018

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 69 * - NULLIF ( MIN ( ALL + + 87 ), + 6 * CAST ( NULL AS REAL ) ) * 6 AS col1
----
-36018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT + 28 - - + 63 * - + 58 + CAST( 92 AS SIGNED ) * ( + 74 ) AS col1
----
3182

skipif mysql # not compatible
query I rowsort label-4667
SELECT + 28 - - + 63 * - + 58 + CAST ( 92 AS INTEGER ) * ( + 74 ) AS col1
----
3182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4668
SELECT + ( COALESCE ( + 41, COUNT( * ) + - ( COUNT( * ) ) * + 67, + ( NULLIF ( SUM( + 18 ), 70 * 87 ) ) + 24 DIV 45 ) )
----
41

skipif mysql # not compatible
query I rowsort label-4668
SELECT + ( COALESCE ( + 41, COUNT ( * ) + - ( COUNT ( * ) ) * + 67, + ( NULLIF ( SUM ( + 18 ), 70 * 87 ) ) + 24 / 45 ) )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT + ( - COUNT( 64 ) ) + 28 DIV - 72 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4669
SELECT + ( - COUNT ( 64 ) ) + 28 / - 72 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT NULLIF ( COUNT( * ), CAST( COUNT( - 55 ) AS SIGNED ) ) * - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT NULLIF ( COUNT ( * ), CAST ( COUNT ( - 55 ) AS INTEGER ) ) * - 6 AS col1
----
NULL

query I rowsort
SELECT 41 + + 40
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL + CAST( 84 AS SIGNED ) * - COUNT( ALL - 23 ) + 61 col1
----
-23

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + CAST ( 84 AS INTEGER ) * - COUNT ( ALL - 23 ) + 61 col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT DISTINCT + 40 * - 33 * + - CASE + + MIN( ALL 74 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + 42 END
----
55440

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + 40 * - 33 * + - CASE + + MIN ( ALL 74 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 42 END
----
55440

query I rowsort
SELECT DISTINCT + 31 - 53
----
-22

query I rowsort
SELECT ALL ( - + 85 ) * + - 23 + + 1
----
1956

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4676
SELECT CAST( NULL AS SIGNED ) - - 82, CAST( - - 17 AS SIGNED ) col2
----
NULL
17

skipif mysql # not compatible
query II rowsort label-4676
SELECT CAST ( NULL AS INTEGER ) - - 82, CAST ( - - 17 AS INTEGER ) col2
----
NULL
17

query I rowsort
SELECT + 52 * - + 22 * COALESCE ( + 49, 80 ) AS col1
----
-56056

query I rowsort
SELECT + 21 * - - ( + 58 ) AS col2
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - 61 + + + ( - COALESCE ( + 89, - 8 ) ) + COUNT( * ) col0
----
-149

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 61 + + + ( - COALESCE ( + 89, - 8 ) ) + COUNT ( * ) col0
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT - + ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT - + ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 42 * + + 3 * 14
----
1764

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4682
SELECT - 88 * - 36 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT - 88 * - 36 * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT + 10 - - - ( - ( - MIN( CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT + 10 - - - ( - ( - MIN ( CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT ALL - + NULLIF ( + - 30, - 79 ) DIV ( 39 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - + NULLIF ( + - 30, - 79 ) / ( 39 ) AS col2
----
0

query I rowsort
SELECT + 54 * - + 30 AS col2
----
-1620

query I rowsort
SELECT ( 56 ) + - 76 * - - 87
----
-6556

query I rowsort
SELECT - 63 + - - 3 AS col2
----
-60

query I rowsort
SELECT + 68 * + 72
----
4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT + 37 * - + 96 + + + SUM( DISTINCT - 59 ) - - 43 DIV 41 AS col0
----
-3610

skipif mysql # not compatible
query I rowsort label-4689
SELECT + 37 * - + 96 + + + SUM ( DISTINCT - 59 ) - - 43 / 41 AS col0
----
-3610

query I rowsort
SELECT ALL + 68 * 9 AS col1
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT + COALESCE ( 62, + 53 ) * - - 60 + - 58 * COUNT( * ) col1
----
3662

skipif mysql # not compatible
query I rowsort label-4691
SELECT + COALESCE ( 62, + 53 ) * - - 60 + - 58 * COUNT ( * ) col1
----
3662

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT ( + + MAX( ALL + - 40 ) ) * - COUNT( * ) + 80 - + 18 col2
----
102

skipif mysql # not compatible
query I rowsort label-4692
SELECT ( + + MAX ( ALL + - 40 ) ) * - COUNT ( * ) + 80 - + 18 col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT - 66 + + MAX( DISTINCT + 39 ) + - + 78 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - 66 + + MAX ( DISTINCT + 39 ) + - + 78 AS col2
----
-105

query II rowsort
SELECT ALL - - ( + 37 ), - 13 AS col0
----
37
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4695
SELECT - MAX( 45 ), - 39 AS col1
----
-45
-39

skipif mysql # not compatible
query II rowsort label-4695
SELECT - MAX ( 45 ), - 39 AS col1
----
-45
-39

query I rowsort
SELECT DISTINCT - 85 + + - 61
----
-146

query I rowsort
SELECT DISTINCT + 74 + + 0 * 78 - + 44 * 54 AS col2
----
-2302

query I rowsort
SELECT ALL ( + - 93 ) + 3 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT - 70 * - - NULLIF ( 51, + COUNT( * ) + 36 ) * 11 + + 28
----
-39242

skipif mysql # not compatible
query I rowsort label-4699
SELECT - 70 * - - NULLIF ( 51, + COUNT ( * ) + 36 ) * 11 + + 28
----
-39242

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT - NULLIF ( + - COUNT( * ), + 90 - + 54 * + ( - 69 ) + + ( - 82 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), + 90 - + 54 * + ( - 69 ) + + ( - 82 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT COUNT( * ) + - ( - CASE + + COUNT( DISTINCT + 58 ) WHEN - 77 THEN - 76 WHEN ( 23 ) THEN NULL WHEN COUNT( * ) / AVG ( ALL NULLIF ( - 36, 23 + + 17 ) ) - CAST( NULL AS SIGNED ) / - 21 THEN NULL ELSE - ( 26 ) + + 73 END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT COUNT ( * ) + - ( - CASE + + COUNT ( DISTINCT + 58 ) WHEN - 77 THEN - 76 WHEN ( 23 ) THEN NULL WHEN COUNT ( * ) / AVG ( ALL NULLIF ( - 36, 23 + + 17 ) ) - CAST ( NULL AS INTEGER ) / - 21 THEN NULL ELSE - ( 26 ) + + 73 END ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT DISTINCT - 72 DIV + 87 * - 33
----
0

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - 72 / + 87 * - 33
----
0

query I rowsort
SELECT ALL - ( 99 ) col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT ALL 80 * 41 * - - CASE + 12 WHEN + CASE 8 WHEN - 63 - ( 18 + - 60 ) THEN 77 * 22 - + ( CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) WHEN - ( + 8 ) THEN 78 END * - ( COUNT( * ) ) + + 78 * + CAST( 93 AS SIGNED ) THEN 30 + COUNT( * ) ELSE + 65 END AS col1
----
213200

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 80 * 41 * - - CASE + 12 WHEN + CASE 8 WHEN - 63 - ( 18 + - 60 ) THEN 77 * 22 - + ( CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) WHEN - ( + 8 ) THEN 78 END * - ( COUNT ( * ) ) + + 78 * + CAST ( 93 AS INTEGER ) THEN 30 + COUNT ( * ) ELSE + 65 END AS col1
----
213200

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT 24 * + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4705
SELECT 24 * + COUNT ( * ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4706
SELECT DISTINCT 9 - + + NULLIF ( + 24, 30 * - - CASE SUM( DISTINCT 41 ) WHEN 89 + + 40 THEN 0 ELSE + SUM( CAST( 59 AS DECIMAL ) ) END + - 38 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT 9 - + + NULLIF ( + 24, 30 * - - CASE SUM ( DISTINCT 41 ) WHEN 89 + + 40 THEN 0 ELSE + SUM ( CAST ( 59 AS REAL ) ) END + - 38 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT ALL - COUNT( * ) AS col0, 52
----
-1
52

skipif mysql # not compatible
query II rowsort label-4707
SELECT ALL - COUNT ( * ) AS col0, 52
----
-1
52

query I rowsort
SELECT COALESCE ( 55, + 13 ) + + 44 - + ( 38 ) AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4709
SELECT 44 DIV + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4709
SELECT 44 / + COUNT ( * ) AS col1
----
44

query I rowsort
SELECT 14 * + + 25
----
350

query I rowsort
SELECT NULLIF ( + 72, + - 9 ) + + CASE 32 WHEN - 65 THEN - 65 + - 19 WHEN + 98 THEN NULL END
----
NULL

query I rowsort
SELECT 75 + - + 65 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT - 82 - + + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - 82 - + + COUNT ( * ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT DISTINCT - 91 * - 18 DIV 2 * + 74 * - + 28
----
-1696968

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT - 91 * - 18 / 2 * + 74 * - + 28
----
-1696968

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT COUNT( * ) + + ( 90 )
----
91

skipif mysql # not compatible
query I rowsort label-4715
SELECT COUNT ( * ) + + ( 90 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL - + 85 * 60 + + COUNT( * ) + - 20 * 7 * - 10
----
-3699

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL - + 85 * 60 + + COUNT ( * ) + - 20 * 7 * - 10
----
-3699

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT ALL - 41 * - - 99 + 15 + + + 61 * 27 DIV + 61 + 97 DIV 97
----
-4016

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - 41 * - - 99 + 15 + + + 61 * 27 / + 61 + 97 / 97
----
-4016

query II rowsort
SELECT - 22 AS col2, 61
----
-22
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT - 8 + + 19 + 2 DIV - 67 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4719
SELECT - 8 + + 19 + 2 / - 67 AS col1
----
11

query I rowsort
SELECT 87 * + 56
----
4872

query I rowsort
SELECT 17 + + 18
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT - MAX( ALL - + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-4722
SELECT - MAX ( ALL - + 28 )
----
28

query I rowsort
SELECT + NULLIF ( - 70, 3 / + 41 ) + - - 74
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - ( COUNT( 3 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4724
SELECT - ( COUNT ( 3 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL + 80 * SUM( ALL + 13 ) + - 52 AS col0
----
988

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + 80 * SUM ( ALL + 13 ) + - 52 AS col0
----
988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4726
SELECT + + CAST( NULL AS SIGNED ) AS col0, - 45
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-4726
SELECT + + CAST ( NULL AS INTEGER ) AS col0, - 45
----
NULL
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT ALL - + 25 * COUNT( * ) DIV - + NULLIF ( - 22, 26 * + COUNT( DISTINCT 88 ) ) + 32
----
31

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - + 25 * COUNT ( * ) / - + NULLIF ( - 22, 26 * + COUNT ( DISTINCT 88 ) ) + 32
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + COUNT( * ) * - 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4728
SELECT + COUNT ( * ) * - 43 AS col1
----
-43

query I rowsort
SELECT DISTINCT - COALESCE ( + 76, + + 6 ) AS col0
----
-76

query I rowsort
SELECT ALL - 53 * ( - - 83 ) + - + 27 AS col1
----
-4426

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT COUNT( * ) AS col2, + 38 * + 38 - - 17 + - - 21 + - CASE MIN( DISTINCT 71 ) WHEN 25 + 70 THEN NULL ELSE 37 * - COUNT( * ) + + 35 END
----
1
1484

skipif mysql # not compatible
query II rowsort label-4731
SELECT COUNT ( * ) AS col2, + 38 * + 38 - - 17 + - - 21 + - CASE MIN ( DISTINCT 71 ) WHEN 25 + 70 THEN NULL ELSE 37 * - COUNT ( * ) + + 35 END
----
1
1484

query I rowsort
SELECT + 98 * + 22
----
2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN + ( + - 48 ) THEN NULL WHEN AVG ( + ( - 8 ) ) + - 74 * NULLIF ( COUNT( * ), - 35 * - 4 ) THEN + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN + ( + - 48 ) THEN NULL WHEN AVG ( + ( - 8 ) ) + - 74 * NULLIF ( COUNT ( * ), - 35 * - 4 ) THEN + 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - COALESCE ( + 80, 3 ) * COUNT( * ) + ( + 10 ) * - 94 + 48 AS col1
----
-972

skipif mysql # not compatible
query I rowsort label-4734
SELECT - COALESCE ( + 80, 3 ) * COUNT ( * ) + ( + 10 ) * - 94 + 48 AS col1
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL + 75 * - 34 - COUNT( * )
----
-2551

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + 75 * - 34 - COUNT ( * )
----
-2551

query I rowsort
SELECT ALL + 37 * + 28 * - 81 - - - 26 AS col0
----
-83942

query I rowsort
SELECT - 62 * + ( - 77 ) AS col1
----
4774

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4738
SELECT ALL - CASE - + 30 WHEN CAST( NULL AS DECIMAL ) THEN - 13 / 77 + + 52 * COUNT( * ) END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - CASE - + 30 WHEN CAST ( NULL AS REAL ) THEN - 13 / 77 + + 52 * COUNT ( * ) END * 54
----
NULL

query II rowsort
SELECT + 19, - 13 + - 25 col0
----
19
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - COUNT( * ) - + 99 + + - CASE - 82 WHEN - 95 THEN 50 + - ( COALESCE ( + ( 17 ), 60 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT - COUNT ( * ) - + 99 + + - CASE - 82 WHEN - 95 THEN 50 + - ( COALESCE ( + ( 17 ), 60 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT SUM( DISTINCT - + ( + 67 ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4741
SELECT SUM ( DISTINCT - + ( + 67 ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT 68 * + NULLIF ( + - COUNT( * ), - 17 ) - - 79
----
11

skipif mysql # not compatible
query I rowsort label-4742
SELECT 68 * + NULLIF ( + - COUNT ( * ), - 17 ) - - 79
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - 27 * - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 27 * - COUNT ( * ) AS col0
----
27

query I rowsort
SELECT + 32 * - 75
----
-2400

query II rowsort
SELECT + 29, - 14 AS col1
----
29
-14

query II rowsort
SELECT - 3 + - 65 AS col1, - 34 AS col0
----
-68
-34

query I rowsort
SELECT + ( - + 4 ) + + 83
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT MAX( DISTINCT + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4748
SELECT MAX ( DISTINCT + 31 ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL 91 * + 19 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL 91 * + 19 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 96 * + 17
----
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT ALL - 23 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - 23 / - 68
----
0

query I rowsort
SELECT - + CASE - + 99 WHEN 75 THEN NULL ELSE + 35 END
----
-35

query II rowsort
SELECT ALL - 73 AS col1, 66 * - 34 AS col2
----
-73
-2244

query I rowsort
SELECT DISTINCT CASE - 23 WHEN - 9 THEN + - COALESCE ( + 60, 88 ) ELSE + 16 - 2 END AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT - COUNT( * ), - 89 AS col0
----
-1
-89

skipif mysql # not compatible
query II rowsort label-4755
SELECT - COUNT ( * ), - 89 AS col0
----
-1
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - MIN( - 61 ) * - - 82
----
5002

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - MIN ( - 61 ) * - - 82
----
5002

query I rowsort
SELECT + 79 * - + 52 - 76 AS col2
----
-4184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4758
SELECT - NULLIF ( + CASE + MAX( 31 ) WHEN + 36 THEN NULLIF ( + 32, + CASE + 20 WHEN - 71 - 61 THEN NULL WHEN 7 THEN 49 + 71 / 46 ELSE 66 + - COUNT( 26 + NULLIF ( 61, + 50 / CAST( NULL AS DECIMAL ) ) ) END + + ( + 97 ) / NULLIF ( 1, ( AVG ( + COALESCE ( 93, 9 + 13 * 14 ) ) ) / - ( + 29 * COUNT( * ) ) ) ) * 79 + + CAST( NULL AS SIGNED ) * + 41 ELSE 33 + + CAST( NULL AS SIGNED ) END, 95 ) * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT - NULLIF ( + CASE + MAX ( 31 ) WHEN + 36 THEN NULLIF ( + 32, + CASE + 20 WHEN - 71 - 61 THEN NULL WHEN 7 THEN 49 + 71 / 46 ELSE 66 + - COUNT ( 26 + NULLIF ( 61, + 50 / CAST ( NULL AS REAL ) ) ) END + + ( + 97 ) / NULLIF ( 1, ( AVG ( + COALESCE ( 93, 9 + 13 * 14 ) ) ) / - ( + 29 * COUNT ( * ) ) ) ) * 79 + + CAST ( NULL AS INTEGER ) * + 41 ELSE 33 + + CAST ( NULL AS INTEGER ) END, 95 ) * + 45
----
NULL

query I rowsort
SELECT ALL 62 + + 4 - + 73 AS col1
----
-7

query I rowsort
SELECT + + 21 + + + ( 77 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT SUM( ALL - - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-4761
SELECT SUM ( ALL - - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT CASE - 86 WHEN MAX( DISTINCT + 8 ) THEN 61 * ( - MAX( 29 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT CASE - 86 WHEN MAX ( DISTINCT + 8 ) THEN 61 * ( - MAX ( 29 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4763
SELECT + + 71 + MAX( DISTINCT 7 ) * - 59 DIV - COUNT( * ) + + 3 - ( + 64 ) col0
----
423

skipif mysql # not compatible
query I rowsort label-4763
SELECT + + 71 + MAX ( DISTINCT 7 ) * - 59 / - COUNT ( * ) + + 3 - ( + 64 ) col0
----
423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT ALL + SUM( DISTINCT + 63 ) + - 24 + + NULLIF ( + COUNT( * ), - + 55 * - 3 + CAST( NULL AS SIGNED ) ) - COUNT( * ) * 7 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + SUM ( DISTINCT + 63 ) + - 24 + + NULLIF ( + COUNT ( * ), - + 55 * - 3 + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * 7 AS col0
----
33

query I rowsort
SELECT DISTINCT + COALESCE ( - 4, 0 ) + - + 81 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4766
SELECT - - 81 col1, ( + COUNT( * ) )
----
81
1

skipif mysql # not compatible
query II rowsort label-4766
SELECT - - 81 col1, ( + COUNT ( * ) )
----
81
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT + 95 - + + ( - - 28 ) + + 86 DIV 93 * 79
----
67

skipif mysql # not compatible
query I rowsort label-4767
SELECT + 95 - + + ( - - 28 ) + + 86 / 93 * 79
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT ALL 74 AS col2, + 30 + - CASE 83 WHEN - + COALESCE ( AVG ( 49 ), 44 + CASE + 92 WHEN COALESCE ( 22, 78 / 84 ) * 48 THEN - 32 END * - NULLIF ( 39, COUNT( * ) / - 62 ) ) + 64 THEN NULL WHEN + 10 * - 77 THEN COUNT( * ) ELSE NULL END AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL 74 AS col2, + 30 + - CASE 83 WHEN - + COALESCE ( AVG ( 49 ), 44 + CASE + 92 WHEN COALESCE ( 22, 78 / 84 ) * 48 THEN - 32 END * - NULLIF ( 39, COUNT ( * ) / - 62 ) ) + 64 THEN NULL WHEN + 10 * - 77 THEN COUNT ( * ) ELSE NULL END AS col2
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + NULLIF ( + 50, + COUNT( - 73 ) ) + - 8 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4769
SELECT + NULLIF ( + 50, + COUNT ( - 73 ) ) + - 8 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT DISTINCT - COUNT( * ) AS col0, 31 + - 17 AS col2
----
-1
14

skipif mysql # not compatible
query II rowsort label-4770
SELECT DISTINCT - COUNT ( * ) AS col0, 31 + - 17 AS col2
----
-1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL 92 + - - 88 + + + COUNT( * )
----
181

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL 92 + - - 88 + + + COUNT ( * )
----
181

query I rowsort
SELECT - ( - 2 ) col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4773
SELECT 37 AS col1, SUM( - 8 ) * - 0
----
37
0

skipif mysql # not compatible
query II rowsort label-4773
SELECT 37 AS col1, SUM ( - 8 ) * - 0
----
37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ( - MIN( - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4774
SELECT ( - MIN ( - 1 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT ALL + 0 DIV NULLIF ( + - 91, - - 4 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + 0 / NULLIF ( + - 91, - - 4 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT DISTINCT + COALESCE ( 88, - - 58 DIV + 21 )
----
88

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT + COALESCE ( 88, - - 58 / + 21 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL - 27 * - 61 * + - COUNT( * )
----
-1647

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - 27 * - 61 * + - COUNT ( * )
----
-1647

query I rowsort
SELECT 91 * - - 99 * 4 * + 80 + + 59 + - 13 AS col1
----
2882926

query I rowsort
SELECT DISTINCT - 9 * + 93 AS col0
----
-837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT DISTINCT - COUNT( * ) * + 31 DIV SUM( ALL - 67 ) + - + 19 * 14 * COUNT( * ) * 21 AS col0
----
-5586

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT - COUNT ( * ) * + 31 / SUM ( ALL - 67 ) + - + 19 * 14 * COUNT ( * ) * 21 AS col0
----
-5586

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4781
SELECT - - ( + + 91 ) + - CAST( - 23 AS SIGNED ) DIV + - 17 + + + 3 - 91 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4781
SELECT - - ( + + 91 ) + - CAST ( - 23 AS INTEGER ) / + - 17 + + + 3 - 91 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT ALL 1 * + - 82 * + 78 + - SUM( DISTINCT - 55 ) * - 2 * CAST( COUNT( * ) AS SIGNED )
----
-6506

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL 1 * + - 82 * + 78 + - SUM ( DISTINCT - 55 ) * - 2 * CAST ( COUNT ( * ) AS INTEGER )
----
-6506

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL COUNT( * ) * COUNT( ALL - - 34 ) * - + COUNT( * ) + + + 62 + 48 + 88 * - 40
----
-3411

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL COUNT ( * ) * COUNT ( ALL - - 34 ) * - + COUNT ( * ) + + + 62 + 48 + 88 * - 40
----
-3411

query I rowsort
SELECT - + 75 * + 52 AS col0
----
-3900

query I rowsort
SELECT DISTINCT - ( + 61 ) + - 24 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT ALL COUNT( + 53 ) + 91 + CAST( - - ( 84 ) AS SIGNED )
----
176

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL COUNT ( + 53 ) + 91 + CAST ( - - ( 84 ) AS INTEGER )
----
176

query I rowsort
SELECT ALL - 54 - - ( + 96 )
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4788
SELECT - - 48 / 53 + CAST( NULL AS DECIMAL ) AS col2, 58 - + 6 + - 20
----
NULL
32

skipif mysql # not compatible
query II rowsort label-4788
SELECT - - 48 / 53 + CAST ( NULL AS REAL ) AS col2, 58 - + 6 + - 20
----
NULL
32

query I rowsort
SELECT + 15 * 67
----
1005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4790
SELECT ( 35 ) * + COUNT( * ) * - 62 * 38 - 11 DIV - - 50 AS col2
----
-82460

skipif mysql # not compatible
query I rowsort label-4790
SELECT ( 35 ) * + COUNT ( * ) * - 62 * 38 - 11 / - - 50 AS col2
----
-82460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT - COALESCE ( - + ( - - COUNT( * ) ), + - 56 * - 24 + 7 + - - 19, + 16 ) + 27 DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-4791
SELECT - COALESCE ( - + ( - - COUNT ( * ) ), + - 56 * - 24 + 7 + - - 19, + 16 ) + 27 / - 62
----
1

query II rowsort
SELECT - 91, 26 + - 63 * 96 AS col1
----
-91
-6022

query I rowsort
SELECT ALL + NULLIF ( + 3, - 25 ) - + 60 + + 73
----
16

query II rowsort
SELECT DISTINCT 96 AS col1, ( - + 3 ) * - 24 * + - 71 col0
----
96
-5112

query I rowsort
SELECT DISTINCT 16 * + 56 col0
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT COUNT( * ) * + SUM( DISTINCT NULLIF ( 9, + 7 * - 43 ) )
----
9

skipif mysql # not compatible
query I rowsort label-4796
SELECT COUNT ( * ) * + SUM ( DISTINCT NULLIF ( 9, + 7 * - 43 ) )
----
9

query II rowsort
SELECT ALL - 89, 18 col0
----
-89
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), COUNT( * ) * - - 84 - - - CASE 8 WHEN + + ( + COUNT( * ) ) + 18 THEN + 65 WHEN + 20 THEN 25 END ) - - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), COUNT ( * ) * - - 84 - - - CASE 8 WHEN + + ( + COUNT ( * ) ) + 18 THEN + 65 WHEN + 20 THEN 25 END ) - - 6 AS col1
----
NULL

query I rowsort
SELECT ALL 15 * - - 3 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4800
SELECT NULLIF ( - + 15, 33 ) * - - COUNT( * ) AS col1, COUNT( * ) DIV + 66
----
-15
0

skipif mysql # not compatible
query II rowsort label-4800
SELECT NULLIF ( - + 15, 33 ) * - - COUNT ( * ) AS col1, COUNT ( * ) / + 66
----
-15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT COUNT( * ) * + ( CASE - 12 WHEN COUNT( * ) THEN + 24 + + 23 + - - COUNT( * ) WHEN 51 * ( 81 ) THEN NULL END ) + 10 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT COUNT ( * ) * + ( CASE - 12 WHEN COUNT ( * ) THEN + 24 + + 23 + - - COUNT ( * ) WHEN 51 * ( 81 ) THEN NULL END ) + 10 * 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4802
SELECT ALL - 79 AS col2, + 23 - 4 * + 30 + 9 DIV NULLIF ( - CAST( - 60 AS SIGNED ), 33 ) * - MIN( ALL 3 * + 87 )
----
-79
-97

skipif mysql # not compatible
query II rowsort label-4802
SELECT ALL - 79 AS col2, + 23 - 4 * + 30 + 9 / NULLIF ( - CAST ( - 60 AS INTEGER ), 33 ) * - MIN ( ALL 3 * + 87 )
----
-79
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT DISTINCT - 23 + + CASE 75 WHEN 89 / + ( + CASE + 21 WHEN + 26 + - CAST( NULL AS SIGNED ) * 77 THEN - 40 + 61 WHEN + 20 - 82 THEN 61 * - 52 ELSE NULL END ) THEN NULL ELSE + 6 + - 92 END + - 59
----
-168

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - 23 + + CASE 75 WHEN 89 / + ( + CASE + 21 WHEN + 26 + - CAST ( NULL AS INTEGER ) * 77 THEN - 40 + 61 WHEN + 20 - 82 THEN 61 * - 52 ELSE NULL END ) THEN NULL ELSE + 6 + - 92 END + - 59
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4804
SELECT ALL - COALESCE ( + MIN( DISTINCT + - COALESCE ( - + 1, + 80 DIV + + 0 + 53, - - ( + ( CAST( + 65 AS SIGNED ) ) ) DIV 70 + 41 ) ), - 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - COALESCE ( + MIN ( DISTINCT + - COALESCE ( - + 1, + 80 / + + 0 + 53, - - ( + ( CAST ( + 65 AS INTEGER ) ) ) / 70 + 41 ) ), - 80 )
----
-1

query II rowsort
SELECT ALL - 94 AS col2, + 5 AS col0
----
-94
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT 69 - - 94 + + + COUNT( * ) * CAST( NULL AS SIGNED ) + - 52 * MAX( DISTINCT - 94 ) + 11 / ( - MIN( + ( - 64 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT 69 - - 94 + + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 52 * MAX ( DISTINCT - 94 ) + 11 / ( - MIN ( + ( - 64 ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 96 + + 31 AS col0
----
-65

query I rowsort
SELECT DISTINCT 73 + - 33 AS col2
----
40

query I rowsort
SELECT - ( + 52 ) * + 80 AS col0
----
-4160

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT DISTINCT + ( - - COUNT( * ) ) + + 54 AS col0, - 19 * ( 89 ) * COUNT( * ) + + 85 AS col0
----
55
-1606

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT + ( - - COUNT ( * ) ) + + 54 AS col0, - 19 * ( 89 ) * COUNT ( * ) + + 85 AS col0
----
55
-1606

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL + + 74 + - + COUNT( - 57 )
----
73

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + + 74 + - + COUNT ( - 57 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT + 7 * - + COUNT( DISTINCT - 44 )
----
-7

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + 7 * - + COUNT ( DISTINCT - 44 )
----
-7

query II rowsort
SELECT ALL - 62, 21 * - 48 AS col1
----
-62
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT SUM( ALL - 29 ) * + 13 col2
----
-377

skipif mysql # not compatible
query I rowsort label-4814
SELECT SUM ( ALL - 29 ) * + 13 col2
----
-377

onlyif mysql # DIV for integer division: 
query II rowsort label-4815
SELECT - + 95 col1, 79 + - - 1 DIV 75 AS col2
----
-95
79

skipif mysql # not compatible
query II rowsort label-4815
SELECT - + 95 col1, 79 + - - 1 / 75 AS col2
----
-95
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT ALL + 58 - + 96 DIV + 24
----
54

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + 58 - + 96 / + 24
----
54

query II rowsort
SELECT 23 AS col2, - 36
----
23
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - 43 + ( COUNT( * ) ) + - 96 AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-4818
SELECT - 43 + ( COUNT ( * ) ) + - 96 AS col2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT - 13 * + 23 * 23 + + 25 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT - 13 * + 23 * 23 + + 25 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 20 + 19 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL + MAX( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + MAX ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - 70 + 83 + + + 97 * - - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 70 + 83 + + + 97 * - - COUNT ( * )
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT ALL CAST( NULLIF ( - + 19, + 85 ) AS SIGNED ) * CASE + 63 WHEN + - 5 THEN - + 56 END + - 53 - + COUNT( * ) * 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL CAST ( NULLIF ( - + 19, + 85 ) AS INTEGER ) * CASE + 63 WHEN + - 5 THEN - + 56 END + - 53 - + COUNT ( * ) * 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT ALL + COALESCE ( - + NULLIF ( + + 44, + + 40 + - 48 + - - 55 ), + 22, - CASE + 50 WHEN - 89 - + COALESCE ( - COALESCE ( + 93, - 58, 56, + 52 DIV + ( 36 ) ), - 50 DIV + 61 ) THEN + 84 * 97 + ( + 37 ) * - 91 ELSE NULL END ) DIV COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + COALESCE ( - + NULLIF ( + + 44, + + 40 + - 48 + - - 55 ), + 22, - CASE + 50 WHEN - 89 - + COALESCE ( - COALESCE ( + 93, - 58, 56, + 52 / + ( 36 ) ), - 50 / + 61 ) THEN + 84 * 97 + ( + 37 ) * - 91 ELSE NULL END ) / COUNT ( * )
----
-44

query I rowsort
SELECT 34 + 13 + + + 78 * 52
----
4103

query I rowsort
SELECT 44 + + 3 col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4827
SELECT ALL - COUNT( ALL - 96 ) * ( CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - COUNT ( ALL - 96 ) * ( CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT 15 DIV + 63 * - - 19
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT 15 / + 63 * - - 19
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4829
SELECT 50 DIV - + 7 col1, - 20 AS col1
----
-7
-20

skipif mysql # not compatible
query II rowsort label-4829
SELECT 50 / - + 7 col1, - 20 AS col1
----
-7
-20

query I rowsort
SELECT 24 + 43
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT 40 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT 40 / - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT COUNT( * ) + 1 + - MIN( + 10 ) * - 73 + + NULLIF ( - 7, CASE + 93 WHEN - 40 / + 68 THEN + 52 / AVG ( + 61 ) WHEN 46 - ( - 83 ) THEN NULL WHEN - 71 + - 7 THEN NULL ELSE 66 END + + 89 ) AS col1
----
725

skipif mysql # not compatible
query I rowsort label-4832
SELECT COUNT ( * ) + 1 + - MIN ( + 10 ) * - 73 + + NULLIF ( - 7, CASE + 93 WHEN - 40 / + 68 THEN + 52 / AVG ( + 61 ) WHEN 46 - ( - 83 ) THEN NULL WHEN - 71 + - 7 THEN NULL ELSE 66 END + + 89 ) AS col1
----
725

query I rowsort
SELECT ALL + ( 26 ) * 35 * + + 27
----
24570

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT ALL 52 * + ( - 53 ) + - 45 - NULLIF ( + ( - 23 ), + 25 ) DIV + 4 AS col1
----
-2796

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL 52 * + ( - 53 ) + - 45 - NULLIF ( + ( - 23 ), + 25 ) / + 4 AS col1
----
-2796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT ALL CAST( NULL AS SIGNED ) + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL CAST ( NULL AS INTEGER ) + + 45 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT + 70 * - + 73 + + 83 - 86 - - - 51 * 57 * + CAST( 61 AS SIGNED ) * + - 1 AS col0
----
172214

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 70 * - + 73 + + 83 - 86 - - - 51 * 57 * + CAST ( 61 AS INTEGER ) * + - 1 AS col0
----
172214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL 32 + CAST( NULL AS SIGNED ) * + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL 32 + CAST ( NULL AS INTEGER ) * + 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT COUNT( ALL 63 )
----
1

skipif mysql # not compatible
query I rowsort label-4838
SELECT COUNT ( ALL 63 )
----
1

query I rowsort
SELECT ALL 28 * - 63
----
-1764

query I rowsort
SELECT 48 + 82 col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4841
SELECT 10 * CAST( + 96 AS SIGNED ) + - COUNT( + 78 ) - - MAX( 61 ) col1
----
1020

skipif mysql # not compatible
query I rowsort label-4841
SELECT 10 * CAST ( + 96 AS INTEGER ) + - COUNT ( + 78 ) - - MAX ( 61 ) col1
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL 86 + - + MAX( 83 ) * + 21 AS col1
----
-1657

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL 86 + - + MAX ( 83 ) * + 21 AS col1
----
-1657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4843
SELECT ALL + - ( + 0 ) + + 1 + + 98 * + COUNT( * ) AS col0, + 22 * + AVG ( 55 ) + ( 1 ) * + CAST( NULL AS SIGNED ) AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL + - ( + 0 ) + + 1 + + 98 * + COUNT ( * ) AS col0, + 22 * + AVG ( 55 ) + ( 1 ) * + CAST ( NULL AS INTEGER ) AS col1
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT 17 + COUNT( DISTINCT 30 )
----
18

skipif mysql # not compatible
query I rowsort label-4844
SELECT 17 + COUNT ( DISTINCT 30 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4845
SELECT ALL 31 - + 20 + COUNT( * ) + - NULLIF ( - 38, - ( - 75 ) ) * - 22 / + CAST( NULL AS SIGNED ) * 52 * 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL 31 - + 20 + COUNT ( * ) + - NULLIF ( - 38, - ( - 75 ) ) * - 22 / + CAST ( NULL AS INTEGER ) * 52 * 24 col2
----
NULL

query I rowsort
SELECT - 63 * - 53 + - 82
----
3257

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT + COUNT( * ) * NULLIF ( - 59, + 42 * + CASE + SUM( - 76 ) WHEN + 90 * - COALESCE ( - 55, SUM( - 86 ) + 60 ) * - 9 THEN NULL WHEN + 19 + - 13 THEN NULL WHEN + 78 - 23 THEN ( - 23 ) - + COUNT( * ) ELSE + AVG ( - 87 ) * 44 + - CASE 92 WHEN 2 * 4 + + 2 THEN 33 - - 83 WHEN 34 THEN NULL ELSE - COALESCE ( NULLIF ( - 25, + COUNT( * ) ), CASE - 54 WHEN 96 * + 26 THEN - COALESCE ( + 14, 5 ) ELSE + MAX( ALL - CASE + 89 WHEN 31 THEN + 97 END ) * + 96 END, MIN( - 77 ) / - COALESCE ( 96 * 25, 76, COUNT( * ) - + 67 ), + 83, - 92 * 79 ) * 60 END END ) + - 77
----
-136

skipif mysql # not compatible
query I rowsort label-4847
SELECT + COUNT ( * ) * NULLIF ( - 59, + 42 * + CASE + SUM ( - 76 ) WHEN + 90 * - COALESCE ( - 55, SUM ( - 86 ) + 60 ) * - 9 THEN NULL WHEN + 19 + - 13 THEN NULL WHEN + 78 - 23 THEN ( - 23 ) - + COUNT ( * ) ELSE + AVG ( - 87 ) * 44 + - CASE 92 WHEN 2 * 4 + + 2 THEN 33 - - 83 WHEN 34 THEN NULL ELSE - COALESCE ( NULLIF ( - 25, + COUNT ( * ) ), CASE - 54 WHEN 96 * + 26 THEN - COALESCE ( + 14, 5 ) ELSE + MAX ( ALL - CASE + 89 WHEN 31 THEN + 97 END ) * + 96 END, MIN ( - 77 ) / - COALESCE ( 96 * 25, 76, COUNT ( * ) - + 67 ), + 83, - 92 * 79 ) * 60 END END ) + - 77
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT - MIN( DISTINCT - - 85 ) * + 36 * + 62
----
-189720

skipif mysql # not compatible
query I rowsort label-4848
SELECT - MIN ( DISTINCT - - 85 ) * + 36 * + 62
----
-189720

query I rowsort
SELECT ALL - + 67 * 48 - - 67 AS col2
----
-3149

query I rowsort
SELECT - 2 * + 14
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4851
SELECT DISTINCT ( + 28 ), COUNT( * ) + - - 19 col1
----
28
20

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT ( + 28 ), COUNT ( * ) + - - 19 col1
----
28
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT + - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT + - 57 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT - - COALESCE ( 14, + - 6 * - + ( + COALESCE ( + 26, 53 - + ( - 63 ) + AVG ( DISTINCT 70 ) * - 66, + 89 ) ) / 35 + CAST( NULL AS SIGNED ) * 70 ) * + CASE COUNT( * ) WHEN - 19 THEN - 70 * - MAX( + 34 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT - - COALESCE ( 14, + - 6 * - + ( + COALESCE ( + 26, 53 - + ( - 63 ) + AVG ( DISTINCT 70 ) * - 66, + 89 ) ) / 35 + CAST ( NULL AS INTEGER ) * 70 ) * + CASE COUNT ( * ) WHEN - 19 THEN - 70 * - MAX ( + 34 ) END AS col2
----
NULL

query I rowsort
SELECT ALL - 2 * + 81 + - 60 AS col0
----
-222

query III rowsort
SELECT 16 AS col2, ( + COALESCE ( - 41, - 81 ) ) + + + 74 col2, - + 74 + + ( - 10 ) AS col0
----
16
33
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT - NULLIF ( SUM( ALL + 24 ), MAX( ALL - 36 ) * 43 + + 81 - + 65 * + 66 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4856
SELECT - NULLIF ( SUM ( ALL + 24 ), MAX ( ALL - 36 ) * 43 + + 81 - + 65 * + 66 ) AS col0
----
-24

query I rowsort
SELECT + 10 * + 19
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4858
SELECT DISTINCT COALESCE ( - - ( - 22 ), - - ( - 61 ) DIV ( + 70 ), + CASE CASE + - 25 WHEN 31 * ( + 38 ) THEN NULL WHEN - COUNT( * ) THEN 16 WHEN - COALESCE ( - 51, 97 ) THEN NULL WHEN 40 THEN 26 - 74 ELSE NULL END WHEN COUNT( * ) * + COUNT( * ) + 4 THEN 99 WHEN + COUNT( * ) THEN NULL ELSE - NULLIF ( + MAX( - ( 64 ) ), - COUNT( * ) ) + 91 END + 47 ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT COALESCE ( - - ( - 22 ), - - ( - 61 ) / ( + 70 ), + CASE CASE + - 25 WHEN 31 * ( + 38 ) THEN NULL WHEN - COUNT ( * ) THEN 16 WHEN - COALESCE ( - 51, 97 ) THEN NULL WHEN 40 THEN 26 - 74 ELSE NULL END WHEN COUNT ( * ) * + COUNT ( * ) + 4 THEN 99 WHEN + COUNT ( * ) THEN NULL ELSE - NULLIF ( + MAX ( - ( 64 ) ), - COUNT ( * ) ) + 91 END + 47 ) col2
----
-22

query I rowsort
SELECT ALL - 68 * - + 8 * - 16 AS col1
----
-8704

query I rowsort
SELECT DISTINCT - 96 + + 10 * + 42 AS col2
----
324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4861
SELECT ALL + COALESCE ( - 77, 51 - 22 * - 61 + + CASE - 91 WHEN + 68 THEN + + SUM( - 53 ) DIV - 46 + - 25 ELSE NULL END + - COUNT( * ), 20 + ( - 71 ) ) + COUNT( * ) * - 74 AS col2
----
-151

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + COALESCE ( - 77, 51 - 22 * - 61 + + CASE - 91 WHEN + 68 THEN + + SUM ( - 53 ) / - 46 + - 25 ELSE NULL END + - COUNT ( * ), 20 + ( - 71 ) ) + COUNT ( * ) * - 74 AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT 27 * - MIN( + 96 )
----
-2592

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT 27 * - MIN ( + 96 )
----
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 16 * 14 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 16 * 14 + + 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT DISTINCT 42 * 7 * - - CAST( NULL AS SIGNED ) + + + ( + - 6 ) * + + 95 / 44 * - - ( + ( - - 7 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT 42 * 7 * - - CAST ( NULL AS INTEGER ) + + + ( + - 6 ) * + + 95 / 44 * - - ( + ( - - 7 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT ALL 16 * + - CAST( - + 40 AS SIGNED ) + + 35
----
675

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL 16 * + - CAST ( - + 40 AS INTEGER ) + + 35
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT - 51 * - MAX( ALL 77 ) * COUNT( * ) - - 21 * + + 25
----
4452

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - 51 * - MAX ( ALL 77 ) * COUNT ( * ) - - 21 * + + 25
----
4452

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT + 2 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT + 2 / - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT + COUNT( * ) * - NULLIF ( - 28, + - 74 / - MAX( - 97 ) )
----
28

skipif mysql # not compatible
query I rowsort label-4868
SELECT + COUNT ( * ) * - NULLIF ( - 28, + - 74 / - MAX ( - 97 ) )
----
28

query I rowsort
SELECT ALL ( - 10 ) * + 86 + - 23 col2
----
-883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4870
SELECT - ( + + ( ( + + CASE - - ( COUNT( * ) ) WHEN - CASE 20 WHEN + ( - - 87 ) THEN ( - 99 ) * 43 WHEN 36 THEN - CAST( NULL AS SIGNED ) END * SUM( 49 ) THEN AVG ( ALL + 27 ) * 76 WHEN + ( + 29 ) + 32 THEN NULL END ) ) ) + + CASE + 65 WHEN - 77 + SUM( ALL NULLIF ( - 41, + 20 ) ) / 10 THEN CASE 61 WHEN - 88 THEN + 36 ELSE - 80 + - ( 82 ) END WHEN + 87 THEN + 64 + 69 ELSE - ( 99 ) * NULLIF ( - 18 * - 77 - 13, + 51 * + 57 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT - ( + + ( ( + + CASE - - ( COUNT ( * ) ) WHEN - CASE 20 WHEN + ( - - 87 ) THEN ( - 99 ) * 43 WHEN 36 THEN - CAST ( NULL AS INTEGER ) END * SUM ( 49 ) THEN AVG ( ALL + 27 ) * 76 WHEN + ( + 29 ) + 32 THEN NULL END ) ) ) + + CASE + 65 WHEN - 77 + SUM ( ALL NULLIF ( - 41, + 20 ) ) / 10 THEN CASE 61 WHEN - 88 THEN + 36 ELSE - 80 + - ( 82 ) END WHEN + 87 THEN + 64 + 69 ELSE - ( 99 ) * NULLIF ( - 18 * - 77 - 13, + 51 * + 57 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 38 * + COUNT( * ) - + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 38 * + COUNT ( * ) - + - COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + - MAX( - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-4872
SELECT + - MAX ( - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT + COALESCE ( + - 30, + COUNT( * ) + - 58 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + COALESCE ( + - 30, + COUNT ( * ) + - 58 ) AS col0
----
-30

query I rowsort
SELECT + 50 - + 33
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT - 89 * - 3 + + 68 * + - 84 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT - 89 * - 3 + + 68 * + - 84 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT COUNT( * ) * - 83 * - ( 27 ) AS col2
----
2241

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT COUNT ( * ) * - 83 * - ( 27 ) AS col2
----
2241

query II rowsort
SELECT + + ( - - 62 ) * + + 63, 26 AS col0
----
3906
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT DISTINCT + - CAST( + + 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT + - CAST ( + + 81 AS INTEGER )
----
-81

query II rowsort
SELECT ALL + - 65 AS col2, + 23 AS col0
----
-65
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT 4 * + SUM( ALL - 22 ) + + COUNT( + 63 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT 4 * + SUM ( ALL - 22 ) + + COUNT ( + 63 ) AS col0
----
-87

query I rowsort
SELECT DISTINCT + 47 * - 57
----
-2679

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT + + 36 DIV + + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4882
SELECT + + 36 / + + 89 AS col0
----
0

query II rowsort
SELECT ALL + 37 AS col2, 74 * + ( COALESCE ( - 38, - - 15 * + 83 + + 53 ) )
----
37
-2812

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT + 11 DIV + ( - 51 )
----
0

skipif mysql # not compatible
query I rowsort label-4884
SELECT + 11 / + ( - 51 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4885
SELECT - 16 * CASE COUNT( * ) WHEN - + CASE + - CASE + + 66 WHEN + - 48 * - 66 + 23 + - 74 + - + 40 THEN 28 * - 78 + + 36 ELSE NULL END WHEN + CAST( - 30 AS SIGNED ) THEN NULL ELSE + 80 END + 63 THEN + COUNT( * ) ELSE CAST( NULL AS SIGNED ) * - 68 END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 16 * CASE COUNT ( * ) WHEN - + CASE + - CASE + + 66 WHEN + - 48 * - 66 + 23 + - 74 + - + 40 THEN 28 * - 78 + + 36 ELSE NULL END WHEN + CAST ( - 30 AS INTEGER ) THEN NULL ELSE + 80 END + 63 THEN + COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) * - 68 END * 38
----
NULL

query I rowsort
SELECT + 28 + + - 20 AS col2
----
8

query I rowsort
SELECT - ( + - 11 ) AS col0
----
11

query I rowsort
SELECT - ( + ( - 85 ) ) * - 45 * - 47 * - 66 * - 22 AS col0
----
261033300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4889
SELECT + COUNT( * ) + + COALESCE ( + + COUNT( * ), + - 6 * - - 5 * - 9 + - + 83 + + 18 * + COUNT( * ) * - 27 DIV - 87 ) + - 46 * 34
----
-1562

skipif mysql # not compatible
query I rowsort label-4889
SELECT + COUNT ( * ) + + COALESCE ( + + COUNT ( * ), + - 6 * - - 5 * - 9 + - + 83 + + 18 * + COUNT ( * ) * - 27 / - 87 ) + - 46 * 34
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT - 10 - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4890
SELECT - 10 - COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT DISTINCT 28 + - 82
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4892
SELECT ALL - 82 * + CASE + NULLIF ( - 14, + 71 ) WHEN + 99 * - 5 + 31 - CAST( NULL AS SIGNED ) / + 85 + + + COUNT( * ) * CAST( NULL AS DECIMAL ) THEN + COUNT( * ) * COUNT( * ) + ( COUNT( * ) + + ( - 68 + + 80 * MAX( DISTINCT + 52 ) ) ) * - 16 END * - ( - 22 * + 82 + - AVG ( ALL 81 + 21 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - 82 * + CASE + NULLIF ( - 14, + 71 ) WHEN + 99 * - 5 + 31 - CAST ( NULL AS INTEGER ) / + 85 + + + COUNT ( * ) * CAST ( NULL AS REAL ) THEN + COUNT ( * ) * COUNT ( * ) + ( COUNT ( * ) + + ( - 68 + + 80 * MAX ( DISTINCT + 52 ) ) ) * - 16 END * - ( - 22 * + 82 + - AVG ( ALL 81 + 21 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL 62 + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL 62 + COUNT ( * ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT COALESCE ( CAST( - - 80 AS SIGNED ), - - CAST( NULL AS SIGNED ) + + 80, + + 18 ) + 73 + + + 59 * + - 78 AS col1
----
-4449

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT COALESCE ( CAST ( - - 80 AS INTEGER ), - - CAST ( NULL AS INTEGER ) + + 80, + + 18 ) + 73 + + + 59 * + - 78 AS col1
----
-4449

query II rowsort
SELECT ALL + 10 + 38, 28 AS col1
----
48
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - CASE - 65 WHEN + COUNT( * ) THEN - 12 * + COUNT( * ) * + 25 END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT - CASE - 65 WHEN + COUNT ( * ) THEN - 12 * + COUNT ( * ) * + 25 END + 24
----
NULL

query I rowsort
SELECT - 27 + - 91 AS col0
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT CASE - 15 WHEN CAST( - + COUNT( * ) AS SIGNED ) THEN NULL ELSE + 78 * + 97 END
----
7566

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT CASE - 15 WHEN CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL ELSE + 78 * + 97 END
----
7566

query I rowsort
SELECT DISTINCT NULLIF ( - + 43, - - 3 - + - 62 ) AS col0
----
-43

query I rowsort
SELECT 74 * + - 98 + + 83
----
-7169

onlyif mysql # DIV for integer division: 
query II rowsort label-4901
SELECT + 34 AS col0, 56 DIV - 77 * - ( + + 57 ) + + 39
----
34
39

skipif mysql # not compatible
query II rowsort label-4901
SELECT + 34 AS col0, 56 / - 77 * - ( + + 57 ) + + 39
----
34
39

query I rowsort
SELECT DISTINCT - 64 * 17 AS col1
----
-1088

query I rowsort
SELECT ALL + ( + 55 ) col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT DISTINCT + COUNT( * ) DIV + 91 - + + 38 + + 27 + - + 72 DIV 59 * - 61 DIV 49 + + 40 * MIN( ALL - 46 ) AS col1
----
-1850

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + COUNT ( * ) / + 91 - + + 38 + + 27 + - + 72 / 59 * - 61 / 49 + + 40 * MIN ( ALL - 46 ) AS col1
----
-1850

query I rowsort
SELECT ALL - 31 * + 36 AS col1
----
-1116

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT DISTINCT + 41 DIV ( - - 94 ) - 67
----
-67

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT + 41 / ( - - 94 ) - 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT + - NULLIF ( 4, - 2 + CASE - 46 WHEN 76 - + + COUNT( * ) THEN 44 * + ( - 44 ) + - 48 END ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4907
SELECT + - NULLIF ( 4, - 2 + CASE - 46 WHEN 76 - + + COUNT ( * ) THEN 44 * + ( - 44 ) + - 48 END ) AS col2
----
-4

query I rowsort
SELECT + 74 * + 92 AS col2
----
6808

query II rowsort
SELECT ALL + 70 * - - 8, 39 AS col0
----
560
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT COUNT( * ) * - + 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4910
SELECT COUNT ( * ) * - + 75 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4911
SELECT 73 col0, COALESCE ( - + 91, 36 ) + 37 + - - 36 * + 3 + + - 35 + + 59 DIV - 95 * - 88 * + MIN( - 30 ) * - 31 AS col2
----
73
19

skipif mysql # not compatible
query II rowsort label-4911
SELECT 73 col0, COALESCE ( - + 91, 36 ) + 37 + - - 36 * + 3 + + - 35 + + 59 / - 95 * - 88 * + MIN ( - 30 ) * - 31 AS col2
----
73
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - MIN( ( - 41 ) ) * 85 AS col2
----
3485

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - MIN ( ( - 41 ) ) * 85 AS col2
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - 23 * COUNT( 30 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4913
SELECT - 23 * COUNT ( 30 ) AS col0
----
-23

query II rowsort
SELECT DISTINCT - + 97 AS col1, - 31
----
-97
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT NULLIF ( - + CAST( NULL AS SIGNED ), - 67 ) + + ( + 96 ) * COUNT( * ) - + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), - 67 ) + + ( + 96 ) * COUNT ( * ) - + 3 AS col1
----
NULL

query I rowsort
SELECT - 90 * - - 45 AS col1
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT COALESCE ( - - 59, + + 40 * + 15, + 56 ) * COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT COALESCE ( - - 59, + + 40 * + 15, + 56 ) * COUNT ( * ) AS col0
----
59

query II rowsort
SELECT ALL 16 * - - 65 col1, - 68 AS col2
----
1040
-68

query I rowsort
SELECT DISTINCT - 95 + 85
----
-10

query I rowsort
SELECT DISTINCT 22 + - 39 AS col2
----
-17

query I rowsort
SELECT ALL 45 + + 41
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4922
SELECT DISTINCT 4 + + 92 AS col2, COUNT( * )
----
96
1

skipif mysql # not compatible
query II rowsort label-4922
SELECT DISTINCT 4 + + 92 AS col2, COUNT ( * )
----
96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT COUNT( * ) * 16, COUNT( * ) AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-4923
SELECT COUNT ( * ) * 16, COUNT ( * ) AS col0
----
16
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4924
SELECT DISTINCT 50 DIV 56 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT 50 / 56 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL 9 - - - 1 * + 94 AS col2
----
-85

query I rowsort
SELECT 59 - + 81
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT 4 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT 4 / - 25
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT ALL COUNT( * ) * - 2 * - ( + COUNT( + 75 ) ) DIV - - 20 - - 17
----
17

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL COUNT ( * ) * - 2 * - ( + COUNT ( + 75 ) ) / - - 20 - - 17
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT 14 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT 14 / 92
----
0

query I rowsort
SELECT ALL 73 - + 54
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT 8 - - 5 - - - COUNT( * ) + + - 57 * + 15
----
-843

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT 8 - - 5 - - - COUNT ( * ) + + - 57 * + 15
----
-843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT + 14 + - ( + CAST( - MAX( ALL 38 ) AS SIGNED ) ) + 85
----
137

skipif mysql # not compatible
query I rowsort label-4932
SELECT + 14 + - ( + CAST ( - MAX ( ALL 38 ) AS INTEGER ) ) + 85
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + SUM( ALL - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-4933
SELECT + SUM ( ALL - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT + 71 + + + SUM( + 24 ) + + + 38 + - + 82
----
51

skipif mysql # not compatible
query I rowsort label-4934
SELECT + 71 + + + SUM ( + 24 ) + + + 38 + - + 82
----
51

query I rowsort
SELECT ( - - 83 ) + - - 12
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL + - 47 + 71 + - MIN( 62 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + - 47 + 71 + - MIN ( 62 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT + ( CASE - 87 WHEN + 82 * - 43 THEN - 30 WHEN ( 63 ) + - 0 THEN NULL END ) + 5 + + - 40 + + + MIN( DISTINCT - 20 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT + ( CASE - 87 WHEN + 82 * - 43 THEN - 30 WHEN ( 63 ) + - 0 THEN NULL END ) + 5 + + - 40 + + + MIN ( DISTINCT - 20 ) AS col2
----
NULL

query I rowsort
SELECT 33 - + - ( + 3 ) AS col0
----
36

query I rowsort
SELECT ALL + + 81 * 90 + 21 + 26 AS col0
----
7337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT CAST( ( + + 10 ) AS SIGNED ) * - 38 * 87
----
-33060

skipif mysql # not compatible
query I rowsort label-4940
SELECT CAST ( ( + + 10 ) AS INTEGER ) * - 38 * 87
----
-33060

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT COUNT( * ) * - 46 - + - 70
----
24

skipif mysql # not compatible
query I rowsort label-4941
SELECT COUNT ( * ) * - 46 - + - 70
----
24

query I rowsort
SELECT ALL - + 68 + + + ( - - 60 ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT - 80 * CAST( - - 16 AS SIGNED )
----
-1280

skipif mysql # not compatible
query I rowsort label-4943
SELECT - 80 * CAST ( - - 16 AS INTEGER )
----
-1280

query I rowsort
SELECT DISTINCT + 63 * + 15 AS col0
----
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT ALL - ( + COUNT( * ) ) + + - 78 + + - CAST( NULL AS SIGNED ) * + + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - ( + COUNT ( * ) ) + + - 78 + + - CAST ( NULL AS INTEGER ) * + + 60 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT DISTINCT + AVG ( ALL + 41 ) + - CASE - 75 WHEN CASE 81 WHEN COUNT( + 63 ) THEN NULL WHEN + - 93 * + CAST( NULL AS SIGNED ) THEN - ( 94 ) * - 88 ELSE NULL END + + AVG ( ALL 81 ) THEN 66 * + 5 END * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + AVG ( ALL + 41 ) + - CASE - 75 WHEN CASE 81 WHEN COUNT ( + 63 ) THEN NULL WHEN + - 93 * + CAST ( NULL AS INTEGER ) THEN - ( 94 ) * - 88 ELSE NULL END + + AVG ( ALL 81 ) THEN 66 * + 5 END * 33
----
NULL

query I rowsort
SELECT ALL 69 + 26 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT SUM( DISTINCT + + 15 ) - - - COUNT( * ) + - 73 * + ( - 21 ) AS col0
----
1547

skipif mysql # not compatible
query I rowsort label-4948
SELECT SUM ( DISTINCT + + 15 ) - - - COUNT ( * ) + - 73 * + ( - 21 ) AS col0
----
1547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4949
SELECT DISTINCT COUNT( ALL - CAST( + 86 AS SIGNED ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT COUNT ( ALL - CAST ( + 86 AS INTEGER ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL COUNT( - 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL COUNT ( - 12 ) AS col1
----
1

query I rowsort
SELECT 69 * - ( + 21 ) col1
----
-1449

query I rowsort
SELECT 43 + - 96 AS col0
----
-53

query I rowsort
SELECT 49 + + 87 AS col2
----
136

query II rowsort
SELECT - 61 AS col2, - 95
----
-61
-95

query II rowsort
SELECT 64 AS col2, + 74 * + 17
----
64
1258

query I rowsort
SELECT ALL 9 * 68
----
612

query I rowsort
SELECT 59 + + 72 col1
----
131

query II rowsort
SELECT 68 + - 74 * - 54, 82 AS col2
----
4064
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT 4 - CAST( NULL AS SIGNED ) - + CAST( + 88 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT 4 - CAST ( NULL AS INTEGER ) - + CAST ( + 88 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT SUM( ALL 93 ) + + 68
----
161

skipif mysql # not compatible
query I rowsort label-4960
SELECT SUM ( ALL 93 ) + + 68
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL NULLIF ( - 71, - MAX( DISTINCT - 48 ) + COUNT( * ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL NULLIF ( - 71, - MAX ( DISTINCT - 48 ) + COUNT ( * ) ) AS col1
----
-71

query I rowsort
SELECT ALL 26 * 51 AS col1
----
1326

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT ( 63 ) + 15 AS col1, + 89 * + ( - COUNT( ALL - 21 ) )
----
78
-89

skipif mysql # not compatible
query II rowsort label-4963
SELECT ( 63 ) + 15 AS col1, + 89 * + ( - COUNT ( ALL - 21 ) )
----
78
-89

query I rowsort
SELECT - ( + 56 ) * + + 78 * + ( + 98 ) col0
----
-428064

query I rowsort
SELECT + 42 * 15 AS col1
----
630

query II rowsort
SELECT - 38 AS col0, 44
----
-38
44

query I rowsort
SELECT + + 76 + 21 AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4968
SELECT ALL SUM( + 19 ) DIV - 1 AS col2, + 88 AS col1, + - ( - + 89 ) * - 88
----
-19
88
-7832

skipif mysql # not compatible
query III rowsort label-4968
SELECT ALL SUM ( + 19 ) / - 1 AS col2, + 88 AS col1, + - ( - + 89 ) * - 88
----
-19
88
-7832

query I rowsort
SELECT DISTINCT - ( - 49 ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4970
SELECT + + CASE 29 WHEN - 98 THEN + + 16 + CASE - 45 WHEN + 1 * - + COUNT( * ) / COALESCE ( - 40, + 27 ) THEN CAST( 26 AS SIGNED ) * 6 END END * - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT + + CASE 29 WHEN - 98 THEN + + 16 + CASE - 45 WHEN + 1 * - + COUNT ( * ) / COALESCE ( - 40, + 27 ) THEN CAST ( 26 AS INTEGER ) * 6 END END * - 35 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4971
SELECT ALL 52 DIV NULLIF ( - 59, - - 70 * + + 20 )
----
0

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL 52 / NULLIF ( - 59, - - 70 * + + 20 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL - 88 * - 4 + - 45 + - - SUM( DISTINCT - 94 ) col2
----
213

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - 88 * - 4 + - 45 + - - SUM ( DISTINCT - 94 ) col2
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT DISTINCT - + 3 * - + ( 47 ) * - - COUNT( * ) + - 15
----
126

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT - + 3 * - + ( 47 ) * - - COUNT ( * ) + - 15
----
126

query I rowsort
SELECT + ( 69 ) col1
----
69

query I rowsort
SELECT ALL - - 38 * + - 90 + ( 24 ) + - + 54 AS col1
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL - SUM( DISTINCT 14 ) * + 77 * + 2 * 59 + 98 + + ( + 20 ) + - ( MAX( DISTINCT 47 ) )
----
-127133

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL - SUM ( DISTINCT 14 ) * + 77 * + 2 * 59 + 98 + + ( + 20 ) + - ( MAX ( DISTINCT 47 ) )
----
-127133

query I rowsort
SELECT + 81 + ( - 67 ) AS col2
----
14

query II rowsort
SELECT + 46, + 97 col1
----
46
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4979
SELECT ALL + - 38, - 33 * - CAST( NULL AS SIGNED ) col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-4979
SELECT ALL + - 38, - 33 * - CAST ( NULL AS INTEGER ) col2
----
-38
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT - - NULLIF ( + 32, - + 87 ) * 70 + + 39 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT - - NULLIF ( + 32, - + 87 ) * 70 + + 39 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4981
SELECT ALL + + 19 * + 5 + - - 73 * + COUNT( * ) AS col0, 54 + 54 AS col1, MIN( 95 ) * - COALESCE ( 80, + 27 ) * - 78 * 60 + 49 col0
----
168
108
35568049

skipif mysql # not compatible
query III rowsort label-4981
SELECT ALL + + 19 * + 5 + - - 73 * + COUNT ( * ) AS col0, 54 + 54 AS col1, MIN ( 95 ) * - COALESCE ( 80, + 27 ) * - 78 * 60 + 49 col0
----
168
108
35568049

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - ( - 10 ) * + 44 * - CASE 30 WHEN + + 86 THEN - ( - 22 ) + + 62 WHEN + 41 + - 96 + - CASE + 32 WHEN + ( 36 ) THEN 0 * 83 WHEN 62 * - 76 THEN 65 ELSE NULL END + + 6 THEN COUNT( * ) * - 35 ELSE 74 END col2
----
-32560

skipif mysql # not compatible
query I rowsort label-4982
SELECT - ( - 10 ) * + 44 * - CASE 30 WHEN + + 86 THEN - ( - 22 ) + + 62 WHEN + 41 + - 96 + - CASE + 32 WHEN + ( 36 ) THEN 0 * 83 WHEN 62 * - 76 THEN 65 ELSE NULL END + + 6 THEN COUNT ( * ) * - 35 ELSE 74 END col2
----
-32560

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL + CASE - - 0 WHEN - COALESCE ( + 86, + - 33 + + + COALESCE ( + + COUNT( * ), + 17 ), - 91 ) THEN + + 33 * + + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + CASE - - 0 WHEN - COALESCE ( + 86, + - 33 + + + COALESCE ( + + COUNT ( * ), + 17 ), - 91 ) THEN + + 33 * + + 15 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT - ( - CASE 27 WHEN 29 THEN NULL WHEN 77 * + 11 + - 60 THEN - 36 ELSE + 24 * + CAST( NULL AS SIGNED ) END ) + - 69 * + NULLIF ( + COUNT( * ), 75 - CASE WHEN ( 0 ) BETWEEN ( - 33 ) AND - CAST( + NULLIF ( CAST( 49 AS SIGNED ), COUNT( DISTINCT - 22 ) ) AS SIGNED ) THEN - 39 END * - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT - ( - CASE 27 WHEN 29 THEN NULL WHEN 77 * + 11 + - 60 THEN - 36 ELSE + 24 * + CAST ( NULL AS INTEGER ) END ) + - 69 * + NULLIF ( + COUNT ( * ), 75 - CASE WHEN ( 0 ) BETWEEN ( - 33 ) AND - CAST ( + NULLIF ( CAST ( 49 AS INTEGER ), COUNT ( DISTINCT - 22 ) ) AS INTEGER ) THEN - 39 END * - 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - COUNT( * ) + 17
----
16

skipif mysql # not compatible
query I rowsort label-4985
SELECT - COUNT ( * ) + 17
----
16

query I rowsort
SELECT ALL 26 * + 1 - - + 60
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT + ( CAST( 55 AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-4987
SELECT + ( CAST ( 55 AS INTEGER ) )
----
55

query I rowsort
SELECT + 98 * - + 72 col0
----
-7056

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4989
SELECT 51 * 53 * + 55 + 85 - + + 98 AS col1, - CAST( - ( + 82 ) AS SIGNED ) + 51 DIV - COALESCE ( + 31, - 60 )
----
148652
81

skipif mysql # not compatible
query II rowsort label-4989
SELECT 51 * 53 * + 55 + 85 - + + 98 AS col1, - CAST ( - ( + 82 ) AS INTEGER ) + 51 / - COALESCE ( + 31, - 60 )
----
148652
81

query I rowsort
SELECT DISTINCT + 60 - 4 AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4991
SELECT DISTINCT - 6 * + + 55 AS col2, - CASE + 16 WHEN + 50 - - 75 + 20 THEN + 29 + + + 3 ELSE NULL END + - + 16 * COUNT( * ) * NULLIF ( - COUNT( * ), + ( ( - COUNT( * ) ) ) ) + - CASE COUNT( * ) WHEN CASE + 82 WHEN - ( 35 ) THEN 58 * 38 WHEN + 98 THEN + SUM( DISTINCT - 46 ) END + - NULLIF ( + COUNT( ALL - 55 ), 29 * NULLIF ( 81, 64 ) ) THEN NULLIF ( + NULLIF ( + 54, 23 * + COALESCE ( + 73, COUNT( * ) + COUNT( * ) ) ), 42 ) + - 2 END * + 41 AS col1
----
-330
NULL

skipif mysql # not compatible
query II rowsort label-4991
SELECT DISTINCT - 6 * + + 55 AS col2, - CASE + 16 WHEN + 50 - - 75 + 20 THEN + 29 + + + 3 ELSE NULL END + - + 16 * COUNT ( * ) * NULLIF ( - COUNT ( * ), + ( ( - COUNT ( * ) ) ) ) + - CASE COUNT ( * ) WHEN CASE + 82 WHEN - ( 35 ) THEN 58 * 38 WHEN + 98 THEN + SUM ( DISTINCT - 46 ) END + - NULLIF ( + COUNT ( ALL - 55 ), 29 * NULLIF ( 81, 64 ) ) THEN NULLIF ( + NULLIF ( + 54, 23 * + COALESCE ( + 73, COUNT ( * ) + COUNT ( * ) ) ), 42 ) + - 2 END * + 41 AS col1
----
-330
NULL

query I rowsort
SELECT ALL ( - - 51 )
----
51

query II rowsort
SELECT - 68 * + + 33 AS col1, + 47 col1
----
-2244
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT DISTINCT + 61 - COUNT( * ) col0, - COUNT( * ) * + 84 + - 85 + 0 + - 8 * 60 * + + 27
----
60
-13129

skipif mysql # not compatible
query II rowsort label-4994
SELECT DISTINCT + 61 - COUNT ( * ) col0, - COUNT ( * ) * + 84 + - 85 + 0 + - 8 * 60 * + + 27
----
60
-13129

query I rowsort
SELECT ALL NULLIF ( - 16, + + 12 ) AS col0
----
-16

query I rowsort
SELECT DISTINCT CASE 2 WHEN 4 * - + 36 + 19 / + + 31 THEN + + 45 END
----
NULL

query I rowsort
SELECT - ( 57 ) * 68 AS col0
----
-3876

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT DISTINCT ( + + 71 ), + CASE - ( - ( 83 ) ) WHEN - 26 + - COALESCE ( - 63, - NULLIF ( + + 22, 52 ), + + 74 * 70 - - 73 ) THEN - COUNT( ALL 49 ) * + COUNT( ALL 86 ) WHEN 12 THEN NULL END * ( + 72 ) AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4998
SELECT DISTINCT ( + + 71 ), + CASE - ( - ( 83 ) ) WHEN - 26 + - COALESCE ( - 63, - NULLIF ( + + 22, 52 ), + + 74 * 70 - - 73 ) THEN - COUNT ( ALL 49 ) * + COUNT ( ALL 86 ) WHEN 12 THEN NULL END * ( + 72 ) AS col2
----
71
NULL

query I rowsort
SELECT - COALESCE ( + 57, + - 61 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL MIN( DISTINCT - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL MIN ( DISTINCT - 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL - ( SUM( 25 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - ( SUM ( 25 ) ) AS col0
----
-25

query I rowsort
SELECT - - 3 * + + 64 col0
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5003
SELECT DISTINCT - - COUNT( * ) * + + 11 col1, + MAX( DISTINCT + 88 ) + + 31 DIV - - 61 * 14 * - + 39 AS col2
----
11
88

skipif mysql # not compatible
query II rowsort label-5003
SELECT DISTINCT - - COUNT ( * ) * + + 11 col1, + MAX ( DISTINCT + 88 ) + + 31 / - - 61 * 14 * - + 39 AS col2
----
11
88

query I rowsort
SELECT ALL + - 76 + 46 col2
----
-30

query I rowsort
SELECT ALL - 58 + + 38
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5006
SELECT DISTINCT + - MAX( ALL ( - + 74 ) ) DIV + COUNT( * ) + - 62 - 51 + + NULLIF ( 60, + - 8 ) DIV 53
----
-38

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT + - MAX ( ALL ( - + 74 ) ) / + COUNT ( * ) + - 62 - 51 + + NULLIF ( 60, + - 8 ) / 53
----
-38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5007
SELECT ALL - + 94 DIV + NULLIF ( + COALESCE ( - + AVG ( + CAST( NULL AS SIGNED ) ), + - 65 ), + - 45 ) + + - 46 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL - + 94 / + NULLIF ( + COALESCE ( - + AVG ( + CAST ( NULL AS INTEGER ) ), + - 65 ), + - 45 ) + + - 46 AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5008
SELECT CAST( NULL AS SIGNED ) * - 35 + + - 96 + - 76 * - CAST( NULL AS DECIMAL ) * - 79 * 1, + 13 * 15 * + 41 + - 80 / - - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5008
SELECT CAST ( NULL AS INTEGER ) * - 35 + + - 96 + - 76 * - CAST ( NULL AS REAL ) * - 79 * 1, + 13 * 15 * + 41 + - 80 / - - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT DISTINCT 88 DIV 5 - NULLIF ( - 20, 26 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT 88 / 5 - NULLIF ( - 20, 26 ) AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT DISTINCT 71 DIV - SUM( + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT 71 / - SUM ( + 49 )
----
-1

query I rowsort
SELECT + 34 * + 29
----
986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT DISTINCT 47 * + 65 * CAST( NULL AS SIGNED ) - + 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT 47 * + 65 * CAST ( NULL AS INTEGER ) - + 68 col2
----
NULL

query I rowsort
SELECT ALL 34 * - 3
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL CAST( NULL AS SIGNED ) * + 98 * + 39 * + 62 - + 96 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL CAST ( NULL AS INTEGER ) * + 98 * + 39 * + 62 - + 96 col2
----
NULL

query I rowsort
SELECT + 72 * 53 - 13
----
3803

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT + 74 * - COUNT( * ) * + 38 AS col0
----
-2812

skipif mysql # not compatible
query I rowsort label-5016
SELECT + 74 * - COUNT ( * ) * + 38 AS col0
----
-2812

query I rowsort
SELECT - 80 * + 43 AS col0
----
-3440

query I rowsort
SELECT ALL 98 * 93
----
9114

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT CASE - COALESCE ( + 1, + + ( - + 81 ) ) WHEN 42 * MIN( + - 38 ) THEN NULL WHEN - 64 THEN - ( + - 65 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT CASE - COALESCE ( + 1, + + ( - + 81 ) ) WHEN 42 * MIN ( + - 38 ) THEN NULL WHEN - 64 THEN - ( + - 65 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT MAX( DISTINCT - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT MAX ( DISTINCT - 92 )
----
-92

query I rowsort
SELECT - 62 - + 62 + + 62
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT 85 DIV 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT 85 / 30 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5023
SELECT 81 AS col0, COUNT( * ) AS col2
----
81
1

skipif mysql # not compatible
query II rowsort label-5023
SELECT 81 AS col0, COUNT ( * ) AS col2
----
81
1

query I rowsort
SELECT 77 * 95 AS col0
----
7315

query I rowsort
SELECT 13 * - 76 AS col2
----
-988

query I rowsort
SELECT ALL - 84 * - + ( + + 20 ) AS col2
----
1680

query I rowsort
SELECT 84 + - 29
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT - 80 col0, - 6 + - COUNT( * ) * + COUNT( * ) AS col2
----
-80
-7

skipif mysql # not compatible
query II rowsort label-5028
SELECT - 80 col0, - 6 + - COUNT ( * ) * + COUNT ( * ) AS col2
----
-80
-7

query I rowsort
SELECT ALL + 12 * - 74 AS col1
----
-888

query I rowsort
SELECT ALL + 43 + + 3 AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5031
SELECT ALL + 62 + + 4 + + COUNT( * ) * + 67 DIV 47 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + 62 + + 4 + + COUNT ( * ) * + 67 / 47 AS col2
----
67

query I rowsort
SELECT ALL + 51 * + 20 col2
----
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT ALL + + 41 DIV COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + + 41 / COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT DISTINCT + MAX( DISTINCT + + CAST( - 43 AS SIGNED ) ) + - - ( - 28 )
----
-71

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT + MAX ( DISTINCT + + CAST ( - 43 AS INTEGER ) ) + - - ( - 28 )
----
-71

query I rowsort
SELECT ALL + - 74 + + 43 col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL - - SUM( ALL 43 ) * 57 + + 79 + - + 4
----
2526

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL - - SUM ( ALL 43 ) * 57 + + 79 + - + 4
----
2526

query I rowsort
SELECT 49 + - 34 - - 66 - + 41 * - 26
----
1147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT DISTINCT - + 44 + + ( + CASE SUM( DISTINCT + 18 ) WHEN + - 62 THEN NULL WHEN + + 83 THEN 15 + + 73 - + 73 * NULLIF ( MIN( + - 73 ), 12 * + + 37 * - 50 - + 50 ) * 20 WHEN CAST( NULL AS SIGNED ) * - 55 THEN 78 + + COUNT( * ) END ) + 62 * - ( COUNT( ALL + ( 19 ) ) * + ( AVG ( DISTINCT 37 ) * 30 ) - + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT - + 44 + + ( + CASE SUM ( DISTINCT + 18 ) WHEN + - 62 THEN NULL WHEN + + 83 THEN 15 + + 73 - + 73 * NULLIF ( MIN ( + - 73 ), 12 * + + 37 * - 50 - + 50 ) * 20 WHEN CAST ( NULL AS INTEGER ) * - 55 THEN 78 + + COUNT ( * ) END ) + 62 * - ( COUNT ( ALL + ( 19 ) ) * + ( AVG ( DISTINCT 37 ) * 30 ) - + 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL ( + 28 ) * 88 + + + 24 + + CASE + COALESCE ( - + 96, + + 43, 20 ) WHEN + 81 THEN - AVG ( ALL + 32 ) / + COUNT( * ) ELSE NULL END / + ( + 16 ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL ( + 28 ) * 88 + + + 24 + + CASE + COALESCE ( - + 96, + + 43, 20 ) WHEN + 81 THEN - AVG ( ALL + 32 ) / + COUNT ( * ) ELSE NULL END / + ( + 16 ) + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL - + CASE MIN( ALL + 55 ) WHEN 29 THEN NULL ELSE 50 END * + 53 + - ( - - 98 ) * 93 AS col1
----
-11764

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - + CASE MIN ( ALL + 55 ) WHEN 29 THEN NULL ELSE 50 END * + 53 + - ( - - 98 ) * 93 AS col1
----
-11764

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5041
SELECT - 31 AS col2, NULLIF ( - 43, + CAST( NULL AS SIGNED ) * 1 * + + 50 * CAST( NULL AS SIGNED ) - + 72 * CASE WHEN NOT + 92 < + 7 THEN - 29 END + - - 17 + - 75 / 12 ) AS col1
----
-31
-43

skipif mysql # not compatible
query II rowsort label-5041
SELECT - 31 AS col2, NULLIF ( - 43, + CAST ( NULL AS INTEGER ) * 1 * + + 50 * CAST ( NULL AS INTEGER ) - + 72 * CASE WHEN NOT + 92 < + 7 THEN - 29 END + - - 17 + - 75 / 12 ) AS col1
----
-31
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT DISTINCT - - COUNT( * ) * - 98
----
-98

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT - - COUNT ( * ) * - 98
----
-98

query I rowsort
SELECT 43 * - ( 78 )
----
-3354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5044
SELECT 37 col0, - CAST( NULL AS SIGNED ) + + + SUM( ALL 47 ) AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5044
SELECT 37 col0, - CAST ( NULL AS INTEGER ) + + + SUM ( ALL 47 ) AS col1
----
37
NULL

query II rowsort
SELECT ALL - 23, 43 * + 58 AS col1
----
-23
2494

onlyif mysql # DIV for integer division: 
query II rowsort label-5046
SELECT ALL - 49 AS col0, 11 DIV - 15 AS col0
----
-49
0

skipif mysql # not compatible
query II rowsort label-5046
SELECT ALL - 49 AS col0, 11 / - 15 AS col0
----
-49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL COUNT( * ) * - 96 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL COUNT ( * ) * - 96 AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT MIN( 90 ) DIV 19 DIV - NULLIF ( + 37, - NULLIF ( 72, + + 75 DIV + - COUNT( * ) ) * + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT MIN ( 90 ) / 19 / - NULLIF ( + 37, - NULLIF ( 72, + + 75 / + - COUNT ( * ) ) * + 75 )
----
0

query II rowsort
SELECT DISTINCT - 26, CASE 38 WHEN 93 THEN + 62 + 7 END + + 51 AS col2
----
-26
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5050
SELECT DISTINCT - 65 AS col2, + CASE CAST( + COUNT( DISTINCT 2 ) AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) * 54 * - ( 64 ) * + 72 * - 25 * - + 92 * - 85 THEN NULL WHEN + 46 * + + COUNT( DISTINCT - 32 ) / - AVG ( ALL - 45 + 51 ) THEN - 24 + - NULLIF ( 60, 5 * ( - CASE 32 WHEN 1 + COUNT( ALL + 56 ) THEN NULL WHEN 43 * + CAST( NULL AS SIGNED ) THEN + 66 ELSE + 99 END / + 50 ) ) * SUM( 26 ) ELSE + 29 * - 18 END + + 89 AS col0
----
-65
-433

skipif mysql # not compatible
query II rowsort label-5050
SELECT DISTINCT - 65 AS col2, + CASE CAST ( + COUNT ( DISTINCT 2 ) AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) * 54 * - ( 64 ) * + 72 * - 25 * - + 92 * - 85 THEN NULL WHEN + 46 * + + COUNT ( DISTINCT - 32 ) / - AVG ( ALL - 45 + 51 ) THEN - 24 + - NULLIF ( 60, 5 * ( - CASE 32 WHEN 1 + COUNT ( ALL + 56 ) THEN NULL WHEN 43 * + CAST ( NULL AS INTEGER ) THEN + 66 ELSE + 99 END / + 50 ) ) * SUM ( 26 ) ELSE + 29 * - 18 END + + 89 AS col0
----
-65
-433

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL 44 * MAX( 64 ) AS col0
----
2816

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL 44 * MAX ( 64 ) AS col0
----
2816

query II rowsort
SELECT 53 AS col0, 85
----
53
85

query I rowsort
SELECT - 67 * + + 46 + - 89 + 41 - - 52
----
-3078

query II rowsort
SELECT + 72 AS col2, + 14 + + - 21
----
72
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5055
SELECT 22 * - - CAST( - ( + - 74 ) AS SIGNED ) AS col1, - 17
----
1628
-17

skipif mysql # not compatible
query II rowsort label-5055
SELECT 22 * - - CAST ( - ( + - 74 ) AS INTEGER ) AS col1, - 17
----
1628
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5056
SELECT 16 * + 3 * - 74 + 85 AS col0, - CAST( NULL AS SIGNED ) + + - 55
----
-3467
NULL

skipif mysql # not compatible
query II rowsort label-5056
SELECT 16 * + 3 * - 74 + 85 AS col0, - CAST ( NULL AS INTEGER ) + + - 55
----
-3467
NULL

query II rowsort
SELECT 4 AS col1, - 60 AS col2
----
4
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT ALL CASE + CAST( COUNT( * ) AS SIGNED ) WHEN + - 63 THEN + 86 * - CAST( NULL AS SIGNED ) ELSE 0 END + 26 - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN + - 63 THEN + 86 * - CAST ( NULL AS INTEGER ) ELSE 0 END + 26 - - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL MIN( + 64 ) + 49 * + 87 * + - NULLIF ( 57, - 58 )
----
-242927

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL MIN ( + 64 ) + 49 * + 87 * + - NULLIF ( 57, - 58 )
----
-242927

onlyif mysql # aggregate syntax: 
query II rowsort label-5060
SELECT ALL - + ( - COUNT( * ) ) + - + NULLIF ( + - 82, + 84 * + 40 * - - 51 + + - 58 ) * 53 AS col2, - 2 col2
----
4347
-2

skipif mysql # not compatible
query II rowsort label-5060
SELECT ALL - + ( - COUNT ( * ) ) + - + NULLIF ( + - 82, + 84 * + 40 * - - 51 + + - 58 ) * 53 AS col2, - 2 col2
----
4347
-2

query II rowsort
SELECT DISTINCT 85 AS col1, 54
----
85
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT - 64 + + + COUNT( * ) * 83 + + 77 + + ( COUNT( * ) ) - + - 61 * + - 69
----
-4112

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT - 64 + + + COUNT ( * ) * 83 + + 77 + + ( COUNT ( * ) ) - + - 61 * + - 69
----
-4112

query I rowsort
SELECT ALL + 31 + + 50 + + - 56 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT ( - CAST( - 25 AS SIGNED ) )
----
25

skipif mysql # not compatible
query I rowsort label-5064
SELECT ( - CAST ( - 25 AS INTEGER ) )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT - 30 col1, + 5 + + + COUNT( * ) * + 63
----
-30
68

skipif mysql # not compatible
query II rowsort label-5065
SELECT - 30 col1, + 5 + + + COUNT ( * ) * + 63
----
-30
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT - CASE - ( + - 81 ) WHEN MIN( ALL + 63 ) * + 35 + + ( 51 ) + 16 THEN 79 * 62 + + + 91 - + 69 + - 87 * - COUNT( * ) * - + COUNT( * ) WHEN 93 THEN NULL ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-5066
SELECT - CASE - ( + - 81 ) WHEN MIN ( ALL + 63 ) * + 35 + + ( 51 ) + 16 THEN 79 * 62 + + + 91 - + 69 + - 87 * - COUNT ( * ) * - + COUNT ( * ) WHEN 93 THEN NULL ELSE + COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL + - COALESCE ( + ( - 7 ), 76 - 74 ) + + 11
----
18

query I rowsort
SELECT + 38 - - 18 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - 8 * - - 54 * + SUM( ALL - + 87 ) * - 63
----
-2367792

skipif mysql # not compatible
query I rowsort label-5069
SELECT - 8 * - - 54 * + SUM ( ALL - + 87 ) * - 63
----
-2367792

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL + COUNT( 41 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + COUNT ( 41 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT + - MIN( ALL + 26 ) - - 86 + + + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + - MIN ( ALL + 26 ) - - 86 + + + COUNT ( * ) AS col1
----
61

query I rowsort
SELECT DISTINCT + NULLIF ( + 1, - 89 + 46 * ( 30 ) * - 8 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT ALL - + 67 * - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - + 67 * - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT + + NULLIF ( - 88, 94 + + 68 + + - 7 + CAST( NULL AS SIGNED ) * - + 33 ) - - + 88 * + - 63
----
-5632

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + + NULLIF ( - 88, 94 + + 68 + + - 7 + CAST ( NULL AS INTEGER ) * - + 33 ) - - + 88 * + - 63
----
-5632

query I rowsort
SELECT + 97 + + + ( - + 78 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5076
SELECT DISTINCT - 31 AS col0, - COUNT( * ) + - - 77 AS col2
----
-31
76

skipif mysql # not compatible
query II rowsort label-5076
SELECT DISTINCT - 31 AS col0, - COUNT ( * ) + - - 77 AS col2
----
-31
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5077
SELECT + + NULLIF ( + - 29, - NULLIF ( + 64, 31 * + 37 * + ( - CAST( + 88 AS SIGNED ) ) ) ) AS col2, - 48 AS col0
----
-29
-48

skipif mysql # not compatible
query II rowsort label-5077
SELECT + + NULLIF ( + - 29, - NULLIF ( + 64, 31 * + 37 * + ( - CAST ( + 88 AS INTEGER ) ) ) ) AS col2, - 48 AS col0
----
-29
-48

query I rowsort
SELECT + 54 * + + 10 AS col1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT 88 * SUM( DISTINCT 7 ) AS col0
----
616

skipif mysql # not compatible
query I rowsort label-5079
SELECT 88 * SUM ( DISTINCT 7 ) AS col0
----
616

query I rowsort
SELECT ALL - ( + 85 ) col1
----
-85

query I rowsort
SELECT 62 + + 46 + - 89
----
19

query II rowsort
SELECT ALL - 19 * + - 68 AS col2, + 83 * - 71
----
1292
-5893

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT DISTINCT SUM( 3 ) * MIN( ALL - + 50 ) * 48 - - 0 * - - 36
----
-7200

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT SUM ( 3 ) * MIN ( ALL - + 50 ) * 48 - - 0 * - - 36
----
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT 26 * 14 + - 16 + + ( - 46 ) + + 63 * 72 * - + COUNT( * ) * 0
----
302

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT 26 * 14 + - 16 + + ( - 46 ) + + 63 * 72 * - + COUNT ( * ) * 0
----
302

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT - COUNT( * ) * + + 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5085
SELECT - COUNT ( * ) * + + 34 AS col1
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-5086
SELECT + 38 * 20, - ( + 51 ) DIV + 94 * - 26 col0
----
760
0

skipif mysql # not compatible
query II rowsort label-5086
SELECT + 38 * 20, - ( + 51 ) / + 94 * - 26 col0
----
760
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5087
SELECT ALL + 90 * + COUNT( * ) * - MIN( - CASE 95 WHEN 49 * 35 THEN NULL WHEN 78 THEN - 51 + + ( - 72 ) * + CAST( 66 AS SIGNED ) * - 45 * - 42 * + 58 ELSE + + 36 END ) * + COUNT( * ) + 38
----
3278

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + 90 * + COUNT ( * ) * - MIN ( - CASE 95 WHEN 49 * 35 THEN NULL WHEN 78 THEN - 51 + + ( - 72 ) * + CAST ( 66 AS INTEGER ) * - 45 * - 42 * + 58 ELSE + + 36 END ) * + COUNT ( * ) + 38
----
3278

query I rowsort
SELECT + 8 * - + 67 * 51
----
-27336

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5089
SELECT - 79 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT - 79 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL 90 + 79 + 26 * + NULLIF ( + + 24, - 41 ) + SUM( DISTINCT 26 ) * - 71 * 55 AS col0
----
-100737

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL 90 + 79 + 26 * + NULLIF ( + + 24, - 41 ) + SUM ( DISTINCT 26 ) * - 71 * 55 AS col0
----
-100737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * 52 + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * 52 + - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT SUM( + NULLIF ( 72, - - 54 ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5092
SELECT SUM ( + NULLIF ( 72, - - 54 ) ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT ALL + MIN( + 78 ) + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL + MIN ( + 78 ) + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
79

query II rowsort
SELECT + 72 * + - 56 AS col2, 27
----
-4032
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5095
SELECT DISTINCT + + 32 + + 94 - + COALESCE ( 4, + ( + CAST( NULL AS SIGNED ) ) + - ( - - 59 ) + - + CASE MIN( ALL ( - 64 ) ) WHEN + 64 * - 97 THEN NULL WHEN - 78 THEN - 70 * + 66 * - NULLIF ( - CAST( 37 AS SIGNED ) DIV + ( - 56 DIV COUNT( * ) ), + 7 + + 47 * 49 ) ELSE NULL END + ( 89 ) * SUM( DISTINCT 62 * + 56 + 3 ) ) col0
----
122

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT + + 32 + + 94 - + COALESCE ( 4, + ( + CAST ( NULL AS INTEGER ) ) + - ( - - 59 ) + - + CASE MIN ( ALL ( - 64 ) ) WHEN + 64 * - 97 THEN NULL WHEN - 78 THEN - 70 * + 66 * - NULLIF ( - CAST ( 37 AS INTEGER ) / + ( - 56 / COUNT ( * ) ), + 7 + + 47 * 49 ) ELSE NULL END + ( 89 ) * SUM ( DISTINCT 62 * + 56 + 3 ) ) col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT + 47 * - - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5096
SELECT + 47 * - - COUNT ( * ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT - - COUNT( DISTINCT 46 ) + + 96
----
97

skipif mysql # not compatible
query I rowsort label-5097
SELECT - - COUNT ( DISTINCT 46 ) + + 96
----
97

query I rowsort
SELECT ALL - 60 + + 87 * - 64 AS col2
----
-5628

query I rowsort
SELECT ALL + 2 * COALESCE ( - 70, - - 73 ) * + 45
----
-6300

query I rowsort
SELECT - - ( - 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5101
SELECT + 9 + - 38 + - COUNT( * ) * - 48 DIV 59 + 79 * - 24 + + COALESCE ( - - CASE - 85 WHEN 34 THEN + 75 END, 77 )
----
-1848

skipif mysql # not compatible
query I rowsort label-5101
SELECT + 9 + - 38 + - COUNT ( * ) * - 48 / 59 + 79 * - 24 + + COALESCE ( - - CASE - 85 WHEN 34 THEN + 75 END, 77 )
----
-1848

onlyif mysql # aggregate syntax: 
query III rowsort label-5102
SELECT + COUNT( * ) + + - COUNT( * ) AS col1, 74, + 57 * + + 36 * + - MAX( - - ( - + 94 ) ) col2
----
0
74
192888

skipif mysql # not compatible
query III rowsort label-5102
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col1, 74, + 57 * + + 36 * + - MAX ( - - ( - + 94 ) ) col2
----
0
74
192888

query II rowsort
SELECT + - 14 * + 21 AS col1, + 89
----
-294
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT + - 64 + MAX( DISTINCT 47 )
----
-17

skipif mysql # not compatible
query I rowsort label-5104
SELECT + - 64 + MAX ( DISTINCT 47 )
----
-17

query I rowsort
SELECT + + ( - 36 ) + + 67 * - 58
----
-3922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5106
SELECT ALL - 84 - COALESCE ( + - 5, 59 DIV + SUM( DISTINCT 8 ) DIV + + 94 + + MAX( - 78 ) + - 69 + 96 DIV + 14, - 63 )
----
-79

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - 84 - COALESCE ( + - 5, 59 / + SUM ( DISTINCT 8 ) / + + 94 + + MAX ( - 78 ) + - 69 + 96 / + 14, - 63 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT DISTINCT - 25 DIV + - ( - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT - 25 / + - ( - 69 )
----
0

query I rowsort
SELECT - - 14 + 50 + + 5 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - COUNT( * ) * - 75 * + - 23 - 55
----
-1780

skipif mysql # not compatible
query I rowsort label-5109
SELECT - COUNT ( * ) * - 75 * + - 23 - 55
----
-1780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT ALL CAST( + + CASE 58 WHEN - + AVG ( - 90 ) / - 24 THEN + 89 WHEN + - 88 THEN + - SUM( DISTINCT - 45 ) * 76 * COUNT( * ) * + 99 WHEN 29 THEN NULL END AS SIGNED ) * + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL CAST ( + + CASE 58 WHEN - + AVG ( - 90 ) / - 24 THEN + 89 WHEN + - 88 THEN + - SUM ( DISTINCT - 45 ) * 76 * COUNT ( * ) * + 99 WHEN 29 THEN NULL END AS INTEGER ) * + 82 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 76 * + 33 * - 34 * 46 col1
----
-3922512

query I rowsort
SELECT DISTINCT 40 * + 79
----
3160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5113
SELECT + ( + ( + CAST( NULL AS SIGNED ) ) ) * MIN( ALL + ( - - ( + 64 ) ) ) + 42 + - 86 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT + ( + ( + CAST ( NULL AS INTEGER ) ) ) * MIN ( ALL + ( - - ( + 64 ) ) ) + 42 + - 86 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5114
SELECT ALL + COALESCE ( + 51, 19 * + 75 DIV - 4 - NULLIF ( - 38, CAST( NULL AS DECIMAL ) * ( + 78 ) - + 10 * 28 + - - 47 ) + + COUNT( * ) + + 63 DIV + + COUNT( ALL + 60 ) * - 78 - 83 )
----
51

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + COALESCE ( + 51, 19 * + 75 / - 4 - NULLIF ( - 38, CAST ( NULL AS REAL ) * ( + 78 ) - + 10 * 28 + - - 47 ) + + COUNT ( * ) + + 63 / + + COUNT ( ALL + 60 ) * - 78 - 83 )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT + 33 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-5115
SELECT + 33 / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT 88 * COUNT( * ) + + 83 * + 68
----
5732

skipif mysql # not compatible
query I rowsort label-5116
SELECT 88 * COUNT ( * ) + + 83 * + 68
----
5732

onlyif mysql # aggregate syntax: 
query II rowsort label-5117
SELECT ALL + COUNT( * ), - 35 * - 0 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-5117
SELECT ALL + COUNT ( * ), - 35 * - 0 AS col0
----
1
0

query I rowsort
SELECT - 21 * + 30 + 90 * + 33 AS col0
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ( - COUNT( DISTINCT + 61 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5119
SELECT ( - COUNT ( DISTINCT + 61 ) )
----
-1

query I rowsort
SELECT + 21 * - + 61 - + 16 - + + 96 AS col0
----
-1393

query I rowsort
SELECT - 58 * 71 + 37 - + - 24
----
-4057

query II rowsort
SELECT + 22, 56 AS col1
----
22
56

query I rowsort
SELECT ALL 77 * + + 74 * 40 + + + 8 AS col2
----
227928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5124
SELECT COALESCE ( - - COUNT( * ), - 33 * MAX( ALL + - 35 ) * + - 40 DIV ( + MAX( ALL - + 17 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5124
SELECT COALESCE ( - - COUNT ( * ), - 33 * MAX ( ALL + - 35 ) * + - 40 / ( + MAX ( ALL - + 17 ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT ALL - 30 * + 15 + - + CAST( NULL AS SIGNED ) + 13 + + - 94 * - - 89 / - 22 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL - 30 * + 15 + - + CAST ( NULL AS INTEGER ) + 13 + + - 94 * - - 89 / - 22 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 49 + + 42 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL + MAX( ALL + + CASE NULLIF ( - - 89, 3 ) WHEN 66 THEN + 1 + - 50 - + 74 / - - 17 END ) * - - ( - + 66 ) - + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL + MAX ( ALL + + CASE NULLIF ( - - 89, 3 ) WHEN 66 THEN + 1 + - 50 - + 74 / - - 17 END ) * - - ( - + 66 ) - + - 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5128
SELECT - + 46 * + - 14 + - NULLIF ( + - ( + 82 ), + 71 ) - + COUNT( * ) + - - 93 DIV 89
----
726

skipif mysql # not compatible
query I rowsort label-5128
SELECT - + 46 * + - 14 + - NULLIF ( + - ( + 82 ), + 71 ) - + COUNT ( * ) + - - 93 / 89
----
726

query I rowsort
SELECT + + 3 * 90 + - 84 AS col0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT DISTINCT - 46 * 30 - MIN( - 95 ) + + 46
----
-1239

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT - 46 * 30 - MIN ( - 95 ) + + 46
----
-1239

onlyif mysql # DIV for integer division: 
query II rowsort label-5131
SELECT ALL - 83 col0, - 93 + 57 + - 86 DIV 57
----
-83
-37

skipif mysql # not compatible
query II rowsort label-5131
SELECT ALL - 83 col0, - 93 + 57 + - 86 / 57
----
-83
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - + MAX( DISTINCT - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-5132
SELECT - + MAX ( DISTINCT - 6 )
----
6

query I rowsort
SELECT - + 43 * + 13
----
-559

query I rowsort
SELECT DISTINCT 68 * + 51 col1
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT - 17 * + 71 - 44 + - COUNT( * ) + + + ( 62 ) + COUNT( * ) * - COALESCE ( - + 38, 39 + + - 41 ) + - 48 AS col1
----
-1200

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT - 17 * + 71 - 44 + - COUNT ( * ) + + + ( 62 ) + COUNT ( * ) * - COALESCE ( - + 38, 39 + + - 41 ) + - 48 AS col1
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT + + COUNT( * ) * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-5136
SELECT + + COUNT ( * ) * - 87
----
-87

query I rowsort
SELECT ALL - 88 * + - 76
----
6688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5138
SELECT - 96 DIV + 61 * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5138
SELECT - 96 / + 61 * - - COUNT ( * )
----
-1

query II rowsort
SELECT - 38 AS col2, 81 AS col2
----
-38
81

query I rowsort
SELECT - 9 * 7 AS col2
----
-63

query I rowsort
SELECT DISTINCT + 96 * + 70
----
6720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5142
SELECT - 23 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT - 23 - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - NULLIF ( + 1, - 18 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT + 97 * - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-5144
SELECT + 97 * - COUNT ( * )
----
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5145
SELECT + + 58 - - CAST( + 43 AS SIGNED ) DIV NULLIF ( - 28, - CAST( NULL AS SIGNED ) DIV 93 ) * 69 * + 37 AS col2
----
-2495

skipif mysql # not compatible
query I rowsort label-5145
SELECT + + 58 - - CAST ( + 43 AS INTEGER ) / NULLIF ( - 28, - CAST ( NULL AS INTEGER ) / 93 ) * 69 * + 37 AS col2
----
-2495

query I rowsort
SELECT + ( - - 28 ) * + 87
----
2436

query II rowsort
SELECT ALL 34 + + 25 AS col1, - 89 * + 79
----
59
-7031

query I rowsort
SELECT ALL 16 + - 78
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT MAX( ALL + 12 ) - + ( 93 ) * - COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-5149
SELECT MAX ( ALL + 12 ) - + ( 93 ) * - COUNT ( * )
----
105

query I rowsort
SELECT ALL 80 + - + 48 + - 15 * 53 + + 36 AS col1
----
-727

query I rowsort
SELECT DISTINCT 56 + - 84 - + 82 AS col2
----
-110

query I rowsort
SELECT 32 * + - 17
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL 74 * - MAX( + COALESCE ( + NULLIF ( + 88, + + 68 ), + 24 ) )
----
-6512

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL 74 * - MAX ( + COALESCE ( + NULLIF ( + 88, + + 68 ), + 24 ) )
----
-6512

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL - MIN( DISTINCT 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - MIN ( DISTINCT 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5155
SELECT DISTINCT COUNT( - NULLIF ( + 94, + 44 ) ) * ( + 71 ) DIV + 7 + - 98
----
-88

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT COUNT ( - NULLIF ( + 94, + 44 ) ) * ( + 71 ) / + 7 + - 98
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5156
SELECT ALL - MAX( ALL + 58 ) DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - MAX ( ALL + 58 ) / 68 AS col1
----
0

query I rowsort
SELECT DISTINCT 55 - 52
----
3

query I rowsort
SELECT + 77 - + 40 AS col0
----
37

query I rowsort
SELECT 62 * + 30 AS col0
----
1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5160
SELECT + MIN( + COALESCE ( - - 63, 64 - + - 51, + 16 ) ) * + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT + MIN ( + COALESCE ( - - 63, 64 - + - 51, + 16 ) ) * + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 39 + + 7 + + 65 - - 27 + + 32
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT ALL + - 52 * + COUNT( * ) AS col2, + 12 col0
----
-52
12

skipif mysql # not compatible
query II rowsort label-5162
SELECT ALL + - 52 * + COUNT ( * ) AS col2, + 12 col0
----
-52
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT - 27 - + - MIN( ALL - ( - CAST( - 11 AS SIGNED ) ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5163
SELECT - 27 - + - MIN ( ALL - ( - CAST ( - 11 AS INTEGER ) ) ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + COALESCE ( CASE - 69 WHEN + 99 THEN CASE WHEN NOT ( - + 59 ) NOT BETWEEN - 63 - + 77 AND - CASE + + 52 WHEN + + 88 + - + 53 / 7 + + COUNT( * ) * + 46 THEN - + 42 END * + + 40 AND ( - 13 + - ( + COUNT( * ) ) ) >= 83 THEN 90 + - 25 END + - 54 ELSE 47 + CASE - 48 WHEN 20 / + COUNT( COALESCE ( - 90, - 9 ) ) THEN NULL WHEN MIN( + 79 ) THEN 32 * - 16 ELSE 92 * + 56 + 78 * - COUNT( * ) END END, 11 )
----
5121

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + COALESCE ( CASE - 69 WHEN + 99 THEN CASE WHEN NOT ( - + 59 ) NOT BETWEEN - 63 - + 77 AND - CASE + + 52 WHEN + + 88 + - + 53 / 7 + + COUNT ( * ) * + 46 THEN - + 42 END * + + 40 AND ( - 13 + - ( + COUNT ( * ) ) ) >= 83 THEN 90 + - 25 END + - 54 ELSE 47 + CASE - 48 WHEN 20 / + COUNT ( COALESCE ( - 90, - 9 ) ) THEN NULL WHEN MIN ( + 79 ) THEN 32 * - 16 ELSE 92 * + 56 + 78 * - COUNT ( * ) END END, 11 )
----
5121

query I rowsort
SELECT - ( - 8 ) + - CASE + + 43 WHEN - + 7 * 93 * 99 THEN + 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT 47 * COUNT( * ) + 16 + 61 * + 72 AS col2
----
4455

skipif mysql # not compatible
query I rowsort label-5166
SELECT 47 * COUNT ( * ) + 16 + 61 * + 72 AS col2
----
4455

query I rowsort
SELECT 0 * + 7 + - - 6
----
6

query I rowsort
SELECT 88 + - + 6 + + - 37
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT + 90 - 80 * 51 DIV + 14 col0
----
-201

skipif mysql # not compatible
query I rowsort label-5169
SELECT + 90 - 80 * 51 / + 14 col0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + 34 + - 93 + + + ( MIN( - 84 ) ) AS col0
----
-143

skipif mysql # not compatible
query I rowsort label-5170
SELECT + 34 + - 93 + + + ( MIN ( - 84 ) ) AS col0
----
-143

query I rowsort
SELECT ALL + + 56 + + 2 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT 80 + - - 80 + - MIN( ALL - 5 ) * 45 AS col2
----
385

skipif mysql # not compatible
query I rowsort label-5172
SELECT 80 + - - 80 + - MIN ( ALL - 5 ) * 45 AS col2
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL MAX( ALL + 66 ) + + - 90 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL MAX ( ALL + 66 ) + + - 90 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5174
SELECT ALL - + 43 DIV - COUNT( * ) + - - ( + + 83 ) + - + 77
----
49

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL - + 43 / - COUNT ( * ) + - - ( + + 83 ) + - + 77
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT CASE - MIN( 81 ) WHEN + COUNT( * ) THEN 34 ELSE 91 * + CAST( 98 AS SIGNED ) - + 16 + - 6 * + 71 * - 84 + + 21 END + + CASE - + 62 WHEN + 58 - - - 40 THEN + 6 WHEN - CASE + 34 WHEN COUNT( * ) + 30 THEN NULL ELSE 97 * + 45 + - 86 END THEN NULL END + + 73 / + CASE - ( 11 ) / - ( 81 - 62 ) WHEN - 22 THEN NULL ELSE 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT CASE - MIN ( 81 ) WHEN + COUNT ( * ) THEN 34 ELSE 91 * + CAST ( 98 AS INTEGER ) - + 16 + - 6 * + 71 * - 84 + + 21 END + + CASE - + 62 WHEN + 58 - - - 40 THEN + 6 WHEN - CASE + 34 WHEN COUNT ( * ) + 30 THEN NULL ELSE 97 * + 45 + - 86 END THEN NULL END + + 73 / + CASE - ( 11 ) / - ( 81 - 62 ) WHEN - 22 THEN NULL ELSE 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * - + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * - + 89 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5177
SELECT 71 DIV - + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-5177
SELECT 71 / - + COUNT ( * )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5178
SELECT - 52 AS col2, - ( + + 8 ) AS col0, - ( - + CAST( ( 31 ) AS SIGNED ) ) * - - COUNT( * ) * 21 - - 33 * + ( + COUNT( * ) ) * COUNT( * ) - 39 + + + 6
----
-52
-8
651

skipif mysql # not compatible
query III rowsort label-5178
SELECT - 52 AS col2, - ( + + 8 ) AS col0, - ( - + CAST ( ( 31 ) AS INTEGER ) ) * - - COUNT ( * ) * 21 - - 33 * + ( + COUNT ( * ) ) * COUNT ( * ) - 39 + + + 6
----
-52
-8
651

query I rowsort
SELECT DISTINCT - 80 * - 87 AS col0
----
6960

query I rowsort
SELECT 6 * - 3
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - 71 - COUNT( * ) + - - 50 * + 94 + - - NULLIF ( - - 71, - 11 ) AS col2
----
4699

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - 71 - COUNT ( * ) + - - 50 * + 94 + - - NULLIF ( - - 71, - 11 ) AS col2
----
4699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT ALL COALESCE ( + - 0, + COUNT( * ) * COALESCE ( 60, COUNT( * ) + - + 87 ) - CAST( + MIN( 61 ) AS SIGNED ), + 33 * - - 45 - - 36 * 44 ) - - 11 + - + 16 + - NULLIF ( - + NULLIF ( + 10, COUNT( * ) ), 15 ) col0
----
5

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL COALESCE ( + - 0, + COUNT ( * ) * COALESCE ( 60, COUNT ( * ) + - + 87 ) - CAST ( + MIN ( 61 ) AS INTEGER ), + 33 * - - 45 - - 36 * 44 ) - - 11 + - + 16 + - NULLIF ( - + NULLIF ( + 10, COUNT ( * ) ), 15 ) col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT 32 * - COUNT( * ) * + 76
----
-2432

skipif mysql # not compatible
query I rowsort label-5183
SELECT 32 * - COUNT ( * ) * + 76
----
-2432

query I rowsort
SELECT 62 * - 78 * - 97 + + 90 * + + 33 * - 91
----
198822

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT SUM( + + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5185
SELECT SUM ( + + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT - 75 * - MIN( ALL + 76 ) + - + 61 AS col0
----
5639

skipif mysql # not compatible
query I rowsort label-5186
SELECT - 75 * - MIN ( ALL + 76 ) + - + 61 AS col0
----
5639

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT NULLIF ( + + 47, MIN( - 15 ) * - - 72 * COUNT( * ) - SUM( ALL 10 ) - - + ( + + 61 ) * + + 11 ) + + 92
----
139

skipif mysql # not compatible
query I rowsort label-5187
SELECT NULLIF ( + + 47, MIN ( - 15 ) * - - 72 * COUNT ( * ) - SUM ( ALL 10 ) - - + ( + + 61 ) * + + 11 ) + + 92
----
139

query I rowsort
SELECT 22 * + 53 AS col1
----
1166

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT 28 + + COUNT( * ) - 4 * - 37 col0
----
177

skipif mysql # not compatible
query I rowsort label-5189
SELECT 28 + + COUNT ( * ) - 4 * - 37 col0
----
177

query I rowsort
SELECT DISTINCT 14 * + 75 AS col2
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL - MAX( 97 ) * 43
----
-4171

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL - MAX ( 97 ) * 43
----
-4171

query I rowsort
SELECT 54 * + 81
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT + 79 * - 2 * 97 * + 9 - + NULLIF ( + 80, - SUM( DISTINCT 96 ) ) + 88
----
-137926

skipif mysql # not compatible
query I rowsort label-5193
SELECT + 79 * - 2 * 97 * + 9 - + NULLIF ( + 80, - SUM ( DISTINCT 96 ) ) + 88
----
-137926

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL - - COUNT( 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - - COUNT ( 90 ) AS col1
----
1

query I rowsort
SELECT 33 * + 49
----
1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5196
SELECT MAX( ALL 15 ) + + 71 + + + COUNT( * ) + - - CAST( NULL AS SIGNED ) - 9 * 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT MAX ( ALL 15 ) + + 71 + + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) - 9 * 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT + 82 * COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5197
SELECT + 82 * COUNT ( * ) AS col2
----
82

query I rowsort
SELECT 23 * - 34
----
-782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5199
SELECT - ( + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1, + MIN( + - ( - - 0 ) ) * - + 16 + + + 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-5199
SELECT - ( + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1, + MIN ( + - ( - - 0 ) ) * - + 16 + + + 5 AS col2
----
NULL
5

query I rowsort
SELECT DISTINCT - - COALESCE ( - + 76, - 97, + 84 ) AS col2
----
-76

query II rowsort
SELECT + 84 AS col0, + 55 col0
----
84
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5202
SELECT 2 * + 36 * + SUM( ALL - ( - 31 ) ) AS col1, + 74 AS col1
----
2232
74

skipif mysql # not compatible
query II rowsort label-5202
SELECT 2 * + 36 * + SUM ( ALL - ( - 31 ) ) AS col1, + 74 AS col1
----
2232
74

query I rowsort
SELECT ALL 88 + 65
----
153

query I rowsort
SELECT ALL + 55 + + 84
----
139

query I rowsort
SELECT - + 75 * - ( - 84 ) + + 68
----
-6232

onlyif mysql # aggregate syntax: 
query II rowsort label-5206
SELECT ALL + 2 + - COUNT( * ) + - + 97 * + - 56 AS col2, + MAX( DISTINCT - 70 ) col1
----
5433
-70

skipif mysql # not compatible
query II rowsort label-5206
SELECT ALL + 2 + - COUNT ( * ) + - + 97 * + - 56 AS col2, + MAX ( DISTINCT - 70 ) col1
----
5433
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL - COUNT( * ) + 40 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - COUNT ( * ) + 40 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 92 * - 70 AS col2
----
6440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5209
SELECT ALL COALESCE ( - 13, CAST( - - 62 AS SIGNED ) ) col2, - 41 col0
----
-13
-41

skipif mysql # not compatible
query II rowsort label-5209
SELECT ALL COALESCE ( - 13, CAST ( - - 62 AS INTEGER ) ) col2, - 41 col0
----
-13
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-5210
SELECT 21 AS col0, SUM( DISTINCT + 71 ) / - CASE - COUNT( * ) WHEN + 54 THEN 16 + + - COUNT( DISTINCT - + 37 ) * + 38 * 33 * - 4 + - COUNT( * ) * AVG ( - 4 ) * + COUNT( * ) * ( 77 ) ELSE NULL END
----
21
NULL

skipif mysql # not compatible
query II rowsort label-5210
SELECT 21 AS col0, SUM ( DISTINCT + 71 ) / - CASE - COUNT ( * ) WHEN + 54 THEN 16 + + - COUNT ( DISTINCT - + 37 ) * + 38 * 33 * - 4 + - COUNT ( * ) * AVG ( - 4 ) * + COUNT ( * ) * ( 77 ) ELSE NULL END
----
21
NULL

query I rowsort
SELECT ALL + 39 - CASE - + 91 WHEN ( - 1 ) THEN 51 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL 27 - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL 27 - - COUNT ( * )
----
28

query I rowsort
SELECT - 9 - + 2 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT - 20 * + MIN( + 30 ) AS col2
----
-600

skipif mysql # not compatible
query I rowsort label-5214
SELECT - 20 * + MIN ( + 30 ) AS col2
----
-600

query I rowsort
SELECT DISTINCT + 94 * + 3 * + 67
----
18894

query I rowsort
SELECT - 96 * 75 AS col1
----
-7200

onlyif mysql # DIV for integer division: 
query II rowsort label-5217
SELECT ALL + 92 AS col2, + 12 DIV + + 79 col0
----
92
0

skipif mysql # not compatible
query II rowsort label-5217
SELECT ALL + 92 AS col2, + 12 / + + 79 col0
----
92
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - 49 + - 5 + CASE - 25 WHEN + 66 THEN NULL WHEN 1 THEN + - MIN( 64 ) WHEN + 14 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT - 49 + - 5 + CASE - 25 WHEN + 66 THEN NULL WHEN 1 THEN + - MIN ( 64 ) WHEN + 14 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5219
SELECT ( + COUNT( * ) ) col1, 12 * COALESCE ( COUNT( * ), + 45 )
----
1
12

skipif mysql # not compatible
query II rowsort label-5219
SELECT ( + COUNT ( * ) ) col1, 12 * COALESCE ( COUNT ( * ), + 45 )
----
1
12

query I rowsort
SELECT DISTINCT - + 19 * 15
----
-285

query II rowsort
SELECT ALL + 10, + 96 AS col0
----
10
96

query I rowsort
SELECT + - 97 * - NULLIF ( - 77, 95 ) * - 59 * - 66 + 43
----
-29084243

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT + CASE - COUNT( * ) WHEN 90 + - + 47 * - CASE + ( CASE 59 WHEN + 85 + - + ( - 79 ) + - - 0 * 68 * - 73 * COUNT( * ) THEN NULL WHEN - + 58 THEN ( + COUNT( DISTINCT - 67 ) ) / + 45 + 98 + + 14 / COALESCE ( 70 * 79, - 57, - 61 ) WHEN 98 + 82 THEN NULL ELSE NULL END ) WHEN 90 * 30 + + 90 THEN 84 END THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT + CASE - COUNT ( * ) WHEN 90 + - + 47 * - CASE + ( CASE 59 WHEN + 85 + - + ( - 79 ) + - - 0 * 68 * - 73 * COUNT ( * ) THEN NULL WHEN - + 58 THEN ( + COUNT ( DISTINCT - 67 ) ) / + 45 + 98 + + 14 / COALESCE ( 70 * 79, - 57, - 61 ) WHEN 98 + 82 THEN NULL ELSE NULL END ) WHEN 90 * 30 + + 90 THEN 84 END THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT - ( - 79 ) col0
----
79

query I rowsort
SELECT + + 39 * - - 15 * - - 26 * 26 - 64 + 70
----
395466

query I rowsort
SELECT DISTINCT - 9 * - 25
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT 45 * - - 14 + - + MIN( DISTINCT 0 ) + + - 14 * + - COUNT( * ) col0
----
644

skipif mysql # not compatible
query I rowsort label-5227
SELECT 45 * - - 14 + - + MIN ( DISTINCT 0 ) + + - 14 * + - COUNT ( * ) col0
----
644

query I rowsort
SELECT ALL 33 * + + 99
----
3267

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL - COUNT( * ) * + + 63 + - 96
----
-159

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - COUNT ( * ) * + + 63 + - 96
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT DISTINCT - COUNT( * ) * + 23 * - COUNT( * ) + - - 49 - - 94
----
166

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT - COUNT ( * ) * + 23 * - COUNT ( * ) + - - 49 - - 94
----
166

query II rowsort
SELECT DISTINCT + 35 AS col0, ( - 83 ) AS col2
----
35
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT DISTINCT 38 * COALESCE ( - ( - + 23 ), + COUNT( * ) ) + 24 + + + 46 AS col1, + COUNT( * )
----
944
1

skipif mysql # not compatible
query II rowsort label-5232
SELECT DISTINCT 38 * COALESCE ( - ( - + 23 ), + COUNT ( * ) ) + 24 + + + 46 AS col1, + COUNT ( * )
----
944
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT - 97 * 56 + + COUNT( * ) AS col1
----
-5431

skipif mysql # not compatible
query I rowsort label-5233
SELECT - 97 * 56 + + COUNT ( * ) AS col1
----
-5431

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL - 74 * - + COUNT( * ) + + 73
----
147

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - 74 * - + COUNT ( * ) + + 73
----
147

query II rowsort
SELECT - + 43 AS col2, - 47
----
-43
-47

query I rowsort
SELECT - 75 + + + 23 * - 45 - - 44
----
-1066

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT - 92 * NULLIF ( + 53, + + 99 * + COUNT( DISTINCT 61 ) )
----
-4876

skipif mysql # not compatible
query I rowsort label-5237
SELECT - 92 * NULLIF ( + 53, + + 99 * + COUNT ( DISTINCT 61 ) )
----
-4876

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL 69 - + COUNT( * ) + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL 69 - + COUNT ( * ) + COUNT ( * ) AS col2
----
69

query I rowsort
SELECT + 39 + - 98 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL + 7 - + MIN( + + 48 )
----
-41

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + 7 - + MIN ( + + 48 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL + ( COUNT( * ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + ( COUNT ( * ) ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - COUNT( * ) * 64 * + 5 * 46
----
-14720

skipif mysql # not compatible
query I rowsort label-5242
SELECT - COUNT ( * ) * 64 * + 5 * 46
----
-14720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5243
SELECT - 90 + 77 * - - CAST( + ( - COUNT( * ) ) AS SIGNED ) AS col1, + NULLIF ( - 90, - 11 + 57 * 91 ) AS col2, + 25 - + ( 72 ) * 49 * - 9
----
-167
-90
31777

skipif mysql # not compatible
query III rowsort label-5243
SELECT - 90 + 77 * - - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) AS col1, + NULLIF ( - 90, - 11 + 57 * 91 ) AS col2, + 25 - + ( 72 ) * 49 * - 9
----
-167
-90
31777

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5244
SELECT ALL CASE COUNT( * ) WHEN + + 80 + - 56 * + CAST( + + 40 AS DECIMAL ) THEN NULL WHEN + 34 THEN + 72 * + 56 END * + COUNT( - 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL CASE COUNT ( * ) WHEN + + 80 + - 56 * + CAST ( + + 40 AS REAL ) THEN NULL WHEN + 34 THEN + 72 * + 56 END * + COUNT ( - 69 ) AS col2
----
NULL

query I rowsort
SELECT - 67 + - + 83 + 2
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5246
SELECT ALL - MAX( ( 89 ) ) DIV + COALESCE ( - - 94, - SUM( 3 ) DIV - 90 * ( + 98 ) + 82 + + + COUNT( * ) ) + 80 * - 5 * - NULLIF ( ( - 41 ), + - 81 DIV - - 8 ) AS col0
----
-16400

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - MAX ( ( 89 ) ) / + COALESCE ( - - 94, - SUM ( 3 ) / - 90 * ( + 98 ) + 82 + + + COUNT ( * ) ) + 80 * - 5 * - NULLIF ( ( - 41 ), + - 81 / - - 8 ) AS col0
----
-16400

query I rowsort
SELECT ALL + 45 * + ( - 18 )
----
-810

onlyif mysql # DIV for integer division: 
query II rowsort label-5248
SELECT ALL 20 DIV - 47 + - 46 AS col0, 92 AS col1
----
-46
92

skipif mysql # not compatible
query II rowsort label-5248
SELECT ALL 20 / - 47 + - 46 AS col0, 92 AS col1
----
-46
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5249
SELECT - 93 + - 32 AS col0, + COUNT( * ) AS col0
----
-125
1

skipif mysql # not compatible
query II rowsort label-5249
SELECT - 93 + - 32 AS col0, + COUNT ( * ) AS col0
----
-125
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT DISTINCT - - 26 / 45 + - 75 + 72 + - ( - - 84 ) + - CAST( NULL AS SIGNED ) + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - - 26 / 45 + - 75 + 72 + - ( - - 84 ) + - CAST ( NULL AS INTEGER ) + + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT - 24 * + 14 + COALESCE ( - - 71, - COUNT( * ) * - 87, 75 ) + ( + 87 ) col1
----
-178

skipif mysql # not compatible
query I rowsort label-5251
SELECT - 24 * + 14 + COALESCE ( - - 71, - COUNT ( * ) * - 87, 75 ) + ( + 87 ) col1
----
-178

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5252
SELECT ALL + 50 DIV 99 + - 93, 32 * COUNT( * ) + 20 + - + 26 * - MAX( ALL 14 ) * + 38 AS col2
----
-93
13884

skipif mysql # not compatible
query II rowsort label-5252
SELECT ALL + 50 / 99 + - 93, 32 * COUNT ( * ) + 20 + - + 26 * - MAX ( ALL 14 ) * + 38 AS col2
----
-93
13884

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL + ( + ( + 1 ) ) * + COUNT( * ) * 44 * + - COUNT( * ) + + + 83 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + ( + ( + 1 ) ) * + COUNT ( * ) * 44 * + - COUNT ( * ) + + + 83 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT - - COUNT( * ) * - COUNT( * ) DIV + - 89 * - 80
----
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT - - COUNT ( * ) * - COUNT ( * ) / + - 89 * - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT + - COUNT( * ) * + 15 * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT + - COUNT ( * ) * + 15 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5256
SELECT ALL - COUNT( * ) DIV 65 + + 51 * + 3 AS col1
----
153

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL - COUNT ( * ) / 65 + + 51 * + 3 AS col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - + ( - - 25 ) * + - NULLIF ( 53, + - 86 * + - COUNT( * ) )
----
1325

skipif mysql # not compatible
query I rowsort label-5257
SELECT - + ( - - 25 ) * + - NULLIF ( 53, + - 86 * + - COUNT ( * ) )
----
1325

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT DISTINCT 91 DIV + + ( - NULLIF ( + 77, + 88 ) ) + + 6 + - 93 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT 91 / + + ( - NULLIF ( + 77, + 88 ) ) + + 6 + - 93 AS col2
----
-88

query I rowsort
SELECT ALL + 88 + - 47 AS col0
----
41

query I rowsort
SELECT + 32 * + - ( 84 ) + - 95 AS col0
----
-2783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT DISTINCT + + CAST( 26 AS SIGNED ) + + - 91
----
-65

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + + CAST ( 26 AS INTEGER ) + + - 91
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL - - 36 + - + COUNT( * ) - 97 + - - 81 - + 32 - - 98 + + 81 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - - 36 + - + COUNT ( * ) - 97 + - - 81 - + 32 - - 98 + + 81 AS col0
----
166

query I rowsort
SELECT ALL 6 - + 66 - - 80 + - 90 AS col1
----
-70

query II rowsort
SELECT 96 * - 6 * - 21 AS col1, 42 AS col2
----
12096
42

query I rowsort
SELECT DISTINCT - CASE + 39 WHEN 63 THEN - + 80 / + 62 * 57 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5266
SELECT ALL NULLIF ( + + COUNT( * ), - 58 * - ( - - 35 ) + - - COUNT( - + 15 ) + + 58 + - 70 * 36 * + + 8 * + ( - 45 ) ) * + NULLIF ( + + CAST( + 12 AS SIGNED ), COUNT( * ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL NULLIF ( + + COUNT ( * ), - 58 * - ( - - 35 ) + - - COUNT ( - + 15 ) + + 58 + - 70 * 36 * + + 8 * + ( - 45 ) ) * + NULLIF ( + + CAST ( + 12 AS INTEGER ), COUNT ( * ) ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5267
SELECT CAST( NULL AS SIGNED ) / + MIN( + CAST( NULL AS SIGNED ) ) AS col1, COUNT( DISTINCT + 94 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5267
SELECT CAST ( NULL AS INTEGER ) / + MIN ( + CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( DISTINCT + 94 ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT ALL MIN( ALL - 26 ) * 92 * - CAST( + 70 AS SIGNED ) * ( 59 ) + + 41 AS col0
----
9879001

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL MIN ( ALL - 26 ) * 92 * - CAST ( + 70 AS INTEGER ) * ( 59 ) + + 41 AS col0
----
9879001

query I rowsort
SELECT 96 + - 48
----
48

query I rowsort
SELECT 6 + + - 47 - - 18 * - 33 * - 55 + - - 25 col2
----
32654

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT 12 DIV - + 15
----
0

skipif mysql # not compatible
query I rowsort label-5271
SELECT 12 / - + 15
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5272
SELECT 57 * - - COUNT( * ) DIV 72 * - + 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5272
SELECT 57 * - - COUNT ( * ) / 72 * - + 6 AS col1
----
0

query I rowsort
SELECT 31 - - 94 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ( 19 ) + + 23 + + + CASE - ( - 82 ) WHEN + 38 THEN - + 81 - + 96 / - 22 WHEN + 31 * - - 41 + ( + 30 ) + - + 13 / + COUNT( * ) * - - 47 - 60 + + 48 * - 8 + COUNT( * ) * - - 74 * - + 78 * 6 THEN NULL END * - ( 8 + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5274
SELECT ( 19 ) + + 23 + + + CASE - ( - 82 ) WHEN + 38 THEN - + 81 - + 96 / - 22 WHEN + 31 * - - 41 + ( + 30 ) + - + 13 / + COUNT ( * ) * - - 47 - 60 + + 48 * - 8 + COUNT ( * ) * - - 74 * - + 78 * 6 THEN NULL END * - ( 8 + 44 )
----
NULL

query I rowsort
SELECT ALL + 77 * + - 30 * - 26 AS col1
----
60060

query I rowsort
SELECT ALL ( - 78 ) + 52
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5277
SELECT ALL 8 + + MIN( ALL - + CAST( NULL AS DECIMAL ) ) * + + 88 * + MAX( - 31 ) * 87 - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL 8 + + MIN ( ALL - + CAST ( NULL AS REAL ) ) * + + 88 * + MAX ( - 31 ) * 87 - + 2
----
NULL

query I rowsort
SELECT DISTINCT + 59 * + - 23 col0
----
-1357

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT ALL - 4 + - + 1 + 64 + 4 * + 15 DIV - 94 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL - 4 + - + 1 + 64 + 4 * + 15 / - 94 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT + + MAX( ALL - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5280
SELECT + + MAX ( ALL - 32 )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5281
SELECT ALL - + ( + - 99 ) + - - 16, - COALESCE ( + 92, - + 32 DIV COUNT( * ) ) AS col0
----
115
-92

skipif mysql # not compatible
query II rowsort label-5281
SELECT ALL - + ( + - 99 ) + - - 16, - COALESCE ( + 92, - + 32 / COUNT ( * ) ) AS col0
----
115
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT + NULLIF ( + 25, - + 50 + SUM( DISTINCT + 61 ) )
----
25

skipif mysql # not compatible
query I rowsort label-5282
SELECT + NULLIF ( + 25, - + 50 + SUM ( DISTINCT + 61 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + 30 * + 74 + + + COUNT( * ) + - + 64 col2
----
2157

skipif mysql # not compatible
query I rowsort label-5283
SELECT + 30 * + 74 + + + COUNT ( * ) + - + 64 col2
----
2157

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL - NULLIF ( + + COUNT( * ), 36 * - - ( - - 37 ) - 76 + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL - NULLIF ( + + COUNT ( * ), 36 * - - ( - - 37 ) - 76 + 71 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT COUNT( * ) * + COUNT( * ) - - + MAX( - - ( - + 64 ) ) * + 74 AS col1
----
-4735

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) - - + MAX ( - - ( - + 64 ) ) * + 74 AS col1
----
-4735

query I rowsort
SELECT ALL + 17 + 37 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT + CAST( CAST( - 65 AS SIGNED ) AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-5287
SELECT + CAST ( CAST ( - 65 AS INTEGER ) AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5288
SELECT + 3, + 73 + + - 50 * - NULLIF ( + - 73, 50 * + 56 - + COUNT( * ) + + - 60 ) AS col1, - - 35 DIV + + 93 + - - 96 + MIN( DISTINCT 56 ) AS col2
----
3
-3577
152

skipif mysql # not compatible
query III rowsort label-5288
SELECT + 3, + 73 + + - 50 * - NULLIF ( + - 73, 50 * + 56 - + COUNT ( * ) + + - 60 ) AS col1, - - 35 / + + 93 + - - 96 + MIN ( DISTINCT 56 ) AS col2
----
3
-3577
152

query I rowsort
SELECT 88 + - 29
----
59

query I rowsort
SELECT ALL + ( + 22 ) - - ( - + 14 ) AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL - + CAST( NULL AS SIGNED ) / - 49 * - COUNT( * ) * + 17 * + - 89 / - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - + CAST ( NULL AS INTEGER ) / - 49 * - COUNT ( * ) * + 17 * + - 89 / - 44
----
NULL

query I rowsort
SELECT - 51 + - 85
----
-136

query I rowsort
SELECT COALESCE ( 70, 78 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + 60 + + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5294
SELECT + 60 + + COUNT ( * ) AS col2
----
61

query I rowsort
SELECT + 13 * 78 + + - 98 * - - 88 * + 50 + 14 AS col0
----
-430172

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT + COUNT( * ) * - - 35 + - - 69 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-5296
SELECT + COUNT ( * ) * - - 35 + - - 69 AS col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5297
SELECT NULLIF ( + 30, + 91 ) * CAST( NULL AS SIGNED ) + - - 69 * + MAX( - 51 ) * - 9 + - + SUM( ALL + + 68 ) - + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT NULLIF ( + 30, + 91 ) * CAST ( NULL AS INTEGER ) + - - 69 * + MAX ( - 51 ) * - 9 + - + SUM ( ALL + + 68 ) - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 16 + - + CASE 83 WHEN - 1 THEN 63 END
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 83, + ( NULLIF ( - + 36, - 34 * ( + - 82 ) ) ) + - ( + + 35 ), 42 - + 36 ) * 54
----
-4482

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT - 41 * - + 50 + - 56 + 22 + + 72 * - COUNT( * ) * - - ( 81 )
----
-3816

skipif mysql # not compatible
query I rowsort label-5300
SELECT - 41 * - + 50 + - 56 + 22 + + 72 * - COUNT ( * ) * - - ( 81 )
----
-3816

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL SUM( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL SUM ( - 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5302
SELECT 3 * + 42 AS col2, 94 - + CAST( - 46 AS SIGNED ) col0
----
126
140

skipif mysql # not compatible
query II rowsort label-5302
SELECT 3 * + 42 AS col2, 94 - + CAST ( - 46 AS INTEGER ) col0
----
126
140

query II rowsort
SELECT 51 + + + 16 col1, + 26
----
67
26

query I rowsort
SELECT 22 + - - 17
----
39

query I rowsort
SELECT 31 + - ( 25 ) * 17 AS col0
----
-394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5306
SELECT ALL 38 * 30 * - MIN( ALL CAST( NULL AS SIGNED ) ) AS col2, + 63 col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-5306
SELECT ALL 38 * 30 * - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2, + 63 col1
----
NULL
63

query I rowsort
SELECT DISTINCT 55 + - 61 + + 52 + + + CASE 68 WHEN - 76 THEN + 22 + - 80 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 67 + + 9 * + 8 AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT COUNT( * ) + - 50 + - - 71
----
22

skipif mysql # not compatible
query I rowsort label-5309
SELECT COUNT ( * ) + - 50 + - - 71
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5310
SELECT 31 * - 1 DIV 96 * COUNT( ALL + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-5310
SELECT 31 * - 1 / 96 * COUNT ( ALL + 22 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT 66 + 28 DIV - 80 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5311
SELECT 66 + 28 / - 80 AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT 72 / CAST( NULL AS SIGNED ) * - - 18 * - ( + - 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT 72 / CAST ( NULL AS INTEGER ) * - - 18 * - ( + - 41 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5313
SELECT ( + 76 ) + - 47 DIV + 85, 37 * + 38 * ( - 83 ) AS col0
----
76
-116698

skipif mysql # not compatible
query II rowsort label-5313
SELECT ( + 76 ) + - 47 / + 85, 37 * + 38 * ( - 83 ) AS col0
----
76
-116698

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT MAX( ALL + - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-5314
SELECT MAX ( ALL + - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT - - COUNT( + - 6 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5315
SELECT - - COUNT ( + - 6 ) col0
----
1

query I rowsort
SELECT ALL - 13 + + 32
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5317
SELECT ALL + COUNT( ALL - 35 ) + + CAST( NULL AS SIGNED ) - - 28 * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL + COUNT ( ALL - 35 ) + + CAST ( NULL AS INTEGER ) - - 28 * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT + 33 * - MAX( + + ( + ( + 41 ) ) ) * - 23
----
31119

skipif mysql # not compatible
query I rowsort label-5318
SELECT + 33 * - MAX ( + + ( + ( + 41 ) ) ) * - 23
----
31119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5319
SELECT CAST( NULL AS SIGNED ) * + 63 AS col0, 33 + 21 AS col0
----
NULL
54

skipif mysql # not compatible
query II rowsort label-5319
SELECT CAST ( NULL AS INTEGER ) * + 63 AS col0, 33 + 21 AS col0
----
NULL
54

query I rowsort
SELECT - 42 + + - 95
----
-137

query II rowsort
SELECT + CASE 53 WHEN + 76 THEN - 18 END + + 72 AS col0, + 53
----
NULL
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5322
SELECT ALL + - CAST( - 35 AS SIGNED ) AS col0, COUNT( - 11 ) AS col2
----
35
1

skipif mysql # not compatible
query II rowsort label-5322
SELECT ALL + - CAST ( - 35 AS INTEGER ) AS col0, COUNT ( - 11 ) AS col2
----
35
1

query I rowsort
SELECT DISTINCT - 62 * - - 41 + - + 92 - + + 55 AS col1
----
-2689

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT + MIN( ALL CASE - + ( - 47 ) WHEN 32 THEN - 97 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT + MIN ( ALL CASE - + ( - 47 ) WHEN 32 THEN - 97 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT + + 91 + + 66 * 44 * - + COUNT( * ) AS col0
----
-2813

skipif mysql # not compatible
query I rowsort label-5325
SELECT + + 91 + + 66 * 44 * - + COUNT ( * ) AS col0
----
-2813

query I rowsort
SELECT DISTINCT 70 * - 63 + + 40
----
-4370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT + + 47 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT + + 47 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL - COUNT( * ) * - + 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - COUNT ( * ) * - + 73 AS col0
----
73

query I rowsort
SELECT 25 * + - ( - 58 ) + + 97 * 24 * + 90 * - + ( + 13 )
----
-2722310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT DISTINCT + + ( + CAST( - 85 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + + ( + CAST ( - 85 AS INTEGER ) )
----
-85

query I rowsort
SELECT - 85 * + 17
----
-1445

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT - - 65 DIV + + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5332
SELECT - - 65 / + + 78 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5333
SELECT DISTINCT - + 56 DIV COUNT( * ) + - 73 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT - + 56 / COUNT ( * ) + - 73 AS col0
----
-129

query II rowsort
SELECT DISTINCT + 55 AS col2, 45
----
55
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL + MAX( + NULLIF ( + 27, 99 ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + MAX ( + NULLIF ( + 27, 99 ) ) AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT + 21 DIV NULLIF ( - 82, + 81 - 74 ) * ( - + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 21 / NULLIF ( - 82, + 81 - 74 ) * ( - + 40 )
----
0

query I rowsort
SELECT DISTINCT - 95 * - 58 + + 97
----
5607

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT - 62 DIV + 41
----
-1

skipif mysql # not compatible
query I rowsort label-5338
SELECT - 62 / + 41
----
-1

query I rowsort
SELECT DISTINCT + 31 + - 90 AS col0
----
-59

query I rowsort
SELECT ALL - 76 * NULLIF ( - 98, 75 + + - 37 )
----
7448

query I rowsort
SELECT ALL + 22 + - 73 AS col1
----
-51

query I rowsort
SELECT ALL + 49 + - 21 - 59
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT - 2 * COUNT( 93 )
----
-2

skipif mysql # not compatible
query I rowsort label-5343
SELECT - 2 * COUNT ( 93 )
----
-2

query I rowsort
SELECT ALL 14 + 30 - + + 46 + - + 71
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL - 77 * + - MIN( DISTINCT + + 26 ) AS col2
----
2002

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - 77 * + - MIN ( DISTINCT + + 26 ) AS col2
----
2002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5346
SELECT - 90 + - - 5 * + COALESCE ( - ( - 43 ), + COUNT( * ) DIV - 36 * + NULLIF ( + + 86, ( + COUNT( * ) ) ) ) * - + 14
----
-3100

skipif mysql # not compatible
query I rowsort label-5346
SELECT - 90 + - - 5 * + COALESCE ( - ( - 43 ), + COUNT ( * ) / - 36 * + NULLIF ( + + 86, ( + COUNT ( * ) ) ) ) * - + 14
----
-3100

query I rowsort
SELECT DISTINCT + 5 + - - 87 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL + 87 + 33 + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + 87 + 33 + COUNT ( * )
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT DISTINCT CASE + 40 WHEN + - 93 THEN - 58 * CASE - SUM( ALL + 80 ) WHEN CAST( - 27 AS SIGNED ) THEN 90 WHEN + - ( ( + COUNT( * ) ) ) / COALESCE ( - 5, 63, - 80 ) THEN 3 - ( + 37 ) ELSE NULL END * - 11 + - 57 + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT CASE + 40 WHEN + - 93 THEN - 58 * CASE - SUM ( ALL + 80 ) WHEN CAST ( - 27 AS INTEGER ) THEN 90 WHEN + - ( ( + COUNT ( * ) ) ) / COALESCE ( - 5, 63, - 80 ) THEN 3 - ( + 37 ) ELSE NULL END * - 11 + - 57 + + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - 30 + - 83 AS col0
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5351
SELECT ALL 70 * - - MIN( 8 ) + + + ( + CASE - 45 WHEN + - 7 THEN COUNT( 27 ) * - 32 * + - 28 * - COUNT( * ) ELSE NULL END ) + + 44 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL 70 * - - MIN ( 8 ) + + + ( + CASE - 45 WHEN + - 7 THEN COUNT ( 27 ) * - 32 * + - 28 * - COUNT ( * ) ELSE NULL END ) + + 44 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 23 - 50
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL SUM( ALL + 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL SUM ( ALL + 20 ) AS col0
----
20

query I rowsort
SELECT ALL 97 - - 18 + + + 72 AS col2
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL - COUNT( * ) * - 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - COUNT ( * ) * - 83 AS col0
----
83

query I rowsort
SELECT - ( + + 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + + ( - + 8 ) - + + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5357
SELECT + + ( - + 8 ) - + + COUNT ( * ) AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT - - CAST( - + 74 AS SIGNED ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-5358
SELECT - - CAST ( - + 74 AS INTEGER ) col0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT - - 76 DIV + 75 + + + MIN( ALL + 49 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5359
SELECT - - 76 / + 75 + + + MIN ( ALL + 49 ) AS col2
----
50

query I rowsort
SELECT DISTINCT + ( - - 95 )
----
95

query I rowsort
SELECT + NULLIF ( + - 62, 6 ) * - 81
----
5022

query I rowsort
SELECT ALL + + ( - - 33 ) AS col0
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5363
SELECT + - CAST( NULL AS DECIMAL ) * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT + - CAST ( NULL AS REAL ) * 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL - 25 * + CASE - 3 WHEN + 11 THEN + - 3 * - 83 WHEN + COUNT( * ) - 42 + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - 25 * + CASE - 3 WHEN + 11 THEN + - 3 * - 83 WHEN + COUNT ( * ) - 42 + COUNT ( * ) THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 60 AS col1, + 47 AS col1
----
60
47

query I rowsort
SELECT ALL + + ( + 97 ) AS col0
----
97

query I rowsort
SELECT + + 50 + 94 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT + CAST( - 78 AS SIGNED ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5368
SELECT + CAST ( - 78 AS INTEGER ) AS col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5369
SELECT 53 * - 91 * NULLIF ( - + 98, + + COALESCE ( - 76, + 13 * + + COUNT( * ) ) ) / + MIN( ALL 64 ) / + MAX( - 95 ) / 31 + - ( - 72 ) + - - CASE 10 WHEN + - 94 + - AVG ( DISTINCT + + 75 ) / COUNT( * ) * - ( + CASE + + 68 WHEN - - 77 THEN + SUM( 78 ) + 41 ELSE NULL END ) + 14 * + 24 THEN - 76 END + - 85 + - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT 53 * - 91 * NULLIF ( - + 98, + + COALESCE ( - 76, + 13 * + + COUNT ( * ) ) ) / + MIN ( ALL 64 ) / + MAX ( - 95 ) / 31 + - ( - 72 ) + - - CASE 10 WHEN + - 94 + - AVG ( DISTINCT + + 75 ) / COUNT ( * ) * - ( + CASE + + 68 WHEN - - 77 THEN + SUM ( 78 ) + 41 ELSE NULL END ) + 14 * + 24 THEN - 76 END + - 85 + - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 86 * + 16
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT + ( - COALESCE ( + + 49, + COUNT( * ) ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5371
SELECT + ( - COALESCE ( + + 49, + COUNT ( * ) ) ) AS col0
----
-49

query I rowsort
SELECT - ( + 88 ) * 83 + + 3 * - 85 AS col0
----
-7559

onlyif mysql # aggregate syntax: 
query II rowsort label-5373
SELECT ALL + 95 col1, - 52 + + + 83 - + + 88 - + COUNT( * ) AS col1
----
95
-58

skipif mysql # not compatible
query II rowsort label-5373
SELECT ALL + 95 col1, - 52 + + + 83 - + + 88 - + COUNT ( * ) AS col1
----
95
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT ( + 54 ) * - - 1 * + 82 * - CAST( NULL AS SIGNED ) + - + 30 + - - CAST( NULL AS SIGNED ) - + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT ( + 54 ) * - - 1 * + 82 * - CAST ( NULL AS INTEGER ) + - + 30 + - - CAST ( NULL AS INTEGER ) - + 1 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5375
SELECT ALL 12 * 65 DIV - 8 + + 93 AS col2, 79
----
-4
79

skipif mysql # not compatible
query II rowsort label-5375
SELECT ALL 12 * 65 / - 8 + + 93 AS col2, 79
----
-4
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT - ( + + ( COUNT( * ) ) ) * + + NULLIF ( - 88, - 15 / + + 95 ) * + + 65 AS col1
----
5720

skipif mysql # not compatible
query I rowsort label-5376
SELECT - ( + + ( COUNT ( * ) ) ) * + + NULLIF ( - 88, - 15 / + + 95 ) * + + 65 AS col1
----
5720

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - 49 + + + SUM( - 26 )
----
-75

skipif mysql # not compatible
query I rowsort label-5377
SELECT - 49 + + + SUM ( - 26 )
----
-75

query II rowsort
SELECT - 23 AS col0, 16 AS col2
----
-23
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5379
SELECT 66 DIV 26
----
2

skipif mysql # not compatible
query I rowsort label-5379
SELECT 66 / 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT NULLIF ( + NULLIF ( - + 40, + 91 * 88 + NULLIF ( 96, + 65 + - 99 ) ), + NULLIF ( + COUNT( * ), - - ( - 26 ) / + 37 ) ) * 39 col0
----
-1560

skipif mysql # not compatible
query I rowsort label-5380
SELECT NULLIF ( + NULLIF ( - + 40, + 91 * 88 + NULLIF ( 96, + 65 + - 99 ) ), + NULLIF ( + COUNT ( * ), - - ( - 26 ) / + 37 ) ) * 39 col0
----
-1560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT ALL - + COALESCE ( - 41, + + CAST( NULL AS SIGNED ), - 62, - CAST( 15 AS SIGNED ) ) - - - 70 - + + 6 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - + COALESCE ( - 41, + + CAST ( NULL AS INTEGER ), - 62, - CAST ( 15 AS INTEGER ) ) - - - 70 - + + 6 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL CAST( + 40 AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL CAST ( + 40 AS INTEGER ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5383
SELECT + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) * + 47 AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-5383
SELECT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * + 47 AS col2
----
NULL
47

query I rowsort
SELECT + 64 + - 21 AS col2
----
43

query I rowsort
SELECT - 4 * - - ( + 97 ) AS col2
----
-388

query II rowsort
SELECT - 54 col2, + 85 + 52
----
-54
137

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT ALL 66, 17 * + COUNT( * ) * - COUNT( * ) AS col2
----
66
-17

skipif mysql # not compatible
query II rowsort label-5387
SELECT ALL 66, 17 * + COUNT ( * ) * - COUNT ( * ) AS col2
----
66
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5388
SELECT 16 + - 81 + - 32 + + 85 + - 88 * - 89 AS col0, + ( CAST( + 0 AS SIGNED ) )
----
7820
0

skipif mysql # not compatible
query II rowsort label-5388
SELECT 16 + - 81 + - 32 + + 85 + - 88 * - 89 AS col0, + ( CAST ( + 0 AS INTEGER ) )
----
7820
0

query I rowsort
SELECT ALL + - 15 * + 46 * 61 AS col0
----
-42090

query I rowsort
SELECT ALL - ( - ( + 47 ) ) AS col1
----
47

query II rowsort
SELECT ALL 16 AS col0, - 85
----
16
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT ( + + 28 ) DIV COUNT( * ) * + - 46 * - + 91 * - 20 * + COUNT( * ) + + + 0 + + + 35 + + + ( COALESCE ( - MIN( 42 ), 3 * - 44, - 73 ) ) - COALESCE ( 42, 63 )
----
-2344209

skipif mysql # not compatible
query I rowsort label-5392
SELECT ( + + 28 ) / COUNT ( * ) * + - 46 * - + 91 * - 20 * + COUNT ( * ) + + + 0 + + + 35 + + + ( COALESCE ( - MIN ( 42 ), 3 * - 44, - 73 ) ) - COALESCE ( 42, 63 )
----
-2344209

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL 6 + MIN( + 28 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL 6 + MIN ( + 28 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT ALL - COUNT( * ) AS col1, 96 AS col0
----
-1
96

skipif mysql # not compatible
query II rowsort label-5394
SELECT ALL - COUNT ( * ) AS col1, 96 AS col0
----
-1
96

onlyif mysql # DIV for integer division: 
query II rowsort label-5395
SELECT + 50 AS col0, 64 DIV + 77 col0
----
50
0

skipif mysql # not compatible
query II rowsort label-5395
SELECT + 50 AS col0, 64 / + 77 col0
----
50
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT - ( SUM( ALL - 54 ) ) * + + 72 * - 68 + - - 83 + - 84 * - - 93 + + 10, COUNT( * ) AS col0
----
-272103
1

skipif mysql # not compatible
query II rowsort label-5396
SELECT - ( SUM ( ALL - 54 ) ) * + + 72 * - 68 + - - 83 + - 84 * - - 93 + + 10, COUNT ( * ) AS col0
----
-272103
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5397
SELECT + + CAST( NULL AS SIGNED ) AS col2, ( 91 ) AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-5397
SELECT + + CAST ( NULL AS INTEGER ) AS col2, ( 91 ) AS col1
----
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5398
SELECT - - COUNT( * ) * + MAX( - + 33 ) + - - 37 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT - - COUNT ( * ) * + MAX ( - + 33 ) + - - 37 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT COUNT( * ) * - - 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5399
SELECT COUNT ( * ) * - - 30 AS col0
----
30

query II rowsort
SELECT 51 * - 34 AS col2, 15 col1
----
-1734
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( ALL + 58 ) + + ( CASE - SUM( 13 ) WHEN 13 THEN - - 28 ELSE + 29 END ) / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( ALL + 58 ) + + ( CASE - SUM ( 13 ) WHEN 13 THEN - - 28 ELSE + 29 END ) / - 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT ALL CAST( NULL AS SIGNED ) + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL CAST ( NULL AS INTEGER ) + - 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL + COUNT( * ) + + COUNT( * ) * - + 44 * - 93
----
4093

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * - + 44 * - 93
----
4093

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5404
SELECT DISTINCT 80 + + + 92 AS col1, 62 - CAST( - + ( + 76 ) AS SIGNED ) + COALESCE ( + + CAST( NULL AS SIGNED ), + 51 ) AS col0
----
172
189

skipif mysql # not compatible
query II rowsort label-5404
SELECT DISTINCT 80 + + + 92 AS col1, 62 - CAST ( - + ( + 76 ) AS INTEGER ) + COALESCE ( + + CAST ( NULL AS INTEGER ), + 51 ) AS col0
----
172
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT ALL 15 + - + CAST( 21 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL 15 + - + CAST ( 21 AS INTEGER ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT 44 + MIN( ALL 67 ) + + 54 AS col0
----
165

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT 44 + MIN ( ALL 67 ) + + 54 AS col0
----
165

query I rowsort
SELECT ALL 79 - 29 * + 71 * - - ( 56 ) * - - 80
----
-9224241

query I rowsort
SELECT DISTINCT ( - - 59 ) * - 23 AS col0
----
-1357

query I rowsort
SELECT ALL + 87 - + 88 * 3 * - 99 * + - 15 * + 45 col1
----
-17641713

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT - 35 - - 79 DIV - - 46 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5410
SELECT - 35 - - 79 / - - 46 AS col0
----
-34

query I rowsort
SELECT DISTINCT + NULLIF ( + 79, AVG ( 69 ) ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - 88 * - 26 + COUNT( * ) AS col0
----
2289

skipif mysql # not compatible
query I rowsort label-5412
SELECT - 88 * - 26 + COUNT ( * ) AS col0
----
2289

query I rowsort
SELECT 52 * - + 26
----
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - + SUM( - 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5414
SELECT - + SUM ( - 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT 0 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5415
SELECT 0 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT - ( + 67 ) * COUNT( + - CASE 3 WHEN - 96 - + CAST( NULL AS SIGNED ) THEN - 40 WHEN 4 THEN NULL ELSE NULL END ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5416
SELECT - ( + 67 ) * COUNT ( + - CASE 3 WHEN - 96 - + CAST ( NULL AS INTEGER ) THEN - 40 WHEN 4 THEN NULL ELSE NULL END ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5417
SELECT DISTINCT + 47 * 83, MIN( + 24 ) AS col0
----
3901
24

skipif mysql # not compatible
query II rowsort label-5417
SELECT DISTINCT + 47 * 83, MIN ( + 24 ) AS col0
----
3901
24

query I rowsort
SELECT ALL + - 12 + - 33
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5419
SELECT DISTINCT + 97 + COUNT( * ) AS col2, + ( + - 41 ) * - + ( - - 87 ) + + - MIN( + + NULLIF ( + 66, + + 84 ) ) AS col0
----
98
3501

skipif mysql # not compatible
query II rowsort label-5419
SELECT DISTINCT + 97 + COUNT ( * ) AS col2, + ( + - 41 ) * - + ( - - 87 ) + + - MIN ( + + NULLIF ( + 66, + + 84 ) ) AS col0
----
98
3501

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL + - COUNT( * ) + 59 * + 65
----
3834

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + - COUNT ( * ) + 59 * + 65
----
3834

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5421
SELECT - - MAX( + + 25 ) DIV + 51 * + + 7 * - 98 - MIN( DISTINCT + 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5421
SELECT - - MAX ( + + 25 ) / + 51 * + + 7 * - 98 - MIN ( DISTINCT + 75 ) AS col2
----
-75

query I rowsort
SELECT DISTINCT - ( + 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL - MIN( DISTINCT + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - MIN ( DISTINCT + 82 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT - 96 * + ( + 8 ) * + ( + - 7 ) * - + COUNT( * ) * - 44 + + 79 + 83 + + - 35 AS col2
----
236671

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT - 96 * + ( + 8 ) * + ( + - 7 ) * - + COUNT ( * ) * - 44 + + 79 + 83 + + - 35 AS col2
----
236671

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT COUNT( * ) AS col2, 25 AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-5425
SELECT COUNT ( * ) AS col2, 25 AS col1
----
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL 24 * + NULLIF ( + 41, + - NULLIF ( + 91, - 67 + + 92 + - 89 * 64 ) ) + COALESCE ( + 43, + 81 ) + - - ( + CASE + 91 WHEN - 36 THEN COUNT( * ) END ) * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL 24 * + NULLIF ( + 41, + - NULLIF ( + 91, - 67 + + 92 + - 89 * 64 ) ) + COALESCE ( + 43, + 81 ) + - - ( + CASE + 91 WHEN - 36 THEN COUNT ( * ) END ) * 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT COUNT( * ) - 43 + + 66 * - 19
----
-1296

skipif mysql # not compatible
query I rowsort label-5427
SELECT COUNT ( * ) - 43 + + 66 * - 19
----
-1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5428
SELECT DISTINCT + COUNT( * ) DIV - CAST( + SUM( ALL - - 10 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT + COUNT ( * ) / - CAST ( + SUM ( ALL - - 10 ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT 18 * + 7 - 62 DIV + 32 col2
----
125

skipif mysql # not compatible
query I rowsort label-5429
SELECT 18 * + 7 - 62 / + 32 col2
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5430
SELECT 31 + - + COUNT( * ) DIV + 92 - 27
----
4

skipif mysql # not compatible
query I rowsort label-5430
SELECT 31 + - + COUNT ( * ) / + 92 - 27
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT MIN( DISTINCT - - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5431
SELECT MIN ( DISTINCT - - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT MIN( DISTINCT + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-5432
SELECT MIN ( DISTINCT + 53 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5433
SELECT + COUNT( * ) AS col1, - 80
----
1
-80

skipif mysql # not compatible
query II rowsort label-5433
SELECT + COUNT ( * ) AS col1, - 80
----
1
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT COUNT( DISTINCT - - 68 ) * 13 + + 90 * + - 14
----
-1247

skipif mysql # not compatible
query I rowsort label-5434
SELECT COUNT ( DISTINCT - - 68 ) * 13 + + 90 * + - 14
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL 25 * - ( - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL 25 * - ( - COUNT ( * ) )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5436
SELECT + 31 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT + 31 / - 82 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5437
SELECT ALL - 83 DIV 53 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - 83 / 53 / 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5438
SELECT ALL + 20 AS col1, ( - NULLIF ( 57, - - 0 * + 12 * + - CAST( NULL AS SIGNED ) + + AVG ( ALL 23 ) * - 29 * - COUNT( * ) + - + 66 * - 86 ) ) + - 66 + - - 82 * - 21 * COUNT( * )
----
20
-1845

skipif mysql # not compatible
query II rowsort label-5438
SELECT ALL + 20 AS col1, ( - NULLIF ( 57, - - 0 * + 12 * + - CAST ( NULL AS INTEGER ) + + AVG ( ALL 23 ) * - 29 * - COUNT ( * ) + - + 66 * - 86 ) ) + - 66 + - - 82 * - 21 * COUNT ( * )
----
20
-1845

onlyif mysql # aggregate syntax: 
query II rowsort label-5439
SELECT + ( + 84 ) + 81, - MAX( + 91 ) col1
----
165
-91

skipif mysql # not compatible
query II rowsort label-5439
SELECT + ( + 84 ) + 81, - MAX ( + 91 ) col1
----
165
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT MIN( + 31 ) * + COUNT( * ) + + - 95 * 92 AS col1
----
-8709

skipif mysql # not compatible
query I rowsort label-5440
SELECT MIN ( + 31 ) * + COUNT ( * ) + + - 95 * 92 AS col1
----
-8709

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT + NULLIF ( 78, + COUNT( * ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5441
SELECT + NULLIF ( 78, + COUNT ( * ) ) AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5442
SELECT + - MAX( - 41 ) * - + ( + - COUNT( * ) ) * - 31 + + + COALESCE ( 53, + 64 ) DIV 79 AS col2
----
-1271

skipif mysql # not compatible
query I rowsort label-5442
SELECT + - MAX ( - 41 ) * - + ( + - COUNT ( * ) ) * - 31 + + + COALESCE ( 53, + 64 ) / 79 AS col2
----
-1271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5443
SELECT ALL 25 * - 14 * - 80 AS col2, - 41 - NULLIF ( - + 41, COUNT( * ) ) + - COUNT( 27 ) + - - CAST( NULL AS SIGNED )
----
28000
NULL

skipif mysql # not compatible
query II rowsort label-5443
SELECT ALL 25 * - 14 * - 80 AS col2, - 41 - NULLIF ( - + 41, COUNT ( * ) ) + - COUNT ( 27 ) + - - CAST ( NULL AS INTEGER )
----
28000
NULL

query I rowsort
SELECT DISTINCT + + 6 * + + NULLIF ( 48, - - 61 )
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL + COUNT( * ) + + + 61 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + COUNT ( * ) + + + 61 AS col1
----
62

query I rowsort
SELECT + - 14 * + + 9 col1
----
-126

query I rowsort
SELECT ALL 83 * 97
----
8051

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT + 22 DIV - 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5448
SELECT + 22 / - 40 AS col2
----
0

query II rowsort
SELECT 96 AS col1, - 90 * + + 15 + + 62 AS col0
----
96
-1288

query I rowsort
SELECT + 79 * + 87
----
6873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5451
SELECT + + 37 / 99 - + - MIN( + 83 ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT + + 37 / 99 - + - MIN ( + 83 ) / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - + COUNT( * ) + - - MIN( - + COALESCE ( + - 47, + 42 ) )
----
46

skipif mysql # not compatible
query I rowsort label-5452
SELECT - + COUNT ( * ) + - - MIN ( - + COALESCE ( + - 47, + 42 ) )
----
46

query I rowsort
SELECT DISTINCT + 26 + - + 1
----
25

query II rowsort
SELECT ALL + 28, - ( + 83 ) AS col0
----
28
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5455
SELECT - - 15 AS col0, 2 * - + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) + + ( - 83 ) * + 82 / - - 69 - - 21 AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-5455
SELECT - - 15 AS col0, 2 * - + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) + + ( - 83 ) * + 82 / - - 69 - - 21 AS col1
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ALL - - MIN( ALL + 53 ) * + MAX( + + 23 ) * + 72
----
87768

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - - MIN ( ALL + 53 ) * + MAX ( + + 23 ) * + 72
----
87768

query I rowsort
SELECT DISTINCT 94 + 91
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-5458
SELECT ALL - 86 - 37, + 20 - + + SUM( DISTINCT + + NULLIF ( - - 73, - - 77 + - 16 ) ) + + 73 AS col1
----
-123
20

skipif mysql # not compatible
query II rowsort label-5458
SELECT ALL - 86 - 37, + 20 - + + SUM ( DISTINCT + + NULLIF ( - - 73, - - 77 + - 16 ) ) + + 73 AS col1
----
-123
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL CASE + - ( - 79 ) WHEN - + COUNT( * ) + - - 60 THEN + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL CASE + - ( - 79 ) WHEN - + COUNT ( * ) + - - 60 THEN + 86 END
----
NULL

query I rowsort
SELECT + ( - 42 ) AS col1
----
-42

query I rowsort
SELECT ( + 46 ) * - 1 + - 16 + ( 28 )
----
-34

onlyif mysql # DIV for integer division: 
query II rowsort label-5462
SELECT ALL 88 DIV 13 - - 37 * - 33 * - 99 AS col0, 0 AS col0
----
120885
0

skipif mysql # not compatible
query II rowsort label-5462
SELECT ALL 88 / 13 - - 37 * - 33 * - 99 AS col0, 0 AS col0
----
120885
0

query II rowsort
SELECT ALL + ( + 73 ), 70 * NULLIF ( - + 99, 18 ) AS col1
----
73
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT - CASE - 58 WHEN 7 * 42 * - 42 THEN NULL WHEN NULLIF ( - 12, + COUNT( * ) ) * 80 / + 1 THEN - AVG ( 11 ) ELSE NULL END * 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT - CASE - 58 WHEN 7 * 42 * - 42 THEN NULL WHEN NULLIF ( - 12, + COUNT ( * ) ) * 80 / + 1 THEN - AVG ( 11 ) ELSE NULL END * 39 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5465
SELECT ( - - 48 ) AS col0, + 45 DIV + 16 + + + 4 AS col2
----
48
6

skipif mysql # not compatible
query II rowsort label-5465
SELECT ( - - 48 ) AS col0, + 45 / + 16 + + + 4 AS col2
----
48
6

query I rowsort
SELECT ALL + 65 * - 53 - 78 AS col2
----
-3523

query I rowsort
SELECT DISTINCT + COALESCE ( - + 36, + - 74 ) AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT - 90 * 69 DIV - 57 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-5468
SELECT - 90 * 69 / - 57 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL - 96 * COUNT( * ) * + + 13 * + 85
----
-106080

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - 96 * COUNT ( * ) * + + 13 * + 85
----
-106080

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT COALESCE ( - - NULLIF ( - 44, - 7 * - + 98 + - + ( - - COUNT( * ) ) ), + + 65 + - 54 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-5470
SELECT COALESCE ( - - NULLIF ( - 44, - 7 * - + 98 + - + ( - - COUNT ( * ) ) ), + + 65 + - 54 ) AS col2
----
-44

query II rowsort
SELECT ALL + ( - NULLIF ( + 13, - 22 ) ), 24 col0
----
-13
24

query I rowsort
SELECT DISTINCT - 70 * - - 12
----
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT - 54 * 0 * - 70 * + CAST( + + 51 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5473
SELECT - 54 * 0 * - 70 * + CAST ( + + 51 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT + ( - 32 ) * + 35 - + ( - NULLIF ( 78, COUNT( * ) ) ) + 27 * + + MAX( 72 )
----
902

skipif mysql # not compatible
query I rowsort label-5474
SELECT + ( - 32 ) * + 35 - + ( - NULLIF ( 78, COUNT ( * ) ) ) + 27 * + + MAX ( 72 )
----
902

query I rowsort
SELECT DISTINCT + - ( + 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL - 98 * - + 76 * + SUM( 13 ) + - 59 AS col2
----
96765

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - 98 * - + 76 * + SUM ( 13 ) + - 59 AS col2
----
96765

query I rowsort
SELECT - 84 - 19 AS col1
----
-103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5478
SELECT - CASE 45 WHEN - + 55 THEN + CAST( NULL AS DECIMAL ) * 43 ELSE NULL END * MAX( ( + CASE 77 WHEN - ( - + ( - 81 ) ) * + 45 THEN NULL ELSE - 41 * - 90 + - 43 * 37 + 52 END ) ) * + 93 * - 46 * 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT - CASE 45 WHEN - + 55 THEN + CAST ( NULL AS REAL ) * 43 ELSE NULL END * MAX ( ( + CASE 77 WHEN - ( - + ( - 81 ) ) * + 45 THEN NULL ELSE - 41 * - 90 + - 43 * 37 + 52 END ) ) * + 93 * - 46 * 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5479
SELECT ALL ( + 12 ) DIV + 32 + - - 28 + - 67 AS col2, COUNT( * ) AS col1
----
-39
1

skipif mysql # not compatible
query II rowsort label-5479
SELECT ALL ( + 12 ) / + 32 + - - 28 + - 67 AS col2, COUNT ( * ) AS col1
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT ALL + 5 * COALESCE ( + 28, - + 2 ) - + 1 * + CAST( - COUNT( * ) AS SIGNED ) * - 44 + + 2 + + 2 + + + CAST( NULL AS SIGNED ) + - + 67 / + + CASE + 41 WHEN 30 * - 86 + + - 17 * - MAX( DISTINCT - 26 ) THEN - + 2 ELSE 16 - - 46 * + 76 + NULLIF ( + 4, - COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + 5 * COALESCE ( + 28, - + 2 ) - + 1 * + CAST ( - COUNT ( * ) AS INTEGER ) * - 44 + + 2 + + 2 + + + CAST ( NULL AS INTEGER ) + - + 67 / + + CASE + 41 WHEN 30 * - 86 + + - 17 * - MAX ( DISTINCT - 26 ) THEN - + 2 ELSE 16 - - 46 * + 76 + NULLIF ( + 4, - COUNT ( * ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5481
SELECT ALL - - COUNT( * ) * + 64 - + 30 DIV - 80 * + 66 + + 22 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL - - COUNT ( * ) * + 64 - + 30 / - 80 * + 66 + + 22 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT - + MAX( - 13 ) + - 94 col1
----
-81

skipif mysql # not compatible
query I rowsort label-5482
SELECT - + MAX ( - 13 ) + - 94 col1
----
-81

query I rowsort
SELECT + + 77 - 65
----
12

query I rowsort
SELECT - 99 * - + 80 + 6 AS col2
----
7926

query I rowsort
SELECT + - 2 * - 28
----
56

query I rowsort
SELECT - - ( NULLIF ( - 38, - 75 ) ) AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5487
SELECT + 13 + + 82, ( + CAST( NULL AS SIGNED ) ) + + 42 AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-5487
SELECT + 13 + + 82, ( + CAST ( NULL AS INTEGER ) ) + + 42 AS col0
----
95
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5488
SELECT ALL - + COUNT( * ) * - + CAST( 39 AS SIGNED ) * + 21 - - 81 DIV - + 81 + + 29 AS col1, + 28
----
847
28

skipif mysql # not compatible
query II rowsort label-5488
SELECT ALL - + COUNT ( * ) * - + CAST ( 39 AS INTEGER ) * + 21 - - 81 / - + 81 + + 29 AS col1, + 28
----
847
28

query I rowsort
SELECT NULLIF ( + - 96, - 15 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + 27 + - MIN( 90 ) * + + 95
----
-8523

skipif mysql # not compatible
query I rowsort label-5490
SELECT + 27 + - MIN ( 90 ) * + + 95
----
-8523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5491
SELECT DISTINCT - 3 * - COUNT( * ) * 48 * - - 6 * CAST( + - 91 AS SIGNED )
----
-78624

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT - 3 * - COUNT ( * ) * 48 * - - 6 * CAST ( + - 91 AS INTEGER )
----
-78624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL 98 - + - 18 + CAST( - 41 AS SIGNED ) + + 75 * 72 + + + ( - 37 ) - - - COUNT( 36 ) * COUNT( * )
----
5437

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL 98 - + - 18 + CAST ( - 41 AS INTEGER ) + + 75 * 72 + + + ( - 37 ) - - - COUNT ( 36 ) * COUNT ( * )
----
5437

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT DISTINCT COUNT( * ) - - 94 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT COUNT ( * ) - - 94 AS col0
----
95

query II rowsort
SELECT 58 AS col0, 59 + + 70 AS col0
----
58
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT + 56 + + CAST( + 59 AS SIGNED ) + + 38 + 36 * + 92
----
3465

skipif mysql # not compatible
query I rowsort label-5495
SELECT + 56 + + CAST ( + 59 AS INTEGER ) + + 38 + 36 * + 92
----
3465

query I rowsort
SELECT + 68 * + + 28 AS col1
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT - MAX( - 23 ) * ( + MIN( DISTINCT + 56 ) ) + 71 AS col2
----
1359

skipif mysql # not compatible
query I rowsort label-5497
SELECT - MAX ( - 23 ) * ( + MIN ( DISTINCT + 56 ) ) + 71 AS col2
----
1359

query I rowsort
SELECT + 86 - + 99 col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5499
SELECT - 94 AS col0, + 21 + - - CAST( NULL AS SIGNED ) + + 40 - + - 10 AS col0
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-5499
SELECT - 94 AS col0, + 21 + - - CAST ( NULL AS INTEGER ) + + 40 - + - 10 AS col0
----
-94
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5500
SELECT ALL - COALESCE ( + 60, - CASE - MIN( 75 ) WHEN - - 93 THEN NULL ELSE + - 14 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 76 + + + 87 - 98 * + 10 + 15 * + + COUNT( * ) END * + - COUNT( * ), 65 - + + 21 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL - COALESCE ( + 60, - CASE - MIN ( 75 ) WHEN - - 93 THEN NULL ELSE + - 14 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 76 + + + 87 - 98 * + 10 + 15 * + + COUNT ( * ) END * + - COUNT ( * ), 65 - + + 21 ) AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5501
SELECT MAX( + 75 ) DIV + 21
----
3

skipif mysql # not compatible
query I rowsort label-5501
SELECT MAX ( + 75 ) / + 21
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT ALL NULLIF ( - 4, + - NULLIF ( - 65, 8 ) ) DIV - - ( - + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL NULLIF ( - 4, + - NULLIF ( - 65, 8 ) ) / - - ( - + 37 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL + 55 * + - COUNT( * ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + 55 * + - COUNT ( * ) col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5504
SELECT ALL - 1 * MIN( + - 25 ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - 1 * MIN ( + - 25 ) / + 70
----
0

query I rowsort
SELECT 82 - - 64 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + 96 * + 11 - - - COUNT( * ) AS col1
----
1055

skipif mysql # not compatible
query I rowsort label-5506
SELECT + 96 * + 11 - - - COUNT ( * ) AS col1
----
1055

query II rowsort
SELECT 12, + 45 AS col0
----
12
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT 65 + - - NULLIF ( 52, - ( 2 ) + + 3 - 28 * + 46 ) * + + 47 - + - 8 + - COUNT( * ) AS col2
----
2516

skipif mysql # not compatible
query I rowsort label-5508
SELECT 65 + - - NULLIF ( 52, - ( 2 ) + + 3 - 28 * + 46 ) * + + 47 - + - 8 + - COUNT ( * ) AS col2
----
2516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5509
SELECT 28 DIV - 35 - + - 36 + SUM( - + 20 ) DIV + + 31 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5509
SELECT 28 / - 35 - + - 36 + SUM ( - + 20 ) / + + 31 AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5510
SELECT DISTINCT - 83 + - - 54 + - + 80 * + COUNT( * ) + - 94 + 45, 8 + 55 + + + 88 AS col2
----
-158
151

skipif mysql # not compatible
query II rowsort label-5510
SELECT DISTINCT - 83 + - - 54 + - + 80 * + COUNT ( * ) + - 94 + 45, 8 + 55 + + + 88 AS col2
----
-158
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT 20 * NULLIF ( - MIN( DISTINCT 51 ), + COUNT( * ) + - - 53 ) AS col2
----
-1020

skipif mysql # not compatible
query I rowsort label-5511
SELECT 20 * NULLIF ( - MIN ( DISTINCT 51 ), + COUNT ( * ) + - - 53 ) AS col2
----
-1020

query I rowsort
SELECT DISTINCT - + 6 * - 77
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT COUNT( DISTINCT - 69 ) + - + 34 * - 91
----
3095

skipif mysql # not compatible
query I rowsort label-5513
SELECT COUNT ( DISTINCT - 69 ) + - + 34 * - 91
----
3095

query II rowsort
SELECT ALL - - ( - 0 ) + - 22 AS col1, + 68 AS col0
----
-22
68

query I rowsort
SELECT + NULLIF ( 86, + 29 + + 3 ) AS col1
----
86

query I rowsort
SELECT DISTINCT + 10 * + 35
----
350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT ALL + 76 + 90 - + CAST( - 65 AS SIGNED )
----
231

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + 76 + 90 - + CAST ( - 65 AS INTEGER )
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT - 97 DIV - + 38
----
2

skipif mysql # not compatible
query I rowsort label-5518
SELECT - 97 / - + 38
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT ALL + COUNT( ALL + + 79 ) * - - 56 DIV + - NULLIF ( - 45, - AVG ( DISTINCT 12 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL + COUNT ( ALL + + 79 ) * - - 56 / + - NULLIF ( - 45, - AVG ( DISTINCT 12 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - + 34 * + ( + 22 )
----
-748

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT - 73 + - 13 DIV 20
----
-73

skipif mysql # not compatible
query I rowsort label-5521
SELECT - 73 + - 13 / 20
----
-73

query I rowsort
SELECT DISTINCT + 83 - - 88
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT 66 + + COUNT( * ) * 17 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5523
SELECT 66 + + COUNT ( * ) * 17 AS col2
----
83

query II rowsort
SELECT ALL 86, 84 + - - 64 AS col1
----
86
148

query I rowsort
SELECT 50 * 34 AS col1
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT 56 + - NULLIF ( + ( 54 ), - 48 ) * + 83 + + COUNT( * ) AS col0
----
-4425

skipif mysql # not compatible
query I rowsort label-5526
SELECT 56 + - NULLIF ( + ( 54 ), - 48 ) * + 83 + + COUNT ( * ) AS col0
----
-4425

onlyif mysql # aggregate syntax: 
query II rowsort label-5527
SELECT ALL 94 AS col1, - COALESCE ( - + MIN( + + 33 ), + + 41 * COUNT( * ) ) * 75 AS col2
----
94
2475

skipif mysql # not compatible
query II rowsort label-5527
SELECT ALL 94 AS col1, - COALESCE ( - + MIN ( + + 33 ), + + 41 * COUNT ( * ) ) * 75 AS col2
----
94
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 59 AS col2, 44
----
59
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT 33 / 19 * + + COUNT( * ) * + CASE - + 88 WHEN 60 + - - 56 - 34 THEN NULL WHEN COUNT( DISTINCT + 76 ) THEN - 17 * - + 64 * 22 + + 42 WHEN + - 24 THEN NULL ELSE NULL END * 72 + - COUNT( - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT 33 / 19 * + + COUNT ( * ) * + CASE - + 88 WHEN 60 + - - 56 - 34 THEN NULL WHEN COUNT ( DISTINCT + 76 ) THEN - 17 * - + 64 * 22 + + 42 WHEN + - 24 THEN NULL ELSE NULL END * 72 + - COUNT ( - 87 )
----
NULL

query II rowsort
SELECT + 70 AS col0, + 41
----
70
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL CASE - 2 WHEN 87 + COUNT( * ) THEN - 0 / - + 19 WHEN - + COUNT( * ) THEN + + 9 + - + 66 + + + 76 * + 89 END * - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL CASE - 2 WHEN 87 + COUNT ( * ) THEN - 0 / - + 19 WHEN - + COUNT ( * ) THEN + + 9 + - + 66 + + + 76 * + 89 END * - - 14
----
NULL

query I rowsort
SELECT DISTINCT 72 + - - ( - 66 )
----
6

query II rowsort
SELECT 78, - 62 AS col1
----
78
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5535
SELECT ALL - 21 + - + 86 + - 62 + + 30 AS col0, - SUM( CAST( NULL AS SIGNED ) ) * + 8 + - + 62 AS col2
----
-139
NULL

skipif mysql # not compatible
query II rowsort label-5535
SELECT ALL - 21 + - + 86 + - 62 + + 30 AS col0, - SUM ( CAST ( NULL AS INTEGER ) ) * + 8 + - + 62 AS col2
----
-139
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5536
SELECT DISTINCT + 63 + 10 AS col0, - COUNT( * )
----
73
-1

skipif mysql # not compatible
query II rowsort label-5536
SELECT DISTINCT + 63 + 10 AS col0, - COUNT ( * )
----
73
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT - 2 * - COUNT( * ) * - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5537
SELECT - 2 * - COUNT ( * ) * - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT ALL 71 * 63
----
4473

onlyif mysql # DIV for integer division: 
query II rowsort label-5539
SELECT + + 47, - 56 DIV 1 AS col0
----
47
-56

skipif mysql # not compatible
query II rowsort label-5539
SELECT + + 47, - 56 / 1 AS col0
----
47
-56

query II rowsort
SELECT 22 col2, 34
----
22
34

query II rowsort
SELECT + 8, + 21 - - 51 AS col1
----
8
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + + MAX( ALL - 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5542
SELECT + + MAX ( ALL - 88 ) AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT CASE - 62 WHEN + - 23 * - 25 * - - 52 * + 26 + + + CAST( NULL AS SIGNED ) THEN - 79 / - - 77 + + 76 END - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT CASE - 62 WHEN + - 23 * - 25 * - - 52 * + 26 + + + CAST ( NULL AS INTEGER ) THEN - 79 / - - 77 + + 76 END - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - + 21 AS col1, 87
----
-21
87

onlyif mysql # DIV for integer division: 
query II rowsort label-5545
SELECT DISTINCT - - 60 AS col0, 68 + 29 DIV - 23 AS col0
----
60
67

skipif mysql # not compatible
query II rowsort label-5545
SELECT DISTINCT - - 60 AS col0, 68 + 29 / - 23 AS col0
----
60
67

query II rowsort
SELECT 77 AS col1, + 8 * + 58 - 84 * + CASE + NULLIF ( 2, - + 5 ) WHEN + - 0 THEN - - 13 ELSE NULL END
----
77
NULL

query I rowsort
SELECT DISTINCT + 87 - - - 69 AS col2
----
18

query I rowsort
SELECT 39 - - 58 AS col0
----
97

query I rowsort
SELECT ALL + + 69 * - - 18 * - ( + 83 )
----
-103086

query I rowsort
SELECT - 71 * + 26 + 41
----
-1805

query I rowsort
SELECT ( - 72 ) * 65
----
-4680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5552
SELECT - 45 - - 97 DIV - SUM( - + 86 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5552
SELECT - 45 - - 97 / - SUM ( - + 86 ) AS col0
----
-44

query I rowsort
SELECT ALL + 73 * - 64 AS col2
----
-4672

query I rowsort
SELECT - 21 + + 49 * + + 43 AS col1
----
2086

query I rowsort
SELECT ALL NULLIF ( - 98, + - 97 ) AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5556
SELECT - CAST( NULL AS SIGNED ) / + CASE 37 WHEN + 51 / 4 * - 96 THEN - COUNT( * ) * + + 62 + - 86 WHEN + + 83 * - 53 * COUNT( * ) * 5 + 98 + - 68 + + MIN( DISTINCT + 4 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT - CAST ( NULL AS INTEGER ) / + CASE 37 WHEN + 51 / 4 * - 96 THEN - COUNT ( * ) * + + 62 + - 86 WHEN + + 83 * - 53 * COUNT ( * ) * 5 + 98 + - 68 + + MIN ( DISTINCT + 4 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL NULLIF ( + - MAX( - 54 ), - + 96 ) + + 99 col1
----
153

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL NULLIF ( + - MAX ( - 54 ), - + 96 ) + + 99 col1
----
153

query I rowsort
SELECT - 3 + + 91 + - ( + - 11 ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT ALL - 37 DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - 37 / 68 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5560
SELECT - 79 DIV + COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5560
SELECT - 79 / + COUNT ( * ) AS col1
----
-79

query I rowsort
SELECT + 61 * + 7
----
427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5562
SELECT - CASE - - 16 WHEN COUNT( * ) THEN NULL WHEN - + 65 THEN - + 16 + + CAST( NULL AS SIGNED ) ELSE + 12 * - + 53 + 51 END - COUNT( * ), ( 95 ) + - 51 + - 86 AS col2
----
584
-42

skipif mysql # not compatible
query II rowsort label-5562
SELECT - CASE - - 16 WHEN COUNT ( * ) THEN NULL WHEN - + 65 THEN - + 16 + + CAST ( NULL AS INTEGER ) ELSE + 12 * - + 53 + 51 END - COUNT ( * ), ( 95 ) + - 51 + - 86 AS col2
----
584
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT ALL NULLIF ( MIN( DISTINCT + - 29 ), - 32 * - - 65 / - 30 + CAST( COUNT( * ) AS SIGNED ) ) * - - 71 AS col0
----
-2059

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL NULLIF ( MIN ( DISTINCT + - 29 ), - 32 * - - 65 / - 30 + CAST ( COUNT ( * ) AS INTEGER ) ) * - - 71 AS col0
----
-2059

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT + 25 + 9 + + - SUM( + - 98 ) AS col2
----
132

skipif mysql # not compatible
query I rowsort label-5564
SELECT + 25 + 9 + + - SUM ( + - 98 ) AS col2
----
132

query I rowsort
SELECT ALL 12 * 62 + - 57
----
687

query I rowsort
SELECT COALESCE ( - + 38, - 31 ) * + 33 - - + ( 12 ) AS col2
----
-1242

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT - COUNT( * ) + + 85 AS col1, 65 AS col1
----
84
65

skipif mysql # not compatible
query II rowsort label-5567
SELECT - COUNT ( * ) + + 85 AS col1, 65 AS col1
----
84
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT 95 * ( + ( - 56 ) ) * - 47 + + ( - 90 ) + 49 * NULLIF ( - MAX( DISTINCT 22 ), - 73 * - 53 - + 51 + - ( CASE + 29 WHEN + + MAX( ALL - 73 ) THEN - COALESCE ( - 20, + - 70 / - 81 + + + SUM( DISTINCT + 59 ) ) * - + NULLIF ( - SUM( DISTINCT 98 ), - - CASE - 55 WHEN - 82 * 93 + 14 THEN NULL WHEN COUNT( * ) * 73 + 15 * + 11 THEN COALESCE ( 50, ( 22 ) + 8 ) END ) + 4 + 44 END ) + 82 ) * - 43
----
296304

skipif mysql # not compatible
query I rowsort label-5568
SELECT 95 * ( + ( - 56 ) ) * - 47 + + ( - 90 ) + 49 * NULLIF ( - MAX ( DISTINCT 22 ), - 73 * - 53 - + 51 + - ( CASE + 29 WHEN + + MAX ( ALL - 73 ) THEN - COALESCE ( - 20, + - 70 / - 81 + + + SUM ( DISTINCT + 59 ) ) * - + NULLIF ( - SUM ( DISTINCT 98 ), - - CASE - 55 WHEN - 82 * 93 + 14 THEN NULL WHEN COUNT ( * ) * 73 + 15 * + 11 THEN COALESCE ( 50, ( 22 ) + 8 ) END ) + 4 + 44 END ) + 82 ) * - 43
----
296304

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT + SUM( + 56 ) AS col1, - CASE + + 76 WHEN + 42 THEN + + 63 - - 70 * - 26 * 98 WHEN + 15 THEN + 98 ELSE NULL END + + 13 AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-5569
SELECT + SUM ( + 56 ) AS col1, - CASE + + 76 WHEN + 42 THEN + + 63 - - 70 * - 26 * 98 WHEN + 15 THEN + 98 ELSE NULL END + + 13 AS col1
----
56
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5570
SELECT ALL + COUNT( * ) DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL + COUNT ( * ) / 12
----
0

query I rowsort
SELECT - + 56 * - 39 + + + 77
----
2261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5572
SELECT 29 * COUNT( - 57 ) / - CASE + 37 WHEN + + COUNT( * ) + + - 16 * CAST( NULL AS SIGNED ) + + 38 / 67 * - 0 THEN + + 13 WHEN + 79 THEN + + 13 * + MAX( - 67 ) END + 4 + - 98 * 64 * - 45 + - - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT 29 * COUNT ( - 57 ) / - CASE + 37 WHEN + + COUNT ( * ) + + - 16 * CAST ( NULL AS INTEGER ) + + 38 / 67 * - 0 THEN + + 13 WHEN + 79 THEN + + 13 * + MAX ( - 67 ) END + 4 + - 98 * 64 * - 45 + - - 60
----
NULL

query I rowsort
SELECT ALL + 60 * + ( + + 89 ) - + 29 AS col2
----
5311

onlyif mysql # DIV for integer division: 
query II rowsort label-5574
SELECT + + ( - + 4 ) + + 15 AS col2, 32 * 7 DIV 55
----
11
4

skipif mysql # not compatible
query II rowsort label-5574
SELECT + + ( - + 4 ) + + 15 AS col2, 32 * 7 / 55
----
11
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5575
SELECT ALL 49 DIV 30 * - + CAST( + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL 49 / 30 * - + CAST ( + 22 AS INTEGER )
----
-22

query I rowsort
SELECT + 89 * - 50 AS col1
----
-4450

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT + 93 + + 60 - + 83 * + COUNT( - 85 )
----
70

skipif mysql # not compatible
query I rowsort label-5577
SELECT + 93 + + 60 - + 83 * + COUNT ( - 85 )
----
70

query I rowsort
SELECT ALL + - 34 * + 23 AS col2
----
-782

query I rowsort
SELECT + COALESCE ( 99, - 2, 10 ) * - + 44 * - 63 AS col0
----
274428

query I rowsort
SELECT ALL + COALESCE ( - + COALESCE ( - 27, - 16, + + 40 + + + 39 + + - 67 ), + 43 * - 22 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - 9 * COALESCE ( - + 14, - COUNT( * ) + - 80 ) + + 30 + + - 34 + - 98
----
24

skipif mysql # not compatible
query I rowsort label-5581
SELECT - 9 * COALESCE ( - + 14, - COUNT ( * ) + - 80 ) + + 30 + + - 34 + - 98
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT 88 * + 50 + ( - CAST( NULL AS SIGNED ) ) + + 76 * + 14 + - + SUM( DISTINCT 17 ) + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT 88 * + 50 + ( - CAST ( NULL AS INTEGER ) ) + + 76 * + 14 + - + SUM ( DISTINCT 17 ) + - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - + 72 * + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5583
SELECT - + 72 * + COUNT ( * )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT DISTINCT + + CASE + 83 WHEN 55 THEN + 23 + - 1 - + 55 WHEN - + MIN( 14 ) * COUNT( * ) / - COUNT( ALL 10 ) THEN - + CAST( NULL AS SIGNED ) WHEN - - 65 / - - MAX( ALL + 8 ) + - - 55 * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT + + CASE + 83 WHEN 55 THEN + 23 + - 1 - + 55 WHEN - + MIN ( 14 ) * COUNT ( * ) / - COUNT ( ALL 10 ) THEN - + CAST ( NULL AS INTEGER ) WHEN - - 65 / - - MAX ( ALL + 8 ) + - - 55 * COUNT ( * ) THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT 29 AS col1, 44 col2
----
29
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT + NULLIF ( 54, + ( ( + CASE - - COUNT( * ) WHEN + + 8 THEN - - COUNT( * ) ELSE - + CAST( NULL AS SIGNED ) / 8 * + CAST( 11 AS SIGNED ) * NULLIF ( COUNT( 49 ), ( + + 19 ) + + 17 + COUNT( * ) + + 75 * + NULLIF ( COUNT( * ), - + 82 * - 72 + - 83 + + + ( - 94 ) * + 89 ) ) END ) ) ) + + 44
----
98

skipif mysql # not compatible
query I rowsort label-5586
SELECT + NULLIF ( 54, + ( ( + CASE - - COUNT ( * ) WHEN + + 8 THEN - - COUNT ( * ) ELSE - + CAST ( NULL AS INTEGER ) / 8 * + CAST ( 11 AS INTEGER ) * NULLIF ( COUNT ( 49 ), ( + + 19 ) + + 17 + COUNT ( * ) + + 75 * + NULLIF ( COUNT ( * ), - + 82 * - 72 + - 83 + + + ( - 94 ) * + 89 ) ) END ) ) ) + + 44
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL 45 + - - 72 * - - 50 + + COUNT( * ) AS col1
----
3646

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL 45 + - - 72 * - - 50 + + COUNT ( * ) AS col1
----
3646

query I rowsort
SELECT ALL - 96 + + 18 col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL MAX( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL MAX ( DISTINCT + 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT DISTINCT + 51 + - ( + - 63 ) + - 41 * - - CAST( + 2 AS SIGNED ) * + 23
----
-1772

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT + 51 + - ( + - 63 ) + - 41 * - - CAST ( + 2 AS INTEGER ) * + 23
----
-1772

query I rowsort
SELECT - 73 + + - 24
----
-97

query I rowsort
SELECT DISTINCT 96 + + - 48 * 20 + + + 49
----
-815

onlyif mysql # aggregate syntax: 
query II rowsort label-5593
SELECT ALL 55 + + COALESCE ( + 48, 89 ) + COUNT( - 33 ), - 50 AS col0
----
104
-50

skipif mysql # not compatible
query II rowsort label-5593
SELECT ALL 55 + + COALESCE ( + 48, 89 ) + COUNT ( - 33 ), - 50 AS col0
----
104
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT - 19 + + + MAX( + CAST( NULL AS SIGNED ) ) / + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT - 19 + + + MAX ( + CAST ( NULL AS INTEGER ) ) / + 89 AS col0
----
NULL

query I rowsort
SELECT - 78 * 56
----
-4368

query I rowsort
SELECT - - ( - 57 ) + 70 AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT - 78 * CAST( - 84 AS SIGNED ) * + - 73 + - 3 * - COALESCE ( - + 87, - 9 + + 42, 6 * + + 34 * + 40 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT - 78 * CAST ( - 84 AS INTEGER ) * + - 73 + - 3 * - COALESCE ( - + 87, - 9 + + 42, 6 * + + 34 * + 40 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5598
SELECT ALL + - NULLIF ( 25, - + 59 + + 60 * - AVG ( ALL + 82 ) ) / 69 - + CASE - COUNT( * ) WHEN + - 52 + + 19 + + CAST( + 62 AS SIGNED ) * + CASE - MIN( + - 27 ) WHEN + - SUM( DISTINCT - 72 ) THEN + COALESCE ( 9, - 72, - 68 * - 8 * + 88 + - 80 ) * 38 + CAST( 67 AS SIGNED ) * 41 END THEN + - NULLIF ( + 20, - ( - 54 ) ) ELSE NULL END + 52 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + - NULLIF ( 25, - + 59 + + 60 * - AVG ( ALL + 82 ) ) / 69 - + CASE - COUNT ( * ) WHEN + - 52 + + 19 + + CAST ( + 62 AS INTEGER ) * + CASE - MIN ( + - 27 ) WHEN + - SUM ( DISTINCT - 72 ) THEN + COALESCE ( 9, - 72, - 68 * - 8 * + 88 + - 80 ) * 38 + CAST ( 67 AS INTEGER ) * 41 END THEN + - NULLIF ( + 20, - ( - 54 ) ) ELSE NULL END + 52 * 4
----
NULL

query I rowsort
SELECT - 23 * 63 AS col2
----
-1449

onlyif mysql # aggregate syntax: 
query II rowsort label-5600
SELECT 20 AS col1, ( SUM( - 34 ) ) - + 53
----
20
-87

skipif mysql # not compatible
query II rowsort label-5600
SELECT 20 AS col1, ( SUM ( - 34 ) ) - + 53
----
20
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT ALL - COUNT( * ) DIV + - 85 - + 65
----
-65

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - COUNT ( * ) / + - 85 - + 65
----
-65

query I rowsort
SELECT DISTINCT - 31 * + 57
----
-1767

query I rowsort
SELECT DISTINCT + - 27 * - + 78
----
2106

onlyif mysql # aggregate syntax: 
query II rowsort label-5604
SELECT + 27, COALESCE ( - - 59, + - 74 * + COUNT( - - 52 ) ) * + 99 - + COUNT( * ) AS col0
----
27
5840

skipif mysql # not compatible
query II rowsort label-5604
SELECT + 27, COALESCE ( - - 59, + - 74 * + COUNT ( - - 52 ) ) * + 99 - + COUNT ( * ) AS col0
----
27
5840

query II rowsort
SELECT ALL + 89 AS col0, + 15 AS col2
----
89
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT - - COUNT( * ) * - 19 + - 14 - 78 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-5606
SELECT - - COUNT ( * ) * - 19 + - 14 - 78 AS col1
----
-111

query I rowsort
SELECT 53 * 14 AS col1
----
742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5608
SELECT + SUM( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT ALL - 42, + 10 AS col0
----
-42
10

query I rowsort
SELECT DISTINCT + 35 + 2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL 4 + NULLIF ( + COUNT( * ), - 2 ) + - ( COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL 4 + NULLIF ( + COUNT ( * ), - 2 ) + - ( COUNT ( * ) )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT DISTINCT 62 DIV - + 71
----
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT 62 / - + 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5613
SELECT ALL 86 + + CAST( NULL AS SIGNED ), CASE - 75 WHEN + ( - 29 ) * 15 * ( 41 ) * - ( - CAST( NULL AS SIGNED ) ) THEN - 68 WHEN - 2 THEN + - 5 * 31 - 27 END + + - 88 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5613
SELECT ALL 86 + + CAST ( NULL AS INTEGER ), CASE - 75 WHEN + ( - 29 ) * 15 * ( 41 ) * - ( - CAST ( NULL AS INTEGER ) ) THEN - 68 WHEN - 2 THEN + - 5 * 31 - 27 END + + - 88 AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 97 * 51 * 68 AS col1
----
336396

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT 56 DIV - 5 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5615
SELECT 56 / - 5 AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5616
SELECT CAST( - 17 AS SIGNED ) - + CAST( NULL AS SIGNED ) * + - CAST( + - COUNT( * ) AS SIGNED ) AS col0, - 96 * - 85 AS col0
----
NULL
8160

skipif mysql # not compatible
query II rowsort label-5616
SELECT CAST ( - 17 AS INTEGER ) - + CAST ( NULL AS INTEGER ) * + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, - 96 * - 85 AS col0
----
NULL
8160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT DISTINCT SUM( - 87 ) + + 86 + + 47 DIV + 44 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT SUM ( - 87 ) + + 86 + + 47 / + 44 * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL 50 + + 27
----
77

query I rowsort
SELECT DISTINCT 55 + + + 7 * 74
----
573

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT + 65 - - COUNT( * ) * - NULLIF ( + COALESCE ( SUM( + + 13 ), + 30 ), - + 58 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + 65 - - COUNT ( * ) * - NULLIF ( + COALESCE ( SUM ( + + 13 ), + 30 ), - + 58 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5621
SELECT 29 * - 68 * + - CAST( NULL AS SIGNED ) / - ( + 22 ) * CAST( - - AVG ( - 52 ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT 29 * - 68 * + - CAST ( NULL AS INTEGER ) / - ( + 22 ) * CAST ( - - AVG ( - 52 ) AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL CASE - ( + 20 ) WHEN - 0 THEN + + 93 WHEN + 20 THEN 23 * + + 60 + + 99 + + COUNT( * ) / SUM( 31 ) + + + COALESCE ( + 94, + 94, - 83, + - AVG ( - 18 ) * - COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL CASE - ( + 20 ) WHEN - 0 THEN + + 93 WHEN + 20 THEN 23 * + + 60 + + 99 + + COUNT ( * ) / SUM ( 31 ) + + + COALESCE ( + 94, + 94, - 83, + - AVG ( - 18 ) * - COUNT ( * ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT COUNT( * ) + MAX( ALL + 28 ) col1
----
29

skipif mysql # not compatible
query I rowsort label-5623
SELECT COUNT ( * ) + MAX ( ALL + 28 ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT 45 * + MAX( 45 ) AS col2
----
2025

skipif mysql # not compatible
query I rowsort label-5624
SELECT 45 * + MAX ( 45 ) AS col2
----
2025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5625
SELECT 87 DIV 58 * + SUM( DISTINCT + 35 ) + - 68 DIV 9 col1
----
28

skipif mysql # not compatible
query I rowsort label-5625
SELECT 87 / 58 * + SUM ( DISTINCT + 35 ) + - 68 / 9 col1
----
28

query I rowsort
SELECT + 57 * - + 7 * 51 + - 20
----
-20369

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT SUM( 95 ) * - 79 AS col0
----
-7505

skipif mysql # not compatible
query I rowsort label-5627
SELECT SUM ( 95 ) * - 79 AS col0
----
-7505

query I rowsort
SELECT 14 * + 20
----
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5629
SELECT COUNT( * ) DIV - - 89 - + 78 + - COUNT( * ) * - NULLIF ( - 96, + ( 55 ) * + 84 * - COUNT( * ) + 28 ) - - 89 + 95
----
10

skipif mysql # not compatible
query I rowsort label-5629
SELECT COUNT ( * ) / - - 89 - + 78 + - COUNT ( * ) * - NULLIF ( - 96, + ( 55 ) * + 84 * - COUNT ( * ) + 28 ) - - 89 + 95
----
10

query I rowsort
SELECT - 23 * + 13 AS col0
----
-299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5631
SELECT ( MIN( ALL - 60 ) ) DIV 13
----
-4

skipif mysql # not compatible
query I rowsort label-5631
SELECT ( MIN ( ALL - 60 ) ) / 13
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT - 7 DIV - 99 + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-5632
SELECT - 7 / - 99 + - 49
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT 37 + - - COUNT( * ), ( + + 58 ) - - + 82 * + 86 col0
----
38
7110

skipif mysql # not compatible
query II rowsort label-5633
SELECT 37 + - - COUNT ( * ), ( + + 58 ) - - + 82 * + 86 col0
----
38
7110

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL + 6 + - + 33 * + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL + 6 + - + 33 * + COUNT ( * ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT DISTINCT COALESCE ( 69, + 94 * 52 + + 44, COALESCE ( - 31, + + CAST( NULL AS SIGNED ) * + MAX( + - 72 ) ) ) + + MAX( - + 38 ) + - + 71
----
-40

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT COALESCE ( 69, + 94 * 52 + + 44, COALESCE ( - 31, + + CAST ( NULL AS INTEGER ) * + MAX ( + - 72 ) ) ) + + MAX ( - + 38 ) + - + 71
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + 20 * + NULLIF ( + 68, - 84 + + COUNT( * ) * - 98 * + COUNT( * ) ) + + 20 + - 5 - - ( + 37 ) + + + 12 AS col2
----
1424

skipif mysql # not compatible
query I rowsort label-5636
SELECT + 20 * + NULLIF ( + 68, - 84 + + COUNT ( * ) * - 98 * + COUNT ( * ) ) + + 20 + - 5 - - ( + 37 ) + + + 12 AS col2
----
1424

query II rowsort
SELECT 29, - 57 AS col0
----
29
-57

query I rowsort
SELECT ( - 47 ) + + 2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT COUNT( * ) + 44 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5639
SELECT COUNT ( * ) + 44 AS col2
----
45

query I rowsort
SELECT DISTINCT + 97 + - 13 AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT ALL 44 DIV + 14 col2
----
3

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL 44 / + 14 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT 91 + 17 - - - 77 + 74 * ( - COUNT( * ) ) * - + 95 * - 90 AS col0
----
-632669

skipif mysql # not compatible
query I rowsort label-5642
SELECT 91 + 17 - - - 77 + 74 * ( - COUNT ( * ) ) * - + 95 * - 90 AS col0
----
-632669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5643
SELECT DISTINCT - 33 - + COUNT( DISTINCT - 18 ) + NULLIF ( - - 93, + CAST( - - 80 AS SIGNED ) ) + + CASE - 30 WHEN - 74 * - 70 * - 63 * 33 + 18 + - - COUNT( * ) - + - 65 + ( AVG ( + - 80 ) ) THEN 37 END * - 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT - 33 - + COUNT ( DISTINCT - 18 ) + NULLIF ( - - 93, + CAST ( - - 80 AS INTEGER ) ) + + CASE - 30 WHEN - 74 * - 70 * - 63 * 33 + 18 + - - COUNT ( * ) - + - 65 + ( AVG ( + - 80 ) ) THEN 37 END * - 92 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT MAX( ALL + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT MAX ( ALL + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT COUNT( * ) * NULLIF ( - 22, + 78 )
----
-22

skipif mysql # not compatible
query I rowsort label-5645
SELECT COUNT ( * ) * NULLIF ( - 22, + 78 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5646
SELECT ALL 8 DIV COALESCE ( - - 81, - CAST( 0 AS SIGNED ), + + 55 ) DIV + COUNT( * ) * + 63 + - 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL 8 / COALESCE ( - - 81, - CAST ( 0 AS INTEGER ), + + 55 ) / + COUNT ( * ) * + 63 + - 9 AS col2
----
-9

query I rowsort
SELECT 84 - + - 41 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT DISTINCT COUNT( * ) * + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT COUNT ( * ) * + 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT 1 - + ( + ( - + COUNT( * ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT 1 - + ( + ( - + COUNT ( * ) ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT COUNT( * ) * - - ( - - 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5650
SELECT COUNT ( * ) * - - ( - - 53 ) AS col2
----
53

query I rowsort
SELECT ALL 36 * 93 AS col1
----
3348

query I rowsort
SELECT 10 * - 82
----
-820

query I rowsort
SELECT 45 + 2
----
47

query I rowsort
SELECT 16 + - - 14 - 63 * + 20
----
-1230

query II rowsort
SELECT DISTINCT + 16 AS col0, 0
----
16
0

query I rowsort
SELECT - 55 + 43
----
-12

query I rowsort
SELECT 69 * + + 89 AS col0
----
6141

query I rowsort
SELECT ALL 38 * - - 52 AS col1
----
1976

query I rowsort
SELECT NULLIF ( + ( + - 45 ), + + 17 - + 35 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT NULLIF ( - 98, + 43 * 37 * 8 + MAX( DISTINCT 29 ) + - 62 + MIN( ALL 15 ) + 93 / - COUNT( * ) * 40 - 32 ) * - 44 * 40 + + - 19 col0
----
172461

skipif mysql # not compatible
query I rowsort label-5660
SELECT NULLIF ( - 98, + 43 * 37 * 8 + MAX ( DISTINCT 29 ) + - 62 + MIN ( ALL 15 ) + 93 / - COUNT ( * ) * 40 - 32 ) * - 44 * 40 + + - 19 col0
----
172461

query I rowsort
SELECT DISTINCT + - 60 * - 92
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL - 10 * 17 * COUNT( ( 44 ) ) AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL - 10 * 17 * COUNT ( ( 44 ) ) AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL + 13 * + 14 + + CASE NULLIF ( + 66, COUNT( * ) * 76 ) WHEN 3 * - + 95 THEN - MIN( DISTINCT + 25 ) WHEN 34 THEN - 47 END * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + 13 * + 14 + + CASE NULLIF ( + 66, COUNT ( * ) * 76 ) WHEN 3 * - + 95 THEN - MIN ( DISTINCT + 25 ) WHEN 34 THEN - 47 END * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + MAX( 93 )
----
93

skipif mysql # not compatible
query I rowsort label-5664
SELECT + MAX ( 93 )
----
93

query I rowsort
SELECT DISTINCT 6 * + 56 * - + COALESCE ( 21, + + 1 ) + - - 61 + + 3 + + 76 + 52
----
-6864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5666
SELECT DISTINCT + + COALESCE ( - COALESCE ( + ( MIN( DISTINCT + 94 ) ), + CAST( NULL AS SIGNED ) ), + 61 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT + + COALESCE ( - COALESCE ( + ( MIN ( DISTINCT + 94 ) ), + CAST ( NULL AS INTEGER ) ), + 61 ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5667
SELECT + 96 col1, - COALESCE ( + + 53, - - 7, 18 * - ( - 22 ) DIV + + 12 * 70 * - + COUNT( * ) - + COUNT( * ) ) col2
----
96
-53

skipif mysql # not compatible
query II rowsort label-5667
SELECT + 96 col1, - COALESCE ( + + 53, - - 7, 18 * - ( - 22 ) / + + 12 * 70 * - + COUNT ( * ) - + COUNT ( * ) ) col2
----
96
-53

query I rowsort
SELECT + NULLIF ( - - 70, - + 3 ) * - 88 + 22 * 4 + + + 12 AS col0
----
-6060

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5669
SELECT - CAST( + - AVG ( DISTINCT + 90 ) AS SIGNED ) DIV CAST( 6 AS SIGNED ) + - 18
----
-3

skipif mysql # not compatible
query I rowsort label-5669
SELECT - CAST ( + - AVG ( DISTINCT + 90 ) AS INTEGER ) / CAST ( 6 AS INTEGER ) + - 18
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT ALL + 10 DIV + 97 * - 4
----
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + 10 / + 97 * - 4
----
0

query I rowsort
SELECT - 86 + - 81
----
-167

query I rowsort
SELECT - 45 * - + 72
----
3240

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5673
SELECT DISTINCT + 92 DIV + CAST( 98 AS SIGNED ) * - + ( - + 78 ) * - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + 92 / + CAST ( 98 AS INTEGER ) * - + ( - + 78 ) * - 67 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5674
SELECT ALL + 46 AS col1, + 96 DIV - 83
----
46
-1

skipif mysql # not compatible
query II rowsort label-5674
SELECT ALL + 46 AS col1, + 96 / - 83
----
46
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5675
SELECT ALL - 20 * - + 37 * - + 40 * - 94 * COUNT( * ) * - ( NULLIF ( + MIN( ALL + 79 ), + - CASE + - COUNT( * ) WHEN + CASE - - 67 WHEN + ( + + 68 ) THEN + 99 WHEN - CASE 67 WHEN + 28 * + 97 THEN - 94 WHEN - + 30 THEN + 52 * + MAX( + + 28 ) + CAST( + 94 AS SIGNED ) + + 16 * - 49 - - 39 + - + CAST( MIN( 44 ) AS SIGNED ) ELSE NULL END THEN NULL ELSE NULL END * - 67 THEN - 82 ELSE NULL END * - - ( - 65 ) * 72 ) ) * COUNT( * )
----
-219809600

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - 20 * - + 37 * - + 40 * - 94 * COUNT ( * ) * - ( NULLIF ( + MIN ( ALL + 79 ), + - CASE + - COUNT ( * ) WHEN + CASE - - 67 WHEN + ( + + 68 ) THEN + 99 WHEN - CASE 67 WHEN + 28 * + 97 THEN - 94 WHEN - + 30 THEN + 52 * + MAX ( + + 28 ) + CAST ( + 94 AS INTEGER ) + + 16 * - 49 - - 39 + - + CAST ( MIN ( 44 ) AS INTEGER ) ELSE NULL END THEN NULL ELSE NULL END * - 67 THEN - 82 ELSE NULL END * - - ( - 65 ) * 72 ) ) * COUNT ( * )
----
-219809600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT - COUNT( * ) - + SUM( ALL 71 ) * COALESCE ( CAST( NULL AS SIGNED ), + SUM( ALL 64 ) )
----
-4545

skipif mysql # not compatible
query I rowsort label-5676
SELECT - COUNT ( * ) - + SUM ( ALL 71 ) * COALESCE ( CAST ( NULL AS INTEGER ), + SUM ( ALL 64 ) )
----
-4545

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5677
SELECT ALL 99 AS col0, CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
99
NULL

skipif mysql # not compatible
query II rowsort label-5677
SELECT ALL 99 AS col0, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
99
NULL

query I rowsort
SELECT ALL NULLIF ( + 19, 60 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT DISTINCT + 2 * + MIN( DISTINCT - + 98 ) AS col0
----
-196

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + 2 * + MIN ( DISTINCT - + 98 ) AS col0
----
-196

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5680
SELECT 57, + CAST( NULL AS DECIMAL ) AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-5680
SELECT 57, + CAST ( NULL AS REAL ) AS col2
----
57
NULL

query I rowsort
SELECT + 31 - - 50 AS col1
----
81

query I rowsort
SELECT - 43 * 5
----
-215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT + COUNT( * ) * + 51 * - CAST( NULL AS SIGNED ) * 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT + COUNT ( * ) * + 51 * - CAST ( NULL AS INTEGER ) * 32 AS col0
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 34, - - 75 )
----
34

query I rowsort
SELECT DISTINCT CASE 21 WHEN + 53 THEN + 31 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5686
SELECT - + 87 + CASE COUNT( * ) WHEN + - COUNT( * ) THEN NULL WHEN + CAST( - - 36 AS SIGNED ) THEN - - 30 ELSE + 88 + + 77 END
----
78

skipif mysql # not compatible
query I rowsort label-5686
SELECT - + 87 + CASE COUNT ( * ) WHEN + - COUNT ( * ) THEN NULL WHEN + CAST ( - - 36 AS INTEGER ) THEN - - 30 ELSE + 88 + + 77 END
----
78

query I rowsort
SELECT ALL ( + 41 ) AS col0
----
41

query II rowsort
SELECT ALL + 61 AS col2, 75 AS col1
----
61
75

query I rowsort
SELECT ALL - - 83 + + 16 * - + 53
----
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT - CAST( 47 AS SIGNED ) + 43 * 73 * 41
----
128652

skipif mysql # not compatible
query I rowsort label-5690
SELECT - CAST ( 47 AS INTEGER ) + 43 * 73 * 41
----
128652

query II rowsort
SELECT - 95, - 49 AS col1
----
-95
-49

query II rowsort
SELECT DISTINCT 6 AS col1, 53 * - 48
----
6
-2544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT - 83 + + - 15 + + CAST( - - 73 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-5693
SELECT - 83 + + - 15 + + CAST ( - - 73 AS INTEGER )
----
-25

query II rowsort
SELECT + - COALESCE ( - 13, - 62 + - - 70 ) * - - 81 - + + 80 AS col1, - 38
----
973
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5695
SELECT - + CAST( NULL AS SIGNED ) + - COUNT( * ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + + 30 * - 95
----
-2850

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT + - ( + + 10 ) DIV + + 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5697
SELECT + - ( + + 10 ) / + + 39 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT + + 44 + ( - 16 ) + COUNT( * ) + - - 7 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5698
SELECT + + 44 + ( - 16 ) + COUNT ( * ) + - - 7 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL - - MIN( + 66 ) + + COUNT( 98 )
----
67

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL - - MIN ( + 66 ) + + COUNT ( 98 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5700
SELECT + 33 + - 19 DIV + - 79 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5700
SELECT + 33 + - 19 / + - 79 AS col1
----
33

query I rowsort
SELECT DISTINCT + + NULLIF ( - 42, + - 2 + + 0 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + COUNT( * ) + - - 39 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5702
SELECT + COUNT ( * ) + - - 39 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT ALL 3 DIV + - 40 * + 79 + - 60 + - - 31 + + 76 * - - SUM( - + 29 )
----
-2233

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL 3 / + - 40 * + 79 + - 60 + - - 31 + + 76 * - - SUM ( - + 29 )
----
-2233

query I rowsort
SELECT DISTINCT 56 * - 71 col2
----
-3976

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT - 45 + - - COUNT( * ) + 56
----
12

skipif mysql # not compatible
query I rowsort label-5705
SELECT - 45 + - - COUNT ( * ) + 56
----
12

query I rowsort
SELECT + ( 96 ) * - + 26
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT - 62 * COUNT( ALL - - ( ( - 84 ) ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5707
SELECT - 62 * COUNT ( ALL - - ( ( - 84 ) ) ) AS col2
----
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5708
SELECT + CAST( NULL AS DECIMAL ) + + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT + CAST ( NULL AS REAL ) + + - 9
----
NULL

query I rowsort
SELECT + 26 * - 42 AS col2
----
-1092

onlyif mysql # aggregate syntax: 
query II rowsort label-5710
SELECT DISTINCT COUNT( * ) * + 9, - 42 AS col2
----
9
-42

skipif mysql # not compatible
query II rowsort label-5710
SELECT DISTINCT COUNT ( * ) * + 9, - 42 AS col2
----
9
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT + ( + + 16 ) AS col0, 57 + - COUNT( * ) + ( + 1 ) * - 28 + + 98 + COUNT( * ) * + COUNT( * ) + - 74 * - COUNT( * ) * + 11 * - 1 col0
----
16
-687

skipif mysql # not compatible
query II rowsort label-5711
SELECT + ( + + 16 ) AS col0, 57 + - COUNT ( * ) + ( + 1 ) * - 28 + + 98 + COUNT ( * ) * + COUNT ( * ) + - 74 * - COUNT ( * ) * + 11 * - 1 col0
----
16
-687

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5712
SELECT - 79 DIV 47, - COUNT( - + 53 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5712
SELECT - 79 / 47, - COUNT ( - + 53 )
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT CAST( NULL AS SIGNED ) * 49 + - 40 * - 47 * + COUNT( * ) + + + NULLIF ( + 35, - 30 ) - - + 6 + + - 17 * + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT CAST ( NULL AS INTEGER ) * 49 + - 40 * - 47 * + COUNT ( * ) + + + NULLIF ( + 35, - 30 ) - - + 6 + + - 17 * + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT - 31 + - MIN( + 71 ) + - + 20 * + COUNT( * ) AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-5714
SELECT - 31 + - MIN ( + 71 ) + - + 20 * + COUNT ( * ) AS col1
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT + 43 DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT + 43 / - 92 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT - 49 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-5716
SELECT - 49 / + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL MIN( - NULLIF ( - + 70, + 82 + 4 + 38 ) )
----
70

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL MIN ( - NULLIF ( - + 70, + 82 + 4 + 38 ) )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT ALL - 78 * + + 98 + - 72 + - 21 * + 43 col2, - COUNT( * ) AS col1
----
-8619
-1

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL - 78 * + + 98 + - 72 + - 21 * + 43 col2, - COUNT ( * ) AS col1
----
-8619
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT - + ( - + MIN( ALL + + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-5719
SELECT - + ( - + MIN ( ALL + + 88 ) )
----
88

query I rowsort
SELECT 50 + + 7 + - ( - + 93 ) AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT - COALESCE ( - COUNT( * ), + 88, - + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-5721
SELECT - COALESCE ( - COUNT ( * ), + 88, - + 25 )
----
1

query I rowsort
SELECT DISTINCT - 12 + - 35
----
-47

query I rowsort
SELECT 84 * - - 89
----
7476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5724
SELECT ALL - MIN( + 43 ) + - - CAST( - 64 AS SIGNED )
----
-107

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL - MIN ( + 43 ) + - - CAST ( - 64 AS INTEGER )
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT DISTINCT + 21 + - 50 DIV 6 + 73
----
86

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT + 21 + - 50 / 6 + 73
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL + 18 + COUNT( * ) - - + 11 * + 35 + + NULLIF ( - 93, - - 78 * + - 71 )
----
311

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL + 18 + COUNT ( * ) - - + 11 * + 35 + + NULLIF ( - 93, - - 78 * + - 71 )
----
311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5727
SELECT DISTINCT - + 1 + COUNT( ALL - 57 ) + + ( + ( - - 63 ) ) * + - CASE 28 WHEN COUNT( * ) + + - COALESCE ( + - 48, 31 ) THEN CAST( ( - - 60 ) AS SIGNED ) END * - COUNT( * ) * - + ( + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - + 1 + COUNT ( ALL - 57 ) + + ( + ( - - 63 ) ) * + - CASE 28 WHEN COUNT ( * ) + + - COALESCE ( + - 48, 31 ) THEN CAST ( ( - - 60 ) AS INTEGER ) END * - COUNT ( * ) * - + ( + 2 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT 99 + + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-5728
SELECT 99 + + + COUNT ( * )
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5729
SELECT ALL - 27 * - - CAST( + - 49 AS SIGNED ) AS col1
----
1323

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - 27 * - - CAST ( + - 49 AS INTEGER ) AS col1
----
1323

query I rowsort
SELECT ALL + 94 * - 23 * 88 AS col0
----
-190256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5731
SELECT 22 * + CAST( NULL AS SIGNED ) + - 86 + COUNT( * ) + + COUNT( * ) * + 72 / - 82 * 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT 22 * + CAST ( NULL AS INTEGER ) + - 86 + COUNT ( * ) + + COUNT ( * ) * + 72 / - 82 * 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT MAX( ALL 53 ) * + 94
----
4982

skipif mysql # not compatible
query I rowsort label-5732
SELECT MAX ( ALL 53 ) * + 94
----
4982

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5733
SELECT ALL + 47 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL + 47 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT DISTINCT + 38 * - - CAST( NULL AS SIGNED ) * + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT + 38 * - - CAST ( NULL AS INTEGER ) * + - 25
----
NULL

query II rowsort
SELECT DISTINCT - 36, 74 * 91 * - + 51 AS col2
----
-36
-343434

onlyif mysql # aggregate syntax: 
query II rowsort label-5736
SELECT 53, 52 - - - 99 + COUNT( * ) AS col1
----
53
-46

skipif mysql # not compatible
query II rowsort label-5736
SELECT 53, 52 - - - 99 + COUNT ( * ) AS col1
----
53
-46

query I rowsort
SELECT ( + 37 ) * + 8
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL 14 * - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL 14 * - COUNT ( * )
----
-14

query I rowsort
SELECT ALL 25 * - 42 AS col0
----
-1050

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT ALL - COUNT( * ), 63 AS col0
----
-1
63

skipif mysql # not compatible
query II rowsort label-5740
SELECT ALL - COUNT ( * ), 63 AS col0
----
-1
63

query I rowsort
SELECT DISTINCT - 30 + - ( - 40 ) + - - 93
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5742
SELECT ALL 78 + + - COUNT( * ) + + 70 DIV + 53
----
78

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL 78 + + - COUNT ( * ) + + 70 / + 53
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT 15 * COUNT( - 1 )
----
15

skipif mysql # not compatible
query I rowsort label-5743
SELECT 15 * COUNT ( - 1 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5744
SELECT - - 19, - SUM( ALL - 9 ) - + 6 col0
----
19
3

skipif mysql # not compatible
query II rowsort label-5744
SELECT - - 19, - SUM ( ALL - 9 ) - + 6 col0
----
19
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5745
SELECT 65 DIV + 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-5745
SELECT 65 / + 84 col1
----
0

query I rowsort
SELECT ALL - 83 + + 5 AS col1
----
-78

query I rowsort
SELECT - 92 + - - 3
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT ALL 62 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL 62 / - 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT ALL + - 41 * 24 + + MAX( 68 )
----
-916

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL + - 41 * 24 + + MAX ( 68 )
----
-916

query I rowsort
SELECT + CASE + NULLIF ( - 74, 60 / - 67 + - - 90 ) WHEN + 36 THEN - 99 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL MAX( ALL + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL MAX ( ALL + 32 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5752
SELECT + 68 + + 62 + COUNT( * ) + - CAST( 20 AS SIGNED )
----
111

skipif mysql # not compatible
query I rowsort label-5752
SELECT + 68 + + 62 + COUNT ( * ) + - CAST ( 20 AS INTEGER )
----
111

query I rowsort
SELECT + ( 94 ) * 72
----
6768

onlyif mysql # aggregate syntax: 
query II rowsort label-5754
SELECT COUNT( * ) AS col0, - 45 AS col0
----
1
-45

skipif mysql # not compatible
query II rowsort label-5754
SELECT COUNT ( * ) AS col0, - 45 AS col0
----
1
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT - 8 * 58 * COUNT( ALL + 48 ) * 1
----
-464

skipif mysql # not compatible
query I rowsort label-5755
SELECT - 8 * 58 * COUNT ( ALL + 48 ) * 1
----
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT - COUNT( * ) + - NULLIF ( - - 27, 0 + - 29 * - + 6 * - + 23 * + 14 ) - - - 14 + 12 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5756
SELECT - COUNT ( * ) + - NULLIF ( - - 27, 0 + - 29 * - + 6 * - + 23 * + 14 ) - - - 14 + 12 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5757
SELECT 94 + + - CAST( NULL AS SIGNED ) AS col2, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-5757
SELECT 94 + + - CAST ( NULL AS INTEGER ) AS col2, 5
----
NULL
5

query I rowsort
SELECT ALL - NULLIF ( 59, + 41 )
----
-59

query I rowsort
SELECT ALL 80 * - 99 * + 54
----
-427680

query I rowsort
SELECT DISTINCT - ( ( 98 ) )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT DISTINCT - 79 DIV 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT - 79 / 70 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL - CAST( + AVG ( - 72 ) AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - CAST ( + AVG ( - 72 ) AS INTEGER ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL - 61 * + - COALESCE ( 97, 33 - 58 * + 0 + - MIN( ALL + 45 ) + + ( COUNT( * ) ) + - 67 * + 74 ) col0
----
5917

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - 61 * + - COALESCE ( 97, 33 - 58 * + 0 + - MIN ( ALL + 45 ) + + ( COUNT ( * ) ) + - 67 * + 74 ) col0
----
5917

query I rowsort
SELECT 94 * - 5
----
-470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5765
SELECT 89 DIV + 20 + + + COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5765
SELECT 89 / + 20 + + + COUNT ( * ) AS col0
----
5

query I rowsort
SELECT DISTINCT + 17 * + - 85 + - 45
----
-1490

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5767
SELECT ALL 21 * - - 37 * 61 / CAST( NULL AS SIGNED ) + + 59 * - CAST( - + 82 AS SIGNED ) / + ( 1 ) + 6, CAST( NULL AS SIGNED ) * 33 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5767
SELECT ALL 21 * - - 37 * 61 / CAST ( NULL AS INTEGER ) + + 59 * - CAST ( - + 82 AS INTEGER ) / + ( 1 ) + 6, CAST ( NULL AS INTEGER ) * 33 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT - 46 * + + 50 + CASE - 42 WHEN - NULLIF ( - + SUM( + 6 ), 87 * + + 94 ) THEN NULL ELSE + 18 END * - 20 AS col1
----
-2660

skipif mysql # not compatible
query I rowsort label-5768
SELECT - 46 * + + 50 + CASE - 42 WHEN - NULLIF ( - + SUM ( + 6 ), 87 * + + 94 ) THEN NULL ELSE + 18 END * - 20 AS col1
----
-2660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT ALL - 89 + + ( 98 ) + + 34 * + + CAST( NULL AS SIGNED ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - 89 + + ( 98 ) + + 34 * + + CAST ( NULL AS INTEGER ) * - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT MIN( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-5770
SELECT MIN ( - 76 )
----
-76

query I rowsort
SELECT ALL + ( + 57 ) + + 32
----
89

query I rowsort
SELECT - 21 * + ( - - 7 ) + + NULLIF ( + 16, + + 87 * 66 * ( - - 2 ) + + 75 + - 1 ) AS col1
----
-131

query II rowsort
SELECT - 60 * 56 AS col2, 36 + 43 AS col2
----
-3360
79

query I rowsort
SELECT DISTINCT 89 + 17 AS col1
----
106

query I rowsort
SELECT ALL + ( - 70 ) + 78
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5776
SELECT ALL CAST( + ( - COUNT( * ) ) AS SIGNED ) + CASE 8 WHEN 77 + + ( - + CAST( + 46 AS SIGNED ) ) THEN + - 93 + + COALESCE ( + 4, + COUNT( * ) ) + + 21 * - 25 * - - 78 * 18 ELSE NULL END col2, COUNT( * ) - 9 col2
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-5776
SELECT ALL CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + CASE 8 WHEN 77 + + ( - + CAST ( + 46 AS INTEGER ) ) THEN + - 93 + + COALESCE ( + 4, + COUNT ( * ) ) + + 21 * - 25 * - - 78 * 18 ELSE NULL END col2, COUNT ( * ) - 9 col2
----
NULL
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT DISTINCT COUNT( * ) * 66 * - 27 AS col2
----
-1782

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT COUNT ( * ) * 66 * - 27 AS col2
----
-1782

query I rowsort
SELECT + + 57 + - COALESCE ( 57, + 77 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT ALL + SUM( DISTINCT + 34 ) - + 97
----
-63

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL + SUM ( DISTINCT + 34 ) - + 97
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL - - 76 - - 31 - + ( + 57 ) + + 98 * + - 45 - COALESCE ( + 57, - 11 ) + - - 51 + NULLIF ( + - 83, - 23 + + 75 ) + + COUNT( * ) AS col1
----
-4448

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - - 76 - - 31 - + ( + 57 ) + + 98 * + - 45 - COALESCE ( + 57, - 11 ) + - - 51 + NULLIF ( + - 83, - 23 + + 75 ) + + COUNT ( * ) AS col1
----
-4448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT DISTINCT 78 * + - CASE - 30 WHEN + 85 * + + ( - 64 ) THEN NULL WHEN 49 * - CAST( + 31 AS SIGNED ) + - 47 - + 57 + - 58 THEN + + 0 + 21 * 57 + 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT 78 * + - CASE - 30 WHEN + 85 * + + ( - 64 ) THEN NULL WHEN 49 * - CAST ( + 31 AS INTEGER ) + - 47 - + 57 + - 58 THEN + + 0 + 21 * 57 + 51 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT + 21 + 92 DIV + - 95 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5782
SELECT + 21 + 92 / + - 95 AS col2
----
21

query I rowsort
SELECT - 26 * + 62
----
-1612

query I rowsort
SELECT - 49 + - 41
----
-90

query I rowsort
SELECT ALL + 77 - - + 44 + + NULLIF ( + 40, 34 ) AS col1
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5786
SELECT + 92 DIV - 50 DIV + COUNT( * ) - - - CAST( 45 AS SIGNED ) * - 88 AS col2
----
3959

skipif mysql # not compatible
query I rowsort label-5786
SELECT + 92 / - 50 / + COUNT ( * ) - - - CAST ( 45 AS INTEGER ) * - 88 AS col2
----
3959

query I rowsort
SELECT + 6 * - 21 + - + 14 AS col2
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5788
SELECT ALL ( + + CAST( + 69 AS SIGNED ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL ( + + CAST ( + 69 AS INTEGER ) ) AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5789
SELECT - NULLIF ( + 61, + CASE - - 72 WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE 10 END )
----
-61

skipif mysql # not compatible
query I rowsort label-5789
SELECT - NULLIF ( + 61, + CASE - - 72 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE 10 END )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL + CASE - 82 WHEN + SUM( ALL - 60 ) THEN + 46 + 11 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL + CASE - 82 WHEN + SUM ( ALL - 60 ) THEN + 46 + 11 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5791
SELECT - + CAST( + + 95 AS SIGNED ) AS col1, 23
----
-95
23

skipif mysql # not compatible
query II rowsort label-5791
SELECT - + CAST ( + + 95 AS INTEGER ) AS col1, 23
----
-95
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT DISTINCT MIN( + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT MIN ( + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL MIN( - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL MIN ( - 67 ) AS col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5794
SELECT DISTINCT - ( + + COUNT( * ) ) DIV - 65 * - 31 * + 71 + + 77 + - + 49 + COUNT( * ) * + ( + ( 38 ) )
----
66

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT - ( + + COUNT ( * ) ) / - 65 * - 31 * + 71 + + 77 + - + 49 + COUNT ( * ) * + ( + ( 38 ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL + CASE 22 WHEN - 8 + + + 83 - - 42 * - 14 * + 41 THEN + 41 WHEN + 94 THEN NULL ELSE ( - - MIN( ALL - ( 1 ) ) ) * 31 END
----
-31

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + CASE 22 WHEN - 8 + + + 83 - - 42 * - 14 * + 41 THEN + 41 WHEN + 94 THEN NULL ELSE ( - - MIN ( ALL - ( 1 ) ) ) * 31 END
----
-31

query I rowsort
SELECT + ( + - 65 ) AS col1
----
-65

query I rowsort
SELECT - 26 * - 25 AS col2
----
650

query I rowsort
SELECT - 44 - + 62
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT + MIN( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT + MIN ( + 42 )
----
42

query I rowsort
SELECT DISTINCT + 45 * + + COALESCE ( - 94, 94 ) * + - 69 + 89
----
291959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5801
SELECT ALL + CAST( + 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + CAST ( + 63 AS INTEGER ) AS col2
----
63

query I rowsort
SELECT ALL + 90 * + + 49 + 98 col1
----
4508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT - 96 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT - 96 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL COALESCE ( + MAX( - + 50 ), - 36, + 37, COALESCE ( 34, 95 + + 77 * + - 1 - - - 75, + 20 + - 85 ) ) * 60 + - + 54 + 14 * - + 71 col0
----
-4048

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL COALESCE ( + MAX ( - + 50 ), - 36, + 37, COALESCE ( 34, 95 + + 77 * + - 1 - - - 75, + 20 + - 85 ) ) * 60 + - + 54 + 14 * - + 71 col0
----
-4048

query I rowsort
SELECT ALL + 13 * - 98 + + 42
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - MIN( + - 39 ) * - 74 AS col1
----
-2886

skipif mysql # not compatible
query I rowsort label-5806
SELECT - MIN ( + - 39 ) * - 74 AS col1
----
-2886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5807
SELECT COALESCE ( MIN( - 86 ), 50 * - + COALESCE ( + CAST( 87 AS SIGNED ), + CASE + + COUNT( * ) WHEN + 40 * - - 31 * + 14 + 45 THEN NULL WHEN + 26 + - COUNT( * ) THEN + + 15 ELSE 91 + + - 47 END * - + COUNT( * ) * 18, 51 ) * 49 )
----
-86

skipif mysql # not compatible
query I rowsort label-5807
SELECT COALESCE ( MIN ( - 86 ), 50 * - + COALESCE ( + CAST ( 87 AS INTEGER ), + CASE + + COUNT ( * ) WHEN + 40 * - - 31 * + 14 + 45 THEN NULL WHEN + 26 + - COUNT ( * ) THEN + + 15 ELSE 91 + + - 47 END * - + COUNT ( * ) * 18, 51 ) * 49 )
----
-86

query I rowsort
SELECT 31 * - ( 59 ) + + 53 col2
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT CASE + 0 WHEN - 50 THEN - 16 - COUNT( * ) ELSE - 25 END
----
-25

skipif mysql # not compatible
query I rowsort label-5809
SELECT CASE + 0 WHEN - 50 THEN - 16 - COUNT ( * ) ELSE - 25 END
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL 54 * ( - ( - MIN( ALL + - 1 ) ) ) * - 61 + - 72 AS col2
----
3222

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL 54 * ( - ( - MIN ( ALL + - 1 ) ) ) * - 61 + - 72 AS col2
----
3222

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT - COUNT( * ) * + 80 * - 72 * + SUM( ALL 82 )
----
472320

skipif mysql # not compatible
query I rowsort label-5811
SELECT - COUNT ( * ) * + 80 * - 72 * + SUM ( ALL 82 )
----
472320

query I rowsort
SELECT ALL + - 45 * 23 * ( + - 74 ) AS col1
----
76590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT ALL + + CAST( + 70 AS SIGNED ) col2
----
70

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL + + CAST ( + 70 AS INTEGER ) col2
----
70

query I rowsort
SELECT DISTINCT + 36 * 93 - - + 25 + 19 * 14
----
3639

query II rowsort
SELECT ALL + 93 * + 35 - + COALESCE ( - 30, 80 ) AS col2, 37 * + + 51 AS col0
----
3285
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT DISTINCT - + COUNT( * ) * + - COUNT( - - 8 ) * - - MAX( - - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT - + COUNT ( * ) * + - COUNT ( - - 8 ) * - - MAX ( - - 79 )
----
79

query I rowsort
SELECT - 27 + ( - 72 ) col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5818
SELECT + MAX( DISTINCT - - 81 ) * + SUM( ALL + 52 ) + COALESCE ( + 69, + 94, + ( - 40 ) DIV - 0 )
----
4281

skipif mysql # not compatible
query I rowsort label-5818
SELECT + MAX ( DISTINCT - - 81 ) * + SUM ( ALL + 52 ) + COALESCE ( + 69, + 94, + ( - 40 ) / - 0 )
----
4281

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT + SUM( - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5819
SELECT + SUM ( - 37 ) AS col2
----
-37

query II rowsort
SELECT 71 AS col2, ( + 24 )
----
71
24

query I rowsort
SELECT - ( 40 ) col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5822
SELECT ALL NULLIF ( COUNT( * ), - - 20 ) AS col1, + 65 * + 96
----
1
6240

skipif mysql # not compatible
query II rowsort label-5822
SELECT ALL NULLIF ( COUNT ( * ), - - 20 ) AS col1, + 65 * + 96
----
1
6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT + CAST( + ( + 16 ) AS SIGNED ) * + 98 * - 35 AS col1
----
-54880

skipif mysql # not compatible
query I rowsort label-5823
SELECT + CAST ( + ( + 16 ) AS INTEGER ) * + 98 * - 35 AS col1
----
-54880

onlyif mysql # DIV for integer division: 
query II rowsort label-5824
SELECT + 26 DIV + - ( + 66 ) AS col1, + 87
----
0
87

skipif mysql # not compatible
query II rowsort label-5824
SELECT + 26 / + - ( + 66 ) AS col1, + 87
----
0
87

query I rowsort
SELECT + 80 - - 43 * + - 25 * ( 45 )
----
-48295

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT + 50 + - - COUNT( * ) + + ( - 58 )
----
-7

skipif mysql # not compatible
query I rowsort label-5826
SELECT + 50 + - - COUNT ( * ) + + ( - 58 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT ALL - 62 + 47 DIV + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - 62 + 47 / + COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5828
SELECT + 20 + 32, 99 * NULLIF ( + - 97, - CAST( NULL AS SIGNED ) * - - 97 * - COUNT( * ) + + ( COUNT( * ) ) + + MAX( 95 ) + COUNT( * ) * + 24 ) + + - ( COUNT( * ) ) AS col1
----
52
-9604

skipif mysql # not compatible
query II rowsort label-5828
SELECT + 20 + 32, 99 * NULLIF ( + - 97, - CAST ( NULL AS INTEGER ) * - - 97 * - COUNT ( * ) + + ( COUNT ( * ) ) + + MAX ( 95 ) + COUNT ( * ) * + 24 ) + + - ( COUNT ( * ) ) AS col1
----
52
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL 26 + + 96 + - 75 * MIN( ALL ( - 18 ) ) col1
----
1472

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL 26 + + 96 + - 75 * MIN ( ALL ( - 18 ) ) col1
----
1472

query I rowsort
SELECT + 96 + + 70 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT ALL - 68 / 56 / 37 + - CASE + 53 WHEN 20 THEN + + COUNT( * ) + - COUNT( * ) * - 26 * - + 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL - 68 / 56 / 37 + - CASE + 53 WHEN 20 THEN + + COUNT ( * ) + - COUNT ( * ) * - 26 * - + 80 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT ALL 38 DIV 62 + + 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL 38 / 62 + + 91 AS col0
----
91

query II rowsort
SELECT 93 AS col2, - 33 AS col2
----
93
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT + 62 AS col0, CASE - COUNT( * ) WHEN + - CASE NULLIF ( 74, + 66 ) WHEN - 47 / + 20 THEN + 28 END THEN - + 14 ELSE NULL END + 17 AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-5834
SELECT + 62 AS col0, CASE - COUNT ( * ) WHEN + - CASE NULLIF ( 74, + 66 ) WHEN - 47 / + 20 THEN + 28 END THEN - + 14 ELSE NULL END + 17 AS col1
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT 73 + + COUNT( * ) - ( + + 12 )
----
62

skipif mysql # not compatible
query I rowsort label-5835
SELECT 73 + + COUNT ( * ) - ( + + 12 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT - COALESCE ( + COALESCE ( + 11, NULLIF ( COUNT( * ), 77 ), + - 15 - + + MAX( ALL - - 69 ) ), + 35 )
----
-11

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT - COALESCE ( + COALESCE ( + 11, NULLIF ( COUNT ( * ), 77 ), + - 15 - + + MAX ( ALL - - 69 ) ), + 35 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL - NULLIF ( - 4, + + ( + + COUNT( ALL + 96 ) ) + - 10 * + + 48 + - ( ( - 39 ) ) / + - 23 + 86 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - NULLIF ( - 4, + + ( + + COUNT ( ALL + 96 ) ) + - 10 * + + 48 + - ( ( - 39 ) ) / + - 23 + 86 ) AS col2
----
4

query I rowsort
SELECT 54 * 3 col1
----
162

query I rowsort
SELECT ALL ( 90 ) * - + 82 AS col0
----
-7380

query II rowsort
SELECT + 15 AS col1, + 50
----
15
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL - 51 - - MAX( - - ( + + 25 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - 51 - - MAX ( - - ( + + 25 ) ) AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5842
SELECT + - 12 AS col2, 64 + + COUNT( * ) + + 6 + 47 * ( + 4 ) + - + COUNT( * ) + COUNT( * ) DIV 71 DIV - + 18 col0
----
-12
258

skipif mysql # not compatible
query II rowsort label-5842
SELECT + - 12 AS col2, 64 + + COUNT ( * ) + + 6 + 47 * ( + 4 ) + - + COUNT ( * ) + COUNT ( * ) / 71 / - + 18 col0
----
-12
258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5843
SELECT COALESCE ( - + 33, + 0 ) * 71 DIV + COUNT( * ) * + COUNT( * ) * 1 - - 64 AS col2
----
-2279

skipif mysql # not compatible
query I rowsort label-5843
SELECT COALESCE ( - + 33, + 0 ) * 71 / + COUNT ( * ) * + COUNT ( * ) * 1 - - 64 AS col2
----
-2279

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT ALL - + 51 AS col0, - COUNT( * ) + - - 45
----
-51
44

skipif mysql # not compatible
query II rowsort label-5844
SELECT ALL - + 51 AS col0, - COUNT ( * ) + - - 45
----
-51
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT + 9 * + ( + - COUNT( + - 69 ) ) + - 22
----
-31

skipif mysql # not compatible
query I rowsort label-5845
SELECT + 9 * + ( + - COUNT ( + - 69 ) ) + - 22
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5846
SELECT DISTINCT + 43 DIV + 18 + 69 * - - COUNT( DISTINCT - 82 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + 43 / + 18 + 69 * - - COUNT ( DISTINCT - 82 ) AS col0
----
71

query II rowsort
SELECT DISTINCT - 63 AS col2, 20
----
-63
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5848
SELECT 22 DIV COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5848
SELECT 22 / COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT + 17 * - COUNT( + 28 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5849
SELECT + 17 * - COUNT ( + 28 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT + CASE 28 WHEN + - 9 THEN + 30 * + 67 * + - 94 + + 17 END * + - CASE - - 33 WHEN + COUNT( * ) THEN NULL ELSE + - COUNT( * ) * + + 70 + + + COUNT( * ) - SUM( - - 36 ) END * + 93 / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT + CASE 28 WHEN + - 9 THEN + 30 * + 67 * + - 94 + + 17 END * + - CASE - - 33 WHEN + COUNT ( * ) THEN NULL ELSE + - COUNT ( * ) * + + 70 + + + COUNT ( * ) - SUM ( - - 36 ) END * + 93 / 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - + 29 * - CASE - 76 WHEN 88 * ( ( - NULLIF ( 0, - - 47 / + 6 ) ) ) * - COUNT( * ) * + 40 - - 56 THEN NULL ELSE - - 54 END AS col0
----
1566

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - + 29 * - CASE - 76 WHEN 88 * ( ( - NULLIF ( 0, - - 47 / + 6 ) ) ) * - COUNT ( * ) * + 40 - - 56 THEN NULL ELSE - - 54 END AS col0
----
1566

query I rowsort
SELECT - 70 + - 64 AS col1
----
-134

query I rowsort
SELECT - 83 + - ( + 9 ) AS col0
----
-92

query I rowsort
SELECT ALL + 58 + - - 9 col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5855
SELECT - - 94, 80 + + 54 - + NULLIF ( + 81, - NULLIF ( COUNT( * ), + 87 * 56 ) ) - - + 76 + + - 71 * - 81 * - 28 * - 84 AS col2
----
94
13526481

skipif mysql # not compatible
query II rowsort label-5855
SELECT - - 94, 80 + + 54 - + NULLIF ( + 81, - NULLIF ( COUNT ( * ), + 87 * 56 ) ) - - + 76 + + - 71 * - 81 * - 28 * - 84 AS col2
----
94
13526481

onlyif mysql # aggregate syntax: 
query II rowsort label-5856
SELECT COUNT( * ) AS col2, 13 AS col2
----
1
13

skipif mysql # not compatible
query II rowsort label-5856
SELECT COUNT ( * ) AS col2, 13 AS col2
----
1
13

query I rowsort
SELECT ALL - + ( + + 70 ) + 10 + - - 70 AS col2
----
10

query I rowsort
SELECT - + ( + - 4 )
----
4

query II rowsort
SELECT - 6 AS col2, 75 col1
----
-6
75

query I rowsort
SELECT 70 * - 99 + + 67
----
-6863

query I rowsort
SELECT + 33 + - COALESCE ( 7, 36 ) * - ( 93 ) + + 34
----
718

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL CASE + + 48 WHEN - 59 + - 5 THEN ( ( - 20 ) ) ELSE NULL END + 66 + + 92 * COUNT( * ) * ( + + CASE + - 89 WHEN - - 30 THEN - ( 66 ) END ) * 88 - 78 - + 37 * 17 + - + ( + 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL CASE + + 48 WHEN - 59 + - 5 THEN ( ( - 20 ) ) ELSE NULL END + 66 + + 92 * COUNT ( * ) * ( + + CASE + - 89 WHEN - - 30 THEN - ( 66 ) END ) * 88 - 78 - + 37 * 17 + - + ( + 84 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT + SUM( + - 49 ) + 43 - + + 64 + - 74 + - 63 + COALESCE ( - 46, 68 * + + 62 ) AS col1
----
-253

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT + SUM ( + - 49 ) + 43 - + + 64 + - 74 + - 63 + COALESCE ( - 46, 68 * + + 62 ) AS col1
----
-253

query II rowsort
SELECT ALL ( 80 ) + - 64 AS col2, 90 * ( + 9 )
----
16
810

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT NULLIF ( 29, + - 22 * 44 + - + CASE + 28 WHEN - + 98 THEN NULL ELSE + 17 - - ( + - COUNT( * ) ) * + 46 / + 89 END ) * 77 AS col0
----
2233

skipif mysql # not compatible
query I rowsort label-5865
SELECT NULLIF ( 29, + - 22 * 44 + - + CASE + 28 WHEN - + 98 THEN NULL ELSE + 17 - - ( + - COUNT ( * ) ) * + 46 / + 89 END ) * 77 AS col0
----
2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT DISTINCT CAST( - 58 AS SIGNED ) + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT CAST ( - 58 AS INTEGER ) + 58 AS col0
----
0

query I rowsort
SELECT ALL 8 + + + 86 * - 29 + - - 84 AS col2
----
-2402

query I rowsort
SELECT ALL ( + 73 ) + 96 + 8
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5869
SELECT COUNT( * ) - + 68 + 14 - + - 73 DIV - + COUNT( * )
----
-126

skipif mysql # not compatible
query I rowsort label-5869
SELECT COUNT ( * ) - + 68 + 14 - + - 73 / - + COUNT ( * )
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT ( CAST( NULL AS SIGNED ) ) * + - 33 / + - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT ( CAST ( NULL AS INTEGER ) ) * + - 33 / + - 44 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT DISTINCT CAST( NULL AS SIGNED ) + 45 + + - 44 + + - 43 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 45 + + - 44 + + - 43 * + 77
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT 64 DIV - ( - 11 )
----
5

skipif mysql # not compatible
query I rowsort label-5872
SELECT 64 / - ( - 11 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT 35 * + MIN( + 45 )
----
1575

skipif mysql # not compatible
query I rowsort label-5873
SELECT 35 * + MIN ( + 45 )
----
1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT DISTINCT 78 - + SUM( + 83 ) - 61 + SUM( CAST( NULL AS SIGNED ) ) + - MIN( + + 91 ) / ( + 9 ) + - - ( - 85 ) + + CAST( - COUNT( * ) AS SIGNED ) * 53 + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT 78 - + SUM ( + 83 ) - 61 + SUM ( CAST ( NULL AS INTEGER ) ) + - MIN ( + + 91 ) / ( + 9 ) + - - ( - 85 ) + + CAST ( - COUNT ( * ) AS INTEGER ) * 53 + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 60 - - 73 + 94
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT - 50 * + - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT - 50 * + - COUNT ( * ) AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT 80 * - 36 * + - CAST( NULL AS SIGNED ) * + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT 80 * - 36 * + - CAST ( NULL AS INTEGER ) * + + 29
----
NULL

query I rowsort
SELECT 68 + - + 43 - 7 AS col1
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5879
SELECT ALL + 31 * 22 / ( - CAST( NULL AS DECIMAL ) ) + + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL + 31 * 22 / ( - CAST ( NULL AS REAL ) ) + + + 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT + 7 * 74 - + + 9 + - 59 + - + 42 + - COUNT( * ) AS col1
----
407

skipif mysql # not compatible
query I rowsort label-5880
SELECT + 7 * 74 - + + 9 + - 59 + - + 42 + - COUNT ( * ) AS col1
----
407

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT 57 - + - 39 + + 35 DIV + 3
----
107

skipif mysql # not compatible
query I rowsort label-5881
SELECT 57 - + - 39 + + 35 / + 3
----
107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5882
SELECT ALL - 14 * + - CAST( NULL AS DECIMAL ) * - + COUNT( * ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL - 14 * + - CAST ( NULL AS REAL ) * - + COUNT ( * ) * 56
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5883
SELECT 88 + + - 64, 74 DIV - 94 AS col2
----
24
0

skipif mysql # not compatible
query II rowsort label-5883
SELECT 88 + + - 64, 74 / - 94 AS col2
----
24
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT + ( - MAX( - 23 ) ), 86 AS col1
----
23
86

skipif mysql # not compatible
query II rowsort label-5884
SELECT + ( - MAX ( - 23 ) ), 86 AS col1
----
23
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT + + COALESCE ( - MAX( ALL 46 ), + 27 + + - 48 ) * 99 AS col1
----
-4554

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT + + COALESCE ( - MAX ( ALL 46 ), + 27 + + - 48 ) * 99 AS col1
----
-4554

query I rowsort
SELECT DISTINCT + 37 * + 39 col2
----
1443

query I rowsort
SELECT + 31 * 84 + 2 AS col0
----
2606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT + COUNT( 64 ) DIV COUNT( * ) * - 40 DIV 99 * + 23
----
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT + COUNT ( 64 ) / COUNT ( * ) * - 40 / 99 * + 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL - - CASE - + SUM( DISTINCT + 94 ) WHEN + AVG ( - 87 ) * - + 57 THEN + + 57 ELSE NULL END + - - 7 / SUM( ALL 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - - CASE - + SUM ( DISTINCT + 94 ) WHEN + AVG ( - 87 ) * - + 57 THEN + + 57 ELSE NULL END + - - 7 / SUM ( ALL 28 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT - 89 * 55 + - COUNT( * ) + 4 * + - 45 + 10 col2
----
-5066

skipif mysql # not compatible
query I rowsort label-5890
SELECT - 89 * 55 + - COUNT ( * ) + 4 * + - 45 + 10 col2
----
-5066

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5891
SELECT COUNT( * ) + 23, 74 * 70 DIV 1 + - ( + 23 ) + - 43 AS col2
----
24
5114

skipif mysql # not compatible
query II rowsort label-5891
SELECT COUNT ( * ) + 23, 74 * 70 / 1 + - ( + 23 ) + - 43 AS col2
----
24
5114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5892
SELECT ALL - + COUNT( * ) DIV - + 11
----
0

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - + COUNT ( * ) / - + 11
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT - CAST( NULL AS SIGNED ) / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT - CAST ( NULL AS INTEGER ) / + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT 10 - + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5894
SELECT 10 - + COUNT ( * ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5895
SELECT DISTINCT 72, MIN( - ( + 40 ) ) * + + ( + 30 ) + + - 16 - - 75 * + 34 - - CAST( NULL AS DECIMAL ) / - NULLIF ( 65, - 73 ) * + + 97 + CAST( + ( + 17 ) AS SIGNED ) + - 87 + + 32 AS col2
----
72
NULL

skipif mysql # not compatible
query II rowsort label-5895
SELECT DISTINCT 72, MIN ( - ( + 40 ) ) * + + ( + 30 ) + + - 16 - - 75 * + 34 - - CAST ( NULL AS REAL ) / - NULLIF ( 65, - 73 ) * + + 97 + CAST ( + ( + 17 ) AS INTEGER ) + - 87 + + 32 AS col2
----
72
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5896
SELECT 19 DIV + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5896
SELECT 19 / + 65 AS col0
----
0

query I rowsort
SELECT ALL - 25 + - 66
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5898
SELECT DISTINCT COALESCE ( 27, - COALESCE ( + 75, ( - CAST( NULL AS SIGNED ) ), 74 ) DIV - - 2 + - MIN( DISTINCT - 13 ) - - - 13 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT COALESCE ( 27, - COALESCE ( + 75, ( - CAST ( NULL AS INTEGER ) ), 74 ) / - - 2 + - MIN ( DISTINCT - 13 ) - - - 13 ) AS col2
----
27

query I rowsort
SELECT DISTINCT - 16 * + 33
----
-528

query I rowsort
SELECT ALL 9 + + 77
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT ALL 67 DIV + COALESCE ( + 61, + 69 * 43 )
----
1

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL 67 / + COALESCE ( + 61, + 69 * 43 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT - 91 - + NULLIF ( 21, + - COUNT( * ) ) AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-5902
SELECT - 91 - + NULLIF ( 21, + - COUNT ( * ) ) AS col1
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-5903
SELECT - 88, CASE - 83 WHEN - + 47 THEN + 81 WHEN + MIN( ALL + 15 ) THEN NULL END AS col1
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-5903
SELECT - 88, CASE - 83 WHEN - + 47 THEN + 81 WHEN + MIN ( ALL + 15 ) THEN NULL END AS col1
----
-88
NULL

query I rowsort
SELECT - 37 + - 35
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT DISTINCT SUM( DISTINCT + - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT SUM ( DISTINCT + - 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - COUNT( * ) + + 41 col2
----
40

skipif mysql # not compatible
query I rowsort label-5906
SELECT - COUNT ( * ) + + 41 col2
----
40

query I rowsort
SELECT ALL + 63 - - 2 * - - 65 * + + 94 AS col1
----
12283

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT DISTINCT COALESCE ( - + 30, - 5, - ( COUNT( * ) ) * - 57 + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT COALESCE ( - + 30, - 5, - ( COUNT ( * ) ) * - 57 + COUNT ( * ) )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5909
SELECT ALL ( + 5 ) * + CAST( NULL AS SIGNED ) - - 70 * - - COUNT( * ) * - - 55 AS col1, ( + 29 ) AS col1
----
NULL
29

skipif mysql # not compatible
query II rowsort label-5909
SELECT ALL ( + 5 ) * + CAST ( NULL AS INTEGER ) - - 70 * - - COUNT ( * ) * - - 55 AS col1, ( + 29 ) AS col1
----
NULL
29

query I rowsort
SELECT + 1 * - 33 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT 24 * - COUNT( * ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT 24 * - COUNT ( * ) col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5912
SELECT - COUNT( * ) col2, 49 * + - 83 * - - CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5912
SELECT - COUNT ( * ) col2, 49 * + - 83 * - - CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5913
SELECT - 2 DIV + 14 + + 12 + - 26 DIV 90 DIV - + 43 - - NULLIF ( + 67, + + 50 * + + 72 + + ( - 61 ) ) * + 90 * + - ( - 3 ) * 1 * + CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
-18078

skipif mysql # not compatible
query I rowsort label-5913
SELECT - 2 / + 14 + + 12 + - 26 / 90 / - + 43 - - NULLIF ( + 67, + + 50 * + + 72 + + ( - 61 ) ) * + 90 * + - ( - 3 ) * 1 * + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
-18078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT + 77 + + 52 * - CAST( + + 78 AS SIGNED )
----
-3979

skipif mysql # not compatible
query I rowsort label-5914
SELECT + 77 + + 52 * - CAST ( + + 78 AS INTEGER )
----
-3979

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5915
SELECT - 33 AS col1, CAST( + ( 96 ) AS SIGNED ) AS col1
----
-33
96

skipif mysql # not compatible
query II rowsort label-5915
SELECT - 33 AS col1, CAST ( + ( 96 ) AS INTEGER ) AS col1
----
-33
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL + - 81 * + COUNT( * ) + - 17
----
-98

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL + - 81 * + COUNT ( * ) + - 17
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT DISTINCT 78 DIV - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT 78 / - 79 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT ALL - CAST( NULL AS SIGNED ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL - CAST ( NULL AS INTEGER ) * + 19
----
NULL

query I rowsort
SELECT DISTINCT - 7 * - 35 + - 49 + + NULLIF ( + 12, + 6 ) AS col1
----
208

query II rowsort
SELECT 3 col1, 69 * + 78 + - + NULLIF ( - 6, + - 27 ) AS col0
----
3
5388

query II rowsort
SELECT 40 AS col2, + 31
----
40
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT ALL - + 98 * + 48 + - + 0 DIV + + 25
----
-4704

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL - + 98 * + 48 + - + 0 / + + 25
----
-4704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT ALL + - 32 * + 10 + - 59 DIV - MAX( + 46 ) AS col2
----
-319

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + - 32 * + 10 + - 59 / - MAX ( + 46 ) AS col2
----
-319

query I rowsort
SELECT + 80 * + 46 AS col0
----
3680

query I rowsort
SELECT ALL 86 * - 78 * 76 * 78 AS col2
----
-39765024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5926
SELECT ALL COALESCE ( + ( + COUNT( * ) ), + CASE - 3 WHEN COUNT( * ) THEN NULL WHEN - CAST( - + 60 AS SIGNED ) THEN + CASE + - ( - - 45 ) WHEN - 99 * - + 24 THEN + 65 * MIN( ALL - 79 ) * + 45 * - 32 + + CASE + - 98 WHEN + 17 THEN - + 22 * + - MAX( ALL + + 12 ) * - + 92 * + + 21 + 90 ELSE 66 END WHEN CAST( + 20 AS SIGNED ) THEN ( - - 84 ) ELSE NULL END * + 1 * 79 + + 1 ELSE NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL COALESCE ( + ( + COUNT ( * ) ), + CASE - 3 WHEN COUNT ( * ) THEN NULL WHEN - CAST ( - + 60 AS INTEGER ) THEN + CASE + - ( - - 45 ) WHEN - 99 * - + 24 THEN + 65 * MIN ( ALL - 79 ) * + 45 * - 32 + + CASE + - 98 WHEN + 17 THEN - + 22 * + - MAX ( ALL + + 12 ) * - + 92 * + + 21 + 90 ELSE 66 END WHEN CAST ( + 20 AS INTEGER ) THEN ( - - 84 ) ELSE NULL END * + 1 * 79 + + 1 ELSE NULL END )
----
1

query I rowsort
SELECT ALL 3 + 18 AS col0
----
21

query I rowsort
SELECT ALL CASE - 75 WHEN 23 THEN - 11 * - 89 + 14 + ( - 88 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5929
SELECT DISTINCT - 85 / + - COUNT( * ) * 54 * + - 58 * COUNT( * ) / + CAST( NULL AS SIGNED ) * - 5 / + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT - 85 / + - COUNT ( * ) * 54 * + - 58 * COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - 5 / + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5930
SELECT COUNT( - 13 ), - MIN( DISTINCT 22 ) * - ( - 72 ) + + + 64 * + 83 + + + 49 + - - 13 + + 49 DIV - ( - 26 ) col0
----
1
3791

skipif mysql # not compatible
query II rowsort label-5930
SELECT COUNT ( - 13 ), - MIN ( DISTINCT 22 ) * - ( - 72 ) + + + 64 * + 83 + + + 49 + - - 13 + + 49 / - ( - 26 ) col0
----
1
3791

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT DISTINCT COUNT( DISTINCT - + 60 )
----
1

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT COUNT ( DISTINCT - + 60 )
----
1

query I rowsort
SELECT - ( ( 37 ) )
----
-37

query I rowsort
SELECT ALL CASE - 77 WHEN - 75 - + + 79 + - - 48 * + + 78 * + + 93 - 46 THEN - 99 * 16 * 47 + + 72 * - 91 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT - 14 * CAST( + 32 AS SIGNED ) * - - 10
----
-4480

skipif mysql # not compatible
query I rowsort label-5934
SELECT - 14 * CAST ( + 32 AS INTEGER ) * - - 10
----
-4480

query I rowsort
SELECT ALL - 67 * + 49 AS col0
----
-3283

query I rowsort
SELECT DISTINCT + 13 - - 76
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5937
SELECT ALL COUNT( ALL CAST( 85 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL COUNT ( ALL CAST ( 85 AS INTEGER ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5938
SELECT ALL CAST( - 34 AS SIGNED ), - 15 + ( - COUNT( * ) ) AS col0
----
-34
-16

skipif mysql # not compatible
query II rowsort label-5938
SELECT ALL CAST ( - 34 AS INTEGER ), - 15 + ( - COUNT ( * ) ) AS col0
----
-34
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5939
SELECT - COUNT( * ) DIV - + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5939
SELECT - COUNT ( * ) / - + 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5940
SELECT ALL ( - COUNT( * ) ) AS col0, - 28
----
-1
-28

skipif mysql # not compatible
query II rowsort label-5940
SELECT ALL ( - COUNT ( * ) ) AS col0, - 28
----
-1
-28

query II rowsort
SELECT - - 17 - + 26 col2, 55
----
-9
55

query I rowsort
SELECT ALL + COALESCE ( - + ( - + 58 ), + 95 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT - 39 * CAST( NULL AS SIGNED ) + - - 40 - + + 92 / 10 * 72 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT - 39 * CAST ( NULL AS INTEGER ) + - - 40 - + + 92 / 10 * 72 * + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 67 * + NULLIF ( 7, - + 86 )
----
469

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT ALL 43 DIV 96 + + 67 * + 45
----
3015

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL 43 / 96 + + 67 * + 45
----
3015

query I rowsort
SELECT DISTINCT + ( + + 42 ) * 24 AS col2
----
1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5947
SELECT + + 93 * + - COUNT( * ) - 9 * - MAX( - 10 ) AS col0, - 34 DIV 99
----
-183
0

skipif mysql # not compatible
query II rowsort label-5947
SELECT + + 93 * + - COUNT ( * ) - 9 * - MAX ( - 10 ) AS col0, - 34 / 99
----
-183
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5948
SELECT + NULLIF ( + 84, + 70 / - 73 ) AS col1, CAST( NULL AS SIGNED ) * - 61 AS col2
----
84
NULL

skipif mysql # not compatible
query II rowsort label-5948
SELECT + NULLIF ( + 84, + 70 / - 73 ) AS col1, CAST ( NULL AS INTEGER ) * - 61 AS col2
----
84
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT + 60 * + CAST( NULL AS SIGNED ) + - + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT + 60 * + CAST ( NULL AS INTEGER ) + - + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT + - ( MAX( DISTINCT + 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-5950
SELECT + - ( MAX ( DISTINCT + 17 ) )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT DISTINCT + + 20 DIV - 87 + - ( - 10 ) DIV - COALESCE ( + 37, 36 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + + 20 / - 87 + - ( - 10 ) / - COALESCE ( + 37, 36 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - - 16 * + 50 * 36 * MIN( - + 6 ) + 48
----
-172752

skipif mysql # not compatible
query I rowsort label-5952
SELECT - - 16 * + 50 * 36 * MIN ( - + 6 ) + 48
----
-172752

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5953
SELECT ALL + - MIN( ALL - - NULLIF ( - + 83, - CAST( NULL AS DECIMAL ) ) ) * 18 + - - 34 AS col1
----
1528

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + - MIN ( ALL - - NULLIF ( - + 83, - CAST ( NULL AS REAL ) ) ) * 18 + - - 34 AS col1
----
1528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT DISTINCT 78 / - - CAST( NULL AS SIGNED ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT 78 / - - CAST ( NULL AS INTEGER ) * + 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5955
SELECT ALL 96 DIV + - 72 AS col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-5955
SELECT ALL 96 / + - 72 AS col1, COUNT ( * )
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5956
SELECT ALL CAST( NULL AS SIGNED ) / - CASE - - 58 WHEN + - 92 / COUNT( * ) / - 93 THEN + 13 * 79 + CAST( - 28 AS SIGNED ) WHEN + 53 THEN NULL ELSE NULL END * 80 * - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL CAST ( NULL AS INTEGER ) / - CASE - - 58 WHEN + - 92 / COUNT ( * ) / - 93 THEN + 13 * 79 + CAST ( - 28 AS INTEGER ) WHEN + 53 THEN NULL ELSE NULL END * 80 * - 2 AS col2
----
NULL

query II rowsort
SELECT + 21, 81 - + + ( + 96 ) AS col0
----
21
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5958
SELECT COUNT( * ) / + 19 / + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT COUNT ( * ) / + 19 / + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT ( 87 ) / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT ( 87 ) / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5960
SELECT ALL COUNT( DISTINCT - + CASE + - 11 WHEN - - 21 + 72 THEN 7 * + 58 WHEN - - ( - 0 ) / + + 45 + 89 THEN - CAST( - + 79 AS SIGNED ) END ) * + 63 * + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL COUNT ( DISTINCT - + CASE + - 11 WHEN - - 21 + 72 THEN 7 * + 58 WHEN - - ( - 0 ) / + + 45 + 89 THEN - CAST ( - + 79 AS INTEGER ) END ) * + 63 * + 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT COUNT( * ) * - + NULLIF ( + 19, + - 90 * + 84 + 73 ) * + COALESCE ( COUNT( 98 ), - - 37 * + + ( + COUNT( * ) ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5961
SELECT COUNT ( * ) * - + NULLIF ( + 19, + - 90 * + 84 + 73 ) * + COALESCE ( COUNT ( 98 ), - - 37 * + + ( + COUNT ( * ) ) ) AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT DISTINCT COALESCE ( 19, + 6 * + + 74 * - + COALESCE ( 64, - 18, - 42 ) * - + CAST( ( - 99 ) AS SIGNED ) - - 48 + - - 20 ) * - 8 + - 8 col0
----
-160

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT COALESCE ( 19, + 6 * + + 74 * - + COALESCE ( 64, - 18, - 42 ) * - + CAST ( ( - 99 ) AS INTEGER ) - - 48 + - - 20 ) * - 8 + - 8 col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT COUNT( * ) + + 86 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5963
SELECT COUNT ( * ) + + 86 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT 79 - - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5964
SELECT 79 - - COUNT ( * ) AS col1
----
80

query I rowsort
SELECT 53 + 6 * - 71 AS col2
----
-373

query I rowsort
SELECT 89 - + - 6 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5967
SELECT ALL + 46 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL + 46 / 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5968
SELECT CASE - 29 WHEN + 43 * + - 64 + - + 52 THEN CAST( NULL AS SIGNED ) - - 39 + - 56 - + CAST( + - 48 AS SIGNED ) * MAX( 45 ) WHEN 39 * - 27 THEN NULL ELSE + 74 END + + - COUNT( DISTINCT + 67 ) + 30 * - 91
----
-2657

skipif mysql # not compatible
query I rowsort label-5968
SELECT CASE - 29 WHEN + 43 * + - 64 + - + 52 THEN CAST ( NULL AS INTEGER ) - - 39 + - 56 - + CAST ( + - 48 AS INTEGER ) * MAX ( 45 ) WHEN 39 * - 27 THEN NULL ELSE + 74 END + + - COUNT ( DISTINCT + 67 ) + 30 * - 91
----
-2657

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT 98 * MAX( + 56 )
----
5488

skipif mysql # not compatible
query I rowsort label-5969
SELECT 98 * MAX ( + 56 )
----
5488

query I rowsort
SELECT ALL + 37 + - - 21
----
58

query I rowsort
SELECT ALL - + 95 + - + 16 col0
----
-111

query I rowsort
SELECT DISTINCT - 24 + - 88
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT NULLIF ( + + ( ( 23 ) ), - 0 ) * + - MIN( DISTINCT + + 17 ) col2
----
-391

skipif mysql # not compatible
query I rowsort label-5973
SELECT NULLIF ( + + ( ( 23 ) ), - 0 ) * + - MIN ( DISTINCT + + 17 ) col2
----
-391

query I rowsort
SELECT ALL - ( - + 2 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5975
SELECT + + CAST( 18 AS SIGNED ) DIV + COUNT( * ) + - 70 col2
----
-52

skipif mysql # not compatible
query I rowsort label-5975
SELECT + + CAST ( 18 AS INTEGER ) / + COUNT ( * ) + - 70 col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5976
SELECT COUNT( * ) DIV 35 + - 9 * - 5 + 58
----
103

skipif mysql # not compatible
query I rowsort label-5976
SELECT COUNT ( * ) / 35 + - 9 * - 5 + 58
----
103

query I rowsort
SELECT DISTINCT - - 78 + 85
----
163

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5978
SELECT ALL + - 16 + + CAST( NULL AS SIGNED ) / 69 / + 18 * + CAST( NULL AS DECIMAL ) + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL + - 16 + + CAST ( NULL AS INTEGER ) / 69 / + 18 * + CAST ( NULL AS REAL ) + + 28
----
NULL

query I rowsort
SELECT - 28 * - 35
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL + - COUNT( * ) * 83
----
-83

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL + - COUNT ( * ) * 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT DISTINCT - NULLIF ( 4, + COUNT( * ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT - NULLIF ( 4, + COUNT ( * ) ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5982
SELECT + 3 + - COUNT( ALL + - 59 ) AS col0, - ( + 28 ) AS col1
----
2
-28

skipif mysql # not compatible
query II rowsort label-5982
SELECT + 3 + - COUNT ( ALL + - 59 ) AS col0, - ( + 28 ) AS col1
----
2
-28

query II rowsort
SELECT + 19, 39 AS col1
----
19
39

query I rowsort
SELECT DISTINCT + 85 * + 72 * + - 78 col0
----
-477360

query II rowsort
SELECT 28 AS col1, 2 * 33 col2
----
28
66

query I rowsort
SELECT 29 * 19
----
551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5987
SELECT DISTINCT - 15, - 34 * + CAST( NULL AS SIGNED ) + + COUNT( * ) / + 74 AS col2
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-5987
SELECT DISTINCT - 15, - 34 * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) / + 74 AS col2
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT CASE - COUNT( * ) WHEN COUNT( * ) * - SUM( + 79 ) * - COUNT( * ) THEN + 38 END + + 29 * + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT CASE - COUNT ( * ) WHEN COUNT ( * ) * - SUM ( + 79 ) * - COUNT ( * ) THEN + 38 END + + 29 * + 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL COUNT( - - ( 68 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL COUNT ( - - ( 68 ) )
----
1

query II rowsort
SELECT ALL 41, + 2 AS col2
----
41
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT ( + - CASE 72 WHEN + COUNT( * ) THEN NULL WHEN + - SUM( + 3 ) THEN 28 ELSE CASE + - 72 WHEN 37 + - - COALESCE ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + CAST( - + CAST( - 55 AS SIGNED ) AS SIGNED ) * - 21 ) + - COUNT( * ) THEN - - 31 WHEN - - 31 THEN + 85 ELSE NULL END END ) / - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT ( + - CASE 72 WHEN + COUNT ( * ) THEN NULL WHEN + - SUM ( + 3 ) THEN 28 ELSE CASE + - 72 WHEN 37 + - - COALESCE ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + CAST ( - + CAST ( - 55 AS INTEGER ) AS INTEGER ) * - 21 ) + - COUNT ( * ) THEN - - 31 WHEN - - 31 THEN + 85 ELSE NULL END END ) / - 73 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT DISTINCT 84 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT 84 / 44
----
1

query II rowsort
SELECT 53 * 96 AS col0, 14
----
5088
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5994
SELECT DISTINCT 95 * + - COUNT( * ), 55 AS col0
----
-95
55

skipif mysql # not compatible
query II rowsort label-5994
SELECT DISTINCT 95 * + - COUNT ( * ), 55 AS col0
----
-95
55

query II rowsort
SELECT DISTINCT 67 AS col1, - 17
----
67
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT ALL 26 + - COUNT( * ) + - - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL 26 + - COUNT ( * ) + - - COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL + COUNT( * ) + COALESCE ( - 83, - 19 * - COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + COUNT ( * ) + COALESCE ( - 83, - 19 * - COUNT ( * ) )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5998
SELECT ALL + + 55 + + 25 col1, 1 + + COUNT( * )
----
80
2

skipif mysql # not compatible
query II rowsort label-5998
SELECT ALL + + 55 + + 25 col1, 1 + + COUNT ( * )
----
80
2

query I rowsort
SELECT - + ( - 79 )
----
79

query I rowsort
SELECT 37 - + + NULLIF ( + 77, - 84 * + 31 + - 41 + 98 + + - 34 ) col2
----
-40

query II rowsort
SELECT 85, - 17 AS col0
----
85
-17

query I rowsort
SELECT - ( - - ( 81 ) ) AS col1
----
-81

query I rowsort
SELECT - 85 * 55 + 19 AS col1
----
-4656

query II rowsort
SELECT - 25, 49 AS col1
----
-25
49

onlyif mysql # DIV for integer division: 
query II rowsort label-6005
SELECT + 58 col2, 1 DIV - 15
----
58
0

skipif mysql # not compatible
query II rowsort label-6005
SELECT + 58 col2, 1 / - 15
----
58
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6006
SELECT 6 - + - 97 - + ( 69 ) - 78 DIV 69 + + 20 DIV - 92 * - 56 AS col2, 14 AS col0
----
33
14

skipif mysql # not compatible
query II rowsort label-6006
SELECT 6 - + - 97 - + ( 69 ) - 78 / 69 + + 20 / - 92 * - 56 AS col2, 14 AS col0
----
33
14

query II rowsort
SELECT ALL + 30 * + 68, + 25 AS col2
----
2040
25

query I rowsort
SELECT - - 73 * + - 72 * + 27 + - 51 - + 99 + - 85 AS col2
----
-142147

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL + - 79 * + COUNT( * ) - MIN( DISTINCT - + 56 ) - + 2 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + - 79 * + COUNT ( * ) - MIN ( DISTINCT - + 56 ) - + 2 AS col2
----
-25

query I rowsort
SELECT DISTINCT + - CASE - - 70 WHEN 99 THEN ( + - 31 ) + + 47 END AS col0
----
NULL

query I rowsort
SELECT ALL - + 71 * + 11 AS col0
----
-781

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT - ( - + COUNT( * ) ) * + + NULLIF ( - MAX( + 3 ), - - 89 + + + COUNT( * ) - COUNT( ALL - 6 ) ) + - 59 - + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-6012
SELECT - ( - + COUNT ( * ) ) * + + NULLIF ( - MAX ( + 3 ), - - 89 + + + COUNT ( * ) - COUNT ( ALL - 6 ) ) + - 59 - + COUNT ( * )
----
-63

query I rowsort
SELECT - - 83 - + - 70
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT ALL + MAX( - CAST( 95 AS SIGNED ) ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL + MAX ( - CAST ( 95 AS INTEGER ) ) AS col2
----
-95

query I rowsort
SELECT - 91 + - 51
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - - 94
----
95

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - - 94
----
95

query I rowsort
SELECT - CASE - + 19 WHEN - 91 THEN - 81 ELSE NULL END * - ( 55 )
----
NULL

query I rowsort
SELECT DISTINCT + 63 * - 41
----
-2583

query I rowsort
SELECT ALL - 9 + - 22
----
-31

query I rowsort
SELECT ALL + 46 * + - 11 AS col0
----
-506

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6021
SELECT - NULLIF ( 91, + 55 * + COUNT( * ) + - + 57 / + 92 + NULLIF ( - 56, + - 95 * - + CASE WHEN NOT ( ( NOT ( - 29 NOT BETWEEN + 76 + + COUNT( * ) - + + 58 + + - ( + - COUNT( * ) ) * - 44 AND 10 ) ) ) THEN NULL ELSE - CAST( NULL AS DECIMAL ) END ) ) + + - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-6021
SELECT - NULLIF ( 91, + 55 * + COUNT ( * ) + - + 57 / + 92 + NULLIF ( - 56, + - 95 * - + CASE WHEN NOT ( ( NOT ( - 29 NOT BETWEEN + 76 + + COUNT ( * ) - + + 58 + + - ( + - COUNT ( * ) ) * - 44 AND 10 ) ) ) THEN NULL ELSE - CAST ( NULL AS REAL ) END ) ) + + - COUNT ( * )
----
-92

query I rowsort
SELECT ALL + 37 + 77 + + 35 + - 61 + + - 3
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT - COUNT( * ) - - 61 + + COUNT( DISTINCT 71 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6023
SELECT - COUNT ( * ) - - 61 + + COUNT ( DISTINCT 71 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL - 46 * ( - SUM( 50 ) ) AS col0
----
2300

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL - 46 * ( - SUM ( 50 ) ) AS col0
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT + 92 + MIN( ALL + 40 )
----
132

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT + 92 + MIN ( ALL + 40 )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL + 74 + 5 * COUNT( * ) - 64 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL + 74 + 5 * COUNT ( * ) - 64 AS col0
----
15

query I rowsort
SELECT DISTINCT 28 + - 27
----
1

query I rowsort
SELECT + 3 * - 31
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6029
SELECT DISTINCT - - 99 DIV - 25 col0
----
-3

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT - - 99 / - 25 col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6030
SELECT ALL - ( + + 30 ) AS col2, + COUNT( + 6 ) * CAST( + 64 AS SIGNED ) + - 33 * - + 76
----
-30
2572

skipif mysql # not compatible
query II rowsort label-6030
SELECT ALL - ( + + 30 ) AS col2, + COUNT ( + 6 ) * CAST ( + 64 AS INTEGER ) + - 33 * - + 76
----
-30
2572

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6031
SELECT - + 69 + CAST( NULL AS SIGNED ) AS col0, 18 + + + 14 AS col2
----
NULL
32

skipif mysql # not compatible
query II rowsort label-6031
SELECT - + 69 + CAST ( NULL AS INTEGER ) AS col0, 18 + + + 14 AS col2
----
NULL
32

query I rowsort
SELECT ALL - 0 * + 12 + - 46 AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6033
SELECT + COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT + COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6034
SELECT ALL 99 - - CAST( NULL AS SIGNED ) + + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL 99 - - CAST ( NULL AS INTEGER ) + + - 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT + COUNT( * ) + CAST( - 69 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-6035
SELECT + COUNT ( * ) + CAST ( - 69 AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL 13 - - + 66 + + 39 + CASE 9 WHEN + 54 + + 5 + - COUNT( ALL + 98 ) * ( - 1 ) THEN NULL WHEN - - 7 THEN + COUNT( * ) WHEN - 7 THEN NULL END * 82 * + 8 * MAX( DISTINCT + 72 ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL 13 - - + 66 + + 39 + CASE 9 WHEN + 54 + + 5 + - COUNT ( ALL + 98 ) * ( - 1 ) THEN NULL WHEN - - 7 THEN + COUNT ( * ) WHEN - 7 THEN NULL END * 82 * + 8 * MAX ( DISTINCT + 72 ) * - 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT DISTINCT - 92 * + 60 * - COUNT( * ) AS col1, 19 * + COUNT( * ) * + - 14 AS col0
----
5520
-266

skipif mysql # not compatible
query II rowsort label-6037
SELECT DISTINCT - 92 * + 60 * - COUNT ( * ) AS col1, 19 * + COUNT ( * ) * + - 14 AS col0
----
5520
-266

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6038
SELECT DISTINCT + - CASE - ( NULLIF ( COUNT( * ), - CAST( NULL AS DECIMAL ) + + - MAX( DISTINCT 95 ) * - - 36 ) ) WHEN - 93 THEN COUNT( * ) END * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT + - CASE - ( NULLIF ( COUNT ( * ), - CAST ( NULL AS REAL ) + + - MAX ( DISTINCT 95 ) * - - 36 ) ) WHEN - 93 THEN COUNT ( * ) END * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6039
SELECT ALL SUM( - 6 ) AS col1, 16 * + - ( - - 86 ) - + 68
----
-6
-1444

skipif mysql # not compatible
query II rowsort label-6039
SELECT ALL SUM ( - 6 ) AS col1, 16 * + - ( - - 86 ) - + 68
----
-6
-1444

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL - NULLIF ( + 87, + + COUNT( * ) * 86 * + + 52 + 77 ) - - 35 * - SUM( DISTINCT + + 66 ) * + 2 + + 80 col0
----
-4627

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL - NULLIF ( + 87, + + COUNT ( * ) * 86 * + + 52 + 77 ) - - 35 * - SUM ( DISTINCT + + 66 ) * + 2 + + 80 col0
----
-4627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT + + 79 + COALESCE ( 92, + CAST( NULL AS SIGNED ) - 43, + 70 ) AS col2
----
171

skipif mysql # not compatible
query I rowsort label-6041
SELECT + + 79 + COALESCE ( 92, + CAST ( NULL AS INTEGER ) - 43, + 70 ) AS col2
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6042
SELECT + - CAST( - ( - 72 ) AS SIGNED ) AS col0, 19
----
-72
19

skipif mysql # not compatible
query II rowsort label-6042
SELECT + - CAST ( - ( - 72 ) AS INTEGER ) AS col0, 19
----
-72
19

query I rowsort
SELECT ( ( 37 ) )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT + NULLIF ( - COALESCE ( + - 13, + - CASE + CAST( NULL AS SIGNED ) WHEN - + 88 THEN 46 * COUNT( * ) + 33 ELSE NULL END * MAX( DISTINCT 52 ) * + + 80, + 31 ), - 5 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6044
SELECT + NULLIF ( - COALESCE ( + - 13, + - CASE + CAST ( NULL AS INTEGER ) WHEN - + 88 THEN 46 * COUNT ( * ) + 33 ELSE NULL END * MAX ( DISTINCT 52 ) * + + 80, + 31 ), - 5 ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6045
SELECT - ( + - CASE - + 38 WHEN - 33 * + + 98 + - - CAST( NULL AS SIGNED ) THEN + 75 * - - 25 + + 92 + - - 61 ELSE - + COALESCE ( + 32, - 15 DIV + 34 * + 2 DIV + 91 ) + + 98 END ) DIV - + 64 + + 38 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6045
SELECT - ( + - CASE - + 38 WHEN - 33 * + + 98 + - - CAST ( NULL AS INTEGER ) THEN + 75 * - - 25 + + 92 + - - 61 ELSE - + COALESCE ( + 32, - 15 / + 34 * + 2 / + 91 ) + + 98 END ) / - + 64 + + 38 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6046
SELECT + + 25 DIV + - 96 + + SUM( 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6046
SELECT + + 25 / + - 96 + + SUM ( 2 ) AS col2
----
2

query I rowsort
SELECT - 73 + + 83 + - 2 + 93
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT DISTINCT + COUNT( * ) AS col2, - 20
----
1
-20

skipif mysql # not compatible
query II rowsort label-6048
SELECT DISTINCT + COUNT ( * ) AS col2, - 20
----
1
-20

query I rowsort
SELECT ALL - 40 * + - 3
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT DISTINCT 38 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT 38 / + 83 AS col0
----
0

query I rowsort
SELECT ALL + NULLIF ( + 20, + 79 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + 91 * - 56 + + 74 * 25 - - + COUNT( * ) + - 93 + - 17 AS col0
----
-3355

skipif mysql # not compatible
query I rowsort label-6052
SELECT + 91 * - 56 + + 74 * 25 - - + COUNT ( * ) + - 93 + - 17 AS col0
----
-3355

query I rowsort
SELECT + 67 * + + 21
----
1407

query I rowsort
SELECT ALL 73 * + 88 AS col2
----
6424

query II rowsort
SELECT DISTINCT + 96, + 19 AS col1
----
96
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6056
SELECT DISTINCT 22 * 71 + + - COUNT( * ) + 0 * SUM( DISTINCT + 71 ) + 21 + - - CAST( NULL AS SIGNED ) * + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT 22 * 71 + + - COUNT ( * ) + 0 * SUM ( DISTINCT + 71 ) + 21 + - - CAST ( NULL AS INTEGER ) * + 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT + ( - SUM( DISTINCT - + 54 ) )
----
54

skipif mysql # not compatible
query I rowsort label-6057
SELECT + ( - SUM ( DISTINCT - + 54 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT + ( + MIN( - 57 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-6058
SELECT + ( + MIN ( - 57 ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT 86 * + - COUNT( * ) - - 62 col1
----
-24

skipif mysql # not compatible
query I rowsort label-6059
SELECT 86 * + - COUNT ( * ) - - 62 col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT + 49 DIV - + 42
----
-1

skipif mysql # not compatible
query I rowsort label-6060
SELECT + 49 / - + 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT - MIN( - 20 ) + - ( - 88 ) * - 21 AS col2
----
-1828

skipif mysql # not compatible
query I rowsort label-6061
SELECT - MIN ( - 20 ) + - ( - 88 ) * - 21 AS col2
----
-1828

query I rowsort
SELECT DISTINCT 59 * - 34 * + 37 + - 16
----
-74238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT CASE WHEN NOT NULL < - 4 THEN - NULLIF ( CASE + CAST( + 27 AS SIGNED ) WHEN + 53 THEN + - 70 WHEN - 19 + 22 THEN NULL WHEN - + 14 THEN NULL ELSE CAST( - AVG ( DISTINCT 42 ) AS SIGNED ) * CASE + - 53 WHEN 16 - - + 58 + + 55 * 82 + + 52 - + - 11 * + 22 THEN - 78 END * 5 + 93 END, 50 + - - 31 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT CASE WHEN NOT NULL < - 4 THEN - NULLIF ( CASE + CAST ( + 27 AS INTEGER ) WHEN + 53 THEN + - 70 WHEN - 19 + 22 THEN NULL WHEN - + 14 THEN NULL ELSE CAST ( - AVG ( DISTINCT 42 ) AS INTEGER ) * CASE + - 53 WHEN 16 - - + 58 + + 55 * 82 + + 52 - + - 11 * + 22 THEN - 78 END * 5 + 93 END, 50 + - - 31 ) END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6064
SELECT + 53 * - 68 + 37 + 15 - SUM( - 64 ) + + CASE - + 27 WHEN - + 12 * - 21 * 96 + - - 54 THEN 65 * + - 60 + + 50 END + 26 + + + 16 / + 68 * - NULLIF ( - CAST( NULL AS DECIMAL ), 90 ) AS col0, 81 * - + COUNT( * ) AS col0
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-6064
SELECT + 53 * - 68 + 37 + 15 - SUM ( - 64 ) + + CASE - + 27 WHEN - + 12 * - 21 * 96 + - - 54 THEN 65 * + - 60 + + 50 END + 26 + + + 16 / + 68 * - NULLIF ( - CAST ( NULL AS REAL ), 90 ) AS col0, 81 * - + COUNT ( * ) AS col0
----
NULL
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT ALL CAST( NULL AS SIGNED ) * + - 69 + 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL CAST ( NULL AS INTEGER ) * + - 69 + 2 col2
----
NULL

query I rowsort
SELECT NULLIF ( 20, + 3 )
----
20

query I rowsort
SELECT DISTINCT 96 * + - 14 + 43 AS col1
----
-1301

onlyif mysql # DIV for integer division: 
query II rowsort label-6068
SELECT - 95 + + 51 - + + 72 DIV + - 96, + 91 col2
----
-44
91

skipif mysql # not compatible
query II rowsort label-6068
SELECT - 95 + + 51 - + + 72 / + - 96, + 91 col2
----
-44
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT DISTINCT - 36 * - - NULLIF ( - 22, + COUNT( * ) ) * + 23 + + CAST( - COUNT( * ) AS SIGNED )
----
18215

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - 36 * - - NULLIF ( - 22, + COUNT ( * ) ) * + 23 + + CAST ( - COUNT ( * ) AS INTEGER )
----
18215

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT DISTINCT NULLIF ( 71, - 83 + 4 - COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT NULLIF ( 71, - 83 + 4 - COUNT ( * ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT SUM( DISTINCT + 43 ) col2
----
43

skipif mysql # not compatible
query I rowsort label-6071
SELECT SUM ( DISTINCT + 43 ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT ALL - 15 * - SUM( + 75 )
----
1125

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL - 15 * - SUM ( + 75 )
----
1125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6073
SELECT - 0 + - + COUNT( * ) + - - 99 DIV - - SUM( ALL + 59 ) + 94 DIV + 9 + - 62 + + 53 col2
----
1

skipif mysql # not compatible
query I rowsort label-6073
SELECT - 0 + - + COUNT ( * ) + - - 99 / - - SUM ( ALL + 59 ) + 94 / + 9 + - 62 + + 53 col2
----
1

query I rowsort
SELECT ALL - 54 * 53 * - + 59 AS col2
----
168858

query II rowsort
SELECT - 37 AS col0, 35 + - 62
----
-37
-27

query I rowsort
SELECT + - 43 + + 66
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - + ( + + ( + 49 ) ) / 51 + + CASE + + 52 WHEN + COUNT( * ) THEN + - 16 + + 52 - 56 / 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT - + ( + + ( + 49 ) ) / 51 + + CASE + + 52 WHEN + COUNT ( * ) THEN + - 16 + + 52 - 56 / 25 END AS col1
----
NULL

query I rowsort
SELECT - - ( 58 ) AS col2
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6079
SELECT ALL CAST( NULL AS DECIMAL ) / - - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL CAST ( NULL AS REAL ) / - - 7 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 16 AS col2, + 89
----
16
89

query I rowsort
SELECT - 47 - - 11
----
-36

query I rowsort
SELECT 66 * 36 AS col2
----
2376

query I rowsort
SELECT 69 - + 99 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6084
SELECT ALL CASE 31 WHEN + + 64 THEN - 45 ELSE - 38 * 54 + - COALESCE ( + 35, - 93 + COUNT( * ) * + 52 DIV - 39, - + 70 ) END AS col1
----
-2087

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL CASE 31 WHEN + + 64 THEN - 45 ELSE - 38 * 54 + - COALESCE ( + 35, - 93 + COUNT ( * ) * + 52 / - 39, - + 70 ) END AS col1
----
-2087

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6085
SELECT CAST( + - 64 AS SIGNED ) + - 7 DIV 82 DIV - 93 DIV 3 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6085
SELECT CAST ( + - 64 AS INTEGER ) + - 7 / 82 / - 93 / 3 AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6086
SELECT - 6, - CAST( NULL AS SIGNED ) AS col1
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-6086
SELECT - 6, - CAST ( NULL AS INTEGER ) AS col1
----
-6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL COUNT( * ) + 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL COUNT ( * ) + 5 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6088
SELECT ALL + MIN( DISTINCT + 59 ) + + 32 AS col0, CAST( NULL AS SIGNED ) * - NULLIF ( + MIN( + - 76 ), - 75 / + 1 + - + ( - COUNT( * ) ) + - 45 )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-6088
SELECT ALL + MIN ( DISTINCT + 59 ) + + 32 AS col0, CAST ( NULL AS INTEGER ) * - NULLIF ( + MIN ( + - 76 ), - 75 / + 1 + - + ( - COUNT ( * ) ) + - 45 )
----
91
NULL

query I rowsort
SELECT ( + 10 ) - 16 AS col1
----
-6

query I rowsort
SELECT 54 * 70 AS col1
----
3780

query I rowsort
SELECT DISTINCT 32 * + 61 * - - 18
----
35136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6092
SELECT ALL CAST( - CAST( 93 AS DECIMAL ) AS SIGNED ) + COUNT( * ) + + 88 + - - MIN( + 52 )
----
48

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL CAST ( - CAST ( 93 AS REAL ) AS INTEGER ) + COUNT ( * ) + + 88 + - - MIN ( + 52 )
----
48

query I rowsort
SELECT 38 + 38 AS col0
----
76

query I rowsort
SELECT 44 * - 47 * - 7 AS col2
----
14476

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT 91 * + COUNT( * ) + - ( + 80 ) + - COUNT( * ) * + 66
----
-55

skipif mysql # not compatible
query I rowsort label-6095
SELECT 91 * + COUNT ( * ) + - ( + 80 ) + - COUNT ( * ) * + 66
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT 55 * - COUNT( * ) * + COUNT( * ) - - COUNT( * ) * 62 - - + 85
----
92

skipif mysql # not compatible
query I rowsort label-6096
SELECT 55 * - COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) * 62 - - + 85
----
92

query I rowsort
SELECT DISTINCT 55 * ( - 22 ) * 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT ALL 72 + - CAST( NULL AS SIGNED ) + - + 58 * 85 * - ( - + 96 ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL 72 + - CAST ( NULL AS INTEGER ) + - + 58 * 85 * - ( - + 96 ) * + 98
----
NULL

query I rowsort
SELECT DISTINCT 19 * - 28 AS col2
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ( 5 ) * + + 54 + + + 42 + + MIN( ALL - 51 ) AS col2
----
261

skipif mysql # not compatible
query I rowsort label-6100
SELECT ( 5 ) * + + 54 + + + 42 + + MIN ( ALL - 51 ) AS col2
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6101
SELECT - MAX( ALL + CAST( - 68 AS SIGNED ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6101
SELECT - MAX ( ALL + CAST ( - 68 AS INTEGER ) ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6102
SELECT ALL COUNT( DISTINCT + + 0 ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6102
SELECT ALL COUNT ( DISTINCT + + 0 ), + COUNT ( * )
----
1
1

query I rowsort
SELECT ( - 44 ) * + - 42
----
1848

query I rowsort
SELECT + 12 * + + 52 AS col1
----
624

query I rowsort
SELECT DISTINCT 16 * 96 AS col1
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT 4 + - COUNT( * ) * - 68
----
72

skipif mysql # not compatible
query I rowsort label-6106
SELECT 4 + - COUNT ( * ) * - 68
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + 28 + - 79 + + + COUNT( * ) * + + 36 * 30 col0
----
1029

skipif mysql # not compatible
query I rowsort label-6107
SELECT + 28 + - 79 + + + COUNT ( * ) * + + 36 * 30 col0
----
1029

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6108
SELECT DISTINCT + - 52 + + CAST( NULL AS DECIMAL ) / + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6108
SELECT DISTINCT + - 52 + + CAST ( NULL AS REAL ) / + 88 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + + 35 + - + 46 + - 59 * - 71 + - - 11 col0, + 39 AS col0
----
4189
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6110
SELECT DISTINCT - 74 + - + ( - 54 ) + + 46 DIV COUNT( 15 ) * - 86 AS col0, + ( + COUNT( * ) ) * + COALESCE ( + - COUNT( * ), + 83, + - 80 )
----
-3976
-1

skipif mysql # not compatible
query II rowsort label-6110
SELECT DISTINCT - 74 + - + ( - 54 ) + + 46 / COUNT ( 15 ) * - 86 AS col0, + ( + COUNT ( * ) ) * + COALESCE ( + - COUNT ( * ), + 83, + - 80 )
----
-3976
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + 16 + - MAX( - - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + 16 + - MAX ( - - 17 )
----
-1

query I rowsort
SELECT - 94 + - - 44
----
-50

query I rowsort
SELECT ALL + 22 + 44 + - 30
----
36

query I rowsort
SELECT 38 * + + 66 * + - 30 * 76 AS col1
----
-5718240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6115
SELECT 57 DIV COUNT( * ) * - 74 AS col0, + 2 + - 30 + - ( + 77 ) AS col2
----
-4218
-105

skipif mysql # not compatible
query II rowsort label-6115
SELECT 57 / COUNT ( * ) * - 74 AS col0, + 2 + - 30 + - ( + 77 ) AS col2
----
-4218
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6116
SELECT + 70 DIV - + COUNT( * ) + - SUM( ALL + + 65 ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-6116
SELECT + 70 / - + COUNT ( * ) + - SUM ( ALL + + 65 ) AS col2
----
-135

query I rowsort
SELECT ALL 20 * + 59 AS col1
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT DISTINCT COUNT( * ) * - + 68 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT COUNT ( * ) * - + 68 AS col0
----
-68

query I rowsort
SELECT ALL 14 * + 65 AS col2
----
910

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT DISTINCT 31 * - COUNT( * ) * COUNT( * ) AS col0, - ( + 74 ) * - 71 AS col2
----
-31
5254

skipif mysql # not compatible
query II rowsort label-6120
SELECT DISTINCT 31 * - COUNT ( * ) * COUNT ( * ) AS col0, - ( + 74 ) * - 71 AS col2
----
-31
5254

query I rowsort
SELECT DISTINCT - 33 * - 24 * + - 62 * - 35 AS col2
----
1718640

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT 92 * + - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6122
SELECT 92 * + - COUNT ( * ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT MIN( DISTINCT - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6123
SELECT MIN ( DISTINCT - 69 )
----
-69

query I rowsort
SELECT ALL 78 * 19
----
1482

query I rowsort
SELECT ALL 36 - + 83 AS col1
----
-47

query II rowsort
SELECT + 59 AS col2, - 70
----
59
-70

query I rowsort
SELECT - 0 * + 39 + + + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT 52 * 53 + - 6 + COUNT( * )
----
2751

skipif mysql # not compatible
query I rowsort label-6128
SELECT 52 * 53 + - 6 + COUNT ( * )
----
2751

query I rowsort
SELECT DISTINCT - ( - 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT COALESCE ( 12, + COUNT( * ) * + COUNT( * ) ) * 58 AS col1
----
696

skipif mysql # not compatible
query I rowsort label-6130
SELECT COALESCE ( 12, + COUNT ( * ) * + COUNT ( * ) ) * 58 AS col1
----
696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6131
SELECT ALL COALESCE ( 25, 74 DIV - NULLIF ( 88, - 58 DIV + 26 ) + + COUNT( * ) ) * - 2 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL COALESCE ( 25, 74 / - NULLIF ( 88, - 58 / + 26 ) + + COUNT ( * ) ) * - 2 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + 6 + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-6132
SELECT + 6 + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6133
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + 58 * - 76 AS col2
----
-4408

query I rowsort
SELECT - 52 + CASE 49 WHEN - 49 * 15 THEN 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT - COALESCE ( COUNT( * ), + 26 * CASE - 87 WHEN 34 * 36 THEN - 63 + - 16 * CASE WHEN ( NULL ) NOT IN ( 36 ) THEN ( COUNT( DISTINCT - 90 ) ) END END - 61 ) + 69 DIV - 28
----
-3

skipif mysql # not compatible
query I rowsort label-6136
SELECT - COALESCE ( COUNT ( * ), + 26 * CASE - 87 WHEN 34 * 36 THEN - 63 + - 16 * CASE WHEN ( NULL ) NOT IN ( 36 ) THEN ( COUNT ( DISTINCT - 90 ) ) END END - 61 ) + 69 / - 28
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT - CASE - 45 WHEN + COUNT( * ) THEN 2 WHEN + 88 THEN NULL ELSE - MAX( DISTINCT 82 ) DIV + NULLIF ( 68, + 64 ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6137
SELECT - CASE - 45 WHEN + COUNT ( * ) THEN 2 WHEN + 88 THEN NULL ELSE - MAX ( DISTINCT 82 ) / + NULLIF ( 68, + 64 ) END AS col0
----
1

query I rowsort
SELECT + 98 * 98 AS col0
----
9604

query I rowsort
SELECT ALL - 53 + + 98
----
45

query I rowsort
SELECT - NULLIF ( + 65, 8 )
----
-65

query I rowsort
SELECT ALL - 90 + 62 AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT DISTINCT + 35 + - SUM( - 15 ) DIV 15 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT + 35 + - SUM ( - 15 ) / 15 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT - COUNT( 92 ) * 58 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6143
SELECT - COUNT ( 92 ) * 58 AS col1
----
-58

query I rowsort
SELECT ALL + 18 * + 54
----
972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6145
SELECT ALL NULLIF ( CAST( - 35 AS SIGNED ), SUM( CAST( + 25 AS SIGNED ) ) * + 93 )
----
-35

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL NULLIF ( CAST ( - 35 AS INTEGER ), SUM ( CAST ( + 25 AS INTEGER ) ) * + 93 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT + 56 - NULLIF ( - 56, - 23 + + 13 * COUNT( * ) ) * 70 AS col2
----
3976

skipif mysql # not compatible
query I rowsort label-6146
SELECT + 56 - NULLIF ( - 56, - 23 + + 13 * COUNT ( * ) ) * 70 AS col2
----
3976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6147
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT ALL + 18 * CAST( - 97 AS SIGNED )
----
-1746

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL + 18 * CAST ( - 97 AS INTEGER )
----
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT + 9 + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6149
SELECT + 9 + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT DISTINCT NULLIF ( 4, - COUNT( * ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT NULLIF ( 4, - COUNT ( * ) ) AS col1
----
4

query I rowsort
SELECT - ( - 83 ) * 61 AS col0
----
5063

query I rowsort
SELECT ALL 8 * 67 AS col1
----
536

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT ( + 12 ) * + 62 - 99 * - COUNT( * )
----
843

skipif mysql # not compatible
query I rowsort label-6153
SELECT ( + 12 ) * + 62 - 99 * - COUNT ( * )
----
843

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT + 40 * - 99 + 45 DIV 16 AS col0
----
-3958

skipif mysql # not compatible
query I rowsort label-6154
SELECT + 40 * - 99 + 45 / 16 AS col0
----
-3958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6155
SELECT ALL + SUM( + 32 ) DIV ( 75 * ( - 16 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL + SUM ( + 32 ) / ( 75 * ( - 16 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT - COUNT( * ) + - ( COUNT( * ) ) * 42 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6156
SELECT - COUNT ( * ) + - ( COUNT ( * ) ) * 42 AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT 29 * - CAST( NULL AS SIGNED ) + + 6 * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT 29 * - CAST ( NULL AS INTEGER ) + + 6 * 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT + 25 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT + 25 / + 58
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6159
SELECT ALL - 56 DIV COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL - 56 / COUNT ( * )
----
-56

query I rowsort
SELECT - 36 * 26 AS col2
----
-936

onlyif mysql # DIV for integer division: 
query I rowsort label-6161
SELECT + 42 * - CASE 54 WHEN - 6 THEN 12 DIV 61 ELSE 6 END
----
-252

skipif mysql # not compatible
query I rowsort label-6161
SELECT + 42 * - CASE 54 WHEN - 6 THEN 12 / 61 ELSE 6 END
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - 96 * + COUNT( * ) - 16 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-6162
SELECT - 96 * + COUNT ( * ) - 16 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT - COALESCE ( + 60, 66 ) * COUNT( ALL - 51 )
----
-60

skipif mysql # not compatible
query I rowsort label-6163
SELECT - COALESCE ( + 60, 66 ) * COUNT ( ALL - 51 )
----
-60

query I rowsort
SELECT ALL 83 * 75 AS col1
----
6225

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT - 89 DIV - 24 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6165
SELECT - 89 / - 24 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT CASE 1 WHEN + COUNT( DISTINCT 0 ) THEN NULL WHEN 4 - + COUNT( * ) THEN SUM( DISTINCT + 14 ) * + 23 ELSE + ( + 10 ) END * + COALESCE ( + 82, + NULLIF ( MIN( 9 ), - 25 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT CASE 1 WHEN + COUNT ( DISTINCT 0 ) THEN NULL WHEN 4 - + COUNT ( * ) THEN SUM ( DISTINCT + 14 ) * + 23 ELSE + ( + 10 ) END * + COALESCE ( + 82, + NULLIF ( MIN ( 9 ), - 25 ) ) AS col2
----
NULL

query I rowsort
SELECT - 38 + - 99 AS col2
----
-137

query I rowsort
SELECT + + ( 53 )
----
53

query I rowsort
SELECT 84 * + 66 + - 77 * 77
----
-385

query I rowsort
SELECT - NULLIF ( 5, + 12 ) + 21 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6171
SELECT + + NULLIF ( + 20, CASE + 52 WHEN CASE + NULLIF ( + 22, + COUNT( * ) * COUNT( * ) ) WHEN + 96 * 33 THEN + 49 END * - CAST( CAST( + COUNT( * ) AS DECIMAL ) * 84 AS SIGNED ) + + 6 * COUNT( * ) THEN + MAX( + 78 ) END ) + 89 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-6171
SELECT + + NULLIF ( + 20, CASE + 52 WHEN CASE + NULLIF ( + 22, + COUNT ( * ) * COUNT ( * ) ) WHEN + 96 * 33 THEN + 49 END * - CAST ( CAST ( + COUNT ( * ) AS REAL ) * 84 AS INTEGER ) + + 6 * COUNT ( * ) THEN + MAX ( + 78 ) END ) + 89 AS col2
----
109

query I rowsort
SELECT 69 * COALESCE ( 7, - 20 ) + 40 * 69 AS col0
----
3243

query I rowsort
SELECT ALL + 99 * 67 AS col1
----
6633

query I rowsort
SELECT ALL - 88 + 19 AS col0
----
-69

query I rowsort
SELECT + 29 + - 72
----
-43

query I rowsort
SELECT + 43 + 13
----
56

query I rowsort
SELECT - ( 28 ) + 65
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT - ( MAX( 10 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-6178
SELECT - ( MAX ( 10 ) )
----
-10

query I rowsort
SELECT ALL 97 - 44
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL 67 * COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL 67 * COUNT ( * ) col2
----
67

query I rowsort
SELECT ALL CASE - - 87 WHEN 77 THEN + 76 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT - CAST( - CAST( 55 AS SIGNED ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-6182
SELECT - CAST ( - CAST ( 55 AS INTEGER ) AS INTEGER )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6183
SELECT 60 DIV + 5 + NULLIF ( MIN( 79 ), SUM( ALL + 19 ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-6183
SELECT 60 / + 5 + NULLIF ( MIN ( 79 ), SUM ( ALL + 19 ) ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT + MIN( 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + MIN ( 68 ) AS col2
----
68

query I rowsort
SELECT + 13 * 51 * - 97 AS col1
----
-64311

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT DISTINCT 54 + 29 + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT 54 + 29 + COUNT ( * )
----
84

query I rowsort
SELECT 89 * + - 51 * NULLIF ( + 29, + 35 ) + - 30
----
-131661

onlyif mysql # DIV for integer division: 
query I rowsort label-6188
SELECT - 97 DIV 20
----
-4

skipif mysql # not compatible
query I rowsort label-6188
SELECT - 97 / 20
----
-4

query I rowsort
SELECT - 67 + + - 69 + 75 * 37 col0
----
2639

query I rowsort
SELECT 89 * + 44 + 53 AS col1
----
3969

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT ALL + + 58 + - - 20 DIV 62
----
58

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL + + 58 + - - 20 / 62
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT + COUNT( * ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-6192
SELECT + COUNT ( * ) * + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + + MAX( - + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-6193
SELECT + + MAX ( - + 4 )
----
-4

query I rowsort
SELECT DISTINCT - - 28 + - ( 13 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6195
SELECT 39 * 65 - CAST( NULL AS SIGNED ) * + NULLIF ( COUNT( * ), + ( + 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT 39 * 65 - CAST ( NULL AS INTEGER ) * + NULLIF ( COUNT ( * ), + ( + 41 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6196
SELECT + - CASE 7 WHEN - 80 THEN NULL WHEN - 89 * + 10 THEN 27 + CAST( - COUNT( + 91 ) AS SIGNED ) / - MAX( DISTINCT + 61 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT + - CASE 7 WHEN - 80 THEN NULL WHEN - 89 * + 10 THEN 27 + CAST ( - COUNT ( + 91 ) AS INTEGER ) / - MAX ( DISTINCT + 61 ) END AS col2
----
NULL

query I rowsort
SELECT ALL - - 78 + 99 * 44
----
4434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6198
SELECT DISTINCT + - 16 * + 76 DIV + COUNT( * )
----
-1216

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT + - 16 * + 76 / + COUNT ( * )
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT COUNT( ALL 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6199
SELECT COUNT ( ALL 84 ) AS col0
----
1

query I rowsort
SELECT - 13 * - 73 - - ( + 33 )
----
982

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT - 83 * MIN( - 36 )
----
2988

skipif mysql # not compatible
query I rowsort label-6201
SELECT - 83 * MIN ( - 36 )
----
2988

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) * 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) * 50 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT - COUNT( DISTINCT 10 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6203
SELECT - COUNT ( DISTINCT 10 ) AS col1
----
-1

query I rowsort
SELECT ALL - ( 99 ) - - 70
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT 59, MIN( DISTINCT + - 73 ) AS col2
----
59
-73

skipif mysql # not compatible
query II rowsort label-6205
SELECT 59, MIN ( DISTINCT + - 73 ) AS col2
----
59
-73

query I rowsort
SELECT ALL 91 * - + 10 AS col1
----
-910

query I rowsort
SELECT DISTINCT 8 * + 7
----
56

query I rowsort
SELECT 1 * 77 * + 79 * 33 AS col2
----
200739

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT 72 + 93 - 33 + COUNT( ALL + 53 - ( 0 ) * 19 )
----
133

skipif mysql # not compatible
query I rowsort label-6209
SELECT 72 + 93 - 33 + COUNT ( ALL + 53 - ( 0 ) * 19 )
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT 8 DIV 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6210
SELECT 8 / 9 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL 55 * + - SUM( DISTINCT + ( - 60 ) ) * 70
----
231000

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL 55 * + - SUM ( DISTINCT + ( - 60 ) ) * 70
----
231000

query I rowsort
SELECT 91 + 98 + - 70 * 8
----
-371

query I rowsort
SELECT ALL 19 * + + 27 * - 67 * + 19
----
-653049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6214
SELECT CAST( NULL AS SIGNED ) - 76 * 49 - - COALESCE ( ( - 89 ), - SUM( DISTINCT 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT CAST ( NULL AS INTEGER ) - 76 * 49 - - COALESCE ( ( - 89 ), - SUM ( DISTINCT 41 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT DISTINCT 13 + COUNT( * ) col0
----
14

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT 13 + COUNT ( * ) col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL - SUM( ALL + - 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - SUM ( ALL + - 8 ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6217
SELECT DISTINCT - COUNT( * ) + + - COALESCE ( + - 62, COALESCE ( 44, - 36, COUNT( 17 ) * + MIN( ALL + 54 + - CAST( NULL AS SIGNED ) ) ) ) * 93 AS col1
----
5765

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT - COUNT ( * ) + + - COALESCE ( + - 62, COALESCE ( 44, - 36, COUNT ( 17 ) * + MIN ( ALL + 54 + - CAST ( NULL AS INTEGER ) ) ) ) * 93 AS col1
----
5765

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT ALL 47 + + COUNT( * ) + - ( 89 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL 47 + + COUNT ( * ) + - ( 89 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - COUNT( - 18 ) + 82 * + 81 AS col2
----
6641

skipif mysql # not compatible
query I rowsort label-6219
SELECT - COUNT ( - 18 ) + 82 * + 81 AS col2
----
6641

query I rowsort
SELECT ALL - + COALESCE ( - 40, 15 ) AS col0
----
40

query I rowsort
SELECT DISTINCT ( - 14 ) + 11 + - 20
----
-23

query I rowsort
SELECT - 60 * - 71 * - - 69 + 15 * + 40 + 22 AS col0
----
294562

query I rowsort
SELECT - 56 - + - ( + 26 )
----
-30

query I rowsort
SELECT DISTINCT - 82 + + 12 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6225
SELECT DISTINCT - 32 AS col0, - SUM( 97 )
----
-32
-97

skipif mysql # not compatible
query II rowsort label-6225
SELECT DISTINCT - 32 AS col0, - SUM ( 97 )
----
-32
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6226
SELECT - NULLIF ( + - NULLIF ( + COUNT( + 42 ), + 12 ), + 90 DIV + COUNT( * ) - - 30 ) DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-6226
SELECT - NULLIF ( + - NULLIF ( + COUNT ( + 42 ), + 12 ), + 90 / + COUNT ( * ) - - 30 ) / - 62
----
0

query I rowsort
SELECT ALL + 41 - - - 48
----
-7

query I rowsort
SELECT - 89 * + + 16 AS col0
----
-1424

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT + ( - SUM( 60 ) ) * - 71 + - COUNT( * ) AS col0
----
4259

skipif mysql # not compatible
query I rowsort label-6229
SELECT + ( - SUM ( 60 ) ) * - 71 + - COUNT ( * ) AS col0
----
4259

onlyif mysql # DIV for integer division: 
query I rowsort label-6230
SELECT ( + - ( 12 ) ) - + 59 DIV + 50
----
-13

skipif mysql # not compatible
query I rowsort label-6230
SELECT ( + - ( 12 ) ) - + 59 / + 50
----
-13

query II rowsort
SELECT ALL - 63, - 62 + + NULLIF ( 48, 68 * 53 + 55 ) + + 3 AS col0
----
-63
-11

query I rowsort
SELECT + 11 + + 22 * + - 72 AS col2
----
-1573

query I rowsort
SELECT + COALESCE ( - NULLIF ( - + 68, - 45 ), + 2 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT - CAST( - + NULLIF ( - 12, - 87 ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6234
SELECT - CAST ( - + NULLIF ( - 12, - 87 ) AS INTEGER ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6235
SELECT ALL + 6 / - - 26 + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + 6 / - - 26 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT 83 DIV ( - 45 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6236
SELECT 83 / ( - 45 ) AS col0
----
-1

query II rowsort
SELECT - + 99, - 28 col2
----
-99
-28

query I rowsort
SELECT - 47 + + 11 AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6239
SELECT ( - 34 ) DIV - COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6239
SELECT ( - 34 ) / - COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL + COUNT( * ) * + 66 * - 94 AS col2
----
-6204

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL + COUNT ( * ) * + 66 * - 94 AS col2
----
-6204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6241
SELECT 82 + + - 12 + 15 DIV - COUNT( * ) + 29 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6241
SELECT 82 + + - 12 + 15 / - COUNT ( * ) + 29 AS col2
----
84

query I rowsort
SELECT ALL + 60 * + 70 AS col2
----
4200

query I rowsort
SELECT DISTINCT - 87 * - 46
----
4002

query II rowsort
SELECT 11 * 19 col1, 54
----
209
54

query I rowsort
SELECT ALL - 69 * + 26
----
-1794

query I rowsort
SELECT 88 * + 1 AS col1
----
88

query I rowsort
SELECT ( - + 25 ) + - 58 + + 17 AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT ALL - COUNT( - 8 ) + - - ( - COALESCE ( + 94, 74, + 4 DIV 31 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL - COUNT ( - 8 ) + - - ( - COALESCE ( + 94, 74, + 4 / 31 ) )
----
-95

query I rowsort
SELECT - 90 + 17 AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT ALL CAST( - 23 AS SIGNED ) + 57 * - 91
----
-5210

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL CAST ( - 23 AS INTEGER ) + 57 * - 91
----
-5210

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT + 66 + + 93 - - MAX( ALL - 63 )
----
96

skipif mysql # not compatible
query I rowsort label-6251
SELECT + 66 + + 93 - - MAX ( ALL - 63 )
----
96

query I rowsort
SELECT ALL NULLIF ( + 92, - 87 + CASE 28 WHEN 28 + - AVG ( - 18 + - 78 ) THEN 67 WHEN 69 * - COALESCE ( + 94, 64 ) THEN ( 48 ) END ) + ( NULLIF ( 89, 72 ) ) col1
----
181

query I rowsort
SELECT + 42 + 87 AS col0
----
129

query I rowsort
SELECT DISTINCT COALESCE ( - 64, - 65, - 47 - 67 ) AS col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT + 71 DIV - - MIN( + 56 ) + 51 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6255
SELECT + 71 / - - MIN ( + 56 ) + 51 AS col0
----
52

query I rowsort
SELECT + - CASE 44 WHEN + - 30 * + - 81 THEN ( - 76 ) + 62 END + 25 * 61 AS col1
----
NULL

query I rowsort
SELECT ALL + 53 * + ( + 44 ) + - 81
----
2251

query I rowsort
SELECT ALL - 42 * - ( + - 69 ) AS col1
----
-2898

query I rowsort
SELECT DISTINCT + + 77 * 31 + - 82 AS col1
----
2305

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT ALL 46 DIV - + 59 * - - 67 * + - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL 46 / - + 59 * - - 67 * + - 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT - 95 * 16 * - - MAX( DISTINCT + 29 ) * + 69 + MAX( 26 ) AS col0
----
-3041494

skipif mysql # not compatible
query I rowsort label-6261
SELECT - 95 * 16 * - - MAX ( DISTINCT + 29 ) * + 69 + MAX ( 26 ) AS col0
----
-3041494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6262
SELECT DISTINCT + ( COALESCE ( MIN( ALL COALESCE ( 39, 36, + 76 * + 86 - - 4 ) ), + 0, + 82 ) ) * 69 - + CASE - MIN( - 98 ) WHEN COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) ) + + 84 THEN CASE - 19 WHEN 90 THEN NULL WHEN 88 THEN 78 ELSE NULL END ELSE + COALESCE ( 1, - 73 ) * 76 END AS col2
----
2615

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT + ( COALESCE ( MIN ( ALL COALESCE ( 39, 36, + 76 * + 86 - - 4 ) ), + 0, + 82 ) ) * 69 - + CASE - MIN ( - 98 ) WHEN COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + + 84 THEN CASE - 19 WHEN 90 THEN NULL WHEN 88 THEN 78 ELSE NULL END ELSE + COALESCE ( 1, - 73 ) * 76 END AS col2
----
2615

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT - COUNT( * ) * - 71 - 60 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6263
SELECT - COUNT ( * ) * - 71 - 60 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT + + NULLIF ( + 64, - 28 ) * - + SUM( + 21 )
----
-1344

skipif mysql # not compatible
query I rowsort label-6264
SELECT + + NULLIF ( + 64, - 28 ) * - + SUM ( + 21 )
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT - 65 + 6 - - CAST( + 77 AS SIGNED ) * 50 AS col2
----
3791

skipif mysql # not compatible
query I rowsort label-6265
SELECT - 65 + 6 - - CAST ( + 77 AS INTEGER ) * 50 AS col2
----
3791

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT DISTINCT - 66 * - SUM( DISTINCT 64 ) - 74
----
4150

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT - 66 * - SUM ( DISTINCT 64 ) - 74
----
4150

query I rowsort
SELECT + + 16 * + + 44 + + 61
----
765

query I rowsort
SELECT ALL + 76 * 30
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + ( MAX( + 29 ) ) * + - 0
----
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT + ( MAX ( + 29 ) ) * + - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT ALL 92 * - + NULLIF ( + 64, - 4 ) DIV 1
----
-5888

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL 92 * - + NULLIF ( + 64, - 4 ) / 1
----
-5888

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL + CASE + - COUNT( ALL - + 17 ) WHEN COALESCE ( - 43, 20 * 55 ) / 81 THEN - 76 WHEN - 98 * 2 + 78 THEN NULL WHEN COUNT( DISTINCT + 16 ) THEN 85 * 97 - - 21 * - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL + CASE + - COUNT ( ALL - + 17 ) WHEN COALESCE ( - 43, 20 * 55 ) / 81 THEN - 76 WHEN - 98 * 2 + 78 THEN NULL WHEN COUNT ( DISTINCT + 16 ) THEN 85 * 97 - - 21 * - 37 END
----
NULL

query I rowsort
SELECT ALL 19 * 26 + - COALESCE ( + 29, 39 ) AS col0
----
465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6273
SELECT - ( - COUNT( * ) ) * + CAST( AVG ( ALL + 46 ) AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6273
SELECT - ( - COUNT ( * ) ) * + CAST ( AVG ( ALL + 46 ) AS INTEGER ) AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6274
SELECT - COALESCE ( + CAST( - + 9 AS SIGNED ), + 13, - 76 * + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-6274
SELECT - COALESCE ( + CAST ( - + 9 AS INTEGER ), + 13, - 76 * + 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT MAX( ALL + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-6275
SELECT MAX ( ALL + 87 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6276
SELECT - 8 DIV + - NULLIF ( - SUM( ALL ( + + 43 ) ), 85 * - 17 ) * 6
----
0

skipif mysql # not compatible
query I rowsort label-6276
SELECT - 8 / + - NULLIF ( - SUM ( ALL ( + + 43 ) ), 85 * - 17 ) * 6
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6277
SELECT - 26 * + COUNT( 95 ) * CAST( + - 80 AS SIGNED ) + + 69 AS col2
----
2149

skipif mysql # not compatible
query I rowsort label-6277
SELECT - 26 * + COUNT ( 95 ) * CAST ( + - 80 AS INTEGER ) + + 69 AS col2
----
2149

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT ALL + 29 DIV 7
----
4

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + 29 / 7
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6279
SELECT - 72 DIV + + 85 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT - 72 / + + 85 * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL - NULLIF ( - 64, - 30 * 32 * MIN( + 78 ) + 86 * 15 ) + ( 42 ) * + 80
----
3424

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - NULLIF ( - 64, - 30 * 32 * MIN ( + 78 ) + 86 * 15 ) + ( 42 ) * + 80
----
3424

query I rowsort
SELECT DISTINCT + 11 * + 17 col0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL CASE + 27 WHEN + COUNT( * ) * + - 57 * + 99 THEN NULL ELSE + 71 * 95 END AS col2
----
6745

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL CASE + 27 WHEN + COUNT ( * ) * + - 57 * + 99 THEN NULL ELSE + 71 * 95 END AS col2
----
6745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT ALL + 39 + + CASE 8 WHEN 80 * + - COUNT( * ) THEN - 3 WHEN - 59 THEN - COUNT( * ) * + 22 + - 78 ELSE + 82 + - 28 * - 44 END + - 97 * + ( 58 DIV + 39 ) AS col0
----
1256

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + 39 + + CASE 8 WHEN 80 * + - COUNT ( * ) THEN - 3 WHEN - 59 THEN - COUNT ( * ) * + 22 + - 78 ELSE + 82 + - 28 * - 44 END + - 97 * + ( 58 / + 39 ) AS col0
----
1256

query I rowsort
SELECT - 30 + - 16
----
-46

query I rowsort
SELECT - 6 + + ( + - 74 ) * - - 10 AS col1
----
-746

query I rowsort
SELECT + 30 + 32 * - 3 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT + MAX( + + 59 ) * - - 7
----
413

skipif mysql # not compatible
query I rowsort label-6287
SELECT + MAX ( + + 59 ) * - - 7
----
413

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT - SUM( ALL - 1 ) * 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6288
SELECT - SUM ( ALL - 1 ) * 4 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT ALL NULLIF ( - + 96, + ( - 89 ) + - CAST( NULL AS SIGNED ) * 1 ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL NULLIF ( - + 96, + ( - 89 ) + - CAST ( NULL AS INTEGER ) * 1 ) col1
----
-96

query I rowsort
SELECT DISTINCT + 54 - 45
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT + 93 * + ( + 8 ) + - + CASE - CAST( - 0 AS SIGNED ) WHEN 46 + 2 THEN 58 END * + 49 + 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT + 93 * + ( + 8 ) + - + CASE - CAST ( - 0 AS INTEGER ) WHEN 46 + 2 THEN 58 END * + 49 + 10 col0
----
NULL

query I rowsort
SELECT ALL + CASE - 62 WHEN + + 9 THEN NULL ELSE - 97 + + 4 END col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT ALL + CAST( COALESCE ( - - AVG ( - 48 ), + 4 * - 46 + - COALESCE ( 16, 53 * 57, 8 ), ( + 44 ) * 72 ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL + CAST ( COALESCE ( - - AVG ( - 48 ), + 4 * - 46 + - COALESCE ( 16, 53 * 57, 8 ), ( + 44 ) * 72 ) AS INTEGER )
----
-48

query I rowsort
SELECT ALL + + 9 * + - 56
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT - COALESCE ( + ( + SUM( - ( 54 ) ) ), 49 + 49 ) * MIN( + 38 ) + 71 AS col0
----
2123

skipif mysql # not compatible
query I rowsort label-6295
SELECT - COALESCE ( + ( + SUM ( - ( 54 ) ) ), 49 + 49 ) * MIN ( + 38 ) + 71 AS col0
----
2123

query I rowsort
SELECT + - 61 * - 8 AS col1
----
488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT - 80 * + - SUM( + 80 ) DIV 10
----
640

skipif mysql # not compatible
query I rowsort label-6297
SELECT - 80 * + - SUM ( + 80 ) / 10
----
640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6298
SELECT + CAST( NULL AS DECIMAL ) * + 85 * - 44 * - COUNT( * ) + - 67 + + 5 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT + CAST ( NULL AS REAL ) * + 85 * - 44 * - COUNT ( * ) + - 67 + + 5 * - 98
----
NULL

query I rowsort
SELECT + + 86 - + + NULLIF ( - + 22, + 57 * + 50 + - 70 * 34 ) AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT ALL COUNT( * ) * + + 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL COUNT ( * ) * + + 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + COUNT( * ) * COUNT( 58 ) * - + 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + COUNT ( * ) * COUNT ( 58 ) * - + 21 AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6302
SELECT + 7 DIV SUM( + - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-6302
SELECT + 7 / SUM ( + - 34 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT + - ( + - 79 ) * + CASE - 28 WHEN + + 18 + 43 / 49 THEN + NULLIF ( - 0, - COUNT( ALL - ( 21 ) ) * - COUNT( * ) ) WHEN ( 94 ) * - 35 THEN + 28 ELSE MAX( 81 ) * + 45 + 38 END * MAX( DISTINCT - 80 ) - - COUNT( * )
----
-23276559

skipif mysql # not compatible
query I rowsort label-6303
SELECT + - ( + - 79 ) * + CASE - 28 WHEN + + 18 + 43 / 49 THEN + NULLIF ( - 0, - COUNT ( ALL - ( 21 ) ) * - COUNT ( * ) ) WHEN ( 94 ) * - 35 THEN + 28 ELSE MAX ( 81 ) * + 45 + 38 END * MAX ( DISTINCT - 80 ) - - COUNT ( * )
----
-23276559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT DISTINCT + - ( - 88 ) * COALESCE ( - - 97, - 96, - 18 + + NULLIF ( - 15, - 88 * + CAST( NULL AS SIGNED ) + - 63 ) * 37 )
----
8536

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT + - ( - 88 ) * COALESCE ( - - 97, - 96, - 18 + + NULLIF ( - 15, - 88 * + CAST ( NULL AS INTEGER ) + - 63 ) * 37 )
----
8536

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT 50 * 44 + + - 58 DIV - + 28 + + 57 col2
----
2259

skipif mysql # not compatible
query I rowsort label-6305
SELECT 50 * 44 + + - 58 / - + 28 + + 57 col2
----
2259

query I rowsort
SELECT DISTINCT + - ( - 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT COUNT( * ) * - 94 + 63 + + 97 + + COUNT( - 0 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6307
SELECT COUNT ( * ) * - 94 + 63 + + 97 + + COUNT ( - 0 ) AS col2
----
67

query I rowsort
SELECT + - 59 * 81 AS col1
----
-4779

query I rowsort
SELECT ALL 4 * + - 43 + - 34 + + 20
----
-186

query I rowsort
SELECT + 8 * + - 25 + - 98
----
-298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6311
SELECT CASE + + 64 WHEN + CAST( NULL AS SIGNED ) THEN - - 51 * - - 96 WHEN + - COUNT( * ) THEN 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6311
SELECT CASE + + 64 WHEN + CAST ( NULL AS INTEGER ) THEN - - 51 * - - 96 WHEN + - COUNT ( * ) THEN 32 END AS col1
----
NULL

query I rowsort
SELECT + 20 + + 54
----
74

query I rowsort
SELECT 27 * + 70
----
1890

query I rowsort
SELECT DISTINCT 61 + - 27 + - 28
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL 84 + - + 2 * - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL 84 + - + 2 * - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6316
SELECT 34 * - SUM( 12 ) + + 96 col0, 75
----
-312
75

skipif mysql # not compatible
query II rowsort label-6316
SELECT 34 * - SUM ( 12 ) + + 96 col0, 75
----
-312
75

query II rowsort
SELECT ALL 31, - 61 AS col2
----
31
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT CAST( NULL AS SIGNED ) + - 3 * + 97 - - CAST( - - 81 AS SIGNED ) - + 99 / - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT CAST ( NULL AS INTEGER ) + - 3 * + 97 - - CAST ( - - 81 AS INTEGER ) - + 99 / - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT 36 + + + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6319
SELECT 36 + + + COUNT ( * ) AS col2
----
37

query I rowsort
SELECT ALL ( + - 86 ) + - 86
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6321
SELECT CAST( NULL AS SIGNED ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT CAST ( NULL AS INTEGER ) * 7
----
NULL

query I rowsort
SELECT 42 + 74
----
116

query I rowsort
SELECT 52 + 72 + + 15 + + + 38
----
177

onlyif mysql # DIV for integer division: 
query II rowsort label-6324
SELECT 91 AS col2, - 10 DIV - 22
----
91
0

skipif mysql # not compatible
query II rowsort label-6324
SELECT 91 AS col2, - 10 / - 22
----
91
0

query I rowsort
SELECT ALL 89 - 14
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT COUNT( * ) - + 76 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT COUNT ( * ) - + 76 AS col0
----
-75

query I rowsort
SELECT DISTINCT - 62 * + + 27
----
-1674

query II rowsort
SELECT + 42, + NULLIF ( - + 94, - + 20 + + 40 ) AS col0
----
42
-94

query I rowsort
SELECT - 98 * 63
----
-6174

query I rowsort
SELECT DISTINCT - + 19 * + 19 + - + 45 * + 76 AS col0
----
-3781

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT + 41 * - + COUNT( * ) * - ( - 94 ) + - 21
----
-3875

skipif mysql # not compatible
query I rowsort label-6331
SELECT + 41 * - + COUNT ( * ) * - ( - 94 ) + - 21
----
-3875

query II rowsort
SELECT - 65 col1, ( - - 66 ) * 40
----
-65
2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6333
SELECT - COALESCE ( 14, - 43 + 18 DIV - 5 ) DIV - 93 + - 1 * 93 + - COUNT( ALL 90 )
----
-94

skipif mysql # not compatible
query I rowsort label-6333
SELECT - COALESCE ( 14, - 43 + 18 / - 5 ) / - 93 + - 1 * 93 + - COUNT ( ALL 90 )
----
-94

query I rowsort
SELECT DISTINCT + - NULLIF ( - - 90, + 29 ) * + + 22 * - 64 AS col2
----
126720

query I rowsort
SELECT ALL - + ( 94 ) AS col0
----
-94

query I rowsort
SELECT DISTINCT 53 * + 84
----
4452

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT + 60 DIV - + 93 - - 15 * 4 DIV - + 64 + + 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6337
SELECT + 60 / - + 93 - - 15 * 4 / - + 64 + + 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT ALL + ( + ( - ( + 49 ) ) ) + - + ( COUNT( * ) ) * 76
----
-125

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL + ( + ( - ( + 49 ) ) ) + - + ( COUNT ( * ) ) * 76
----
-125

query II rowsort
SELECT + 56, ( 97 ) AS col0
----
56
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6340
SELECT + 73, CAST( NULL AS DECIMAL ) AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-6340
SELECT + 73, CAST ( NULL AS REAL ) AS col1
----
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6341
SELECT - ( + 61 ) / - CAST( NULL AS SIGNED ) * + - 76 + + MIN( + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT - ( + 61 ) / - CAST ( NULL AS INTEGER ) * + - 76 + + MIN ( + 65 )
----
NULL

query I rowsort
SELECT 61 * + 54
----
3294

query II rowsort
SELECT - 50 + + 86 * 55 + - - 76, 49 AS col0
----
4756
49

query I rowsort
SELECT DISTINCT - 66 * 86 AS col2
----
-5676

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6345
SELECT ALL 91 * CAST( NULL AS DECIMAL ), + ( + - 96 ) AS col1
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-6345
SELECT ALL 91 * CAST ( NULL AS REAL ), + ( + - 96 ) AS col1
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT MIN( - 42 ) + + + 30
----
-12

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT MIN ( - 42 ) + + + 30
----
-12

query II rowsort
SELECT DISTINCT - 29 * + 33, 53 AS col0
----
-957
53

query I rowsort
SELECT DISTINCT 43 + + - 60 * + 33 AS col2
----
-1937

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6349
SELECT ALL 78 DIV - + 92 * COUNT( * ) * ( ( 19 ) ) * 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL 78 / - + 92 * COUNT ( * ) * ( ( 19 ) ) * 15 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL NULLIF ( + 24, + - 61 + NULLIF ( - 81, - - 6 ) ) + + SUM( + 47 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL NULLIF ( + 24, + - 61 + NULLIF ( - 81, - - 6 ) ) + + SUM ( + 47 ) col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT MIN( - + 73 ) - - 77 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6351
SELECT MIN ( - + 73 ) - - 77 AS col1
----
4

query II rowsort
SELECT 1 * 92 AS col0, 34 AS col1
----
92
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6353
SELECT DISTINCT ( CASE - 95 WHEN 95 * - COUNT( * ) - - AVG ( ALL + 1 ) + + 33 THEN NULL WHEN CAST( + 66 AS SIGNED ) * + 13 THEN NULL ELSE + 44 END ) - - 63
----
107

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT ( CASE - 95 WHEN 95 * - COUNT ( * ) - - AVG ( ALL + 1 ) + + 33 THEN NULL WHEN CAST ( + 66 AS INTEGER ) * + 13 THEN NULL ELSE + 44 END ) - - 63
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6354
SELECT CAST( - ( 97 ) AS SIGNED ) * 59
----
-5723

skipif mysql # not compatible
query I rowsort label-6354
SELECT CAST ( - ( 97 ) AS INTEGER ) * 59
----
-5723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT DISTINCT 48 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT 48 - - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 42 - - 50 AS col1, 5
----
92
5

query II rowsort
SELECT ALL 83 * + 67 AS col0, - 7 * 69
----
5561
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT - MIN( DISTINCT 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-6358
SELECT - MIN ( DISTINCT 20 )
----
-20

query I rowsort
SELECT ALL COALESCE ( + 92, - + 41 ) col0
----
92

query I rowsort
SELECT 4 + - 81 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT COUNT( * ) * + ( - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6361
SELECT COUNT ( * ) * + ( - 32 ) AS col1
----
-32

query I rowsort
SELECT - 39 + - 76 AS col1
----
-115

query I rowsort
SELECT 96 + + 42 col2
----
138

query I rowsort
SELECT ALL - + 42 * + + 98 - - - 1 AS col0
----
-4117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT + 89 + + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT + 89 + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT ALL 58 DIV - NULLIF ( 33, + + 18 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL 58 / - NULLIF ( 33, + + 18 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT + - 89 * + + COUNT( * ) + + 18 - ( + 29 ) + + - 79 * - 92 * COUNT( * ) + ( - 9 ) col2
----
7159

skipif mysql # not compatible
query I rowsort label-6367
SELECT + - 89 * + + COUNT ( * ) + + 18 - ( + 29 ) + + - 79 * - 92 * COUNT ( * ) + ( - 9 ) col2
----
7159

query I rowsort
SELECT ALL + 25 * - 41 + + 59 col2
----
-966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT + 64 + - CAST( - + 94 AS SIGNED )
----
158

skipif mysql # not compatible
query I rowsort label-6369
SELECT + 64 + - CAST ( - + 94 AS INTEGER )
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT ALL - 37 * 67 * 81 DIV - 68
----
2952

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - 37 * 67 * 81 / - 68
----
2952

query II rowsort
SELECT 75 * - 71 AS col2, + 4 AS col1
----
-5325
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6372
SELECT + 47 * CASE - 22 WHEN 2 * + + AVG ( DISTINCT + 89 ) + + + 35 - NULLIF ( - 82, + NULLIF ( - COUNT( * ), 14 ) ) + - COUNT( * ) THEN NULL WHEN COUNT( DISTINCT 16 ) - + 37 THEN 94 WHEN MIN( 41 ) - + CASE - COUNT( * ) WHEN 44 THEN NULL WHEN + 16 THEN CAST( + 92 AS SIGNED ) * - 51 WHEN CAST( NULL AS SIGNED ) * 7 - + 93 THEN 15 END * - 83 THEN NULL WHEN + 74 + 38 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT + 47 * CASE - 22 WHEN 2 * + + AVG ( DISTINCT + 89 ) + + + 35 - NULLIF ( - 82, + NULLIF ( - COUNT ( * ), 14 ) ) + - COUNT ( * ) THEN NULL WHEN COUNT ( DISTINCT 16 ) - + 37 THEN 94 WHEN MIN ( 41 ) - + CASE - COUNT ( * ) WHEN 44 THEN NULL WHEN + 16 THEN CAST ( + 92 AS INTEGER ) * - 51 WHEN CAST ( NULL AS INTEGER ) * 7 - + 93 THEN 15 END * - 83 THEN NULL WHEN + 74 + 38 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT - COUNT( 90 ) * + CASE - 35 WHEN - 10 THEN NULL WHEN + 49 + MAX( DISTINCT 43 ) THEN - COUNT( * ) - 78 END + - MIN( DISTINCT - ( 26 ) + + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT - COUNT ( 90 ) * + CASE - 35 WHEN - 10 THEN NULL WHEN + 49 + MAX ( DISTINCT 43 ) THEN - COUNT ( * ) - 78 END + - MIN ( DISTINCT - ( 26 ) + + 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6374
SELECT ALL - 85 * COUNT( * ) + - - 85, 16 * + 65 AS col2
----
0
1040

skipif mysql # not compatible
query II rowsort label-6374
SELECT ALL - 85 * COUNT ( * ) + - - 85, 16 * + 65 AS col2
----
0
1040

query II rowsort
SELECT + 14, ( + + 40 ) * - 34 + + 61 + + 14 col2
----
14
-1285

onlyif mysql # aggregate syntax: 
query II rowsort label-6376
SELECT COUNT( * ) AS col0, 51 AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-6376
SELECT COUNT ( * ) AS col0, 51 AS col0
----
1
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6377
SELECT ALL + COUNT( * ) AS col2, 28
----
1
28

skipif mysql # not compatible
query II rowsort label-6377
SELECT ALL + COUNT ( * ) AS col2, 28
----
1
28

query I rowsort
SELECT ALL 37 * - - 19 AS col0
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL - 58 * + ( 11 ) + NULLIF ( 93, + ( + COALESCE ( 57, - 41, + 90 ) ) * ( + COUNT( * ) ) ) - + 63 AS col0
----
-608

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - 58 * + ( 11 ) + NULLIF ( 93, + ( + COALESCE ( 57, - 41, + 90 ) ) * ( + COUNT ( * ) ) ) - + 63 AS col0
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT CASE + - 80 WHEN 90 + + 1 - 72 + + 72 * - 71 / + + 19 * MIN( DISTINCT + 92 ) THEN 88 END * 70 + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT CASE + - 80 WHEN 90 + + 1 - 72 + + 72 * - 71 / + + 19 * MIN ( DISTINCT + 92 ) THEN 88 END * 70 + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT - 74 * 24 - + 74 + + 38 + + COUNT( * )
----
-1811

skipif mysql # not compatible
query I rowsort label-6381
SELECT - 74 * 24 - + 74 + + 38 + + COUNT ( * )
----
-1811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT DISTINCT + CAST( + 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT + CAST ( + 42 AS INTEGER ) AS col0
----
42

query II rowsort
SELECT 7 * + 9 - + - 9 AS col1, 12
----
72
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6384
SELECT DISTINCT - MIN( 68 ) - ( - + 46 ) col1, 24 + ( - 94 ) + - + 42
----
-22
-112

skipif mysql # not compatible
query II rowsort label-6384
SELECT DISTINCT - MIN ( 68 ) - ( - + 46 ) col1, 24 + ( - 94 ) + - + 42
----
-22
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT DISTINCT CASE - 4 WHEN - + 72 THEN NULL WHEN + 61 * + 63 THEN + COUNT( * ) * - MAX( DISTINCT - - 98 ) ELSE + 33 * 16 END
----
528

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT CASE - 4 WHEN - + 72 THEN NULL WHEN + 61 * + 63 THEN + COUNT ( * ) * - MAX ( DISTINCT - - 98 ) ELSE + 33 * 16 END
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT ALL - CASE WHEN NOT ( NOT + 80 <= 2 * - 88 + COUNT( * ) * - 39 ) THEN 79 + - CAST( NULL AS SIGNED ) * 22 END * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL - CASE WHEN NOT ( NOT + 80 <= 2 * - 88 + COUNT ( * ) * - 39 ) THEN 79 + - CAST ( NULL AS INTEGER ) * 22 END * 75
----
NULL

query II rowsort
SELECT DISTINCT CASE - + 69 WHEN + 99 * - 24 THEN + - 39 ELSE + 45 END AS col1, - 53
----
45
-53

query I rowsort
SELECT ALL - NULLIF ( 63, - 89 ) * - 61 + + - 84 AS col2
----
3759

query II rowsort
SELECT 59, 79 * + 60 * 82 + + 92 AS col2
----
59
388772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6390
SELECT + COUNT( * ) DIV + + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6390
SELECT + COUNT ( * ) / + + 1 AS col2
----
1

query I rowsort
SELECT + 84 + + - 75 * - 46
----
3534

query II rowsort
SELECT + + ( - + 57 ) + + 96 AS col1, + 16 * 32
----
39
512

query I rowsort
SELECT - - 37 * + 40 AS col1
----
1480

query I rowsort
SELECT + - 73 + + 5 + + - NULLIF ( - 5, - 62 * + 43 - 31 + 84 + + 32 ) - 52 * + 74
----
-3911

query II rowsort
SELECT - 61 AS col2, COALESCE ( - - ( - 78 ), 67 ) col2
----
-61
-78

query I rowsort
SELECT + + 4 * 17
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6397
SELECT - - 42 col1, ( CAST( + 74 AS SIGNED ) ) + COUNT( * )
----
42
75

skipif mysql # not compatible
query II rowsort label-6397
SELECT - - 42 col1, ( CAST ( + 74 AS INTEGER ) ) + COUNT ( * )
----
42
75

query I rowsort
SELECT ALL + 24 + - 92 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT DISTINCT - SUM( 57 ) + - + 81 * + NULLIF ( + + COUNT( * ), - - 87 ) + + 80 col1
----
-58

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT - SUM ( 57 ) + - + 81 * + NULLIF ( + + COUNT ( * ), - - 87 ) + + 80 col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT + COALESCE ( - COALESCE ( - CASE + + ( + 73 ) WHEN - 74 THEN 65 END, NULLIF ( + 64, + 58 ) + - NULLIF ( + ( + 4 ) - + 22 * - 4, 98 ), + MIN( + 63 ) ), - 30 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6400
SELECT + COALESCE ( - COALESCE ( - CASE + + ( + 73 ) WHEN - 74 THEN 65 END, NULLIF ( + 64, + 58 ) + - NULLIF ( + ( + 4 ) - + 22 * - 4, 98 ), + MIN ( + 63 ) ), - 30 ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT DISTINCT COUNT( + - CAST( - 67 AS SIGNED ) ) * 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT COUNT ( + - CAST ( - 67 AS INTEGER ) ) * 59 AS col2
----
59

query I rowsort
SELECT + - 77 * - 81
----
6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6403
SELECT - COUNT( * ) AS col0, - NULLIF ( + MAX( ALL CAST( NULL AS SIGNED ) ), - 43 ) + + - 98 + + 79 * - 5
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6403
SELECT - COUNT ( * ) AS col0, - NULLIF ( + MAX ( ALL CAST ( NULL AS INTEGER ) ), - 43 ) + + - 98 + + 79 * - 5
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6404
SELECT + CAST( ( + MIN( DISTINCT + 46 ) ) AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6404
SELECT + CAST ( ( + MIN ( DISTINCT + 46 ) ) AS INTEGER ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT - - CASE + + 7 WHEN + COUNT( * ) THEN + - CAST( NULL AS SIGNED ) END * - COUNT( - 32 ) + + - COALESCE ( 16, COALESCE ( + COUNT( ALL 31 ), COUNT( DISTINCT + 43 ) ) * 24, 78 * + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT - - CASE + + 7 WHEN + COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) END * - COUNT ( - 32 ) + + - COALESCE ( 16, COALESCE ( + COUNT ( ALL 31 ), COUNT ( DISTINCT + 43 ) ) * 24, 78 * + 25 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6406
SELECT ALL + 77 DIV - 66 + - MAX( 88 )
----
-89

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL + 77 / - 66 + - MAX ( 88 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT DISTINCT + 27 DIV + - NULLIF ( 36, 44 ) * + MAX( DISTINCT - 36 ) + + 21 - - 75
----
96

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT + 27 / + - NULLIF ( 36, 44 ) * + MAX ( DISTINCT - 36 ) + + 21 - - 75
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT DISTINCT COUNT( * ) / + + ( CASE - - COUNT( * ) WHEN 75 THEN + 19 / + - 47 + - - 39 + + 52 - 92 WHEN - COUNT( * ) THEN NULL ELSE NULL END ) * + 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT COUNT ( * ) / + + ( CASE - - COUNT ( * ) WHEN 75 THEN + 19 / + - 47 + - - 39 + + 52 - 92 WHEN - COUNT ( * ) THEN NULL ELSE NULL END ) * + 28 col1
----
NULL

query I rowsort
SELECT ALL + 64 * + + 6 - + + 79 AS col0
----
305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6410
SELECT ALL COUNT( * ) / - CASE 79 WHEN 42 + + CAST( - - 6 AS SIGNED ) * 6 * ( 36 ) THEN 49 * - 31 + - 77 WHEN - MIN( - 11 ) THEN NULL ELSE NULL END * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL COUNT ( * ) / - CASE 79 WHEN 42 + + CAST ( - - 6 AS INTEGER ) * 6 * ( 36 ) THEN 49 * - 31 + - 77 WHEN - MIN ( - 11 ) THEN NULL ELSE NULL END * - 11
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6411
SELECT ( - 39 ) AS col2, - COUNT( * ) AS col1
----
-39
-1

skipif mysql # not compatible
query II rowsort label-6411
SELECT ( - 39 ) AS col2, - COUNT ( * ) AS col1
----
-39
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6412
SELECT + ( - COUNT( * ) ) AS col0, 97 AS col1
----
-1
97

skipif mysql # not compatible
query II rowsort label-6412
SELECT + ( - COUNT ( * ) ) AS col0, 97 AS col1
----
-1
97

query I rowsort
SELECT - 37 + - - 29 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL + CASE + CASE 31 WHEN + NULLIF ( + MIN( 74 ), + + 85 ) THEN COUNT( * ) / - 12 WHEN 31 THEN NULL END WHEN - COUNT( * ) THEN COUNT( * ) / 1 WHEN NULLIF ( 49, - NULLIF ( + COUNT( * ), 45 ) ) + - 53 * 89 THEN + 37 * ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + CASE + CASE 31 WHEN + NULLIF ( + MIN ( 74 ), + + 85 ) THEN COUNT ( * ) / - 12 WHEN 31 THEN NULL END WHEN - COUNT ( * ) THEN COUNT ( * ) / 1 WHEN NULLIF ( 49, - NULLIF ( + COUNT ( * ), 45 ) ) + - 53 * 89 THEN + 37 * ( COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT + 7 * 0 + - 83
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-6416
SELECT DISTINCT + MAX( ALL + 48 ) AS col1, - 26
----
48
-26

skipif mysql # not compatible
query II rowsort label-6416
SELECT DISTINCT + MAX ( ALL + 48 ) AS col1, - 26
----
48
-26

query I rowsort
SELECT - 1 * - 52
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6418
SELECT NULLIF ( + - 23, + AVG ( - 39 ) ), COUNT( * ) + + 3 AS col1
----
-23
4

skipif mysql # not compatible
query II rowsort label-6418
SELECT NULLIF ( + - 23, + AVG ( - 39 ) ), COUNT ( * ) + + 3 AS col1
----
-23
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT - 41 - + + COUNT( * ) * + + 88 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-6419
SELECT - 41 - + + COUNT ( * ) * + + 88 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT - COUNT( * ) * + + COUNT( 83 ) * - NULLIF ( - 78, + 13 ) * - SUM( - NULLIF ( - 59, 50 ) )
----
4602

skipif mysql # not compatible
query I rowsort label-6420
SELECT - COUNT ( * ) * + + COUNT ( 83 ) * - NULLIF ( - 78, + 13 ) * - SUM ( - NULLIF ( - 59, 50 ) )
----
4602

query I rowsort
SELECT - 18 - + 46
----
-64

query I rowsort
SELECT - 35 * + 12 + 94 + CASE + 80 WHEN 63 THEN + AVG ( DISTINCT + 30 ) + ( 22 ) * 41 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL + 53 * + COUNT( * ) + + + 56 - - - COUNT( ALL + 95 ) * + 39 + 65 + - - 72 AS col2
----
207

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL + 53 * + COUNT ( * ) + + + 56 - - - COUNT ( ALL + 95 ) * + 39 + 65 + - - 72 AS col2
----
207

query I rowsort
SELECT ALL + + 33 * 21 col2
----
693

onlyif mysql # aggregate syntax: 
query II rowsort label-6425
SELECT ALL - + 71 + - 25 AS col0, + ( + - COUNT( * ) ) + - + 34
----
-96
-35

skipif mysql # not compatible
query II rowsort label-6425
SELECT ALL - + 71 + - 25 AS col0, + ( + - COUNT ( * ) ) + - + 34
----
-96
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL COUNT( * ) + - COUNT( * ) * + 15 * - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL COUNT ( * ) + - COUNT ( * ) * + 15 * - COUNT ( * ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - 71 * + - MAX( 61 )
----
4331

skipif mysql # not compatible
query I rowsort label-6427
SELECT - 71 * + - MAX ( 61 )
----
4331

query I rowsort
SELECT ALL + - 58 + - 7 + - 71 col0
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6429
SELECT - CAST( - 24 AS SIGNED ) AS col1, 30 * + 45 AS col0
----
24
1350

skipif mysql # not compatible
query II rowsort label-6429
SELECT - CAST ( - 24 AS INTEGER ) AS col1, 30 * + 45 AS col0
----
24
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT - + COUNT( * ) + - 8 + + ( + 41 ) - + 77 * - 39 AS col2
----
3035

skipif mysql # not compatible
query I rowsort label-6430
SELECT - + COUNT ( * ) + - 8 + + ( + 41 ) - + 77 * - 39 AS col2
----
3035

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT + 51 + MIN( ALL - 91 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6431
SELECT + 51 + MIN ( ALL - 91 ) AS col2
----
-40

query I rowsort
SELECT DISTINCT - 87 * 98 AS col2
----
-8526

query I rowsort
SELECT DISTINCT - + 41 - NULLIF ( - + 59, 35 ) + + 37 + - - 89 AS col2
----
144

query I rowsort
SELECT ALL + 54 * - 59
----
-3186

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT COUNT( + 65 ) * + - ( - COUNT( * ) ) * - 62 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT COUNT ( + 65 ) * + - ( - COUNT ( * ) ) * - 62 AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6436
SELECT NULLIF ( - 78, CAST( NULL AS SIGNED ) * - + 85 * + ( + 40 ) + + + CAST( NULL AS SIGNED ) ) DIV 28 + + + 68 DIV - 69
----
-2

skipif mysql # not compatible
query I rowsort label-6436
SELECT NULLIF ( - 78, CAST ( NULL AS INTEGER ) * - + 85 * + ( + 40 ) + + + CAST ( NULL AS INTEGER ) ) / 28 + + + 68 / - 69
----
-2

query II rowsort
SELECT + 21, ( + 85 ) + - 6 AS col2
----
21
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT COALESCE ( COUNT( * ), 49 - - 54 + + + 14, COALESCE ( + 36, - - 71 - + 65 - + - 90 + + 64 * + MIN( DISTINCT + 69 - 43 * 58 ) ) ) * - CASE + 67 + 32 WHEN ( 47 ) / 71 THEN NULL ELSE - 18 * - MIN( DISTINCT 17 ) END
----
-306

skipif mysql # not compatible
query I rowsort label-6438
SELECT COALESCE ( COUNT ( * ), 49 - - 54 + + + 14, COALESCE ( + 36, - - 71 - + 65 - + - 90 + + 64 * + MIN ( DISTINCT + 69 - 43 * 58 ) ) ) * - CASE + 67 + 32 WHEN ( 47 ) / 71 THEN NULL ELSE - 18 * - MIN ( DISTINCT 17 ) END
----
-306

query I rowsort
SELECT - 66 * + 1 * + 81 - - - 56
----
-5402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT DISTINCT 13 DIV SUM( ALL - + 68 )
----
0

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT 13 / SUM ( ALL - + 68 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6441
SELECT COUNT( * ) DIV - 38 * - - 29 - + - 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6441
SELECT COUNT ( * ) / - 38 * - - 29 - + - 16 AS col0
----
16

query I rowsort
SELECT ALL + 17 * + 76
----
1292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6443
SELECT CAST( 13 AS SIGNED ) + + - CASE ( + 44 ) WHEN - MAX( DISTINCT 7 ) + + 68 THEN + 43 - + - 77 * 57 WHEN + CAST( + 51 AS SIGNED ) + 83 * 60 THEN 59 ELSE + COUNT( ( - ( - 13 ) ) ) END
----
12

skipif mysql # not compatible
query I rowsort label-6443
SELECT CAST ( 13 AS INTEGER ) + + - CASE ( + 44 ) WHEN - MAX ( DISTINCT 7 ) + + 68 THEN + 43 - + - 77 * 57 WHEN + CAST ( + 51 AS INTEGER ) + 83 * 60 THEN 59 ELSE + COUNT ( ( - ( - 13 ) ) ) END
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6444
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) DIV ( - - 28 ) DIV - + 2 + + - 43 DIV 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) / ( - - 28 ) / - + 2 + + - 43 / 38 AS col2
----
-1

query II rowsort
SELECT ALL - 90, 94 AS col1
----
-90
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT COUNT( * ) * - 5 col0
----
-5

skipif mysql # not compatible
query I rowsort label-6446
SELECT COUNT ( * ) * - 5 col0
----
-5

query I rowsort
SELECT ALL 12 + - - 23 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT 45 * + MIN( - - 97 ) - + 73 + - 47 * - 77 + + 14 - 78
----
7847

skipif mysql # not compatible
query I rowsort label-6448
SELECT 45 * + MIN ( - - 97 ) - + 73 + - 47 * - 77 + + 14 - 78
----
7847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT CASE AVG ( DISTINCT 21 ) WHEN + AVG ( DISTINCT - 62 ) THEN 25 END + - + 44 + + 49 * NULLIF ( - COALESCE ( 74, - CAST( - 57 AS SIGNED ) ), 36 * 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT CASE AVG ( DISTINCT 21 ) WHEN + AVG ( DISTINCT - 62 ) THEN 25 END + - + 44 + + 49 * NULLIF ( - COALESCE ( 74, - CAST ( - 57 AS INTEGER ) ), 36 * 81 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6450
SELECT 86 - MIN( 88 ) AS col1, - 12
----
-2
-12

skipif mysql # not compatible
query II rowsort label-6450
SELECT 86 - MIN ( 88 ) AS col1, - 12
----
-2
-12

query I rowsort
SELECT ALL + 45 + - 80 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT DISTINCT COALESCE ( + COUNT( * ), - + CASE + + 32 WHEN - 87 + - 77 / - 33 THEN + 27 + + 79 WHEN - 46 THEN NULL WHEN - COUNT( * ) THEN NULL END, 59 ) * + 35
----
35

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT COALESCE ( + COUNT ( * ), - + CASE + + 32 WHEN - 87 + - 77 / - 33 THEN + 27 + + 79 WHEN - 46 THEN NULL WHEN - COUNT ( * ) THEN NULL END, 59 ) * + 35
----
35

query I rowsort
SELECT ALL 89 + + 32 AS col1
----
121

query I rowsort
SELECT 79 + - 84
----
-5

query I rowsort
SELECT DISTINCT ( 42 ) col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT COUNT( * ) + + 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT COUNT ( * ) + + 42 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL - ( - ( - + COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL - ( - ( - + COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT ALL - 2 + - - 47 col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL - 91 + + 53 + 33 - - COUNT( * ) + + + COALESCE ( - 93, + 85, - + 75 ) * 0 + 6 * + 52 * CASE 17 / ( - ( + 92 ) * 13 ) - - 41 WHEN 9 THEN - 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - 91 + + 53 + 33 - - COUNT ( * ) + + + COALESCE ( - 93, + 85, - + 75 ) * 0 + 6 * + 52 * CASE 17 / ( - ( + 92 ) * 13 ) - - 41 WHEN 9 THEN - 0 ELSE NULL END
----
NULL

query I rowsort
SELECT - 8 * 11
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6461
SELECT DISTINCT - COALESCE ( + 17, - 13, + 22 + - 45 + - COUNT( * ) ) + CAST( NULL AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT - COALESCE ( + 17, - 13, + 22 + - 45 + - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * 61
----
NULL

query I rowsort
SELECT ALL + ( 49 ) * 65 * + + 87 + + - NULLIF ( - ( + + 42 ), + 1 )
----
277137

query I rowsort
SELECT 27 * 93
----
2511

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6464
SELECT ALL + 39 DIV COUNT( * ) + - 41 col0, + 51
----
-2
51

skipif mysql # not compatible
query II rowsort label-6464
SELECT ALL + 39 / COUNT ( * ) + - 41 col0, + 51
----
-2
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6465
SELECT ALL - 61 AS col2, + ( 11 ) * + + AVG ( ALL + - 89 ) * - - 57 + + + CASE 14 WHEN COUNT( * ) THEN - - COALESCE ( ( 67 ), - 24 ) WHEN - 0 THEN NULL ELSE NULL END
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-6465
SELECT ALL - 61 AS col2, + ( 11 ) * + + AVG ( ALL + - 89 ) * - - 57 + + + CASE 14 WHEN COUNT ( * ) THEN - - COALESCE ( ( 67 ), - 24 ) WHEN - 0 THEN NULL ELSE NULL END
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT DISTINCT - 47 - - - COUNT( * ) + 8 col2
----
-40

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT - 47 - - - COUNT ( * ) + 8 col2
----
-40

query II rowsort
SELECT 75 col0, + 18
----
75
18

query II rowsort
SELECT - 4 AS col1, 34 AS col0
----
-4
34

query I rowsort
SELECT 1 - + 13 + + 59 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT 36 DIV 18 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6470
SELECT 36 / 18 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT ALL COUNT( * ) AS col0, 42
----
1
42

skipif mysql # not compatible
query II rowsort label-6471
SELECT ALL COUNT ( * ) AS col0, 42
----
1
42

query II rowsort
SELECT 7 + 0 AS col1, 79
----
7
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT COUNT( * ) * - + 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6473
SELECT COUNT ( * ) * - + 68 AS col2
----
-68

query I rowsort
SELECT + 62 * 81 + + + 29
----
5051

query II rowsort
SELECT DISTINCT - 87, 87 col1
----
-87
87

query I rowsort
SELECT DISTINCT - CASE - 95 WHEN - - 62 THEN - 24 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6477
SELECT ALL - 62 AS col2, COUNT( * ) * - 21 DIV - 96 * - 58 DIV 47 AS col1
----
-62
0

skipif mysql # not compatible
query II rowsort label-6477
SELECT ALL - 62 AS col2, COUNT ( * ) * - 21 / - 96 * - 58 / 47 AS col1
----
-62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT COUNT( * ) * - - 91 * 70 col2
----
6370

skipif mysql # not compatible
query I rowsort label-6478
SELECT COUNT ( * ) * - - 91 * 70 col2
----
6370

query I rowsort
SELECT ALL 72 * + 46 AS col2
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL - MIN( - - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - MIN ( - - 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6481
SELECT 49 * - 96 + + 42 - - COUNT( * ) + + NULLIF ( + - ( + - 34 ), - 69 DIV - + ( - + 29 ) + + CAST( NULL AS SIGNED ) * - 78 + - 36 ) DIV - 71 * - 37
----
-4661

skipif mysql # not compatible
query I rowsort label-6481
SELECT 49 * - 96 + + 42 - - COUNT ( * ) + + NULLIF ( + - ( + - 34 ), - 69 / - + ( - + 29 ) + + CAST ( NULL AS INTEGER ) * - 78 + - 36 ) / - 71 * - 37
----
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT ALL + 58 * + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL + 58 * + COUNT ( * ) AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT ( - CAST( 27 AS SIGNED ) ) * + 59 AS col0
----
-1593

skipif mysql # not compatible
query I rowsort label-6483
SELECT ( - CAST ( 27 AS INTEGER ) ) * + 59 AS col0
----
-1593

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6484
SELECT COUNT( * ) AS col0, + NULLIF ( - 10, - + 41 + - 77 - - 76 ) DIV + - 17 * + 80 * - NULLIF ( + - 78, - 92 ) + - 81
----
1
-81

skipif mysql # not compatible
query II rowsort label-6484
SELECT COUNT ( * ) AS col0, + NULLIF ( - 10, - + 41 + - 77 - - 76 ) / + - 17 * + 80 * - NULLIF ( + - 78, - 92 ) + - 81
----
1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT MIN( ALL + - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6485
SELECT MIN ( ALL + - 69 )
----
-69

query I rowsort
SELECT ALL 12 + 97 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + COUNT( DISTINCT + NULLIF ( - COALESCE ( - 81, + - ( + + 95 ) * COALESCE ( + ( - 24 ), 41 ), - 34 ), + 42 - 43 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6487
SELECT + COUNT ( DISTINCT + NULLIF ( - COALESCE ( - 81, + - ( + + 95 ) * COALESCE ( + ( - 24 ), 41 ), - 34 ), + 42 - 43 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT ALL 6 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL 6 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT MIN( DISTINCT + + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6489
SELECT MIN ( DISTINCT + + 88 ) AS col2
----
88

query I rowsort
SELECT DISTINCT 35 + + 8
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6491
SELECT + COUNT( * ) AS col1, - ( 92 ) DIV - + 15
----
1
6

skipif mysql # not compatible
query II rowsort label-6491
SELECT + COUNT ( * ) AS col1, - ( 92 ) / - + 15
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT ALL - COUNT( * ) + - 52 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL - COUNT ( * ) + - 52 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + 26 * - 20 + + COUNT( * )
----
-519

skipif mysql # not compatible
query I rowsort label-6493
SELECT + 26 * - 20 + + COUNT ( * )
----
-519

query II rowsort
SELECT ALL 96 + + 3 * - 50 * + 27, - ( 7 ) * + - 98 AS col1
----
-3954
686

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT DISTINCT - 61 DIV + 7 - + - 9 * + 14
----
118

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT - 61 / + 7 - + - 9 * + 14
----
118

query II rowsort
SELECT - 30 AS col2, 68 AS col0
----
-30
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT - MAX( DISTINCT - 75 ) - 87 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6497
SELECT - MAX ( DISTINCT - 75 ) - 87 AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6498
SELECT COUNT( * ) * - + 40 - - - 97 DIV ( - + 87 ) * + 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6498
SELECT COUNT ( * ) * - + 40 - - - 97 / ( - + 87 ) * + 20 AS col0
----
-20

query I rowsort
SELECT COALESCE ( + + 55, - 68 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT + 6 - COUNT( * ) + COUNT( * ) * + 22 * + + 17
----
379

skipif mysql # not compatible
query I rowsort label-6500
SELECT + 6 - COUNT ( * ) + COUNT ( * ) * + 22 * + + 17
----
379

onlyif mysql # aggregate syntax: 
query II rowsort label-6501
SELECT - + COUNT( * ) col2, 64 AS col1
----
-1
64

skipif mysql # not compatible
query II rowsort label-6501
SELECT - + COUNT ( * ) col2, 64 AS col1
----
-1
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT - - CAST( - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-6502
SELECT - - CAST ( - 83 AS INTEGER )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6503
SELECT ALL CAST( + COUNT( - + CAST( - + 29 AS SIGNED ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL CAST ( + COUNT ( - + CAST ( - + 29 AS INTEGER ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6504
SELECT ALL - 9 * - COUNT( * ) DIV - - 82
----
0

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - 9 * - COUNT ( * ) / - - 82
----
0

query I rowsort
SELECT DISTINCT 7 - 47 - + 77
----
-117

query I rowsort
SELECT NULLIF ( - + 82, 42 ) AS col0
----
-82

query II rowsort
SELECT DISTINCT - 6, 98 + - - 26 AS col0
----
-6
124

query I rowsort
SELECT - CASE - - 71 WHEN + 11 * - 5 * 65 THEN NULL WHEN + 39 THEN 57 END * - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6509
SELECT ALL + NULLIF ( + NULLIF ( 95, - NULLIF ( - 3, + 89 * + COUNT( * ) + - 27 ) - - 38 ), - CAST( + ( - 88 ) AS SIGNED ) ) col1
----
95

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL + NULLIF ( + NULLIF ( 95, - NULLIF ( - 3, + 89 * + COUNT ( * ) + - 27 ) - - 38 ), - CAST ( + ( - 88 ) AS INTEGER ) ) col1
----
95

query II rowsort
SELECT ALL 99, 74 AS col2
----
99
74

query I rowsort
SELECT + 22 + 59 - + - 52 * + 51 AS col1
----
2733

query II rowsort
SELECT + 35 + - 59 AS col0, + 15 AS col0
----
-24
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT - 97 - CAST( NULL AS SIGNED ) * 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT - 97 - CAST ( NULL AS INTEGER ) * 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT - 8 * - MIN( ALL - 4 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6514
SELECT - 8 * - MIN ( ALL - 4 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - 14 * + + COUNT( ALL 80 ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-6515
SELECT - 14 * + + COUNT ( ALL 80 ) col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT DISTINCT - COUNT( * ) * 92 * 5
----
-460

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT - COUNT ( * ) * 92 * 5
----
-460

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6517
SELECT ALL 49 DIV + MIN( DISTINCT - 36 ) AS col2, + 55 AS col2
----
-1
55

skipif mysql # not compatible
query II rowsort label-6517
SELECT ALL 49 / + MIN ( DISTINCT - 36 ) AS col2, + 55 AS col2
----
-1
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6518
SELECT DISTINCT SUM( + 28 ) AS col2, + ( + + 98 ) DIV 62 * + 17
----
28
17

skipif mysql # not compatible
query II rowsort label-6518
SELECT DISTINCT SUM ( + 28 ) AS col2, + ( + + 98 ) / 62 * + 17
----
28
17

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6519
SELECT ALL NULLIF ( ( + + 40 ), CAST( - 78 AS DECIMAL ) ) AS col1, 28
----
40
28

skipif mysql # not compatible
query II rowsort label-6519
SELECT ALL NULLIF ( ( + + 40 ), CAST ( - 78 AS REAL ) ) AS col1, 28
----
40
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT DISTINCT - ( 1 ) * - CAST( + ( - + ( + - 78 ) ) AS SIGNED ) * 63 + - + 0
----
4914

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT - ( 1 ) * - CAST ( + ( - + ( + - 78 ) ) AS INTEGER ) * 63 + - + 0
----
4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT 62 / + CAST( NULL AS SIGNED ) / - + MAX( + + CAST( NULL AS SIGNED ) ) * + + 74 + + + 93 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT 62 / + CAST ( NULL AS INTEGER ) / - + MAX ( + + CAST ( NULL AS INTEGER ) ) * + + 74 + + + 93 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT DISTINCT + ( + - NULLIF ( 16, + - COUNT( * ) * - + 95 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT + ( + - NULLIF ( 16, + - COUNT ( * ) * - + 95 ) )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT 81 DIV + 32 + 48 + + 24 col1
----
74

skipif mysql # not compatible
query I rowsort label-6523
SELECT 81 / + 32 + 48 + + 24 col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ( NULLIF ( + - 81, - + COUNT( * ) / - 97 ) ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6524
SELECT ( NULLIF ( + - 81, - + COUNT ( * ) / - 97 ) ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6525
SELECT + SUM( - + 60 ) AS col0, - NULLIF ( + CAST( - + 50 AS SIGNED ), - - ( - ( + 87 ) ) )
----
-60
50

skipif mysql # not compatible
query II rowsort label-6525
SELECT + SUM ( - + 60 ) AS col0, - NULLIF ( + CAST ( - + 50 AS INTEGER ), - - ( - ( + 87 ) ) )
----
-60
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6526
SELECT - COUNT( * ) + 11 + - COALESCE ( + + COUNT( * ), - - 93, + 7 + + + 77 - + 7 * 41 + + 2 DIV + + 31 + - 21 DIV + CAST( NULL AS SIGNED ) )
----
9

skipif mysql # not compatible
query I rowsort label-6526
SELECT - COUNT ( * ) + 11 + - COALESCE ( + + COUNT ( * ), - - 93, + 7 + + + 77 - + 7 * 41 + + 2 / + + 31 + - 21 / + CAST ( NULL AS INTEGER ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT + SUM( - + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-6527
SELECT + SUM ( - + 47 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT DISTINCT 94 * CAST( - 59 AS SIGNED ) + + 14 AS col2
----
-5532

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT 94 * CAST ( - 59 AS INTEGER ) + + 14 AS col2
----
-5532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6529
SELECT ALL - 90 DIV - - NULLIF ( + 59, - 28 DIV + 46 - - 16 * - 90 + + 66 * + COUNT( * ) * + 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL - 90 / - - NULLIF ( + 59, - 28 / + 46 - - 16 * - 90 + + 66 * + COUNT ( * ) * + 19 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6530
SELECT + COUNT( * ) DIV - 7 * 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6530
SELECT + COUNT ( * ) / - 7 * 57 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL + NULLIF ( - 17, + 95 ) * + CASE + MAX( + 12 ) WHEN - 52 THEN 6 WHEN 26 THEN NULL WHEN - COALESCE ( + 43, - 33 ) THEN + 68 END + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL + NULLIF ( - 17, + 95 ) * + CASE + MAX ( + 12 ) WHEN - 52 THEN 6 WHEN 26 THEN NULL WHEN - COALESCE ( + 43, - 33 ) THEN + 68 END + + 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT - 29 * 11 + - NULLIF ( + SUM( ALL + 68 ), 45 * + MAX( ALL - + 2 ) )
----
-387

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - 29 * 11 + - NULLIF ( + SUM ( ALL + 68 ), 45 * + MAX ( ALL - + 2 ) )
----
-387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6533
SELECT COALESCE ( COUNT( * ), - 68 DIV COUNT( * ) + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6533
SELECT COALESCE ( COUNT ( * ), - 68 / COUNT ( * ) + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL COUNT( * ) * - 34 * - - COUNT( * ) + - + 14 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL COUNT ( * ) * - 34 * - - COUNT ( * ) + - + 14 AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT + 25 DIV + + 18 + 58 * - + 10
----
-579

skipif mysql # not compatible
query I rowsort label-6535
SELECT + 25 / + + 18 + 58 * - + 10
----
-579

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL ( ( - + 21 ) ) * 47 + 75 + + + COUNT( * ) AS col0
----
-911

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL ( ( - + 21 ) ) * 47 + 75 + + + COUNT ( * ) AS col0
----
-911

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6537
SELECT + 24 + - 8 + - - 10 + - CAST( NULL AS DECIMAL ) + - ( + CAST( NULL AS DECIMAL ) ) + - 15 * - + 26 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT + 24 + - 8 + - - 10 + - CAST ( NULL AS REAL ) + - ( + CAST ( NULL AS REAL ) ) + - 15 * - + 26 * 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6538
SELECT DISTINCT - + 14 * - 78 AS col0, 31 / - CAST( NULL AS SIGNED )
----
1092
NULL

skipif mysql # not compatible
query II rowsort label-6538
SELECT DISTINCT - + 14 * - 78 AS col0, 31 / - CAST ( NULL AS INTEGER )
----
1092
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6539
SELECT + COALESCE ( 6, - 27 + CAST( NULL AS SIGNED ), COUNT( * ) DIV + 78 ) * - CAST( + CASE - 41 WHEN + 87 THEN 32 - + CAST( 6 AS SIGNED ) WHEN - COUNT( * ) - 82 THEN NULL ELSE 67 END AS SIGNED ) + 81
----
-321

skipif mysql # not compatible
query I rowsort label-6539
SELECT + COALESCE ( 6, - 27 + CAST ( NULL AS INTEGER ), COUNT ( * ) / + 78 ) * - CAST ( + CASE - 41 WHEN + 87 THEN 32 - + CAST ( 6 AS INTEGER ) WHEN - COUNT ( * ) - 82 THEN NULL ELSE 67 END AS INTEGER ) + 81
----
-321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6540
SELECT - + CAST( + + MIN( ALL - 35 ) AS SIGNED ) + + 91
----
126

skipif mysql # not compatible
query I rowsort label-6540
SELECT - + CAST ( + + MIN ( ALL - 35 ) AS INTEGER ) + + 91
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - NULLIF ( 65, 70 * + COUNT( * ) ) * - 60 - - COUNT( * )
----
3901

skipif mysql # not compatible
query I rowsort label-6541
SELECT - NULLIF ( 65, 70 * + COUNT ( * ) ) * - 60 - - COUNT ( * )
----
3901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT ALL + ( - ( - NULLIF ( 3, + 10 + + CAST( NULL AS SIGNED ) ) ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL + ( - ( - NULLIF ( 3, + 10 + + CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
3

query I rowsort
SELECT + + 44 * + 89 * + 38 * - - 30 AS col2
----
4464240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6544
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + COUNT( * ) - 58 + - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT CAST ( NULL AS REAL ) * + COUNT ( * ) - 58 + - + 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6545
SELECT DISTINCT - ( + 94 ), + 11 * + CAST( NULL AS SIGNED ) + + 4 col0
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-6545
SELECT DISTINCT - ( + 94 ), + 11 * + CAST ( NULL AS INTEGER ) + + 4 col0
----
-94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT - MAX( - ( ( + + 65 ) ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6546
SELECT - MAX ( - ( ( + + 65 ) ) ) AS col0
----
65

query I rowsort
SELECT + + ( - + 47 ) * - + 30
----
1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6548
SELECT DISTINCT 55 * - 36 + + - CASE - ( + + MIN( - 80 ) ) WHEN + SUM( 4 ) THEN CAST( - ( AVG ( DISTINCT 17 ) ) AS SIGNED ) END + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT 55 * - 36 + + - CASE - ( + + MIN ( - 80 ) ) WHEN + SUM ( 4 ) THEN CAST ( - ( AVG ( DISTINCT 17 ) ) AS INTEGER ) END + 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL - COUNT( * ) * - 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL - COUNT ( * ) * - 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT + 29 / - 49 + 11 * + ( CASE - - MAX( DISTINCT + 13 ) WHEN 49 THEN + + 23 / 86 - + 16 + - + 82 WHEN - 80 + + 25 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT + 29 / - 49 + 11 * + ( CASE - - MAX ( DISTINCT + 13 ) WHEN 49 THEN + + 23 / 86 - + 16 + - + 82 WHEN - 80 + + 25 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT + 85 * ( - ( + 53 ) ) AS col1
----
-4505

query I rowsort
SELECT DISTINCT 8 * + 34
----
272

query I rowsort
SELECT ALL - 30 + 49 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT ALL 43 * - - COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL 43 * - - COUNT ( * ) AS col2
----
43

query II rowsort
SELECT DISTINCT ( 74 ) + 69 AS col2, - 99 * - 99
----
143
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT DISTINCT 61 + + 19 + - + 40 * NULLIF ( + - 26, - + MAX( - 48 ) ) AS col0
----
1120

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT 61 + + 19 + - + 40 * NULLIF ( + - 26, - + MAX ( - 48 ) ) AS col0
----
1120

query I rowsort
SELECT - ( + - 18 )
----
18

query II rowsort
SELECT 8 AS col0, + 67 * + - 42 - 49 col2
----
8
-2863

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6559
SELECT ALL CAST( NULL AS DECIMAL ) + - 0 / 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL CAST ( NULL AS REAL ) + - 0 / 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL 96 + COALESCE ( - COUNT( * ), + 5 - - + 12 ) + - 84 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL 96 + COALESCE ( - COUNT ( * ), + 5 - - + 12 ) + - 84 AS col0
----
11

query I rowsort
SELECT + 1 - 92 * + - 37
----
3405

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT - 25 + - MAX( ALL + 42 )
----
-67

skipif mysql # not compatible
query I rowsort label-6562
SELECT - 25 + - MAX ( ALL + 42 )
----
-67

query I rowsort
SELECT DISTINCT - 13 + + 43 - - 52 - 22 * + 55 * + 62 * + 56 col0
----
-4201038

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6564
SELECT DISTINCT 59 DIV + COUNT( DISTINCT 65 ) + - - 72, 48 AS col1
----
131
48

skipif mysql # not compatible
query II rowsort label-6564
SELECT DISTINCT 59 / + COUNT ( DISTINCT 65 ) + - - 72, 48 AS col1
----
131
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT ALL CAST( NULL AS SIGNED ) / - COUNT( * ) + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT - MIN( - - 71 ) + + ( + 94 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6566
SELECT - MIN ( - - 71 ) + + ( + 94 ) AS col2
----
23

query I rowsort
SELECT DISTINCT 95 * 0 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6568
SELECT ALL + COALESCE ( - COUNT( - - 23 ), ( - + 25 ), + - CAST( CASE + 80 WHEN + 81 THEN 13 END AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + COALESCE ( - COUNT ( - - 23 ), ( - + 25 ), + - CAST ( CASE + 80 WHEN + 81 THEN 13 END AS INTEGER ) ) AS col2
----
-1

query I rowsort
SELECT - + 98 * - 4 + + 46 + 97
----
535

query II rowsort
SELECT + 14 AS col0, 75 * + 88
----
14
6600

query I rowsort
SELECT - 44 + + - ( + 61 ) AS col0
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT ALL + 12 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + 12 / - 96 AS col1
----
0

query II rowsort
SELECT ALL - 46 AS col2, 32 * + 1 * - 17
----
-46
-544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6574
SELECT DISTINCT + + CASE MIN( COALESCE ( + 18, + 75, 49 ) ) WHEN CAST( NULL AS DECIMAL ) THEN - 3 END - + SUM( ALL - 17 ) + - + 18 + + - 11 + - 76 + + 48 * + ( 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + + CASE MIN ( COALESCE ( + 18, + 75, 49 ) ) WHEN CAST ( NULL AS REAL ) THEN - 3 END - + SUM ( ALL - 17 ) + - + 18 + + - 11 + - 76 + + 48 * + ( 17 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT 95 * 40 + - 23 * COALESCE ( - - NULLIF ( + - 20, - CASE 29 WHEN + - CAST( - 4 AS SIGNED ) / 96 * + AVG ( - - 49 ) THEN + 42 + - MAX( DISTINCT 11 - 26 ) ELSE 66 + + 56 END * + 7 ), + 3 ) col2
----
4260

skipif mysql # not compatible
query I rowsort label-6575
SELECT 95 * 40 + - 23 * COALESCE ( - - NULLIF ( + - 20, - CASE 29 WHEN + - CAST ( - 4 AS INTEGER ) / 96 * + AVG ( - - 49 ) THEN + 42 + - MAX ( DISTINCT 11 - 26 ) ELSE 66 + + 56 END * + 7 ), + 3 ) col2
----
4260

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6576
SELECT + - NULLIF ( - 48, + 48 * + CAST( + 50 AS DECIMAL ) * + 8 + + 58 * 83 - + ( + 56 ) + 26 * - 0 )
----
48

skipif mysql # not compatible
query I rowsort label-6576
SELECT + - NULLIF ( - 48, + 48 * + CAST ( + 50 AS REAL ) * + 8 + + 58 * 83 - + ( + 56 ) + 26 * - 0 )
----
48

query I rowsort
SELECT ALL - 71 * 31
----
-2201

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + COUNT( 64 ) - 18
----
-17

skipif mysql # not compatible
query I rowsort label-6578
SELECT + COUNT ( 64 ) - 18
----
-17

query I rowsort
SELECT + CASE + 87 WHEN - + ( + 55 ) + 1 THEN 1 END
----
NULL

query I rowsort
SELECT + 51 * - 76 * + 14
----
-54264

query I rowsort
SELECT 5 - 96 AS col0
----
-91

query I rowsort
SELECT ALL - 10 * 33
----
-330

onlyif mysql # aggregate syntax: 
query II rowsort label-6583
SELECT + COUNT( * ) + - NULLIF ( - 69, + 12 ) AS col2, 58
----
70
58

skipif mysql # not compatible
query II rowsort label-6583
SELECT + COUNT ( * ) + - NULLIF ( - 69, + 12 ) AS col2, 58
----
70
58

query II rowsort
SELECT 6 AS col2, 46 AS col2
----
6
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL COUNT( DISTINCT + 84 ) + - + 55
----
-54

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL COUNT ( DISTINCT + 84 ) + - + 55
----
-54

query I rowsort
SELECT 74 - 99
----
-25

query I rowsort
SELECT DISTINCT + 35 + 51 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT COUNT( * ) - + 77 col2
----
-76

skipif mysql # not compatible
query I rowsort label-6588
SELECT COUNT ( * ) - + 77 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT ( COALESCE ( - - 28, COUNT( * ) + + 66 * COUNT( * ) ) ) + + NULLIF ( + 14, 33 * + - COUNT( * ) + + 88 ) * + - 5 * - - 88 AS col0
----
-6132

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT ( COALESCE ( - - 28, COUNT ( * ) + + 66 * COUNT ( * ) ) ) + + NULLIF ( + 14, 33 * + - COUNT ( * ) + + 88 ) * + - 5 * - - 88 AS col0
----
-6132

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ALL 20 + 20 * + + COUNT( * ) * - 2 * - 63 * + + 47
----
118460

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL 20 + 20 * + + COUNT ( * ) * - 2 * - 63 * + + 47
----
118460

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT COUNT( * ) + + + 58 AS col0, + 14
----
59
14

skipif mysql # not compatible
query II rowsort label-6591
SELECT COUNT ( * ) + + + 58 AS col0, + 14
----
59
14

query I rowsort
SELECT ALL 13 * - + 68 col0
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT 80 - - MAX( - 20 ) + 86 * + 44 * + COUNT( * ) AS col2
----
3844

skipif mysql # not compatible
query I rowsort label-6593
SELECT 80 - - MAX ( - 20 ) + 86 * + 44 * + COUNT ( * ) AS col2
----
3844

query I rowsort
SELECT DISTINCT 48 * + 32
----
1536

query I rowsort
SELECT DISTINCT 7 + + 29 + - 57
----
-21

query I rowsort
SELECT ALL 54 * + 74 AS col0
----
3996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT CAST( - 60 AS SIGNED ) + 54
----
-6

skipif mysql # not compatible
query I rowsort label-6597
SELECT CAST ( - 60 AS INTEGER ) + 54
----
-6

query I rowsort
SELECT ALL 6 - - + 72
----
78

query I rowsort
SELECT 76 + + 60 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL + 83 * - MIN( ALL + 43 )
----
-3569

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL + 83 * - MIN ( ALL + 43 )
----
-3569

query I rowsort
SELECT + + ( + 40 ) * 58 + + + 67
----
2387

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL + 66 * + ( + 78 ) - - 74 * - + 53 + + 55 * + 31 - + 96 * - 61 + + + COUNT( * )
----
8788

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL + 66 * + ( + 78 ) - - 74 * - + 53 + + 55 * + 31 - + 96 * - 61 + + + COUNT ( * )
----
8788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT DISTINCT - + MIN( ALL + CASE 82 WHEN - 3 THEN NULL WHEN - + 52 * + - ( - + 36 ) / + CAST( NULL AS SIGNED ) - + 37 * 6 + + - 38 + 41 THEN + 77 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT - + MIN ( ALL + CASE 82 WHEN - 3 THEN NULL WHEN - + 52 * + - ( - + 36 ) / + CAST ( NULL AS INTEGER ) - + 37 * 6 + + - 38 + 41 THEN + 77 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT 63 DIV - 82 col1
----
0

skipif mysql # not compatible
query I rowsort label-6604
SELECT 63 / - 82 col1
----
0

query I rowsort
SELECT ALL - 22 * 89 AS col0
----
-1958

query I rowsort
SELECT + NULLIF ( 84, 24 + + ( - 96 ) ) + - 78 AS col1
----
6

query I rowsort
SELECT 40 + 29 - + 55
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT ALL - CAST( NULL AS SIGNED ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL - CAST ( NULL AS INTEGER ) * - 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6609
SELECT - 88 * 19 + 17 - + 7 - + ( + - COUNT( * ) ) DIV ( COUNT( * ) )
----
-1661

skipif mysql # not compatible
query I rowsort label-6609
SELECT - 88 * 19 + 17 - + 7 - + ( + - COUNT ( * ) ) / ( COUNT ( * ) )
----
-1661

query I rowsort
SELECT ALL - 81 + - - 50 - - + 68 * + 34 * - 83 * - 78 col2
----
14967857

onlyif mysql # DIV for integer division: 
query I rowsort label-6611
SELECT ALL + - 29 DIV - 93 + + 13
----
13

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL + - 29 / - 93 + + 13
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT - NULLIF ( 22, - + COALESCE ( - 69, - + 35, - AVG ( DISTINCT + 63 ) ) ) DIV - - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6612
SELECT - NULLIF ( 22, - + COALESCE ( - 69, - + 35, - AVG ( DISTINCT + 63 ) ) ) / - - 62 AS col0
----
0

query I rowsort
SELECT ALL 71 + + - 31
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL + 90 + - 6 + + - 77 * - 83 * - COUNT( * ) - - + 95 AS col1
----
-6212

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + 90 + - 6 + + - 77 * - 83 * - COUNT ( * ) - - + 95 AS col1
----
-6212

query I rowsort
SELECT 12 * 91
----
1092

query I rowsort
SELECT ALL + + 16 + + + 69
----
85

query I rowsort
SELECT - 8 * - - 52 + 0 AS col0
----
-416

query I rowsort
SELECT DISTINCT + 87 + + 80
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT 19 * 65 * CAST( NULL AS SIGNED ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT 19 * 65 * CAST ( NULL AS INTEGER ) * 80
----
NULL

query I rowsort
SELECT 55 + + - 8
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT 64 + - 98 + + 53 + - - CASE - CAST( + NULLIF ( + MIN( ALL ( - COALESCE ( 33, - 5 ) ) ), + 86 / 53 ) AS SIGNED ) WHEN + 60 THEN - 19 * + 97 END + 11 * - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT 64 + - 98 + + 53 + - - CASE - CAST ( + NULLIF ( + MIN ( ALL ( - COALESCE ( 33, - 5 ) ) ), + 86 / 53 ) AS INTEGER ) WHEN + 60 THEN - 19 * + 97 END + 11 * - ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + 13 + - 50 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT 42 + + + ( + - COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-6623
SELECT 42 + + + ( + - COUNT ( * ) )
----
41

query I rowsort
SELECT 45 * + - 75 AS col1
----
-3375

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6625
SELECT DISTINCT 7 + + + 10 + - 76 DIV COALESCE ( AVG ( + + CAST( NULL AS SIGNED ) ), + - 29, - - 65 ) * - + 2 col1
----
13

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT 7 + + + 10 + - 76 / COALESCE ( AVG ( + + CAST ( NULL AS INTEGER ) ), + - 29, - - 65 ) * - + 2 col1
----
13

query I rowsort
SELECT ALL 66 + - 67 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT ALL COUNT( * ) - - - 20 + 80 * + + ( 24 ) AS col0, SUM( - 47 ) AS col0
----
1901
-47

skipif mysql # not compatible
query II rowsort label-6627
SELECT ALL COUNT ( * ) - - - 20 + 80 * + + ( 24 ) AS col0, SUM ( - 47 ) AS col0
----
1901
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT MIN( 16 ) * 60
----
960

skipif mysql # not compatible
query I rowsort label-6628
SELECT MIN ( 16 ) * 60
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT + 86 - COUNT( * ) col1
----
85

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT + 86 - COUNT ( * ) col1
----
85

query II rowsort
SELECT ALL 39 AS col0, + 35 col2
----
39
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6631
SELECT 86 + MAX( DISTINCT - - 43 ), - 65 AS col0
----
129
-65

skipif mysql # not compatible
query II rowsort label-6631
SELECT 86 + MAX ( DISTINCT - - 43 ), - 65 AS col0
----
129
-65

query I rowsort
SELECT ALL 6 - + 24 + - + 31 * - + 66 AS col2
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT - SUM( + + 8 ) - - + 2 * + 95 AS col2
----
182

skipif mysql # not compatible
query I rowsort label-6633
SELECT - SUM ( + + 8 ) - - + 2 * + 95 AS col2
----
182

query I rowsort
SELECT + 65 - + 32
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6635
SELECT + 70 DIV - - 76
----
0

skipif mysql # not compatible
query I rowsort label-6635
SELECT + 70 / - - 76
----
0

query I rowsort
SELECT + 82 * + 37
----
3034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT ALL - 37 * + COUNT( * ) + - ( + + NULLIF ( - + 85, + - 48 * - + 89 - - COALESCE ( + 0, - COUNT( 30 ) / 68 ) ) ) + + - CASE + COALESCE ( - 1, + 61, 8 ) WHEN + COALESCE ( - CAST( + 5 AS SIGNED ), 91 / + NULLIF ( - 73, 63 ) + + 25 ) THEN NULL ELSE 16 END * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL - 37 * + COUNT ( * ) + - ( + + NULLIF ( - + 85, + - 48 * - + 89 - - COALESCE ( + 0, - COUNT ( 30 ) / 68 ) ) ) + + - CASE + COALESCE ( - 1, + 61, 8 ) WHEN + COALESCE ( - CAST ( + 5 AS INTEGER ), 91 / + NULLIF ( - 73, 63 ) + + 25 ) THEN NULL ELSE 16 END * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT + CASE - COUNT( * ) WHEN - NULLIF ( - 47, + 75 ) * AVG ( ALL + + 55 ) * + + COUNT( 64 ) THEN NULL WHEN + COALESCE ( 91, + - 20 * + + 34 ) + 10 THEN NULL ELSE - - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6638
SELECT + CASE - COUNT ( * ) WHEN - NULLIF ( - 47, + 75 ) * AVG ( ALL + + 55 ) * + + COUNT ( 64 ) THEN NULL WHEN + COALESCE ( 91, + - 20 * + + 34 ) + 10 THEN NULL ELSE - - COUNT ( * ) END
----
1

query I rowsort
SELECT + + 71 * + 19 * - 81
----
-109269

query I rowsort
SELECT + 6 * + - 76 * + 57
----
-25992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6641
SELECT DISTINCT + CAST( + COALESCE ( + - 34, + + COUNT( * ), - 44 ) AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + CAST ( + COALESCE ( + - 34, + + COUNT ( * ), - 44 ) AS INTEGER )
----
-34

query I rowsort
SELECT + + 11 col2
----
11

query I rowsort
SELECT - - 74 + + + 62
----
136

query II rowsort
SELECT ALL + 54 * 32 * + 74 + + - 14 + + 66, 84 AS col2
----
127924
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT + CAST( 40 AS SIGNED ) * CAST( + 46 AS SIGNED ) AS col0
----
1840

skipif mysql # not compatible
query I rowsort label-6645
SELECT + CAST ( 40 AS INTEGER ) * CAST ( + 46 AS INTEGER ) AS col0
----
1840

query I rowsort
SELECT DISTINCT - 11 * - 87 + - + 49 * - 47
----
3260

query I rowsort
SELECT ALL + 76 * - + 44 + - - 11
----
-3333

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT + - ( - - MAX( + - 23 ) )
----
23

skipif mysql # not compatible
query I rowsort label-6648
SELECT + - ( - - MAX ( + - 23 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT COUNT( ALL - - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6649
SELECT COUNT ( ALL - - 61 ) AS col2
----
1

query I rowsort
SELECT + - 39 * - 97
----
3783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT ALL SUM( ALL 96 ) * + - CAST( NULL AS SIGNED ) * - - COUNT( * ) + - NULLIF ( + + 9, + 47 * + 0 * + 14 ) * CAST( 16 AS SIGNED ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL SUM ( ALL 96 ) * + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + - NULLIF ( + + 9, + 47 * + 0 * + 14 ) * CAST ( 16 AS INTEGER ) - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT ALL - CAST( NULL AS SIGNED ) * - CASE + 1 WHEN 81 THEN 47 + - - 93 * + 27 WHEN COUNT( * ) + - 31 THEN ( 54 ) ELSE NULL END * + 76 + - 51 + - - 27 + - 2 + 47 * - 29 + + NULLIF ( 78, - 50 - + 86 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - CAST ( NULL AS INTEGER ) * - CASE + 1 WHEN 81 THEN 47 + - - 93 * + 27 WHEN COUNT ( * ) + - 31 THEN ( 54 ) ELSE NULL END * + 76 + - 51 + - - 27 + - 2 + 47 * - 29 + + NULLIF ( 78, - 50 - + 86 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT + SUM( DISTINCT 48 ) - 20 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6653
SELECT + SUM ( DISTINCT 48 ) - 20 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT - SUM( DISTINCT + - 92 ) * - + 87 AS col1
----
-8004

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT - SUM ( DISTINCT + - 92 ) * - + 87 AS col1
----
-8004

query I rowsort
SELECT + 2 + - + NULLIF ( - - 76, + + 26 ) - - - 64 * + 75 AS col2
----
-4874

query I rowsort
SELECT ALL NULLIF ( - 98, - 94 * 94 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6657
SELECT COUNT( * ) * SUM( - ( + + 56 ) ) + - COALESCE ( - 3, + ( ( - 50 ) ), 16 - - + 33 ) DIV 83 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6657
SELECT COUNT ( * ) * SUM ( - ( + + 56 ) ) + - COALESCE ( - 3, + ( ( - 50 ) ), 16 - - + 33 ) / 83 AS col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT - 84 DIV + - 4
----
21

skipif mysql # not compatible
query I rowsort label-6658
SELECT - 84 / + - 4
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT - 96 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT - 96 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 99 - 70 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6661
SELECT DISTINCT - 45 DIV + 46 * + MIN( - - COALESCE ( + 13, + + 77, + 2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - 45 / + 46 * + MIN ( - - COALESCE ( + 13, + + 77, + 2 ) )
----
0

query I rowsort
SELECT - 48 - - 23 AS col0
----
-25

query I rowsort
SELECT ALL ( + + 12 ) col0
----
12

query I rowsort
SELECT DISTINCT NULLIF ( 34, - 39 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6665
SELECT + COUNT( * ) * - - ( - CAST( - COUNT( * ) AS SIGNED ) ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6665
SELECT + COUNT ( * ) * - - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) / + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 82 * - - 80 AS col0
----
6560

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT - ( COUNT( * ) ) + + 43
----
42

skipif mysql # not compatible
query I rowsort label-6667
SELECT - ( COUNT ( * ) ) + + 43
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL + 64 * + COUNT( * ) col2
----
64

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + 64 * + COUNT ( * ) col2
----
64

query II rowsort
SELECT 18 AS col0, - 11 * 28
----
18
-308

query I rowsort
SELECT DISTINCT + 83 * - 61 AS col1
----
-5063

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6671
SELECT ALL CAST( + + 26 AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL CAST ( + + 26 AS INTEGER ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6672
SELECT - 59 * - COUNT( * ), + ( + 93 ) + - 74 - 77 - 18 * - 7 AS col1
----
59
68

skipif mysql # not compatible
query II rowsort label-6672
SELECT - 59 * - COUNT ( * ), + ( + 93 ) + - 74 - 77 - 18 * - 7 AS col1
----
59
68

query I rowsort
SELECT ALL - 65 * 87
----
-5655

query II rowsort
SELECT DISTINCT - 72, 19 + - 71 + 70 AS col0
----
-72
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6675
SELECT - 21 DIV COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6675
SELECT - 21 / COUNT ( * ) AS col1
----
-21

query I rowsort
SELECT + 90 * - + 21 AS col0
----
-1890

onlyif mysql # DIV for integer division: 
query I rowsort label-6677
SELECT 83 DIV - 79 + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-6677
SELECT 83 / - 79 + - 88
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT - + 9 + CASE + ( - - CASE 80 WHEN - COUNT( * ) THEN + COALESCE ( + COUNT( * ), - 22, 17 ) + - - 50 + - 14 END ) WHEN - - 56 THEN NULL WHEN - + 73 + + 49 THEN + 77 - + MAX( ALL + 45 ) WHEN 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT - + 9 + CASE + ( - - CASE 80 WHEN - COUNT ( * ) THEN + COALESCE ( + COUNT ( * ), - 22, 17 ) + - - 50 + - 14 END ) WHEN - - 56 THEN NULL WHEN - + 73 + + 49 THEN + 77 - + MAX ( ALL + 45 ) WHEN 67 THEN NULL END
----
NULL

query I rowsort
SELECT NULLIF ( 79, - + ( - 77 ) * 43 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT ALL + - 25 DIV - MAX( + 38 ) + + - ( + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL + - 25 / - MAX ( + 38 ) + + - ( + 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT - - COUNT( * ) + + 37 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6681
SELECT - - COUNT ( * ) + + 37 AS col0
----
38

query I rowsort
SELECT + + 28 * 90 AS col2
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT - - 96 / CASE - - SUM( ALL 8 ) WHEN + 41 - MIN( DISTINCT + 99 ) THEN NULL WHEN + 3 * + COUNT( * ) THEN - 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT - - 96 / CASE - - SUM ( ALL 8 ) WHEN + 41 - MIN ( DISTINCT + 99 ) THEN NULL WHEN + 3 * + COUNT ( * ) THEN - 93 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT - COUNT( * ) * + 78 + 44 + - MIN( - ( - - 55 ) ) * COALESCE ( - 3, 24 ) AS col2
----
-199

skipif mysql # not compatible
query I rowsort label-6684
SELECT - COUNT ( * ) * + 78 + 44 + - MIN ( - ( - - 55 ) ) * COALESCE ( - 3, 24 ) AS col2
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-6685
SELECT + COUNT( * ), 1
----
1
1

skipif mysql # not compatible
query II rowsort label-6685
SELECT + COUNT ( * ), 1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT ALL - + COUNT( * ) * - 85
----
85

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL - + COUNT ( * ) * - 85
----
85

query I rowsort
SELECT DISTINCT + + ( 34 ) AS col2
----
34

query II rowsort
SELECT ALL + 82, 52 AS col0
----
82
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6689
SELECT ALL + - CASE 72 WHEN - 4 - 28 + - - 33 THEN - + 76 * - 93 + + COUNT( * ) - - 70 * - - 30 DIV + COALESCE ( + 63, 1, - 85 + + 78 ) * + 31 * + COUNT( * ) ELSE 28 END
----
-28

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + - CASE 72 WHEN - 4 - 28 + - - 33 THEN - + 76 * - 93 + + COUNT ( * ) - - 70 * - - 30 / + COALESCE ( + 63, 1, - 85 + + 78 ) * + 31 * + COUNT ( * ) ELSE 28 END
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT + NULLIF ( 61, + - 96 + COUNT( * ) ) + + 84
----
145

skipif mysql # not compatible
query I rowsort label-6690
SELECT + NULLIF ( 61, + - 96 + COUNT ( * ) ) + + 84
----
145

query I rowsort
SELECT + 37 * + 90 + - 3
----
3327

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6692
SELECT ( + - 18 ) AS col1, - ( + - MIN( ALL + COALESCE ( + 32, + + 6 ) ) ) * - - 34 + + + COALESCE ( + 96, + COUNT( * ) + - SUM( ALL + 92 ) ) + 25 - - 11 DIV - ( 94 ) * + 36 col1
----
-18
1209

skipif mysql # not compatible
query II rowsort label-6692
SELECT ( + - 18 ) AS col1, - ( + - MIN ( ALL + COALESCE ( + 32, + + 6 ) ) ) * - - 34 + + + COALESCE ( + 96, + COUNT ( * ) + - SUM ( ALL + 92 ) ) + 25 - - 11 / - ( 94 ) * + 36 col1
----
-18
1209

query I rowsort
SELECT + - 32 + - + 79 + - 13 AS col2
----
-124

query I rowsort
SELECT - 41 * + 58 - 4 - + ( - 82 ) AS col2
----
-2300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT + ( + - CAST( NULL AS SIGNED ) ) * - + 30 / AVG ( + 77 ) * + 96 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT + ( + - CAST ( NULL AS INTEGER ) ) * - + 30 / AVG ( + 77 ) * + 96 + - 68
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 80, + 37 * - + 66 ) * - COALESCE ( - 91, 2 * + 7 ) + 98 * 41 - 9 AS col1
----
11289

query II rowsort
SELECT + 73 * - 38, 66 + - 61 col1
----
-2774
5

query I rowsort
SELECT DISTINCT - 59 * 73
----
-4307

query I rowsort
SELECT ALL ( + ( + 87 ) ) AS col0
----
87

query I rowsort
SELECT + 25 + - 79
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6701
SELECT ALL 43 * + CAST( 32 AS SIGNED ) * 17 + - + COUNT( * ) - + ( + CASE - 7 WHEN - 18 * + 84 THEN - + COUNT( * ) - + 95 END ) * - + 94 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL 43 * + CAST ( 32 AS INTEGER ) * 17 + - + COUNT ( * ) - + ( + CASE - 7 WHEN - 18 * + 84 THEN - + COUNT ( * ) - + 95 END ) * - + 94 col2
----
NULL

query II rowsort
SELECT + 37 * 15 col1, 11 AS col2
----
555
11

query I rowsort
SELECT 89 + - 96
----
-7

query II rowsort
SELECT DISTINCT 66 * - 18, + 69 * + 31 AS col2
----
-1188
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6705
SELECT 5 DIV + + 55 col0, + COUNT( * ) * - + 10 AS col0
----
0
-10

skipif mysql # not compatible
query II rowsort label-6705
SELECT 5 / + + 55 col0, + COUNT ( * ) * - + 10 AS col0
----
0
-10

query I rowsort
SELECT 15 + + + 86 - - 50
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT DISTINCT 30 * + MIN( ALL + 24 )
----
720

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT 30 * + MIN ( ALL + 24 )
----
720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6708
SELECT 11 + - 18 + 97 * + + 41 + + COALESCE ( + + 0, - CAST( NULL AS SIGNED ) * - 58 - + COUNT( * ) + + 55 + 45 + + COUNT( * ) * 9 + + 15 DIV + 54 * - + 72 * + 52 * + COUNT( * ) - 34 )
----
3970

skipif mysql # not compatible
query I rowsort label-6708
SELECT 11 + - 18 + 97 * + + 41 + + COALESCE ( + + 0, - CAST ( NULL AS INTEGER ) * - 58 - + COUNT ( * ) + + 55 + 45 + + COUNT ( * ) * 9 + + 15 / + 54 * - + 72 * + 52 * + COUNT ( * ) - 34 )
----
3970

query I rowsort
SELECT DISTINCT - 60 + 46
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT ALL - 43 + + - 88 - 66 * + SUM( + 72 ) AS col2
----
-4883

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL - 43 + + - 88 - 66 * + SUM ( + 72 ) AS col2
----
-4883

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT + COUNT( * ) * + 87 - 9
----
78

skipif mysql # not compatible
query I rowsort label-6711
SELECT + COUNT ( * ) * + 87 - 9
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT MAX( ALL + + CASE + 39 WHEN + 99 THEN 35 + + 46 WHEN - 1 THEN NULL END ) - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT MAX ( ALL + + CASE + 39 WHEN + 99 THEN 35 + + 46 WHEN - 1 THEN NULL END ) - - 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 51 / + 7 * + 4 + + + MIN( + + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 51 / + 7 * + 4 + + + MIN ( + + 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT NULLIF ( 52, + 43 * + COALESCE ( COUNT( * ), 95 * - 5 + + COUNT( * ) + 3 + - - 14 * 77 / 36 ) + - 52 + - - CASE + ( + COUNT( * ) ) WHEN + + 42 THEN NULL WHEN 29 THEN + 5 - 1 END + - 90 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6714
SELECT NULLIF ( 52, + 43 * + COALESCE ( COUNT ( * ), 95 * - 5 + + COUNT ( * ) + 3 + - - 14 * 77 / 36 ) + - 52 + - - CASE + ( + COUNT ( * ) ) WHEN + + 42 THEN NULL WHEN 29 THEN + 5 - 1 END + - 90 ) AS col0
----
52

query I rowsort
SELECT ( - + 90 ) col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT + NULLIF ( - COUNT( DISTINCT 87 ), 0 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6716
SELECT + NULLIF ( - COUNT ( DISTINCT 87 ), 0 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT COUNT( * ) * NULLIF ( - 45, - 78 * 80 * - 70 )
----
-45

skipif mysql # not compatible
query I rowsort label-6717
SELECT COUNT ( * ) * NULLIF ( - 45, - 78 * 80 * - 70 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6718
SELECT ALL - - ( + MAX( ALL - 26 ) ) DIV - 84 * 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL - - ( + MAX ( ALL - 26 ) ) / - 84 * 59 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6719
SELECT 74 DIV + + 6 AS col2, 78 * + CAST( NULL AS SIGNED ) * + COUNT( * ) DIV + 58 * 62 + - 4 + COUNT( * ) AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-6719
SELECT 74 / + + 6 AS col2, 78 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 58 * 62 + - 4 + COUNT ( * ) AS col1
----
12
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6720
SELECT - 27 DIV - + 8 AS col1, 76 AS col0
----
3
76

skipif mysql # not compatible
query II rowsort label-6720
SELECT - 27 / - + 8 AS col1, 76 AS col0
----
3
76

query I rowsort
SELECT DISTINCT + 34 * + 24
----
816

query I rowsort
SELECT ALL 10 - 17 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT + + COUNT( DISTINCT - + 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6723
SELECT + + COUNT ( DISTINCT - + 19 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6724
SELECT DISTINCT + 54 * + + ( + 56 ) * 74 + - CASE + - 23 WHEN ( - + 33 ) THEN 67 + 10 + - 18 END + 11 * + - 57 AS col2, CAST( NULL AS SIGNED ) + 37
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6724
SELECT DISTINCT + 54 * + + ( + 56 ) * 74 + - CASE + - 23 WHEN ( - + 33 ) THEN 67 + 10 + - 18 END + 11 * + - 57 AS col2, CAST ( NULL AS INTEGER ) + 37
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL - 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - 0 * + COUNT ( * )
----
0

query II rowsort
SELECT + 70 AS col2, + 27
----
70
27

query I rowsort
SELECT 54 + + 55 + - 49 + + 32 + + + 42 * 33 + + - 21 * - 99 * - 9 * - 19
----
356987

query I rowsort
SELECT 60 + - 46
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT NULLIF ( 88, - ( 55 ) ) * + COALESCE ( + ( COUNT( + + 73 ) ), + + 52, 22 * - 66 * - 47 * - 64 + - 82 * + COALESCE ( + 86, 72 + + NULLIF ( + CASE + 75 WHEN 21 * 42 THEN - 53 + + 64 * + 42 WHEN - 62 - 32 THEN NULL ELSE NULL END, 24 ) + 38 ) ) + 88 * SUM( ALL 16 * 9 + - 63 ) AS col2
----
7216

skipif mysql # not compatible
query I rowsort label-6729
SELECT NULLIF ( 88, - ( 55 ) ) * + COALESCE ( + ( COUNT ( + + 73 ) ), + + 52, 22 * - 66 * - 47 * - 64 + - 82 * + COALESCE ( + 86, 72 + + NULLIF ( + CASE + 75 WHEN 21 * 42 THEN - 53 + + 64 * + 42 WHEN - 62 - 32 THEN NULL ELSE NULL END, 24 ) + 38 ) ) + 88 * SUM ( ALL 16 * 9 + - 63 ) AS col2
----
7216

query I rowsort
SELECT 86 * - - 73
----
6278

query I rowsort
SELECT ALL 48 + - 93 AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT ALL ( - + 49 ) + CAST( NULL AS SIGNED ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL ( - + 49 ) + CAST ( NULL AS INTEGER ) + + 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6733
SELECT ALL COUNT( * ) + 8 + 50 DIV 73
----
9

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL COUNT ( * ) + 8 + 50 / 73
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT COUNT( * ) - - 77
----
78

skipif mysql # not compatible
query I rowsort label-6734
SELECT COUNT ( * ) - - 77
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6735
SELECT ALL 41 DIV COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL 41 / COUNT ( * )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6736
SELECT 14 + + + 73 + CAST( - CAST( + - 53 AS SIGNED ) AS SIGNED )
----
140

skipif mysql # not compatible
query I rowsort label-6736
SELECT 14 + + + 73 + CAST ( - CAST ( + - 53 AS INTEGER ) AS INTEGER )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL 17 + 95 + - 1 * + COUNT( * ) * + - 52 * + 15 - - 80 - - 20
----
992

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL 17 + 95 + - 1 * + COUNT ( * ) * + - 52 * + 15 - - 80 - - 20
----
992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT + ( CAST( + - 21 AS SIGNED ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6738
SELECT + ( CAST ( + - 21 AS INTEGER ) ) AS col1
----
-21

query II rowsort
SELECT - 79 col1, + 55
----
-79
55

query I rowsort
SELECT ALL 42 * - 37 * 97 AS col1
----
-150738

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT - 12 DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT - 12 / - - 42
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT DISTINCT - 56 + 49 + - 64, + 54 * COUNT( - + 97 ) AS col1
----
-71
54

skipif mysql # not compatible
query II rowsort label-6742
SELECT DISTINCT - 56 + 49 + - 64, + 54 * COUNT ( - + 97 ) AS col1
----
-71
54

query I rowsort
SELECT 9 + + - 32
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-6744
SELECT ALL COUNT( * ) + - 77 * 50 DIV - 4 - + - 47 + + - 11 col0, + CAST( NULL AS DECIMAL ) + 66 + + + 26 + + - COUNT( DISTINCT 92 ), + COUNT( * ) AS col0
----
999
NULL
1

skipif mysql # not compatible
query III rowsort label-6744
SELECT ALL COUNT ( * ) + - 77 * 50 / - 4 - + - 47 + + - 11 col0, + CAST ( NULL AS REAL ) + 66 + + + 26 + + - COUNT ( DISTINCT 92 ), + COUNT ( * ) AS col0
----
999
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - - 94 + + SUM( - - 72 ) - 10 + + CASE ( + 16 ) WHEN + MIN( + - CAST( 15 AS SIGNED ) ) THEN NULL WHEN - ( 48 ) * - 41 THEN NULL WHEN + + COUNT( * ) * - CASE 80 WHEN 79 THEN NULL WHEN 46 * 42 THEN NULL ELSE 74 / + 65 END THEN NULL ELSE 87 / + 9 + COALESCE ( 13 + + 74 * 50, - 61 ) END * + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - - 94 + + SUM ( - - 72 ) - 10 + + CASE ( + 16 ) WHEN + MIN ( + - CAST ( 15 AS INTEGER ) ) THEN NULL WHEN - ( 48 ) * - 41 THEN NULL WHEN + + COUNT ( * ) * - CASE 80 WHEN 79 THEN NULL WHEN 46 * 42 THEN NULL ELSE 74 / + 65 END THEN NULL ELSE 87 / + 9 + COALESCE ( 13 + + 74 * 50, - 61 ) END * + 79 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT ALL - CASE 14 WHEN + 5 * + - 83 * + ( + 43 ) + + COUNT( * ) THEN - - 18 WHEN - CAST( NULL AS SIGNED ) + + 29 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL - CASE 14 WHEN + 5 * + - 83 * + ( + 43 ) + + COUNT ( * ) THEN - - 18 WHEN - CAST ( NULL AS INTEGER ) + + 29 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 61 * 8 AS col2
----
488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6748
SELECT DISTINCT + 20 + - 98 * + - COUNT( * ) + + 6 + - - 40 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT + 20 + - 98 * + - COUNT ( * ) + + 6 + - - 40 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT SUM( DISTINCT + + 85 ) + COALESCE ( + - 55, - - 71 )
----
30

skipif mysql # not compatible
query I rowsort label-6749
SELECT SUM ( DISTINCT + + 85 ) + COALESCE ( + - 55, - - 71 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT ALL 64, + ( - + COUNT( * ) ) AS col2
----
64
-1

skipif mysql # not compatible
query II rowsort label-6750
SELECT ALL 64, + ( - + COUNT ( * ) ) AS col2
----
64
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6751
SELECT 65 DIV - SUM( 65 ) + 16
----
15

skipif mysql # not compatible
query I rowsort label-6751
SELECT 65 / - SUM ( 65 ) + 16
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6752
SELECT + + AVG ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT + + AVG ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 2 * + 47 col0
----
94

query I rowsort
SELECT - 95 * - - 35 + - - ( ( + 32 ) )
----
-3293

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL - MAX( + + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - MAX ( + + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT + + COUNT( * ) * + 21
----
21

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + + COUNT ( * ) * + 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT 81 * + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6757
SELECT 81 * + COUNT ( * ) AS col1
----
81

query I rowsort
SELECT ALL - NULLIF ( + 21, - - 8 * + 38 * + 10 + + 96 ) AS col2
----
-21

query I rowsort
SELECT ALL + 68 * + + 33
----
2244

query I rowsort
SELECT 80 + + 91 AS col0
----
171

query I rowsort
SELECT + 91 * 77 + + 64 AS col2
----
7071

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL + NULLIF ( + COUNT( * ), - NULLIF ( + + 0, - + 45 ) - - ( 24 ) * ( 99 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + NULLIF ( + COUNT ( * ), - NULLIF ( + + 0, - + 45 ) - - ( 24 ) * ( 99 ) ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6763
SELECT CAST( NULL AS DECIMAL ) * - - ( ( + + 26 ) ) / - - 37 + + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT CAST ( NULL AS REAL ) * - - ( ( + + 26 ) ) / - - 37 + + - 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6764
SELECT DISTINCT + 23 DIV - 87, - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-6764
SELECT DISTINCT + 23 / - 87, - COUNT ( * ) AS col2
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT - ( - 78 ) * ( + 20 ) + - COUNT( * ) + + - 74 + - 33 * + ( - 71 ) * - 54 * - 32
----
4050189

skipif mysql # not compatible
query I rowsort label-6765
SELECT - ( - 78 ) * ( + 20 ) + - COUNT ( * ) + + - 74 + - 33 * + ( - 71 ) * - 54 * - 32
----
4050189

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT ALL + COUNT( * ) * + - NULLIF ( + + 87, 29 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + COUNT ( * ) * + - NULLIF ( + + 87, 29 ) AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT DISTINCT + 24 DIV + 18
----
1

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT + 24 / + 18
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT DISTINCT 71 + - COUNT( DISTINCT + 66 )
----
70

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT 71 + - COUNT ( DISTINCT + 66 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL ( + COUNT( * ) ) + + 28 + - 69 + - ( - 92 )
----
52

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL ( + COUNT ( * ) ) + + 28 + - 69 + - ( - 92 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - 78 * - MAX( ALL - 23 ) + ( - MAX( 78 ) ) * - 65
----
3276

skipif mysql # not compatible
query I rowsort label-6770
SELECT - 78 * - MAX ( ALL - 23 ) + ( - MAX ( 78 ) ) * - 65
----
3276

query I rowsort
SELECT ALL + 6 * - 98 col1
----
-588

query I rowsort
SELECT DISTINCT - 51 + + 85 AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT + 12 + + 30 DIV - 97
----
12

skipif mysql # not compatible
query I rowsort label-6773
SELECT + 12 + + 30 / - 97
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6774
SELECT DISTINCT CASE + 53 WHEN 93 THEN - 18 + - 65 WHEN + 61 + + + 79 THEN NULL WHEN + 54 / - ( - 19 ) * - 22 + + 35 - + - 40 * CAST( NULL AS DECIMAL ) + - - ( + + 36 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT CASE + 53 WHEN 93 THEN - 18 + - 65 WHEN + 61 + + + 79 THEN NULL WHEN + 54 / - ( - 19 ) * - 22 + + 35 - + - 40 * CAST ( NULL AS REAL ) + - - ( + + 36 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 33 + - 51
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL ( COUNT( * ) ) + + 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL ( COUNT ( * ) ) + + 74 AS col2
----
75

query I rowsort
SELECT - 76 * - 5 AS col2
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL - NULLIF ( + COUNT( * ), + 31 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL - NULLIF ( + COUNT ( * ), + 31 ) AS col1
----
-1

query I rowsort
SELECT + - 72 * - 52 + - 51 AS col2
----
3693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6780
SELECT + - COUNT( * ) DIV + - SUM( DISTINCT - + 89 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT + - COUNT ( * ) / + - SUM ( DISTINCT - + 89 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6781
SELECT + 3 * + COUNT( * ) * - - 82 * + CAST( NULL AS SIGNED ) AS col2, + 58 AS col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6781
SELECT + 3 * + COUNT ( * ) * - - 82 * + CAST ( NULL AS INTEGER ) AS col2, + 58 AS col1
----
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6782
SELECT ALL 47 - + + 29 AS col1, CAST( 78 AS SIGNED )
----
18
78

skipif mysql # not compatible
query II rowsort label-6782
SELECT ALL 47 - + + 29 AS col1, CAST ( 78 AS INTEGER )
----
18
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6783
SELECT - COUNT( * ) * + 91 + + - 68 * - 44, + 7 AS col1
----
2901
7

skipif mysql # not compatible
query II rowsort label-6783
SELECT - COUNT ( * ) * + 91 + + - 68 * - 44, + 7 AS col1
----
2901
7

query I rowsort
SELECT ALL + 39 * ( - 61 )
----
-2379

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL + COUNT( ALL - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL + COUNT ( ALL - 6 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 68 * - 60 + - 56
----
4024

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT DISTINCT 73 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT 73 / - 47
----
-1

query I rowsort
SELECT + 14 - 27
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT - ( + ( + SUM( + + ( + 64 ) ) ) ) * 15 AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-6789
SELECT - ( + ( + SUM ( + + ( + 64 ) ) ) ) * 15 AS col1
----
-960

query I rowsort
SELECT + ( - - 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ( + + MIN( + - 47 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6791
SELECT ( + + MIN ( + - 47 ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT ALL + 37 * + COUNT( - 82 ), + 37 AS col1
----
37
37

skipif mysql # not compatible
query II rowsort label-6792
SELECT ALL + 37 * + COUNT ( - 82 ), + 37 AS col1
----
37
37

query I rowsort
SELECT ALL 68 * - 60 * + 50 + - 84
----
-204084

query I rowsort
SELECT ALL + 19 * + ( 88 ) AS col1
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - ( + + COUNT( * ) ) * + 60 + - + COUNT( * ) + 33 + 83
----
55

skipif mysql # not compatible
query I rowsort label-6795
SELECT - ( + + COUNT ( * ) ) * + 60 + - + COUNT ( * ) + 33 + 83
----
55

query I rowsort
SELECT ALL 66 * - 1 * + + 50 AS col1
----
-3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT ALL - NULLIF ( - - 33, + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) + 37 * - 2 * - + 23
----
1735

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL - NULLIF ( - - 33, + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + 37 * - 2 * - + 23
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT NULLIF ( - MAX( ALL 41 ), + - ( - CASE + 98 WHEN - 87 * - 35 THEN 56 * - 38 * + COUNT( - 97 ) WHEN - - 13 / - ( + ( - - 16 ) ) THEN ( - COUNT( * ) ) ELSE - - ( + 83 ) END ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6798
SELECT NULLIF ( - MAX ( ALL 41 ), + - ( - CASE + 98 WHEN - 87 * - 35 THEN 56 * - 38 * + COUNT ( - 97 ) WHEN - - 13 / - ( + ( - - 16 ) ) THEN ( - COUNT ( * ) ) ELSE - - ( + 83 ) END ) ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6799
SELECT ALL + MIN( - CAST( 46 AS SIGNED ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + MIN ( - CAST ( 46 AS INTEGER ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT NULLIF ( - 46, + + 19 * - CASE + COUNT( * ) WHEN + 10 THEN + 45 + 66 WHEN - 51 THEN NULL ELSE 55 * + 49 * + 4 END ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-6800
SELECT NULLIF ( - 46, + + 19 * - CASE + COUNT ( * ) WHEN + 10 THEN + 45 + 66 WHEN - 51 THEN NULL ELSE 55 * + 49 * + 4 END ) col1
----
-46

query II rowsort
SELECT ALL + 68 * + 39 * + 96 + 46 + - + 83, - 27 AS col1
----
254555
-27

query I rowsort
SELECT - 76 + - ( 68 ) col2
----
-144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6803
SELECT DISTINCT NULLIF ( - - NULLIF ( + - 13, + + 3 * - + 99 * 63 + + COUNT( * ) + - MIN( - NULLIF ( + 40, 35 ) ) ), + CAST( NULL AS DECIMAL ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT NULLIF ( - - NULLIF ( + - 13, + + 3 * - + 99 * 63 + + COUNT ( * ) + - MIN ( - NULLIF ( + 40, 35 ) ) ), + CAST ( NULL AS REAL ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL 67 * + + COUNT( * ) * COUNT( * ) - + - 85
----
152

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL 67 * + + COUNT ( * ) * COUNT ( * ) - + - 85
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6805
SELECT - + 77, + 58 DIV - - 9 + + 10 - - 79 * + 3 + - + COUNT( * ) + + ( - + 26 ) * - 14 + + 34 AS col0
----
-77
650

skipif mysql # not compatible
query II rowsort label-6805
SELECT - + 77, + 58 / - - 9 + + 10 - - 79 * + 3 + - + COUNT ( * ) + + ( - + 26 ) * - 14 + + 34 AS col0
----
-77
650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT ALL - - 18 * 30 - + CASE + - CAST( NULL AS SIGNED ) WHEN 48 * + COALESCE ( 15, - 59, COUNT( * ), + - 66 * - CAST( NULL AS SIGNED ) + 96 + 45 ) - + SUM( 88 ) * + + 72 + - NULLIF ( 54, - + 2 ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL - - 18 * 30 - + CASE + - CAST ( NULL AS INTEGER ) WHEN 48 * + COALESCE ( 15, - 59, COUNT ( * ), + - 66 * - CAST ( NULL AS INTEGER ) + 96 + 45 ) - + SUM ( 88 ) * + + 72 + - NULLIF ( 54, - + 2 ) THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT - + 1 * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6807
SELECT - + 1 * - + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - 34 + 47
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-6809
SELECT ALL 37 AS col2, 71 + - 70 DIV 78 * + + 57
----
37
71

skipif mysql # not compatible
query II rowsort label-6809
SELECT ALL 37 AS col2, 71 + - 70 / 78 * + + 57
----
37
71

onlyif mysql # DIV for integer division: 
query II rowsort label-6810
SELECT DISTINCT + - 74 * + + 34 DIV - - 1 AS col2, 10 AS col1
----
-2516
10

skipif mysql # not compatible
query II rowsort label-6810
SELECT DISTINCT + - 74 * + + 34 / - - 1 AS col2, 10 AS col1
----
-2516
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT - 87 DIV - 61 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6811
SELECT - 87 / - 61 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT - MIN( ALL + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-6812
SELECT - MIN ( ALL + 40 )
----
-40

query I rowsort
SELECT ALL + 71 * + 37 AS col2
----
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT - 1 * - - COUNT( * ) - - 63
----
62

skipif mysql # not compatible
query I rowsort label-6814
SELECT - 1 * - - COUNT ( * ) - - 63
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT + MAX( DISTINCT 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6815
SELECT + MAX ( DISTINCT 32 ) AS col0
----
32

query II rowsort
SELECT ALL - 82 AS col1, 24 AS col2
----
-82
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT ALL - COUNT( DISTINCT - 38 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - COUNT ( DISTINCT - 38 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + + 99 * 22 * - - COUNT( * ) * 85 + - 25 + - + 19 * - - 79 AS col0
----
183604

skipif mysql # not compatible
query I rowsort label-6818
SELECT + + 99 * 22 * - - COUNT ( * ) * 85 + - 25 + - + 19 * - - 79 AS col0
----
183604

onlyif mysql # DIV for integer division: 
query II rowsort label-6819
SELECT DISTINCT + 46, 55 DIV 65 AS col2
----
46
0

skipif mysql # not compatible
query II rowsort label-6819
SELECT DISTINCT + 46, 55 / 65 AS col2
----
46
0

query I rowsort
SELECT ALL NULLIF ( - 73, + 6 * 55 + - + 1 - + 97 + 27 ) * + 57 * + - 67
----
278787

query I rowsort
SELECT ALL - 27 * - 91 AS col2
----
2457

query II rowsort
SELECT - 56, - 82 AS col1
----
-56
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT ALL 8 + + - 84 * + + SUM( ALL + 96 ) AS col1
----
-8056

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL 8 + + - 84 * + + SUM ( ALL + 96 ) AS col1
----
-8056

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT + 71 DIV - 44 + - 83 * + 61 * - 56 + 99 * ( 85 ) + 23
----
291965

skipif mysql # not compatible
query I rowsort label-6824
SELECT + 71 / - 44 + - 83 * + 61 * - 56 + 99 * ( 85 ) + 23
----
291965

onlyif mysql # DIV for integer division: 
query I rowsort label-6825
SELECT 99 DIV + - 67
----
-1

skipif mysql # not compatible
query I rowsort label-6825
SELECT 99 / + - 67
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT 41 DIV - ( 9 ) - + - 94 + + 41
----
131

skipif mysql # not compatible
query I rowsort label-6826
SELECT 41 / - ( 9 ) - + - 94 + + 41
----
131

query II rowsort
SELECT 97 AS col2, - 44
----
97
-44

query I rowsort
SELECT ALL 61 + - - NULLIF ( ( + 80 ), - 10 + - 80 + + + COALESCE ( 60, - 77, + - 20 * + + NULLIF ( + 42, - - 0 * - 89 + + 11 ) + + 77 ) + ( 15 ) + - - 43 - + + 48 * + 82 ) * 85
----
6861

query I rowsort
SELECT + 83 * - 49 + + - 29
----
-4096

query I rowsort
SELECT DISTINCT 31 + - 0 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT DISTINCT MAX( + 42 ) + 30 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT MAX ( + 42 ) + 30 AS col0
----
72

query I rowsort
SELECT ALL 54 + + - 25
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL - CASE + 68 WHEN - 6 * + COUNT( * ) THEN NULL WHEN - 70 THEN NULL WHEN + - 4 THEN 97 ELSE + 7 END AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - CASE + 68 WHEN - 6 * + COUNT ( * ) THEN NULL WHEN - 70 THEN NULL WHEN + - 4 THEN 97 ELSE + 7 END AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT MAX( DISTINCT + 32 ) + + + 19
----
51

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT MAX ( DISTINCT + 32 ) + + + 19
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT ALL 18 + + - ( 80 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL 18 + + - ( 80 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT 85 * COUNT( - 13 ) * - - 64 * - 98 AS col0
----
-533120

skipif mysql # not compatible
query I rowsort label-6836
SELECT 85 * COUNT ( - 13 ) * - - 64 * - 98 AS col0
----
-533120

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL CASE - 88 WHEN - - MIN( + 61 ) + - - 97 THEN - COUNT( * ) ELSE - 12 + + 39 END + + 36 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL CASE - 88 WHEN - - MIN ( + 61 ) + - - 97 THEN - COUNT ( * ) ELSE - 12 + + 39 END + + 36 AS col2
----
63

query II rowsort
SELECT 11 AS col1, + 58 * + 93
----
11
5394

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6839
SELECT 92 AS col1, + CASE - + 45 WHEN + 78 THEN + 46 * + 99 + - 28 WHEN + + CAST( - 37 AS SIGNED ) * 16 THEN NULL END
----
92
NULL

skipif mysql # not compatible
query II rowsort label-6839
SELECT 92 AS col1, + CASE - + 45 WHEN + 78 THEN + 46 * + 99 + - 28 WHEN + + CAST ( - 37 AS INTEGER ) * 16 THEN NULL END
----
92
NULL

query II rowsort
SELECT + 51, - 34 + + 85 AS col2
----
51
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6841
SELECT ALL + COUNT( * ) - 21 col0, CAST( + 10 AS SIGNED ) AS col0
----
-20
10

skipif mysql # not compatible
query II rowsort label-6841
SELECT ALL + COUNT ( * ) - 21 col0, CAST ( + 10 AS INTEGER ) AS col0
----
-20
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL 79 * + + 18 * + 43 + 49 + 29 + 76 * + MIN( DISTINCT ( + - 12 ) ) + - 3
----
60309

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL 79 * + + 18 * + 43 + 49 + 29 + 76 * + MIN ( DISTINCT ( + - 12 ) ) + - 3
----
60309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6843
SELECT 38 * - COALESCE ( - - 69, CAST( NULL AS SIGNED ), + 60 * 41 * - - 70 ) + - 34
----
-2656

skipif mysql # not compatible
query I rowsort label-6843
SELECT 38 * - COALESCE ( - - 69, CAST ( NULL AS INTEGER ), + 60 * 41 * - - 70 ) + - 34
----
-2656

query I rowsort
SELECT DISTINCT ( + 98 ) col2
----
98

query I rowsort
SELECT ALL + 75 - 55 * - 89
----
4970

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL + CASE - - 36 WHEN - 94 / - 16 - + 92 + ( NULLIF ( + - 28, + ( - 70 ) - - 35 + + 35 * + 92 ) ) THEN NULL WHEN + + 35 THEN + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + CASE - - 36 WHEN - 94 / - 16 - + 92 + ( NULLIF ( + - 28, + ( - 70 ) - - 35 + + 35 * + 92 ) ) THEN NULL WHEN + + 35 THEN + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL - 5, - 68 col2
----
-5
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT ALL + ( + + SUM( DISTINCT + 87 ) ) col0
----
87

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL + ( + + SUM ( DISTINCT + 87 ) ) col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT COUNT( * ) AS col0, 31 AS col1
----
1
31

skipif mysql # not compatible
query II rowsort label-6849
SELECT COUNT ( * ) AS col0, 31 AS col1
----
1
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT + MIN( ALL - - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT + MIN ( ALL - - 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT DISTINCT ( + MIN( ALL - 47 ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT ( + MIN ( ALL - 47 ) ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT ALL 66, + 27 + + 85 - 15 * COUNT( * ) col2
----
66
97

skipif mysql # not compatible
query II rowsort label-6852
SELECT ALL 66, + 27 + + 85 - 15 * COUNT ( * ) col2
----
66
97

query I rowsort
SELECT DISTINCT - 90 + 9
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6854
SELECT - 28, + COUNT( * ) DIV 40 DIV + + 78 * - 51 AS col2
----
-28
0

skipif mysql # not compatible
query II rowsort label-6854
SELECT - 28, + COUNT ( * ) / 40 / + + 78 * - 51 AS col2
----
-28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL + - COUNT( * ) * + - 99 * 69
----
6831

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + - COUNT ( * ) * + - 99 * 69
----
6831

query I rowsort
SELECT + 71 * + 97
----
6887

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL + COUNT( * ) + - 62 - - + 69
----
8

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL + COUNT ( * ) + - 62 - - + 69
----
8

query I rowsort
SELECT ALL + + 92 + + 96 + 4
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT COUNT( * ) + 0 - 97
----
-96

skipif mysql # not compatible
query I rowsort label-6859
SELECT COUNT ( * ) + 0 - 97
----
-96

query I rowsort
SELECT 80 * + 78 * + - ( - 64 ) col0
----
399360

query I rowsort
SELECT ALL 78 + + 53
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ALL MIN( - - 75 ) + 39 + - 18 * + 94
----
-1578

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL MIN ( - - 75 ) + 39 + - 18 * + 94
----
-1578

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL COUNT( * ) + + - 40 + + + 19 - 60 + - - SUM( 99 ) + - 53 * + + 48 AS col2
----
-2525

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL COUNT ( * ) + + - 40 + + + 19 - 60 + - - SUM ( 99 ) + - 53 * + + 48 AS col2
----
-2525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6864
SELECT MAX( - 39 ) - - COUNT( * ) + 0 + - 43 * - - 44 + + 54 + + ( + COUNT( * ) ) * - 80 DIV 77 * - + 25 * - 16 * 89 * + 63 + + 33 + - 88
----
-2244731

skipif mysql # not compatible
query I rowsort label-6864
SELECT MAX ( - 39 ) - - COUNT ( * ) + 0 + - 43 * - - 44 + + 54 + + ( + COUNT ( * ) ) * - 80 / 77 * - + 25 * - 16 * 89 * + 63 + + 33 + - 88
----
-2244731

onlyif mysql # aggregate syntax: 
query II rowsort label-6865
SELECT MAX( 73 ) col1, 98 + MIN( + 82 ) AS col2
----
73
180

skipif mysql # not compatible
query II rowsort label-6865
SELECT MAX ( 73 ) col1, 98 + MIN ( + 82 ) AS col2
----
73
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT 95 - + CASE - + 34 WHEN + - 44 * - + ( + 70 ) THEN NULL WHEN - 98 / - 56 + - - 57 THEN NULL WHEN - 35 THEN - + COUNT( * ) ELSE + - 18 + + 65 + 85 + 29 * + 98 * + MAX( DISTINCT 15 ) + 60 END + - 75 col0
----
-42802

skipif mysql # not compatible
query I rowsort label-6866
SELECT 95 - + CASE - + 34 WHEN + - 44 * - + ( + 70 ) THEN NULL WHEN - 98 / - 56 + - - 57 THEN NULL WHEN - 35 THEN - + COUNT ( * ) ELSE + - 18 + + 65 + 85 + 29 * + 98 * + MAX ( DISTINCT 15 ) + 60 END + - 75 col0
----
-42802

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT COUNT( 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6867
SELECT COUNT ( 31 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 76 * + + 60 AS col1
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL - MIN( ALL + 26 ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - MIN ( ALL + 26 ) col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT DISTINCT - COALESCE ( - 58, ( 77 ) DIV NULLIF ( - + 18, - - 35 ) )
----
58

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT - COALESCE ( - 58, ( 77 ) / NULLIF ( - + 18, - - 35 ) )
----
58

query I rowsort
SELECT + 47 + + 65 + - 72
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT + - CASE + 74 WHEN - 67 THEN NULL WHEN COUNT( * ) THEN + 82 / 53 + + + 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT + - CASE + 74 WHEN - 67 THEN NULL WHEN COUNT ( * ) THEN + 82 / 53 + + + 88 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6873
SELECT + CASE + 10 WHEN + 90 + - COUNT( * ) + + - 41 * 18 / - 44 THEN + 49 + + + COUNT( * ) WHEN - 68 THEN - 49 + + CAST( + ( 60 ) AS DECIMAL ) + - MAX( ALL + - 36 ) * - ( - 54 ) WHEN 56 * - 23 THEN + 90 ELSE NULL END + - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT + CASE + 10 WHEN + 90 + - COUNT ( * ) + + - 41 * 18 / - 44 THEN + 49 + + + COUNT ( * ) WHEN - 68 THEN - 49 + + CAST ( + ( 60 ) AS REAL ) + - MAX ( ALL + - 36 ) * - ( - 54 ) WHEN 56 * - 23 THEN + 90 ELSE NULL END + - + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT - COUNT( * ) * - + 95 + - COALESCE ( - 83, - - ( COUNT( * ) ) + - - 68 * - 54 ) + + 40
----
218

skipif mysql # not compatible
query I rowsort label-6874
SELECT - COUNT ( * ) * - + 95 + - COALESCE ( - 83, - - ( COUNT ( * ) ) + - - 68 * - 54 ) + + 40
----
218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6875
SELECT - 53 - + 96 AS col0, - ( + + CAST( NULL AS SIGNED ) ) AS col2
----
-149
NULL

skipif mysql # not compatible
query II rowsort label-6875
SELECT - 53 - + 96 AS col0, - ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
-149
NULL

query I rowsort
SELECT 63 * - 27
----
-1701

query II rowsort
SELECT DISTINCT ( + 6 ) AS col0, - 73 AS col2
----
6
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL - 88 * - - NULLIF ( + + 24, - COUNT( * ) )
----
-2112

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - 88 * - - NULLIF ( + + 24, - COUNT ( * ) )
----
-2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6879
SELECT ALL - - COUNT( * ) + - COALESCE ( 5, 68, COUNT( * ) * + 19 * + 39, COALESCE ( + + ( 52 ), - COUNT( * ) + 85 ) * - COALESCE ( - 68, 83 + - COALESCE ( 0, 38 * - 45 + + 71 + COUNT( * ) * + 21 DIV + 8 * - 28 ) * - 58, - 61 DIV 86 + + 14 ) ) - 21 * ( 73 * 49 )
----
-75121

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL - - COUNT ( * ) + - COALESCE ( 5, 68, COUNT ( * ) * + 19 * + 39, COALESCE ( + + ( 52 ), - COUNT ( * ) + 85 ) * - COALESCE ( - 68, 83 + - COALESCE ( 0, 38 * - 45 + + 71 + COUNT ( * ) * + 21 / + 8 * - 28 ) * - 58, - 61 / 86 + + 14 ) ) - 21 * ( 73 * 49 )
----
-75121

query I rowsort
SELECT - + 66 * 63 AS col2
----
-4158

query I rowsort
SELECT DISTINCT 98 + + 95 + + 72
----
265

query I rowsort
SELECT ALL - 27 + + - 88 + - ( - 76 ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT + CAST( + ( + 36 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-6883
SELECT + CAST ( + ( + 36 ) AS INTEGER )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6884
SELECT - 12 * + NULLIF ( + AVG ( + - CAST( NULL AS SIGNED ) ), AVG ( DISTINCT - + 65 ) ) * 26 / 73 + - ( - 4 ) AS col2, + 64
----
NULL
64

skipif mysql # not compatible
query II rowsort label-6884
SELECT - 12 * + NULLIF ( + AVG ( + - CAST ( NULL AS INTEGER ) ), AVG ( DISTINCT - + 65 ) ) * 26 / 73 + - ( - 4 ) AS col2, + 64
----
NULL
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6885
SELECT - + MAX( DISTINCT - - 35 ), - 49 AS col0
----
-35
-49

skipif mysql # not compatible
query II rowsort label-6885
SELECT - + MAX ( DISTINCT - - 35 ), - 49 AS col0
----
-35
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT ALL + SUM( + 3 ) + + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL + SUM ( + 3 ) + + + COUNT ( * )
----
4

query I rowsort
SELECT ALL COALESCE ( + 44, 19 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT - 61 - - 42 * - 21 * + COUNT( DISTINCT + 98 ) AS col2
----
-943

skipif mysql # not compatible
query I rowsort label-6888
SELECT - 61 - - 42 * - 21 * + COUNT ( DISTINCT + 98 ) AS col2
----
-943

query II rowsort
SELECT - ( - 28 ) * - + 27 AS col2, - 27 * - 79 AS col2
----
-756
2133

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - 37 - - NULLIF ( + 93, + - MIN( ALL + 5 ) * + + ( - - 61 ) + + - 31 + - + ( + - 57 ) ) + - 44
----
12

skipif mysql # not compatible
query I rowsort label-6890
SELECT - 37 - - NULLIF ( + 93, + - MIN ( ALL + 5 ) * + + ( - - 61 ) + + - 31 + - + ( + - 57 ) ) + - 44
----
12

query I rowsort
SELECT ALL + 78 + 62
----
140

query II rowsort
SELECT - 17 AS col2, - 13
----
-17
-13

query I rowsort
SELECT - 25 + - 15 AS col0
----
-40

query I rowsort
SELECT - 37 * - + 69 * - 51 - - ( - + 56 ) AS col2
----
-130259

query II rowsort
SELECT ALL + 69 AS col2, 14 AS col0
----
69
14

query I rowsort
SELECT - 77 + - 20
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL + NULLIF ( - + COUNT( * ), - 52 - + COUNT( * ) - + 71 / + + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + NULLIF ( - + COUNT ( * ), - 52 - + COUNT ( * ) - + 71 / + + 95 )
----
-1

query I rowsort
SELECT - NULLIF ( - 12, - - 6 + 74 ) * - + 98 + + 29 AS col1
----
-1147

query I rowsort
SELECT ( + + 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL + MAX( DISTINCT + - ( + 66 ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + MAX ( DISTINCT + - ( + 66 ) ) AS col1
----
-66

query I rowsort
SELECT COALESCE ( 78, + - 76, + 14 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6902
SELECT COALESCE ( - + COALESCE ( 25, + 76 * - 50 + CAST( NULL AS SIGNED ) ), + + 5 * COALESCE ( - 91, + CAST( NULL AS SIGNED ) DIV + 26, - 74 ) + 39 - 5 + - MIN( ALL - 25 ) * + - SUM( + - 70 ) + - COUNT( * ) - + 35 - - + 63 * - ( COUNT( * ) ) * 52 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-6902
SELECT COALESCE ( - + COALESCE ( 25, + 76 * - 50 + CAST ( NULL AS INTEGER ) ), + + 5 * COALESCE ( - 91, + CAST ( NULL AS INTEGER ) / + 26, - 74 ) + 39 - 5 + - MIN ( ALL - 25 ) * + - SUM ( + - 70 ) + - COUNT ( * ) - + 35 - - + 63 * - ( COUNT ( * ) ) * 52 ) AS col1
----
-25

query I rowsort
SELECT - 94 * 89 AS col1
----
-8366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6904
SELECT + 99 + 14 DIV - COUNT( + + CAST( + 67 AS SIGNED ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6904
SELECT + 99 + 14 / - COUNT ( + + CAST ( + 67 AS INTEGER ) ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6905
SELECT DISTINCT + 88 col1, + COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-6905
SELECT DISTINCT + 88 col1, + COUNT ( * )
----
88
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6906
SELECT + 13 * CAST( NULL AS SIGNED ) * 30 + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT + 13 * CAST ( NULL AS INTEGER ) * 30 + + 55
----
NULL

query II rowsort
SELECT + + 55 col0, - 41
----
55
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT + 28 * - SUM( ALL + - 51 )
----
1428

skipif mysql # not compatible
query I rowsort label-6908
SELECT + 28 * - SUM ( ALL + - 51 )
----
1428

query I rowsort
SELECT DISTINCT + + NULLIF ( - 4, + 5 )
----
-4

query I rowsort
SELECT ALL + + 59 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL - - 49 * - + 12 + + 3 * - 77 + - 76 - + 76 * - COUNT( * ) * 55 * - 3 * - 25 AS col1
----
312605

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL - - 49 * - + 12 + + 3 * - 77 + - 76 - + 76 * - COUNT ( * ) * 55 * - 3 * - 25 AS col1
----
312605

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL 92 * COUNT( * ) + - 93 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL 92 * COUNT ( * ) + - 93 AS col0
----
-1

query I rowsort
SELECT ALL 29 * - 64 + - + 62 + + - 27 - - - 1 * 37 + 93
----
-1889

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + 26 * - 0 * - 25 * + 82 + COALESCE ( - + 17, + COUNT( * ), - COUNT( * ) * 11, + ( + 80 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-6914
SELECT + 26 * - 0 * - 25 * + 82 + COALESCE ( - + 17, + COUNT ( * ), - COUNT ( * ) * 11, + ( + 80 ) )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6915
SELECT DISTINCT - 75, - 59 + - + 22 * + + 16 * + CAST( - 70 AS SIGNED ) AS col1
----
-75
24581

skipif mysql # not compatible
query II rowsort label-6915
SELECT DISTINCT - 75, - 59 + - + 22 * + + 16 * + CAST ( - 70 AS INTEGER ) AS col1
----
-75
24581

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL - 76 * + - MIN( - ( - - ( + 70 ) ) ) + + 99 AS col1
----
-5221

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL - 76 * + - MIN ( - ( - - ( + 70 ) ) ) + + 99 AS col1
----
-5221

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT + ( - 43 ) * + 68 - 91 - - + 36 + - + COUNT( * ) * + ( + 33 ) * - 3 * 51
----
2070

skipif mysql # not compatible
query I rowsort label-6917
SELECT + ( - 43 ) * + 68 - 91 - - + 36 + - + COUNT ( * ) * + ( + 33 ) * - 3 * 51
----
2070

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT DISTINCT - 49 + 7 DIV - + 20 col0
----
-49

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - 49 + 7 / - + 20 col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6919
SELECT DISTINCT + 74 + + SUM( ALL 55 ) DIV + COUNT( * ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT + 74 + + SUM ( ALL 55 ) / + COUNT ( * ) AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL + 16 * 20 + + - 25 * COUNT( * ) * + - 25
----
945

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL + 16 * 20 + + - 25 * COUNT ( * ) * + - 25
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT - SUM( 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-6921
SELECT - SUM ( 64 )
----
-64

query I rowsort
SELECT DISTINCT 8 + - + 88 * ( 77 ) col2
----
-6768

query I rowsort
SELECT + 37 + - 64 AS col2
----
-27

query I rowsort
SELECT ALL 2 * + 20
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6925
SELECT DISTINCT MIN( 17 ), + 45 col2
----
17
45

skipif mysql # not compatible
query II rowsort label-6925
SELECT DISTINCT MIN ( 17 ), + 45 col2
----
17
45

query I rowsort
SELECT + ( - 15 ) * - 71 AS col1
----
1065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6927
SELECT - 66 * - + 75 DIV COUNT( * ) AS col1
----
4950

skipif mysql # not compatible
query I rowsort label-6927
SELECT - 66 * - + 75 / COUNT ( * ) AS col1
----
4950

query I rowsort
SELECT DISTINCT + ( - 0 ) - + 85
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL ( - COUNT( DISTINCT - + 10 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL ( - COUNT ( DISTINCT - + 10 ) ) AS col2
----
-1

query I rowsort
SELECT - 30 * + + 6
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL MIN( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL MIN ( 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT + 11 * ( COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT + 11 * ( COUNT ( * ) )
----
11

query II rowsort
SELECT + 35 * 78, + 62 AS col2
----
2730
62

query I rowsort
SELECT + 94 * - - 37
----
3478

query I rowsort
SELECT + 11 - - 50 * + - 38
----
-1889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT DISTINCT + 12 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT + 12 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6937
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * - CASE - CAST( 27 AS SIGNED ) WHEN + 54 THEN 16 + - 0 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * - CASE - CAST ( 27 AS INTEGER ) WHEN + 54 THEN 16 + - 0 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT - CAST( NULL AS SIGNED ) / - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT - CAST ( NULL AS INTEGER ) / - 12 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6939
SELECT DISTINCT + 43 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT + 43 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6940
SELECT DISTINCT + COUNT( * ) / 49 * - - 7 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT + COUNT ( * ) / 49 * - - 7 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6941
SELECT DISTINCT 40 DIV - - MIN( ( + 79 ) ) + 19 + + 3 + + 0 - + ( + ( + 22 ) ) * + 13 * 20 * - 2 + + - 0 AS col1
----
11462

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT 40 / - - MIN ( ( + 79 ) ) + 19 + + 3 + + 0 - + ( + ( + 22 ) ) * + 13 * 20 * - 2 + + - 0 AS col1
----
11462

query I rowsort
SELECT + 81 * + 85 - + + 92 col0
----
6793

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT 41 + - - 34 + 99 * + - 48 * + COUNT( * ) AS col1
----
-4677

skipif mysql # not compatible
query I rowsort label-6943
SELECT 41 + - - 34 + 99 * + - 48 * + COUNT ( * ) AS col1
----
-4677

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT + CASE 13 WHEN 11 THEN NULL WHEN - + 88 THEN - COUNT( * ) * + - 17 / + COALESCE ( 6, ( + 77 ) ) + - - 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT + CASE 13 WHEN 11 THEN NULL WHEN - + 88 THEN - COUNT ( * ) * + - 17 / + COALESCE ( 6, ( + 77 ) ) + - - 61 END
----
NULL

query I rowsort
SELECT + CASE - + 66 WHEN - 52 THEN 66 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT + 1 * 87 * - COUNT( * ) + + 97
----
10

skipif mysql # not compatible
query I rowsort label-6946
SELECT + 1 * 87 * - COUNT ( * ) + + 97
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6947
SELECT ALL - CAST( - + 10 AS SIGNED ) AS col2, COALESCE ( + + ( - - 4 ), + - 22 * - 58 + - COUNT( * ) ) + - + 24
----
10
-20

skipif mysql # not compatible
query II rowsort label-6947
SELECT ALL - CAST ( - + 10 AS INTEGER ) AS col2, COALESCE ( + + ( - - 4 ), + - 22 * - 58 + - COUNT ( * ) ) + - + 24
----
10
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6948
SELECT ALL - COUNT( * ) + + COALESCE ( - - 97, - CAST( NULL AS SIGNED ), - - 12, - + 33 * 97 + - COUNT( * ) ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL - COUNT ( * ) + + COALESCE ( - - 97, - CAST ( NULL AS INTEGER ), - - 12, - + 33 * 97 + - COUNT ( * ) ) AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6949
SELECT DISTINCT + - 55 - + CAST( NULL AS SIGNED ), - 20 * - - 33 AS col0
----
NULL
-660

skipif mysql # not compatible
query II rowsort label-6949
SELECT DISTINCT + - 55 - + CAST ( NULL AS INTEGER ), - 20 * - - 33 AS col0
----
NULL
-660

query I rowsort
SELECT 79 * + 82 AS col0
----
6478

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6951
SELECT COALESCE ( + NULLIF ( - 13, + + 15 + - NULLIF ( + 34, + ( + CAST( NULL AS SIGNED ) ) ) ), CAST( NULL AS SIGNED ) ) + + 89 AS col1, - 96 AS col0
----
76
-96

skipif mysql # not compatible
query II rowsort label-6951
SELECT COALESCE ( + NULLIF ( - 13, + + 15 + - NULLIF ( + 34, + ( + CAST ( NULL AS INTEGER ) ) ) ), CAST ( NULL AS INTEGER ) ) + + 89 AS col1, - 96 AS col0
----
76
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT 98 DIV + 84 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6952
SELECT 98 / + 84 AS col2
----
1

query II rowsort
SELECT ALL 24 AS col2, - 41
----
24
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT DISTINCT ( - + 69 ) * + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT ( - + 69 ) * + COUNT ( * )
----
-69

query II rowsort
SELECT - 36, - 37 AS col1
----
-36
-37

query I rowsort
SELECT 20 + + 17
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT ( - 55 ) DIV - + 93 col0
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT ( - 55 ) / - + 93 col0
----
0

query I rowsort
SELECT 59 * + 24 AS col0
----
1416

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6959
SELECT CAST( NULL AS DECIMAL ) + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT CAST ( NULL AS REAL ) + - 38 AS col1
----
NULL

query I rowsort
SELECT ALL 19 + 12 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT - - COUNT( * ) + - + MIN( - - 29 ) - MIN( DISTINCT - 47 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - - COUNT ( * ) + - + MIN ( - - 29 ) - MIN ( DISTINCT - 47 ) AS col0
----
19

query I rowsort
SELECT ALL - 1 + + - 20 AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6963
SELECT 7 + + - 28 DIV + 13, CAST( + COUNT( * ) AS SIGNED ) AS col1
----
5
1

skipif mysql # not compatible
query II rowsort label-6963
SELECT 7 + + - 28 / + 13, CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
5
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6964
SELECT - COALESCE ( - + 27, + 51, - COUNT( * ) * - 64 ) AS col2, + 69 + + + COUNT( * ) AS col2
----
27
70

skipif mysql # not compatible
query II rowsort label-6964
SELECT - COALESCE ( - + 27, + 51, - COUNT ( * ) * - 64 ) AS col2, + 69 + + + COUNT ( * ) AS col2
----
27
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL - - MAX( ALL 66 ) + - ( - 80 ) * 3
----
306

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL - - MAX ( ALL 66 ) + - ( - 80 ) * 3
----
306

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT ( + + 18 ) DIV - + ( - 1 )
----
18

skipif mysql # not compatible
query I rowsort label-6966
SELECT ( + + 18 ) / - + ( - 1 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + 21 * - COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6967
SELECT + 21 * - COUNT ( * ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT DISTINCT - NULLIF ( - ( + 53 ), - 53 - + COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT - NULLIF ( - ( + 53 ), - 53 - + COUNT ( * ) )
----
53

query II rowsort
SELECT - 8, 98 AS col0
----
-8
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL + 99 - + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL + 99 - + COUNT ( * ) AS col1
----
98

query I rowsort
SELECT 56 * + 79 + ( 84 ) AS col1
----
4508

query I rowsort
SELECT ALL - - ( - 12 ) AS col1
----
-12

query II rowsort
SELECT 44 AS col1, 93 + - 61
----
44
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT 89 * - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-6974
SELECT 89 * - COUNT ( * )
----
-89

query I rowsort
SELECT 24 * + ( - + 92 )
----
-2208

query I rowsort
SELECT 95 + ( + 2 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT COUNT( * ) + - 86 + - + 91
----
-176

skipif mysql # not compatible
query I rowsort label-6977
SELECT COUNT ( * ) + - 86 + - + 91
----
-176

query I rowsort
SELECT ALL 48 * + 91 AS col1
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT 14 * + + CASE + COUNT( * ) WHEN + COUNT( * ) + COUNT( * ) * - MAX( 85 ) + - ( + - 66 ) + 59 * + + 66 THEN - 99 * + + 36 / + - NULLIF ( + 7, + - COUNT( * ) ) + 34 + + 5 * 54 * + 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT 14 * + + CASE + COUNT ( * ) WHEN + COUNT ( * ) + COUNT ( * ) * - MAX ( 85 ) + - ( + - 66 ) + 59 * + + 66 THEN - 99 * + + 36 / + - NULLIF ( + 7, + - COUNT ( * ) ) + 34 + + 5 * 54 * + 46 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6980
SELECT ALL - MAX( - CAST( + 4 AS SIGNED ) ) * - 47 + + SUM( + 28 ) AS col0, - 42
----
-160
-42

skipif mysql # not compatible
query II rowsort label-6980
SELECT ALL - MAX ( - CAST ( + 4 AS INTEGER ) ) * - 47 + + SUM ( + 28 ) AS col0, - 42
----
-160
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL MIN( 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL MIN ( 74 ) AS col0
----
74

query II rowsort
SELECT DISTINCT 19 AS col2, + 99 AS col1
----
19
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT DISTINCT SUM( DISTINCT 64 )
----
64

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT SUM ( DISTINCT 64 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT ALL COUNT( * ) AS col1, 36 - + 31 * - 27 AS col0
----
1
873

skipif mysql # not compatible
query II rowsort label-6984
SELECT ALL COUNT ( * ) AS col1, 36 - + 31 * - 27 AS col0
----
1
873

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - MIN( 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-6985
SELECT - MIN ( 16 )
----
-16

query II rowsort
SELECT - 34, 3 AS col2
----
-34
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT 59 DIV - - 93 * + - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6987
SELECT 59 / - - 93 * + - 40 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6988
SELECT 29 * + COUNT( * ), + CAST( + - MAX( ALL + 56 ) AS SIGNED ) col1
----
29
-56

skipif mysql # not compatible
query II rowsort label-6988
SELECT 29 * + COUNT ( * ), + CAST ( + - MAX ( ALL + 56 ) AS INTEGER ) col1
----
29
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT DISTINCT 0 DIV - - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT 0 / - - 53 AS col1
----
0

query I rowsort
SELECT DISTINCT 94 + - + 81
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6991
SELECT DISTINCT - 71 AS col1, + MAX( DISTINCT - - 36 ) + 84 * 68
----
-71
5748

skipif mysql # not compatible
query II rowsort label-6991
SELECT DISTINCT - 71 AS col1, + MAX ( DISTINCT - - 36 ) + 84 * 68
----
-71
5748

query I rowsort
SELECT + + 99 * + 42 AS col1
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL + 94 * - + MIN( + + 39 ) - + - COUNT( * )
----
-3665

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL + 94 * - + MIN ( + + 39 ) - + - COUNT ( * )
----
-3665

query II rowsort
SELECT + 30 AS col2, 87 * - - 92 AS col2
----
30
8004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6995
SELECT ALL + 86 * + 86 + 39 * - + 32 AS col1, - ( 15 ) - - 57 + + - 23 - - COUNT( * ) - - CAST( NULL AS SIGNED ) * - 64 * + - 39 * COUNT( * ) * + ( - MAX( ALL + 55 ) )
----
6148
NULL

skipif mysql # not compatible
query II rowsort label-6995
SELECT ALL + 86 * + 86 + 39 * - + 32 AS col1, - ( 15 ) - - 57 + + - 23 - - COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - 64 * + - 39 * COUNT ( * ) * + ( - MAX ( ALL + 55 ) )
----
6148
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6996
SELECT + 91 AS col2, MIN( ALL + 36 ) * 98 AS col1
----
91
3528

skipif mysql # not compatible
query II rowsort label-6996
SELECT + 91 AS col2, MIN ( ALL + 36 ) * 98 AS col1
----
91
3528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT + COALESCE ( + 28, + COUNT( DISTINCT + 18 ), + + COUNT( + 24 ) DIV + 26 * + MAX( DISTINCT + 64 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6997
SELECT + COALESCE ( + 28, + COUNT ( DISTINCT + 18 ), + + COUNT ( + 24 ) / + 26 * + MAX ( DISTINCT + 64 ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6998
SELECT + - 21 * + COUNT( * ) - - 6 + + - 96 AS col2, NULLIF ( - ( ( COUNT( * ) ) ), 61 ) * + + 3 * + 18 + + 53 AS col0
----
-111
-1

skipif mysql # not compatible
query II rowsort label-6998
SELECT + - 21 * + COUNT ( * ) - - 6 + + - 96 AS col2, NULLIF ( - ( ( COUNT ( * ) ) ), 61 ) * + + 3 * + 18 + + 53 AS col0
----
-111
-1

query II rowsort
SELECT + 41 AS col0, + 27
----
41
27

query I rowsort
SELECT + 58 * + - 9
----
-522

query I rowsort
SELECT DISTINCT 64 * 54 * - 29 - - 98 + - 43 AS col2
----
-100169

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT DISTINCT + + ( - MAX( ALL + 85 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT + + ( - MAX ( ALL + 85 ) ) AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT ALL - 28 * 22 DIV 33 + 27 - + 73 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - 28 * 22 / 33 + 27 - + 73 AS col0
----
-64

query I rowsort
SELECT - - 23 - - ( - 50 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7005
SELECT ALL - COUNT( * ) DIV - SUM( ALL + 79 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL - COUNT ( * ) / - SUM ( ALL + 79 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT DISTINCT + 83 AS col1, COUNT( * ) * - 93
----
83
-93

skipif mysql # not compatible
query II rowsort label-7006
SELECT DISTINCT + 83 AS col1, COUNT ( * ) * - 93
----
83
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT + + 53 + - COUNT( * ) - - + 51 * - 0
----
52

skipif mysql # not compatible
query I rowsort label-7007
SELECT + + 53 + - COUNT ( * ) - - + 51 * - 0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ALL - CASE 60 WHEN 56 + 3 THEN - - 81 * - - 55 * - COUNT( * ) * - + 63 WHEN - 23 + - 44 / 30 * + - 22 THEN NULL ELSE NULL END * - 2 + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - CASE 60 WHEN 56 + 3 THEN - - 81 * - - 55 * - COUNT ( * ) * - + 63 WHEN - 23 + - 44 / 30 * + - 22 THEN NULL ELSE NULL END * - 2 + - 16 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT + - 62 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-7009
SELECT + - 62 / - 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT - 22 / - - 23 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT - 22 / - - 23 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7011
SELECT + 61 + + 88 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT + 61 + + 88 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 67 * - 98
----
6566

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - 8 * - 83 + + 29 + + + 65 * + - ( + COALESCE ( - COUNT( * ), + 19 ) )
----
758

skipif mysql # not compatible
query I rowsort label-7013
SELECT - 8 * - 83 + + 29 + + + 65 * + - ( + COALESCE ( - COUNT ( * ), + 19 ) )
----
758

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT DISTINCT MIN( ALL + 54 ) AS col2, 61 * - 30 AS col0
----
54
-1830

skipif mysql # not compatible
query II rowsort label-7014
SELECT DISTINCT MIN ( ALL + 54 ) AS col2, 61 * - 30 AS col0
----
54
-1830

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT ALL SUM( + NULLIF ( + 22, - 38 + - 98 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL SUM ( + NULLIF ( + 22, - 38 + - 98 ) ) AS col0
----
22

query I rowsort
SELECT DISTINCT - NULLIF ( + 27, 49 ) + - 81 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT - 83 + 86 + + 85 + + - CASE + 14 WHEN 57 - 17 THEN 21 - COUNT( * ) - + 32 ELSE NULL END / 39 * 27 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT - 83 + 86 + + 85 + + - CASE + 14 WHEN 57 - 17 THEN 21 - COUNT ( * ) - + 32 ELSE NULL END / 39 * 27 * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL - 25 + - COUNT( * ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL - 25 + - COUNT ( * ) col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7019
SELECT - MIN( DISTINCT - 47 ), - COUNT( * ) DIV - 12 - CAST( ( ( + 30 ) ) AS SIGNED ) * - 35 + + - 54 - - 26 - - 89 * + 47 * - + 75 * + MAX( ALL + 15 ) AS col2
----
47
-4704853

skipif mysql # not compatible
query II rowsort label-7019
SELECT - MIN ( DISTINCT - 47 ), - COUNT ( * ) / - 12 - CAST ( ( ( + 30 ) ) AS INTEGER ) * - 35 + + - 54 - - 26 - - 89 * + 47 * - + 75 * + MAX ( ALL + 15 ) AS col2
----
47
-4704853

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7020
SELECT DISTINCT ( - 98 ) AS col1, + ( + COUNT( * ) ) DIV - COUNT( * ) AS col1
----
-98
-1

skipif mysql # not compatible
query II rowsort label-7020
SELECT DISTINCT ( - 98 ) AS col1, + ( + COUNT ( * ) ) / - COUNT ( * ) AS col1
----
-98
-1

query I rowsort
SELECT ALL - 98 * - 39
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT - 65 + + ( + - COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-7022
SELECT - 65 + + ( + - COUNT ( * ) )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7023
SELECT ALL - COALESCE ( COUNT( * ), - 3 * - - 66 + - 80 - + COALESCE ( + 50, - + 77 ) * - 35 * CASE 54 WHEN - NULLIF ( 69, 7 + + 78 ) THEN NULL WHEN + 43 * - CAST( 67 AS SIGNED ) THEN - 24 END + - + COUNT( * ) DIV + 17 * + + 14 ) + 44 * ( + 20 ) * + 74 * + 33 DIV COUNT( * ) AS col1
----
2148959

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL - COALESCE ( COUNT ( * ), - 3 * - - 66 + - 80 - + COALESCE ( + 50, - + 77 ) * - 35 * CASE 54 WHEN - NULLIF ( 69, 7 + + 78 ) THEN NULL WHEN + 43 * - CAST ( 67 AS INTEGER ) THEN - 24 END + - + COUNT ( * ) / + 17 * + + 14 ) + 44 * ( + 20 ) * + 74 * + 33 / COUNT ( * ) AS col1
----
2148959

query I rowsort
SELECT DISTINCT - 81 + + 45 AS col0
----
-36

query II rowsort
SELECT + 76 * - - 81, NULLIF ( + 54, + + 58 ) AS col2
----
6156
54

query I rowsort
SELECT - 20 + 83 * + 35
----
2885

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT + ( + 79 ) - - - NULLIF ( - 8, + + COUNT( * ) ) * - + 39 AS col0
----
-233

skipif mysql # not compatible
query I rowsort label-7027
SELECT + ( + 79 ) - - - NULLIF ( - 8, + + COUNT ( * ) ) * - + 39 AS col0
----
-233

onlyif mysql # DIV for integer division: 
query I rowsort label-7028
SELECT + - 60 * 58 * 39 * 14 + + - 9 DIV + 52 * - 43
----
-1900080

skipif mysql # not compatible
query I rowsort label-7028
SELECT + - 60 * 58 * 39 * 14 + + - 9 / + 52 * - 43
----
-1900080

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT + + 1 * + + 80 DIV - 90 * 15 + + + ( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-7029
SELECT + + 1 * + + 80 / - 90 * 15 + + + ( - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL - 32 * - COUNT( * ) - + 38 * 46 AS col2
----
-1716

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL - 32 * - COUNT ( * ) - + 38 * 46 AS col2
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT + - 27 * + + SUM( - - 93 ) + 95
----
-2416

skipif mysql # not compatible
query I rowsort label-7031
SELECT + - 27 * + + SUM ( - - 93 ) + 95
----
-2416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7032
SELECT + + CASE - COUNT( * ) WHEN + 56 THEN NULL ELSE MIN( - 43 ) END DIV COUNT( * ) + + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-7032
SELECT + + CASE - COUNT ( * ) WHEN + 56 THEN NULL ELSE MIN ( - 43 ) END / COUNT ( * ) + + COUNT ( * )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL + 88 * CAST( NULL AS SIGNED ) - 96 + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + 88 * CAST ( NULL AS INTEGER ) - 96 + + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT - + 59 * + + 5 + + ( 56 ) + - 49 + + 59 DIV - 30 + + 18 + - + 24 AS col2
----
-295

skipif mysql # not compatible
query I rowsort label-7034
SELECT - + 59 * + + 5 + + ( 56 ) + - 49 + + 59 / - 30 + + 18 + - + 24 AS col2
----
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT DISTINCT + COUNT( * ) * 6 + + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT + COUNT ( * ) * 6 + + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT 27 * + 93 + - + 29 + ( + - 95 ) + + + 89 - - - 32 AS col0, + COUNT( * )
----
2444
1

skipif mysql # not compatible
query II rowsort label-7036
SELECT 27 * + 93 + - + 29 + ( + - 95 ) + + + 89 - - - 32 AS col0, + COUNT ( * )
----
2444
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - 77 * - COUNT( * ) + - - COUNT( * ) * - 46 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7037
SELECT - 77 * - COUNT ( * ) + - - COUNT ( * ) * - 46 AS col0
----
31

query I rowsort
SELECT DISTINCT + 94 * - 77 AS col2
----
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT + 14 * - - COUNT( * ) * + 77 AS col0
----
1078

skipif mysql # not compatible
query I rowsort label-7039
SELECT + 14 * - - COUNT ( * ) * + 77 AS col0
----
1078

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT ALL + 2 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL + 2 / + 38
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7041
SELECT ALL 10 * + 93 + - 22 * + 12 AS col0, 13 * + - CAST( NULL AS SIGNED ) AS col1
----
666
NULL

skipif mysql # not compatible
query II rowsort label-7041
SELECT ALL 10 * + 93 + - 22 * + 12 AS col0, 13 * + - CAST ( NULL AS INTEGER ) AS col1
----
666
NULL

query I rowsort
SELECT NULLIF ( - 24, 30 + 98 * + 22 / 7 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT ( - COUNT( * ) ) * - 40
----
40

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT ( - COUNT ( * ) ) * - 40
----
40

query I rowsort
SELECT + 48 - 69 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT + 24 - + - CAST( NULL AS SIGNED ) + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT + 24 - + - CAST ( NULL AS INTEGER ) + + 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7046
SELECT ALL - 63 * - 56 + - + NULLIF ( + COALESCE ( - - CAST( NULL AS SIGNED ), - 82 ), 55 ) - - 50, 71 AS col2
----
3660
71

skipif mysql # not compatible
query II rowsort label-7046
SELECT ALL - 63 * - 56 + - + NULLIF ( + COALESCE ( - - CAST ( NULL AS INTEGER ), - 82 ), 55 ) - - 50, 71 AS col2
----
3660
71

query I rowsort
SELECT ALL - 94 + - 0
----
-94

query II rowsort
SELECT ALL 89 AS col2, + 56 col0
----
89
56

query I rowsort
SELECT 64 + - - 93 * - 68 + - 94
----
-6354

query II rowsort
SELECT - 42 AS col2, 18 * - 50 * + 70 AS col1
----
-42
-63000

query I rowsort
SELECT 74 + 85
----
159

query I rowsort
SELECT ALL - 95 - - - 78 AS col1
----
-173

query I rowsort
SELECT + 74 + - - 99 + - ( + 72 ) + - 91 AS col0
----
10

query I rowsort
SELECT - + ( + 24 ) AS col0
----
-24

query I rowsort
SELECT DISTINCT + + 22 * + 66 AS col1
----
1452

query I rowsort
SELECT 64 + + 4 AS col1
----
68

query II rowsort
SELECT + + 8 AS col0, 37
----
8
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL - MAX( NULLIF ( - 3, + 77 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL - MAX ( NULLIF ( - 3, + 77 ) ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT 0 * + 95 - + ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7059
SELECT 0 * + 95 - + ( - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7060
SELECT ALL - ( + + 17 ) + - COALESCE ( - 17, 85 * MAX( ALL - 4 ) + - 59 * 95 DIV + 65 + - + 93 * + + COUNT( * ) + + 41 * + 14, + 79 ) * + + 4 - 86 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL - ( + + 17 ) + - COALESCE ( - 17, 85 * MAX ( ALL - 4 ) + - 59 * 95 / + 65 + - + 93 * + + COUNT ( * ) + + 41 * + 14, + 79 ) * + + 4 - 86 AS col2
----
-35

query I rowsort
SELECT ALL - + COALESCE ( + 42, + 21 ) AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7062
SELECT DISTINCT + + 4 DIV + + NULLIF ( 89, - - MIN( ALL 9 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT + + 4 / + + NULLIF ( 89, - - MIN ( ALL 9 ) )
----
0

query I rowsort
SELECT ALL + ( + 29 ) + - 4
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT COUNT( * ) - 95 + + + 95 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7064
SELECT COUNT ( * ) - 95 + + + 95 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT COUNT( * ) * + 29 - MIN( DISTINCT - - 43 )
----
-14

skipif mysql # not compatible
query I rowsort label-7065
SELECT COUNT ( * ) * + 29 - MIN ( DISTINCT - - 43 )
----
-14

query I rowsort
SELECT ALL 90 + 59
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT COUNT( * ) * + + COUNT( * ) * + - 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7067
SELECT COUNT ( * ) * + + COUNT ( * ) * + - 19 AS col0
----
-19

query I rowsort
SELECT - 62 * 45 + 49 AS col1
----
-2741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7069
SELECT ALL 12 + + CAST( - + 12 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL 12 + + CAST ( - + 12 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7070
SELECT NULLIF ( - 88, + + 78 + - NULLIF ( + + COUNT( * ), + CAST( + - 25 AS SIGNED ) ) * + MAX( ALL - 64 ) ) + 28
----
-60

skipif mysql # not compatible
query I rowsort label-7070
SELECT NULLIF ( - 88, + + 78 + - NULLIF ( + + COUNT ( * ), + CAST ( + - 25 AS INTEGER ) ) * + MAX ( ALL - 64 ) ) + 28
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT COUNT( DISTINCT - 13 ) + - - 59 + + 78 + + 6 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-7071
SELECT COUNT ( DISTINCT - 13 ) + - - 59 + + 78 + + 6 AS col1
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7072
SELECT ( - 62 ) * 83 * - - 41 AS col2, ( - COUNT( * ) ) * + CAST( - + 42 AS SIGNED )
----
-210986
42

skipif mysql # not compatible
query II rowsort label-7072
SELECT ( - 62 ) * 83 * - - 41 AS col2, ( - COUNT ( * ) ) * + CAST ( - + 42 AS INTEGER )
----
-210986
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT CAST( 52 AS SIGNED ) + + 16 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7073
SELECT CAST ( 52 AS INTEGER ) + + 16 AS col0
----
68

query I rowsort
SELECT 77 * + 66
----
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL + NULLIF ( + + 9, - COUNT( * ) ) - + - 55
----
64

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + NULLIF ( + + 9, - COUNT ( * ) ) - + - 55
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT DISTINCT CAST( 44 AS SIGNED ) * - 58
----
-2552

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT CAST ( 44 AS INTEGER ) * - 58
----
-2552

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT - 25 - 36 DIV 39
----
-25

skipif mysql # not compatible
query I rowsort label-7077
SELECT - 25 - 36 / 39
----
-25

query I rowsort
SELECT 0 * ( + + 19 )
----
0

query I rowsort
SELECT ALL 99 * 84 AS col0
----
8316

query II rowsort
SELECT 76 + 93, - 70 AS col1
----
169
-70

query I rowsort
SELECT + 65 + - + 55 AS col1
----
10

query I rowsort
SELECT 10 + 34 + 82
----
126

query I rowsort
SELECT ALL - 80 + 79 + - - CASE + 13 WHEN + + 73 THEN NULL ELSE + - 36 END + + 41 * 31 col2
----
1234

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT DISTINCT + 93 * - 16 - - 2 + - 77 DIV - 66 + + + ( 25 )
----
-1460

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT + 93 * - 16 - - 2 + - 77 / - 66 + + + ( 25 )
----
-1460

query I rowsort
SELECT DISTINCT - + CASE - 36 WHEN - 50 * + - 91 THEN NULL WHEN + - 51 THEN NULL ELSE + 96 END
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL + 50 * - + COUNT( * ) - SUM( - 65 ) + COUNT( * ) * + 17 * - + 55 + + 38 col1
----
-882

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL + 50 * - + COUNT ( * ) - SUM ( - 65 ) + COUNT ( * ) * + 17 * - + 55 + + 38 col1
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT 43 + + - SUM( ALL + + 80 ) * + ( - 84 ) + + ( + + 77 )
----
6840

skipif mysql # not compatible
query I rowsort label-7087
SELECT 43 + + - SUM ( ALL + + 80 ) * + ( - 84 ) + + ( + + 77 )
----
6840

query I rowsort
SELECT 23 * - - 22 AS col2
----
506

query I rowsort
SELECT 59 * - - 90 AS col0
----
5310

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT ALL - 94 AS col2, COUNT( * ) AS col2
----
-94
1

skipif mysql # not compatible
query II rowsort label-7090
SELECT ALL - 94 AS col2, COUNT ( * ) AS col2
----
-94
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7091
SELECT ALL - 2 * COALESCE ( 1, - COUNT( * ), - 82 * + + 29 ) * COUNT( * ) DIV - COUNT( * ) DIV - - COUNT( * ) + + 63
----
65

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL - 2 * COALESCE ( 1, - COUNT ( * ), - 82 * + + 29 ) * COUNT ( * ) / - COUNT ( * ) / - - COUNT ( * ) + + 63
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT + SUM( ALL - ( - 95 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7092
SELECT + SUM ( ALL - ( - 95 ) ) AS col2
----
95

query II rowsort
SELECT DISTINCT - 71, + 1 AS col1
----
-71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL 36 * COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL 36 * COUNT ( * ) AS col1
----
36

query I rowsort
SELECT - 42 * 18
----
-756

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7096
SELECT ALL - MAX( 60 ) / - 93 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL - MAX ( 60 ) / - 93 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 71 * - 70 AS col2
----
-4970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7098
SELECT 67 * - AVG ( + ( ( CAST( NULL AS SIGNED ) ) ) ) + + - 38 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT 67 * - AVG ( + ( ( CAST ( NULL AS INTEGER ) ) ) ) + + - 38 col1
----
NULL

query I rowsort
SELECT ALL + 77 * + 90 * + 17 AS col1
----
117810

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT - MIN( DISTINCT 93 ) * 2 * + + 4 AS col0
----
-744

skipif mysql # not compatible
query I rowsort label-7100
SELECT - MIN ( DISTINCT 93 ) * 2 * + + 4 AS col0
----
-744

query II rowsort
SELECT + ( - 24 ) - - - COALESCE ( + 3, 75 ) col2, + 48 * + 37 AS col0
----
-27
1776

query I rowsort
SELECT DISTINCT NULLIF ( + 35, - ( - + 36 ) )
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7103
SELECT DISTINCT - MAX( ALL - 23 ) * 33 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT - MAX ( ALL - 23 ) * 33 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL - COUNT( * ) * + + 49
----
-49

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL - COUNT ( * ) * + + 49
----
-49

query I rowsort
SELECT - COALESCE ( + 36, + 32 ) col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT ALL - 1 DIV + 75 * + - 27
----
0

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - 1 / + 75 * + - 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7107
SELECT + - COUNT( DISTINCT + + 59 ) DIV 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7107
SELECT + - COUNT ( DISTINCT + + 59 ) / 16 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7108
SELECT - + 15 * + ( - - 3 ) + - MIN( ALL + - CAST( NULL AS DECIMAL ) ) * - MIN( DISTINCT + - 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7108
SELECT - + 15 * + ( - - 3 ) + - MIN ( ALL + - CAST ( NULL AS REAL ) ) * - MIN ( DISTINCT + - 38 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT ALL - 9 + COUNT( * ) + - 50 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL - 9 + COUNT ( * ) + - 50 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT - MAX( DISTINCT 63 ) + - - 60
----
-3

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT - MAX ( DISTINCT 63 ) + - - 60
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT ALL - ( + 0 ) * + + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - ( + 0 ) * + + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7112
SELECT DISTINCT + CAST( - AVG ( ALL 53 ) AS SIGNED ) + - 63
----
-116

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT + CAST ( - AVG ( ALL 53 ) AS INTEGER ) + - 63
----
-116

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7113
SELECT ALL - + 79 + - 26 + + + 44, - CAST( NULL AS DECIMAL ) * 13 AS col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-7113
SELECT ALL - + 79 + - 26 + + + 44, - CAST ( NULL AS REAL ) * 13 AS col1
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT - COALESCE ( + 93, 51 + - MIN( - NULLIF ( - - 85, + ( 1 ) ) ) * - 80 + - 54 + + 27 ) * + 91 * + CASE + 80 WHEN COUNT( * ) + + 82 THEN NULL WHEN ( 59 ) + + 27 / - SUM( + 73 ) THEN 73 ELSE + 8 + 73 END
----
-685503

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - COALESCE ( + 93, 51 + - MIN ( - NULLIF ( - - 85, + ( 1 ) ) ) * - 80 + - 54 + + 27 ) * + 91 * + CASE + 80 WHEN COUNT ( * ) + + 82 THEN NULL WHEN ( 59 ) + + 27 / - SUM ( + 73 ) THEN 73 ELSE + 8 + 73 END
----
-685503

query I rowsort
SELECT ALL 99 + + 2 AS col2
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7116
SELECT DISTINCT CAST( + - 28 AS SIGNED ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT CAST ( + - 28 AS INTEGER ) AS col1
----
-28

query I rowsort
SELECT - - 88 * 37 - - - 79
----
3177

query I rowsort
SELECT ( + + 7 )
----
7

query I rowsort
SELECT ( + + ( 92 ) )
----
92

query I rowsort
SELECT + 72 - + 7
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ( - + CASE - ( + 8 ) WHEN + 87 THEN + 38 * - 75 ELSE - 9 * + COALESCE ( - + ( - - 82 ), - ( - COUNT( * ) ) * + - 62 ) * + 35 + + 72 + - 61 END ) AS col1
----
-25841

skipif mysql # not compatible
query I rowsort label-7121
SELECT ( - + CASE - ( + 8 ) WHEN + 87 THEN + 38 * - 75 ELSE - 9 * + COALESCE ( - + ( - - 82 ), - ( - COUNT ( * ) ) * + - 62 ) * + 35 + + 72 + - 61 END ) AS col1
----
-25841

query II rowsort
SELECT ALL + 97, - 51 AS col2
----
97
-51

query II rowsort
SELECT ALL + 80 * - + 92 * + - 30 - 60 AS col1, 49
----
220740
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT - 16 DIV 25 + + 69
----
69

skipif mysql # not compatible
query I rowsort label-7124
SELECT - 16 / 25 + + 69
----
69

query I rowsort
SELECT ALL + NULLIF ( - 30, - 78 ) AS col1
----
-30

query I rowsort
SELECT ALL 7 * - CASE 50 WHEN 96 THEN + + 69 + + 39 + 86 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 98 * - 22 * - 1 - 98 col0
----
2058

query II rowsort
SELECT ALL + 29, + 67 * + 89 col2
----
29
5963

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7129
SELECT + CAST( - - 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-7129
SELECT + CAST ( - - 2 AS INTEGER )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT COALESCE ( 20, + 89 DIV + ( + 51 ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7130
SELECT COALESCE ( 20, + 89 / + ( + 51 ) ) AS col2
----
20

query I rowsort
SELECT - 82 * 23 AS col0
----
-1886

query I rowsort
SELECT - 88 * - 24 col2
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + COUNT( ALL 33 )
----
1

skipif mysql # not compatible
query I rowsort label-7133
SELECT + COUNT ( ALL 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT 82 * 64 + + 44 - - 3 + + 36 * - 58 + MAX( - 2 )
----
3205

skipif mysql # not compatible
query I rowsort label-7134
SELECT 82 * 64 + + 44 - - 3 + + 36 * - 58 + MAX ( - 2 )
----
3205

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL - 14 * - + CASE - + 55 WHEN - + 25 / - 66 THEN NULL ELSE - COUNT( * ) * - + 80 * 67 END + + - MAX( DISTINCT + - 73 ) AS col2
----
75113

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - 14 * - + CASE - + 55 WHEN - + 25 / - 66 THEN NULL ELSE - COUNT ( * ) * - + 80 * 67 END + + - MAX ( DISTINCT + - 73 ) AS col2
----
75113

query II rowsort
SELECT ALL - 26 AS col1, - 67 AS col0
----
-26
-67

query I rowsort
SELECT + 20 * - 54
----
-1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7138
SELECT + CASE + 17 WHEN 31 THEN + + ( - ( + + CAST( - COUNT( * ) AS SIGNED ) ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT + CASE + 17 WHEN 31 THEN + + ( - ( + + CAST ( - COUNT ( * ) AS INTEGER ) ) ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT - 34 AS col2, 15 AS col0
----
-34
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT - ( - COUNT( * ) ) + + + 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7140
SELECT - ( - COUNT ( * ) ) + + + 52 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT DISTINCT - ( CAST( 93 AS SIGNED ) )
----
-93

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT - ( CAST ( 93 AS INTEGER ) )
----
-93

query I rowsort
SELECT DISTINCT - NULLIF ( + - 2, 39 * - 2 + - + 24 * + 51 ) * - 96 AS col2
----
-192

query I rowsort
SELECT ALL + ( + - 99 ) + 67 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL MIN( + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL MIN ( + 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7145
SELECT + + 83 + - CASE 7 WHEN + - 35 * + + 95 THEN NULL WHEN + + 73 + 89 + 88 * + CAST( NULL AS SIGNED ) + - 86 / 55 * 6 * + 48 / + + AVG ( + - 97 ) THEN ( - 62 ) END AS col0, CAST( COUNT( DISTINCT 2 ) AS SIGNED )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7145
SELECT + + 83 + - CASE 7 WHEN + - 35 * + + 95 THEN NULL WHEN + + 73 + 89 + 88 * + CAST ( NULL AS INTEGER ) + - 86 / 55 * 6 * + 48 / + + AVG ( + - 97 ) THEN ( - 62 ) END AS col0, CAST ( COUNT ( DISTINCT 2 ) AS INTEGER )
----
NULL
1

query I rowsort
SELECT ALL - - ( - 55 ) + + - 44
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT + - 98 + + SUM( ALL + + 38 )
----
-60

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT + - 98 + + SUM ( ALL + + 38 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7148
SELECT CAST( - - 63 AS SIGNED ) AS col2, - 87 col2
----
63
-87

skipif mysql # not compatible
query II rowsort label-7148
SELECT CAST ( - - 63 AS INTEGER ) AS col2, - 87 col2
----
63
-87

query I rowsort
SELECT ALL - 98 + - 31 * + 38 * 25 AS col2
----
-29548

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + + 92 + MAX( + + 43 ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-7150
SELECT + + 92 + MAX ( + + 43 ) AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL 6 + + ( + SUM( DISTINCT - - 95 ) ) * 7 AS col1
----
671

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL 6 + + ( + SUM ( DISTINCT - - 95 ) ) * 7 AS col1
----
671

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7152
SELECT - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7153
SELECT CASE + + CAST( + COUNT( * ) AS SIGNED ) WHEN - 81 * 35 - - 57 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT CASE + + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 81 * 35 - - 57 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + MIN( ALL + 3 ) + 80
----
83

skipif mysql # not compatible
query I rowsort label-7154
SELECT + MIN ( ALL + 3 ) + 80
----
83

query I rowsort
SELECT ALL ( 4 ) - + + 31 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT + COUNT( * ) + + - 34 + - 55 * + 12 AS col0
----
-693

skipif mysql # not compatible
query I rowsort label-7156
SELECT + COUNT ( * ) + + - 34 + - 55 * + 12 AS col0
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT - - SUM( 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7157
SELECT - - SUM ( 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7158
SELECT + COUNT( * ) + 70 AS col0, + CASE COUNT( * ) WHEN + MAX( ALL + + 59 ) * + 80 * - 76 + + 38 THEN - + 70 / + 34 + - 25 + - 93 WHEN - ( + COUNT( * ) ) + 50 THEN NULL END
----
71
NULL

skipif mysql # not compatible
query II rowsort label-7158
SELECT + COUNT ( * ) + 70 AS col0, + CASE COUNT ( * ) WHEN + MAX ( ALL + + 59 ) * + 80 * - 76 + + 38 THEN - + 70 / + 34 + - 25 + - 93 WHEN - ( + COUNT ( * ) ) + 50 THEN NULL END
----
71
NULL

query I rowsort
SELECT + 49 + + 62 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT CASE - 16 WHEN + 22 * ( NULLIF ( + 91, - MAX( - 4 ) + + + 81 + - 67 - - - 86 * 3 + - 92 + ( - ( 88 ) ) + - 4 / + 45 ) ) * - CASE + 59 WHEN - - COUNT( * ) - + 25 THEN 96 WHEN - 31 THEN - 47 ELSE - + NULLIF ( + 60, + 63 + - - 4 + - COUNT( * ) * + 17 * - - COUNT( DISTINCT + 75 ) * 40 ) END + 89 THEN NULL WHEN - COUNT( * ) * 34 THEN - ( 54 ) ELSE - 52 END * COUNT( * ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-7160
SELECT CASE - 16 WHEN + 22 * ( NULLIF ( + 91, - MAX ( - 4 ) + + + 81 + - 67 - - - 86 * 3 + - 92 + ( - ( 88 ) ) + - 4 / + 45 ) ) * - CASE + 59 WHEN - - COUNT ( * ) - + 25 THEN 96 WHEN - 31 THEN - 47 ELSE - + NULLIF ( + 60, + 63 + - - 4 + - COUNT ( * ) * + 17 * - - COUNT ( DISTINCT + 75 ) * 40 ) END + 89 THEN NULL WHEN - COUNT ( * ) * 34 THEN - ( 54 ) ELSE - 52 END * COUNT ( * ) col1
----
-52

query II rowsort
SELECT DISTINCT 66 - - 19 AS col1, 87 AS col1
----
85
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7162
SELECT ( - 44 ) DIV - + 67 + MIN( DISTINCT 32 ) + - COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7162
SELECT ( - 44 ) / - + 67 + MIN ( DISTINCT 32 ) + - COUNT ( * ) AS col0
----
31

query I rowsort
SELECT 39 * 83
----
3237

query I rowsort
SELECT 93 * + 35
----
3255

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT DISTINCT - COUNT( * ) * + + COALESCE ( - 82, - 31 * - 66 )
----
82

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT - COUNT ( * ) * + + COALESCE ( - 82, - 31 * - 66 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL - NULLIF ( + + ( + ( - SUM( + + 93 ) ) ), + 90 )
----
93

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL - NULLIF ( + + ( + ( - SUM ( + + 93 ) ) ), + 90 )
----
93

query I rowsort
SELECT 83 * + 68 * + 88 * + - 16 AS col2
----
-7946752

query I rowsort
SELECT ALL - 5 + + 7
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT DISTINCT 52 * + COUNT( * ) AS col2, + 57 * - 40
----
52
-2280

skipif mysql # not compatible
query II rowsort label-7169
SELECT DISTINCT 52 * + COUNT ( * ) AS col2, + 57 * - 40
----
52
-2280

query I rowsort
SELECT ALL - NULLIF ( + 66, - - 34 ) col1
----
-66

query I rowsort
SELECT + + ( - 81 ) AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT ALL + + CAST( NULL AS SIGNED ) + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + + CAST ( NULL AS INTEGER ) + + 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT SUM( + 53 ) AS col1, 65 AS col0
----
53
65

skipif mysql # not compatible
query II rowsort label-7173
SELECT SUM ( + 53 ) AS col1, 65 AS col0
----
53
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7174
SELECT ALL - + NULLIF ( - 85, - COUNT( * ) / + COUNT( * ) ) + + CAST( + 76 AS SIGNED ) AS col2
----
161

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL - + NULLIF ( - 85, - COUNT ( * ) / + COUNT ( * ) ) + + CAST ( + 76 AS INTEGER ) AS col2
----
161

query I rowsort
SELECT 85 * 20
----
1700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7176
SELECT DISTINCT + - ( + ( - - CAST( + 38 AS SIGNED ) ) ) DIV - - 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT + - ( + ( - - CAST ( + 38 AS INTEGER ) ) ) / - - 82 AS col1
----
0

query II rowsort
SELECT + 25 * + + 40 AS col1, 85 AS col1
----
1000
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7178
SELECT CASE + + 86 WHEN + 25 THEN CAST( NULL AS SIGNED ) * + - 20 + + 30 + + - 37 + + 11 + + ( - COALESCE ( 14, - 21 * + 32 + - COUNT( * ) + - 58 * + + 49, - ( COUNT( CAST( + 81 AS SIGNED ) ) ) ) ) * + 16 * - 94 END - MAX( + 59 ) * - 88 + + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT CASE + + 86 WHEN + 25 THEN CAST ( NULL AS INTEGER ) * + - 20 + + 30 + + - 37 + + 11 + + ( - COALESCE ( 14, - 21 * + 32 + - COUNT ( * ) + - 58 * + + 49, - ( COUNT ( CAST ( + 81 AS INTEGER ) ) ) ) ) * + 16 * - 94 END - MAX ( + 59 ) * - 88 + + + 38
----
NULL

query II rowsort
SELECT 10 * + 56 AS col2, 82
----
560
82

query I rowsort
SELECT - CASE 29 WHEN + ( + 40 ) THEN + 37 * - 45 WHEN - 32 * 96 THEN + 97 * + 16 END
----
NULL

query I rowsort
SELECT ALL - 80 * - - 18 AS col1
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT SUM( DISTINCT + 91 ) * 18 * - 37
----
-60606

skipif mysql # not compatible
query I rowsort label-7182
SELECT SUM ( DISTINCT + 91 ) * 18 * - 37
----
-60606

query I rowsort
SELECT 39 * - 67
----
-2613

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT CASE - + 11 WHEN - - 18 * 0 THEN NULL WHEN - SUM( DISTINCT - - 64 ) + + 68 THEN - 35 END * - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT CASE - + 11 WHEN - - 18 * 0 THEN NULL WHEN - SUM ( DISTINCT - - 64 ) + + 68 THEN - 35 END * - - 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7185
SELECT ALL 53 * + ( + + COUNT( ALL - 59 ) ) AS col2, - 1
----
53
-1

skipif mysql # not compatible
query II rowsort label-7185
SELECT ALL 53 * + ( + + COUNT ( ALL - 59 ) ) AS col2, - 1
----
53
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7186
SELECT DISTINCT + 36 DIV 33 * - 68
----
-68

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT + 36 / 33 * - 68
----
-68

query II rowsort
SELECT + 29 AS col0, + COALESCE ( - - 86, 76 * + 71, - + 91, 33 )
----
29
86

query I rowsort
SELECT DISTINCT - 73 + 85
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL 11 * COUNT( * ) col2
----
11

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL 11 * COUNT ( * ) col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT - 19 * 98 * + 81 + - + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + CAST( + + 79 AS SIGNED ) END * 59
----
-155483

skipif mysql # not compatible
query I rowsort label-7190
SELECT - 19 * 98 * + 81 + - + CASE WHEN NOT NULL IS NULL THEN NULL ELSE + CAST ( + + 79 AS INTEGER ) END * 59
----
-155483

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT COALESCE ( 34, + - CASE - 94 WHEN - 7 / - + 27 * 67 THEN - + 86 WHEN NULLIF ( - - 76, + 93 ) * + MAX( DISTINCT - ( ( - 13 ) ) ) THEN - 79 + + 7 + + 27 * + 41 END ) + + ( + + 92 )
----
126

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT COALESCE ( 34, + - CASE - 94 WHEN - 7 / - + 27 * 67 THEN - + 86 WHEN NULLIF ( - - 76, + 93 ) * + MAX ( DISTINCT - ( ( - 13 ) ) ) THEN - 79 + + 7 + + 27 * + 41 END ) + + ( + + 92 )
----
126

query I rowsort
SELECT 0 + + - 2
----
-2

query II rowsort
SELECT + 79, - 1 * + 37 - 78 AS col2
----
79
-115

query I rowsort
SELECT DISTINCT ( 70 ) + 27 AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT ALL 39 + 76 + - 73 DIV 86 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL 39 + 76 + - 73 / 86 AS col2
----
115

query I rowsort
SELECT ALL + 53 + - 11 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT - MIN( ALL + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT - MIN ( ALL + 66 )
----
-66

query I rowsort
SELECT ALL + 72 - 20 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7199
SELECT ALL 66 * + COUNT( DISTINCT + CAST( + 11 AS SIGNED ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL 66 * + COUNT ( DISTINCT + CAST ( + 11 AS INTEGER ) ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT - COALESCE ( - 0, - 1 * - COUNT( * ) * + 70 * - + 20 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT - COALESCE ( - 0, - 1 * - COUNT ( * ) * + 70 * - + 20 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - 9 + + COUNT( * ) - + 59 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7201
SELECT - 9 + + COUNT ( * ) - + 59 AS col2
----
-67

query I rowsort
SELECT 48 * - 40 AS col1
----
-1920

query II rowsort
SELECT 55, 23 + + 56 + + + 17 AS col2
----
55
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7204
SELECT - - 15 + SUM( + - 2 ) DIV + - 90 AS col0, 67
----
15
67

skipif mysql # not compatible
query II rowsort label-7204
SELECT - - 15 + SUM ( + - 2 ) / + - 90 AS col0, 67
----
15
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT ALL + - 18 DIV + ( - ( + + 5 ) ) + 95 - - - 17 * - 98 - - 28 + - 67
----
1725

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL + - 18 / + ( - ( + + 5 ) ) + 95 - - - 17 * - 98 - - 28 + - 67
----
1725

query I rowsort
SELECT - + ( - - 59 ) + 46
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT - 76 - - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT - 76 - - COUNT ( * )
----
-75

query I rowsort
SELECT ALL NULLIF ( + NULLIF ( + 94, + - 79 ), 16 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT - COUNT( * ) + - MAX( ALL - ( 62 ) )
----
61

skipif mysql # not compatible
query I rowsort label-7209
SELECT - COUNT ( * ) + - MAX ( ALL - ( 62 ) )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT ALL - CAST( NULL AS SIGNED ) / 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - CAST ( NULL AS INTEGER ) / 26 col0
----
NULL

query I rowsort
SELECT + 90 * - 27 * 0 * - - 10 * 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT - 95 + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-7212
SELECT - 95 + - COUNT ( * )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT - 7 DIV + + 32 * - 84
----
0

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 7 / + + 32 * - 84
----
0

query I rowsort
SELECT - 48 + - 46 + + 52 AS col2
----
-42

query I rowsort
SELECT DISTINCT + 31 * + 53 AS col0
----
1643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7216
SELECT ALL NULLIF ( 3, + 96 * 54 * - + COALESCE ( + COALESCE ( + COUNT( * ), + COALESCE ( 99, COALESCE ( + + NULLIF ( 78, + 7 + + 72 ), + 22, 37 ) * 35 * + 26 * - 31 ) ), + 40 * + COUNT( * ) ) - + CAST( NULL AS SIGNED ) ) AS col2, - 69 * - + 73 * + - 81 * - + 52 AS col2
----
3
21215844

skipif mysql # not compatible
query II rowsort label-7216
SELECT ALL NULLIF ( 3, + 96 * 54 * - + COALESCE ( + COALESCE ( + COUNT ( * ), + COALESCE ( 99, COALESCE ( + + NULLIF ( 78, + 7 + + 72 ), + 22, 37 ) * 35 * + 26 * - 31 ) ), + 40 * + COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) ) AS col2, - 69 * - + 73 * + - 81 * - + 52 AS col2
----
3
21215844

query I rowsort
SELECT DISTINCT - 4 + 93 - + 72 AS col0
----
17

query I rowsort
SELECT DISTINCT + 32 * + - ( + - 13 )
----
416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7219
SELECT - ( COUNT( * ) ) * + - 54 DIV + NULLIF ( - 70, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7219
SELECT - ( COUNT ( * ) ) * + - 54 / + NULLIF ( - 70, COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT + COUNT( - + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-7220
SELECT + COUNT ( - + 14 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7221
SELECT NULLIF ( - COUNT( * ), - - 61 / - + 19 + COUNT( * ) ) AS col1, - NULLIF ( - 96, - 57 * CASE 46 WHEN - 34 * COUNT( * ) * + 74 * + NULLIF ( COALESCE ( + - 4, 11 ), + - 84 ) * + COUNT( * ) + - - 65 + 65 + + + 4 * - COUNT( * ) * 79 + + - 86 + 25 + - CASE + - 64 WHEN - + MIN( ALL + + 23 ) THEN + + 2 WHEN - 51 / - 61 THEN + - 92 ELSE NULL END THEN COUNT( * ) + 97 * - 67 WHEN - 51 THEN - CAST( NULLIF ( - 86, 83 ) AS SIGNED ) END ) + 49 AS col1
----
-1
145

skipif mysql # not compatible
query II rowsort label-7221
SELECT NULLIF ( - COUNT ( * ), - - 61 / - + 19 + COUNT ( * ) ) AS col1, - NULLIF ( - 96, - 57 * CASE 46 WHEN - 34 * COUNT ( * ) * + 74 * + NULLIF ( COALESCE ( + - 4, 11 ), + - 84 ) * + COUNT ( * ) + - - 65 + 65 + + + 4 * - COUNT ( * ) * 79 + + - 86 + 25 + - CASE + - 64 WHEN - + MIN ( ALL + + 23 ) THEN + + 2 WHEN - 51 / - 61 THEN + - 92 ELSE NULL END THEN COUNT ( * ) + 97 * - 67 WHEN - 51 THEN - CAST ( NULLIF ( - 86, 83 ) AS INTEGER ) END ) + 49 AS col1
----
-1
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7222
SELECT CASE + 8 WHEN - + COUNT( ALL 69 ) THEN - 95 WHEN CAST( + 66 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT CASE + 8 WHEN - + COUNT ( ALL 69 ) THEN - 95 WHEN CAST ( + 66 AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT NULLIF ( - MIN( 1 ), + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7223
SELECT NULLIF ( - MIN ( 1 ), + ( COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT - ( + CAST( NULL AS SIGNED ) ) / + COALESCE ( - + 95, - 0 ) - + 54 + + 69 - 3 * + + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT - ( + CAST ( NULL AS INTEGER ) ) / + COALESCE ( - + 95, - 0 ) - + 54 + + 69 - 3 * + + 27 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7225
SELECT CASE - + 29 WHEN 10 THEN - SUM( - 5 ) * 74 + 77 + + + 90 WHEN 52 THEN NULL END, + CAST( NULL AS SIGNED ) * + + 46
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7225
SELECT CASE - + 29 WHEN 10 THEN - SUM ( - 5 ) * 74 + 77 + + + 90 WHEN 52 THEN NULL END, + CAST ( NULL AS INTEGER ) * + + 46
----
NULL
NULL

query I rowsort
SELECT DISTINCT 65 * + 80 + + 93
----
5293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT + - 58 * - 47 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT + - 58 * - 47 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 93 * + 32 + + - 16
----
2960

query I rowsort
SELECT ALL 66 * - 88 - + 52 * - 74 AS col1
----
-1960

onlyif mysql # aggregate syntax: 
query II rowsort label-7230
SELECT DISTINCT - 23 * 4 AS col1, + NULLIF ( - - 35, - COUNT( * ) )
----
-92
35

skipif mysql # not compatible
query II rowsort label-7230
SELECT DISTINCT - 23 * 4 AS col1, + NULLIF ( - - 35, - COUNT ( * ) )
----
-92
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL + 93 * 55 - - - MAX( + 14 ) + + 83 * + COUNT( * ) AS col2
----
5184

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL + 93 * 55 - - - MAX ( + 14 ) + + 83 * + COUNT ( * ) AS col2
----
5184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7232
SELECT + MAX( ALL + 16 ) * 0 DIV 97 col2, + 65 AS col1
----
0
65

skipif mysql # not compatible
query II rowsort label-7232
SELECT + MAX ( ALL + 16 ) * 0 / 97 col2, + 65 AS col1
----
0
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7233
SELECT - 49 * + COUNT( ALL 79 ) + + 64 + + - 96 + 11 DIV - - 45 * + + 64 + - - 73 + + 77 + + 9
----
78

skipif mysql # not compatible
query I rowsort label-7233
SELECT - 49 * + COUNT ( ALL 79 ) + + 64 + + - 96 + 11 / - - 45 * + + 64 + - - 73 + + 77 + + 9
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL + - NULLIF ( - 89, - CASE + + 88 WHEN MIN( ALL - - 25 ) + - + 75 * - 12 THEN - + 64 WHEN - 66 THEN + + 61 - CASE - + COUNT( ALL + + 4 ) WHEN + + ( - + 16 ) * 63 + - - 22 THEN NULL ELSE + + 41 + - 43 END END ) * + - 35 + 7 * - 41 - COUNT( * )
----
-3403

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL + - NULLIF ( - 89, - CASE + + 88 WHEN MIN ( ALL - - 25 ) + - + 75 * - 12 THEN - + 64 WHEN - 66 THEN + + 61 - CASE - + COUNT ( ALL + + 4 ) WHEN + + ( - + 16 ) * 63 + - - 22 THEN NULL ELSE + + 41 + - 43 END END ) * + - 35 + 7 * - 41 - COUNT ( * )
----
-3403

query I rowsort
SELECT ( ( - 44 ) )
----
-44

query I rowsort
SELECT DISTINCT - 16 * + 74
----
-1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7237
SELECT ALL MAX( + CAST( + - 91 AS SIGNED ) ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL MAX ( + CAST ( + - 91 AS INTEGER ) ) col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT + CAST( + + 1 AS SIGNED ) * - 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7238
SELECT + CAST ( + + 1 AS INTEGER ) * - 27 AS col2
----
-27

query I rowsort
SELECT - NULLIF ( + 80, - 82 ) AS col2
----
-80

query I rowsort
SELECT DISTINCT + 67 * - ( + 20 )
----
-1340

query II rowsort
SELECT - NULLIF ( - 60, + + 74 ) AS col1, 71
----
60
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + 66 * + + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7242
SELECT + 66 * + + COUNT ( * ) AS col0
----
66

query I rowsort
SELECT - 72 * + - 33 AS col0
----
2376

query I rowsort
SELECT + 84 - + ( + + 98 ) AS col0
----
-14

query II rowsort
SELECT - ( - ( - + 26 ) ), 97 AS col1
----
-26
97

query II rowsort
SELECT 18 AS col2, 2 + - 45 AS col1
----
18
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT DISTINCT CASE 2 WHEN - 14 * + 87 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT CASE 2 WHEN - 14 * + 87 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 90 + 88 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7249
SELECT ALL 42 + - + COUNT( * ) + + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL 42 + - + COUNT ( * ) + + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT DISTINCT - COUNT( - 78 ) + - + 60
----
-61

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT - COUNT ( - 78 ) + - + 60
----
-61

query I rowsort
SELECT - 6 - - + 51
----
45

query II rowsort
SELECT + CASE WHEN - 92 NOT IN ( - + 57 ) THEN CASE + 36 WHEN - 24 THEN - - 10 * + + 39 END END + 65, + 10 AS col2
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT ALL + COUNT( * ) + + 22 + + 55 * + 52 AS col1
----
2883

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL + COUNT ( * ) + + 22 + + 55 * + 52 AS col1
----
2883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7254
SELECT DISTINCT + 1 * - - 37 * + + 13 * - + CAST( NULL AS SIGNED ) * + 42 * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT + 1 * - - 37 * + + 13 * - + CAST ( NULL AS INTEGER ) * + 42 * + - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT + COUNT( + 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT + COUNT ( + 82 ) AS col1
----
1

query I rowsort
SELECT + 11 * - - 96 + ( 62 ) AS col0
----
1118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7257
SELECT CAST( NULL AS SIGNED ) AS col2, + 34 AS col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-7257
SELECT CAST ( NULL AS INTEGER ) AS col2, + 34 AS col0
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL + MAX( ALL - - 9 ) * + 4 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + MAX ( ALL - - 9 ) * + 4 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT 92 DIV NULLIF ( - - 74, - + 93 ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-7259
SELECT 92 / NULLIF ( - - 74, - + 93 ) + - 74
----
-73

query I rowsort
SELECT DISTINCT + 27 * + 8 AS col2
----
216

query I rowsort
SELECT - 42 + + + 23 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT - + COUNT( * ) * - 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7262
SELECT - + COUNT ( * ) * - 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL - 94 * + SUM( ALL + - 72 ) col1
----
6768

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - 94 * + SUM ( ALL + - 72 ) col1
----
6768

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7264
SELECT + COUNT( * ) * - 93 + 94 * 31 DIV 18 * + 84 * + 79 + - + 72, + 29 AS col2
----
1068231
29

skipif mysql # not compatible
query II rowsort label-7264
SELECT + COUNT ( * ) * - 93 + 94 * 31 / 18 * + 84 * + 79 + - + 72, + 29 AS col2
----
1068231
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7265
SELECT - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * 48 + NULLIF ( + 27, - NULLIF ( + CAST( 63 AS SIGNED ), - + 20 * 86 - + - COUNT( ( + 99 ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * 48 + NULLIF ( + 27, - NULLIF ( + CAST ( 63 AS INTEGER ), - + 20 * 86 - + - COUNT ( ( + 99 ) ) ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7266
SELECT ALL + + 29 DIV 70 - - + 37, - 85 + + 39 + + COALESCE ( + - 73, + 80 + + 33, + 28 * + + 43 + - 78 + + + COALESCE ( 38, + - 93 * - ( + 89 ) ) + 37 * - + 64 ) AS col2
----
37
-119

skipif mysql # not compatible
query II rowsort label-7266
SELECT ALL + + 29 / 70 - - + 37, - 85 + + 39 + + COALESCE ( + - 73, + 80 + + 33, + 28 * + + 43 + - 78 + + + COALESCE ( 38, + - 93 * - ( + 89 ) ) + 37 * - + 64 ) AS col2
----
37
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-7267
SELECT DISTINCT - + 76 DIV + 53
----
-1

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT - + 76 / + 53
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7268
SELECT - 40 - + COUNT( + 27 ) col1, 4 + + 92 - 50 + - 49 + + 35 DIV + + 19 + 74 DIV + 96 * COUNT( * ) AS col2
----
-41
-2

skipif mysql # not compatible
query II rowsort label-7268
SELECT - 40 - + COUNT ( + 27 ) col1, 4 + + 92 - 50 + - 49 + + 35 / + + 19 + 74 / + 96 * COUNT ( * ) AS col2
----
-41
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT - 44 + - COALESCE ( 78, + + 75 ) + + - MAX( ALL - 11 ) * + 23
----
131

skipif mysql # not compatible
query I rowsort label-7269
SELECT - 44 + - COALESCE ( 78, + + 75 ) + + - MAX ( ALL - 11 ) * + 23
----
131

query I rowsort
SELECT - 14 * - - 62 col1
----
-868

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT ALL - - 9 DIV - 16 + + 42 + - 10 DIV 66 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL - - 9 / - 16 + + 42 + - 10 / 66 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7272
SELECT DISTINCT - - 84 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - - 84 / + 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT DISTINCT - - COUNT( * ) AS col1, 81
----
1
81

skipif mysql # not compatible
query II rowsort label-7273
SELECT DISTINCT - - COUNT ( * ) AS col1, 81
----
1
81

query I rowsort
SELECT ALL - + 34 * 74 + + 67 * - + 22
----
-3990

query II rowsort
SELECT DISTINCT - - 55 AS col0, 19 AS col0
----
55
19

query I rowsort
SELECT + ( + - ( + 67 ) )
----
-67

query I rowsort
SELECT 88 + 49
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL MAX( + 72 ) * - 58 + - - 67 * + 84 + + 58
----
1510

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL MAX ( + 72 ) * - 58 + - - 67 * + 84 + + 58
----
1510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT SUM( - 29 ) DIV - NULLIF ( - + COALESCE ( - - MIN( DISTINCT - 78 ), - - ( - 65 ) ), ( + 64 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7279
SELECT SUM ( - 29 ) / - NULLIF ( - + COALESCE ( - - MIN ( DISTINCT - 78 ), - - ( - 65 ) ), ( + 64 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7280
SELECT 48 + + CAST( NULL AS SIGNED ) * - + 77 * + + COALESCE ( + COUNT( * ), 24 * - 4 * 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT 48 + + CAST ( NULL AS INTEGER ) * - + 77 * + + COALESCE ( + COUNT ( * ), 24 * - 4 * 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL 54 + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL 54 + COUNT ( * )
----
55

query I rowsort
SELECT 58 + - 69 + ( - 69 ) * + 10 * + 65 * + 87
----
-3901961

query II rowsort
SELECT 93 - + - 40 AS col2, + 98 * 85 * - 94
----
133
-783020

query I rowsort
SELECT ALL 30 + - 91
----
-61

query I rowsort
SELECT ALL 42 + + ( + - 79 ) + - + 83 * + 35 * - + 64 AS col0
----
185883

query II rowsort
SELECT DISTINCT 61, 74 AS col0
----
61
74

query II rowsort
SELECT - 14 AS col2, 4 AS col0
----
-14
4

query I rowsort
SELECT DISTINCT 53 + 50
----
103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7289
SELECT 67 / + 70 * - + ( + - 96 ) * + + NULLIF ( - - COUNT( - + 9 ), + 74 ) - - CASE 77 WHEN 26 THEN 20 + - 54 * + - 52 * - 81 + 50 WHEN + + 4 - - 48 - - 77 * - ( - + 15 ) * + CASE - + 77 WHEN - 85 THEN + 28 WHEN 69 THEN NULL END * + NULLIF ( 38, + - 90 ) - - 66 THEN + 91 ELSE NULL END + - SUM( ALL - - 54 ) + 10 + 19 * + + CAST( NULL AS DECIMAL ) + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT 67 / + 70 * - + ( + - 96 ) * + + NULLIF ( - - COUNT ( - + 9 ), + 74 ) - - CASE 77 WHEN 26 THEN 20 + - 54 * + - 52 * - 81 + 50 WHEN + + 4 - - 48 - - 77 * - ( - + 15 ) * + CASE - + 77 WHEN - 85 THEN + 28 WHEN 69 THEN NULL END * + NULLIF ( 38, + - 90 ) - - 66 THEN + 91 ELSE NULL END + - SUM ( ALL - - 54 ) + 10 + 19 * + + CAST ( NULL AS REAL ) + 17
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7290
SELECT 2 + + 0 AS col1, + 85 + - + COUNT( * ) * + 11
----
2
74

skipif mysql # not compatible
query II rowsort label-7290
SELECT 2 + + 0 AS col1, + 85 + - + COUNT ( * ) * + 11
----
2
74

query I rowsort
SELECT ALL 88 + + 52 AS col0
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT 66, COUNT( * ) AS col2
----
66
1

skipif mysql # not compatible
query II rowsort label-7292
SELECT 66, COUNT ( * ) AS col2
----
66
1

query II rowsort
SELECT - 79 col0, 32 AS col1
----
-79
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7294
SELECT 9 AS col1, 91 * CAST( NULL AS SIGNED ) * + - 12 * COALESCE ( - 30, + + 67 ), 21 - - - COUNT( * ) AS col2
----
9
NULL
20

skipif mysql # not compatible
query III rowsort label-7294
SELECT 9 AS col1, 91 * CAST ( NULL AS INTEGER ) * + - 12 * COALESCE ( - 30, + + 67 ), 21 - - - COUNT ( * ) AS col2
----
9
NULL
20

query I rowsort
SELECT 92 * + 89
----
8188

query II rowsort
SELECT 90 AS col1, 34 AS col2
----
90
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL COUNT( * ) - + + 95 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL COUNT ( * ) - + + 95 AS col2
----
-94

query II rowsort
SELECT DISTINCT 41, 41 col2
----
41
41

query II rowsort
SELECT + 43, 9 * 88 * 60 AS col1
----
43
47520

query I rowsort
SELECT ALL - 24 - + + 61 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL - - NULLIF ( + + CASE + - 49 WHEN - 0 / + - 74 + + - 49 + - 89 + MIN( - - 4 ) * - 58 THEN + 45 END, 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL - - NULLIF ( + + CASE + - 49 WHEN - 0 / + - 74 + + - 49 + - 89 + MIN ( - - 4 ) * - 58 THEN + 45 END, 44 ) AS col1
----
NULL

query I rowsort
SELECT ALL - + ( - - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT 14 - SUM( DISTINCT + 48 )
----
-34

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT 14 - SUM ( DISTINCT + 48 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT + + COUNT( ALL + 49 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7304
SELECT + + COUNT ( ALL + 49 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7305
SELECT ALL + + 86 / + CAST( NULL AS DECIMAL ) - 74 + - CAST( NULL AS SIGNED ) * + + 0 * - 21 + + + 95 + + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + + 86 / + CAST ( NULL AS REAL ) - 74 + - CAST ( NULL AS INTEGER ) * + + 0 * - 21 + + + 95 + + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT - SUM( ALL + - ( - 74 ) ) * 24
----
-1776

skipif mysql # not compatible
query I rowsort label-7306
SELECT - SUM ( ALL + - ( - 74 ) ) * 24
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT COALESCE ( - ( - 55 ), COALESCE ( + 92, + - 17 ), + + COUNT( * ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7307
SELECT COALESCE ( - ( - 55 ), COALESCE ( + 92, + - 17 ), + + COUNT ( * ) ) AS col2
----
55

query I rowsort
SELECT 54 * 59 - - 97
----
3283

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - COUNT( ALL 59 ) * 62
----
-62

skipif mysql # not compatible
query I rowsort label-7309
SELECT - COUNT ( ALL 59 ) * 62
----
-62

query I rowsort
SELECT ALL - 83 * + + 16 AS col2
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL - - MAX( - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - - MAX ( - 68 ) AS col0
----
-68

query I rowsort
SELECT - 29 - - 10 - - + 27 AS col1
----
8

query I rowsort
SELECT ALL - 38 * 42
----
-1596

query II rowsort
SELECT DISTINCT - 5, 24 AS col0
----
-5
24

query I rowsort
SELECT ALL - - 82 * + 30 + - 77
----
2383

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT DISTINCT - MAX( - - 54 ) + + - 3
----
-57

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT - MAX ( - - 54 ) + + - 3
----
-57

query I rowsort
SELECT DISTINCT - - NULLIF ( + - 87, - + 8 * - 32 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - COALESCE ( 53, + 1, - COUNT( * ) ) * COALESCE ( - 79, - 1 * - COUNT( * ) )
----
4187

skipif mysql # not compatible
query I rowsort label-7318
SELECT - COALESCE ( 53, + 1, - COUNT ( * ) ) * COALESCE ( - 79, - 1 * - COUNT ( * ) )
----
4187

query I rowsort
SELECT DISTINCT - 56 + - + 80 * + 91 AS col0
----
-7336

query I rowsort
SELECT DISTINCT - COALESCE ( + 14, - - 40 * + - 53 ) + 41
----
27

query II rowsort
SELECT 58 * + + 42 * + 98 AS col1, + 60 + - - 55 AS col2
----
238728
115

query I rowsort
SELECT DISTINCT 90 + + 45 col0
----
135

query II rowsort
SELECT DISTINCT 48 + - 96 AS col2, + 86 + 51
----
-48
137

query I rowsort
SELECT 83 - 90 - + 0 * + - 15
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT MAX( - 0 ) * - - 7
----
0

skipif mysql # not compatible
query I rowsort label-7325
SELECT MAX ( - 0 ) * - - 7
----
0

query I rowsort
SELECT DISTINCT CASE + + 90 WHEN - 46 * + + 70 + + + 67 + 2 THEN 39 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7327
SELECT DISTINCT MAX( ALL 6 ) * 57, 80 DIV COUNT( * ) AS col2
----
342
80

skipif mysql # not compatible
query II rowsort label-7327
SELECT DISTINCT MAX ( ALL 6 ) * 57, 80 / COUNT ( * ) AS col2
----
342
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7328
SELECT COUNT( * ) - - 30 DIV + 14
----
3

skipif mysql # not compatible
query I rowsort label-7328
SELECT COUNT ( * ) - - 30 / + 14
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7329
SELECT ALL COALESCE ( 56, 14 DIV + 9 + - 60 DIV - 85 DIV - - 93 DIV 51 * 76 * + - 9 DIV + + NULLIF ( - 2, CAST( NULL AS SIGNED ) + - 38 * - - CASE AVG ( - 59 ) WHEN + 5 - - SUM( + 88 ) THEN - 32 * 2 + - 69 + 1 + 91 ELSE NULL END * CAST( NULL AS SIGNED ) ), + 84 ) * + 89 + + - 11
----
4973

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL COALESCE ( 56, 14 / + 9 + - 60 / - 85 / - - 93 / 51 * 76 * + - 9 / + + NULLIF ( - 2, CAST ( NULL AS INTEGER ) + - 38 * - - CASE AVG ( - 59 ) WHEN + 5 - - SUM ( + 88 ) THEN - 32 * 2 + - 69 + 1 + 91 ELSE NULL END * CAST ( NULL AS INTEGER ) ), + 84 ) * + 89 + + - 11
----
4973

query I rowsort
SELECT - CASE 58 WHEN 63 THEN NULL WHEN + ( + 78 ) THEN - 63 + - + 54 END + + 93 + - 94 * - 57 * - + 73
----
NULL

query II rowsort
SELECT DISTINCT 21 * + 41 + + 46 AS col0, 86 AS col0
----
907
86

query II rowsort
SELECT ALL + 12 * 51 * - 22 AS col2, 27 + - + 10 + - - 9 col0
----
-13464
26

query I rowsort
SELECT DISTINCT 87 * + 76 + 50
----
6662

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT + 36 DIV + - 79 * 86 * - + 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7334
SELECT + 36 / + - 79 * 86 * - + 43 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL - 2 * - 36 + - - 49 + - 87 + MAX( + - 12 ) * + - ( + + 77 ) * + - 37 + - COALESCE ( + 6, - 47 ) + + + 39 AS col2
----
-34121

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - 2 * - 36 + - - 49 + - 87 + MAX ( + - 12 ) * + - ( + + 77 ) * + - 37 + - COALESCE ( + 6, - 47 ) + + + 39 AS col2
----
-34121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT ALL + CAST( + - 13 AS SIGNED ) * - 93 + 91 + - - 98 * - + 12
----
124

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + CAST ( + - 13 AS INTEGER ) * - 93 + 91 + - - 98 * - + 12
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT DISTINCT - 23 * - - 94 * 74 * + - COUNT( * ) + - 16 + + 42
----
160014

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT - 23 * - - 94 * 74 * + - COUNT ( * ) + - 16 + + 42
----
160014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7338
SELECT ALL 32 DIV 73 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL 32 / 73 + COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT + 2 DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-7339
SELECT + 2 / + 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT + 88 * - 49 + + COUNT( * ) AS col1
----
-4311

skipif mysql # not compatible
query I rowsort label-7340
SELECT + 88 * - 49 + + COUNT ( * ) AS col1
----
-4311

query I rowsort
SELECT - + 16 * + 12
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL + 8 * - COUNT( * ) + - ( + 46 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL + 8 * - COUNT ( * ) + - ( + 46 ) AS col2
----
-54

query I rowsort
SELECT - 52 * + - 31
----
1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7344
SELECT ALL + CAST( NULL AS SIGNED ) col2, - 28 + COUNT( * ) + - 75 - + - NULLIF ( + + COUNT( * ), + 31 * - - 9 ) * - 86
----
NULL
-188

skipif mysql # not compatible
query II rowsort label-7344
SELECT ALL + CAST ( NULL AS INTEGER ) col2, - 28 + COUNT ( * ) + - 75 - + - NULLIF ( + + COUNT ( * ), + 31 * - - 9 ) * - 86
----
NULL
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL 19 * + + COUNT( * ) * 93 + NULLIF ( - - COALESCE ( 49, + - ( - + 53 ) * 11 ), - + MAX( DISTINCT - - 25 ) * - COUNT( * ) * + - 49 - - + 89 ) AS col2
----
1816

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL 19 * + + COUNT ( * ) * 93 + NULLIF ( - - COALESCE ( 49, + - ( - + 53 ) * 11 ), - + MAX ( DISTINCT - - 25 ) * - COUNT ( * ) * + - 49 - - + 89 ) AS col2
----
1816

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT 88 * + COUNT( * ) + - 76
----
12

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT 88 * + COUNT ( * ) + - 76
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + 50 * - - COUNT( * ) * + + 31 * 3 - - 66 AS col2
----
4716

skipif mysql # not compatible
query I rowsort label-7347
SELECT + 50 * - - COUNT ( * ) * + + 31 * 3 - - 66 AS col2
----
4716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7348
SELECT DISTINCT + 86 + + 45 + - 73 + + 72 * - 5 * - 11 + + 5 + + CAST( NULL AS SIGNED ) / + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT + 86 + + 45 + - 73 + + 72 * - 5 * - 11 + + 5 + + CAST ( NULL AS INTEGER ) / + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT + 77 + + COUNT( * ) * - COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7349
SELECT + 77 + + COUNT ( * ) * - COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL CASE - COUNT( DISTINCT ( + + 99 ) ) WHEN - 67 - + - 73 * 13 THEN NULL ELSE + MIN( - 90 ) + - + 26 END col1
----
-116

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL CASE - COUNT ( DISTINCT ( + + 99 ) ) WHEN - 67 - + - 73 * 13 THEN NULL ELSE + MIN ( - 90 ) + - + 26 END col1
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT DISTINCT NULLIF ( + COUNT( * ), + - 3 + + 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT NULLIF ( + COUNT ( * ), + - 3 + + 5 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT ALL CASE - 16 WHEN + SUM( + 63 ) THEN 40 * - - 25 / COALESCE ( 3, + CASE + - MIN( - 9 ) WHEN + 86 + - + 35 THEN 11 / COUNT( * ) WHEN + 66 / - CASE - 44 WHEN - 46 / - + 30 * - + CAST( NULL AS SIGNED ) - 70 THEN - 82 WHEN COUNT( * ) THEN ( + 99 ) / 0 + + 16 WHEN - 61 * + 7 THEN - + 7 ELSE NULL END + - 84 THEN NULL ELSE NULL END ) ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL CASE - 16 WHEN + SUM ( + 63 ) THEN 40 * - - 25 / COALESCE ( 3, + CASE + - MIN ( - 9 ) WHEN + 86 + - + 35 THEN 11 / COUNT ( * ) WHEN + 66 / - CASE - 44 WHEN - 46 / - + 30 * - + CAST ( NULL AS INTEGER ) - 70 THEN - 82 WHEN COUNT ( * ) THEN ( + 99 ) / 0 + + 16 WHEN - 61 * + 7 THEN - + 7 ELSE NULL END + - 84 THEN NULL ELSE NULL END ) ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL - 24 - - - 8 + ( COUNT( * ) ) * - 82 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - 24 - - - 8 + ( COUNT ( * ) ) * - 82 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL MAX( - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL MAX ( - 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7355
SELECT - 23 + + - COUNT( * ) DIV + + MAX( - 70 ) * - - 59 * 31 * - - 29 * - 45 + CAST( + + CAST( - - 31 AS SIGNED ) AS SIGNED ) + + 90 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7355
SELECT - 23 + + - COUNT ( * ) / + + MAX ( - 70 ) * - - 59 * 31 * - - 29 * - 45 + CAST ( + + CAST ( - - 31 AS INTEGER ) AS INTEGER ) + + 90 AS col2
----
98

query I rowsort
SELECT ALL + 24 - - 36 + + 75
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT ( 67 ) * + - COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT ( 67 ) * + - COUNT ( * ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT + COUNT( * ) * + 7
----
7

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT + COUNT ( * ) * + 7
----
7

query II rowsort
SELECT ALL 86 col1, 36
----
86
36

query I rowsort
SELECT + 93 + 57
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT ALL - MAX( + 96 ) * + 52 AS col2, 94 - - + COUNT( * )
----
-4992
95

skipif mysql # not compatible
query II rowsort label-7361
SELECT ALL - MAX ( + 96 ) * + 52 AS col2, 94 - - + COUNT ( * )
----
-4992
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - + COUNT( * ) * + + 34
----
-34

skipif mysql # not compatible
query I rowsort label-7362
SELECT - + COUNT ( * ) * + + 34
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT + - 63 + + COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7363
SELECT + - 63 + + COUNT ( * ) AS col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT + - 46 DIV 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7364
SELECT + - 46 / 39 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT + + MIN( ALL - + 58 ) + + 64 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7365
SELECT + + MIN ( ALL - + 58 ) + + 64 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT COUNT( 36 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7366
SELECT COUNT ( 36 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT ALL + + NULLIF ( + 16, 37 ) * - COUNT( * ) / - - 54 * 34 - CAST( NULL AS SIGNED ) + + + 62 + + - MIN( 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL + + NULLIF ( + 16, 37 ) * - COUNT ( * ) / - - 54 * 34 - CAST ( NULL AS INTEGER ) + + + 62 + + - MIN ( 96 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT DISTINCT - ( + MAX( - - 47 ) ), + 7 AS col2
----
-47
7

skipif mysql # not compatible
query II rowsort label-7368
SELECT DISTINCT - ( + MAX ( - - 47 ) ), + 7 AS col2
----
-47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT + 24 * + COUNT( * ) * 23 + - CASE WHEN + 28 IS NOT NULL THEN + 55 ELSE - 63 * + 10 + - 27 END
----
497

skipif mysql # not compatible
query I rowsort label-7369
SELECT + 24 * + COUNT ( * ) * 23 + - CASE WHEN + 28 IS NOT NULL THEN + 55 ELSE - 63 * + 10 + - 27 END
----
497

query I rowsort
SELECT DISTINCT + + 98 col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7371
SELECT DISTINCT 6 DIV - SUM( ALL - CAST( - 87 AS SIGNED ) ) - 43 + - COALESCE ( + + 46, - 58 * - 4 + + 43 + + 96 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT 6 / - SUM ( ALL - CAST ( - 87 AS INTEGER ) ) - 43 + - COALESCE ( + + 46, - 58 * - 4 + + 43 + + 96 ) AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT ALL + 47 DIV + 50 + 81 + 55 + - - CASE + + 9 WHEN + - 66 THEN NULL WHEN - 97 THEN NULL ELSE + 37 * - 7 END * + 28 - + 61 + - - 47 * + 59 + - - 43
----
-4361

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL + 47 / + 50 + 81 + 55 + - - CASE + + 9 WHEN + - 66 THEN NULL WHEN - 97 THEN NULL ELSE + 37 * - 7 END * + 28 - + 61 + - - 47 * + 59 + - - 43
----
-4361

query I rowsort
SELECT - 91 * + + 76 * - 59 col2
----
408044

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT MIN( + + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7374
SELECT MIN ( + + 89 ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT ALL 14 DIV - 68 * - 68 + + - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL 14 / - 68 * - 68 + + - 23 AS col0
----
-23

query I rowsort
SELECT + - 1 - + 60
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7377
SELECT ALL COUNT( + 89 ) * 63 * - CAST( - 40 AS SIGNED ) - - ( 7 )
----
2527

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL COUNT ( + 89 ) * 63 * - CAST ( - 40 AS INTEGER ) - - ( 7 )
----
2527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT ALL 59 * + 54 + - 28 * CAST( + 13 AS SIGNED ) + NULLIF ( - NULLIF ( - + COUNT( * ), - + 56 - COALESCE ( + MIN( + 81 ), - - COUNT( * ) ) ), - - 29 ) AS col2
----
2823

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL 59 * + 54 + - 28 * CAST ( + 13 AS INTEGER ) + NULLIF ( - NULLIF ( - + COUNT ( * ), - + 56 - COALESCE ( + MIN ( + 81 ), - - COUNT ( * ) ) ), - - 29 ) AS col2
----
2823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT + CAST( - 9 AS SIGNED ) * 86 AS col2
----
-774

skipif mysql # not compatible
query I rowsort label-7379
SELECT + CAST ( - 9 AS INTEGER ) * 86 AS col2
----
-774

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT ALL + 27 DIV + + 7
----
3

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL + 27 / + + 7
----
3

query I rowsort
SELECT DISTINCT 90 * NULLIF ( + 66, 6 * + 61 ) - + 56 col1
----
5884

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT - 42 - + + COUNT( * ) + + + ( 95 ) - + COALESCE ( - 79, - + MAX( DISTINCT + 63 ) ) - - 67 - + COALESCE ( - 17, SUM( DISTINCT - - 53 ), + 17 * - ( - + 54 ) * - 14 * 94 + 76 + - + 30 * + - 31 ) * + 94 * - + 74 AS col2
----
-118054

skipif mysql # not compatible
query I rowsort label-7382
SELECT - 42 - + + COUNT ( * ) + + + ( 95 ) - + COALESCE ( - 79, - + MAX ( DISTINCT + 63 ) ) - - 67 - + COALESCE ( - 17, SUM ( DISTINCT - - 53 ), + 17 * - ( - + 54 ) * - 14 * 94 + 76 + - + 30 * + - 31 ) * + 94 * - + 74 AS col2
----
-118054

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT + 54 * + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-7383
SELECT + 54 * + COUNT ( * )
----
54

query I rowsort
SELECT NULLIF ( + 55, + 94 )
----
55

query I rowsort
SELECT ALL 65 * - 77 AS col2
----
-5005

onlyif mysql # aggregate syntax: 
query II rowsort label-7386
SELECT ALL - NULLIF ( + + 2, - 91 * + 36 ) * - + 24 * 62 * + - 41 * + COUNT( ALL + 56 ) + + 88 - - ( 95 ), + 1 AS col2
----
-121833
1

skipif mysql # not compatible
query II rowsort label-7386
SELECT ALL - NULLIF ( + + 2, - 91 * + 36 ) * - + 24 * 62 * + - 41 * + COUNT ( ALL + 56 ) + + 88 - - ( 95 ), + 1 AS col2
----
-121833
1

query I rowsort
SELECT COALESCE ( - 29, + 63, 83 * + 58 ) AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7388
SELECT + CAST( - 51 AS SIGNED ) AS col0, - 98 * + - 88 AS col0
----
-51
8624

skipif mysql # not compatible
query II rowsort label-7388
SELECT + CAST ( - 51 AS INTEGER ) AS col0, - 98 * + - 88 AS col0
----
-51
8624

query I rowsort
SELECT ALL ( ( 5 ) )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7390
SELECT ALL + CAST( NULL AS SIGNED ) * - - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7391
SELECT ALL COUNT( * ) * - + 2 AS col0, + 47
----
-2
47

skipif mysql # not compatible
query II rowsort label-7391
SELECT ALL COUNT ( * ) * - + 2 AS col0, + 47
----
-2
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT ALL CAST( - - 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL CAST ( - - 34 AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7393
SELECT DISTINCT COUNT( * ) * + 26 AS col2, - 86 AS col1
----
26
-86

skipif mysql # not compatible
query II rowsort label-7393
SELECT DISTINCT COUNT ( * ) * + 26 AS col2, - 86 AS col1
----
26
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT + 64 * COUNT( * ) * + + 23 AS col1
----
1472

skipif mysql # not compatible
query I rowsort label-7394
SELECT + 64 * COUNT ( * ) * + + 23 AS col1
----
1472

onlyif mysql # aggregate syntax: 
query II rowsort label-7395
SELECT COUNT( + + 69 ), - 33 + - ( - + 36 ) AS col1
----
1
3

skipif mysql # not compatible
query II rowsort label-7395
SELECT COUNT ( + + 69 ), - 33 + - ( - + 36 ) AS col1
----
1
3

query I rowsort
SELECT - ( ( + 51 ) )
----
-51

query I rowsort
SELECT 19 * - ( - + 32 ) AS col2
----
608

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7398
SELECT - ( + + NULLIF ( 82, - 70 ) ) AS col0, 4 DIV NULLIF ( + - COUNT( * ), ( + + 44 ) ) AS col2
----
-82
-4

skipif mysql # not compatible
query II rowsort label-7398
SELECT - ( + + NULLIF ( 82, - 70 ) ) AS col0, 4 / NULLIF ( + - COUNT ( * ), ( + + 44 ) ) AS col2
----
-82
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL - - COUNT( * ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL - - COUNT ( * ) + + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL + COUNT( * ) + + + 18 - - + 21 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL + COUNT ( * ) + + + 18 - - + 21 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT - - 25 * - MIN( + 23 ) AS col1
----
-575

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT - - 25 * - MIN ( + 23 ) AS col1
----
-575

query I rowsort
SELECT ( - 67 ) - - 19 AS col2
----
-48

query I rowsort
SELECT - + 52 col1
----
-52

query I rowsort
SELECT DISTINCT - 68 + + 95 AS col0
----
27

query I rowsort
SELECT ALL + 10 + + 31 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT ALL 50 DIV + NULLIF ( + 26, - 90 ) - ( - 46 ) + + 55 + 47 + + 85 * + 22 * + 88 + 89 + + - 34 * 57 * - 29 col2
----
221000

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL 50 / + NULLIF ( + 26, - 90 ) - ( - 46 ) + + 55 + 47 + + 85 * + 22 * + 88 + 89 + + - 34 * 57 * - 29 col2
----
221000

query I rowsort
SELECT - NULLIF ( - 77, - 27 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7408
SELECT ALL + + NULLIF ( 56, + 67 * - 83 + - + ( 73 ) * + 14 ) - + + CAST( + 39 AS SIGNED ) + - CASE + COUNT( * ) WHEN 38 * - 30 + 75 THEN - + CASE 56 WHEN + + 84 + + - 52 + + COUNT( * ) * + 65 + + 65 + 43 / - 94 + CAST( NULL AS SIGNED ) THEN + 62 + + COALESCE ( - - COUNT( * ), + 68 + - + 48 * - 23 ) + 36 ELSE - 46 END ELSE NULL END / CAST( - 46 AS SIGNED ) + - + 85 + + SUM( - CAST( NULL AS SIGNED ) ) / 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL + + NULLIF ( 56, + 67 * - 83 + - + ( 73 ) * + 14 ) - + + CAST ( + 39 AS INTEGER ) + - CASE + COUNT ( * ) WHEN 38 * - 30 + 75 THEN - + CASE 56 WHEN + + 84 + + - 52 + + COUNT ( * ) * + 65 + + 65 + 43 / - 94 + CAST ( NULL AS INTEGER ) THEN + 62 + + COALESCE ( - - COUNT ( * ), + 68 + - + 48 * - 23 ) + 36 ELSE - 46 END ELSE NULL END / CAST ( - 46 AS INTEGER ) + - + 85 + + SUM ( - CAST ( NULL AS INTEGER ) ) / 79
----
NULL

query I rowsort
SELECT ALL - 75 - - 64
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT + NULLIF ( + + MAX( DISTINCT - 96 ), - + 5 ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-7410
SELECT + NULLIF ( + + MAX ( DISTINCT - 96 ), - + 5 ) col0
----
-96

query I rowsort
SELECT + 73 * + ( + - 63 ) + + 10
----
-4589

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT MIN( + + ( + 38 ) ) * - 33
----
-1254

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT MIN ( + + ( + 38 ) ) * - 33
----
-1254

query I rowsort
SELECT ALL 24 * 24 AS col2
----
576

query I rowsort
SELECT 22 * - 2 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT 93 + - ( + COUNT( * ) ) * + 45 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7415
SELECT 93 + - ( + COUNT ( * ) ) * + 45 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7416
SELECT + 60 AS col0, 55 + NULLIF ( - 46, - MAX( DISTINCT 21 ) ) - + + 16 + - 4
----
60
-11

skipif mysql # not compatible
query II rowsort label-7416
SELECT + 60 AS col0, 55 + NULLIF ( - 46, - MAX ( DISTINCT 21 ) ) - + + 16 + - 4
----
60
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT DISTINCT 71 * + + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT 71 * + + COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7418
SELECT DISTINCT - 70 AS col2, - COUNT( * ) col1
----
-70
-1

skipif mysql # not compatible
query II rowsort label-7418
SELECT DISTINCT - 70 AS col2, - COUNT ( * ) col1
----
-70
-1

query I rowsort
SELECT ALL 88 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT 12 * + MAX( DISTINCT - 98 ) AS col2
----
-1176

skipif mysql # not compatible
query I rowsort label-7420
SELECT 12 * + MAX ( DISTINCT - 98 ) AS col2
----
-1176

query II rowsort
SELECT ALL - 83, + 86 col2
----
-83
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL - SUM( - + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL - SUM ( - + 11 )
----
11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7423
SELECT 83 AS col0, 26 + + CASE 46 WHEN + 71 - - 29 * - 47 THEN + CAST( NULL AS DECIMAL ) * + 19 + + 50 WHEN - CAST( NULL AS SIGNED ) * 51 * 48 + 14 THEN - 69 ELSE NULL END AS col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7423
SELECT 83 AS col0, 26 + + CASE 46 WHEN + 71 - - 29 * - 47 THEN + CAST ( NULL AS REAL ) * + 19 + + 50 WHEN - CAST ( NULL AS INTEGER ) * 51 * 48 + 14 THEN - 69 ELSE NULL END AS col2
----
83
NULL

query I rowsort
SELECT 2 * + 63 col1
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT ALL 76 DIV - 81 * + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL 76 / - 81 * + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7426
SELECT - 31, - ( - COUNT( * ) ) AS col1
----
-31
1

skipif mysql # not compatible
query II rowsort label-7426
SELECT - 31, - ( - COUNT ( * ) ) AS col1
----
-31
1

query I rowsort
SELECT ( - + 71 ) * ( 83 ) AS col0
----
-5893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL - CASE - 19 WHEN + - ( + - MAX( DISTINCT + 15 ) ) / + + SUM( - CAST( - 98 AS SIGNED ) ) + - + COALESCE ( COUNT( * ), 74 - + + MIN( DISTINCT 72 ) ) + + 96 + + 19 / 74 THEN NULL WHEN - COUNT( * ) - 15 / + 85 THEN - 29 ELSE NULL END * - + CAST( - NULLIF ( + + 9, 91 * - - COUNT( + 79 ) + 96 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - CASE - 19 WHEN + - ( + - MAX ( DISTINCT + 15 ) ) / + + SUM ( - CAST ( - 98 AS INTEGER ) ) + - + COALESCE ( COUNT ( * ), 74 - + + MIN ( DISTINCT 72 ) ) + + 96 + + 19 / 74 THEN NULL WHEN - COUNT ( * ) - 15 / + 85 THEN - 29 ELSE NULL END * - + CAST ( - NULLIF ( + + 9, 91 * - - COUNT ( + 79 ) + 96 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 66 + 67 AS col0
----
133

query I rowsort
SELECT + 79 + - + 11 * 64 - - 83 AS col0
----
-542

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT ALL + MIN( + 24 ) + + 11 * - + 88
----
-944

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL + MIN ( + 24 ) + + 11 * - + 88
----
-944

query I rowsort
SELECT ALL + 75 + + 32
----
107

query I rowsort
SELECT + 46 * - 49 AS col2
----
-2254

query I rowsort
SELECT 44 + + + 72 AS col2
----
116

query I rowsort
SELECT ( 4 ) AS col0
----
4

query I rowsort
SELECT DISTINCT - 72 + + 23
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL + COUNT( * ) + + - 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + COUNT ( * ) + + - 96 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT + MAX( - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7438
SELECT + MAX ( - 53 ) AS col0
----
-53

query I rowsort
SELECT 36 + + 79
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT ALL - + 72 + - + COUNT( * ) + - + 22
----
-95

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL - + 72 + - + COUNT ( * ) + - + 22
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT + 51 * CASE WHEN NOT NULL IS NOT NULL THEN COALESCE ( + 37, - + 3 ) ELSE + 8 END + MAX( DISTINCT + 38 ) * - 56
----
-241

skipif mysql # not compatible
query I rowsort label-7441
SELECT + 51 * CASE WHEN NOT NULL IS NOT NULL THEN COALESCE ( + 37, - + 3 ) ELSE + 8 END + MAX ( DISTINCT + 38 ) * - 56
----
-241

query I rowsort
SELECT DISTINCT - ( + 93 ) - - - 35 AS col1
----
-128

query I rowsort
SELECT + 4 + + - 99
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT DISTINCT + COUNT( * ) - - 48 + ( + 9 )
----
58

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + COUNT ( * ) - - 48 + ( + 9 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7445
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * + COUNT( 20 ) * 6 + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7445
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * + COUNT ( 20 ) * 6 + - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT - - MAX( - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-7446
SELECT - - MAX ( - 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT + - CAST( + - 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-7447
SELECT + - CAST ( + - 92 AS INTEGER )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT - 45 DIV - 64 * + + 64 + - 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7448
SELECT - 45 / - 64 * + + 64 + - 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT 25 * - COUNT( - 86 )
----
-25

skipif mysql # not compatible
query I rowsort label-7449
SELECT 25 * - COUNT ( - 86 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7450
SELECT DISTINCT - - 55 * 46 * - 86 AS col1, + COUNT( * ) + - 53 AS col0
----
-217580
-52

skipif mysql # not compatible
query II rowsort label-7450
SELECT DISTINCT - - 55 * 46 * - 86 AS col1, + COUNT ( * ) + - 53 AS col0
----
-217580
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7451
SELECT ALL COUNT( * ) * - - 54 DIV + COALESCE ( MAX( 44 ), + - 17 + - 60 ) - - - 53 + - 68 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL COUNT ( * ) * - - 54 / + COALESCE ( MAX ( 44 ), + - 17 + - 60 ) - - - 53 + - 68 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT COUNT( - 72 ) AS col2, + 85
----
1
85

skipif mysql # not compatible
query II rowsort label-7452
SELECT COUNT ( - 72 ) AS col2, + 85
----
1
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT 86 DIV NULLIF ( + 60, - - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-7453
SELECT 86 / NULLIF ( + 60, - - 21 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT COUNT( * ) DIV + 22 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT COUNT ( * ) / + 22 * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7455
SELECT DISTINCT - COUNT( * ) AS col0, 69 - 71 + + 4 * - 58 * + COUNT( * ) AS col2
----
-1
-234

skipif mysql # not compatible
query II rowsort label-7455
SELECT DISTINCT - COUNT ( * ) AS col0, 69 - 71 + + 4 * - 58 * + COUNT ( * ) AS col2
----
-1
-234

query II rowsort
SELECT ALL - 67, 16 + + 93 AS col1
----
-67
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7457
SELECT DISTINCT COUNT( - 9 ) DIV - 11
----
0

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT COUNT ( - 9 ) / - 11
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7458
SELECT COUNT( * ) AS col1, - 13 - + - 62 + - 88
----
1
-39

skipif mysql # not compatible
query II rowsort label-7458
SELECT COUNT ( * ) AS col1, - 13 - + - 62 + - 88
----
1
-39

query II rowsort
SELECT ALL - 86 AS col0, 39 AS col0
----
-86
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT + 15, 2 + + 71 * + + 81 * - COUNT( * ) + MAX( + 12 ) * + + 35 AS col0
----
15
-5329

skipif mysql # not compatible
query II rowsort label-7460
SELECT + 15, 2 + + 71 * + + 81 * - COUNT ( * ) + MAX ( + 12 ) * + + 35 AS col0
----
15
-5329

query I rowsort
SELECT 92 * - 85 AS col0
----
-7820

query I rowsort
SELECT 65 * + 28 + - 78
----
1742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7463
SELECT DISTINCT - 20 + - 85 + + 77 - - + CAST( COALESCE ( - + SUM( 68 ), 97 ) AS SIGNED ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT - 20 + - 85 + + 77 - - + CAST ( COALESCE ( - + SUM ( 68 ), 97 ) AS INTEGER ) col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7464
SELECT ALL 35 * - CASE - MAX( 18 ) WHEN - 48 + + + 41 / - + 36 THEN 15 + + COUNT( * ) ELSE + CAST( - 3 AS SIGNED ) END
----
105

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL 35 * - CASE - MAX ( 18 ) WHEN - 48 + + + 41 / - + 36 THEN 15 + + COUNT ( * ) ELSE + CAST ( - 3 AS INTEGER ) END
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT + 46 * - COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7465
SELECT + 46 * - COUNT ( * ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT - 58 * + - MAX( ALL 35 ) AS col2
----
2030

skipif mysql # not compatible
query I rowsort label-7466
SELECT - 58 * + - MAX ( ALL 35 ) AS col2
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT 70 * + - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT 70 * + - COUNT ( * )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT ALL CAST( NULL AS SIGNED ) + + ( 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL CAST ( NULL AS INTEGER ) + + ( 2 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7469
SELECT ALL + 66 + + + 10 * + 53 + - 87, + 27 DIV - 54 AS col1
----
509
0

skipif mysql # not compatible
query II rowsort label-7469
SELECT ALL + 66 + + + 10 * + 53 + - 87, + 27 / - 54 AS col1
----
509
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT + 10 * COUNT( * ) * 82 * 54
----
44280

skipif mysql # not compatible
query I rowsort label-7470
SELECT + 10 * COUNT ( * ) * 82 * 54
----
44280

query I rowsort
SELECT ALL - 2 + 43 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT COUNT( * ) * + 52 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT COUNT ( * ) * + 52 AS col1
----
52

query I rowsort
SELECT ALL 16 + - 40 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7474
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, + 61 AS col1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7474
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 61 AS col1
----
NULL
61

query II rowsort
SELECT - - 81 AS col2, + 20
----
81
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT 29 * ( - 83 ) + + + 67 * NULLIF ( + AVG ( + 79 ), - SUM( - 21 ) * - 99 ) * + AVG ( ALL + 39 ) + - + CASE 6 WHEN - + 41 THEN - + MIN( DISTINCT - NULLIF ( + 84, - + 4 * - - 9 * 8 * + 94 - - 49 - - 94 ) ) / NULLIF ( - 20, + + 7 * - COUNT( * ) - + 22 / + + MAX( DISTINCT - 99 ) - - 56 * + - COUNT( * ) * + 70 ) - - ( CASE 89 WHEN + 63 + + ( - - 49 ) * - MIN( 46 ) THEN NULL ELSE - 66 * 88 - + 90 * + 51 END ) WHEN COALESCE ( + 33, 56 * 46 ) * - 15 THEN ( 65 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT 29 * ( - 83 ) + + + 67 * NULLIF ( + AVG ( + 79 ), - SUM ( - 21 ) * - 99 ) * + AVG ( ALL + 39 ) + - + CASE 6 WHEN - + 41 THEN - + MIN ( DISTINCT - NULLIF ( + 84, - + 4 * - - 9 * 8 * + 94 - - 49 - - 94 ) ) / NULLIF ( - 20, + + 7 * - COUNT ( * ) - + 22 / + + MAX ( DISTINCT - 99 ) - - 56 * + - COUNT ( * ) * + 70 ) - - ( CASE 89 WHEN + 63 + + ( - - 49 ) * - MIN ( 46 ) THEN NULL ELSE - 66 * 88 - + 90 * + 51 END ) WHEN COALESCE ( + 33, 56 * 46 ) * - 15 THEN ( 65 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 0 * - 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7478
SELECT COUNT( * ) AS col1, + 6
----
1
6

skipif mysql # not compatible
query II rowsort label-7478
SELECT COUNT ( * ) AS col1, + 6
----
1
6

query I rowsort
SELECT ALL 83 + - + 93
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7480
SELECT - 24 AS col1, CAST( + COUNT( * ) AS SIGNED )
----
-24
1

skipif mysql # not compatible
query II rowsort label-7480
SELECT - 24 AS col1, CAST ( + COUNT ( * ) AS INTEGER )
----
-24
1

query I rowsort
SELECT + + ( 18 ) - - 67 + - 34 * + 59
----
-1921

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT + 52 * COUNT( * ) - + 93
----
-41

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT + 52 * COUNT ( * ) - + 93
----
-41

query I rowsort
SELECT ALL - 19 * - 12 * + 74 AS col2
----
16872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT + + CAST( NULL AS SIGNED ) + + ( 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT + + CAST ( NULL AS INTEGER ) + + ( 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL + + 32 - + - 22 * - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL + + 32 - + - 22 * - COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7486
SELECT DISTINCT 3 col0, COALESCE ( + 88, - COUNT( * ) )
----
3
88

skipif mysql # not compatible
query II rowsort label-7486
SELECT DISTINCT 3 col0, COALESCE ( + 88, - COUNT ( * ) )
----
3
88

query I rowsort
SELECT + 16 * - 2 AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7488
SELECT ALL 85 * - COALESCE ( + + 16, + 38 ) AS col2, - CAST( + + CASE - - COUNT( * ) WHEN - - ( - CAST( NULL AS SIGNED ) ) THEN 34 WHEN + + 21 THEN NULL ELSE 97 END AS SIGNED ) AS col2
----
-1360
-97

skipif mysql # not compatible
query II rowsort label-7488
SELECT ALL 85 * - COALESCE ( + + 16, + 38 ) AS col2, - CAST ( + + CASE - - COUNT ( * ) WHEN - - ( - CAST ( NULL AS INTEGER ) ) THEN 34 WHEN + + 21 THEN NULL ELSE 97 END AS INTEGER ) AS col2
----
-1360
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT + CASE + CASE - + 30 WHEN - 30 * - COUNT( * ) THEN NULL WHEN - 19 * - COUNT( * ) THEN - 39 WHEN 74 THEN NULL END WHEN - 15 + - 64 + - + 58 THEN - 63 END + + + 98 + + 16 * - CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT + CASE + CASE - + 30 WHEN - 30 * - COUNT ( * ) THEN NULL WHEN - 19 * - COUNT ( * ) THEN - 39 WHEN 74 THEN NULL END WHEN - 15 + - 64 + - + 58 THEN - 63 END + + + 98 + + 16 * - CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 29 - + + 53 col1
----
-82

query II rowsort
SELECT - + 94 AS col2, + 85
----
-94
85

query I rowsort
SELECT + 73 + - - 63 * 81
----
5176

query I rowsort
SELECT - 43 - - 77 * - 96
----
-7435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7494
SELECT + 65 * + CASE + - 45 WHEN 80 + + - 27 THEN - - 40 * 27 ELSE + 98 END * 32 + + 37 DIV 78 - + 61 - - 80 + + COUNT( * ) * + SUM( DISTINCT + + 71 ) * + ( 78 ) AS col1
----
209397

skipif mysql # not compatible
query I rowsort label-7494
SELECT + 65 * + CASE + - 45 WHEN 80 + + - 27 THEN - - 40 * 27 ELSE + 98 END * 32 + + 37 / 78 - + 61 - - 80 + + COUNT ( * ) * + SUM ( DISTINCT + + 71 ) * + ( 78 ) AS col1
----
209397

query II rowsort
SELECT ( - 13 ) AS col0, 66 AS col1
----
-13
66

query I rowsort
SELECT 78 * + + ( - 52 ) + + - 80 AS col2
----
-4136

query I rowsort
SELECT - 24 * - 88 AS col2
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT ALL + NULLIF ( 14, - 50 ) * 76 * - + NULLIF ( - 56, 76 + + COUNT( * ) ) AS col0
----
59584

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + NULLIF ( 14, - 50 ) * 76 * - + NULLIF ( - 56, 76 + + COUNT ( * ) ) AS col0
----
59584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT - 65 * - 86 / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT - 65 * - 86 / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT ALL + 95 * - + COUNT( ( + 78 ) ) * + - 87 - - 51 + COUNT( + 43 ) + + + 38 + 42 AS col0, + 85
----
8397
85

skipif mysql # not compatible
query II rowsort label-7500
SELECT ALL + 95 * - + COUNT ( ( + 78 ) ) * + - 87 - - 51 + COUNT ( + 43 ) + + + 38 + 42 AS col0, + 85
----
8397
85

query I rowsort
SELECT ALL + 79 * 38 * + 88
----
264176

query I rowsort
SELECT - 95 * + 60 * 57 * + 2 + - 70 + - 10 col0
----
-649880

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT NULLIF ( - COUNT( * ), - - 9 + 4 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7503
SELECT NULLIF ( - COUNT ( * ), - - 9 + 4 ) col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7504
SELECT - 7 * + AVG ( ALL - + 78 ) * + 49 * + 77 + + 42 + - + 16 + + ( - 10 ) * + 88 * + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT - 7 * + AVG ( ALL - + 78 ) * + 49 * + 77 + + 42 + - + 16 + + ( - 10 ) * + 88 * + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL 32 * - + MAX( - 80 ) + 11 AS col0
----
2571

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL 32 * - + MAX ( - 80 ) + 11 AS col0
----
2571

query II rowsort
SELECT DISTINCT + ( 47 ), ( - + 40 ) col2
----
47
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT 34 * - - CASE - 49 WHEN 1 THEN + - 63 END - - ( + 15 ) * + + 48 * - CASE + + COUNT( * ) WHEN - + 60 + - COUNT( * ) * 87 THEN NULL ELSE COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT 34 * - - CASE - 49 WHEN 1 THEN + - 63 END - - ( + 15 ) * + + 48 * - CASE + + COUNT ( * ) WHEN - + 60 + - COUNT ( * ) * 87 THEN NULL ELSE COUNT ( * ) END
----
NULL

query I rowsort
SELECT COALESCE ( + + 0, + 4 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT - COUNT( * ) + + + 94 * 40 - + - COUNT( * ) AS col2
----
3760

skipif mysql # not compatible
query I rowsort label-7509
SELECT - COUNT ( * ) + + + 94 * 40 - + - COUNT ( * ) AS col2
----
3760

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7510
SELECT + + ( + MIN( ALL - + CAST( NULL AS DECIMAL ) ) ) + - CASE + ( 87 ) WHEN - SUM( ALL 15 ) * - 11 THEN NULL WHEN + 46 * + SUM( DISTINCT - 42 ) + 85 THEN + + ( + 64 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT + + ( + MIN ( ALL - + CAST ( NULL AS REAL ) ) ) + - CASE + ( 87 ) WHEN - SUM ( ALL 15 ) * - 11 THEN NULL WHEN + 46 * + SUM ( DISTINCT - 42 ) + 85 THEN + + ( + 64 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7511
SELECT ALL + - 38 * 78 * + ( 50 ) + - - 64 * + 49 DIV + ( - NULLIF ( + - COUNT( * ), + 89 + + 69 * + + 74 ) ) AS col2
----
-145064

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + - 38 * 78 * + ( 50 ) + - - 64 * + 49 / + ( - NULLIF ( + - COUNT ( * ), + 89 + + 69 * + + 74 ) ) AS col2
----
-145064

onlyif mysql # DIV for integer division: 
query II rowsort label-7512
SELECT ALL + ( 13 ) * 74 - + - ( 93 ), 73 + 12 DIV NULLIF ( 23, - 50 * - + 18 * 12 ) col0
----
1055
73

skipif mysql # not compatible
query II rowsort label-7512
SELECT ALL + ( 13 ) * 74 - + - ( 93 ), 73 + 12 / NULLIF ( 23, - 50 * - + 18 * 12 ) col0
----
1055
73

query I rowsort
SELECT - + 67 * + + 95 AS col0
----
-6365

query I rowsort
SELECT DISTINCT 76 * + 85 col2
----
6460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT COUNT( CAST( - 61 AS SIGNED ) ) * - ( 64 ) - + ( - 11 ) + - 4
----
-57

skipif mysql # not compatible
query I rowsort label-7515
SELECT COUNT ( CAST ( - 61 AS INTEGER ) ) * - ( 64 ) - + ( - 11 ) + - 4
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT - - COUNT( * ) * 58
----
58

skipif mysql # not compatible
query I rowsort label-7516
SELECT - - COUNT ( * ) * 58
----
58

query I rowsort
SELECT ALL + ( - - 26 ) * - 17
----
-442

query II rowsort
SELECT - 64 + 0 AS col1, - 48 AS col0
----
-64
-48

query I rowsort
SELECT ALL + + 89 - - 39 AS col2
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT ALL - CAST( - ( + + 12 ) AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL - CAST ( - ( + + 12 ) AS INTEGER )
----
12

query I rowsort
SELECT + 77 + ( - 65 )
----
12

query I rowsort
SELECT ALL 17 - 39
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7523
SELECT ALL + - COUNT( * ) * - - NULLIF ( 65, + 55 + + COUNT( * ) + - ( - 68 ) + + CAST( NULL AS SIGNED ) * - - COUNT( * ) / + + ( + 76 ) + - 46 ) * - 40 - 77 - - CAST( NULL AS SIGNED ) + + COUNT( * ) - + 18 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + - COUNT ( * ) * - - NULLIF ( 65, + 55 + + COUNT ( * ) + - ( - 68 ) + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / + + ( + 76 ) + - 46 ) * - 40 - 77 - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + 18 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT + COUNT( * ) + MAX( DISTINCT + 0 ) * 87
----
1

skipif mysql # not compatible
query I rowsort label-7524
SELECT + COUNT ( * ) + MAX ( DISTINCT + 0 ) * 87
----
1

query I rowsort
SELECT + - 76 + - 87
----
-163

query I rowsort
SELECT + + 1 + 46 AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7527
SELECT DISTINCT COUNT( * ) DIV + 86 * 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT COUNT ( * ) / + 86 * 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL - 46 + + - ( - + COUNT( * ) ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL - 46 + + - ( - + COUNT ( * ) ) col1
----
-45

query I rowsort
SELECT + - 41 * + 20 * - 18
----
14760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT DISTINCT ( 3 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT ( 3 ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT ALL + 34 DIV - 8 + + 60 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL + 34 / - 8 + + 60 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT + MAX( ALL - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT + MAX ( ALL - 44 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7533
SELECT DISTINCT - 84 DIV - COUNT( DISTINCT - CAST( - 82 AS SIGNED ) ) + - 10
----
74

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT - 84 / - COUNT ( DISTINCT - CAST ( - 82 AS INTEGER ) ) + - 10
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT + COUNT( * ) * - + 83 * + 13 * - 58 * - - CASE 2 WHEN - - 17 THEN - 46 - - - 42 ELSE NULL END * - ( - - COUNT( DISTINCT 12 ) ) - COALESCE ( COALESCE ( NULLIF ( COUNT( * ), - 71 / + 36 ), 94 ), - + 85 ) + + 29 + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT + COUNT ( * ) * - + 83 * + 13 * - 58 * - - CASE 2 WHEN - - 17 THEN - 46 - - - 42 ELSE NULL END * - ( - - COUNT ( DISTINCT 12 ) ) - COALESCE ( COALESCE ( NULLIF ( COUNT ( * ), - 71 / + 36 ), 94 ), - + 85 ) + + 29 + - 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT - 91 / 94 + + CAST( NULL AS SIGNED ) / 49 - + 27 * - + CAST( - - 54 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT - 91 / 94 + + CAST ( NULL AS INTEGER ) / 49 - + 27 * - + CAST ( - - 54 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL 35 + 40 * COALESCE ( 86, - 94 + - COUNT( * ) ) * + + 62 * - + CAST( NULL AS SIGNED ) * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL 35 + 40 * COALESCE ( 86, - 94 + - COUNT ( * ) ) * + + 62 * - + CAST ( NULL AS INTEGER ) * + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT - COUNT( ALL 60 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - COUNT ( ALL 60 ) AS col0
----
-1

query I rowsort
SELECT ALL 53 + - 42
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ( - 58 ) * + + 71 + + - CASE - 76 WHEN - 15 + 21 + - 11 * 84 * - 93 * 77 THEN NULL WHEN - - 70 * + - SUM( ALL 13 ) - + NULLIF ( 59, + 61 * 60 + + 61 + + 82 + + 56 ) + + 44 + 55 / - CASE 84 WHEN MAX( DISTINCT + 53 ) * + 27 THEN 97 * + - 99 WHEN - 89 THEN - 52 + + 97 ELSE + + 77 / - - 19 + - COUNT( * ) END + - 97 + - 3 / - 71 + 67 - + - 62 + - + 91 THEN + - 5 * 35 WHEN - 10 THEN NULL ELSE NULL END * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT ( - 58 ) * + + 71 + + - CASE - 76 WHEN - 15 + 21 + - 11 * 84 * - 93 * 77 THEN NULL WHEN - - 70 * + - SUM ( ALL 13 ) - + NULLIF ( 59, + 61 * 60 + + 61 + + 82 + + 56 ) + + 44 + 55 / - CASE 84 WHEN MAX ( DISTINCT + 53 ) * + 27 THEN 97 * + - 99 WHEN - 89 THEN - 52 + + 97 ELSE + + 77 / - - 19 + - COUNT ( * ) END + - 97 + - 3 / - 71 + 67 - + - 62 + - + 91 THEN + - 5 * 35 WHEN - 10 THEN NULL ELSE NULL END * 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7540
SELECT ALL - 66 AS col2, - CAST( NULL AS SIGNED ) * + 87 AS col0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-7540
SELECT ALL - 66 AS col2, - CAST ( NULL AS INTEGER ) * + 87 AS col0
----
-66
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7541
SELECT DISTINCT - 69 col0, - 36 + - - COUNT( * ) AS col2
----
-69
-35

skipif mysql # not compatible
query II rowsort label-7541
SELECT DISTINCT - 69 col0, - 36 + - - COUNT ( * ) AS col2
----
-69
-35

query I rowsort
SELECT DISTINCT 52 - - 52 AS col1
----
104

query II rowsort
SELECT + 36, - 6 * 27 col2
----
36
-162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7544
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + + 55 * - COUNT( * ) * + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT - CAST ( NULL AS REAL ) - + + 55 * - COUNT ( * ) * + + 89
----
NULL

query I rowsort
SELECT ALL + 48 * + 96
----
4608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL - COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT + COUNT( * ) AS col2, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7547
SELECT + COUNT ( * ) AS col2, COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL - - CASE + - 34 WHEN - + AVG ( ALL + + 41 ) + + + 29 THEN - - COUNT( - + 35 ) * 54 WHEN - + 81 * + + 84 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - - CASE + - 34 WHEN - + AVG ( ALL + + 41 ) + + + 29 THEN - - COUNT ( - + 35 ) * 54 WHEN - + 81 * + + 84 THEN NULL END
----
NULL

query I rowsort
SELECT 72 + + 40 col0
----
112

query II rowsort
SELECT + 20 AS col1, + 97
----
20
97

query II rowsort
SELECT ALL + 83 * + 77 * + + 69 + 71 AS col1, + 99 + NULLIF ( - - 30, + 84 * - + 35 + - + 53 * - 73 )
----
441050
129

onlyif mysql # aggregate syntax: 
query II rowsort label-7552
SELECT + 70, ( COUNT( * ) ) + - 6 AS col0
----
70
-5

skipif mysql # not compatible
query II rowsort label-7552
SELECT + 70, ( COUNT ( * ) ) + - 6 AS col0
----
70
-5

query I rowsort
SELECT 52 * + + ( + 81 ) AS col0
----
4212

query I rowsort
SELECT 67 * + + 61 + 50 AS col2
----
4137

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL - 11, - 16 + 34 * - + MIN( 94 ) * 89 * - 3 + 20 AS col2
----
-11
853336

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL - 11, - 16 + 34 * - + MIN ( 94 ) * 89 * - 3 + 20 AS col2
----
-11
853336

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT + COUNT( DISTINCT 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7556
SELECT + COUNT ( DISTINCT 0 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT - 89 * COUNT( * ) + + ( MIN( 29 ) ) - - + 68 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7557
SELECT - 89 * COUNT ( * ) + + ( MIN ( 29 ) ) - - + 68 AS col1
----
8

query I rowsort
SELECT + 78 * + 14 + - + 14
----
1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7559
SELECT 31 * - CASE - 7 WHEN + - 82 + + 26 THEN NULL WHEN - COUNT( * ) THEN - - 20 ELSE COUNT( * ) END + + - 8 + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT 31 * - CASE - 7 WHEN + - 82 + + 26 THEN NULL WHEN - COUNT ( * ) THEN - - 20 ELSE COUNT ( * ) END + + - 8 + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 42 + 72 AS col1
----
114

query I rowsort
SELECT DISTINCT + - ( - 19 ) * 37
----
703

query I rowsort
SELECT + 25 * + + 81 AS col2
----
2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT ALL + CAST( - - CASE 16 WHEN 62 + - 80 + + 23 THEN NULL WHEN + 89 THEN SUM( + + 48 ) END AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL + CAST ( - - CASE 16 WHEN 62 + - 80 + + 23 THEN NULL WHEN + 89 THEN SUM ( + + 48 ) END AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT - 64 - 75 + - 74 * COUNT( * ) * - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-7564
SELECT - 64 - 75 + - 74 * COUNT ( * ) * - COUNT ( * )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT ALL 8 + - - 46 DIV + 8 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL 8 + - - 46 / + 8 AS col1
----
13

query I rowsort
SELECT 70 + 17 * - 8 AS col2
----
-66

query II rowsort
SELECT - 11, 7 AS col0
----
-11
7

query I rowsort
SELECT DISTINCT - 48 + - 83 AS col2
----
-131

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7569
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 45 + + ( - 81 ) col0, - 86 AS col2
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-7569
SELECT DISTINCT CAST ( NULL AS REAL ) + - 45 + + ( - 81 ) col0, - 86 AS col2
----
NULL
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT 95 + + + 69 + + 75 - + + COUNT( * ) AS col0
----
238

skipif mysql # not compatible
query I rowsort label-7570
SELECT 95 + + + 69 + + 75 - + + COUNT ( * ) AS col0
----
238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT 5 + - CAST( 31 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-7571
SELECT 5 + - CAST ( 31 AS INTEGER )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT 50 + + CASE - 35 WHEN - NULLIF ( 28, + + 23 ) THEN NULL ELSE + 45 / CAST( NULL AS SIGNED ) + - + 69 - 32 * + 93 + COUNT( * ) + 69 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT 50 + + CASE - 35 WHEN - NULLIF ( 28, + + 23 ) THEN NULL ELSE + 45 / CAST ( NULL AS INTEGER ) + - + 69 - 32 * + 93 + COUNT ( * ) + 69 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7573
SELECT ALL ( COUNT( ALL + ( - 85 ) ) ) + + 4 AS col0, + 78
----
5
78

skipif mysql # not compatible
query II rowsort label-7573
SELECT ALL ( COUNT ( ALL + ( - 85 ) ) ) + + 4 AS col0, + 78
----
5
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7574
SELECT DISTINCT 58 DIV - - ( + 58 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT 58 / - - ( + 58 ) AS col2
----
1

query I rowsort
SELECT 40 + - 88 * + - 58 * + 51 * - + CASE + 32 WHEN NULLIF ( + + 25, 82 * 43 + + 28 ) THEN + - 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT DISTINCT 41 * - + MIN( 65 )
----
-2665

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT 41 * - + MIN ( 65 )
----
-2665

query I rowsort
SELECT ALL ( - 66 ) - + 88 * - 97
----
8470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT DISTINCT CAST( + 9 AS SIGNED ) - - 20
----
29

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT CAST ( + 9 AS INTEGER ) - - 20
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7579
SELECT ( - - 84 ) * 54 * - - 24 * 44 DIV + - 22
----
-217728

skipif mysql # not compatible
query I rowsort label-7579
SELECT ( - - 84 ) * 54 * - - 24 * 44 / + - 22
----
-217728

query I rowsort
SELECT 97 + + NULLIF ( NULLIF ( - 35, - + 96 * 14 + + - 13 ), - 62 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7581
SELECT DISTINCT - - NULLIF ( - 85, + ( + COALESCE ( 82, + ( 76 ) * + + 26 * - CAST( + COUNT( * ) AS SIGNED ) * 37 / + NULLIF ( - + 64, + CAST( NULL AS DECIMAL ) * - CASE - + 62 WHEN ( 44 ) THEN + + 78 WHEN - - 18 THEN NULL END ) ) ) ) - 24
----
-109

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT - - NULLIF ( - 85, + ( + COALESCE ( 82, + ( 76 ) * + + 26 * - CAST ( + COUNT ( * ) AS INTEGER ) * 37 / + NULLIF ( - + 64, + CAST ( NULL AS REAL ) * - CASE - + 62 WHEN ( 44 ) THEN + + 78 WHEN - - 18 THEN NULL END ) ) ) ) - 24
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7582
SELECT COUNT( * ) * + 72 * + - ( - CAST( NULL AS SIGNED ) ) + - 83 - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT COUNT ( * ) * + 72 * + - ( - CAST ( NULL AS INTEGER ) ) + - 83 - - 59
----
NULL

query I rowsort
SELECT ALL - + ( 21 ) AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT + - COALESCE ( CAST( + + 48 AS SIGNED ), 49 + + COUNT( * ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-7584
SELECT + - COALESCE ( CAST ( + + 48 AS INTEGER ), 49 + + COUNT ( * ) ) AS col1
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-7585
SELECT + 73 DIV + + 24 AS col0, 54
----
3
54

skipif mysql # not compatible
query II rowsort label-7585
SELECT + 73 / + + 24 AS col0, 54
----
3
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7586
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) * 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL CASE 40 WHEN + - MAX( DISTINCT 88 ) THEN 57 WHEN - + 94 THEN NULL ELSE - - ( 71 ) END
----
71

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL CASE 40 WHEN + - MAX ( DISTINCT 88 ) THEN 57 WHEN - + 94 THEN NULL ELSE - - ( 71 ) END
----
71

query I rowsort
SELECT 46 + ( 93 )
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7589
SELECT - COUNT( * ) DIV + 35 * + 6 + + + 54 + - - 34 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7589
SELECT - COUNT ( * ) / + 35 * + 6 + + + 54 + - - 34 AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT 5 + - CAST( + + 17 AS SIGNED ) + CAST( 90 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-7590
SELECT 5 + - CAST ( + + 17 AS INTEGER ) + CAST ( 90 AS INTEGER )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - - ( + 42 ) + + - COUNT( * ) * 16
----
26

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - - ( + 42 ) + + - COUNT ( * ) * 16
----
26

query I rowsort
SELECT + 62 + - COALESCE ( + 63, - - ( + ( + 76 ) ), + 87 ) * 24 col1
----
-1450

query I rowsort
SELECT ALL - - 71 + + 55 + + 77 AS col1
----
203

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7594
SELECT CASE - - 0 WHEN + CAST( NULL AS DECIMAL ) THEN - + 53 WHEN - AVG ( 15 ) * + 45 THEN NULL ELSE NULL END / + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT CASE - - 0 WHEN + CAST ( NULL AS REAL ) THEN - + 53 WHEN - AVG ( 15 ) * + 45 THEN NULL ELSE NULL END / + 10
----
NULL

query I rowsort
SELECT ALL - - 54 + + - 83 + + 70 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7596
SELECT DISTINCT - 97 + + + CAST( NULL AS SIGNED ) - 53 - + 87 / CASE COUNT( * ) WHEN 38 THEN - 28 WHEN 23 + ( - 74 ) * 72 * - + MAX( + - 55 ) THEN NULL WHEN + + 53 THEN NULL END * - CAST( NULL AS DECIMAL ) + - - 17 / - - MIN( 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT - 97 + + + CAST ( NULL AS INTEGER ) - 53 - + 87 / CASE COUNT ( * ) WHEN 38 THEN - 28 WHEN 23 + ( - 74 ) * 72 * - + MAX ( + - 55 ) THEN NULL WHEN + + 53 THEN NULL END * - CAST ( NULL AS REAL ) + - - 17 / - - MIN ( 70 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL + - 58 + + COUNT( * ) + - 66 - + - 8 col2
----
-115

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL + - 58 + + COUNT ( * ) + - 66 - + - 8 col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT ALL MIN( ALL 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL MIN ( ALL 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT - CASE - COUNT( * ) WHEN COUNT( ALL - 74 ) THEN - 1 ELSE NULL END * - 10 * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT - CASE - COUNT ( * ) WHEN COUNT ( ALL - 74 ) THEN - 1 ELSE NULL END * - 10 * + 25 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT ALL + 20 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL + 20 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT - ( + 74 ) * 46 * COALESCE ( + - COUNT( * ), + 91, + 51 + + - NULLIF ( - COUNT( * ), - 9 + - 37 + + 10 - ( - 16 ) * - COUNT( * ) ), 60 * - ( - 17 ) ) AS col2
----
3404

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - ( + 74 ) * 46 * COALESCE ( + - COUNT ( * ), + 91, + 51 + + - NULLIF ( - COUNT ( * ), - 9 + - 37 + + 10 - ( - 16 ) * - COUNT ( * ) ), 60 * - ( - 17 ) ) AS col2
----
3404

query I rowsort
SELECT - 36 + + 93 * + 4 * + - 10 AS col0
----
-3756

query I rowsort
SELECT - 94 * ( - 18 ) col0
----
1692

query I rowsort
SELECT ALL + ( 64 ) - + 27
----
37

query II rowsort
SELECT 46 AS col1, 84 * 11 AS col2
----
46
924

query I rowsort
SELECT - 58 - 31 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT + 64 * - + CASE - COUNT( * ) WHEN 77 * 57 * + 22 THEN + - 41 WHEN + 36 + + COUNT( * ) * + 42 * + - 48 THEN NULL ELSE + + 46 + 42 END
----
-5632

skipif mysql # not compatible
query I rowsort label-7607
SELECT + 64 * - + CASE - COUNT ( * ) WHEN 77 * 57 * + 22 THEN + - 41 WHEN + 36 + + COUNT ( * ) * + 42 * + - 48 THEN NULL ELSE + + 46 + 42 END
----
-5632

query I rowsort
SELECT NULLIF ( 60, 6 ) AS col1
----
60

query I rowsort
SELECT CASE 48 WHEN - 87 THEN NULL WHEN - + 10 THEN NULL ELSE 13 END * 21 + 6 AS col2
----
279

query I rowsort
SELECT CASE WHEN ( + 79 ) IS NOT NULL THEN NULL ELSE - 28 END
----
NULL

query I rowsort
SELECT + 34 * - 65 * - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT ALL 40 DIV + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL 40 / + 68 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7613
SELECT + 44 DIV + COUNT( * ) - + + 53
----
-9

skipif mysql # not compatible
query I rowsort label-7613
SELECT + 44 / + COUNT ( * ) - + + 53
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT ALL + CAST( - 26 AS SIGNED ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL + CAST ( - 26 AS INTEGER ) col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT DISTINCT + SUM( - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT + SUM ( - 10 )
----
-10

query II rowsort
SELECT + - 46 - - ( 31 ) AS col1, + 47
----
-15
47

query I rowsort
SELECT ALL + 35 * - - 64
----
2240

onlyif mysql # aggregate syntax: 
query II rowsort label-7618
SELECT + 5, + 88 - SUM( DISTINCT - 60 ) * - 86 * + + 39 * + COALESCE ( + + 31, - COALESCE ( 60, - - ( - 74 ) + 20 ) ) + 73 col1
----
5
-6238279

skipif mysql # not compatible
query II rowsort label-7618
SELECT + 5, + 88 - SUM ( DISTINCT - 60 ) * - 86 * + + 39 * + COALESCE ( + + 31, - COALESCE ( 60, - - ( - 74 ) + 20 ) ) + 73 col1
----
5
-6238279

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT + COALESCE ( - 46, - + CASE - + 91 WHEN + COUNT( * ) THEN NULL WHEN 89 * - 66 / + COUNT( * ) + + - ( 15 ) THEN NULL WHEN 55 THEN + 49 + + COUNT( * ) WHEN - + ( CASE COUNT( DISTINCT - 44 ) WHEN + 42 THEN + + NULLIF ( + 32, - 12 * + + 22 * - - 50 ) + 57 + - - 88 * 2 END ) - - 58 THEN NULL END, + 25 ) * - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7619
SELECT + COALESCE ( - 46, - + CASE - + 91 WHEN + COUNT ( * ) THEN NULL WHEN 89 * - 66 / + COUNT ( * ) + + - ( 15 ) THEN NULL WHEN 55 THEN + 49 + + COUNT ( * ) WHEN - + ( CASE COUNT ( DISTINCT - 44 ) WHEN + 42 THEN + + NULLIF ( + 32, - 12 * + + 22 * - - 50 ) + 57 + - - 88 * 2 END ) - - 58 THEN NULL END, + 25 ) * - COUNT ( * ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT ALL - CAST( NULL AS SIGNED ) * 91 + - NULLIF ( COUNT( * ), - - 69 ) - + + ( + 94 ) * - MIN( DISTINCT 41 ) * - - 59 + - ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL - CAST ( NULL AS INTEGER ) * 91 + - NULLIF ( COUNT ( * ), - - 69 ) - + + ( + 94 ) * - MIN ( DISTINCT 41 ) * - - 59 + - ( 39 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7621
SELECT DISTINCT + + MAX( + 5 ) * + 14 * - + 45 + 83 - + CAST( + COALESCE ( - + CAST( 18 AS SIGNED ), + CAST( + 93 AS SIGNED ) + + + CAST( 97 AS DECIMAL ), - + AVG ( DISTINCT + 49 ) ) AS SIGNED ) + - 97 * + 92 * 8 * - 85 - + ( - 71 ) * + COUNT( * ) + + 87 + - 10 DIV - COALESCE ( - 72, + ( 39 ) DIV - 49, - - 68 * - - COUNT( * ) + + 80 ) + 87
----
6065516

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT + + MAX ( + 5 ) * + 14 * - + 45 + 83 - + CAST ( + COALESCE ( - + CAST ( 18 AS INTEGER ), + CAST ( + 93 AS INTEGER ) + + + CAST ( 97 AS REAL ), - + AVG ( DISTINCT + 49 ) ) AS INTEGER ) + - 97 * + 92 * 8 * - 85 - + ( - 71 ) * + COUNT ( * ) + + 87 + - 10 / - COALESCE ( - 72, + ( 39 ) / - 49, - - 68 * - - COUNT ( * ) + + 80 ) + 87
----
6065516

query I rowsort
SELECT DISTINCT 65 * - 19 * + 80 + - 26 * 1 + - + 65
----
-98891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT CAST( - ( + + 73 ) AS SIGNED ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-7623
SELECT CAST ( - ( + + 73 ) AS INTEGER ) AS col2
----
-73

query I rowsort
SELECT ALL - 80 * 55 + - + 30 * + + ( 91 ) AS col0
----
-7130

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT MIN( DISTINCT - 40 ) * 95 + + COUNT( * ) * + + CASE 13 WHEN - + 33 / - MAX( - 59 ) - 23 + - - COUNT( * ) + - 99 * 24 * - 60 * 71 THEN - ( - 45 ) * + MAX( DISTINCT + 21 ) / 88 + - - 25 + + NULLIF ( - COUNT( * ), + + 1 * ( - 47 ) ) * - 43 WHEN + MAX( + 49 ) * 51 + - 87 * COUNT( * ) + + 19 + - 42 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT MIN ( DISTINCT - 40 ) * 95 + + COUNT ( * ) * + + CASE 13 WHEN - + 33 / - MAX ( - 59 ) - 23 + - - COUNT ( * ) + - 99 * 24 * - 60 * 71 THEN - ( - 45 ) * + MAX ( DISTINCT + 21 ) / 88 + - - 25 + + NULLIF ( - COUNT ( * ), + + 1 * ( - 47 ) ) * - 43 WHEN + MAX ( + 49 ) * 51 + - 87 * COUNT ( * ) + + 19 + - 42 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT 96 AS col2, 16 + - 58
----
96
-42

query I rowsort
SELECT ALL - 68 + 22 AS col1
----
-46

query I rowsort
SELECT + 82 * - 11 AS col2
----
-902

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT ALL 52 DIV - ( 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL 52 / - ( 43 )
----
-1

query I rowsort
SELECT + 26 + ( - - 54 )
----
80

query I rowsort
SELECT + 25 + 31
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT - 30 DIV - 17 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7632
SELECT - 30 / - 17 AS col2
----
1

query I rowsort
SELECT ALL - 52 + + + 93 AS col2
----
41

query I rowsort
SELECT + 42 * 0 AS col2
----
0

query I rowsort
SELECT - 48 * + ( 35 ) col1
----
-1680

query II rowsort
SELECT 23 AS col0, 44
----
23
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL + 88 - - 77 * 57 + - + 24 * CASE + 1 WHEN - + COUNT( * ) THEN - - 98 ELSE NULL END + + - SUM( ALL + 82 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + 88 - - 77 * 57 + - + 24 * CASE + 1 WHEN - + COUNT ( * ) THEN - - 98 ELSE NULL END + + - SUM ( ALL + 82 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT - 95 + + + 78 DIV + 14
----
-90

skipif mysql # not compatible
query I rowsort label-7638
SELECT - 95 + + + 78 / + 14
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL ( + + COUNT( 48 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL ( + + COUNT ( 48 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - 12 * - COUNT( ALL - - 63 )
----
12

skipif mysql # not compatible
query I rowsort label-7640
SELECT - 12 * - COUNT ( ALL - - 63 )
----
12

query I rowsort
SELECT ALL 77 * + - 76 * 47
----
-275044

query II rowsort
SELECT 15, + 98 * - + 17 AS col1
----
15
-1666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7643
SELECT ALL + ( - - 8 ) DIV COUNT( * ) + + - 97 + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + ( - - 8 ) / COUNT ( * ) + + - 97 + COUNT ( * )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT - CAST( - 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-7644
SELECT - CAST ( - 95 AS INTEGER )
----
95

query I rowsort
SELECT - 41 - NULLIF ( 31, + + 52 ) AS col2
----
-72

query I rowsort
SELECT - 52 * 97 * + 30
----
-151320

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - NULLIF ( - COUNT( * ), - - 31 * + + COUNT( * ) + - - 46 ) + COUNT( ALL - 70 )
----
2

skipif mysql # not compatible
query I rowsort label-7647
SELECT - NULLIF ( - COUNT ( * ), - - 31 * + + COUNT ( * ) + - - 46 ) + COUNT ( ALL - 70 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL ( + - SUM( DISTINCT 99 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL ( + - SUM ( DISTINCT 99 ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - COUNT( 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-7649
SELECT - COUNT ( 24 )
----
-1

query I rowsort
SELECT ALL - 26 * - 57 * 0 col1
----
0

query I rowsort
SELECT 90 * + + 20 + + 19 AS col2
----
1819

query I rowsort
SELECT ALL - 17 * + - 21
----
357

query I rowsort
SELECT - 22 * - 18 AS col0
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - + MAX( - 68 ) * 20 + - + 19
----
1341

skipif mysql # not compatible
query I rowsort label-7654
SELECT - + MAX ( - 68 ) * 20 + - + 19
----
1341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7655
SELECT - - COALESCE ( - 4, 64, + + COUNT( * ) * 58 * 29 - + 36 ) DIV - 27 * + + 21
----
0

skipif mysql # not compatible
query I rowsort label-7655
SELECT - - COALESCE ( - 4, 64, + + COUNT ( * ) * 58 * 29 - + 36 ) / - 27 * + + 21
----
0

query I rowsort
SELECT + - ( - - 45 ) * + - 90 AS col1
----
4050

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT ALL 54 DIV + - 88 + + + 87
----
87

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL 54 / + - 88 + + + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT - COUNT( * ) + + - 51
----
-52

skipif mysql # not compatible
query I rowsort label-7658
SELECT - COUNT ( * ) + + - 51
----
-52

query II rowsort
SELECT + - 45, 67 col1
----
-45
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL 62 * 23 + + 66 + 90 * - - 60 * + COUNT( * ) - - 30
----
6922

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL 62 * 23 + + 66 + 90 * - - 60 * + COUNT ( * ) - - 30
----
6922

query I rowsort
SELECT ALL + - ( - 78 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7662
SELECT - COUNT( DISTINCT - - 54 ) / NULLIF ( + 22, + 46 ) * + 5 * + CASE + COUNT( * ) WHEN 87 + 92 THEN NULL WHEN - CASE + ( 31 ) WHEN + + CAST( - ( MAX( ALL + - 12 ) ) AS SIGNED ) + ( 3 ) + + 81 THEN NULL WHEN COALESCE ( + ( + + 38 ), - - 6 * - 56 * 4 * 95 ) * 39 THEN + NULLIF ( + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) + - 27 + - 45 ELSE NULL END * COALESCE ( 18, 86 * + 47 - 65 ) THEN + 29 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT - COUNT ( DISTINCT - - 54 ) / NULLIF ( + 22, + 46 ) * + 5 * + CASE + COUNT ( * ) WHEN 87 + 92 THEN NULL WHEN - CASE + ( 31 ) WHEN + + CAST ( - ( MAX ( ALL + - 12 ) ) AS INTEGER ) + ( 3 ) + + 81 THEN NULL WHEN COALESCE ( + ( + + 38 ), - - 6 * - 56 * 4 * 95 ) * 39 THEN + NULLIF ( + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) + - 27 + - 45 ELSE NULL END * COALESCE ( 18, 86 * + 47 - 65 ) THEN + 29 END AS col1
----
NULL

query I rowsort
SELECT ALL 41 * 64 * - 83
----
-217792

query I rowsort
SELECT DISTINCT 45 + + 83 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT MIN( + ( - + 97 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7665
SELECT MIN ( + ( - + 97 ) ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT - CASE - ( + 3 ) WHEN 33 / 15 THEN + 21 * 17 * - 73 * COUNT( * ) ELSE - + 67 - + 28 - + 74 * + - NULLIF ( - 52, + ( 69 ) ) * + 65 * - 63 END
----
-15757465

skipif mysql # not compatible
query I rowsort label-7666
SELECT - CASE - ( + 3 ) WHEN 33 / 15 THEN + 21 * 17 * - 73 * COUNT ( * ) ELSE - + 67 - + 28 - + 74 * + - NULLIF ( - 52, + ( 69 ) ) * + 65 * - 63 END
----
-15757465

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT 93 * - - COUNT( * ) + + COUNT( * ) + - COUNT( * ) * + - 68 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-7667
SELECT 93 * - - COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) * + - 68 AS col0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT DISTINCT CAST( + ( + 27 ) AS SIGNED ) - - 43
----
70

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT CAST ( + ( + 27 ) AS INTEGER ) - - 43
----
70

query I rowsort
SELECT ALL ( 66 ) - - - 95 AS col1
----
-29

query I rowsort
SELECT ALL 83 - - 11
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7671
SELECT 56 + - 37 - + + 77 + SUM( - CAST( NULL AS SIGNED ) ) * COUNT( - ( - ( + - 40 ) ) ) * - - 99 * + CAST( NULL AS DECIMAL ) + + ( + + 50 ) + - 67 + + - CAST( NULL AS SIGNED ) * 96 + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT 56 + - 37 - + + 77 + SUM ( - CAST ( NULL AS INTEGER ) ) * COUNT ( - ( - ( + - 40 ) ) ) * - - 99 * + CAST ( NULL AS REAL ) + + ( + + 50 ) + - 67 + + - CAST ( NULL AS INTEGER ) * 96 + 65
----
NULL

query I rowsort
SELECT 65 + + + 17
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT COALESCE ( - COUNT( * ), - COUNT( * ) ) * + 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-7673
SELECT COALESCE ( - COUNT ( * ), - COUNT ( * ) ) * + 84 AS col1
----
-84

query I rowsort
SELECT 75 + - + 69 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT DISTINCT 82 * - 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT 82 * - 21 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT CAST( NULL AS SIGNED ) * + NULLIF ( - - COALESCE ( 17, + ( + - 25 ) - - - 40, + 73 / + 75 - 24 / 38 + 53 * MIN( ALL + 9 ) ), 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + NULLIF ( - - COALESCE ( 17, + ( + - 25 ) - - - 40, + 73 / + 75 - 24 / 38 + 53 * MIN ( ALL + 9 ) ), 62 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT 71 * + - 77 DIV + 1 AS col0
----
-5467

skipif mysql # not compatible
query I rowsort label-7677
SELECT 71 * + - 77 / + 1 AS col0
----
-5467

query I rowsort
SELECT 74 * - 79
----
-5846

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - MIN( 24 ) - - - 80
----
-104

skipif mysql # not compatible
query I rowsort label-7679
SELECT - MIN ( 24 ) - - - 80
----
-104

query I rowsort
SELECT + 65 * + 51 AS col1
----
3315

query I rowsort
SELECT DISTINCT - 16 + + 16 AS col2
----
0

query I rowsort
SELECT DISTINCT - 14 + - - 85
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7683
SELECT DISTINCT + 34 + + ( MAX( 61 ) ) * 1 * - - NULLIF ( + ( - ( - 84 ) ), - 91 ) / + + 32 + CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT + 34 + + ( MAX ( 61 ) ) * 1 * - - NULLIF ( + ( - ( - 84 ) ), - 91 ) / + + 32 + CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 23 * - - ( - 24 ) * + 82 + - 10
----
-45274

query I rowsort
SELECT ALL + + 27 + + 30
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7686
SELECT MAX( DISTINCT - + 19 ) AS col1, ( ( - + CAST( NULL AS SIGNED ) ) )
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-7686
SELECT MAX ( DISTINCT - + 19 ) AS col1, ( ( - + CAST ( NULL AS INTEGER ) ) )
----
-19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL + + 35 - MAX( + 57 ) + - 47 + NULLIF ( - 62, - 45 - - 91 ) + - 62 + 52 + + 28 * 90 * - 65 * + 92 + - - COUNT( * )
----
-15069740

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL + + 35 - MAX ( + 57 ) + - 47 + NULLIF ( - 62, - 45 - - 91 ) + - 62 + 52 + + 28 * 90 * - 65 * + 92 + - - COUNT ( * )
----
-15069740

query I rowsort
SELECT - 17 - 52
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + NULLIF ( SUM( + 34 ), 38 ) * MAX( - + 39 ) AS col0
----
-1326

skipif mysql # not compatible
query I rowsort label-7689
SELECT + NULLIF ( SUM ( + 34 ), 38 ) * MAX ( - + 39 ) AS col0
----
-1326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT DISTINCT - CASE 61 WHEN - 99 * + 98 * - ( - + ( 12 ) ) THEN + - CAST( NULL AS SIGNED ) END / + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT - CASE 61 WHEN - 99 * + 98 * - ( - + ( 12 ) ) THEN + - CAST ( NULL AS INTEGER ) END / + 86 AS col0
----
NULL

query II rowsort
SELECT ALL - 95 AS col1, 93 + - - 37 + + - ( 95 ) * - - 14 * + 3 * + 44 + + 82
----
-95
-175348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7692
SELECT DISTINCT + COUNT( * ) DIV - ( 55 )
----
0

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT + COUNT ( * ) / - ( 55 )
----
0

query I rowsort
SELECT ALL 83 * + + 17
----
1411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL COUNT( DISTINCT - + 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL COUNT ( DISTINCT - + 29 ) AS col2
----
1

query II rowsort
SELECT - 71 * - 22 * - 95 * + ( 19 ) + - + 67, 83 AS col1
----
-2819477
83

query II rowsort
SELECT 62 AS col2, 0
----
62
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7698
SELECT ALL 8, - 30 + + + CAST( + - COUNT( DISTINCT ( - 25 ) ) AS SIGNED ) * + CAST( - 15 AS SIGNED ) col2
----
8
-15

skipif mysql # not compatible
query II rowsort label-7698
SELECT ALL 8, - 30 + + + CAST ( + - COUNT ( DISTINCT ( - 25 ) ) AS INTEGER ) * + CAST ( - 15 AS INTEGER ) col2
----
8
-15

query II rowsort
SELECT 78 AS col1, - 22 - + - 71
----
78
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT COUNT( * ) + + ( - + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7700
SELECT COUNT ( * ) + + ( - + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT CASE - COUNT( * ) WHEN 24 THEN CASE + + 0 WHEN + SUM( 6 ) THEN NULL ELSE - - 84 END WHEN + 10 THEN NULL ELSE + 82 + - + 30 END * - + 61 AS col1
----
-3172

skipif mysql # not compatible
query I rowsort label-7701
SELECT CASE - COUNT ( * ) WHEN 24 THEN CASE + + 0 WHEN + SUM ( 6 ) THEN NULL ELSE - - 84 END WHEN + 10 THEN NULL ELSE + 82 + - + 30 END * - + 61 AS col1
----
-3172

query I rowsort
SELECT ALL 76 + 4 AS col0
----
80

query I rowsort
SELECT ALL 69 + + - 17
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7704
SELECT MIN( DISTINCT - 35 ) + - 2 AS col2, - 77 DIV 48 DIV - NULLIF ( + 50, + 80 + - + ( + 11 ) * - ( - 13 ) ) col1
----
-37
0

skipif mysql # not compatible
query II rowsort label-7704
SELECT MIN ( DISTINCT - 35 ) + - 2 AS col2, - 77 / 48 / - NULLIF ( + 50, + 80 + - + ( + 11 ) * - ( - 13 ) ) col1
----
-37
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7705
SELECT CAST( + COUNT( * ) AS SIGNED ) * + 15 + - 89 + 58 - + - 88 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7705
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + 15 + - 89 + 58 - + - 88 AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT DISTINCT MIN( DISTINCT - CASE + CAST( NULL AS SIGNED ) WHEN + 26 THEN - + 82 END ) + 75 - + 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT MIN ( DISTINCT - CASE + CAST ( NULL AS INTEGER ) WHEN + 26 THEN - + 82 END ) + 75 - + 4 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT - SUM( + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7707
SELECT - SUM ( + 71 ) AS col0
----
-71

query I rowsort
SELECT ALL 16 * + COALESCE ( + 39, + 58 * + 13 ) * - ( + 14 ) AS col1
----
-8736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT DISTINCT - 85 + CAST( + - 20 AS SIGNED ) + - 30 + - ( 23 )
----
-158

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT - 85 + CAST ( + - 20 AS INTEGER ) + - 30 + - ( 23 )
----
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7710
SELECT - 29 DIV 62 DIV 76 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7710
SELECT - 29 / 62 / 76 + + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT + CAST( - 30 AS SIGNED ) + - 77 * 22
----
-1724

skipif mysql # not compatible
query I rowsort label-7711
SELECT + CAST ( - 30 AS INTEGER ) + - 77 * 22
----
-1724

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT - 91 DIV + 13 - + 25
----
-32

skipif mysql # not compatible
query I rowsort label-7712
SELECT - 91 / + 13 - + 25
----
-32

query I rowsort
SELECT - - 91 * 32
----
2912

query I rowsort
SELECT ALL + ( - ( - 7 ) ) * - 44 * - 50 - - 53 + - + 84 AS col2
----
15369

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT - 99 * + 41 - - ( + 4 ) + - 81 + - CASE - 35 WHEN + 52 THEN SUM( - 77 ) + 21 + + - 40 END * - 84 * 51 * + CASE - COUNT( * ) WHEN 94 THEN 44 END + + ( - 5 ) + + + 6 * 86 * + 11 * - ( + 19 ) * + NULLIF ( - 65, + 71 * - 9 * 65 + + + COUNT( * ) + + - 3 + + 47 * 96 + + 47 - + + 18 * + 1 + + 73 ) / - 68 + 81 / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT - 99 * + 41 - - ( + 4 ) + - 81 + - CASE - 35 WHEN + 52 THEN SUM ( - 77 ) + 21 + + - 40 END * - 84 * 51 * + CASE - COUNT ( * ) WHEN 94 THEN 44 END + + ( - 5 ) + + + 6 * 86 * + 11 * - ( + 19 ) * + NULLIF ( - 65, + 71 * - 9 * 65 + + + COUNT ( * ) + + - 3 + + 47 * 96 + + 47 - + + 18 * + 1 + + 73 ) / - 68 + 81 / 83
----
NULL

query II rowsort
SELECT DISTINCT + 2, 18 AS col2
----
2
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7717
SELECT ALL - - 59 * - - 88 - - + 20 + - 88 DIV - NULLIF ( + COUNT( * ), + + COUNT( * ) - + + ( - + NULLIF ( + 18, 2 - - 77 ) ) )
----
5300

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL - - 59 * - - 88 - - + 20 + - 88 / - NULLIF ( + COUNT ( * ), + + COUNT ( * ) - + + ( - + NULLIF ( + 18, 2 - - 77 ) ) )
----
5300

query I rowsort
SELECT DISTINCT + 48 * - 83 AS col1
----
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT + COUNT( * ) * - 70 + + 85
----
15

skipif mysql # not compatible
query I rowsort label-7719
SELECT + COUNT ( * ) * - 70 + + 85
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT - COUNT( * ) + + 64 - 95
----
-32

skipif mysql # not compatible
query I rowsort label-7720
SELECT - COUNT ( * ) + + 64 - 95
----
-32

query I rowsort
SELECT - 12 * - - 64 col1
----
-768

query I rowsort
SELECT - 18 + - 75
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT NULLIF ( - NULLIF ( - 60, - 70 ), + 35 * + + COUNT( * ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT NULLIF ( - NULLIF ( - 60, - 70 ), + 35 * + + COUNT ( * ) ) AS col2
----
60

query I rowsort
SELECT ALL + 30 + 28
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7725
SELECT - 82 * + 55, ( + 13 ) * - CASE - + 16 WHEN + - MIN( DISTINCT + 40 ) THEN - COUNT( * ) WHEN + 27 THEN + 92 END AS col0
----
-4510
NULL

skipif mysql # not compatible
query II rowsort label-7725
SELECT - 82 * + 55, ( + 13 ) * - CASE - + 16 WHEN + - MIN ( DISTINCT + 40 ) THEN - COUNT ( * ) WHEN + 27 THEN + 92 END AS col0
----
-4510
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT - 85 + - COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - 85 + - COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7727
SELECT - COUNT( DISTINCT 94 ), - 68 AS col1
----
-1
-68

skipif mysql # not compatible
query II rowsort label-7727
SELECT - COUNT ( DISTINCT 94 ), - 68 AS col1
----
-1
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7728
SELECT + 52 * - + CAST( NULL AS DECIMAL ) / + 56 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT + 52 * - + CAST ( NULL AS REAL ) / + 56 col2
----
NULL

query I rowsort
SELECT - COALESCE ( + 32, + 97 + 60 ) * + 75 AS col1
----
-2400

query I rowsort
SELECT + 28 * 94 AS col2
----
2632

query I rowsort
SELECT ALL + 95 + - 51 col0
----
44

query I rowsort
SELECT - NULLIF ( + ( - 50 ), - + ( - 6 ) * 52 ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT - NULLIF ( - CAST( 12 AS SIGNED ), + COUNT( * ) ) col2
----
12

skipif mysql # not compatible
query I rowsort label-7733
SELECT - NULLIF ( - CAST ( 12 AS INTEGER ), + COUNT ( * ) ) col2
----
12

query II rowsort
SELECT DISTINCT 23 - - 98 AS col1, 57 - 8 AS col2
----
121
49

query I rowsort
SELECT CASE - 66 WHEN - 31 THEN - + 87 + + - 36 * + 75 * - ( - 10 ) WHEN - 41 THEN + 41 + - 79 - 48 END AS col1
----
NULL

query I rowsort
SELECT ALL - 1 - 45 * - ( + 68 ) AS col2
----
3059

query I rowsort
SELECT + 10 * + + 29 AS col2
----
290

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT - + COUNT( * ) + + 54 * - - 35 + 84 col1, 27 AS col2
----
1973
27

skipif mysql # not compatible
query II rowsort label-7738
SELECT - + COUNT ( * ) + + 54 * - - 35 + 84 col1, 27 AS col2
----
1973
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT - - 35 DIV 31 + + 12
----
13

skipif mysql # not compatible
query I rowsort label-7739
SELECT - - 35 / 31 + + 12
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7740
SELECT + 37 DIV 27, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-7740
SELECT + 37 / 27, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT DISTINCT 34 * - + 80
----
-2720

query I rowsort
SELECT ALL - ( + + 16 ) * + + 44
----
-704

query I rowsort
SELECT DISTINCT + - ( 98 ) col0
----
-98

query I rowsort
SELECT ALL 96 * + 2
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT ALL - - 17 DIV 40 DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - - 17 / 40 / + 11
----
0

query I rowsort
SELECT + 60 * - + 83 AS col0
----
-4980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT ( - COALESCE ( - - 15, 30, 88 + + ( - ( - 52 ) ) - - 32 + + 72 + - 91 * + + 25 + + 21 * - - CASE - + 75 WHEN - - 37 THEN NULL WHEN + 89 THEN + 64 * + MAX( DISTINCT - - 30 ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) ELSE NULL END * - 33 ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7747
SELECT ( - COALESCE ( - - 15, 30, 88 + + ( - ( - 52 ) ) - - 32 + + 72 + - 91 * + + 25 + + 21 * - - CASE - + 75 WHEN - - 37 THEN NULL WHEN + 89 THEN + 64 * + MAX ( DISTINCT - - 30 ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) ELSE NULL END * - 33 ) ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ( COALESCE ( - + 34, - COUNT( * ) + - - 28 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7748
SELECT ( COALESCE ( - + 34, - COUNT ( * ) + - - 28 ) ) AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT ALL 6 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL 6 / - 56
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT + 12 DIV - COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7750
SELECT + 12 / - COUNT ( * ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT NULLIF ( + + ( + 99 ), COUNT( * ) + - 98 ) AS col2, - ( 38 ) + - 70
----
99
-108

skipif mysql # not compatible
query II rowsort label-7751
SELECT NULLIF ( + + ( + 99 ), COUNT ( * ) + - 98 ) AS col2, - ( 38 ) + - 70
----
99
-108

query I rowsort
SELECT + 30 - - 79 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT 37 * + + 14 * CASE - + COUNT( * ) WHEN 52 + + - 70 THEN 64 + ( + 98 ) WHEN + 13 THEN NULL END * - COUNT( * ) + + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT 37 * + + 14 * CASE - + COUNT ( * ) WHEN 52 + + - 70 THEN 64 + ( + 98 ) WHEN + 13 THEN NULL END * - COUNT ( * ) + + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL - 72 * + MAX( DISTINCT 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL - 72 * + MAX ( DISTINCT 0 ) AS col2
----
0

query I rowsort
SELECT - 58 * 47
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT NULLIF ( COUNT( * ), - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-7756
SELECT NULLIF ( COUNT ( * ), - 88 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7757
SELECT - ( - + COUNT( * ) ) - - MAX( DISTINCT 94 ) * 66 DIV + ( + 48 )
----
130

skipif mysql # not compatible
query I rowsort label-7757
SELECT - ( - + COUNT ( * ) ) - - MAX ( DISTINCT 94 ) * 66 / + ( + 48 )
----
130

query I rowsort
SELECT + 22 + 31
----
53

query I rowsort
SELECT - ( - ( + 54 ) ) + + + 56 * 5 * - 54 * + ( + 39 ) * + - ( - 51 )
----
-30073626

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT DISTINCT CASE COUNT( * ) WHEN + 56 + 16 * 18 THEN + 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT CASE COUNT ( * ) WHEN + 56 + 16 * 18 THEN + 74 END AS col1
----
NULL

query I rowsort
SELECT 9 + - 41 AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT ALL - 37 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - 37 / 55
----
0

query I rowsort
SELECT 15 * + 42 AS col1
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7764
SELECT DISTINCT + COALESCE ( 72, CAST( CASE 95 WHEN 79 * 65 THEN + COUNT( - 81 ) * COUNT( * ) WHEN + 36 * 89 + CASE - 90 WHEN 11 + 94 / 56 THEN 12 * + COALESCE ( - ( + 27 ), 87 * - ( CAST( NULL AS DECIMAL ) ) ) WHEN - 16 + COUNT( COALESCE ( - 61, - 95 * 9 ) - - 31 ) * - 7 THEN NULL END THEN NULL ELSE NULL END AS SIGNED ) ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT + COALESCE ( 72, CAST ( CASE 95 WHEN 79 * 65 THEN + COUNT ( - 81 ) * COUNT ( * ) WHEN + 36 * 89 + CASE - 90 WHEN 11 + 94 / 56 THEN 12 * + COALESCE ( - ( + 27 ), 87 * - ( CAST ( NULL AS REAL ) ) ) WHEN - 16 + COUNT ( COALESCE ( - 61, - 95 * 9 ) - - 31 ) * - 7 THEN NULL END THEN NULL ELSE NULL END AS INTEGER ) ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT COUNT( * ) + 22 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7765
SELECT COUNT ( * ) + 22 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT 44 + - 38 DIV - 80
----
44

skipif mysql # not compatible
query I rowsort label-7766
SELECT 44 + - 38 / - 80
----
44

query I rowsort
SELECT 15 * 43 col1
----
645

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT COUNT( * ) + + 14 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7768
SELECT COUNT ( * ) + + 14 AS col1
----
15

query I rowsort
SELECT DISTINCT - 47 * - CASE - 40 WHEN 6 THEN ( + 61 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7770
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT - 53 * - 53 + + 95
----
2904

query I rowsort
SELECT ( - 58 ) - - 4 * 78
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT MIN( + ( 54 ) ) * - 46
----
-2484

skipif mysql # not compatible
query I rowsort label-7773
SELECT MIN ( + ( 54 ) ) * - 46
----
-2484

query I rowsort
SELECT DISTINCT 65 + + 23
----
88

query I rowsort
SELECT ALL 24 + - 61 AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7776
SELECT - COUNT( * ) DIV - 52 + COUNT( DISTINCT - 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7776
SELECT - COUNT ( * ) / - 52 + COUNT ( DISTINCT - 35 ) AS col2
----
1

query I rowsort
SELECT ALL 64 + 41 AS col2
----
105

query I rowsort
SELECT DISTINCT 23 + - 19
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT 90 + - SUM( 25 )
----
65

skipif mysql # not compatible
query I rowsort label-7779
SELECT 90 + - SUM ( 25 )
----
65

query I rowsort
SELECT 0 + + 80 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7781
SELECT CASE - 11 WHEN + 66 * + 17 THEN NULL WHEN + 42 - + CASE 93 WHEN 63 THEN + COUNT( * ) * 46 + CAST( + 0 AS SIGNED ) WHEN 55 + 6 THEN + 69 END * 93 THEN NULL ELSE + 44 DIV 31 END * + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7781
SELECT CASE - 11 WHEN + 66 * + 17 THEN NULL WHEN + 42 - + CASE 93 WHEN 63 THEN + COUNT ( * ) * 46 + CAST ( + 0 AS INTEGER ) WHEN 55 + 6 THEN + 69 END * 93 THEN NULL ELSE + 44 / 31 END * + 18 AS col0
----
18

query I rowsort
SELECT ALL 11 - - COALESCE ( - 52 + 85, - 38 * - 96 ) * 58 AS col0
----
1925

query I rowsort
SELECT 80 * 41
----
3280

query I rowsort
SELECT DISTINCT - 50 - - 2 * 91
----
132

query I rowsort
SELECT DISTINCT - + 68 * + 8 AS col2
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT 44 - - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT 44 - - COUNT ( * ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT + COALESCE ( 61, 19 ) * COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7787
SELECT + COALESCE ( 61, 19 ) * COUNT ( * ) AS col2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT ALL - CAST( - 26 AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - CAST ( - 26 AS INTEGER ) AS col1
----
26

query I rowsort
SELECT ALL 28 * 60 AS col0
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL MIN( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL MIN ( ALL + 7 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT 59 DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-7791
SELECT 59 / + 40
----
1

query I rowsort
SELECT ALL + - 0 + + 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT MAX( ALL 11 ) + - 29 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7793
SELECT MAX ( ALL 11 ) + - 29 AS col2
----
-18

query I rowsort
SELECT + 17 + 94 AS col2
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT COALESCE ( 12, + 39 + + 2 ) DIV - ( + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT COALESCE ( 12, + 39 + + 2 ) / - ( + 99 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7796
SELECT + - 97 DIV COUNT( * ) + - 80
----
-177

skipif mysql # not compatible
query I rowsort label-7796
SELECT + - 97 / COUNT ( * ) + - 80
----
-177

query I rowsort
SELECT 75 * 89
----
6675

query I rowsort
SELECT ALL 17 * 95 + 75 * + 56
----
5815

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL MIN( ALL - 78 ) * ( 9 ) + + 10
----
-692

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL MIN ( ALL - 78 ) * ( 9 ) + + 10
----
-692

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL - ( + + MAX( DISTINCT 60 ) ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL - ( + + MAX ( DISTINCT 60 ) ) col1
----
-60

query I rowsort
SELECT 59 + - 5 col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT DISTINCT - CAST( - 3 AS SIGNED ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT - CAST ( - 3 AS INTEGER ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT SUM( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-7803
SELECT SUM ( - 78 )
----
-78

query I rowsort
SELECT ALL CASE + 76 WHEN 48 THEN - 61 ELSE NULL END * - 74
----
NULL

query I rowsort
SELECT ALL 75 * + 18 AS col2
----
1350

query I rowsort
SELECT + 87 * + 53
----
4611

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT + - 1 * + 62 - + 59 * - 78 + COUNT( * ) AS col2
----
4541

skipif mysql # not compatible
query I rowsort label-7807
SELECT + - 1 * + 62 - + 59 * - 78 + COUNT ( * ) AS col2
----
4541

query I rowsort
SELECT + - 8 - CASE + 74 WHEN 29 THEN 55 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7809
SELECT + 16 DIV + + 97 DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT + 16 / + + 97 / COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT + + 38 + + - 27 + 76 DIV 77 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7810
SELECT + + 38 + + - 27 + 76 / 77 AS col2
----
11

query I rowsort
SELECT - 99 * + 31 * + 44 + - 80
----
-135116

query I rowsort
SELECT - 4 * + - 95 * + 81
----
30780

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT ALL 73 DIV + ( + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL 73 / + ( + 82 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + 43 + - 9 * - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7814
SELECT + 43 + - 9 * - COUNT ( * )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7815
SELECT + 57 + CAST( NULL AS SIGNED ) * + CASE + 77 WHEN - 4 * SUM( 63 ) THEN CAST( NULL AS SIGNED ) / 24 ELSE 74 - 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT + 57 + CAST ( NULL AS INTEGER ) * + CASE + 77 WHEN - 4 * SUM ( 63 ) THEN CAST ( NULL AS INTEGER ) / 24 ELSE 74 - 16 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 50 + + 96 * 6 AS col0
----
626

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - - ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7817
SELECT - - ( - + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 70 + 24 + 28 * 93
----
2558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT - NULLIF ( 43, 22 + NULLIF ( + CAST( NULL AS SIGNED ), + NULLIF ( CAST( NULL AS SIGNED ), - 30 * 20 - COUNT( + 41 + + 78 ) * + COUNT( * ) ) + - ( CASE + 6 WHEN 21 THEN + 48 WHEN 68 * + 47 THEN 27 ELSE + 53 END ) ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7819
SELECT - NULLIF ( 43, 22 + NULLIF ( + CAST ( NULL AS INTEGER ), + NULLIF ( CAST ( NULL AS INTEGER ), - 30 * 20 - COUNT ( + 41 + + 78 ) * + COUNT ( * ) ) + - ( CASE + 6 WHEN 21 THEN + 48 WHEN 68 * + 47 THEN 27 ELSE + 53 END ) ) ) AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7820
SELECT ALL + 1 * + 24 DIV 1 + - CASE - 98 WHEN - COUNT( * ) THEN NULL ELSE - 86 + + NULLIF ( + COALESCE ( + NULLIF ( MAX( ALL 55 ), + 24 * 50 ), + 36 ), 45 ) END AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + 1 * + 24 / 1 + - CASE - 98 WHEN - COUNT ( * ) THEN NULL ELSE - 86 + + NULLIF ( + COALESCE ( + NULLIF ( MAX ( ALL 55 ), + 24 * 50 ), + 36 ), 45 ) END AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT + COUNT( * ) * + + 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7821
SELECT + COUNT ( * ) * + + 89 AS col0
----
89

query I rowsort
SELECT - + 31 + - 6 col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT DISTINCT - ( 52 ) + COUNT( * ) DIV - 83 col0
----
-52

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT - ( 52 ) + COUNT ( * ) / - 83 col0
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7824
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT - CAST ( NULL AS REAL ) + 15 AS col1
----
NULL

query I rowsort
SELECT ALL - 76 + + 76 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7826
SELECT DISTINCT COALESCE ( + + 2, 25 * 61, - 4 * + NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) ) + COUNT( * ) * 71 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT COALESCE ( + + 2, 25 * 61, - 4 * + NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) ) + COUNT ( * ) * 71 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + 16 AS col1
----
17

query I rowsort
SELECT - CASE - - 39 WHEN + 14 THEN 53 + 37 WHEN 83 THEN NULL END * - 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT ALL + 40 DIV + - 92 col2
----
0

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + 40 / + - 92 col2
----
0

query II rowsort
SELECT + 90 AS col2, + 80 AS col2
----
90
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL ( - COALESCE ( + + COUNT( * ), 72, - 46 * - 17 ) ) * NULLIF ( COUNT( * ), - 92 ) + + 78 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL ( - COALESCE ( + + COUNT ( * ), 72, - 46 * - 17 ) ) * NULLIF ( COUNT ( * ), - 92 ) + + 78 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7832
SELECT + 71 + - 32 + + + 30 * COALESCE ( + CASE 62 WHEN + 33 - 29 THEN NULLIF ( + 38, ( + 48 ) ) WHEN ( 72 ) * - CAST( + 10 * 95 AS DECIMAL ) THEN NULL WHEN + SUM( DISTINCT COALESCE ( - 5, 12 ) ) THEN NULL END, 67 + + COUNT( * ), + 73 ) AS col1
----
2079

skipif mysql # not compatible
query I rowsort label-7832
SELECT + 71 + - 32 + + + 30 * COALESCE ( + CASE 62 WHEN + 33 - 29 THEN NULLIF ( + 38, ( + 48 ) ) WHEN ( 72 ) * - CAST ( + 10 * 95 AS REAL ) THEN NULL WHEN + SUM ( DISTINCT COALESCE ( - 5, 12 ) ) THEN NULL END, 67 + + COUNT ( * ), + 73 ) AS col1
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT - 69 * - 97 - - SUM( - 61 )
----
6632

skipif mysql # not compatible
query I rowsort label-7833
SELECT - 69 * - 97 - - SUM ( - 61 )
----
6632

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT ALL - 40 DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL - 40 / - 86 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT 4 * CAST( NULL AS SIGNED ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT 4 * CAST ( NULL AS INTEGER ) + - 20
----
NULL

query I rowsort
SELECT - 53 - ( + ( + 26 ) ) AS col0
----
-79

query I rowsort
SELECT DISTINCT - 22 * + 15 * 33 AS col1
----
-10890

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL 37 * + + COUNT( * ) - + - 1 + CASE 60 WHEN + 84 THEN + ( 75 ) + - 60 END * ( 7 + - 3 / 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL 37 * + + COUNT ( * ) - + - 1 + CASE 60 WHEN + 84 THEN + ( 75 ) + - 60 END * ( 7 + - 3 / 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT + 50 * + 53 + 10 + - MIN( 27 ) AS col0
----
2633

skipif mysql # not compatible
query I rowsort label-7839
SELECT + 50 * + 53 + 10 + - MIN ( 27 ) AS col0
----
2633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT - 99 * - - 59 * + 2 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT - 99 * - - 59 * + 2 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7841
SELECT - 5 * CAST( NULL AS SIGNED ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT - 5 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT 68 DIV + + 6 + ( 10 ) * 93
----
941

skipif mysql # not compatible
query I rowsort label-7842
SELECT 68 / + + 6 + ( 10 ) * 93
----
941

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - ( COUNT( * ) ) + 40 * 78
----
3119

skipif mysql # not compatible
query I rowsort label-7843
SELECT - ( COUNT ( * ) ) + 40 * 78
----
3119

query I rowsort
SELECT ALL + 68 * - CASE - - 60 WHEN + 15 THEN NULL WHEN 55 * + ( - 19 ) THEN 19 * + 80 ELSE + 78 * - 49 END AS col0
----
259896

query I rowsort
SELECT 41 * + + 11 + - 77
----
374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7846
SELECT DISTINCT + 50 * + NULLIF ( - + CASE + CASE WHEN NOT + CAST( NULL AS DECIMAL ) IN ( COUNT( DISTINCT - 59 ) ) THEN NULL WHEN NOT MIN( DISTINCT + 33 ) * 30 IN ( 9 ) THEN NULL ELSE 58 * CAST( NULL AS SIGNED ) + + 56 END WHEN - 80 + - 78 * COUNT( * ) THEN 63 END, - 44 + - 12 * 29 ) * CASE COALESCE ( COUNT( * ), + 7 * 98, + 34 ) WHEN 71 * - NULLIF ( + 18, 85 ) + 75 THEN 40 WHEN - 3 THEN - 44 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT + 50 * + NULLIF ( - + CASE + CASE WHEN NOT + CAST ( NULL AS REAL ) IN ( COUNT ( DISTINCT - 59 ) ) THEN NULL WHEN NOT MIN ( DISTINCT + 33 ) * 30 IN ( 9 ) THEN NULL ELSE 58 * CAST ( NULL AS INTEGER ) + + 56 END WHEN - 80 + - 78 * COUNT ( * ) THEN 63 END, - 44 + - 12 * 29 ) * CASE COALESCE ( COUNT ( * ), + 7 * 98, + 34 ) WHEN 71 * - NULLIF ( + 18, 85 ) + 75 THEN 40 WHEN - 3 THEN - 44 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 46 * + NULLIF ( - - 1, 55 ) AS col2
----
-46

query I rowsort
SELECT COALESCE ( ( 8 ), - 52 * + 41, + ( ( + 31 ) ) ) AS col2
----
8

query I rowsort
SELECT CASE + 24 WHEN + ( 86 ) THEN NULL WHEN - 57 + + 24 * 82 THEN ( 43 ) + + 43 ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( + + 73, - 28 ) AS col1
----
73

query I rowsort
SELECT + 39 + + 17
----
56

query I rowsort
SELECT - 5 * + 14 * - 45 * 2
----
6300

query I rowsort
SELECT + 74 + - + 54 + + - 28 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT + MAX( + - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-7854
SELECT + MAX ( + - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT + + ( + + 46 ) * + - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-7855
SELECT + + ( + + 46 ) * + - COUNT ( * )
----
-46

query I rowsort
SELECT DISTINCT 62 * 58 - + 88 AS col2
----
3508

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT - 32 * + - ( - 53 ) + COUNT( * )
----
-1695

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT - 32 * + - ( - 53 ) + COUNT ( * )
----
-1695

onlyif mysql # DIV for integer division: 
query I rowsort label-7858
SELECT ALL - + 42 DIV - + 7
----
6

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - + 42 / - + 7
----
6

query I rowsort
SELECT DISTINCT 89 + + 59
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT DISTINCT - 63 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - 63 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 41 - - + 84 + - 52 + 91 AS col0
----
82

query I rowsort
SELECT ALL 47 * - 40 * - + 5 * 60 AS col1
----
564000

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT - 16 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-7863
SELECT - 16 / 68
----
0

query II rowsort
SELECT - 45 col1, 54 * 65
----
-45
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL 74 + + 3 * - MAX( + 49 )
----
-73

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL 74 + + 3 * - MAX ( + 49 )
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7866
SELECT + 43 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT + 43 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7867
SELECT - COUNT( * ) AS col1, + 71
----
-1
71

skipif mysql # not compatible
query II rowsort label-7867
SELECT - COUNT ( * ) AS col1, + 71
----
-1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT + + COUNT( * ) - - - CASE + + 55 WHEN + 13 * - 60 THEN - 26 WHEN - 51 + - 61 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT + + COUNT ( * ) - - - CASE + + 55 WHEN + 13 * - 60 THEN - 26 WHEN - 51 + - 61 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + - ( - 18 ) + + - CASE 0 WHEN MAX( + 70 ) THEN 42 END + + ( 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT + - ( - 18 ) + + - CASE 0 WHEN MAX ( + 70 ) THEN 42 END + + ( 45 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 36 + - 13 AS col1
----
23

query I rowsort
SELECT DISTINCT + 56 * 53 + + 9
----
2977

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7872
SELECT + 30 + ( + COUNT( DISTINCT + 2 ) ) + COALESCE ( 43, - 0 + 95 DIV 81 ) DIV + ( CASE + COUNT( 38 ) WHEN COUNT( * ) THEN 77 * 22 + 22 WHEN + 97 DIV COALESCE ( 82, - 2 + 12 * - 13 ) + COUNT( * ) THEN NULL END ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 30 + ( + COUNT ( DISTINCT + 2 ) ) + COALESCE ( 43, - 0 + 95 / 81 ) / + ( CASE + COUNT ( 38 ) WHEN COUNT ( * ) THEN 77 * 22 + 22 WHEN + 97 / COALESCE ( 82, - 2 + 12 * - 13 ) + COUNT ( * ) THEN NULL END ) AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT DISTINCT 0 * + - COUNT( * ) DIV 54 * + + 19 * + 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT 0 * + - COUNT ( * ) / 54 * + + 19 * + 13 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7874
SELECT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ), CASE + + SUM( - 78 ) WHEN + 56 THEN NULL WHEN - 89 / 67 THEN - MIN( 6 ) - + CASE 32 WHEN 24 * 77 THEN 92 WHEN - SUM( 56 ) THEN ( + 73 ) ELSE NULL END ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7874
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ), CASE + + SUM ( - 78 ) WHEN + 56 THEN NULL WHEN - 89 / 67 THEN - MIN ( 6 ) - + CASE 32 WHEN 24 * 77 THEN 92 WHEN - SUM ( 56 ) THEN ( + 73 ) ELSE NULL END ELSE NULL END AS col1
----
NULL
NULL

query I rowsort
SELECT + 76 * + 1 col0
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7876
SELECT DISTINCT - 91 DIV - 3 AS col0, 13
----
30
13

skipif mysql # not compatible
query II rowsort label-7876
SELECT DISTINCT - 91 / - 3 AS col0, 13
----
30
13

query I rowsort
SELECT ALL - CASE - - 1 WHEN + 74 THEN + 66 WHEN + 11 THEN NULL WHEN 38 THEN 2 + 63 ELSE 65 END AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL - MAX( 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - MAX ( 80 )
----
-80

query I rowsort
SELECT 55 * - - 82
----
4510

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT ALL - 36 + + - 20 - + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL - 36 + + - 20 - + COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7881
SELECT 30 * - CASE 87 WHEN + + 20 THEN NULL WHEN 89 * 56 THEN + NULLIF ( + 75, + ( 7 ) + + 99 * 78 ) * + 28 ELSE MAX( 73 ) + 69 END + - MIN( DISTINCT + 31 + + 68 ) DIV 68 - - COUNT( * )
----
-4260

skipif mysql # not compatible
query I rowsort label-7881
SELECT 30 * - CASE 87 WHEN + + 20 THEN NULL WHEN 89 * 56 THEN + NULLIF ( + 75, + ( 7 ) + + 99 * 78 ) * + 28 ELSE MAX ( 73 ) + 69 END + - MIN ( DISTINCT + 31 + + 68 ) / 68 - - COUNT ( * )
----
-4260

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT ALL - COUNT( * ) + 54, 60 + + 96 col1
----
53
156

skipif mysql # not compatible
query II rowsort label-7882
SELECT ALL - COUNT ( * ) + 54, 60 + + 96 col1
----
53
156

query I rowsort
SELECT DISTINCT + CASE - + 36 WHEN ( 84 ) + - 48 THEN + 86 WHEN 61 THEN NULL END * 0 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ( COUNT( NULLIF ( + + 39, + 43 ) ) ) * + 29
----
29

skipif mysql # not compatible
query I rowsort label-7884
SELECT ( COUNT ( NULLIF ( + + 39, + 43 ) ) ) * + 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT ALL + - COUNT( * ) + 5 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL + - COUNT ( * ) + 5 AS col2
----
4

query I rowsort
SELECT DISTINCT - 34 * + + 69 + + + 58 + + 87 col2
----
-2201

query I rowsort
SELECT - + 70 * - 11 + + 17 AS col0
----
787

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7888
SELECT 57 - + 68 + CAST( 47 AS SIGNED ) DIV 17
----
-9

skipif mysql # not compatible
query I rowsort label-7888
SELECT 57 - + 68 + CAST ( 47 AS INTEGER ) / 17
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT - 19 + - + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-7889
SELECT - 19 + - + COUNT ( * )
----
-20

query I rowsort
SELECT DISTINCT + 82 + ( - 37 ) - + - 78 * - 85
----
-6585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT ALL 81 * 71 * - - CASE - 81 WHEN CAST( 94 AS SIGNED ) + - 51 THEN NULL WHEN 84 + + 61 THEN 65 + + 15 / - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL 81 * 71 * - - CASE - 81 WHEN CAST ( 94 AS INTEGER ) + - 51 THEN NULL WHEN 84 + + 61 THEN 65 + + 15 / - 70 END
----
NULL

query I rowsort
SELECT ( - + 12 ) + 76 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7893
SELECT ALL + - 35 - - - 12 + - COUNT( * ) + 77 + + 23 DIV 42
----
29

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL + - 35 - - - 12 + - COUNT ( * ) + 77 + + 23 / 42
----
29

query I rowsort
SELECT + 68 + + 99 * 44 AS col2
----
4424

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7895
SELECT DISTINCT ( - 86 ), - CAST( NULL AS SIGNED ) AS col1
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-7895
SELECT DISTINCT ( - 86 ), - CAST ( NULL AS INTEGER ) AS col1
----
-86
NULL

query I rowsort
SELECT ALL - - 22 * 42 + + 51
----
975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT AVG ( + - 93 ) + SUM( DISTINCT + 75 ) / + + ( + CAST( NULL AS SIGNED ) ) * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT AVG ( + - 93 ) + SUM ( DISTINCT + 75 ) / + + ( + CAST ( NULL AS INTEGER ) ) * 11 AS col0
----
NULL

query I rowsort
SELECT 65 * 62
----
4030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7899
SELECT COUNT( * ) * 39 DIV - ( + 39 ) * + + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7899
SELECT COUNT ( * ) * 39 / - ( + 39 ) * + + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7900
SELECT CAST( NULL AS DECIMAL ) + - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT CAST ( NULL AS REAL ) + - 64 AS col2
----
NULL

query I rowsort
SELECT 81 + 78 AS col0
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7902
SELECT ALL SUM( - 99 ) DIV + 87
----
-1

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL SUM ( - 99 ) / + 87
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7903
SELECT COUNT( - 28 ) + 20 - - MIN( ALL 34 ) DIV 16 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7903
SELECT COUNT ( - 28 ) + 20 - - MIN ( ALL 34 ) / 16 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL - MIN( ALL CASE + 37 WHEN + ( - 64 ) + - 13 THEN 6 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - MIN ( ALL CASE + 37 WHEN + ( - 64 ) + - 13 THEN 6 ELSE NULL END )
----
NULL

query II rowsort
SELECT ALL - 45 AS col0, + 18
----
-45
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT MIN( - 47 ) + 14 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7906
SELECT MIN ( - 47 ) + 14 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7907
SELECT - 66 DIV + 71 - - 13 * - 92 AS col2
----
-1196

skipif mysql # not compatible
query I rowsort label-7907
SELECT - 66 / + 71 - - 13 * - 92 AS col2
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT SUM( DISTINCT 29 ) * + 97 + + + 37 AS col2
----
2850

skipif mysql # not compatible
query I rowsort label-7908
SELECT SUM ( DISTINCT 29 ) * + 97 + + + 37 AS col2
----
2850

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7909
SELECT ALL 46 * NULLIF ( - 37, 93 ) / - CAST( NULL AS DECIMAL ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL 46 * NULLIF ( - 37, 93 ) / - CAST ( NULL AS REAL ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 3 * + - 47 + - - 50
----
191

query I rowsort
SELECT ALL 92 + + 28 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT SUM( ALL 79 ) + + - ( - + 81 ) AS col0
----
160

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT SUM ( ALL 79 ) + + - ( - + 81 ) AS col0
----
160

query I rowsort
SELECT ALL + - 79 + + 67
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT - COUNT( * ) + 19 * - 50 AS col0
----
-951

skipif mysql # not compatible
query I rowsort label-7914
SELECT - COUNT ( * ) + 19 * - 50 AS col0
----
-951

query I rowsort
SELECT ALL 79 + + ( - 91 ) * 60 AS col2
----
-5381

query I rowsort
SELECT DISTINCT - 38 + 45
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT ALL CAST( NULL AS SIGNED ) + - + 83 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL CAST ( NULL AS INTEGER ) + - + 83 * + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT + - ( MIN( - 27 ) ) * - 50 * + CASE 83 WHEN - 50 * COUNT( * ) THEN 68 END + + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT + - ( MIN ( - 27 ) ) * - 50 * + CASE 83 WHEN - 50 * COUNT ( * ) THEN 68 END + + 3 AS col1
----
NULL

query I rowsort
SELECT + 59 + - - 9 AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT ALL + + 75 DIV - 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + + 75 / - 93 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7921
SELECT + + ( COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT 72 + - + 90
----
-18

query I rowsort
SELECT DISTINCT + 80 * 62 AS col0
----
4960

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT + COUNT( * ) - + 57 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT + COUNT ( * ) - + 57 AS col0
----
-56

query I rowsort
SELECT ALL CASE + 27 WHEN ( - - 93 ) THEN + - 40 + 29 END * 2
----
NULL

query I rowsort
SELECT ALL - 89 * + 56
----
-4984

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT + 30 - - COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT + 30 - - COUNT ( * ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7928
SELECT ALL + CAST( - - 62 AS SIGNED ) - 37 - + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL + CAST ( - - 62 AS INTEGER ) - 37 - + COUNT ( * ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7929
SELECT ALL - 72, + 30 * - 84 * ( + 5 ) + + COUNT( * ) AS col0
----
-72
-12599

skipif mysql # not compatible
query II rowsort label-7929
SELECT ALL - 72, + 30 * - 84 * ( + 5 ) + + COUNT ( * ) AS col0
----
-72
-12599

query I rowsort
SELECT 31 - - 69 - - 65 + - 95
----
70

query I rowsort
SELECT + CASE - ( 31 ) WHEN + 32 THEN + 36 END * 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT 58 - - + COUNT( ALL - 88 )
----
59

skipif mysql # not compatible
query I rowsort label-7932
SELECT 58 - - + COUNT ( ALL - 88 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7933
SELECT NULLIF ( 49, - CASE + 71 WHEN - 45 THEN NULL WHEN + 94 THEN NULL ELSE 6 END ) + + CAST( - SUM( DISTINCT 69 ) AS SIGNED ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7933
SELECT NULLIF ( 49, - CASE + 71 WHEN - 45 THEN NULL WHEN + 94 THEN NULL ELSE 6 END ) + + CAST ( - SUM ( DISTINCT 69 ) AS INTEGER ) AS col0
----
-20

query I rowsort
SELECT 74 * 54 * - + 8
----
-31968

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL - 9 * 14 * - 46 * + MIN( ALL - 31 ) AS col2
----
-179676

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - 9 * 14 * - 46 * + MIN ( ALL - 31 ) AS col2
----
-179676

query I rowsort
SELECT 84 - ( + 83 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT COUNT( * ) * - COUNT( 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT COUNT ( * ) * - COUNT ( 91 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT ALL + 18 DIV 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + 18 / 29 AS col0
----
0

query I rowsort
SELECT - 70 * 19 * 95 AS col2
----
-126350

query I rowsort
SELECT ALL + 9 * - - 20
----
180

query II rowsort
SELECT ALL 6 AS col1, + 23 col0
----
6
23

query I rowsort
SELECT ALL - 46 + 62 * - 0 col1
----
-46

query I rowsort
SELECT DISTINCT + 91 + + 9
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT - COALESCE ( NULLIF ( NULLIF ( - CAST( + 37 AS SIGNED ), + + 3 ), CASE 33 WHEN + 34 THEN NULL WHEN - 4 * - 16 + 19 THEN 13 END ), - 8 ) + 24
----
61

skipif mysql # not compatible
query I rowsort label-7944
SELECT - COALESCE ( NULLIF ( NULLIF ( - CAST ( + 37 AS INTEGER ), + + 3 ), CASE 33 WHEN + 34 THEN NULL WHEN - 4 * - 16 + 19 THEN 13 END ), - 8 ) + 24
----
61

query I rowsort
SELECT - ( 53 ) * 61 AS col1
----
-3233

query I rowsort
SELECT + 40 + - ( NULLIF ( + 36, - 8 ) )
----
4

query I rowsort
SELECT DISTINCT + 73 + - 75 col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7948
SELECT ALL 17 AS col2, CASE + COUNT( * ) WHEN - 56 / - 24 THEN NULL WHEN + 48 THEN 93 END AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-7948
SELECT ALL 17 AS col2, CASE + COUNT ( * ) WHEN - 56 / - 24 THEN NULL WHEN + 48 THEN 93 END AS col2
----
17
NULL

query I rowsort
SELECT - 11 * + 10
----
-110

query I rowsort
SELECT + 16 + 65 AS col1
----
81

query I rowsort
SELECT NULLIF ( - 10, + CASE - + 69 WHEN 48 THEN - - 10 ELSE - 35 END - - 33 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT ALL + 67 * - 24 + - CAST( + 38 AS SIGNED ) + 23 + - - 78 * 12
----
-687

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL + 67 * - 24 + - CAST ( + 38 AS INTEGER ) + 23 + - - 78 * 12
----
-687

query I rowsort
SELECT + 4 * + 32 * - 63
----
-8064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7954
SELECT ALL - MAX( DISTINCT 1 ) * - 10 DIV 72 + - 93 DIV + + 17 + 8
----
3

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL - MAX ( DISTINCT 1 ) * - 10 / 72 + - 93 / + + 17 + 8
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7955
SELECT + 80 * - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT + 80 * - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL - 41 * + 0 + - 20 AS col1
----
-20

query II rowsort
SELECT + 35 AS col0, - 84 + + 72 AS col2
----
35
-12

query II rowsort
SELECT 92 col2, ( - 78 ) - + 2 AS col0
----
92
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7959
SELECT + 96 - - ( + + 92 ) + - + CASE + 25 WHEN + - 6 * COUNT( * ) THEN - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT + 96 - - ( + + 92 ) + - + CASE + 25 WHEN + - 6 * COUNT ( * ) THEN - CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT DISTINCT - 51 * + 73 AS col2
----
-3723

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT - - 92 * - COUNT( * ) - + - ( + - 66 )
----
-158

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT - - 92 * - COUNT ( * ) - + - ( + - 66 )
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL 84 * - 91 + - 18 + - - CASE + COUNT( * ) WHEN - 99 * CASE - COALESCE ( MAX( DISTINCT + CASE 52 WHEN 87 THEN + 51 WHEN 74 - 61 * - 36 THEN NULL WHEN 77 * 11 THEN 47 END ), 83 + 4 ) WHEN 60 THEN - 38 WHEN + 83 * + ( COUNT( ALL - COALESCE ( + 11, 73 ) ) ) + 93 THEN NULL END + + 23 THEN + 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL 84 * - 91 + - 18 + - - CASE + COUNT ( * ) WHEN - 99 * CASE - COALESCE ( MAX ( DISTINCT + CASE 52 WHEN 87 THEN + 51 WHEN 74 - 61 * - 36 THEN NULL WHEN 77 * 11 THEN 47 END ), 83 + 4 ) WHEN 60 THEN - 38 WHEN + 83 * + ( COUNT ( ALL - COALESCE ( + 11, 73 ) ) ) + 93 THEN NULL END + + 23 THEN + 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + 64 * - + 11 * - 39 + - + 22 - + AVG ( ALL + 77 ) * COUNT( * ) + CASE + NULLIF ( 30, 3 * 81 ) WHEN 10 * COALESCE ( - COUNT( * ), - 61 + + COALESCE ( 0, 38 / 61, 94 ), - 50 * 80 - 70 * 52 ) THEN - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7963
SELECT + 64 * - + 11 * - 39 + - + 22 - + AVG ( ALL + 77 ) * COUNT ( * ) + CASE + NULLIF ( 30, 3 * 81 ) WHEN 10 * COALESCE ( - COUNT ( * ), - 61 + + COALESCE ( 0, 38 / 61, 94 ), - 50 * 80 - 70 * 52 ) THEN - 69 END
----
NULL

query I rowsort
SELECT + 99 * - 5 AS col2
----
-495

query I rowsort
SELECT + + 77 + 79
----
156

query II rowsort
SELECT - 4, 37 - - - 88 * - 54 AS col1
----
-4
4789

onlyif mysql # DIV for integer division: 
query I rowsort label-7967
SELECT - 86 - + - 45 DIV + 71
----
-86

skipif mysql # not compatible
query I rowsort label-7967
SELECT - 86 - + - 45 / + 71
----
-86

query II rowsort
SELECT ALL + 77 * + - 91 * 20 AS col2, - 53 * 52 + + - 9 AS col1
----
-140140
-2765

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL - COUNT( * ) * + ( - 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - COUNT ( * ) * + ( - 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7970
SELECT DISTINCT 41 * - 5 AS col0, - MAX( DISTINCT - + 56 ) col2
----
-205
56

skipif mysql # not compatible
query II rowsort label-7970
SELECT DISTINCT 41 * - 5 AS col0, - MAX ( DISTINCT - + 56 ) col2
----
-205
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL SUM( DISTINCT - 28 ) + - + 98 col2
----
-126

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL SUM ( DISTINCT - 28 ) + - + 98 col2
----
-126

query I rowsort
SELECT ALL - 23 + - 98
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT + CASE 30 WHEN - SUM( 50 ) * - ( - 94 ) * + SUM( ALL + 9 ) THEN 19 + ( COUNT( * ) ) WHEN - 37 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT + CASE 30 WHEN - SUM ( 50 ) * - ( - 94 ) * + SUM ( ALL + 9 ) THEN 19 + ( COUNT ( * ) ) WHEN - 37 THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT DISTINCT CASE CASE 85 WHEN - SUM( DISTINCT 79 ) * 3 THEN 56 WHEN - 13 / 75 THEN NULL END WHEN + 83 THEN 33 WHEN + 85 THEN - 90 ELSE 22 * - 38 END AS col2
----
-836

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT CASE CASE 85 WHEN - SUM ( DISTINCT 79 ) * 3 THEN 56 WHEN - 13 / 75 THEN NULL END WHEN + 83 THEN 33 WHEN + 85 THEN - 90 ELSE 22 * - 38 END AS col2
----
-836

query I rowsort
SELECT ALL COALESCE ( + 80, + 6 * 96 * - 44, - + 56 * + - 87 * 37 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + 35 + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7976
SELECT + 35 + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT - 99 + COUNT( ALL + 92 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7977
SELECT - 99 + COUNT ( ALL + 92 ) AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT ALL - CAST( NULL AS SIGNED ) + + ( - CAST( - 42 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( - CAST ( - 42 AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT - 4 + + 59 + 84 / + - CAST( NULL AS SIGNED ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT - 4 + + 59 + 84 / + - CAST ( NULL AS INTEGER ) * - 12
----
NULL

query I rowsort
SELECT ALL CASE 8 WHEN - + 99 THEN + - 76 + 92 WHEN 86 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT - 27 * - 39
----
1053

query I rowsort
SELECT DISTINCT + COALESCE ( 52, + 52 ) * - 17 col1
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT + COALESCE ( + 96, ( - ( + 61 ) ), + COUNT( * ) ) + + 3
----
99

skipif mysql # not compatible
query I rowsort label-7983
SELECT + COALESCE ( + 96, ( - ( + 61 ) ), + COUNT ( * ) ) + + 3
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT + - CASE COUNT( * ) WHEN - 10 THEN 33 END * - - 92 * - 94 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT + - CASE COUNT ( * ) WHEN - 10 THEN 33 END * - - 92 * - 94 + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - + COUNT( * ) + + 87 + + COUNT( 60 )
----
87

skipif mysql # not compatible
query I rowsort label-7985
SELECT - + COUNT ( * ) + + 87 + + COUNT ( 60 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT ALL + - 48 DIV + 47 + - + 67 - + 23 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL + - 48 / + 47 + - + 67 - + 23 AS col2
----
-91

query I rowsort
SELECT + - 42 + + + 91 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL + COUNT( * ) * - 25 + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + COUNT ( * ) * - 25 + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT + 7 * - ( + - COUNT( * ) ) - - 46
----
53

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + 7 * - ( + - COUNT ( * ) ) - - 46
----
53

query I rowsort
SELECT DISTINCT + NULLIF ( + 58, 80 + 56 )
----
58

query I rowsort
SELECT ALL - 12 * - - 29 AS col2
----
-348

query I rowsort
SELECT + 96 * - - 54 AS col0
----
5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7993
SELECT DISTINCT + 79 * + 29 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + 79 * + 29 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL + 42 * - COUNT( * ) + - COALESCE ( - 44, + 44 ) + - 17 + MAX( 55 ) + - 55 + - 82
----
-97

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + 42 * - COUNT ( * ) + - COALESCE ( - 44, + 44 ) + - 17 + MAX ( 55 ) + - 55 + - 82
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT ALL 83 * 54 DIV - + 82 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL 83 * 54 / - + 82 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT 0 + - + MIN( ALL - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT 0 + - + MIN ( ALL - 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7997
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * + + COUNT( + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + + COUNT ( + 2 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7998
SELECT ALL COUNT( * ) + + 5 + - CAST( + NULLIF ( + 68, COUNT( * ) * - ( ( + CAST( NULL AS SIGNED ) ) ) - 79 ) AS SIGNED ) DIV 72 DIV + 38 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL COUNT ( * ) + + 5 + - CAST ( + NULLIF ( + 68, COUNT ( * ) * - ( ( + CAST ( NULL AS INTEGER ) ) ) - 79 ) AS INTEGER ) / 72 / + 38 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT + 98 * - + NULLIF ( 64, + + 67 ) - 85 * + - COALESCE ( + COUNT( * ), 72 ) * 62 + - 58 DIV ( 4 * - 54 )
----
-1002

skipif mysql # not compatible
query I rowsort label-7999
SELECT + 98 * - + NULLIF ( 64, + + 67 ) - 85 * + - COALESCE ( + COUNT ( * ), 72 ) * 62 + - 58 / ( 4 * - 54 )
----
-1002

onlyif mysql # aggregate syntax: 
query II rowsort label-8000
SELECT ( + COUNT( * ) ) * - 22 AS col2, - 76 AS col0
----
-22
-76

skipif mysql # not compatible
query II rowsort label-8000
SELECT ( + COUNT ( * ) ) * - 22 AS col2, - 76 AS col0
----
-22
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT DISTINCT 88 + + 24 * 73 * - + 49 + - CAST( - AVG ( + 50 ) AS SIGNED ) col0
----
-85710

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT 88 + + 24 * 73 * - + 49 + - CAST ( - AVG ( + 50 ) AS INTEGER ) col0
----
-85710

query I rowsort
SELECT 28 * + + 83 * 99 AS col2
----
230076

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT DISTINCT 34 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT 34 / + 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT NULLIF ( - 42, + + CASE - COUNT( * ) WHEN - + 43 THEN NULL ELSE - 53 END * - CASE + - 47 WHEN - 52 * 83 THEN NULL WHEN 49 THEN 76 END + - 70 * COUNT( * ) ) * + 70 col2
----
-2940

skipif mysql # not compatible
query I rowsort label-8004
SELECT NULLIF ( - 42, + + CASE - COUNT ( * ) WHEN - + 43 THEN NULL ELSE - 53 END * - CASE + - 47 WHEN - 52 * 83 THEN NULL WHEN 49 THEN 76 END + - 70 * COUNT ( * ) ) * + 70 col2
----
-2940

query I rowsort
SELECT 18 - + 70 + - - 60 * ( - 46 )
----
-2812

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT ALL 69 DIV + + 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL 69 / + + 16 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8007
SELECT - 17, + CAST( NULL AS SIGNED ) + - ( 36 ) AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-8007
SELECT - 17, + CAST ( NULL AS INTEGER ) + - ( 36 ) AS col0
----
-17
NULL

query I rowsort
SELECT ALL 87 + - 91
----
-4

query II rowsort
SELECT ALL 71 AS col2, 50 AS col2
----
71
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL CASE 40 WHEN - 25 * - - MAX( DISTINCT + 93 ) THEN + COUNT( * ) WHEN + SUM( + + 82 ) + 76 / - 41 THEN - 33 * COUNT( * ) END * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL CASE 40 WHEN - 25 * - - MAX ( DISTINCT + 93 ) THEN + COUNT ( * ) WHEN + SUM ( + + 82 ) + 76 / - 41 THEN - 33 * COUNT ( * ) END * 1
----
NULL

query I rowsort
SELECT ALL 22 - + 86 + 75
----
11

query I rowsort
SELECT DISTINCT ( + - 80 ) * ( 21 ) * - - 39 AS col2
----
-65520

query II rowsort
SELECT - 28, 58 * - - 31 AS col0
----
-28
1798

query I rowsort
SELECT 53 * 61
----
3233

query I rowsort
SELECT + 12 + - - 12
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8016
SELECT 47 - CASE - 45 WHEN - 52 THEN + - CAST( 1 AS SIGNED ) WHEN CAST( CAST( COUNT( * ) AS SIGNED ) AS DECIMAL ) * 94 + 40 THEN + 77 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT 47 - CASE - 45 WHEN - 52 THEN + - CAST ( 1 AS INTEGER ) WHEN CAST ( CAST ( COUNT ( * ) AS INTEGER ) AS REAL ) * 94 + 40 THEN + 77 END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 11, 63 )
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-8018
SELECT 84 AS col0, - 64 DIV 31 * 38 DIV + - 94 AS col0
----
84
0

skipif mysql # not compatible
query II rowsort label-8018
SELECT 84 AS col0, - 64 / 31 * 38 / + - 94 AS col0
----
84
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8019
SELECT ALL - + 39 col0, NULLIF ( - + 19, - CASE WHEN NOT 47 IN ( + MAX( + 16 ) ) THEN + COUNT( DISTINCT 24 ) ELSE NULL END ) - - CAST( + 35 AS SIGNED ) col0
----
-39
16

skipif mysql # not compatible
query II rowsort label-8019
SELECT ALL - + 39 col0, NULLIF ( - + 19, - CASE WHEN NOT 47 IN ( + MAX ( + 16 ) ) THEN + COUNT ( DISTINCT 24 ) ELSE NULL END ) - - CAST ( + 35 AS INTEGER ) col0
----
-39
16

query I rowsort
SELECT + + COALESCE ( + 23, - 39 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT - MIN( - + ( + ( 92 ) ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT - MIN ( - + ( + ( 92 ) ) ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT ALL - 1 * 29 DIV + - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - 1 * 29 / + - 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - 5 * + + 51 + + COUNT( * )
----
-254

skipif mysql # not compatible
query I rowsort label-8023
SELECT - 5 * + + 51 + + COUNT ( * )
----
-254

query I rowsort
SELECT ALL - - ( + 46 ) * + 71 * - 68
----
-222088

query II rowsort
SELECT + 99 AS col0, CASE - 92 WHEN - 82 THEN 58 END AS col0
----
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8026
SELECT - COUNT( * ) AS col2, 16 AS col1
----
-1
16

skipif mysql # not compatible
query II rowsort label-8026
SELECT - COUNT ( * ) AS col2, 16 AS col1
----
-1
16

query I rowsort
SELECT ALL - - 13 * + 64
----
832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8028
SELECT - ( + - CAST( + 19 AS SIGNED ) ) + + 5
----
24

skipif mysql # not compatible
query I rowsort label-8028
SELECT - ( + - CAST ( + 19 AS INTEGER ) ) + + 5
----
24

query I rowsort
SELECT + NULLIF ( - 82, - 74 * - 98 / 84 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT CASE + - COUNT( * ) WHEN 56 * + COUNT( * ) THEN + NULLIF ( - COUNT( * ), - + 9 + COUNT( * ) ) WHEN - 16 * COUNT( * ) THEN NULL WHEN - 89 THEN COALESCE ( - 82, ( 90 ) + + SUM( ALL 70 + + 40 / ( 57 ) ) ) ELSE + 51 END
----
51

skipif mysql # not compatible
query I rowsort label-8030
SELECT CASE + - COUNT ( * ) WHEN 56 * + COUNT ( * ) THEN + NULLIF ( - COUNT ( * ), - + 9 + COUNT ( * ) ) WHEN - 16 * COUNT ( * ) THEN NULL WHEN - 89 THEN COALESCE ( - 82, ( 90 ) + + SUM ( ALL 70 + + 40 / ( 57 ) ) ) ELSE + 51 END
----
51

query I rowsort
SELECT DISTINCT - + ( - + 72 ) * 36
----
2592

query I rowsort
SELECT ALL + - 84 * - 78 * + 62 + - 13
----
406211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT 69 * - 7 - 25 + - - 45 * - 74 * + CAST( - COUNT( * ) AS SIGNED ) * - 45 * + 73
----
-10939558

skipif mysql # not compatible
query I rowsort label-8033
SELECT 69 * - 7 - 25 + - - 45 * - 74 * + CAST ( - COUNT ( * ) AS INTEGER ) * - 45 * + 73
----
-10939558

query I rowsort
SELECT ALL + 23 + + - 2
----
21

query I rowsort
SELECT DISTINCT 24 + + 78
----
102

query II rowsort
SELECT 3 + 1 col1, + ( - 36 ) + + 58 AS col0
----
4
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8037
SELECT ALL - 59 + 79, + ( - 72 ) * - + NULLIF ( - CASE 9 WHEN 61 THEN - MAX( CASE ( + NULLIF ( - 27, - 22 + + 21 ) ) WHEN - 10 + 10 * 52 THEN NULL WHEN 4 + ( 33 ) THEN + 42 END ) * - ( AVG ( - 50 ) * COALESCE ( - 67, + 79 ) ) + 49 END, CAST( NULL AS SIGNED ) + - COUNT( * ) ) * + 0 AS col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-8037
SELECT ALL - 59 + 79, + ( - 72 ) * - + NULLIF ( - CASE 9 WHEN 61 THEN - MAX ( CASE ( + NULLIF ( - 27, - 22 + + 21 ) ) WHEN - 10 + 10 * 52 THEN NULL WHEN 4 + ( 33 ) THEN + 42 END ) * - ( AVG ( - 50 ) * COALESCE ( - 67, + 79 ) ) + 49 END, CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) * + 0 AS col0
----
20
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8038
SELECT 74 + 36, 54 DIV - 34 AS col2
----
110
-1

skipif mysql # not compatible
query II rowsort label-8038
SELECT 74 + 36, 54 / - 34 AS col2
----
110
-1

query II rowsort
SELECT ( + 22 ) - 34 + 73 AS col1, + 7 AS col2
----
61
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8040
SELECT 93 + - 36 DIV + 8 - 18 + 94 + - - COUNT( * ) * ( - COALESCE ( - 5, 24 * 48 ) ) DIV NULLIF ( COUNT( * ) + ( 17 ) DIV 61, + 2 )
----
170

skipif mysql # not compatible
query I rowsort label-8040
SELECT 93 + - 36 / + 8 - 18 + 94 + - - COUNT ( * ) * ( - COALESCE ( - 5, 24 * 48 ) ) / NULLIF ( COUNT ( * ) + ( 17 ) / 61, + 2 )
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8041
SELECT 60 * - 46 - - COUNT( * ) DIV + COALESCE ( - 50, - ( COUNT( * ) ) ) AS col0
----
-2760

skipif mysql # not compatible
query I rowsort label-8041
SELECT 60 * - 46 - - COUNT ( * ) / + COALESCE ( - 50, - ( COUNT ( * ) ) ) AS col0
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT COUNT( * ) + + + ( + + 7 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT COUNT ( * ) + + + ( + + 7 ) AS col1
----
8

query I rowsort
SELECT ALL 82 + + - 0 * - 75 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) * + - 43 + - - 69 - + 88 * 28
----
-2395

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) * + - 43 + - - 69 - + 88 * 28
----
-2395

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT COUNT( * ) + + ( 39 ) + + 17 * - - 95 * + 19 * + 68 * + 36 AS col0
----
75116920

skipif mysql # not compatible
query I rowsort label-8045
SELECT COUNT ( * ) + + ( 39 ) + + 17 * - - 95 * + 19 * + 68 * + 36 AS col0
----
75116920

query I rowsort
SELECT DISTINCT - 69 * + 2
----
-138

query I rowsort
SELECT ALL 46 - 92
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8048
SELECT ALL COALESCE ( - - 40, 45 DIV + COUNT( * ) + + + 27, ( - 26 ) ) - + - COUNT( - 55 )
----
41

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL COALESCE ( - - 40, 45 / + COUNT ( * ) + + + 27, ( - 26 ) ) - + - COUNT ( - 55 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT 18 DIV SUM( 20 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8049
SELECT 18 / SUM ( 20 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT 53 * 67 * + MAX( + 54 )
----
191754

skipif mysql # not compatible
query I rowsort label-8050
SELECT 53 * 67 * + MAX ( + 54 )
----
191754

onlyif mysql # DIV for integer division: 
query II rowsort label-8051
SELECT 24 + + - 52 AS col0, - 28 DIV 43
----
-28
0

skipif mysql # not compatible
query II rowsort label-8051
SELECT 24 + + - 52 AS col0, - 28 / 43
----
-28
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT DISTINCT 33 DIV 13
----
2

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT 33 / 13
----
2

query I rowsort
SELECT ALL COALESCE ( + 62, - 81 ) col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT ALL + 86 DIV 13 * - 46
----
-276

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL + 86 / 13 * - 46
----
-276

query I rowsort
SELECT ALL + 5 * + 21 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT - 76 + - - MIN( + 58 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-8056
SELECT - 76 + - - MIN ( + 58 ) col2
----
-18

query I rowsort
SELECT ALL ( + + 3 ) * + 21 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8058
SELECT ( COUNT( * ) ) / - 3 + + 48 + - + CAST( NULL AS SIGNED ) / 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT ( COUNT ( * ) ) / - 3 + + 48 + - + CAST ( NULL AS INTEGER ) / 27
----
NULL

query I rowsort
SELECT + 29 + + - 70 + + 21
----
-20

query I rowsort
SELECT + 32 * + 4 + + 83
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ALL MIN( ALL - 24 ) * 63 * + 57 AS col2
----
-86184

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL MIN ( ALL - 24 ) * 63 * + 57 AS col2
----
-86184

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT SUM( + - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-8062
SELECT SUM ( + - 34 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8063
SELECT DISTINCT 11 * - 27 + - 21 - 96 + COUNT( * ) + 73 DIV 11 * + 20 AS col0
----
-293

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT 11 * - 27 + - 21 - 96 + COUNT ( * ) + 73 / 11 * + 20 AS col0
----
-293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT + CAST( 8 AS SIGNED ) * - CAST( NULL AS SIGNED ) - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT + CAST ( 8 AS INTEGER ) * - CAST ( NULL AS INTEGER ) - 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT 73 DIV + - 33 + - 4 + + + 38 * + NULLIF ( + 50, + 18 ) + - MAX( ALL 92 ) DIV - COUNT( * )
----
1986

skipif mysql # not compatible
query I rowsort label-8065
SELECT 73 / + - 33 + - 4 + + + 38 * + NULLIF ( + 50, + 18 ) + - MAX ( ALL 92 ) / - COUNT ( * )
----
1986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT ALL + 91 * - 17 + - - 47 + - + COUNT( * ) + - 43 + - CAST( 57 AS SIGNED ) * 80 AS col2
----
-6104

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + 91 * - 17 + - - 47 + - + COUNT ( * ) + - 43 + - CAST ( 57 AS INTEGER ) * 80 AS col2
----
-6104

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT COUNT( * ) * - 62 + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT COUNT ( * ) * - 62 + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8068
SELECT ALL - 26 * - 46 + + COUNT( * ) DIV ( - 10 )
----
1196

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - 26 * - 46 + + COUNT ( * ) / ( - 10 )
----
1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8069
SELECT 23 * + ( 95 ) + + SUM( + + 98 ) + - 44 DIV 60 - SUM( 28 )
----
2255

skipif mysql # not compatible
query I rowsort label-8069
SELECT 23 * + ( 95 ) + + SUM ( + + 98 ) + - 44 / 60 - SUM ( 28 )
----
2255

query I rowsort
SELECT ALL + 12 * - 60 + - - 13
----
-707

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) * + 69 + 48 + - - ( - NULLIF ( + 48, + 88 / - 61 ) ) * 4 * + 89 AS col2
----
-16971

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) * + 69 + 48 + - - ( - NULLIF ( + 48, + 88 / - 61 ) ) * 4 * + 89 AS col2
----
-16971

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT - CASE 10 WHEN - + COUNT( * ) THEN NULL WHEN 94 + + ( + + 24 ) THEN NULL ELSE 35 * + + 68 END
----
-2380

skipif mysql # not compatible
query I rowsort label-8072
SELECT - CASE 10 WHEN - + COUNT ( * ) THEN NULL WHEN 94 + + ( + + 24 ) THEN NULL ELSE 35 * + + 68 END
----
-2380

query I rowsort
SELECT ALL 46 * + 80 * - 94 * + - 72 * - 27 + + NULLIF ( + 12, - 80 + + + 8 )
----
-672468468

onlyif mysql # aggregate syntax: 
query II rowsort label-8074
SELECT ALL + ( + ( + - COUNT( * ) ) ) AS col0, 39 AS col1
----
-1
39

skipif mysql # not compatible
query II rowsort label-8074
SELECT ALL + ( + ( + - COUNT ( * ) ) ) AS col0, 39 AS col1
----
-1
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8075
SELECT DISTINCT - 90 * + 30 + + COUNT( * ), 19 - COUNT( * ) + 27 + - 38 + - + ( - 93 ) AS col0
----
-2699
100

skipif mysql # not compatible
query II rowsort label-8075
SELECT DISTINCT - 90 * + 30 + + COUNT ( * ), 19 - COUNT ( * ) + 27 + - 38 + - + ( - 93 ) AS col0
----
-2699
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT ALL - CAST( NULL AS SIGNED ) * + 75 * - 5 + - 63 + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL - CAST ( NULL AS INTEGER ) * + 75 * - 5 + - 63 + 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8077
SELECT COUNT( 73 ) * + 72 + 56 + + 32 - - + 36 + + - 32 DIV 10 + - + 43
----
150

skipif mysql # not compatible
query I rowsort label-8077
SELECT COUNT ( 73 ) * + 72 + 56 + + 32 - - + 36 + + - 32 / 10 + - + 43
----
150

query I rowsort
SELECT - 88 * - + 82
----
7216

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL - MAX( DISTINCT - - 70 ) * + - 68 * 42 AS col2
----
199920

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - MAX ( DISTINCT - - 70 ) * + - 68 * 42 AS col2
----
199920

query I rowsort
SELECT ALL - 1 * + - 94
----
94

query I rowsort
SELECT DISTINCT + 47 - + 22 + + ( 89 ) * 47 AS col2
----
4208

query I rowsort
SELECT - 82 + - - NULLIF ( - 9, 23 / 42 ) AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT DISTINCT COALESCE ( CAST( - 22 AS SIGNED ), + 24 * - 59 )
----
-22

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT COALESCE ( CAST ( - 22 AS INTEGER ), + 24 * - 59 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8084
SELECT DISTINCT COALESCE ( CAST( - 50 AS SIGNED ), + ( 96 ), - COUNT( * ) DIV + 99 )
----
-50

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT COALESCE ( CAST ( - 50 AS INTEGER ), + ( 96 ), - COUNT ( * ) / + 99 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - 28 - + 26 + - 54 + + 69 - MAX( + + 67 ) AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-8085
SELECT - 28 - + 26 + - 54 + + 69 - MAX ( + + 67 ) AS col0
----
-106

query I rowsort
SELECT ALL COALESCE ( 24, + - 50 * + 25 - + - 75 + - 96, + 58 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT - MIN( - - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8087
SELECT - MIN ( - - 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8088
SELECT + NULLIF ( + CAST( NULL AS DECIMAL ), - + 75 * - 91 + + - 14 ) + - 14 * + COALESCE ( - - 41, - COUNT( * ) + + 9 * - ( COUNT( * ) + - MIN( DISTINCT + 95 + 21 * + ( 88 ) ) * 85 ), COUNT( * ) ) * + SUM( + 51 * 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT + NULLIF ( + CAST ( NULL AS REAL ), - + 75 * - 91 + + - 14 ) + - 14 * + COALESCE ( - - 41, - COUNT ( * ) + + 9 * - ( COUNT ( * ) + - MIN ( DISTINCT + 95 + 21 * + ( 88 ) ) * 85 ), COUNT ( * ) ) * + SUM ( + 51 * 71 )
----
NULL

query I rowsort
SELECT ALL 92 * 70
----
6440

query I rowsort
SELECT - 98 * - 84 AS col0
----
8232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT + 4 + - - MAX( DISTINCT - - 88 ) - + - 16 / - 51 * + 66 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT + 4 + - - MAX ( DISTINCT - - 88 ) - + - 16 / - 51 * + 66 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 27 * 8 * 15 col0
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT - + 47 * - MIN( 90 ) * 38 * - 13 * 34 + + 62 AS col0
----
-71047018

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT - + 47 * - MIN ( 90 ) * 38 * - 13 * 34 + + 62 AS col0
----
-71047018

query I rowsort
SELECT + - ( 70 ) * - + 52 + + - 9 col2
----
3631

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL - 23 * + COUNT( DISTINCT - 41 )
----
-23

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - 23 * + COUNT ( DISTINCT - 41 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT COUNT( * ) * 57 * 71
----
4047

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT COUNT ( * ) * 57 * 71
----
4047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT - - ( CAST( + 24 AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-8097
SELECT - - ( CAST ( + 24 AS INTEGER ) )
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8098
SELECT - 44, - CAST( NULL AS DECIMAL ) col0
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-8098
SELECT - 44, - CAST ( NULL AS REAL ) col0
----
-44
NULL

query I rowsort
SELECT DISTINCT + ( 2 ) + + 99 AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL 80 + + + COUNT( * ) - + 53
----
28

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL 80 + + + COUNT ( * ) - + 53
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT ALL - 24 / - 96 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL - 24 / - 96 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT + 23 DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT + 23 / - 57 AS col1
----
0

query I rowsort
SELECT + ( - 59 ) * - 24 * - + 5
----
-7080

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT ALL - 65 DIV - - 55 + + 23 + + + 46 col1
----
68

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - 65 / - - 55 + + 23 + + + 46 col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8105
SELECT ALL 20 * - - 80 - MAX( + + 39 ) + CAST( NULL AS SIGNED ) * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL 20 * - - 80 - MAX ( + + 39 ) + CAST ( NULL AS INTEGER ) * + 43 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT + ( + - 0 ) DIV - + ( - 65 ) + 80 + + 90
----
170

skipif mysql # not compatible
query I rowsort label-8106
SELECT + ( + - 0 ) / - + ( - 65 ) + 80 + + 90
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL 29 / + CAST( NULL AS SIGNED ) + + 90 * 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL 29 / + CAST ( NULL AS INTEGER ) + + 90 * 62 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8108
SELECT DISTINCT - NULLIF ( + + 92, - ( CASE + CAST( 48 AS SIGNED ) WHEN + COALESCE ( - 38, 16, + 0 * + COUNT( * ) ) + - 19 * 87 THEN NULL WHEN - AVG ( ALL - CAST( NULL AS DECIMAL ) ) + - 22 THEN - 7 END ) ) * COALESCE ( 1, - 47 + 97 * - ( 93 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT - NULLIF ( + + 92, - ( CASE + CAST ( 48 AS INTEGER ) WHEN + COALESCE ( - 38, 16, + 0 * + COUNT ( * ) ) + - 19 * 87 THEN NULL WHEN - AVG ( ALL - CAST ( NULL AS REAL ) ) + - 22 THEN - 7 END ) ) * COALESCE ( 1, - 47 + 97 * - ( 93 ) ) AS col0
----
-92

query I rowsort
SELECT 67 * 75 + + 18 + + 25
----
5068

query I rowsort
SELECT DISTINCT 82 * - - 66
----
5412

query I rowsort
SELECT ALL + ( - NULLIF ( + + 87, - 22 * 17 ) ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT + MAX( ALL - 70 ) + CASE + CASE 92 WHEN - 78 THEN + COUNT( * ) - + 31 END WHEN COUNT( * ) * 33 + - ( + NULLIF ( 38, + 26 ) ) THEN 90 * 25 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT + MAX ( ALL - 70 ) + CASE + CASE 92 WHEN - 78 THEN + COUNT ( * ) - + 31 END WHEN COUNT ( * ) * 33 + - ( + NULLIF ( 38, + 26 ) ) THEN 90 * 25 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - 0 * - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT - 0 * - - COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8114
SELECT ( 3 ) AS col2, 13 DIV + - 61 * + 9 * + + 34 DIV + - 23
----
3
0

skipif mysql # not compatible
query II rowsort label-8114
SELECT ( 3 ) AS col2, 13 / + - 61 * + 9 * + + 34 / + - 23
----
3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8115
SELECT ALL + 48 AS col1, - COALESCE ( - COUNT( * ), 3 ) DIV + - 93 * 26
----
48
0

skipif mysql # not compatible
query II rowsort label-8115
SELECT ALL + 48 AS col1, - COALESCE ( - COUNT ( * ), 3 ) / + - 93 * 26
----
48
0

query II rowsort
SELECT + 48, 47 col0
----
48
47

query I rowsort
SELECT - 41 + - 50 AS col2
----
-91

query II rowsort
SELECT ALL + 70 col2, - 88 + 29 + - + 50
----
70
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT - 34 * + 4 * - COUNT( * ) * COUNT( * ) AS col0, + COUNT( * ) + 11 AS col1
----
136
12

skipif mysql # not compatible
query II rowsort label-8119
SELECT - 34 * + 4 * - COUNT ( * ) * COUNT ( * ) AS col0, + COUNT ( * ) + 11 AS col1
----
136
12

query I rowsort
SELECT CASE + - 19 WHEN - 55 THEN NULL ELSE ( + + CASE - 58 WHEN + 69 THEN NULL WHEN + 42 THEN NULL ELSE - + 96 END ) * + ( + 40 ) END
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - 81 + - 98 + 34 * - COUNT( * ) + + - ( 83 ) - + 86 + - + 64 * - ( - + 47 ) * - ( 60 ) * COUNT( ALL 27 )
----
180098

skipif mysql # not compatible
query I rowsort label-8121
SELECT - 81 + - 98 + 34 * - COUNT ( * ) + + - ( 83 ) - + 86 + - + 64 * - ( - + 47 ) * - ( 60 ) * COUNT ( ALL 27 )
----
180098

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + COUNT( * ) * - 9 + ( - + 55 )
----
-64

skipif mysql # not compatible
query I rowsort label-8122
SELECT + COUNT ( * ) * - 9 + ( - + 55 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8123
SELECT - 98 DIV - + NULLIF ( + COUNT( * ), + COUNT( * ) + - COUNT( * ) * + ( 96 ) * - + 52 + 51 * + - 70 + COUNT( * ) ) col0
----
98

skipif mysql # not compatible
query I rowsort label-8123
SELECT - 98 / - + NULLIF ( + COUNT ( * ), + COUNT ( * ) + - COUNT ( * ) * + ( 96 ) * - + 52 + 51 * + - 70 + COUNT ( * ) ) col0
----
98

query I rowsort
SELECT - NULLIF ( - - 1, - 6 * - 2 ) * 86 * 12 AS col1
----
-1032

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT ALL COUNT( * ) AS col0, 57 * + - 33 * 76 * - - ( - + 15 ) - - ( 69 ) AS col2
----
1
2144409

skipif mysql # not compatible
query II rowsort label-8125
SELECT ALL COUNT ( * ) AS col0, 57 * + - 33 * 76 * - - ( - + 15 ) - - ( 69 ) AS col2
----
1
2144409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8126
SELECT DISTINCT + COUNT( * ) * 14 DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + COUNT ( * ) * 14 / + 49 AS col2
----
0

query I rowsort
SELECT - - 83 * + - 84 + + + 41 * + 53 AS col0
----
-4799

query I rowsort
SELECT ALL - 78 + - 11 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT - SUM( DISTINCT - 9 ) + - SUM( ALL 18 ) * 4 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8129
SELECT - SUM ( DISTINCT - 9 ) + - SUM ( ALL 18 ) * 4 AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT ALL + + 82 DIV 23 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + + 82 / 23 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8131
SELECT - COUNT( * ) + COUNT( + 31 ) DIV - 25 * + 68 * + 76 + 34 col0
----
33

skipif mysql # not compatible
query I rowsort label-8131
SELECT - COUNT ( * ) + COUNT ( + 31 ) / - 25 * + 68 * + 76 + 34 col0
----
33

query II rowsort
SELECT DISTINCT + 86 + - 89, 35 AS col1
----
-3
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT - COUNT( * ) + - + 81 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8133
SELECT - COUNT ( * ) + - + 81 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT ALL - + 69 + + + COUNT( * ) - + 55 - - CASE - - CAST( + 26 AS SIGNED ) WHEN - COUNT( * ) THEN 63 / COALESCE ( - 36, + - 44 + 75, 37 + 16 * 44 ) * 50 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL - + 69 + + + COUNT ( * ) - + 55 - - CASE - - CAST ( + 26 AS INTEGER ) WHEN - COUNT ( * ) THEN 63 / COALESCE ( - 36, + - 44 + 75, 37 + 16 * 44 ) * 50 + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8135
SELECT ALL - 91 AS col0, - MIN( 64 ) * 73 AS col2
----
-91
-4672

skipif mysql # not compatible
query II rowsort label-8135
SELECT ALL - 91 AS col0, - MIN ( 64 ) * 73 AS col2
----
-91
-4672

query I rowsort
SELECT DISTINCT + - ( + - 78 ) * 69
----
5382

query I rowsort
SELECT DISTINCT + 84 + + 80
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-8138
SELECT DISTINCT 45 AS col1, - CASE - + 45 WHEN + 18 THEN 76 WHEN - ( 29 ) + 67 THEN NULL WHEN + COUNT( * ) + 15 THEN NULL ELSE NULL END * - MAX( ALL 14 ) + + COALESCE ( COUNT( * ) + + MIN( - 86 ) * - 9, 46, CASE 90 WHEN + 21 / 61 THEN 76 END + + COUNT( * ) * 76 ) AS col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-8138
SELECT DISTINCT 45 AS col1, - CASE - + 45 WHEN + 18 THEN 76 WHEN - ( 29 ) + 67 THEN NULL WHEN + COUNT ( * ) + 15 THEN NULL ELSE NULL END * - MAX ( ALL 14 ) + + COALESCE ( COUNT ( * ) + + MIN ( - 86 ) * - 9, 46, CASE 90 WHEN + 21 / 61 THEN 76 END + + COUNT ( * ) * 76 ) AS col1
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8139
SELECT + 74 + + MAX( + - 50 ) DIV - 87 - - COUNT( * ) - + 3 AS col0, + 44
----
72
44

skipif mysql # not compatible
query II rowsort label-8139
SELECT + 74 + + MAX ( + - 50 ) / - 87 - - COUNT ( * ) - + 3 AS col0, + 44
----
72
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL 13 + - 76 * - ( + + 70 ) * - COUNT( * )
----
-5307

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL 13 + - 76 * - ( + + 70 ) * - COUNT ( * )
----
-5307

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT ALL + - 2 + - COALESCE ( + 34, - 16 ) DIV - - 64 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + - 2 + - COALESCE ( + 34, - 16 ) / - - 64 AS col0
----
-2

query I rowsort
SELECT DISTINCT + 68 - - 76
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT + CAST( NULL AS SIGNED ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT + CAST ( NULL AS INTEGER ) * 3
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8144
SELECT + - 83 AS col0, 33 * - CASE COALESCE ( + - COUNT( * ), 75 * ( + + 86 ) + + COUNT( * ), + 39 ) WHEN - COUNT( * ) THEN - COUNT( * ) END
----
-83
33

skipif mysql # not compatible
query II rowsort label-8144
SELECT + - 83 AS col0, 33 * - CASE COALESCE ( + - COUNT ( * ), 75 * ( + + 86 ) + + COUNT ( * ), + 39 ) WHEN - COUNT ( * ) THEN - COUNT ( * ) END
----
-83
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8145
SELECT - 10 * + + 3 DIV MAX( ALL + 35 ) * 78 + - 65 - + + 47 * + 21 * + + 16 * + 82 + 92
----
-1294917

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 10 * + + 3 / MAX ( ALL + 35 ) * 78 + - 65 - + + 47 * + 21 * + + 16 * + 82 + 92
----
-1294917

query I rowsort
SELECT ALL 93 - 19
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8147
SELECT DISTINCT ( COUNT( * ) ) DIV + CASE - NULLIF ( 60, - 57 * + COALESCE ( + MAX( DISTINCT 37 ), - 45, + 84, - - 63 ) DIV 69 ) WHEN 21 THEN NULL WHEN 81 + 35 * 20 THEN NULL ELSE 79 * 92 + - ( 4 - - 10 ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT ( COUNT ( * ) ) / + CASE - NULLIF ( 60, - 57 * + COALESCE ( + MAX ( DISTINCT 37 ), - 45, + 84, - - 63 ) / 69 ) WHEN 21 THEN NULL WHEN 81 + 35 * 20 THEN NULL ELSE 79 * 92 + - ( 4 - - 10 ) END AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8148
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2, + 53
----
NULL
53

skipif mysql # not compatible
query II rowsort label-8148
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2, + 53
----
NULL
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT 44 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-8149
SELECT 44 / 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT CASE + 37 WHEN - COUNT( * ) - 24 THEN - 36 + 26 + + 82 WHEN + - 97 THEN NULL END + - MAX( 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT CASE + 37 WHEN - COUNT ( * ) - 24 THEN - 36 + 26 + + 82 WHEN + - 97 THEN NULL END + - MAX ( 50 )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 66, + 79 ) * + 99
----
-6534

onlyif mysql # aggregate syntax: 
query II rowsort label-8152
SELECT COUNT( * ) * - 3, 6 * 93 AS col2
----
-3
558

skipif mysql # not compatible
query II rowsort label-8152
SELECT COUNT ( * ) * - 3, 6 * 93 AS col2
----
-3
558

query I rowsort
SELECT 63 + 6 AS col2
----
69

query I rowsort
SELECT ALL - 39 + - 32 + - 71 + - 45 * 74 + - - 6 * - + 44
----
-3736

query II rowsort
SELECT 62 * 1, 38 AS col0
----
62
38

query I rowsort
SELECT ALL 51 + - - 29
----
80

query I rowsort
SELECT 81 - + + 89 * - 35 * 18
----
56151

query I rowsort
SELECT DISTINCT + + 79 + + 64 - + 27
----
116

query II rowsort
SELECT 27 + + - 76 - + 16 AS col0, + 70
----
-65
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8160
SELECT ALL + - 54 * + - NULLIF ( - 72, - 71 * + 27 + 86 + + 97 + - 42 * 8 ) * - + 33 * - + CASE + CAST( NULL AS SIGNED ) WHEN MIN( + 83 ) + + 32 / + 37 THEN - 77 - 39 / + 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL + - 54 * + - NULLIF ( - 72, - 71 * + 27 + 86 + + 97 + - 42 * 8 ) * - + 33 * - + CASE + CAST ( NULL AS INTEGER ) WHEN MIN ( + 83 ) + + 32 / + 37 THEN - 77 - 39 / + 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + 78 + SUM( ALL + - 68 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8161
SELECT + 78 + SUM ( ALL + - 68 ) AS col0
----
10

query I rowsort
SELECT DISTINCT + + 4 * 0 * 20 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - 20 ) + - + 31
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-8164
SELECT + 45 DIV - + 72, + 45 AS col0
----
0
45

skipif mysql # not compatible
query II rowsort label-8164
SELECT + 45 / - + 72, + 45 AS col0
----
0
45

query I rowsort
SELECT DISTINCT - 80 + + 56
----
-24

query I rowsort
SELECT ALL + 0 + 3 * - 0 * - 86 * + 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT ALL - 41 DIV + - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL - 41 / + - 90 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT - COUNT( * ) DIV 91 + - 60 col1
----
-60

skipif mysql # not compatible
query I rowsort label-8168
SELECT - COUNT ( * ) / 91 + - 60 col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8169
SELECT - 81 DIV 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8169
SELECT - 81 / 42 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8170
SELECT DISTINCT - CASE CASE + - 80 WHEN - 47 THEN NULL ELSE + MIN( 17 ) * 62 * - COALESCE ( + 60, SUM( DISTINCT - 95 ) ) END WHEN - - 30 THEN NULL ELSE - 28 END DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT - CASE CASE + - 80 WHEN - 47 THEN NULL ELSE + MIN ( 17 ) * 62 * - COALESCE ( + 60, SUM ( DISTINCT - 95 ) ) END WHEN - - 30 THEN NULL ELSE - 28 END / + 94 AS col0
----
0

query I rowsort
SELECT ALL + ( - - ( - 85 ) ) - + 23
----
-108

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8172
SELECT ALL - 81 / - - 55 * - - CASE - - 24 WHEN 29 + 17 + + + ( - CAST( NULL AS DECIMAL ) ) THEN + + 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL - 81 / - - 55 * - - CASE - - 24 WHEN 29 + 17 + + + ( - CAST ( NULL AS REAL ) ) THEN + + 69 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT + MIN( + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-8173
SELECT + MIN ( + 47 )
----
47

query I rowsort
SELECT - CASE + - 53 WHEN - 32 + 72 THEN NULL ELSE - + 85 END
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 54 AS col1
----
NULL

query I rowsort
SELECT ALL + 42 * - - 55 AS col0
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT DISTINCT - COUNT( ALL - 71 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT - COUNT ( ALL - 71 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT COALESCE ( CASE - 90 WHEN 1 * - + 70 THEN NULL WHEN + 6 THEN 60 * 55 + + ( + 7 ) END, - - 96 + - 4 ) * + 26 + MIN( 47 )
----
2439

skipif mysql # not compatible
query I rowsort label-8178
SELECT COALESCE ( CASE - 90 WHEN 1 * - + 70 THEN NULL WHEN + 6 THEN 60 * 55 + + ( + 7 ) END, - - 96 + - 4 ) * + 26 + MIN ( 47 )
----
2439

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL - MAX( ALL 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL - MAX ( ALL 90 ) AS col2
----
-90

query I rowsort
SELECT 33 * + 69 + - - 99 AS col2
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT MIN( + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-8181
SELECT MIN ( + 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT ( + ( 97 ) ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT ( + ( 97 ) ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT 24 * + NULLIF ( - - 14, + 53 + + - 11 * + NULLIF ( + - 38, ( - 6 ) + 74 * + + NULLIF ( NULLIF ( - 35, + 59 * + 41 + + 63 / - 87 ), 49 ) ) * - ( MAX( DISTINCT 99 ) ) )
----
336

skipif mysql # not compatible
query I rowsort label-8183
SELECT 24 * + NULLIF ( - - 14, + 53 + + - 11 * + NULLIF ( + - 38, ( - 6 ) + 74 * + + NULLIF ( NULLIF ( - 35, + 59 * + 41 + + 63 / - 87 ), 49 ) ) * - ( MAX ( DISTINCT 99 ) ) )
----
336

query I rowsort
SELECT 28 + 17
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT + SUM( DISTINCT 9 )
----
9

skipif mysql # not compatible
query I rowsort label-8185
SELECT + SUM ( DISTINCT 9 )
----
9

query I rowsort
SELECT 43 * + 24 + + + 43
----
1075

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT ALL 69 DIV + 56 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL 69 / + 56 AS col0
----
1

query I rowsort
SELECT 43 + + - 69
----
-26

query I rowsort
SELECT ALL 46 + 70
----
116

onlyif mysql # DIV for integer division: 
query III rowsort label-8190
SELECT DISTINCT 16 DIV + + 27 * + 95 AS col0, + 77 * ( 10 ) col0, 36 AS col1
----
0
770
36

skipif mysql # not compatible
query III rowsort label-8190
SELECT DISTINCT 16 / + + 27 * + 95 AS col0, + 77 * ( 10 ) col0, 36 AS col1
----
0
770
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT DISTINCT ( - 9 ) + + - COUNT( * ) * 26
----
-35

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT ( - 9 ) + + - COUNT ( * ) * 26
----
-35

query I rowsort
SELECT ALL 10 + - 27 col0
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-8193
SELECT 84 AS col1, 30 DIV + 11
----
84
2

skipif mysql # not compatible
query II rowsort label-8193
SELECT 84 AS col1, 30 / + 11
----
84
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT NULLIF ( + 67, - SUM( DISTINCT - - ( - 16 ) ) ) * + 22 * - + SUM( ALL + 91 )
----
-134134

skipif mysql # not compatible
query I rowsort label-8194
SELECT NULLIF ( + 67, - SUM ( DISTINCT - - ( - 16 ) ) ) * + 22 * - + SUM ( ALL + 91 )
----
-134134

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT + 54 + - - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-8195
SELECT + 54 + - - COUNT ( * )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT + CASE WHEN NOT ( + 73 ) <= 66 THEN 62 END DIV - 79 * - + 63
----
0

skipif mysql # not compatible
query I rowsort label-8196
SELECT + CASE WHEN NOT ( + 73 ) <= 66 THEN 62 END / - 79 * - + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + + 53 * COUNT( * ) + - + 91 * - + 59
----
5422

skipif mysql # not compatible
query I rowsort label-8197
SELECT + + 53 * COUNT ( * ) + - + 91 * - + 59
----
5422

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL 46 + - SUM( + 88 )
----
-42

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL 46 + - SUM ( + 88 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) - 95 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) - 95 * + 84
----
NULL

query II rowsort
SELECT ALL - 62 AS col2, - 25 AS col0
----
-62
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT DISTINCT + - COUNT( ALL + ( - ( + 79 ) ) ) + + 1 * NULLIF ( + MAX( - 56 ), - 84 * - COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT + - COUNT ( ALL + ( - ( + 79 ) ) ) + + 1 * NULLIF ( + MAX ( - 56 ), - 84 * - COUNT ( * ) )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8202
SELECT + 0 * + - CAST( NULL AS SIGNED ) * COALESCE ( + - 37, + 0, - 99 ) * - CAST( + 65 AS SIGNED ) * - - SUM( ALL + 13 ) + ( + 69 ) + 58 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT + 0 * + - CAST ( NULL AS INTEGER ) * COALESCE ( + - 37, + 0, - 99 ) * - CAST ( + 65 AS INTEGER ) * - - SUM ( ALL + 13 ) + ( + 69 ) + 58 * 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT - COUNT( + - 55 ) * - 82 + - - 69 * - 23 col1
----
-1505

skipif mysql # not compatible
query I rowsort label-8203
SELECT - COUNT ( + - 55 ) * - 82 + - - 69 * - 23 col1
----
-1505

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT + + 79 + SUM( + 81 )
----
160

skipif mysql # not compatible
query I rowsort label-8204
SELECT + + 79 + SUM ( + 81 )
----
160

query I rowsort
SELECT ALL + ( - 16 ) col0
----
-16

query I rowsort
SELECT + - 4 + - 73 AS col0
----
-77

query II rowsort
SELECT 87, 53 AS col2
----
87
53

query I rowsort
SELECT + + 30 * - 24
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT DISTINCT CASE - COUNT( * ) WHEN + + 12 THEN NULL WHEN 64 + - COUNT( * ) / 20 THEN 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT CASE - COUNT ( * ) WHEN + + 12 THEN NULL WHEN 64 + - COUNT ( * ) / 20 THEN 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT SUM( DISTINCT 19 )
----
19

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT SUM ( DISTINCT 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL COALESCE ( + 24, - 50 * - MAX( DISTINCT + + 92 ) )
----
24

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL COALESCE ( + 24, - 50 * - MAX ( DISTINCT + + 92 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT - 42 + + COUNT( * ) + 31 + - 34 + + 96 * - 25
----
-2444

skipif mysql # not compatible
query I rowsort label-8212
SELECT - 42 + + COUNT ( * ) + 31 + - 34 + + 96 * - 25
----
-2444

query I rowsort
SELECT + 12 * + 86 AS col2
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT - COUNT( * ) + 99
----
98

skipif mysql # not compatible
query I rowsort label-8214
SELECT - COUNT ( * ) + 99
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL + CASE + - COUNT( * ) WHEN 99 + - + CASE - 24 WHEN - - 40 THEN + + 44 WHEN 6 THEN NULL END THEN - 97 + 89 - 64 / - COALESCE ( 32, + COUNT( ALL - 10 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + CASE + - COUNT ( * ) WHEN 99 + - + CASE - 24 WHEN - - 40 THEN + + 44 WHEN 6 THEN NULL END THEN - 97 + 89 - 64 / - COALESCE ( 32, + COUNT ( ALL - 10 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT ( + CAST( 0 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8216
SELECT ( + CAST ( 0 AS INTEGER ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8217
SELECT - 73 / + + 18 + - COUNT( * ) - + 87 * + - 64 * + COUNT( * ) * + + 5 * SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0, + CASE - - 30 WHEN COUNT( * ) THEN NULL WHEN + 39 THEN COALESCE ( + 25, 82 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8217
SELECT - 73 / + + 18 + - COUNT ( * ) - + 87 * + - 64 * + COUNT ( * ) * + + 5 * SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, + CASE - - 30 WHEN COUNT ( * ) THEN NULL WHEN + 39 THEN COALESCE ( + 25, 82 ) END
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8218
SELECT DISTINCT + ( - 79 ), - 36 - COUNT( * ) DIV ( + + COUNT( * ) ) * MIN( - - ( + 53 ) ) + CASE - 57 WHEN - 18 THEN + 67 ELSE - ( 7 ) DIV - ( + 29 ) END AS col2
----
-79
-89

skipif mysql # not compatible
query II rowsort label-8218
SELECT DISTINCT + ( - 79 ), - 36 - COUNT ( * ) / ( + + COUNT ( * ) ) * MIN ( - - ( + 53 ) ) + CASE - 57 WHEN - 18 THEN + 67 ELSE - ( 7 ) / - ( + 29 ) END AS col2
----
-79
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT ALL + CAST( - - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + CAST ( - - 3 AS INTEGER )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8220
SELECT - 82 * + + CAST( NULL AS SIGNED ) AS col2, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8220
SELECT - 82 * + + CAST ( NULL AS INTEGER ) AS col2, 41
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT + SUM( ALL - + 15 ) * + 21 + + 64 + 6 * - 69
----
-665

skipif mysql # not compatible
query I rowsort label-8221
SELECT + SUM ( ALL - + 15 ) * + 21 + + 64 + 6 * - 69
----
-665

query I rowsort
SELECT DISTINCT 35 * 80 + - + 77
----
2723

query I rowsort
SELECT ALL 4 * + 71 + + 60
----
344

query I rowsort
SELECT ( - 5 ) AS col1
----
-5

query I rowsort
SELECT ALL - 78 * - - 21 + 4 AS col2
----
-1634

query I rowsort
SELECT ALL 63 * - + 50
----
-3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT - 4 * CAST( + 58 AS SIGNED )
----
-232

skipif mysql # not compatible
query I rowsort label-8227
SELECT - 4 * CAST ( + 58 AS INTEGER )
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL 47 * MAX( 41 ) + + 54
----
1981

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL 47 * MAX ( 41 ) + + 54
----
1981

query I rowsort
SELECT - 16 * NULLIF ( - NULLIF ( 14, - 47 + + 78 + - 5 ), 3 )
----
224

query I rowsort
SELECT NULLIF ( 32, + 17 )
----
32

query I rowsort
SELECT - 91 * 87 - + 9 * - 2
----
-7899

onlyif mysql # DIV for integer division: 
query II rowsort label-8232
SELECT ALL 30 DIV + NULLIF ( - 1, - 70 DIV + 8 * - 64 ) + - 53 - ( + 81 ) AS col0, 37 + - + 51 AS col1
----
-164
-14

skipif mysql # not compatible
query II rowsort label-8232
SELECT ALL 30 / + NULLIF ( - 1, - 70 / + 8 * - 64 ) + - 53 - ( + 81 ) AS col0, 37 + - + 51 AS col1
----
-164
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL 0 * + 40 + - SUM( ALL - ( 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL 0 * + 40 + - SUM ( ALL - ( 44 ) )
----
44

query I rowsort
SELECT - 4 - + - 5 * + + ( NULLIF ( - + 91, - + 77 + ( - - 63 ) + - 96 ) )
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT + 66 * + COUNT( * ) * 80 + + MIN( DISTINCT + + 15 ) + COUNT( DISTINCT + 52 ) + + - 55 * 80 + - 48
----
848

skipif mysql # not compatible
query I rowsort label-8235
SELECT + 66 * + COUNT ( * ) * 80 + + MIN ( DISTINCT + + 15 ) + COUNT ( DISTINCT + 52 ) + + - 55 * 80 + - 48
----
848

query I rowsort
SELECT ALL 57 * + 78 + + + 40
----
4486

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT ALL - 64 DIV - 64
----
1

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL - 64 / - 64
----
1

query I rowsort
SELECT ALL 8 * CASE + 6 WHEN 20 THEN + 17 - 65 WHEN + 81 THEN NULL END + - 14 / 7 * 45 + - + 71 - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + + COUNT( * ) * COALESCE ( + - 23, + COUNT( * ) ) + 10
----
-13

skipif mysql # not compatible
query I rowsort label-8239
SELECT + + COUNT ( * ) * COALESCE ( + - 23, + COUNT ( * ) ) + 10
----
-13

query I rowsort
SELECT ALL - 14 * - + 13
----
182

query I rowsort
SELECT - ( + + NULLIF ( - 99, CASE - 99 WHEN - 7 THEN 63 WHEN 26 * 26 * 20 * + 97 THEN - 25 WHEN 3 THEN NULL ELSE + 96 END * 59 ) )
----
99

query I rowsort
SELECT + 63 + 83 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + - 45 * 11 + ( - CASE + - 65 WHEN + 57 / + 33 * 85 THEN + + 61 / - - 60 WHEN - - 97 + + + COALESCE ( + 62, - 78 * - 39 - - 39, MIN( ALL 64 ) * - COALESCE ( - 60 + - 95, 44 + + 45 ) ) * 46 THEN 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT + - 45 * 11 + ( - CASE + - 65 WHEN + 57 / + 33 * 85 THEN + + 61 / - - 60 WHEN - - 97 + + + COALESCE ( + 62, - 78 * - 39 - - 39, MIN ( ALL 64 ) * - COALESCE ( - 60 + - 95, 44 + + 45 ) ) * 46 THEN 44 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT CASE - ( - 88 ) WHEN - NULLIF ( - 43, - ( 5 ) ) + + + 52 + 89 THEN + 91 + - 89 / + - 7 WHEN + 52 THEN + - COUNT( * ) * 76 + 31 * - 80 ELSE - ( 72 ) END
----
-72

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT CASE - ( - 88 ) WHEN - NULLIF ( - 43, - ( 5 ) ) + + + 52 + 89 THEN + 91 + - 89 / + - 7 WHEN + 52 THEN + - COUNT ( * ) * 76 + 31 * - 80 ELSE - ( 72 ) END
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT CAST( + - 61 AS SIGNED ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT CAST ( + - 61 AS INTEGER ) col2
----
-61

query I rowsort
SELECT + 47 - 76
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT DISTINCT - - COUNT( DISTINCT 82 ) * + + 63 / - + CASE - COUNT( * ) WHEN - 50 * - 4 THEN - 52 + - 98 WHEN + + 56 THEN NULL WHEN - ( + - 52 ) THEN - 59 END * + - 11 * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT - - COUNT ( DISTINCT 82 ) * + + 63 / - + CASE - COUNT ( * ) WHEN - 50 * - 4 THEN - 52 + - 98 WHEN + + 56 THEN NULL WHEN - ( + - 52 ) THEN - 59 END * + - 11 * 94
----
NULL

query I rowsort
SELECT + + 23 * 81 * 62 AS col2
----
115506

query I rowsort
SELECT + 18 * 25
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT - NULLIF ( - 14, COUNT( * ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8250
SELECT - NULLIF ( - 14, COUNT ( * ) ) AS col2
----
14

query I rowsort
SELECT DISTINCT 41 * - - 43 * - 76
----
-133988

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL COUNT( 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL COUNT ( 50 ) AS col2
----
1

query II rowsort
SELECT 71 AS col0, - ( + - 92 ) AS col2
----
71
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8254
SELECT - 86 AS col0, + 4 * - COUNT( * ) * - + 16 AS col2
----
-86
64

skipif mysql # not compatible
query II rowsort label-8254
SELECT - 86 AS col0, + 4 * - COUNT ( * ) * - + 16 AS col2
----
-86
64

query I rowsort
SELECT + 82 * - 74
----
-6068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT - 88 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8256
SELECT - 88 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 0 - - + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT DISTINCT COUNT( * ) * + - 40
----
-40

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT COUNT ( * ) * + - 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL 31 / - - CASE - 95 WHEN + 72 THEN - ( + 44 ) END + + + COALESCE ( - + 66, + - COUNT( * ) / - AVG ( ALL 7 ) + + 60 + + 51 - - 27 + - 14 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL 31 / - - CASE - 95 WHEN + 72 THEN - ( + 44 ) END + + + COALESCE ( - + 66, + - COUNT ( * ) / - AVG ( ALL 7 ) + + 60 + + 51 - - 27 + - 14 + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL COUNT( * ) * - ( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL COUNT ( * ) * - ( - 59 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT 71 * - 26 + 27 DIV - ( 25 )
----
-1847

skipif mysql # not compatible
query I rowsort label-8261
SELECT 71 * - 26 + 27 / - ( 25 )
----
-1847

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT ALL + 35 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + 35 / 62 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8263
SELECT ALL + 17 col0, + NULLIF ( 26, + MIN( DISTINCT - + 98 ) ) DIV + + 72 + 5
----
17
5

skipif mysql # not compatible
query II rowsort label-8263
SELECT ALL + 17 col0, + NULLIF ( 26, + MIN ( DISTINCT - + 98 ) ) / + + 72 + 5
----
17
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + 92 + + + 56 * COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-8264
SELECT + 92 + + + 56 * COUNT ( * )
----
148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8265
SELECT DISTINCT + 17 DIV + + 91 * - 6 * + 96 * CAST( 26 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + 17 / + + 91 * - 6 * + 96 * CAST ( 26 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT 62 + + 38 + - - 64 * - 78 * 53
----
-264476

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT 97 DIV - + 2
----
-48

skipif mysql # not compatible
query I rowsort label-8267
SELECT 97 / - + 2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + 8 - - MIN( DISTINCT - 47 ) + + COALESCE ( - 50, 88, ( - + 10 ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + 8 - - MIN ( DISTINCT - 47 ) + + COALESCE ( - 50, 88, ( - + 10 ) ) AS col0
----
-89

query I rowsort
SELECT 68 * + - 37 AS col2
----
-2516

query I rowsort
SELECT ALL - 45 - 92
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8271
SELECT + CAST( - - ( COUNT( * ) ) AS SIGNED ) * - - 75 + + + 28 + + - SUM( - + 28 ) + + CASE - 21 WHEN + 11 THEN NULL WHEN - 59 * + 90 + + 67 THEN COUNT( - + CAST( NULL AS SIGNED ) ) * + CAST( + 49 + + 73 AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT + CAST ( - - ( COUNT ( * ) ) AS INTEGER ) * - - 75 + + + 28 + + - SUM ( - + 28 ) + + CASE - 21 WHEN + 11 THEN NULL WHEN - 59 * + 90 + + 67 THEN COUNT ( - + CAST ( NULL AS INTEGER ) ) * + CAST ( + 49 + + 73 AS REAL ) END AS col1
----
NULL

query I rowsort
SELECT ALL - - 35 * 17
----
595

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + 64 * - 43 + - MIN( ALL 97 ) AS col0
----
-2849

skipif mysql # not compatible
query I rowsort label-8273
SELECT + 64 * - 43 + - MIN ( ALL 97 ) AS col0
----
-2849

onlyif mysql # aggregate syntax: 
query II rowsort label-8274
SELECT DISTINCT - - 51 AS col2, - COUNT( * ) * + 77 AS col0
----
51
-77

skipif mysql # not compatible
query II rowsort label-8274
SELECT DISTINCT - - 51 AS col2, - COUNT ( * ) * + 77 AS col0
----
51
-77

query I rowsort
SELECT DISTINCT - 1 - - - 85
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT + CAST( 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8276
SELECT + CAST ( 61 AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT 1 * + 55 * COUNT( * ) * - + 15
----
-825

skipif mysql # not compatible
query I rowsort label-8277
SELECT 1 * + 55 * COUNT ( * ) * - + 15
----
-825

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT ALL 49 DIV - 96 + + - 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL 49 / - 96 + + - 77 AS col1
----
-77

query II rowsort
SELECT - 21 AS col2, + 83 AS col1
----
-21
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT ALL - 2 * + + CASE - 52 WHEN - + 41 * - - 33 - 84 THEN NULL WHEN + - 41 * + 83 - ( + 69 ) + - 63 * COUNT( * ) THEN NULL WHEN + 88 * 4 THEN - ( - COUNT( ALL + 91 ) ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL - 2 * + + CASE - 52 WHEN - + 41 * - - 33 - 84 THEN NULL WHEN + - 41 * + 83 - ( + 69 ) + - 63 * COUNT ( * ) THEN NULL WHEN + 88 * 4 THEN - ( - COUNT ( ALL + 91 ) ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT - ( 21 ) AS col1
----
-21

query I rowsort
SELECT - ( + NULLIF ( + - 10, + 43 + + 35 + 95 ) ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8283
SELECT ALL + 58 DIV COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + 58 / COUNT ( * ) AS col2
----
58

query I rowsort
SELECT 60 + - ( - 0 ) * NULLIF ( + 86, + 46 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT 4 - - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8285
SELECT 4 - - COUNT ( * ) AS col1
----
5

query I rowsort
SELECT ALL 0 * + 82 col0
----
0

query I rowsort
SELECT 18 + + 25 AS col0
----
43

query I rowsort
SELECT 54 - - 55 AS col0
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT ( + 12 ) + + 63 + 23 AS col1, + CASE - 5 WHEN + 11 THEN - 50 + + 79 ELSE SUM( ALL + - 62 ) END * 1 + - 46 + 31 * + + 69 + + 63 + 80 + 52 AS col1
----
98
2226

skipif mysql # not compatible
query II rowsort label-8289
SELECT ( + 12 ) + + 63 + 23 AS col1, + CASE - 5 WHEN + 11 THEN - 50 + + 79 ELSE SUM ( ALL + - 62 ) END * 1 + - 46 + 31 * + + 69 + + 63 + 80 + 52 AS col1
----
98
2226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8290
SELECT COUNT( * ) DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT COUNT ( * ) / - + 53
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT ALL CAST( + 20 AS SIGNED ) + + - 50
----
-30

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL CAST ( + 20 AS INTEGER ) + + - 50
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT NULLIF ( + 38, + 86 + - 72 * COUNT( * ) ) + - ( - 21 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8292
SELECT NULLIF ( + 38, + 86 + - 72 * COUNT ( * ) ) + - ( - 21 ) AS col1
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8293
SELECT DISTINCT + 66 * - 78 * + 77 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT + 66 * - 78 * + 77 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT 44 + + + CASE - COUNT( * ) WHEN - 87 * ( + - 45 ) * - 58 * + 62 + - + 86 * 3 - - + 27 * 78 + 52 THEN - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT 44 + + + CASE - COUNT ( * ) WHEN - 87 * ( + - 45 ) * - 58 * + 62 + - + 86 * 3 - - + 27 * 78 + 52 THEN - 67 END
----
NULL

query I rowsort
SELECT ALL 46 + 41
----
87

query I rowsort
SELECT ( + + 85 ) + - 9
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8297
SELECT ALL COALESCE ( - 12, - CASE + 27 WHEN - COUNT( * ) * - 8 + - 35 THEN NULL WHEN + - CASE + NULLIF ( - + CAST( 97 AS SIGNED ), - 80 ) WHEN + 43 THEN NULL ELSE 42 END THEN + 74 END + + CASE - 52 WHEN - 8 + + 96 * + 59 THEN NULL WHEN 97 - + 38 * + COUNT( 25 ) THEN + 30 * 64 ELSE NULL END ) + - CAST( - 38 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL COALESCE ( - 12, - CASE + 27 WHEN - COUNT ( * ) * - 8 + - 35 THEN NULL WHEN + - CASE + NULLIF ( - + CAST ( 97 AS INTEGER ), - 80 ) WHEN + 43 THEN NULL ELSE 42 END THEN + 74 END + + CASE - 52 WHEN - 8 + + 96 * + 59 THEN NULL WHEN 97 - + 38 * + COUNT ( 25 ) THEN + 30 * 64 ELSE NULL END ) + - CAST ( - 38 AS INTEGER )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT 33 * SUM( 34 )
----
1122

skipif mysql # not compatible
query I rowsort label-8298
SELECT 33 * SUM ( 34 )
----
1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8299
SELECT 94 col2, - CAST( + COUNT( * ) AS SIGNED ) col1
----
94
-1

skipif mysql # not compatible
query II rowsort label-8299
SELECT 94 col2, - CAST ( + COUNT ( * ) AS INTEGER ) col1
----
94
-1

query I rowsort
SELECT DISTINCT 22 * + 47
----
1034

query I rowsort
SELECT ALL 80 - + 22 * 63 AS col1
----
-1306

onlyif mysql # aggregate syntax: 
query II rowsort label-8302
SELECT + 18 AS col1, - COUNT( * ) AS col2
----
18
-1

skipif mysql # not compatible
query II rowsort label-8302
SELECT + 18 AS col1, - COUNT ( * ) AS col2
----
18
-1

query II rowsort
SELECT 81 AS col2, + 63 * 13
----
81
819

query I rowsort
SELECT ALL 51 * 70 col0
----
3570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT ( 95 ) / + 91 * + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT ( 95 ) / + 91 * + + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT ALL + 38 - + 33 + + + CAST( - 56 AS SIGNED ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + 38 - + 33 + + + CAST ( - 56 AS INTEGER ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL - SUM( ALL + + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL - SUM ( ALL + + 97 )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8308
SELECT + 20 DIV 69 - + COALESCE ( + COUNT( * ), - 98 DIV + 10, - NULLIF ( - 95, - NULLIF ( + NULLIF ( ( + NULLIF ( + 44, + 93 ) ), + COUNT( * ) ), + ( COUNT( * ) ) * 14 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8308
SELECT + 20 / 69 - + COALESCE ( + COUNT ( * ), - 98 / + 10, - NULLIF ( - 95, - NULLIF ( + NULLIF ( ( + NULLIF ( + 44, + 93 ) ), + COUNT ( * ) ), + ( COUNT ( * ) ) * 14 ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8309
SELECT CAST( + COALESCE ( + 69, + 29 - - ( + + 49 ) * CASE + 89 WHEN - MAX( DISTINCT - 3 ) + - + 68 THEN NULL WHEN 19 * + 69 THEN + 81 ELSE + COUNT( * ) END ) AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8309
SELECT CAST ( + COALESCE ( + 69, + 29 - - ( + + 49 ) * CASE + 89 WHEN - MAX ( DISTINCT - 3 ) + - + 68 THEN NULL WHEN 19 * + 69 THEN + 81 ELSE + COUNT ( * ) END ) AS INTEGER ) AS col0
----
69

query I rowsort
SELECT - 23 * - - 79 AS col1
----
-1817

query I rowsort
SELECT + 89 * 28
----
2492

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT ALL - COUNT( * ) AS col2, - 14 + + 99 AS col0
----
-1
85

skipif mysql # not compatible
query II rowsort label-8312
SELECT ALL - COUNT ( * ) AS col2, - 14 + + 99 AS col0
----
-1
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8313
SELECT ALL - COUNT( * ) AS col2, SUM( ALL - - 31 ) DIV - 63 + + - COALESCE ( - 18, SUM( ALL - 61 ), + 29 DIV + + 59 - - 72 + - - ( - CAST( + 1 AS SIGNED ) ) * 4 ) + + 31 AS col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-8313
SELECT ALL - COUNT ( * ) AS col2, SUM ( ALL - - 31 ) / - 63 + + - COALESCE ( - 18, SUM ( ALL - 61 ), + 29 / + + 59 - - 72 + - - ( - CAST ( + 1 AS INTEGER ) ) * 4 ) + + 31 AS col1
----
-1
49

query I rowsort
SELECT 96 * + 46 * + - 65 * + - 23 AS col0
----
6601920

query I rowsort
SELECT DISTINCT + 29 * - - 94 AS col0
----
2726

query I rowsort
SELECT - 82 + 78
----
-4

query II rowsort
SELECT - - 88 AS col1, 85 AS col1
----
88
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT COUNT( ALL - 84 ) * SUM( - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8318
SELECT COUNT ( ALL - 84 ) * SUM ( - 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ( CASE 64 WHEN ( + + COUNT( * ) ) THEN 43 * - 20 * + 71 ELSE NULL END ) + - CASE SUM( - 91 ) WHEN + 31 * - 51 + + 25 + - + 53 THEN 84 WHEN - NULLIF ( 66, - 76 ) * - 62 - 29 * COUNT( ALL - 79 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT ( CASE 64 WHEN ( + + COUNT ( * ) ) THEN 43 * - 20 * + 71 ELSE NULL END ) + - CASE SUM ( - 91 ) WHEN + 31 * - 51 + + 25 + - + 53 THEN 84 WHEN - NULLIF ( 66, - 76 ) * - 62 - 29 * COUNT ( ALL - 79 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 79 + 61 + + 28 AS col0
----
168

query I rowsort
SELECT ( - + 72 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL + 52 + ( + COUNT( * ) ) + + 82 + + 34 * - 90
----
-2925

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL + 52 + ( + COUNT ( * ) ) + + 82 + + 34 * - 90
----
-2925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8323
SELECT DISTINCT - 25 + 21 - + + 53 - CAST( 61 AS SIGNED ) DIV COUNT( * ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT - 25 + 21 - + + 53 - CAST ( 61 AS INTEGER ) / COUNT ( * ) AS col0
----
-118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8324
SELECT DISTINCT 88 / CAST( NULL AS DECIMAL ) * + 71 / 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT 88 / CAST ( NULL AS REAL ) * + 71 / 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT 6 + - NULLIF ( 86, - ( 29 ) / ( + 98 ) - 98 + 2 + + ( + 96 ) - - MIN( + - 6 ) * + 25 ) - - - ( + 86 ) + 7
----
-159

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT 6 + - NULLIF ( 86, - ( 29 ) / ( + 98 ) - 98 + 2 + + ( + 96 ) - - MIN ( + - 6 ) * + 25 ) - - - ( + 86 ) + 7
----
-159

query I rowsort
SELECT 34 - 80
----
-46

query I rowsort
SELECT DISTINCT + 35 * + 67 AS col2
----
2345

query I rowsort
SELECT ALL - 17 * + 47 AS col2
----
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL 5 - + - MAX( DISTINCT 96 )
----
101

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL 5 - + - MAX ( DISTINCT 96 )
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT ALL 81 - - + 63 + + 59 * + + 41 * 58 + - 25 + CASE - 90 WHEN 56 THEN NULL ELSE - 3 + + - 50 + - 47 * - 68 * + - 93 END + - + 59 AS col0, 44 * + COUNT( DISTINCT 51 ) + 43 AS col0
----
-156919
87

skipif mysql # not compatible
query II rowsort label-8330
SELECT ALL 81 - - + 63 + + 59 * + + 41 * 58 + - 25 + CASE - 90 WHEN 56 THEN NULL ELSE - 3 + + - 50 + - 47 * - 68 * + - 93 END + - + 59 AS col0, 44 * + COUNT ( DISTINCT 51 ) + 43 AS col0
----
-156919
87

query II rowsort
SELECT + 45 * + + 48 AS col2, 79 AS col0
----
2160
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8332
SELECT ALL - 17 * + + CAST( NULL AS SIGNED ) * + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL - 17 * + + CAST ( NULL AS INTEGER ) * + 10 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT COALESCE ( 41, + 17 * + + 96, + 32 + - - NULLIF ( + 98, - 64 ) + + 19 + - + NULLIF ( - 60, - ( 30 ) ) DIV - 40 ) * 58 * - ( + 20 ) * + 67 - + 18
----
-3186538

skipif mysql # not compatible
query I rowsort label-8333
SELECT COALESCE ( 41, + 17 * + + 96, + 32 + - - NULLIF ( + 98, - 64 ) + + 19 + - + NULLIF ( - 60, - ( 30 ) ) / - 40 ) * 58 * - ( + 20 ) * + 67 - + 18
----
-3186538

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT + COUNT( + + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-8334
SELECT + COUNT ( + + 22 )
----
1

query I rowsort
SELECT + 80 * + 66 + 55 - - - 85 AS col1
----
5250

query I rowsort
SELECT + 98 * + 85 AS col2
----
8330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8337
SELECT + 93 DIV + - 33 + + - COUNT( * ) DIV 30 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8337
SELECT + 93 / + - 33 + + - COUNT ( * ) / 30 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8338
SELECT - - 22 * 34 - COUNT( * ) DIV - 46 + + ( - 34 ) AS col1
----
714

skipif mysql # not compatible
query I rowsort label-8338
SELECT - - 22 * 34 - COUNT ( * ) / - 46 + + ( - 34 ) AS col1
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT + + 96 * - NULLIF ( - 34, + 18 * COALESCE ( - 21, 86 + + 45 * + - 40, + COUNT( * ) + 59, - + 60 ) * - + 43 + + 74 ) AS col0
----
3264

skipif mysql # not compatible
query I rowsort label-8339
SELECT + + 96 * - NULLIF ( - 34, + 18 * COALESCE ( - 21, 86 + + 45 * + - 40, + COUNT ( * ) + 59, - + 60 ) * - + 43 + + 74 ) AS col0
----
3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT + ( 39 ) + CAST( NULL AS SIGNED ) * - CASE + 66 WHEN - 1 * - - 71 THEN - 82 END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT + ( 39 ) + CAST ( NULL AS INTEGER ) * - CASE + 66 WHEN - 1 * - - 71 THEN - 82 END + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + ( + SUM( + 11 ) )
----
11

skipif mysql # not compatible
query I rowsort label-8341
SELECT + ( + SUM ( + 11 ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT COUNT( - + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-8342
SELECT COUNT ( - + 91 )
----
1

query I rowsort
SELECT COALESCE ( + + 94, + 13 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT - 17 * - - 19 + - + 96 + + 97 - + + COUNT( * ) + + 57
----
-266

skipif mysql # not compatible
query I rowsort label-8344
SELECT - 17 * - - 19 + - + 96 + + 97 - + + COUNT ( * ) + + 57
----
-266

query I rowsort
SELECT + 14 + - 43 + - 64 * - 99 AS col2
----
6307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8346
SELECT ALL - - MAX( ALL + + ( - + CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) + - - 91 + + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - - MAX ( ALL + + ( - + CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) + - - 91 + + + 34
----
NULL

query I rowsort
SELECT + + ( - 42 ) + + 6 AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8348
SELECT CAST( + - COALESCE ( - 86, + 57, + 55 * - NULLIF ( + COUNT( * ), MAX( ALL - + 21 ) * + 37 ) * + 12 * - - 64 ) AS SIGNED ), 76 - - NULLIF ( - ( + + ( - + 92 ) ), 85 + - CASE 20 WHEN COUNT( * ) THEN - 87 WHEN 67 + - 73 THEN NULL ELSE NULL END * + COUNT( * ) ) AS col1
----
86
168

skipif mysql # not compatible
query II rowsort label-8348
SELECT CAST ( + - COALESCE ( - 86, + 57, + 55 * - NULLIF ( + COUNT ( * ), MAX ( ALL - + 21 ) * + 37 ) * + 12 * - - 64 ) AS INTEGER ), 76 - - NULLIF ( - ( + + ( - + 92 ) ), 85 + - CASE 20 WHEN COUNT ( * ) THEN - 87 WHEN 67 + - 73 THEN NULL ELSE NULL END * + COUNT ( * ) ) AS col1
----
86
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT DISTINCT - 63 * - - CAST( NULL AS SIGNED ) + - 89 * + - 95 + - - 81 + - 63 + + 88 + - 21 + 36 * - CAST( + 9 AS SIGNED ) * - 24 + ( - 14 ) * + + CAST( + + 85 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT - 63 * - - CAST ( NULL AS INTEGER ) + - 89 * + - 95 + - - 81 + - 63 + + 88 + - 21 + 36 * - CAST ( + 9 AS INTEGER ) * - 24 + ( - 14 ) * + + CAST ( + + 85 AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - - 39 * 63 col2, 80 AS col1
----
2457
80

query I rowsort
SELECT ALL - 11 * 49
----
-539

query I rowsort
SELECT - 77 + + 83
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8353
SELECT DISTINCT 83 + - + NULLIF ( - NULLIF ( + + 45, - + COUNT( * ) + - AVG ( - + 39 ) + + - 32 DIV CAST( NULL AS SIGNED ) ), - 25 ) + + COALESCE ( - ( + 82 ), - COUNT( * ) DIV + + 1 )
----
46

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT 83 + - + NULLIF ( - NULLIF ( + + 45, - + COUNT ( * ) + - AVG ( - + 39 ) + + - 32 / CAST ( NULL AS INTEGER ) ), - 25 ) + + COALESCE ( - ( + 82 ), - COUNT ( * ) / + + 1 )
----
46

query I rowsort
SELECT ALL + 48 * + 32 * - + 34 AS col0
----
-52224

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT - CASE - NULLIF ( + 45, - ( - COUNT( * ) ) / 77 * - 73 ) WHEN + 87 THEN NULL WHEN - 68 THEN + - 18 - + 23 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT - CASE - NULLIF ( + 45, - ( - COUNT ( * ) ) / 77 * - 73 ) WHEN + 87 THEN NULL WHEN - 68 THEN + - 18 - + 23 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 39 + 49 + - - 28 + 39 AS col1
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8357
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + ( + - 9 ) + + + 78 + - ( - 55 ) - - ( + 25 ) AS col2
----
149

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + ( + - 9 ) + + + 78 + - ( - 55 ) - - ( + 25 ) AS col2
----
149

query I rowsort
SELECT + 41 + + + 84 * + 47
----
3989

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT ALL + 48 * - MIN( 93 )
----
-4464

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL + 48 * - MIN ( 93 )
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + COUNT( * ) + + 69 - - 18 + - + 61
----
27

skipif mysql # not compatible
query I rowsort label-8360
SELECT + COUNT ( * ) + + 69 - - 18 + - + 61
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8361
SELECT - CAST( NULL AS DECIMAL ) - - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT - CAST ( NULL AS REAL ) - - 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT - 93 + + COUNT( * ) * 97 * + - 97 + + - ( - + 40 )
----
-9462

skipif mysql # not compatible
query I rowsort label-8362
SELECT - 93 + + COUNT ( * ) * 97 * + - 97 + + - ( - + 40 )
----
-9462

query I rowsort
SELECT ALL + 76 - 95 col1
----
-19

query I rowsort
SELECT ALL ( - 46 ) AS col1
----
-46

query II rowsort
SELECT - 2 col2, - 31 AS col0
----
-2
-31

query I rowsort
SELECT ALL 75 * - 37 AS col0
----
-2775

query I rowsort
SELECT - 87 + - + 96 AS col2
----
-183

onlyif mysql # aggregate syntax: 
query III rowsort label-8368
SELECT 19 AS col0, + 45 + MIN( 66 ) AS col0, - - ( 80 )
----
19
111
80

skipif mysql # not compatible
query III rowsort label-8368
SELECT 19 AS col0, + 45 + MIN ( 66 ) AS col0, - - ( 80 )
----
19
111
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT NULLIF ( COUNT( * ), + CASE - 73 WHEN + 5 THEN - - 87 + NULLIF ( - 81, + NULLIF ( 53, + CASE + 81 WHEN COUNT( * ) THEN NULL WHEN - 67 THEN + + 14 - + 46 * 50 END + - 43 ) ) + - 27 WHEN 51 THEN NULL ELSE NULL END * 93 + - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT NULLIF ( COUNT ( * ), + CASE - 73 WHEN + 5 THEN - - 87 + NULLIF ( - 81, + NULLIF ( 53, + CASE + 81 WHEN COUNT ( * ) THEN NULL WHEN - 67 THEN + + 14 - + 46 * 50 END + - 43 ) ) + - 27 WHEN 51 THEN NULL ELSE NULL END * 93 + - 90 )
----
1

query I rowsort
SELECT - 22 * + - 23 AS col2
----
506

query I rowsort
SELECT ALL - 86 * - 84 AS col0
----
7224

query I rowsort
SELECT - 39 + - + 45 AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8373
SELECT DISTINCT - 4 DIV - 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT - 4 / - 34 col0
----
0

query II rowsort
SELECT 11 AS col0, 41 AS col0
----
11
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8375
SELECT - 92 * + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0, 29
----
0
29

skipif mysql # not compatible
query II rowsort label-8375
SELECT - 92 * + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0, 29
----
0
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8376
SELECT ALL - MIN( ALL - 2 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL - MIN ( ALL - 2 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8377
SELECT CAST( NULL AS SIGNED ), - 16 AS col2
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-8377
SELECT CAST ( NULL AS INTEGER ), - 16 AS col2
----
NULL
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT 14 DIV - + ( - - NULLIF ( + 65, + 46 ) ) + - ( 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-8378
SELECT 14 / - + ( - - NULLIF ( + 65, + 46 ) ) + - ( 65 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8379
SELECT + + COUNT( * ), 66 col2
----
1
66

skipif mysql # not compatible
query II rowsort label-8379
SELECT + + COUNT ( * ), 66 col2
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT DISTINCT + + COUNT( DISTINCT + 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT + + COUNT ( DISTINCT + 56 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT ALL - 81 DIV + 7 + + 9 * - 23 AS col2
----
-218

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL - 81 / + 7 + + 9 * - 23 AS col2
----
-218

onlyif mysql # DIV for integer division: 
query II rowsort label-8382
SELECT DISTINCT + 45 DIV + 42 + 16, - 16 - - - 2 - 64 + + 59 - + 12 * - - 82 AS col2
----
17
-1007

skipif mysql # not compatible
query II rowsort label-8382
SELECT DISTINCT + 45 / + 42 + 16, - 16 - - - 2 - 64 + + 59 - + 12 * - - 82 AS col2
----
17
-1007

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL + MAX( - + 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + MAX ( - + 64 ) AS col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8384
SELECT DISTINCT - - COUNT( * ) DIV 22 - 93 + - 56 AS col1
----
-149

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - - COUNT ( * ) / 22 - 93 + - 56 AS col1
----
-149

query I rowsort
SELECT - - 40 - + 84 AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT + + ( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT + + ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT + - 90 * + 41 col0
----
-3690

query I rowsort
SELECT + - 85 * - 70 AS col0
----
5950

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ALL - 79 * + - ( - + MAX( DISTINCT 67 ) )
----
-5293

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL - 79 * + - ( - + MAX ( DISTINCT 67 ) )
----
-5293

query II rowsort
SELECT + - 58 col0, ( + - CASE + 20 WHEN + 23 THEN + 5 * - - 27 ELSE 18 END )
----
-58
-18

query I rowsort
SELECT ALL + - 26 col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8392
SELECT ALL 6 * - - 24 + - 20 col0, - ( - CAST( NULL AS SIGNED ) ) - - + CAST( NULL AS SIGNED )
----
124
NULL

skipif mysql # not compatible
query II rowsort label-8392
SELECT ALL 6 * - - 24 + - 20 col0, - ( - CAST ( NULL AS INTEGER ) ) - - + CAST ( NULL AS INTEGER )
----
124
NULL

query I rowsort
SELECT DISTINCT 84 * 79 * 11 - - 28 AS col0
----
73024

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT + 0 * + - COUNT( * ) * - 95
----
0

skipif mysql # not compatible
query I rowsort label-8394
SELECT + 0 * + - COUNT ( * ) * - 95
----
0

query I rowsort
SELECT + 6 * + - 13
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ( + ( COUNT( * ) ) ) + - 48
----
-47

skipif mysql # not compatible
query I rowsort label-8396
SELECT ( + ( COUNT ( * ) ) ) + - 48
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8397
SELECT 88 + + + 5 + + 15 DIV - 75 * - 30 + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8397
SELECT 88 + + + 5 + + 15 / - 75 * - 30 + + COUNT ( * )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT ALL 64 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL 64 / + 81
----
0

query I rowsort
SELECT DISTINCT + 63 * 88 AS col1
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT CASE - 17 WHEN - 57 * - - 86 * + 44 / + SUM( - - ( 64 ) ) / 23 + - COUNT( * ) THEN 54 * + ( - - 8 ) + + 26 * - - 68 WHEN + COUNT( * ) THEN NULL END / - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT CASE - 17 WHEN - 57 * - - 86 * + 44 / + SUM ( - - ( 64 ) ) / 23 + - COUNT ( * ) THEN 54 * + ( - - 8 ) + + 26 * - - 68 WHEN + COUNT ( * ) THEN NULL END / - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8401
SELECT ALL 28 DIV - 23, + 49 AS col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-8401
SELECT ALL 28 / - 23, + 49 AS col1
----
-1
49

query I rowsort
SELECT 97 * + 19 AS col2
----
1843

query I rowsort
SELECT ALL 22 * - 30
----
-660

query I rowsort
SELECT 68 - - + NULLIF ( + 86, + 68 * + - 94 / + 33 + + COALESCE ( + 18, AVG ( + 53 ), - - 63 ) + + - 91 ) AS col2
----
154

query I rowsort
SELECT ( - 80 ) + 65 AS col0
----
-15

query I rowsort
SELECT 87 * + - ( - - 61 )
----
-5307

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8407
SELECT ALL - COALESCE ( + + 22, - + 1 + 79 - COUNT( * ) DIV - 68 )
----
-22

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - COALESCE ( + + 22, - + 1 + 79 - COUNT ( * ) / - 68 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT DISTINCT - - CASE - 88 WHEN - 68 THEN NULL ELSE + - 78 END + + COUNT( * ) * - 67
----
-145

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT - - CASE - 88 WHEN - 68 THEN NULL ELSE + - 78 END + + COUNT ( * ) * - 67
----
-145

query II rowsort
SELECT DISTINCT + 57 + 81 * + 41 - - 13, - 42 + 80 AS col1
----
3391
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8410
SELECT 30 DIV + 92 + - 50 - - + 82 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8410
SELECT 30 / + 92 + - 50 - - + 82 AS col1
----
32

query I rowsort
SELECT + NULLIF ( 69, + 24 ) AS col2
----
69

query I rowsort
SELECT DISTINCT + 33 + 42 - - 82 AS col0
----
157

query I rowsort
SELECT + - ( - ( 72 ) ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT 89 * - 94 / - 46 + - - 76 + 15 - 68 + - + CASE + + 69 WHEN - - ( - ( 26 ) ) THEN NULL WHEN - - ( 57 ) + - + 65 THEN 5 - - MIN( DISTINCT + 63 ) - + 40 / - + 76 END - + 45 * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT 89 * - 94 / - 46 + - - 76 + 15 - 68 + - + CASE + + 69 WHEN - - ( - ( 26 ) ) THEN NULL WHEN - - ( 57 ) + - + 65 THEN 5 - - MIN ( DISTINCT + 63 ) - + 40 / - + 76 END - + 45 * 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8415
SELECT + 50 * - + 88 - - 13 * COUNT( * ) + + + 70 + CAST( NULL AS DECIMAL ) * - COALESCE ( + 2, 61 - 74, COUNT( * ) * - + 96 + + + CASE 49 WHEN - 10 THEN NULL ELSE - 39 END ) / - 44 + + 24 - 54 / - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT + 50 * - + 88 - - 13 * COUNT ( * ) + + + 70 + CAST ( NULL AS REAL ) * - COALESCE ( + 2, 61 - 74, COUNT ( * ) * - + 96 + + + CASE 49 WHEN - 10 THEN NULL ELSE - 39 END ) / - 44 + + 24 - 54 / - 17 AS col2
----
NULL

query I rowsort
SELECT ALL + + 42 + - + 49
----
-7

query I rowsort
SELECT - 58 * - 7
----
406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT 45 * - 38 + + 69 + - - 98 + - MAX( DISTINCT + 1 ) + + ( + COUNT( - - NULLIF ( + 53, - + 69 ) ) ) + - 83 + - 3 DIV 70 + + 48 * - + COUNT( * ) + + CASE - - MAX( + 91 ) WHEN - COUNT( * ) THEN COUNT( * ) + - 87 * COUNT( * ) WHEN - NULLIF ( 79, + 74 DIV + 66 ) * COALESCE ( - 61, + 25 * + 76 ) THEN NULL ELSE 26 * + 57 - ( - 55 + 68 ) END DIV COUNT( * ) AS col0
----
-205

skipif mysql # not compatible
query I rowsort label-8418
SELECT 45 * - 38 + + 69 + - - 98 + - MAX ( DISTINCT + 1 ) + + ( + COUNT ( - - NULLIF ( + 53, - + 69 ) ) ) + - 83 + - 3 / 70 + + 48 * - + COUNT ( * ) + + CASE - - MAX ( + 91 ) WHEN - COUNT ( * ) THEN COUNT ( * ) + - 87 * COUNT ( * ) WHEN - NULLIF ( 79, + 74 / + 66 ) * COALESCE ( - 61, + 25 * + 76 ) THEN NULL ELSE 26 * + 57 - ( - 55 + 68 ) END / COUNT ( * ) AS col0
----
-205

query I rowsort
SELECT ALL - 39 + + + 48 * ( 38 ) + + ( + 91 ) AS col1
----
1876

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL ( + SUM( + 83 ) ) - + 96 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL ( + SUM ( + 83 ) ) - + 96 AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT + CAST( 86 AS SIGNED ) * - CAST( + 20 AS SIGNED ) + + ( 4 )
----
-1716

skipif mysql # not compatible
query I rowsort label-8421
SELECT + CAST ( 86 AS INTEGER ) * - CAST ( + 20 AS INTEGER ) + + ( 4 )
----
-1716

query I rowsort
SELECT ALL - ( + 35 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT 43 + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8423
SELECT 43 + COUNT ( * ) AS col2
----
44

query II rowsort
SELECT + 32, 58 col1
----
32
58

query I rowsort
SELECT DISTINCT 23 * - 61 AS col2
----
-1403

query I rowsort
SELECT DISTINCT 75 * - 68 AS col2
----
-5100

query I rowsort
SELECT DISTINCT 87 * 29 * - 63 AS col1
----
-158949

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8428
SELECT 62 DIV + CAST( - 58 AS SIGNED ) AS col2, + 47 + - 40 + + 85 AS col1
----
-1
92

skipif mysql # not compatible
query II rowsort label-8428
SELECT 62 / + CAST ( - 58 AS INTEGER ) AS col2, + 47 + - 40 + + 85 AS col1
----
-1
92

query I rowsort
SELECT ALL 22 + - 12
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8430
SELECT MAX( ALL - 72 ) + 65 AS col0, + CAST( + 52 AS SIGNED ) AS col2
----
-7
52

skipif mysql # not compatible
query II rowsort label-8430
SELECT MAX ( ALL - 72 ) + 65 AS col0, + CAST ( + 52 AS INTEGER ) AS col2
----
-7
52

query I rowsort
SELECT 78 + - 25 AS col0
----
53

query I rowsort
SELECT 13 - + 55 AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT 23 + 18 DIV + + ( 19 )
----
23

skipif mysql # not compatible
query I rowsort label-8433
SELECT 23 + 18 / + + ( 19 )
----
23

query I rowsort
SELECT 97 * + + 87 col2
----
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL 68 + - 34 - - 2 * - 19 * - 91 * - + ( + SUM( - - 76 ) ) AS col1
----
-262774

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL 68 + - 34 - - 2 * - 19 * - 91 * - + ( + SUM ( - - 76 ) ) AS col1
----
-262774

query I rowsort
SELECT 3 + + ( - 20 ) * 49
----
-977

query I rowsort
SELECT + 40 + + 49 * - 79 AS col0
----
-3831

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8438
SELECT DISTINCT COUNT( * ) + - + COALESCE ( + 57, + 22 * + COUNT( * ) * 56 + CASE COALESCE ( + 24, + 20 + + 24 ) WHEN - 88 * 4 DIV - 17 THEN - 41 ELSE + 50 * + - 97 DIV - + NULLIF ( + COALESCE ( 97, COUNT( * ) + COUNT( * ) * CAST( NULL AS SIGNED ) ), + 44 ) - ( + 8 ) END + + 28, - 61 - + 2 ) + - 2
----
-58

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT COUNT ( * ) + - + COALESCE ( + 57, + 22 * + COUNT ( * ) * 56 + CASE COALESCE ( + 24, + 20 + + 24 ) WHEN - 88 * 4 / - 17 THEN - 41 ELSE + 50 * + - 97 / - + NULLIF ( + COALESCE ( 97, COUNT ( * ) + COUNT ( * ) * CAST ( NULL AS INTEGER ) ), + 44 ) - ( + 8 ) END + + 28, - 61 - + 2 ) + - 2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT ALL - - ( - 96 ) * 87 DIV 91
----
-91

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - - ( - 96 ) * 87 / 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT ALL 36 + + 31 + - COUNT( ALL 27 ) col0
----
66

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL 36 + + 31 + - COUNT ( ALL 27 ) col0
----
66

query I rowsort
SELECT 19 * + 43 * + 26 AS col1
----
21242

query I rowsort
SELECT - CASE + 82 WHEN - 44 THEN - 77 + - - 39 / + 64 * + - 8 + 51 END + + 63 AS col0
----
NULL

query I rowsort
SELECT ALL - - 89 * + - 65 * - + 10 + 47 AS col1
----
57897

query I rowsort
SELECT 8 + 1 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT + + MIN( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8445
SELECT + + MIN ( 77 )
----
77

query I rowsort
SELECT DISTINCT - + ( - + 61 )
----
61

query I rowsort
SELECT ALL + 57 * + 86 - - 92 AS col0
----
4994

query I rowsort
SELECT + 56 * - - 91 AS col1
----
5096

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT ALL - 52 * - 0 DIV - 98 * 7 * + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL - 52 * - 0 / - 98 * 7 * + 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT - 14 * + 0 - + 44 + + 29 * - COUNT( * ) - + 34 * 20 AS col0
----
-753

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT - 14 * + 0 - + 44 + + 29 * - COUNT ( * ) - + 34 * 20 AS col0
----
-753

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL - - ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - - ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT 19 + + 20 * 5 + + 64 col0
----
183

query I rowsort
SELECT DISTINCT - - 48 col0
----
48

query I rowsort
SELECT - 92 * - + 39
----
3588

query II rowsort
SELECT + 15 AS col0, + 91 AS col0
----
15
91

query I rowsort
SELECT ALL + 89 * 34
----
3026

query I rowsort
SELECT + 69 * + + 91 + - 62
----
6217

query I rowsort
SELECT DISTINCT + 71 * + 89
----
6319

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ALL - 17 * - + MAX( 91 )
----
1547

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL - 17 * - + MAX ( 91 )
----
1547

query I rowsort
SELECT ALL + 90 * + ( + 16 ) AS col1
----
1440

query I rowsort
SELECT DISTINCT + ( 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT ALL - 17 + + - ( MAX( + ( - 56 ) ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL - 17 + + - ( MAX ( + ( - 56 ) ) ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ALL + COUNT( * ) + + 72 + - + COUNT( * ) + 97 * + 6 AS col0
----
654

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + COUNT ( * ) + + 72 + - + COUNT ( * ) + 97 * + 6 AS col0
----
654

query I rowsort
SELECT DISTINCT NULLIF ( + 13, ( + - 96 ) + 38 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - COALESCE ( - 6, - - COUNT( * ), - 46 ) * COUNT( * ) * COUNT( * ) * 22
----
132

skipif mysql # not compatible
query I rowsort label-8465
SELECT - COALESCE ( - 6, - - COUNT ( * ), - 46 ) * COUNT ( * ) * COUNT ( * ) * 22
----
132

query I rowsort
SELECT + 10 + - 69 AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8467
SELECT 35, 21 * + CAST( NULL AS SIGNED ) * - 14 col2
----
35
NULL

skipif mysql # not compatible
query II rowsort label-8467
SELECT 35, 21 * + CAST ( NULL AS INTEGER ) * - 14 col2
----
35
NULL

query I rowsort
SELECT 55 * - - 21 + + 81
----
1236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT + 45 - + 95 + + - 56 + - - CASE COUNT( * ) WHEN 44 THEN - CAST( NULL AS SIGNED ) WHEN + - 94 + 52 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT + 45 - + 95 + + - 56 + - - CASE COUNT ( * ) WHEN 44 THEN - CAST ( NULL AS INTEGER ) WHEN + - 94 + 52 THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT - 65 AS col1, + 10 AS col1
----
-65
10

query I rowsort
SELECT - 74 * - 68 AS col0
----
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT CASE - - COUNT( + 85 ) WHEN + 97 THEN NULL ELSE + 35 + 10 + 28 + 0 END AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT CASE - - COUNT ( + 85 ) WHEN + 97 THEN NULL ELSE + 35 + 10 + 28 + 0 END AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL NULLIF ( + 28, + COALESCE ( + MIN( ALL 89 ), 82 + 30 / - 40 ) )
----
28

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL NULLIF ( + 28, + COALESCE ( + MIN ( ALL 89 ), 82 + 30 / - 40 ) )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8474
SELECT - COUNT( * ), + 77 * - COUNT( + + 59 ) * - 66 * 29 AS col1
----
-1
147378

skipif mysql # not compatible
query II rowsort label-8474
SELECT - COUNT ( * ), + 77 * - COUNT ( + + 59 ) * - 66 * 29 AS col1
----
-1
147378

query I rowsort
SELECT + 9 * 48 AS col0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL 7 + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL 7 + COUNT ( * ) AS col1
----
8

query II rowsort
SELECT 17 AS col1, + 13 * - 71
----
17
-923

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8478
SELECT - MAX( ALL - 24 ) - - COUNT( * ) DIV + + 18 * + 85 * - COALESCE ( + - 77, + 5 * + - 53 ) col1, 73
----
24
73

skipif mysql # not compatible
query II rowsort label-8478
SELECT - MAX ( ALL - 24 ) - - COUNT ( * ) / + + 18 * + 85 * - COALESCE ( + - 77, + 5 * + - 53 ) col1, 73
----
24
73

query II rowsort
SELECT 55 col0, + 74
----
55
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL + MIN( DISTINCT - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + MIN ( DISTINCT - 81 )
----
-81

query I rowsort
SELECT + + 78 + - 0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT + + ( - + 63 ) * - MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT + + ( - + 63 ) * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 74 + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 74 + - 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8484
SELECT + + 86 - - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + - 10 AS col2, 95 * + ( CAST( NULL AS SIGNED ) ) + MIN( ALL + + 85 ) * + 63
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8484
SELECT + + 86 - - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + - 10 AS col2, 95 * + ( CAST ( NULL AS INTEGER ) ) + MIN ( ALL + + 85 ) * + 63
----
NULL
NULL

query II rowsort
SELECT ALL - 54, 59 + - 23 * 44 + - 8 * - 90 AS col0
----
-54
-233

query II rowsort
SELECT ALL + 44 AS col0, + 26
----
44
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL - + COUNT( DISTINCT 43 ) * + 75
----
-75

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - + COUNT ( DISTINCT 43 ) * + 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT + 67 + MAX( + 48 ) * - + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8488
SELECT + 67 + MAX ( + 48 ) * - + COUNT ( * )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL COUNT( * ) / ( + - CASE - ( + CAST( - 55 AS SIGNED ) ) WHEN - + 14 + - - 45 THEN NULL WHEN - ( - 49 ) + + 50 THEN + - ( - - ( - + ( + 48 ) ) ) WHEN - NULLIF ( - + MIN( - 95 ), + 42 ) * - + 42 * + + 3 + + ( - 25 ) THEN 36 END ) * 26 + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL COUNT ( * ) / ( + - CASE - ( + CAST ( - 55 AS INTEGER ) ) WHEN - + 14 + - - 45 THEN NULL WHEN - ( - 49 ) + + 50 THEN + - ( - - ( - + ( + 48 ) ) ) WHEN - NULLIF ( - + MIN ( - 95 ), + 42 ) * - + 42 * + + 3 + + ( - 25 ) THEN 36 END ) * 26 + - 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT + CAST( NULL AS SIGNED ) / - 41 / + - COALESCE ( - - 82, + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT + CAST ( NULL AS INTEGER ) / - 41 / + - COALESCE ( - - 82, + 80 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8491
SELECT + 15, - CAST( NULL AS SIGNED ) * + 43 AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-8491
SELECT + 15, - CAST ( NULL AS INTEGER ) * + 43 AS col1
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT - 87 * COUNT( * ) + 94 + + 9 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8492
SELECT - 87 * COUNT ( * ) + 94 + + 9 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT - - CAST( NULL AS SIGNED ) * 36 + - - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT - - CAST ( NULL AS INTEGER ) * 36 + - - 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL + 40 * + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + 40 * + + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT + 99 DIV 17 + + - 59 + COUNT( * ) + + 37 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8495
SELECT + 99 / 17 + + - 59 + COUNT ( * ) + + 37 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - 91 * - COUNT( * ) - - 27 col1
----
118

skipif mysql # not compatible
query I rowsort label-8496
SELECT - 91 * - COUNT ( * ) - - 27 col1
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT + 3 * + CAST( 5 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT + 3 * + CAST ( 5 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT - CAST( NULL AS SIGNED ) * CAST( + + 60 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT - CAST ( NULL AS INTEGER ) * CAST ( + + 60 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT COALESCE ( - COUNT( * ), 69 + + CAST( NULL AS SIGNED ), - + COALESCE ( + 50, - SUM( DISTINCT - 75 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8499
SELECT COALESCE ( - COUNT ( * ), 69 + + CAST ( NULL AS INTEGER ), - + COALESCE ( + 50, - SUM ( DISTINCT - 75 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL ( - MIN( 22 ) ) * 92 - - 80 * - - 39 + - 69 - 7 AS col0
----
1020

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL ( - MIN ( 22 ) ) * 92 - - 80 * - - 39 + - 69 - 7 AS col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT + 5 + 71 + + 69 * - COUNT( * ) * - 98 AS col0
----
6838

skipif mysql # not compatible
query I rowsort label-8501
SELECT + 5 + 71 + + 69 * - COUNT ( * ) * - 98 AS col0
----
6838

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8502
SELECT + CAST( + 62 AS SIGNED ) AS col2, + 65 AS col0
----
62
65

skipif mysql # not compatible
query II rowsort label-8502
SELECT + CAST ( + 62 AS INTEGER ) AS col2, + 65 AS col0
----
62
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT COALESCE ( - 6, + + 63 + + COUNT( ALL - 36 ) DIV + - 45, - - SUM( + + 95 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-8503
SELECT COALESCE ( - 6, + + 63 + + COUNT ( ALL - 36 ) / + - 45, - - SUM ( + + 95 ) )
----
-6

query I rowsort
SELECT NULLIF ( + ( 82 ), - 40 ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT - 9 * - CASE NULLIF ( - COUNT( * ), 72 ) WHEN 29 + - MAX( DISTINCT 2 ) + CASE + + 93 WHEN + - COUNT( * ) THEN + 33 WHEN + CAST( NULL AS SIGNED ) THEN + 2 + + + 85 ELSE 63 END * + 27 - 77 THEN + + COUNT( ALL - - 27 ) ELSE - + COALESCE ( + 47, MIN( DISTINCT + 62 ) ) END AS col1
----
-423

skipif mysql # not compatible
query I rowsort label-8505
SELECT - 9 * - CASE NULLIF ( - COUNT ( * ), 72 ) WHEN 29 + - MAX ( DISTINCT 2 ) + CASE + + 93 WHEN + - COUNT ( * ) THEN + 33 WHEN + CAST ( NULL AS INTEGER ) THEN + 2 + + + 85 ELSE 63 END * + 27 - 77 THEN + + COUNT ( ALL - - 27 ) ELSE - + COALESCE ( + 47, MIN ( DISTINCT + 62 ) ) END AS col1
----
-423

query I rowsort
SELECT - 27 + + 83 col0
----
56

query I rowsort
SELECT - - 56 + 92 - + 96 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8508
SELECT - - 51 - CAST( NULL AS SIGNED ), - 65 AS col0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-8508
SELECT - - 51 - CAST ( NULL AS INTEGER ), - 65 AS col0
----
NULL
-65

query I rowsort
SELECT DISTINCT CASE 8 WHEN + 31 THEN NULL ELSE + - 66 END AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL + NULLIF ( + COALESCE ( - - 26, - 5 ), - MAX( - 35 ) )
----
26

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + NULLIF ( + COALESCE ( - - 26, - 5 ), - MAX ( - 35 ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8511
SELECT + + 76 + - CAST( NULL AS DECIMAL ) + + CAST( - ( + ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) - - SUM( + - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT + + 76 + - CAST ( NULL AS REAL ) + + CAST ( - ( + ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) - - SUM ( + - 15 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT + - 18 * + 20 * 88 * - + ( - 39 ) * + NULLIF ( - 15, + - COUNT( * ) + - 50 ) * + ( - AVG ( ALL + + NULLIF ( - 72, 3 ) ) ) - + MIN( DISTINCT 83 ) + - 48 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT + - 18 * + 20 * 88 * - + ( - 39 ) * + NULLIF ( - 15, + - COUNT ( * ) + - 50 ) * + ( - AVG ( ALL + + NULLIF ( - 72, 3 ) ) ) - + MIN ( DISTINCT 83 ) + - 48 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT + - COUNT( * ) + 74 + - 75
----
-2

skipif mysql # not compatible
query I rowsort label-8513
SELECT + - COUNT ( * ) + 74 + - 75
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT - 11 * - + 49 * - AVG ( + 98 ) - + CASE 88 WHEN ( 14 ) * + 95 THEN 84 - + COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT - 11 * - + 49 * - AVG ( + 98 ) - + CASE 88 WHEN ( 14 ) * + 95 THEN 84 - + COUNT ( * ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT - - 57 * + 67 AS col0
----
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT + CASE + 81 WHEN 41 THEN + 45 - - - AVG ( + 28 ) WHEN 61 + - 56 / + - 78 * + 98 + - + 86 + COUNT( * ) / MIN( 89 ) * + - 55 THEN - ( + 47 ) + ( - 81 ) WHEN - COUNT( * ) * + + 3 - + MAX( ALL 3 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT + CASE + 81 WHEN 41 THEN + 45 - - - AVG ( + 28 ) WHEN 61 + - 56 / + - 78 * + 98 + - + 86 + COUNT ( * ) / MIN ( 89 ) * + - 55 THEN - ( + 47 ) + ( - 81 ) WHEN - COUNT ( * ) * + + 3 - + MAX ( ALL 3 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 65 * + 38 * + 33 + - + 71 + - 26 col1
----
81413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT CAST( - 66 AS SIGNED ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8518
SELECT CAST ( - 66 AS INTEGER ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT 25 * + 63 + MIN( - 17 )
----
1558

skipif mysql # not compatible
query I rowsort label-8519
SELECT 25 * + 63 + MIN ( - 17 )
----
1558

query I rowsort
SELECT - ( 15 )
----
-15

query II rowsort
SELECT + 75 AS col0, 2 + + 39 AS col0
----
75
41

query II rowsort
SELECT ALL - 43 AS col0, 4 AS col1
----
-43
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT 81 * + COUNT( * ) col2
----
81

skipif mysql # not compatible
query I rowsort label-8523
SELECT 81 * + COUNT ( * ) col2
----
81

query I rowsort
SELECT ALL 35 * + 5
----
175

query II rowsort
SELECT + 84 AS col1, + 52 + - 96
----
84
-44

query I rowsort
SELECT DISTINCT 64 * 65
----
4160

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT 71 - - 52 DIV + 54
----
71

skipif mysql # not compatible
query I rowsort label-8527
SELECT 71 - - 52 / + 54
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-8528
SELECT + 41, - 90 DIV - 81 AS col2
----
41
1

skipif mysql # not compatible
query II rowsort label-8528
SELECT + 41, - 90 / - 81 AS col2
----
41
1

query II rowsort
SELECT ALL - 42 AS col2, + 60 AS col0
----
-42
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8530
SELECT + 73 * 91 - CAST( NULL AS DECIMAL ) col1, - 10 + COUNT( * ) + 55
----
NULL
46

skipif mysql # not compatible
query II rowsort label-8530
SELECT + 73 * 91 - CAST ( NULL AS REAL ) col1, - 10 + COUNT ( * ) + 55
----
NULL
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT - CAST( NULL AS SIGNED ) * 7 / - + SUM( ALL - 75 ) + + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT - CAST ( NULL AS INTEGER ) * 7 / - + SUM ( ALL - 75 ) + + 73 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 93 + + + 31
----
124

query I rowsort
SELECT DISTINCT 4 * + 89
----
356

onlyif mysql # aggregate syntax: 
query II rowsort label-8534
SELECT 6 * + MAX( ALL - 12 ) AS col1, 56 AS col0
----
-72
56

skipif mysql # not compatible
query II rowsort label-8534
SELECT 6 * + MAX ( ALL - 12 ) AS col1, 56 AS col0
----
-72
56

query I rowsort
SELECT DISTINCT 57 + - - 27 * - ( - + ( - - 95 ) ) * + 57 + - + 99 + 17 * + 25 AS col1
----
146588

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8536
SELECT DISTINCT - CAST( NULL AS SIGNED ) / ( - COALESCE ( - CAST( NULL AS DECIMAL ), - 30 * + ( 59 ) + + + 97 - 17 * - 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / ( - COALESCE ( - CAST ( NULL AS REAL ), - 30 * + ( 59 ) + + + 97 - 17 * - 28 ) )
----
NULL

query I rowsort
SELECT ALL 92 - + 37 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT - MIN( ALL + 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT - MIN ( ALL + 85 ) AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT DISTINCT - 58 DIV - 41 + - COALESCE ( 67, - 22 + + 55 * + + 94 + + 6 ) + + 34
----
-32

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - 58 / - 41 + - COALESCE ( 67, - 22 + + 55 * + + 94 + + 6 ) + + 34
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8540
SELECT ( - SUM( - - 62 ) ) * 79 AS col2, + 13 * - - 27 AS col0
----
-4898
351

skipif mysql # not compatible
query II rowsort label-8540
SELECT ( - SUM ( - - 62 ) ) * 79 AS col2, + 13 * - - 27 AS col0
----
-4898
351

query I rowsort
SELECT ALL - 25 * - - 33 AS col1
----
-825

query II rowsort
SELECT ALL 31 AS col0, ( - - NULLIF ( + 16, + - 71 + - 48 ) ) - 61 col0
----
31
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8543
SELECT ALL - COUNT( ALL 21 ) * - 40 AS col2, + 40 * - + COUNT( * ) - + CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-8543
SELECT ALL - COUNT ( ALL 21 ) * - 40 AS col2, + 40 * - + COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT + 75 - COUNT( DISTINCT - 42 ) / - - 4 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT + 75 - COUNT ( DISTINCT - 42 ) / - - 4 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT 42 / - CASE COUNT( * ) WHEN + ( - 15 ) THEN NULL WHEN MIN( ALL - 62 ) THEN - + 62 * + 4 + - 8 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT 42 / - CASE COUNT ( * ) WHEN + ( - 15 ) THEN NULL WHEN MIN ( ALL - 62 ) THEN - + 62 * + 4 + - 8 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 86 * + 94 AS col1
----
8084

query I rowsort
SELECT CASE + + 68 WHEN - 50 + + + 64 - + ( + 50 ) + + 67 THEN NULL ELSE - 20 END + + - 9
----
-29

query I rowsort
SELECT ( - 72 ) * - - 20 AS col0
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT - 2 + + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8549
SELECT - 2 + + COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8550
SELECT ALL - 53 AS col2, - COUNT( * ) DIV - + 60
----
-53
0

skipif mysql # not compatible
query II rowsort label-8550
SELECT ALL - 53 AS col2, - COUNT ( * ) / - + 60
----
-53
0

query I rowsort
SELECT DISTINCT + COALESCE ( 88, 46 + 13 * 13 + + + 55, + 84 ) AS col1
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8552
SELECT ALL - CASE - CAST( NULL AS DECIMAL ) WHEN 31 THEN - 74 END + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - CASE - CAST ( NULL AS REAL ) WHEN 31 THEN - 74 END + - 37 AS col1
----
NULL

query I rowsort
SELECT 42 - ( - + 38 ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8554
SELECT ALL + 57 * 92 + COUNT( * ) DIV - 31 + - ( + ( - + 36 ) ) DIV 65
----
5244

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL + 57 * 92 + COUNT ( * ) / - 31 + - ( + ( - + 36 ) ) / 65
----
5244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL + 31 + - - CAST( NULL AS SIGNED ) / - - AVG ( ALL 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 31 + - - CAST ( NULL AS INTEGER ) / - - AVG ( ALL 5 ) AS col0
----
NULL

query I rowsort
SELECT ALL 94 + - 91 - 46 AS col1
----
-43

query I rowsort
SELECT 91 + - + 22
----
69

query I rowsort
SELECT ALL - 58 * 24 * - + 25 AS col1
----
34800

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT + ( - 93 ) * COUNT( * ) + 99 * - - 58 * - - 38 col0
----
218103

skipif mysql # not compatible
query I rowsort label-8559
SELECT + ( - 93 ) * COUNT ( * ) + 99 * - - 58 * - - 38 col0
----
218103

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT COUNT( - ( + 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8560
SELECT COUNT ( - ( + 72 ) )
----
1

query I rowsort
SELECT ALL 58 + + - 47 * - 90
----
4288

query I rowsort
SELECT 68 * 62 - - 99
----
4315

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8563
SELECT CASE + - 5 WHEN - - ( - 71 ) THEN NULL ELSE + ( + 64 ) END + - 50 * - COUNT( * ) * + COUNT( * ) col1, + 74 DIV - 62 + - 82 AS col0
----
114
-83

skipif mysql # not compatible
query II rowsort label-8563
SELECT CASE + - 5 WHEN - - ( - 71 ) THEN NULL ELSE + ( + 64 ) END + - 50 * - COUNT ( * ) * + COUNT ( * ) col1, + 74 / - 62 + - 82 AS col0
----
114
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8564
SELECT ALL ( + ( 96 ) ) + - CAST( - 53 AS SIGNED )
----
149

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL ( + ( 96 ) ) + - CAST ( - 53 AS INTEGER )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT COUNT( DISTINCT - - 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8565
SELECT COUNT ( DISTINCT - - 41 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT COUNT( * ) * + 42 * 32
----
1344

skipif mysql # not compatible
query I rowsort label-8566
SELECT COUNT ( * ) * + 42 * 32
----
1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8567
SELECT ALL COUNT( * ) DIV + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL COUNT ( * ) / + ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT MIN( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-8568
SELECT MIN ( + 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT DISTINCT CASE 54 WHEN - 8 / + 5 THEN + + 22 * ( + 76 ) * 22 END * - - ( - 4 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT CASE 54 WHEN - 8 / + 5 THEN + + 22 * ( + 76 ) * 22 END * - - ( - 4 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8570
SELECT COALESCE ( 97, - 86, - 8 DIV - COUNT( * ) + - 33 * + + 77 ) + - + 66
----
31

skipif mysql # not compatible
query I rowsort label-8570
SELECT COALESCE ( 97, - 86, - 8 / - COUNT ( * ) + - 33 * + + 77 ) + - + 66
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT 96 * + MIN( ALL - 8 ) AS col0
----
-768

skipif mysql # not compatible
query I rowsort label-8571
SELECT 96 * + MIN ( ALL - 8 ) AS col0
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL COALESCE ( 23, 58 ) * - COUNT( * ) * - SUM( DISTINCT 83 ) * MIN( DISTINCT - 49 ) AS col2
----
-93541

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL COALESCE ( 23, 58 ) * - COUNT ( * ) * - SUM ( DISTINCT 83 ) * MIN ( DISTINCT - 49 ) AS col2
----
-93541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8573
SELECT 6 * - + MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT 6 * - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8574
SELECT 41 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT 41 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8575
SELECT - CAST( + 10 AS SIGNED ) * - 14 + + 47 AS col1, COUNT( * ) + - 45 DIV - + 75 * - + 9 col0
----
187
1

skipif mysql # not compatible
query II rowsort label-8575
SELECT - CAST ( + 10 AS INTEGER ) * - 14 + + 47 AS col1, COUNT ( * ) + - 45 / - + 75 * - + 9 col0
----
187
1

query II rowsort
SELECT ALL - 85 * + - 66 AS col2, - 51 AS col2
----
5610
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8577
SELECT + 93 + - - 85 * COALESCE ( ( - ( - COUNT( * ) ) ), CASE + ( 7 ) WHEN - COUNT( * ) - + 71 THEN NULL WHEN + 7 * + + 20 + + 89 - - 26 + - 62 THEN + 14 * + + NULLIF ( COUNT( * ), - + 98 + - + 10 / - SUM( - 45 ) + - CAST( 84 AS DECIMAL ) ) + ( ( COUNT( * ) ) ) END * 66 + - 13 * 68, + 84 )
----
178

skipif mysql # not compatible
query I rowsort label-8577
SELECT + 93 + - - 85 * COALESCE ( ( - ( - COUNT ( * ) ) ), CASE + ( 7 ) WHEN - COUNT ( * ) - + 71 THEN NULL WHEN + 7 * + + 20 + + 89 - - 26 + - 62 THEN + 14 * + + NULLIF ( COUNT ( * ), - + 98 + - + 10 / - SUM ( - 45 ) + - CAST ( 84 AS REAL ) ) + ( ( COUNT ( * ) ) ) END * 66 + - 13 * 68, + 84 )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + COALESCE ( + - COUNT( * ), - + 48 + - 62 * - 84 * - 65 - - 67 ) + CASE + - 63 WHEN 4 - COUNT( * ) + + 1 * + 31 * + + 31 * - 54 * 85 * - + 3 THEN 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT + COALESCE ( + - COUNT ( * ), - + 48 + - 62 * - 84 * - 65 - - 67 ) + CASE + - 63 WHEN 4 - COUNT ( * ) + + 1 * + 31 * + + 31 * - 54 * 85 * - + 3 THEN 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT COUNT( ALL 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT COUNT ( ALL 80 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8580
SELECT + 73 + 56 AS col1, MAX( DISTINCT - + 23 ) AS col2
----
129
-23

skipif mysql # not compatible
query II rowsort label-8580
SELECT + 73 + 56 AS col1, MAX ( DISTINCT - + 23 ) AS col2
----
129
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT - 42 + - - 52 + - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8581
SELECT - 42 + - - 52 + - COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8582
SELECT - 47 DIV + ( - 92 ) * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT - 47 / + ( - 92 ) * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 56 + - - 16 * - 20 * - 99 - - 29
----
31653

query I rowsort
SELECT ALL + + 63 * 34 + - - 64 AS col2
----
2206

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT - + MIN( DISTINCT - 20 ) + + 27 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - + MIN ( DISTINCT - 20 ) + + 27 AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8586
SELECT DISTINCT MIN( 97 ) + + COUNT( * ) DIV 9 DIV + + 40 col0
----
97

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT MIN ( 97 ) + + COUNT ( * ) / 9 / + + 40 col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL - 28 + + - COUNT( 51 ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL - 28 + + - COUNT ( 51 ) col2
----
-29

query I rowsort
SELECT - - 23 + + 90 * - - 23 AS col1
----
2093

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT ALL + 17 + + ( - 93 ) DIV - + 17
----
22

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + 17 + + ( - 93 ) / - + 17
----
22

query I rowsort
SELECT DISTINCT + - 21 * - + 70 - + - 34 + + 74 AS col0
----
1578

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8591
SELECT - + 48 DIV + 16 + + 75 + - - 16 * + 3 + + MIN( DISTINCT + 22 ) AS col0
----
142

skipif mysql # not compatible
query I rowsort label-8591
SELECT - + 48 / + 16 + + 75 + - - 16 * + 3 + + MIN ( DISTINCT + 22 ) AS col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + COALESCE ( - 4, + - ( + - 9 ), - 35 ) * + MIN( 19 )
----
-76

skipif mysql # not compatible
query I rowsort label-8592
SELECT + COALESCE ( - 4, + - ( + - 9 ), - 35 ) * + MIN ( 19 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT MAX( - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT MAX ( - 68 ) AS col0
----
-68

query I rowsort
SELECT + 88 * - 69 col2
----
-6072

query I rowsort
SELECT ALL + ( + 76 ) AS col0
----
76

query II rowsort
SELECT + 39 AS col2, 75
----
39
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8597
SELECT DISTINCT - COALESCE ( 90, - COUNT( + 46 ) + + - 61 + + 10 DIV - 19 DIV - 12 DIV COUNT( 11 ) ) * - 39, 6 AS col0
----
3510
6

skipif mysql # not compatible
query II rowsort label-8597
SELECT DISTINCT - COALESCE ( 90, - COUNT ( + 46 ) + + - 61 + + 10 / - 19 / - 12 / COUNT ( 11 ) ) * - 39, 6 AS col0
----
3510
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT DISTINCT NULLIF ( - 48, + ( - 36 ) - + 75 + + COUNT( * ) + + ( + 18 ) ) * + + COUNT( - 87 ) + - 25 * 44 - 92 - - 85 col1
----
-1155

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT NULLIF ( - 48, + ( - 36 ) - + 75 + + COUNT ( * ) + + ( + 18 ) ) * + + COUNT ( - 87 ) + - 25 * 44 - 92 - - 85 col1
----
-1155

query I rowsort
SELECT - 10 * + 87
----
-870

query I rowsort
SELECT ALL - 37 * - - 90
----
-3330

query II rowsort
SELECT + 5 AS col0, - 17
----
5
-17

query I rowsort
SELECT - 74 - - 96
----
22

query I rowsort
SELECT + 80 * - 97 col2
----
-7760

query I rowsort
SELECT - 92 * + 32
----
-2944

query I rowsort
SELECT 10 * 33 + - 79 AS col0
----
251

query II rowsort
SELECT ALL + 86 AS col2, - 80 + 8 * - 19
----
86
-232

query II rowsort
SELECT NULLIF ( - 88, 23 ) AS col0, + 52 AS col0
----
-88
52

query I rowsort
SELECT ALL + 11 * 4
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8609
SELECT - 44 DIV COUNT( * ) * 46 AS col1
----
-2024

skipif mysql # not compatible
query I rowsort label-8609
SELECT - 44 / COUNT ( * ) * 46 AS col1
----
-2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT ALL + 8 / 86 + CASE - 98 WHEN - + 10 * CAST( + 91 AS SIGNED ) * - 19 - + 49 + + 58 / 20 + - - COUNT( * ) + - CAST( - CASE + - COUNT( * ) WHEN + 23 * 70 - - 80 THEN 49 * + 57 WHEN - 61 + 57 THEN NULL ELSE + 33 END AS SIGNED ) * + 38 THEN - ( - 16 ) ELSE NULL END + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL + 8 / 86 + CASE - 98 WHEN - + 10 * CAST ( + 91 AS INTEGER ) * - 19 - + 49 + + 58 / 20 + - - COUNT ( * ) + - CAST ( - CASE + - COUNT ( * ) WHEN + 23 * 70 - - 80 THEN 49 * + 57 WHEN - 61 + 57 THEN NULL ELSE + 33 END AS INTEGER ) * + 38 THEN - ( - 16 ) ELSE NULL END + 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT - 75 * - + ( + ( - COUNT( * ) ) )
----
-75

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT - 75 * - + ( + ( - COUNT ( * ) ) )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8612
SELECT ALL + + COUNT( * ) DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL + + COUNT ( * ) / - 67
----
0

query I rowsort
SELECT + 17 * - + 89
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL + 50 * 4 + 74 + - MIN( DISTINCT + 86 ) + 61 + - 82 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + 50 * 4 + 74 + - MIN ( DISTINCT + 86 ) + 61 + - 82 AS col1
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - 61 + + COUNT( * ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-8615
SELECT - 61 + + COUNT ( * ) col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL 23 * - + MAX( + + 93 ) + NULLIF ( - + 58, + COUNT( * ) * - 42 - + + ( - - 79 ) ) AS col0
----
-2197

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL 23 * - + MAX ( + + 93 ) + NULLIF ( - + 58, + COUNT ( * ) * - 42 - + + ( - - 79 ) ) AS col0
----
-2197

query I rowsort
SELECT ALL - - 44 + - 16
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - NULLIF ( + - ( + COUNT( * ) ), + - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-8618
SELECT - NULLIF ( + - ( + COUNT ( * ) ), + - 14 )
----
1

query I rowsort
SELECT ALL - 32 + - 81
----
-113

query II rowsort
SELECT ALL - 23 AS col1, + 2
----
-23
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT + 20 * + + SUM( - 1 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-8621
SELECT + 20 * + + SUM ( - 1 ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8622
SELECT + 64 + 94 * + CAST( + ( - + 25 ) AS SIGNED ) - - 50 + - COUNT( * ) AS col2
----
-2237

skipif mysql # not compatible
query I rowsort label-8622
SELECT + 64 + 94 * + CAST ( + ( - + 25 ) AS INTEGER ) - - 50 + - COUNT ( * ) AS col2
----
-2237

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + 86 + ( - 88 ) + 67 * COUNT( ALL 23 ) + - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8623
SELECT + 86 + ( - 88 ) + 67 * COUNT ( ALL 23 ) + - COUNT ( * ) AS col2
----
64

query I rowsort
SELECT - 94 * + - 4 * + 5
----
1880

query II rowsort
SELECT + 64 + + + 18 AS col2, - ( + + 97 )
----
82
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8626
SELECT ALL COUNT( * ) col2, COUNT( * ) * + ( + 3 ) * + 2
----
1
6

skipif mysql # not compatible
query II rowsort label-8626
SELECT ALL COUNT ( * ) col2, COUNT ( * ) * + ( + 3 ) * + 2
----
1
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT + CAST( NULL AS SIGNED ) + + 37 + + SUM( - 35 ) * - 20 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT + CAST ( NULL AS INTEGER ) + + 37 + + SUM ( - 35 ) * - 20 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 34 + + 40
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8629
SELECT - 11 + - 52 + + COALESCE ( + 77, CAST( NULL AS SIGNED ), - - CAST( - + 8 AS SIGNED ) ) + + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8629
SELECT - 11 + - 52 + + COALESCE ( + 77, CAST ( NULL AS INTEGER ), - - CAST ( - + 8 AS INTEGER ) ) + + COUNT ( * ) AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT ALL + CAST( + + 66 AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + CAST ( + + 66 AS INTEGER ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8631
SELECT - 28 * + 68 AS col0, 35 * - 80 + ( + 37 ) * + - CAST( - ( - - 92 ) AS SIGNED )
----
-1904
604

skipif mysql # not compatible
query II rowsort label-8631
SELECT - 28 * + 68 AS col0, 35 * - 80 + ( + 37 ) * + - CAST ( - ( - - 92 ) AS INTEGER )
----
-1904
604

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT 14 * SUM( DISTINCT + 33 ) + + 24
----
486

skipif mysql # not compatible
query I rowsort label-8632
SELECT 14 * SUM ( DISTINCT + 33 ) + + 24
----
486

query I rowsort
SELECT + 92 * + 10
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT - 51 + 69 * - MIN( DISTINCT + CASE + 43 WHEN + 56 * - - COALESCE ( - 71, + 9 + 52 ) THEN - 84 + + 84 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT - 51 + 69 * - MIN ( DISTINCT + CASE + 43 WHEN + 56 * - - COALESCE ( - 71, + 9 + 52 ) THEN - 84 + + 84 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8635
SELECT + 66 * + 5 * COUNT( * ) - + - 16 AS col2, 23
----
346
23

skipif mysql # not compatible
query II rowsort label-8635
SELECT + 66 * + 5 * COUNT ( * ) - + - 16 AS col2, 23
----
346
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL + SUM( - - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + SUM ( - - 84 )
----
84

query I rowsort
SELECT - 68 * + + 14 AS col2
----
-952

query I rowsort
SELECT - 3 * + 58 + ( 98 ) AS col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8639
SELECT DISTINCT + COUNT( * ) * 29 DIV - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT + COUNT ( * ) * 29 / - COUNT ( * ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT 79 + + - 60 * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8640
SELECT 79 + + - 60 * COUNT ( * )
----
19

query II rowsort
SELECT + - 71 AS col0, + 81 col2
----
-71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL + 41 + - - COUNT( * ) col0
----
42

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + 41 + - - COUNT ( * ) col0
----
42

query I rowsort
SELECT DISTINCT - 83 + - 87
----
-170

query I rowsort
SELECT DISTINCT + - 79 * - 67 + + 60
----
5353

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL 21 + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL 21 + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT - COALESCE ( - - 95, - 49 * 13 * + + 48 ) + 94 DIV + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8646
SELECT - COALESCE ( - - 95, - 49 * 13 * + + 48 ) + 94 / + + COUNT ( * )
----
-1

query II rowsort
SELECT + 90 AS col1, - 34 AS col1
----
90
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT ALL + CAST( NULL AS SIGNED ) + - - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 0 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8649
SELECT - 62 * CAST( NULL AS DECIMAL ) * ( - 94 ) / AVG ( ALL - 25 ) * + 31 * + COUNT( * ) - - + ( + - 89 ) + - + SUM( ALL + 40 ) * 67 + - 64 + - 7 + 57 + + CASE - 3 WHEN - ( 17 ) / + - 69 THEN + 83 * + 33 ELSE NULL END + + 91, 97 AS col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-8649
SELECT - 62 * CAST ( NULL AS REAL ) * ( - 94 ) / AVG ( ALL - 25 ) * + 31 * + COUNT ( * ) - - + ( + - 89 ) + - + SUM ( ALL + 40 ) * 67 + - 64 + - 7 + 57 + + CASE - 3 WHEN - ( 17 ) / + - 69 THEN + 83 * + 33 ELSE NULL END + + 91, 97 AS col2
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT MIN( ALL ( + 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-8650
SELECT MIN ( ALL ( + 61 ) )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT CAST( NULL AS SIGNED ) + - 65 - + COUNT( * ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT CAST ( NULL AS INTEGER ) + - 65 - + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT + 54 + ( MIN( ALL + + 6 ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8652
SELECT + 54 + ( MIN ( ALL + + 6 ) ) AS col0
----
60

query I rowsort
SELECT DISTINCT + 54 - 40
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8654
SELECT CAST( NULL AS SIGNED ) * + 74 AS col2, 91 AS col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-8654
SELECT CAST ( NULL AS INTEGER ) * + 74 AS col2, 91 AS col0
----
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8655
SELECT 22 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-8655
SELECT 22 / - - 93
----
0

query I rowsort
SELECT DISTINCT 80 * - 28 AS col1
----
-2240

onlyif mysql # DIV for integer division: 
query I rowsort label-8657
SELECT DISTINCT 92 DIV + ( + 49 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT 92 / + ( + 49 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8658
SELECT ALL - 47 + + 4, COUNT( * ) + + COUNT( * ) * - + 57 DIV SUM( DISTINCT + + 44 ) AS col1
----
-43
0

skipif mysql # not compatible
query II rowsort label-8658
SELECT ALL - 47 + + 4, COUNT ( * ) + + COUNT ( * ) * - + 57 / SUM ( DISTINCT + + 44 ) AS col1
----
-43
0

query I rowsort
SELECT 57 * - 4
----
-228

query I rowsort
SELECT ALL - 6 + + 53 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL - COUNT( * ) + 54 + + SUM( + 31 ) + + 15
----
99

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL - COUNT ( * ) + 54 + + SUM ( + 31 ) + + 15
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT + + COUNT( + ( + 50 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8662
SELECT + + COUNT ( + ( + 50 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT ( - 52 ) - + + COALESCE ( + CAST( NULL AS SIGNED ), 62 ) AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-8663
SELECT ( - 52 ) - + + COALESCE ( + CAST ( NULL AS INTEGER ), 62 ) AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT 94 * COUNT( * ) * 44
----
4136

skipif mysql # not compatible
query I rowsort label-8664
SELECT 94 * COUNT ( * ) * 44
----
4136

query I rowsort
SELECT + 52 * + 27 + - - 12 * + 11 + + - 14 AS col1
----
1522

query I rowsort
SELECT - CASE 44 WHEN - 78 + + + 0 THEN NULL ELSE - ( 70 ) END AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL - - ( + ( - 72 ) ) + 13 + COUNT( - 82 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - - ( + ( - 72 ) ) + 13 + COUNT ( - 82 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT COUNT( * ) * + 58 + - - 6
----
64

skipif mysql # not compatible
query I rowsort label-8668
SELECT COUNT ( * ) * + 58 + - - 6
----
64

query I rowsort
SELECT DISTINCT + - 44 * - + 20 AS col2
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT - CASE 46 WHEN - 59 THEN NULL WHEN - COALESCE ( COUNT( * ), - ( + COUNT( * ) ) ) + 73 THEN NULL ELSE + COUNT( + 78 ) * - + 42 END
----
42

skipif mysql # not compatible
query I rowsort label-8670
SELECT - CASE 46 WHEN - 59 THEN NULL WHEN - COALESCE ( COUNT ( * ), - ( + COUNT ( * ) ) ) + 73 THEN NULL ELSE + COUNT ( + 78 ) * - + 42 END
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8671
SELECT ALL - + 77 * 49, - COALESCE ( + COUNT( DISTINCT 15 ), 77 DIV + 36 ) AS col2
----
-3773
-1

skipif mysql # not compatible
query II rowsort label-8671
SELECT ALL - + 77 * 49, - COALESCE ( + COUNT ( DISTINCT 15 ), 77 / + 36 ) AS col2
----
-3773
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8672
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - + 37 + - 54 - 31 * + 80 * + SUM( + ( - 40 ) ) + + + 45 / 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - + 37 + - 54 - 31 * + 80 * + SUM ( + ( - 40 ) ) + + + 45 / 63 AS col0
----
NULL

query I rowsort
SELECT + - ( - + 25 )
----
25

query I rowsort
SELECT + 59 + - 8 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT NULLIF ( - - 87, + COUNT( * ) / - 19 ) * 69 * - COUNT( * ) AS col2
----
-6003

skipif mysql # not compatible
query I rowsort label-8675
SELECT NULLIF ( - - 87, + COUNT ( * ) / - 19 ) * 69 * - COUNT ( * ) AS col2
----
-6003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT ALL - - CAST( NULL AS SIGNED ) * + 99 / + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 99 / + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 35 - + 94
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8678
SELECT DISTINCT 71, - ( - CAST( NULL AS SIGNED ) ) * CAST( NULL AS DECIMAL ) + + 16 * + COUNT( ALL - 24 ) * + 96 + 77 AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8678
SELECT DISTINCT 71, - ( - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS REAL ) + + 16 * + COUNT ( ALL - 24 ) * + 96 + 77 AS col0
----
71
NULL

query I rowsort
SELECT ALL - 14 * 84
----
-1176

query I rowsort
SELECT 87 * - NULLIF ( - 74, 21 ) * - 85 * + 36
----
-19700280

query I rowsort
SELECT 90 * + 44 * + - 50
----
-198000

query I rowsort
SELECT 26 * - - 26 AS col0
----
676

query I rowsort
SELECT 96 + + - 76 * - 74 AS col0
----
5720

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ( + 83 ) - + ( + COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-8684
SELECT ( + 83 ) - + ( + COUNT ( * ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL COUNT( * ) * + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL COUNT ( * ) * + 1 AS col2
----
1

query I rowsort
SELECT 16 + 69
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT NULLIF ( - MIN( DISTINCT 71 ), 93 + 10 ) + + ( - + COUNT( * ) ) * - COUNT( * ) - - - 20 * + 39 + 21 + + 17 * + - CASE 94 WHEN - - 60 THEN 15 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT NULLIF ( - MIN ( DISTINCT 71 ), 93 + 10 ) + + ( - + COUNT ( * ) ) * - COUNT ( * ) - - - 20 * + 39 + 21 + + 17 * + - CASE 94 WHEN - - 60 THEN 15 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 39 * - ( - + 77 ) AS col1
----
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL - COUNT( * ) * - - 12
----
-12

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - COUNT ( * ) * - - 12
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8690
SELECT ALL + 52 + 40 + - 84 + + 89 * - SUM( ALL - - 1 ) + - - ( + 11 ) DIV + - 47 + - - 85 * - COUNT( * ) * + - 69 AS col0
----
5784

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + 52 + 40 + - 84 + + 89 * - SUM ( ALL - - 1 ) + - - ( + 11 ) / + - 47 + - - 85 * - COUNT ( * ) * + - 69 AS col0
----
5784

query I rowsort
SELECT DISTINCT - ( + 40 ) + 87 - 69 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8692
SELECT DISTINCT NULLIF ( - + 44, 28 ) + - + CASE - - 28 WHEN - 67 THEN + 96 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - + 2 * 81 THEN - COUNT( ALL - 53 ) + - 6 END AS col2, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8692
SELECT DISTINCT NULLIF ( - + 44, 28 ) + - + CASE - - 28 WHEN - 67 THEN + 96 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 2 * 81 THEN - COUNT ( ALL - 53 ) + - 6 END AS col2, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8693
SELECT NULLIF ( 18, - - 91 ), 45 DIV + 54 AS col2
----
18
0

skipif mysql # not compatible
query II rowsort label-8693
SELECT NULLIF ( 18, - - 91 ), 45 / + 54 AS col2
----
18
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8694
SELECT + COUNT( * ) AS col0, 22
----
1
22

skipif mysql # not compatible
query II rowsort label-8694
SELECT + COUNT ( * ) AS col0, 22
----
1
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8695
SELECT ALL + 84 * + NULLIF ( + 18, + ( 28 ) ) + + + 62 + COUNT( * ) DIV - - 33 - - + 82
----
1656

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL + 84 * + NULLIF ( + 18, + ( 28 ) ) + + + 62 + COUNT ( * ) / - - 33 - - + 82
----
1656

query II rowsort
SELECT + 67, 96 AS col2
----
67
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT CASE + CASE + 71 WHEN - + 18 + + 11 THEN 62 * + MIN( DISTINCT + 1 ) WHEN 46 / - + 6 * + AVG ( + 96 ) THEN + + 89 END WHEN + 89 THEN 83 WHEN + SUM( ALL + ( - - 41 ) ) + + 41 + - ( - 41 ) + - COUNT( * ) + + 59 * + 51 THEN + + 84 ELSE - 30 END AS col2, - 26 * - - COUNT( * )
----
-30
-26

skipif mysql # not compatible
query II rowsort label-8697
SELECT CASE + CASE + 71 WHEN - + 18 + + 11 THEN 62 * + MIN ( DISTINCT + 1 ) WHEN 46 / - + 6 * + AVG ( + 96 ) THEN + + 89 END WHEN + 89 THEN 83 WHEN + SUM ( ALL + ( - - 41 ) ) + + 41 + - ( - 41 ) + - COUNT ( * ) + + 59 * + 51 THEN + + 84 ELSE - 30 END AS col2, - 26 * - - COUNT ( * )
----
-30
-26

query II rowsort
SELECT DISTINCT + + 2 col1, - 33
----
2
-33

query I rowsort
SELECT + + 30 * 98 AS col2
----
2940

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8700
SELECT ALL + 25 DIV 28 + - + COUNT( * ) AS col0, + 14 + + + 35 + - 14 DIV + 57 AS col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-8700
SELECT ALL + 25 / 28 + - + COUNT ( * ) AS col0, + 14 + + + 35 + - 14 / + 57 AS col1
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL + CASE - + SUM( + 32 ) WHEN 8 THEN NULL WHEN - - COUNT( * ) THEN + 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL + CASE - + SUM ( + 32 ) WHEN 8 THEN NULL WHEN - - COUNT ( * ) THEN + 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT + - 70 * + + 47 * + NULLIF ( - 14, + 56 * - - SUM( 57 ) ) - + 5 AS col1
----
46055

skipif mysql # not compatible
query I rowsort label-8702
SELECT + - 70 * + + 47 * + NULLIF ( - 14, + 56 * - - SUM ( 57 ) ) - + 5 AS col1
----
46055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8703
SELECT + 26 + + 89 + CASE - 19 WHEN + MAX( - 64 ) THEN + + COALESCE ( + + 38, NULLIF ( - 3, 4 ) - 88 * - 49 - + 49, 3 + + 3 * - 31 + NULLIF ( + - 5, - + 58 ) ) WHEN + COALESCE ( - 87, + COUNT( * ) * - COUNT( * ) ) THEN 45 ELSE NULLIF ( - - 10, + 67 + 16 * - NULLIF ( + CAST( - 18 AS SIGNED ) * 79, 47 + ( 95 ) * - 32 ) ) END DIV 37
----
115

skipif mysql # not compatible
query I rowsort label-8703
SELECT + 26 + + 89 + CASE - 19 WHEN + MAX ( - 64 ) THEN + + COALESCE ( + + 38, NULLIF ( - 3, 4 ) - 88 * - 49 - + 49, 3 + + 3 * - 31 + NULLIF ( + - 5, - + 58 ) ) WHEN + COALESCE ( - 87, + COUNT ( * ) * - COUNT ( * ) ) THEN 45 ELSE NULLIF ( - - 10, + 67 + 16 * - NULLIF ( + CAST ( - 18 AS INTEGER ) * 79, 47 + ( 95 ) * - 32 ) ) END / 37
----
115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8704
SELECT + 39 + 74 + + 30 * - NULLIF ( + CAST( NULL AS DECIMAL ), + 30 - - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT + 39 + 74 + + 30 * - NULLIF ( + CAST ( NULL AS REAL ), + 30 - - 48 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT - COALESCE ( + SUM( - 37 ), COUNT( * ) + 11 + - - 0 / - 10 ) - + 8 * + 86 + + CASE COUNT( * ) WHEN - NULLIF ( + CAST( NULL AS SIGNED ), - ( + + 90 ) * + + MIN( DISTINCT - + 29 ) + - 79 ) THEN - 48 WHEN + 23 + - ( - + 23 ) + - 81 THEN NULL ELSE NULL END + 77 / + CASE + ( + ( - 70 ) ) WHEN - 80 / - 52 THEN 38 * 69 WHEN + 16 THEN NULL WHEN + 10 THEN 38 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT - COALESCE ( + SUM ( - 37 ), COUNT ( * ) + 11 + - - 0 / - 10 ) - + 8 * + 86 + + CASE COUNT ( * ) WHEN - NULLIF ( + CAST ( NULL AS INTEGER ), - ( + + 90 ) * + + MIN ( DISTINCT - + 29 ) + - 79 ) THEN - 48 WHEN + 23 + - ( - + 23 ) + - 81 THEN NULL ELSE NULL END + 77 / + CASE + ( + ( - 70 ) ) WHEN - 80 / - 52 THEN 38 * 69 WHEN + 16 THEN NULL WHEN + 10 THEN 38 * + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT - 13 / - ( + COUNT( * ) ) * + CAST( NULL AS SIGNED ) - - MIN( + 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT - 13 / - ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) - - MIN ( + 15 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( + 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT 12 * + 97 + - - 93 - - 93 + + COUNT( * ) AS col2
----
1351

skipif mysql # not compatible
query I rowsort label-8708
SELECT 12 * + 97 + - - 93 - - 93 + + COUNT ( * ) AS col2
----
1351

query I rowsort
SELECT ALL + + NULLIF ( 29, COALESCE ( 42, - + 37 + 71 + + 78 ) )
----
29

query II rowsort
SELECT DISTINCT - 8 AS col2, + 42
----
-8
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - 11 + 22 + - 25 * + 56 + + 97 - + MAX( - 37 ) + + 7 + + + COUNT( * ) + + COUNT( * ) * 46 + - 6 * + + COUNT( * ) AS col1
----
-1207

skipif mysql # not compatible
query I rowsort label-8711
SELECT - 11 + 22 + - 25 * + 56 + + 97 - + MAX ( - 37 ) + + 7 + + + COUNT ( * ) + + COUNT ( * ) * 46 + - 6 * + + COUNT ( * ) AS col1
----
-1207

query II rowsort
SELECT - ( - 3 ), 62 + + 3 AS col1
----
3
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8713
SELECT - CAST( - - MAX( CAST( + + 95 AS DECIMAL ) ) AS SIGNED ) * - + MAX( DISTINCT + 14 ) + COUNT( * ) * - 19 col1
----
1311

skipif mysql # not compatible
query I rowsort label-8713
SELECT - CAST ( - - MAX ( CAST ( + + 95 AS REAL ) ) AS INTEGER ) * - + MAX ( DISTINCT + 14 ) + COUNT ( * ) * - 19 col1
----
1311

query I rowsort
SELECT + 58 * + - 20
----
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT - 81 + - 18 + - COUNT( * ) col0
----
-100

skipif mysql # not compatible
query I rowsort label-8715
SELECT - 81 + - 18 + - COUNT ( * ) col0
----
-100

query I rowsort
SELECT ALL CASE + 87 WHEN - 33 * + + 70 * - ( - - 85 ) THEN + - 83 WHEN + + 18 THEN + 8 END col1
----
NULL

query I rowsort
SELECT DISTINCT - 65 + + 91
----
26

query I rowsort
SELECT DISTINCT 16 * - 11 * + 52 AS col1
----
-9152

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL - COUNT( * ) + + 72 + + - 42 * + 14 - - 58 + - - 58 AS col1
----
-401

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL - COUNT ( * ) + + 72 + + - 42 * + 14 - - 58 + - - 58 AS col1
----
-401

query I rowsort
SELECT ALL + 20 + + ( - 7 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT - 98 * + + NULLIF ( - - 18, CAST( - - 79 AS SIGNED ) ) AS col0
----
-1764

skipif mysql # not compatible
query I rowsort label-8721
SELECT - 98 * + + NULLIF ( - - 18, CAST ( - - 79 AS INTEGER ) ) AS col0
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL + 47 + - 26 - - COUNT( * ) col1
----
22

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + 47 + - 26 - - COUNT ( * ) col1
----
22

query II rowsort
SELECT - 74 * 83 AS col1, 15 * + + 75 AS col1
----
-6142
1125

query I rowsort
SELECT - 86 - + + ( - 53 )
----
-33

query I rowsort
SELECT ALL ( - 74 ) AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT - 62 DIV - 3 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8726
SELECT - 62 / - 3 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT - 12 * - - MIN( 47 )
----
-564

skipif mysql # not compatible
query I rowsort label-8727
SELECT - 12 * - - MIN ( 47 )
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL - + COUNT( * ) + + + 99 * 4 * 17 + - MIN( ALL + - 4 ) col1
----
6735

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - + COUNT ( * ) + + + 99 * 4 * 17 + - MIN ( ALL + - 4 ) col1
----
6735

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8729
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / + 59 AS col2, - 11
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-8729
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / + 59 AS col2, - 11
----
NULL
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8730
SELECT ALL + 12 DIV 93 - + 27 + - NULLIF ( - 0, + - CASE + 73 WHEN + 21 + 93 THEN NULL ELSE - + COUNT( * ) END * - 99 ) * - 12 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL + 12 / 93 - + 27 + - NULLIF ( - 0, + - CASE + 73 WHEN + 21 + 93 THEN NULL ELSE - + COUNT ( * ) END * - 99 ) * - 12 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT - + 35 * + + 50 * + + 68 + - 27 * + + 90 * + COUNT( * )
----
-121430

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - + 35 * + + 50 * + + 68 + - 27 * + + 90 * + COUNT ( * )
----
-121430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8732
SELECT DISTINCT - 26 / + 32 - + 4 * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT - 26 / + 32 - + 4 * + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 57 + - 12 * + 72 * - 11
----
9561

query I rowsort
SELECT DISTINCT - 63 * - + 20 - + 90 AS col1
----
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8735
SELECT ALL - 83 DIV 28 - - COUNT( * ) * - 56 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - 83 / 28 - - COUNT ( * ) * - 56 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT - 14 * 97, MIN( ALL + + 13 ) AS col1
----
-1358
13

skipif mysql # not compatible
query II rowsort label-8736
SELECT - 14 * 97, MIN ( ALL + + 13 ) AS col1
----
-1358
13

query I rowsort
SELECT + 84 * + 31 col2
----
2604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT + - MAX( - 93 ) * + 23 * + - 2 * + 99 * CAST( NULL AS SIGNED ) * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT + - MAX ( - 93 ) * + 23 * + - 2 * + 99 * CAST ( NULL AS INTEGER ) * + 5
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 84, - 38 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8740
SELECT DISTINCT - COUNT( * ) DIV - + 11
----
0

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT - COUNT ( * ) / - + 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT + COALESCE ( 92, 6 * - COUNT( * ) )
----
92

skipif mysql # not compatible
query I rowsort label-8741
SELECT + COALESCE ( 92, 6 * - COUNT ( * ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT CASE + COUNT( * ) WHEN - - 73 * - 19 THEN NULL WHEN - - 2 THEN NULL WHEN + CASE 41 WHEN - 56 * 4 / - 80 + + + CASE - COALESCE ( - NULLIF ( + 78, - - 38 + + COUNT( * ) ), + COALESCE ( - 52, 55 + - 91 * - COALESCE ( 6, - + 34 ), - + COUNT( * ) * - + 12 + + - 24 ) ) WHEN + 24 THEN - NULLIF ( + 36, - 27 ) END THEN 99 * - 44 END THEN + 47 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT CASE + COUNT ( * ) WHEN - - 73 * - 19 THEN NULL WHEN - - 2 THEN NULL WHEN + CASE 41 WHEN - 56 * 4 / - 80 + + + CASE - COALESCE ( - NULLIF ( + 78, - - 38 + + COUNT ( * ) ), + COALESCE ( - 52, 55 + - 91 * - COALESCE ( 6, - + 34 ), - + COUNT ( * ) * - + 12 + + - 24 ) ) WHEN + 24 THEN - NULLIF ( + 36, - 27 ) END THEN 99 * - 44 END THEN + 47 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT CASE 67 WHEN - + 87 THEN 45 WHEN - - CASE 56 WHEN + + MAX( + 67 ) * COUNT( * ) THEN 89 * 34 / + + CASE MAX( ALL + 24 ) WHEN + - 55 THEN NULL WHEN + MIN( ALL + - 31 ) / 98 THEN NULLIF ( COUNT( * ), - 91 - + 24 ) - + 82 END END * COUNT( * ) + - - 57 * + + 38 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT CASE 67 WHEN - + 87 THEN 45 WHEN - - CASE 56 WHEN + + MAX ( + 67 ) * COUNT ( * ) THEN 89 * 34 / + + CASE MAX ( ALL + 24 ) WHEN + - 55 THEN NULL WHEN + MIN ( ALL + - 31 ) / 98 THEN NULLIF ( COUNT ( * ), - 91 - + 24 ) - + 82 END END * COUNT ( * ) + - - 57 * + + 38 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8744
SELECT + 64 DIV - - NULLIF ( - ( - 8 ), - 27 * 83 ) AS col0, 93 + - 66 + + 17 * - 20 + 88 + - + 85
----
8
-310

skipif mysql # not compatible
query II rowsort label-8744
SELECT + 64 / - - NULLIF ( - ( - 8 ), - 27 * 83 ) AS col0, 93 + - 66 + + 17 * - 20 + 88 + - + 85
----
8
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL + 88 * COUNT( * ) + - ( 81 ) + - 26
----
-19

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + 88 * COUNT ( * ) + - ( 81 ) + - 26
----
-19

query I rowsort
SELECT + 76 * 1 * - 36 * 63
----
-172368

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + COUNT( * ) - 82 - + 48 * + 35 + + NULLIF ( + - 47, + 14 )
----
-1808

skipif mysql # not compatible
query I rowsort label-8747
SELECT + COUNT ( * ) - 82 - + 48 * + 35 + + NULLIF ( + - 47, + 14 )
----
-1808

query I rowsort
SELECT DISTINCT ( + + 4 ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT DISTINCT + 78 * + 26 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT + 78 * + 26 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL COUNT( * ) + + + 75 + + + 28 + - + 99 * - 41 + - ( + 92 ) * + ( - 24 ) - + 62
----
6309

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL COUNT ( * ) + + + 75 + + + 28 + - + 99 * - 41 + - ( + 92 ) * + ( - 24 ) - + 62
----
6309

query I rowsort
SELECT ALL + 88 + 22 AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8752
SELECT DISTINCT 2 AS col2, - COALESCE ( - CAST( 50 AS SIGNED ), + 4 + 89 )
----
2
50

skipif mysql # not compatible
query II rowsort label-8752
SELECT DISTINCT 2 AS col2, - COALESCE ( - CAST ( 50 AS INTEGER ), + 4 + 89 )
----
2
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8753
SELECT COALESCE ( + 58, - MIN( - 65 ) * 85 - - CASE + 16 WHEN - 89 THEN - + 14 WHEN + 10 + - 24 * 23 THEN NULL END, 79 ) + + - 48 - + + 90 + + - 29 * + 24 - - 14, + COUNT( DISTINCT + 83 ) AS col1
----
-762
1

skipif mysql # not compatible
query II rowsort label-8753
SELECT COALESCE ( + 58, - MIN ( - 65 ) * 85 - - CASE + 16 WHEN - 89 THEN - + 14 WHEN + 10 + - 24 * 23 THEN NULL END, 79 ) + + - 48 - + + 90 + + - 29 * + 24 - - 14, + COUNT ( DISTINCT + 83 ) AS col1
----
-762
1

query I rowsort
SELECT ALL + 43 * - + 77
----
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT 41 + + + 33 + - 33 * - 67 * - COUNT( * )
----
-2137

skipif mysql # not compatible
query I rowsort label-8755
SELECT 41 + + + 33 + - 33 * - 67 * - COUNT ( * )
----
-2137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT 50 + ( COALESCE ( - ( + + 83 ), + MIN( ALL + CAST( NULL AS SIGNED ) ) ) ) - + 24 * + 98
----
-2385

skipif mysql # not compatible
query I rowsort label-8756
SELECT 50 + ( COALESCE ( - ( + + 83 ), + MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) ) - + 24 * + 98
----
-2385

query I rowsort
SELECT ALL + 16 - - 98
----
114

query I rowsort
SELECT 56 * + + 88
----
4928

query I rowsort
SELECT DISTINCT + ( - - 81 ) col2
----
81

query I rowsort
SELECT ALL + COALESCE ( - - 36, - 74 ) * CASE 50 WHEN - ( - - 81 ) THEN - - ( - 47 ) - + - 91 + - ( 52 ) WHEN - + ( 78 ) THEN - + AVG ( ALL 8 ) ELSE NULL END / + 53
----
NULL

query I rowsort
SELECT ALL - 34 - - 8
----
-26

query I rowsort
SELECT + NULLIF ( + 25, + ( - - 35 ) ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8763
SELECT + COUNT( * ) * + + CASE - - CAST( NULL AS SIGNED ) WHEN + + 9 * + ( + 44 ) THEN - ( + 81 ) * + 3 + + 78 * - 14 + + + 31 ELSE NULL END * 20 - 73 + 71 + - 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT + COUNT ( * ) * + + CASE - - CAST ( NULL AS INTEGER ) WHEN + + 9 * + ( + 44 ) THEN - ( + 81 ) * + 3 + + 78 * - 14 + + + 31 ELSE NULL END * 20 - 73 + 71 + - 84 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT - 99 DIV + + 45
----
-2

skipif mysql # not compatible
query I rowsort label-8764
SELECT - 99 / + + 45
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT CASE - 87 WHEN + CASE - 82 WHEN + 76 / - 74 - + - 65 + + - 2 THEN 40 END * + + 14 * + + 30 THEN NULL WHEN + 27 + MIN( - 3 ) THEN - 98 END / + 10 * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT CASE - 87 WHEN + CASE - 82 WHEN + 76 / - 74 - + - 65 + + - 2 THEN 40 END * + + 14 * + + 30 THEN NULL WHEN + 27 + MIN ( - 3 ) THEN - 98 END / + 10 * - - 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT ALL + - 70 DIV - 20 - + + 80 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + - 70 / - 20 - + + 80 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8767
SELECT CAST( NULL AS SIGNED ) * + - MIN( - - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT CAST ( NULL AS INTEGER ) * + - MIN ( - - 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT + COALESCE ( 78, - 37, + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-8768
SELECT + COALESCE ( 78, - 37, + COUNT ( * ) )
----
78

query I rowsort
SELECT + 82 * + 45 AS col2
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + + CASE - 69 WHEN + COUNT( * ) / + 48 THEN 49 + + + 27 * + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT + + CASE - 69 WHEN + COUNT ( * ) / + 48 THEN 49 + + + 27 * + 91 END
----
NULL

query II rowsort
SELECT DISTINCT - 81 AS col2, 65 AS col1
----
-81
65

query I rowsort
SELECT ALL + + ( + NULLIF ( - - 67, 83 ) ) * - 62 AS col1
----
-4154

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT ALL + 82 DIV - + 36
----
-2

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL + 82 / - + 36
----
-2

query I rowsort
SELECT DISTINCT + + 66 * 90 AS col2
----
5940

onlyif mysql # aggregate syntax: 
query II rowsort label-8775
SELECT + COUNT( * ) AS col2, 76 * 15
----
1
1140

skipif mysql # not compatible
query II rowsort label-8775
SELECT + COUNT ( * ) AS col2, 76 * 15
----
1
1140

query II rowsort
SELECT 16, - 35 AS col1
----
16
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL + - 15 * + + 28 * - SUM( DISTINCT + 94 )
----
39480

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + - 15 * + + 28 * - SUM ( DISTINCT + 94 )
----
39480

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT COALESCE ( 88, + 81 DIV 17 * - 38 - + - 83 ) * + - 39 AS col2
----
-3432

skipif mysql # not compatible
query I rowsort label-8778
SELECT COALESCE ( 88, + 81 / 17 * - 38 - + - 83 ) * + - 39 AS col2
----
-3432

query I rowsort
SELECT 97 + + 59 + + + 82 + + 2 - 91 * - 78 * + 80 + 72 AS col2
----
568152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8780
SELECT 6 + - 14 * - COALESCE ( + 9, - MAX( + ( + 38 ) ), + - COUNT( * ) ) * - 93 - - + SUM( ALL - 49 ) / 11 / - ( + CAST( NULL AS SIGNED ) ) / - + 81 - 75 + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT 6 + - 14 * - COALESCE ( + 9, - MAX ( + ( + 38 ) ), + - COUNT ( * ) ) * - 93 - - + SUM ( ALL - 49 ) / 11 / - ( + CAST ( NULL AS INTEGER ) ) / - + 81 - 75 + + 83 AS col0
----
NULL

query II rowsort
SELECT + 73, + 65 AS col2
----
73
65

query I rowsort
SELECT - 90 * + 66 + + ( - 62 ) * + + 90 AS col1
----
-11520

query I rowsort
SELECT ALL ( + 18 ) + + - 31 AS col1
----
-13

query I rowsort
SELECT DISTINCT + ( + 96 ) + + 0 * 38
----
96

query I rowsort
SELECT ALL 16 + 7 AS col2
----
23

query I rowsort
SELECT ( 73 ) + + 51
----
124

query I rowsort
SELECT ALL ( - + ( 10 ) ) + + + 1 * 92
----
82

query II rowsort
SELECT ALL 40 col0, + 22 * 10 AS col2
----
40
220

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT COUNT( 70 ) + + 92 * + 87 AS col1
----
8005

skipif mysql # not compatible
query I rowsort label-8789
SELECT COUNT ( 70 ) + + 92 * + 87 AS col1
----
8005

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8790
SELECT DISTINCT CAST( - - 92 AS SIGNED ) * ( 2 ) AS col2, 84
----
184
84

skipif mysql # not compatible
query II rowsort label-8790
SELECT DISTINCT CAST ( - - 92 AS INTEGER ) * ( 2 ) AS col2, 84
----
184
84

query I rowsort
SELECT COALESCE ( - + 8, + - 75 ) * 49 AS col0
----
-392

query II rowsort
SELECT ALL 52, - 67 - 40 AS col1
----
52
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT COUNT( * ) * - - 60 AS col2, - 14
----
60
-14

skipif mysql # not compatible
query II rowsort label-8793
SELECT COUNT ( * ) * - - 60 AS col2, - 14
----
60
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT - 7 AS col2, MIN( ALL + + CASE + + 2 WHEN + 68 THEN NULL WHEN + 88 THEN + 37 - - ( - 2 ) ELSE + 47 END ) AS col0
----
-7
47

skipif mysql # not compatible
query II rowsort label-8794
SELECT - 7 AS col2, MIN ( ALL + + CASE + + 2 WHEN + 68 THEN NULL WHEN + 88 THEN + 37 - - ( - 2 ) ELSE + 47 END ) AS col0
----
-7
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL 50 - + + CAST( - 6 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL 50 - + + CAST ( - 6 AS INTEGER )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL ( - - 54 ) * + + CASE + COUNT( DISTINCT + - 63 ) WHEN - COUNT( * ) THEN + 64 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL ( - - 54 ) * + + CASE + COUNT ( DISTINCT + - 63 ) WHEN - COUNT ( * ) THEN + 64 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT + 69 * - MIN( ALL - 90 ) AS col0
----
6210

skipif mysql # not compatible
query I rowsort label-8797
SELECT + 69 * - MIN ( ALL - 90 ) AS col0
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT - + CASE - - COUNT( + - 54 ) WHEN - + SUM( ALL 25 ) THEN NULL WHEN - + 53 THEN + + MIN( 7 ) + - 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT - + CASE - - COUNT ( + - 54 ) WHEN - + SUM ( ALL 25 ) THEN NULL WHEN - + 53 THEN + + MIN ( 7 ) + - 32 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT 86 - - - 30 DIV + - 64 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8799
SELECT 86 - - - 30 / + - 64 AS col2
----
86

query I rowsort
SELECT ALL + + 68 * + + 50 + - 69
----
3331

onlyif mysql # aggregate syntax: 
query II rowsort label-8801
SELECT - CASE 17 WHEN 50 + - 70 THEN ( + 50 ) ELSE NULL END AS col1, - 78 + 47 + - COUNT( * ) + - 9 * - + COALESCE ( + COUNT( * ), - - COUNT( * ), - 23 ) col2
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-8801
SELECT - CASE 17 WHEN 50 + - 70 THEN ( + 50 ) ELSE NULL END AS col1, - 78 + 47 + - COUNT ( * ) + - 9 * - + COALESCE ( + COUNT ( * ), - - COUNT ( * ), - 23 ) col2
----
NULL
-23

query I rowsort
SELECT 63 * 0
----
0

query I rowsort
SELECT DISTINCT 75 * - + 33 AS col0
----
-2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT ALL CASE - 29 WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN 36 * SUM( + - 40 ) + - 38 - - 76 * - 14 WHEN 53 THEN + + CAST( NULL AS SIGNED ) * - - 51 * - - 57 END * + 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL CASE - 29 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN 36 * SUM ( + - 40 ) + - 38 - - 76 * - 14 WHEN 53 THEN + + CAST ( NULL AS INTEGER ) * - - 51 * - - 57 END * + 77 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT DISTINCT - CAST( - 62 AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT - CAST ( - 62 AS INTEGER ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT - 46 - - 3 * + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-8806
SELECT - 46 - - 3 * + COUNT ( * )
----
-43

query I rowsort
SELECT ALL + 37 * - 72 + 86 AS col2
----
-2578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT DISTINCT - - 23 * 79 + - 98 / CAST( NULL AS SIGNED ) + - - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT - - 23 * 79 + - 98 / CAST ( NULL AS INTEGER ) + - - 69 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8809
SELECT 16 DIV + 80 AS col1, + ( 6 ) * - NULLIF ( - 63, + 90 + + 36 ) + 50 + COUNT( * ) DIV + COALESCE ( - + 90, + - COUNT( - + CAST( 41 AS SIGNED ) ) * + 74, 49 ) * 12 * CAST( - + 71 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 57 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8809
SELECT 16 / + 80 AS col1, + ( 6 ) * - NULLIF ( - 63, + 90 + + 36 ) + 50 + COUNT ( * ) / + COALESCE ( - + 90, + - COUNT ( - + CAST ( 41 AS INTEGER ) ) * + 74, 49 ) * 12 * CAST ( - + 71 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 57 AS col2
----
0
NULL

query I rowsort
SELECT ALL + 73 * + ( - + 78 ) + ( - - 29 ) + - 92 AS col0
----
-5757

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8811
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 57, + ( 97 ) AS col2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-8811
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 57, + ( 97 ) AS col2
----
NULL
97

query I rowsort
SELECT DISTINCT + 40 * - + ( - - 69 ) + - 52 AS col1
----
-2812

query I rowsort
SELECT DISTINCT 75 + 92
----
167

query I rowsort
SELECT ALL + ( + 64 ) * 77 + ( + 13 )
----
4941

query I rowsort
SELECT - 10 - - 29 AS col0
----
19

query I rowsort
SELECT DISTINCT + 43 * 30 * - 26 * + + 42
----
-1408680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8817
SELECT ALL + COUNT( DISTINCT + 95 ) col0, - 5 DIV + 78 + - MAX( 63 ) + - 44 AS col0
----
1
-107

skipif mysql # not compatible
query II rowsort label-8817
SELECT ALL + COUNT ( DISTINCT + 95 ) col0, - 5 / + 78 + - MAX ( 63 ) + - 44 AS col0
----
1
-107

query I rowsort
SELECT 52 * 82 * + + 87 - 90 * - + ( - 53 ) AS col0
----
366198

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT MIN( DISTINCT + - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8819
SELECT MIN ( DISTINCT + - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8820
SELECT - COALESCE ( 63, - + 8 ) * + - 46 * - 85 * - + 32 + + COALESCE ( - + 29, 24 * - 23, + - MIN( - 57 ) DIV - 77 - + 12 ) + + 17
----
7882548

skipif mysql # not compatible
query I rowsort label-8820
SELECT - COALESCE ( 63, - + 8 ) * + - 46 * - 85 * - + 32 + + COALESCE ( - + 29, 24 * - 23, + - MIN ( - 57 ) / - 77 - + 12 ) + + 17
----
7882548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8821
SELECT + CAST( - ( - 42 ) AS SIGNED ) * - + CASE - 64 WHEN + - ( - 32 ) THEN - - COALESCE ( + 16, + + 33 DIV - + 9 + - COUNT( * ), + 76 ) ELSE - 41 * + ( + COALESCE ( + CAST( NULL AS SIGNED ), + + MIN( DISTINCT 30 ) * - 67 ) ) + + 19 + + 10 END AS col2, 8
----
-3462438
8

skipif mysql # not compatible
query II rowsort label-8821
SELECT + CAST ( - ( - 42 ) AS INTEGER ) * - + CASE - 64 WHEN + - ( - 32 ) THEN - - COALESCE ( + 16, + + 33 / - + 9 + - COUNT ( * ), + 76 ) ELSE - 41 * + ( + COALESCE ( + CAST ( NULL AS INTEGER ), + + MIN ( DISTINCT 30 ) * - 67 ) ) + + 19 + + 10 END AS col2, 8
----
-3462438
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8822
SELECT ALL COUNT( + 3 ) AS col2, 90
----
1
90

skipif mysql # not compatible
query II rowsort label-8822
SELECT ALL COUNT ( + 3 ) AS col2, 90
----
1
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT ALL 9 DIV - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL 9 / - 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL COALESCE ( 39, + + CASE - - 66 WHEN + - 1 THEN - 98 END * 77 * - 79 * - - CASE + 78 WHEN + + 30 THEN COUNT( * ) END, - - 17, + + 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL COALESCE ( 39, + + CASE - - 66 WHEN + - 1 THEN - 98 END * 77 * - 79 * - - CASE + 78 WHEN + + 30 THEN COUNT ( * ) END, - - 17, + + 39 ) AS col2
----
39

query I rowsort
SELECT ALL + 53 - + + 37 * + - 39 - 92
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT - 79 + - 37 * + + 27 * - 54 + - - COUNT( * )
----
53868

skipif mysql # not compatible
query I rowsort label-8826
SELECT - 79 + - 37 * + + 27 * - 54 + - - COUNT ( * )
----
53868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT - - 86 DIV + 34 - + 81 + + COUNT( * ) * - + 34 AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-8827
SELECT - - 86 / + 34 - + 81 + + COUNT ( * ) * - + 34 AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT + 23 * + COUNT( * ) * + 56
----
1288

skipif mysql # not compatible
query I rowsort label-8828
SELECT + 23 * + COUNT ( * ) * + 56
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT + 81 + - COUNT( * ) - - 51 - - + 99
----
230

skipif mysql # not compatible
query I rowsort label-8829
SELECT + 81 + - COUNT ( * ) - - 51 - - + 99
----
230

query I rowsort
SELECT + 50 - + - 4 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL + + COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL + + COUNT ( * ) * + 52
----
52

query I rowsort
SELECT + 8 + 5 + + 44 * + + 70
----
3093

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT ALL 78 + + + COUNT( * ), - 99 * 16 * + 20 AS col1
----
79
-31680

skipif mysql # not compatible
query II rowsort label-8833
SELECT ALL 78 + + + COUNT ( * ), - 99 * 16 * + 20 AS col1
----
79
-31680

query I rowsort
SELECT ALL + 1 + - - 21 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + - 96 + - - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-8835
SELECT + - 96 + - - COUNT ( * )
----
-95

query II rowsort
SELECT ALL ( - 72 ) AS col0, 59
----
-72
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT + 39 * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-8837
SELECT + 39 * - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT DISTINCT 9 + + - COUNT( * ) DIV + + 37 * + 39
----
9

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT 9 + + - COUNT ( * ) / + + 37 * + 39
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT ALL + 19 DIV 49 + - 5 + 18 + + 81 - + 50
----
44

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL + 19 / 49 + - 5 + 18 + + 81 - + 50
----
44

query II rowsort
SELECT ( 10 ) AS col0, + 47 * 9 * + ( - 8 )
----
10
-3384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT + 15 * - 44 + 73 + 77 + + + COUNT( * ) DIV + 64
----
-510

skipif mysql # not compatible
query I rowsort label-8841
SELECT + 15 * - 44 + 73 + 77 + + + COUNT ( * ) / + 64
----
-510

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8842
SELECT DISTINCT + 40 * + COUNT( * ) * - MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT + 40 * + COUNT ( * ) * - MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) + + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8843
SELECT ALL - + COUNT( * ) * - 73 * 1 + + CASE - 73 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN + 11 * 19 THEN - SUM( ALL + 2 ) * - SUM( ALL 57 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL - + COUNT ( * ) * - 73 * 1 + + CASE - 73 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 11 * 19 THEN - SUM ( ALL + 2 ) * - SUM ( ALL 57 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - 90 * + 12 + - + 75 * - + 84 * 82
----
515520

query I rowsort
SELECT DISTINCT + 13 * - 34 + + + 27 * 18
----
44

query I rowsort
SELECT - 82 * + - 13
----
1066

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT + MIN( ALL + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT + MIN ( ALL + 20 ) AS col1
----
20

query I rowsort
SELECT ALL - 13 * - 83 - - + 53
----
1132

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT CASE COALESCE ( 0, + 32 - + - 63 / - 31 * 31 ) WHEN + - MAX( + 95 ) THEN 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT CASE COALESCE ( 0, + 32 - + - 63 / - 31 * 31 ) WHEN + - MAX ( + 95 ) THEN 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + 87 + - - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8850
SELECT + 87 + - - COUNT ( * )
----
88

query I rowsort
SELECT + 46 * - + 43
----
-1978

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT - 51 * ( - 89 ) DIV + + 48
----
94

skipif mysql # not compatible
query I rowsort label-8852
SELECT - 51 * ( - 89 ) / + + 48
----
94

query I rowsort
SELECT 57 * 17 + - ( + 26 ) AS col1
----
943

query I rowsort
SELECT DISTINCT ( 69 ) * 94 + 31 - + 37
----
6480

onlyif mysql # aggregate syntax: 
query II rowsort label-8855
SELECT DISTINCT - 75 * COUNT( + 84 ) col2, - 23 AS col1
----
-75
-23

skipif mysql # not compatible
query II rowsort label-8855
SELECT DISTINCT - 75 * COUNT ( + 84 ) col2, - 23 AS col1
----
-75
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT - COUNT( * ) * 4 * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8856
SELECT - COUNT ( * ) * 4 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT - COUNT( * ) + + - 53 + + 17 AS col2, - 51 - - 33 * - - 62
----
-37
1995

skipif mysql # not compatible
query II rowsort label-8857
SELECT - COUNT ( * ) + + - 53 + + 17 AS col2, - 51 - - 33 * - - 62
----
-37
1995

query I rowsort
SELECT DISTINCT + 85 * 95
----
8075

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT - 9 + - + ( + 93 ) * + COUNT( * ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-8859
SELECT - 9 + - + ( + 93 ) * + COUNT ( * ) AS col1
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT COUNT( * ) AS col0, - 95 col2
----
1
-95

skipif mysql # not compatible
query II rowsort label-8860
SELECT COUNT ( * ) AS col0, - 95 col2
----
1
-95

query I rowsort
SELECT - 56 * + + 20
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT - SUM( DISTINCT - + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-8862
SELECT - SUM ( DISTINCT - + 76 )
----
76

query I rowsort
SELECT + 35 + 38 * - 77 AS col2
----
-2891

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8864
SELECT ALL - 56, + CAST( - 61 AS SIGNED ) * + - 83 AS col2
----
-56
5063

skipif mysql # not compatible
query II rowsort label-8864
SELECT ALL - 56, + CAST ( - 61 AS INTEGER ) * + - 83 AS col2
----
-56
5063

query I rowsort
SELECT DISTINCT + 44 + - - 3 AS col1
----
47

query I rowsort
SELECT DISTINCT - 38 + - 66
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT - SUM( ALL + - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-8867
SELECT - SUM ( ALL + - 27 )
----
27

query I rowsort
SELECT ALL - 5 + 61 * 93 * + 79 AS col1
----
448162

query II rowsort
SELECT ALL 28, + 77 + - + 30 + - - 30 - - 72 + - 12 + + 7 AS col0
----
28
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL - COUNT( * ) + + + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT + + 25 * - 71 - + MIN( + 74 ) * - - 1 AS col0
----
-1849

skipif mysql # not compatible
query I rowsort label-8871
SELECT + + 25 * - 71 - + MIN ( + 74 ) * - - 1 AS col0
----
-1849

query I rowsort
SELECT DISTINCT - ( + + 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL + 45 + + - 64 * 90 + 46 * COUNT( * ) + + - 54
----
-5723

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL + 45 + + - 64 * 90 + 46 * COUNT ( * ) + + - 54
----
-5723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8874
SELECT + 42 DIV - + CAST( + - CAST( + + 80 AS SIGNED ) AS SIGNED ) - + 25 * MAX( DISTINCT - - 5 ) * 44 + - COUNT( * ) AS col1
----
-5501

skipif mysql # not compatible
query I rowsort label-8874
SELECT + 42 / - + CAST ( + - CAST ( + + 80 AS INTEGER ) AS INTEGER ) - + 25 * MAX ( DISTINCT - - 5 ) * 44 + - COUNT ( * ) AS col1
----
-5501

query I rowsort
SELECT - 81 - + 57 AS col1
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT ( - ( - - CAST( + 29 AS SIGNED ) ) )
----
-29

skipif mysql # not compatible
query I rowsort label-8876
SELECT ( - ( - - CAST ( + 29 AS INTEGER ) ) )
----
-29

query I rowsort
SELECT + 95 - + - 4
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT ALL MIN( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL MIN ( - 39 )
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8879
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, CASE - NULLIF ( + 76, - 91 * + - 2 ) WHEN + - 83 * 67 THEN - 50 END + 5
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL + CAST ( NULL AS REAL ) AS col0, CASE - NULLIF ( + 76, - 91 * + - 2 ) WHEN + - 83 * 67 THEN - 50 END + 5
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT + SUM( ALL + + 29 ) + SUM( ALL 72 )
----
101

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + SUM ( ALL + + 29 ) + SUM ( ALL 72 )
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8881
SELECT ALL + 29 - 23 - + - 63 + CAST( NULL AS SIGNED ) + - SUM( - + 26 ) / + - 88 + - + 87 / 44 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + 29 - 23 - + - 63 + CAST ( NULL AS INTEGER ) + - SUM ( - + 26 ) / + - 88 + - + 87 / 44 + 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT COALESCE ( 22, NULLIF ( - - 87, - CAST( - CAST( 88 AS SIGNED ) AS SIGNED ) ) ) - + CAST( COALESCE ( 91, 2, - 37 + + NULLIF ( - - CAST( + - 26 AS SIGNED ), - + 2 + + 67 ) ) AS SIGNED ) + 75 - 36 * + + COUNT( * ) + 72
----
42

skipif mysql # not compatible
query I rowsort label-8882
SELECT COALESCE ( 22, NULLIF ( - - 87, - CAST ( - CAST ( 88 AS INTEGER ) AS INTEGER ) ) ) - + CAST ( COALESCE ( 91, 2, - 37 + + NULLIF ( - - CAST ( + - 26 AS INTEGER ), - + 2 + + 67 ) ) AS INTEGER ) + 75 - 36 * + + COUNT ( * ) + 72
----
42

query I rowsort
SELECT ALL 64 - - 85
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT NULLIF ( - ( 21 ), 95 ) + - + 51 + CAST( + 29 AS SIGNED ) * - 94 AS col2
----
-2798

skipif mysql # not compatible
query I rowsort label-8884
SELECT NULLIF ( - ( 21 ), 95 ) + - + 51 + CAST ( + 29 AS INTEGER ) * - 94 AS col2
----
-2798

query I rowsort
SELECT ALL 34 * + 32 col0
----
1088

query I rowsort
SELECT ALL - NULLIF ( - 65, + 20 ) AS col1
----
65

query I rowsort
SELECT ALL 98 * + ( + 24 )
----
2352

query I rowsort
SELECT 79 + + 93 + + 93 - + 0 * - + 81 * - + 22
----
265

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT 56 - 53 DIV - 15
----
59

skipif mysql # not compatible
query I rowsort label-8889
SELECT 56 - 53 / - 15
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT 95 * + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-8890
SELECT 95 * + - COUNT ( * )
----
-95

query II rowsort
SELECT + 58 * + 5 - - ( 60 ) AS col1, NULLIF ( - 14, - 32 * + 23 ) - 53
----
350
-67

query II rowsort
SELECT ALL - 99 + + + 21, + 77 + - - 70 + + - 23 * + 65 col2
----
-78
-1348

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8893
SELECT + CAST( - 14 AS SIGNED ) DIV 24 col2
----
0

skipif mysql # not compatible
query I rowsort label-8893
SELECT + CAST ( - 14 AS INTEGER ) / 24 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8894
SELECT ALL - 15 + 92 * + COUNT( * ) * + + 30 col0, + COUNT( * ) AS col2
----
2745
1

skipif mysql # not compatible
query II rowsort label-8894
SELECT ALL - 15 + 92 * + COUNT ( * ) * + + 30 col0, + COUNT ( * ) AS col2
----
2745
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8895
SELECT DISTINCT 42 DIV - 6 AS col0, + 28 + - 39 + + - 28 - 70 * + COALESCE ( 73, ( 4 ) * + - ( - - NULLIF ( - 50, - 97 ) ) + + + 52 DIV NULLIF ( 84, 39 ) - - COUNT( * ) DIV + 7, - 39 + - ( - + 87 ) * - 31 )
----
-7
-5149

skipif mysql # not compatible
query II rowsort label-8895
SELECT DISTINCT 42 / - 6 AS col0, + 28 + - 39 + + - 28 - 70 * + COALESCE ( 73, ( 4 ) * + - ( - - NULLIF ( - 50, - 97 ) ) + + + 52 / NULLIF ( 84, 39 ) - - COUNT ( * ) / + 7, - 39 + - ( - + 87 ) * - 31 )
----
-7
-5149

query I rowsort
SELECT DISTINCT - 7 + - 21 + 19 + - 94 - - COALESCE ( + - 91, - 51, - ( - 0 ) ) + 98
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT DISTINCT + + 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT + + 19 + COUNT ( * )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8898
SELECT ALL - + ( + + COUNT( * ) ) + + CAST( NULL AS SIGNED ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL - + ( + + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) + + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT CAST( + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8899
SELECT CAST ( + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + COUNT( ALL + 58 ) + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8900
SELECT + COUNT ( ALL + 58 ) + 45 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT ALL + CASE - 44 WHEN 90 THEN - 29 END AS col0, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8901
SELECT ALL + CASE - 44 WHEN 90 THEN - 29 END AS col0, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ( - 39 ) + + 65 + 31 + + + COUNT( * ) * - 7 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8902
SELECT ( - 39 ) + + 65 + 31 + + + COUNT ( * ) * - 7 AS col0
----
50

query I rowsort
SELECT + 49 - + ( 22 ) + - 91
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT COUNT( - 32 ) + + 6 col1
----
7

skipif mysql # not compatible
query I rowsort label-8904
SELECT COUNT ( - 32 ) + + 6 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL - + 69 - COUNT( * ) * + 39
----
-108

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - + 69 - COUNT ( * ) * + 39
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8906
SELECT ALL - 58 - + COUNT( * ) DIV 13 + + 66 AS col0, 89 AS col2
----
8
89

skipif mysql # not compatible
query II rowsort label-8906
SELECT ALL - 58 - + COUNT ( * ) / 13 + + 66 AS col0, 89 AS col2
----
8
89

query I rowsort
SELECT - 15 + + 58 * - 6
----
-363

query I rowsort
SELECT 2 + - + 78
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT MIN( - 28 ) + 86
----
58

skipif mysql # not compatible
query I rowsort label-8909
SELECT MIN ( - 28 ) + 86
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL + ( + - 57 ) - + - 14 + + CASE - + 63 WHEN - SUM( DISTINCT - - 31 ) * + 54 + 74 - + 68 THEN 87 ELSE NULL END + + + 70 + 37 * + - 36 / + 18 * 47 + - + 38 * + 56 * - 89 * 77 * + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + ( + - 57 ) - + - 14 + + CASE - + 63 WHEN - SUM ( DISTINCT - - 31 ) * + 54 + 74 - + 68 THEN 87 ELSE NULL END + + + 70 + 37 * + - 36 / + 18 * 47 + - + 38 * + 56 * - 89 * 77 * + + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT 25 * + + MAX( DISTINCT 24 ) AS col0
----
600

skipif mysql # not compatible
query I rowsort label-8911
SELECT 25 * + + MAX ( DISTINCT 24 ) AS col0
----
600

query I rowsort
SELECT DISTINCT 99 * - 6 col0
----
-594

query I rowsort
SELECT ALL 58 * NULLIF ( 77, 45 ) AS col0
----
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT 93 * - CAST( NULL AS SIGNED ) + + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT 93 * - CAST ( NULL AS INTEGER ) + + - 20 AS col0
----
NULL

query I rowsort
SELECT ALL - 39 * - 25
----
975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8916
SELECT DISTINCT + ( MIN( DISTINCT - 95 ) ) * - + 64 * - CAST( MAX( - 5 ) AS SIGNED )
----
30400

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + ( MIN ( DISTINCT - 95 ) ) * - + 64 * - CAST ( MAX ( - 5 ) AS INTEGER )
----
30400

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL - 30 * - NULLIF ( - + COUNT( - - 81 ), 57 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - 30 * - NULLIF ( - + COUNT ( - - 81 ), 57 ) AS col1
----
-30

query I rowsort
SELECT 66 + - ( ( 89 ) ) AS col2
----
-23

query II rowsort
SELECT DISTINCT - 37, 51 AS col1
----
-37
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT + 48 * + 75 * + + COUNT( * ) + - 48
----
3552

skipif mysql # not compatible
query I rowsort label-8920
SELECT + 48 * + 75 * + + COUNT ( * ) + - 48
----
3552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT CAST( NULL AS SIGNED ) * + 1 + + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT CAST ( NULL AS INTEGER ) * + 1 + + 16 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8922
SELECT ALL 92 + + ( + 69 ) - COALESCE ( + AVG ( 20 ), - CASE - - CAST( - ( 4 ) AS DECIMAL ) WHEN - MAX( ALL 8 ) / - SUM( + 15 ) THEN AVG ( DISTINCT + - 56 ) END * - + 29 - 46 * - + ( - 29 ) / + 43 / + 28 ) * 59 * + - 13 * + - 14 + + + 62 * + AVG ( ALL - 40 ) * 84 * - CASE - 11 WHEN + 98 THEN NULLIF ( + COUNT( * ), + + 32 / 57 + + 12 ) WHEN 16 THEN NULL WHEN 19 + - 76 THEN 30 ELSE 50 END - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL 92 + + ( + 69 ) - COALESCE ( + AVG ( 20 ), - CASE - - CAST ( - ( 4 ) AS REAL ) WHEN - MAX ( ALL 8 ) / - SUM ( + 15 ) THEN AVG ( DISTINCT + - 56 ) END * - + 29 - 46 * - + ( - 29 ) / + 43 / + 28 ) * 59 * + - 13 * + - 14 + + + 62 * + AVG ( ALL - 40 ) * 84 * - CASE - 11 WHEN + 98 THEN NULLIF ( + COUNT ( * ), + + 32 / 57 + + 12 ) WHEN 16 THEN NULL WHEN 19 + - 76 THEN 30 ELSE 50 END - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT + CASE 37 WHEN - COUNT( * ) THEN NULL WHEN + 0 THEN - - 94 * + 90 * - 63 ELSE + + CASE 45 WHEN + - 40 THEN - + 57 + - 23 END END / 16 + - - 44 + + NULLIF ( - 62, + + COALESCE ( - 41, - COUNT( * ) * 31 ) ) * 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT + CASE 37 WHEN - COUNT ( * ) THEN NULL WHEN + 0 THEN - - 94 * + 90 * - 63 ELSE + + CASE 45 WHEN + - 40 THEN - + 57 + - 23 END END / 16 + - - 44 + + NULLIF ( - 62, + + COALESCE ( - 41, - COUNT ( * ) * 31 ) ) * 45 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT 58 * + - 68 / 32 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT 58 * + - 68 / 32 - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 44 + - 79 * + 40 AS col2, ( - + 73 ) + - 14 AS col2
----
-3116
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ( - 33 ) + - MAX( ALL - 41 )
----
8

skipif mysql # not compatible
query I rowsort label-8926
SELECT ( - 33 ) + - MAX ( ALL - 41 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT DISTINCT MIN( DISTINCT + - 64 ) + + 23, 87 AS col1
----
-41
87

skipif mysql # not compatible
query II rowsort label-8927
SELECT DISTINCT MIN ( DISTINCT + - 64 ) + + 23, 87 AS col1
----
-41
87

query I rowsort
SELECT ALL 38 + - 12 + 27 col1
----
53

query I rowsort
SELECT ALL 30 + - NULLIF ( - 86, 34 ) AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT - 5 + + COALESCE ( - + 79, + COUNT( * ) + + 95 )
----
-84

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT - 5 + + COALESCE ( - + 79, + COUNT ( * ) + + 95 )
----
-84

query I rowsort
SELECT - COALESCE ( + + 37, - 78 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL - NULLIF ( 36, - 16 ) + + 51 + + SUM( 14 ) * + COUNT( * ) * + + 10
----
155

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - NULLIF ( 36, - 16 ) + + 51 + + SUM ( 14 ) * + COUNT ( * ) * + + 10
----
155

query I rowsort
SELECT + 36 * - - 60 * 60 * - 96 AS col0
----
-12441600

query I rowsort
SELECT - + CASE - 61 WHEN + ( - - 52 ) THEN - 34 / 37 + + ( + - ( - 33 ) ) + + 81 - - 39 WHEN 62 - + 74 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 17 * 13 * 73 + - 72 AS col2
----
16061

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + CASE - 97 WHEN + 9 / + 9 THEN NULL WHEN 30 + 6 THEN COALESCE ( + 73, - 14 ) - + COUNT( * ) END / - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + CASE - 97 WHEN + 9 / + 9 THEN NULL WHEN 30 + 6 THEN COALESCE ( + 73, - 14 ) - + COUNT ( * ) END / - 39 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT + 63 DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT + 63 / 85 AS col2
----
0

query I rowsort
SELECT ALL - 62 - - - ( 40 ) AS col1
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-8939
SELECT - COUNT( * ) AS col0, - CASE + 91 WHEN - 92 + CASE COUNT( * ) WHEN + - COUNT( * ) THEN + 73 + 60 WHEN - + 4 * AVG ( + 70 ) + - 24 + - COALESCE ( - - SUM( 36 ), + 88 + - COUNT( * ) + 16 ) THEN NULL END THEN NULL WHEN 72 - COUNT( * ) THEN - 11 * - 65 ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8939
SELECT - COUNT ( * ) AS col0, - CASE + 91 WHEN - 92 + CASE COUNT ( * ) WHEN + - COUNT ( * ) THEN + 73 + 60 WHEN - + 4 * AVG ( + 70 ) + - 24 + - COALESCE ( - - SUM ( 36 ), + 88 + - COUNT ( * ) + 16 ) THEN NULL END THEN NULL WHEN 72 - COUNT ( * ) THEN - 11 * - 65 ELSE NULL END
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8940
SELECT ALL 60 DIV + 61 - + 84 + - 46
----
-130

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL 60 / + 61 - + 84 + - 46
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8941
SELECT - 99 DIV - - NULLIF ( + 80, - - 4 + - - 1 + - 13 DIV + - 24 + - - 45 ) * - COUNT( * ) + + + 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8941
SELECT - 99 / - - NULLIF ( + 80, - - 4 + - - 1 + - 13 / + - 24 + - - 45 ) * - COUNT ( * ) + + + 4 AS col2
----
5

query II rowsort
SELECT ALL - 83 AS col2, 10
----
-83
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT DISTINCT - CAST( - - ( - + 48 ) AS SIGNED ) * - 21 AS col1
----
-1008

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT - CAST ( - - ( - + 48 ) AS INTEGER ) * - 21 AS col1
----
-1008

query I rowsort
SELECT ALL + 1 - + + 80 col0
----
-79

query I rowsort
SELECT - + 90 + 68
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8946
SELECT - - NULLIF ( + + COUNT( * ), + 83 ) col2, + 67 * 33 * - 89 - + CAST( - 72 AS SIGNED ) * + 44
----
1
-193611

skipif mysql # not compatible
query II rowsort label-8946
SELECT - - NULLIF ( + + COUNT ( * ), + 83 ) col2, + 67 * 33 * - 89 - + CAST ( - 72 AS INTEGER ) * + 44
----
1
-193611

query I rowsort
SELECT ALL + ( + - 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT + 68 * + - 29 - + 28 + + - COUNT( * )
----
-2001

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + 68 * + - 29 - + 28 + + - COUNT ( * )
----
-2001

onlyif mysql # aggregate syntax: 
query II rowsort label-8949
SELECT DISTINCT NULLIF ( + 42, + SUM( ALL - 2 ) ), - 10 AS col0
----
42
-10

skipif mysql # not compatible
query II rowsort label-8949
SELECT DISTINCT NULLIF ( + 42, + SUM ( ALL - 2 ) ), - 10 AS col0
----
42
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 28 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8951
SELECT DISTINCT NULLIF ( + CAST( COALESCE ( - 66, - 59 ) AS SIGNED ), + CASE ( + - 57 ) WHEN + COUNT( * ) + + + COALESCE ( - - MAX( - 21 ), COUNT( ALL + + ( + 83 ) ) * + 79 + + AVG ( DISTINCT - - ( + 44 ) ), + + ( 1 ) + - - COUNT( * ) ) THEN - - ( + + 88 ) WHEN - MAX( ALL - + 91 ) * + 75 * - + ( 80 ) + + 98 + - + 16 / COALESCE ( - 92, 43, 18 ) + - 31 + 96 / 11 THEN MAX( 41 ) * - CAST( - COUNT( * ) AS SIGNED ) - - 62 ELSE NULL END + + 28 * 73 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT NULLIF ( + CAST ( COALESCE ( - 66, - 59 ) AS INTEGER ), + CASE ( + - 57 ) WHEN + COUNT ( * ) + + + COALESCE ( - - MAX ( - 21 ), COUNT ( ALL + + ( + 83 ) ) * + 79 + + AVG ( DISTINCT - - ( + 44 ) ), + + ( 1 ) + - - COUNT ( * ) ) THEN - - ( + + 88 ) WHEN - MAX ( ALL - + 91 ) * + 75 * - + ( 80 ) + + 98 + - + 16 / COALESCE ( - 92, 43, 18 ) + - 31 + 96 / 11 THEN MAX ( 41 ) * - CAST ( - COUNT ( * ) AS INTEGER ) - - 62 ELSE NULL END + + 28 * 73 ) AS col0
----
-66

query II rowsort
SELECT DISTINCT + 98 AS col0, 36
----
98
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8953
SELECT DISTINCT COUNT( * ) * + + 38 * COUNT( * ) * - 13 AS col0, 70
----
-494
70

skipif mysql # not compatible
query II rowsort label-8953
SELECT DISTINCT COUNT ( * ) * + + 38 * COUNT ( * ) * - 13 AS col0, 70
----
-494
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8954
SELECT + 44 * + COUNT( - ( - + ( - - 29 ) ) ) - + 83, - COUNT( * ) + 18 AS col1
----
-39
17

skipif mysql # not compatible
query II rowsort label-8954
SELECT + 44 * + COUNT ( - ( - + ( - - 29 ) ) ) - + 83, - COUNT ( * ) + 18 AS col1
----
-39
17

query II rowsort
SELECT + 45 AS col2, - 74
----
45
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8956
SELECT + COUNT( * ) AS col2, COALESCE ( - 71, - 27 * + 81, - - 56 + - - 4 * + 62 * + 93 ) + - 26 + - COUNT( * ) * - + 99 col0
----
1
2

skipif mysql # not compatible
query II rowsort label-8956
SELECT + COUNT ( * ) AS col2, COALESCE ( - 71, - 27 * + 81, - - 56 + - - 4 * + 62 * + 93 ) + - 26 + - COUNT ( * ) * - + 99 col0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT - 50 DIV - - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT - 50 / - - 67 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8958
SELECT 63 * + ( + CAST( - + 74 AS SIGNED ) ) * COUNT( * ) + - COUNT( * ) + - - 65
----
-4598

skipif mysql # not compatible
query I rowsort label-8958
SELECT 63 * + ( + CAST ( - + 74 AS INTEGER ) ) * COUNT ( * ) + - COUNT ( * ) + - - 65
----
-4598

query II rowsort
SELECT DISTINCT - 54 * + 87 AS col2, 44 - + ( - - 47 ) + + - 21
----
-4698
-24

query I rowsort
SELECT DISTINCT + 90 * - - ( - 72 )
----
-6480

query II rowsort
SELECT DISTINCT + 62 AS col1, 86 AS col2
----
62
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8962
SELECT DISTINCT - CAST( + + 18 AS SIGNED ) DIV + 22 col2
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - CAST ( + + 18 AS INTEGER ) / + 22 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8963
SELECT ALL + 1 AS col2, COUNT( * ) - 42 + - 37 * - COALESCE ( + CAST( NULL AS SIGNED ), + - 76 + 80, COUNT( * ) ) + - + MIN( - 47 ) AS col1
----
1
154

skipif mysql # not compatible
query II rowsort label-8963
SELECT ALL + 1 AS col2, COUNT ( * ) - 42 + - 37 * - COALESCE ( + CAST ( NULL AS INTEGER ), + - 76 + 80, COUNT ( * ) ) + - + MIN ( - 47 ) AS col1
----
1
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT + - COUNT( * ) * - 2
----
2

skipif mysql # not compatible
query I rowsort label-8964
SELECT + - COUNT ( * ) * - 2
----
2

query I rowsort
SELECT ALL - 82 * 43 + + 57 * 77 + - + 29 AS col2
----
834

query I rowsort
SELECT + + NULLIF ( + 61, - + 22 )
----
61

query I rowsort
SELECT - 20 - 40 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT + ( - CASE - - 36 WHEN - 34 THEN + + COUNT( * ) - + 86 + - + COUNT( * ) WHEN - 82 - + 31 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT + ( - CASE - - 36 WHEN - 34 THEN + + COUNT ( * ) - + 86 + - + COUNT ( * ) WHEN - 82 - + 31 THEN NULL END )
----
NULL

query I rowsort
SELECT ALL + CASE - 78 WHEN 30 THEN NULL WHEN - 62 THEN 87 + - + 68 END
----
NULL

query I rowsort
SELECT - 81 * 21 + 79
----
-1622

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT + 47 + - 47 - - ( - + 99 ) DIV + 43 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8971
SELECT + 47 + - 47 - - ( - + 99 ) / + 43 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL - + ( - ( CASE + - COUNT( * ) WHEN - + 0 THEN - - 73 END ) ) * - + 6 - - 70 + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - + ( - ( CASE + - COUNT ( * ) WHEN - + 0 THEN - - 73 END ) ) * - + 6 - - 70 + - 20 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT ALL - CAST( - 47 AS SIGNED ) * + 57 - + 77
----
2602

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - CAST ( - 47 AS INTEGER ) * + 57 - + 77
----
2602

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT + + COUNT( - 75 ) * + - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8974
SELECT + + COUNT ( - 75 ) * + - 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - SUM( DISTINCT + - 77 ) * - + 86 * COUNT( * )
----
-6622

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - SUM ( DISTINCT + - 77 ) * - + 86 * COUNT ( * )
----
-6622

query I rowsort
SELECT DISTINCT - 74 * - - 53 AS col2
----
-3922

query I rowsort
SELECT + - 25 * + 88
----
-2200

query I rowsort
SELECT + 6 * + 4 * - 33 AS col1
----
-792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT + - 61 + + 94 + - + COALESCE ( - + CASE + - COUNT( + 41 ) WHEN + 25 - + + 25 THEN - CASE - CASE - + 92 WHEN + COUNT( * ) THEN - 80 * 99 * + 25 + + CASE - 55 WHEN + 1 THEN - 35 ELSE + 79 END + 50 / - + ( ( - - 13 ) ) END WHEN - 91 THEN NULL WHEN + 57 THEN 18 - + CASE WHEN - CAST( + 17 AS SIGNED ) IN ( - + ( + AVG ( ALL ( + 15 ) ) ) + CAST( - 27 AS SIGNED ) + - 38 * 87 ) THEN 29 + NULLIF ( 85 - MAX( DISTINCT 17 - - 1 * + 10 ), - 81 * 65 ) ELSE + 48 END + - 33 * 99 WHEN 70 THEN CASE + 40 WHEN 11 THEN COUNT( * ) END + - 11 * 11 END WHEN AVG ( DISTINCT 90 ) THEN NULL END, 19, + COUNT( * ) * 95, + 29 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8979
SELECT + - 61 + + 94 + - + COALESCE ( - + CASE + - COUNT ( + 41 ) WHEN + 25 - + + 25 THEN - CASE - CASE - + 92 WHEN + COUNT ( * ) THEN - 80 * 99 * + 25 + + CASE - 55 WHEN + 1 THEN - 35 ELSE + 79 END + 50 / - + ( ( - - 13 ) ) END WHEN - 91 THEN NULL WHEN + 57 THEN 18 - + CASE WHEN - CAST ( + 17 AS INTEGER ) IN ( - + ( + AVG ( ALL ( + 15 ) ) ) + CAST ( - 27 AS INTEGER ) + - 38 * 87 ) THEN 29 + NULLIF ( 85 - MAX ( DISTINCT 17 - - 1 * + 10 ), - 81 * 65 ) ELSE + 48 END + - 33 * 99 WHEN 70 THEN CASE + 40 WHEN 11 THEN COUNT ( * ) END + - 11 * 11 END WHEN AVG ( DISTINCT 90 ) THEN NULL END, 19, + COUNT ( * ) * 95, + 29 ) AS col0
----
14

query II rowsort
SELECT ALL - 59 AS col2, - 61
----
-59
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8981
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, 85 * + 45 + 23 AS col0
----
NULL
3848

skipif mysql # not compatible
query II rowsort label-8981
SELECT ALL CAST ( NULL AS REAL ) AS col2, 85 * + 45 + 23 AS col0
----
NULL
3848

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT + 63 + + - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8982
SELECT + 63 + + - COUNT ( * ) AS col0
----
62

query I rowsort
SELECT + 72 * + 56
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8984
SELECT ALL CASE - COALESCE ( - + 16, + CASE + + 66 WHEN - 70 / - COUNT( * ) THEN - ( + - 27 ) + 27 / - + ( + COUNT( * ) ) * 89 END * 49 ) WHEN - CAST( + + 16 AS SIGNED ) + - COUNT( * ) THEN - 47 + - 74 + + 6 * - - 89 - SUM( ALL 76 ) + + 27 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL CASE - COALESCE ( - + 16, + CASE + + 66 WHEN - 70 / - COUNT ( * ) THEN - ( + - 27 ) + 27 / - + ( + COUNT ( * ) ) * 89 END * 49 ) WHEN - CAST ( + + 16 AS INTEGER ) + - COUNT ( * ) THEN - 47 + - 74 + + 6 * - - 89 - SUM ( ALL 76 ) + + 27 END AS col2
----
NULL

query II rowsort
SELECT + 99 + + 52, + 73 AS col1
----
151
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT ALL - 39 * MAX( ALL + CAST( 7 AS SIGNED ) ) AS col2
----
-273

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - 39 * MAX ( ALL + CAST ( 7 AS INTEGER ) ) AS col2
----
-273

query I rowsort
SELECT DISTINCT CASE + 30 WHEN + - 34 THEN NULL ELSE - + 16 END AS col0
----
-16

query I rowsort
SELECT ALL + 66 * - - 7 AS col1
----
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT - 69 + 46 * + 82 * - + MIN( ALL - 51 ) + - + 30 + + 96 DIV + - 63
----
192272

skipif mysql # not compatible
query I rowsort label-8989
SELECT - 69 + 46 * + 82 * - + MIN ( ALL - 51 ) + - + 30 + + 96 / + - 63
----
192272

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT ALL NULLIF ( 92, - 53 * + 47 ) DIV + 96 + + 80
----
80

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL NULLIF ( 92, - 53 * + 47 ) / + 96 + + 80
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8991
SELECT + 40 * + + 25 + ( 99 ) - 89 * 19 * - 19 AS col1, + 7 * - + ( ( + COALESCE ( + 41, COUNT( * ) ) ) )
----
33228
-287

skipif mysql # not compatible
query II rowsort label-8991
SELECT + 40 * + + 25 + ( 99 ) - 89 * 19 * - 19 AS col1, + 7 * - + ( ( + COALESCE ( + 41, COUNT ( * ) ) ) )
----
33228
-287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT - CAST( NULL AS SIGNED ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT - CAST ( NULL AS INTEGER ) * 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8993
SELECT 4 DIV + + COUNT( * ) + 80 * 74 DIV + 79
----
78

skipif mysql # not compatible
query I rowsort label-8993
SELECT 4 / + + COUNT ( * ) + 80 * 74 / + 79
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT ALL 64 DIV - + 35 + - 51 + - - 69 + MIN( ALL - - 15 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL 64 / - + 35 + - 51 + - - 69 + MIN ( ALL - - 15 ) AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8995
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), + + 4 ) / - 29 * + + 95 / + + NULLIF ( - 11, 3 ) - - COALESCE ( + 83, + 24 ) + - + 38 + + ( 23 ) + + 53 * - + ( - 96 ) * - 38 + + 22 - + 35 * 74 * + - 67, + 55 AS col0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-8995
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), + + 4 ) / - 29 * + + 95 / + + NULLIF ( - 11, 3 ) - - COALESCE ( + 83, + 24 ) + - + 38 + + ( 23 ) + + 53 * - + ( - 96 ) * - 38 + + 22 - + 35 * 74 * + - 67, + 55 AS col0
----
NULL
55

query I rowsort
SELECT - 21 + + 73
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL - ( - 26 ) * + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL - ( - 26 ) * + COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT 68 * ( 74 ) + + + 70 + + COUNT( + 52 ) + - ( 68 ) + - - 14 + + MIN( + + 47 )
----
5096

skipif mysql # not compatible
query I rowsort label-8998
SELECT 68 * ( 74 ) + + + 70 + + COUNT ( + 52 ) + - ( 68 ) + - - 14 + + MIN ( + + 47 )
----
5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT ALL 14 DIV COUNT( * ) + + 2 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL 14 / COUNT ( * ) + + 2 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9000
SELECT ALL + COALESCE ( + + CAST( NULL AS SIGNED ), - 60 ) AS col2, - SUM( ALL 84 ) * - 1 - - 12 AS col2
----
-60
96

skipif mysql # not compatible
query II rowsort label-9000
SELECT ALL + COALESCE ( + + CAST ( NULL AS INTEGER ), - 60 ) AS col2, - SUM ( ALL 84 ) * - 1 - - 12 AS col2
----
-60
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT - COALESCE ( 61, 70 * + COUNT( * ) + - - 31 + + 73 ) * - 49
----
2989

skipif mysql # not compatible
query I rowsort label-9001
SELECT - COALESCE ( 61, 70 * + COUNT ( * ) + - - 31 + + 73 ) * - 49
----
2989

query II rowsort
SELECT - 18 + 35 * - - 16 AS col1, 63 + 64 col2
----
542
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT MAX( ALL - - 59 ) / - 36 - + 20 - + CASE 83 WHEN + + 17 THEN - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT MAX ( ALL - - 59 ) / - 36 - + 20 - + CASE 83 WHEN + + 17 THEN - 4 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT - - COUNT( * ) * + - 96 - + 88 + + 82
----
-102

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - - COUNT ( * ) * + - 96 - + 88 + + 82
----
-102

query I rowsort
SELECT ALL - 26 * + + 48
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT 15 * COUNT( * ) * 42 + + 72
----
702

skipif mysql # not compatible
query I rowsort label-9006
SELECT 15 * COUNT ( * ) * 42 + + 72
----
702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9007
SELECT ALL + + 70 * - - 19 * - 51 AS col2, 71 - - CAST( NULL AS SIGNED )
----
-67830
NULL

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL + + 70 * - - 19 * - 51 AS col2, 71 - - CAST ( NULL AS INTEGER )
----
-67830
NULL

query I rowsort
SELECT + ( + 37 ) + + 0 AS col2
----
37

query II rowsort
SELECT ALL + 34 * - 70 AS col2, 10 * 75
----
-2380
750

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT ALL - 71 DIV - - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL - 71 / - - 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT COUNT( + ( - - 74 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9011
SELECT COUNT ( + ( - - 74 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT + + CAST( NULL AS SIGNED ) * + - 96 + + 78 * + CAST( NULL AS SIGNED ) + 62 * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT + + CAST ( NULL AS INTEGER ) * + - 96 + + 78 * + CAST ( NULL AS INTEGER ) + 62 * 15 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - + 28, + 88 ) AS col2
----
-28

query I rowsort
SELECT 84 * - ( 93 ) + - 67 AS col0
----
-7879

query I rowsort
SELECT ALL - 19 * - + ( 19 ) + - 79
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL + 43 + 31 + + - ( + COALESCE ( - 27, - 51 * + + ( + - COUNT( DISTINCT - 34 ) ) * - + 85 * + 10 * + 0 - + + 7 ) ) * + 95 + + + COUNT( * )
----
2640

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + 43 + 31 + + - ( + COALESCE ( - 27, - 51 * + + ( + - COUNT ( DISTINCT - 34 ) ) * - + 85 * + 10 * + 0 - + + 7 ) ) * + 95 + + + COUNT ( * )
----
2640

query I rowsort
SELECT DISTINCT 70 * - 51
----
-3570

query I rowsort
SELECT DISTINCT 29 + 16 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL 87 + COUNT( * ) + + 79 + COUNT( * ) * 95 + - COUNT( * )
----
261

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL 87 + COUNT ( * ) + + 79 + COUNT ( * ) * 95 + - COUNT ( * )
----
261

onlyif mysql # aggregate syntax: 
query II rowsort label-9020
SELECT ALL 99 * - + 96 * + ( - 70 ) AS col0, - COUNT( * ) AS col1
----
665280
-1

skipif mysql # not compatible
query II rowsort label-9020
SELECT ALL 99 * - + 96 * + ( - 70 ) AS col0, - COUNT ( * ) AS col1
----
665280
-1

query I rowsort
SELECT DISTINCT 93 + + - ( + 24 ) + - 50 * - - 29 AS col2
----
-1381

query II rowsort
SELECT - 33 AS col1, + 42 + + 74 col2
----
-33
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL COUNT( * ) + + 67
----
68

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL COUNT ( * ) + + 67
----
68

query II rowsort
SELECT 72 AS col1, - CASE 50 WHEN + 25 THEN NULL ELSE - + 38 END AS col0
----
72
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9025
SELECT ALL 21 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL 21 / 31
----
0

query I rowsort
SELECT ALL 92 + + + COALESCE ( - 28, - - 1 ) * + - 65
----
1912

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT - MIN( DISTINCT 44 ) * 15
----
-660

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT - MIN ( DISTINCT 44 ) * 15
----
-660

query I rowsort
SELECT DISTINCT 68 + + 7 - 52 * - ( + 1 )
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT ALL 85 DIV 33 DIV 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL 85 / 33 / 77 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9030
SELECT 82 * + - CAST( + SUM( ALL 33 ) AS SIGNED ) - + + 56 - - 8, + 54 * 64 AS col0
----
-2754
3456

skipif mysql # not compatible
query II rowsort label-9030
SELECT 82 * + - CAST ( + SUM ( ALL 33 ) AS INTEGER ) - + + 56 - - 8, + 54 * 64 AS col0
----
-2754
3456

query II rowsort
SELECT + 10 AS col0, ( - 16 )
----
10
-16

query I rowsort
SELECT 91 * - + 22
----
-2002

query I rowsort
SELECT CASE 22 WHEN - COALESCE ( - 34, - 86 / - + 82 - + 12 ) + + 3 THEN + 68 END / 93 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT DISTINCT - + COALESCE ( CAST( + 43 AS SIGNED ), - COUNT( * ) ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT - + COALESCE ( CAST ( + 43 AS INTEGER ), - COUNT ( * ) ) col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL - COALESCE ( + 70, COUNT( * ), - 72 ) - - 11 + - + ( - 66 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL - COALESCE ( + 70, COUNT ( * ), - 72 ) - - 11 + - + ( - 66 ) col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT ALL - COUNT( * ) AS col1, 8 AS col2
----
-1
8

skipif mysql # not compatible
query II rowsort label-9036
SELECT ALL - COUNT ( * ) AS col1, 8 AS col2
----
-1
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT + 70 AS col0, ( - - 24 ) * 70 + COUNT( * ) * ( - COUNT( + ( + 17 ) ) ) * 73 AS col1
----
70
1607

skipif mysql # not compatible
query II rowsort label-9037
SELECT + 70 AS col0, ( - - 24 ) * 70 + COUNT ( * ) * ( - COUNT ( + ( + 17 ) ) ) * 73 AS col1
----
70
1607

query I rowsort
SELECT DISTINCT + 96 * + 87
----
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL - - SUM( - - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - - SUM ( - - 55 ) AS col1
----
55

query I rowsort
SELECT CASE 95 WHEN 97 THEN - 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT 33 + COALESCE ( + SUM( DISTINCT + 20 ), + - MIN( DISTINCT + 30 ) DIV + + 76 * 12 + + 7, 32, 92 )
----
53

skipif mysql # not compatible
query I rowsort label-9041
SELECT 33 + COALESCE ( + SUM ( DISTINCT + 20 ), + - MIN ( DISTINCT + 30 ) / + + 76 * 12 + + 7, 32, 92 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT - MIN( DISTINCT - + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT - MIN ( DISTINCT - + 21 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT ALL - + 30 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL - + 30 / + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - 22 * - COUNT( DISTINCT + 32 ) + - - 56
----
78

skipif mysql # not compatible
query I rowsort label-9044
SELECT - 22 * - COUNT ( DISTINCT + 32 ) + - - 56
----
78

query II rowsort
SELECT + 5 AS col1, 61 * - - 50 + + CASE + 32 WHEN + 17 + + 65 THEN 37 ELSE NULL END + + + 92
----
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT ALL - COALESCE ( - 98, - ( - 27 ) DIV 4 )
----
98

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - COALESCE ( - 98, - ( - 27 ) / 4 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9047
SELECT DISTINCT - - 1 + - ( - - NULLIF ( + 29, 62 + + COUNT( * ) ) ) * 87 * + + CASE - 54 WHEN - 22 + AVG ( ALL + 84 ) / - 91 THEN MIN( 54 ) WHEN + 55 THEN 57 WHEN + + 37 THEN NULL ELSE + CAST( 58 AS SIGNED ) * + - 73 END AS col2
----
10682383

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT - - 1 + - ( - - NULLIF ( + 29, 62 + + COUNT ( * ) ) ) * 87 * + + CASE - 54 WHEN - 22 + AVG ( ALL + 84 ) / - 91 THEN MIN ( 54 ) WHEN + 55 THEN 57 WHEN + + 37 THEN NULL ELSE + CAST ( 58 AS INTEGER ) * + - 73 END AS col2
----
10682383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL + CAST( NULL AS SIGNED ) * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL + CAST ( NULL AS INTEGER ) * + 13
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - + 69, + - 14 * + 75 ) + - 10
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL 12 + 26 * + CASE 99 WHEN + 63 THEN + 51 WHEN - + MAX( + 34 ) THEN NULL END + + ( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL 12 + 26 * + CASE 99 WHEN + 63 THEN + 51 WHEN - + MAX ( + 34 ) THEN NULL END + + ( 18 )
----
NULL

query II rowsort
SELECT 44 * - 5, 70 AS col1
----
-220
70

query II rowsort
SELECT DISTINCT - 67 + 90 - - ( + 11 ) col0, - 16 - 19 AS col2
----
34
-35

query I rowsort
SELECT ALL + 12 + + - 77
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT 59 + - 70 * CAST( NULL AS SIGNED ) + + COUNT( * ) + - - 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT 59 + - 70 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - - 54 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT 69 + + COUNT( * ) AS col1, 39 * - - 96 + - 81 + 68 AS col2
----
70
3731

skipif mysql # not compatible
query II rowsort label-9055
SELECT 69 + + COUNT ( * ) AS col1, 39 * - - 96 + - 81 + 68 AS col2
----
70
3731

query I rowsort
SELECT DISTINCT - 67 + 73 AS col2
----
6

query II rowsort
SELECT DISTINCT 80 * 88 col0, - 56 + - 37 + + 98 * 67 * - 76 AS col1
----
7040
-499109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL - 49 + - 25 + - CAST( NULL AS SIGNED ) / + 32 * - CASE 2 WHEN + 74 * + COUNT( * ) * + 72 THEN - 13 WHEN SUM( ALL - - 6 ) THEN NULL END / CAST( - 90 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - 49 + - 25 + - CAST ( NULL AS INTEGER ) / + 32 * - CASE 2 WHEN + 74 * + COUNT ( * ) * + 72 THEN - 13 WHEN SUM ( ALL - - 6 ) THEN NULL END / CAST ( - 90 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL COUNT( * ) * + 91 col0
----
91

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL COUNT ( * ) * + 91 col0
----
91

query I rowsort
SELECT ALL ( + 90 ) - - 85 AS col1
----
175

query I rowsort
SELECT ( COALESCE ( - + 43, - + 2, + 4 - - 1 - + 90 ) ) + - - 12 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT COUNT( * ) + - COUNT( + + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-9062
SELECT COUNT ( * ) + - COUNT ( + + 61 )
----
0

query I rowsort
SELECT 84 * + 39 * - ( - - 77 ) AS col0
----
-252252

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL 38 - + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL 38 - + COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT COUNT( * ) DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-9065
SELECT COUNT ( * ) / + 27
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT ( + - CASE + 29 WHEN - - 79 THEN MAX( + - 34 ) - - 86 + + CAST( - - 51 AS SIGNED ) ELSE NULL END ) * 62 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT ( + - CASE + 29 WHEN - - 79 THEN MAX ( + - 34 ) - - 86 + + CAST ( - - 51 AS INTEGER ) ELSE NULL END ) * 62 * 60
----
NULL

query I rowsort
SELECT ALL - + 30 col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9068
SELECT - - COALESCE ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + COALESCE ( COUNT( * ), - 11 + - - 35 * + 36, - - ( + ( - 22 ) ) * - 5 ) * 9 * - - 13 + 17 - + + COUNT( * ) DIV - NULLIF ( + 26, MAX( ( - 66 ) ) DIV - 23 + - - 9 * + 25 + - 67 DIV + - COUNT( * ) ) + - - 26 + + - 84 + + + 23, + 61 * - 18 + - - MIN( + - 76 ) ) DIV 11 + - + ( - + 23 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9068
SELECT - - COALESCE ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + COALESCE ( COUNT ( * ), - 11 + - - 35 * + 36, - - ( + ( - 22 ) ) * - 5 ) * 9 * - - 13 + 17 - + + COUNT ( * ) / - NULLIF ( + 26, MAX ( ( - 66 ) ) / - 23 + - - 9 * + 25 + - 67 / + - COUNT ( * ) ) + - - 26 + + - 84 + + + 23, + 61 * - 18 + - - MIN ( + - 76 ) ) / 11 + - + ( - + 23 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT DISTINCT + COUNT( DISTINCT + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT + COUNT ( DISTINCT + 4 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT + 36 + + ( + 64 ) + - 20 DIV - 7 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-9070
SELECT + 36 + + ( + 64 ) + - 20 / - 7 AS col2
----
102

query II rowsort
SELECT DISTINCT + ( - 59 ) * + 84 * + ( - 31 ) + - NULLIF ( + 70, ( 96 ) ) AS col1, + 95
----
153566
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT DISTINCT + 76 DIV COUNT( * ) DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + 76 / COUNT ( * ) / 54
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9073
SELECT + CASE - - COUNT( * ) WHEN SUM( DISTINCT - 54 ) THEN - 63 WHEN + + 34 THEN NULL ELSE NULL END / + 98, 34 AS col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-9073
SELECT + CASE - - COUNT ( * ) WHEN SUM ( DISTINCT - 54 ) THEN - 63 WHEN + + 34 THEN NULL ELSE NULL END / + 98, 34 AS col0
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT 38 * - 49 + - + 93 + 87 + + 33 * 79 * COUNT( * ) + + 58 * + 14
----
1551

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT 38 * - 49 + - + 93 + 87 + + 33 * 79 * COUNT ( * ) + + 58 * + 14
----
1551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9075
SELECT DISTINCT + 39 * + 6 + - - COUNT( ALL - 67 ) AS col2, + CAST( COUNT( * ) AS SIGNED ) * + 65 * + + 36 + - NULLIF ( 2, - - 63 * - 42 * + ( + + MAX( - 64 ) ) * + + 89 ) + + COUNT( 89 )
----
235
2339

skipif mysql # not compatible
query II rowsort label-9075
SELECT DISTINCT + 39 * + 6 + - - COUNT ( ALL - 67 ) AS col2, + CAST ( COUNT ( * ) AS INTEGER ) * + 65 * + + 36 + - NULLIF ( 2, - - 63 * - 42 * + ( + + MAX ( - 64 ) ) * + + 89 ) + + COUNT ( 89 )
----
235
2339

query I rowsort
SELECT DISTINCT - 52 * - + 59
----
3068

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9077
SELECT ALL - + NULLIF ( 3, + + AVG ( ALL CAST( NULL AS DECIMAL ) ) ) * - + CAST( NULL AS SIGNED ) + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL - + NULLIF ( 3, + + AVG ( ALL CAST ( NULL AS REAL ) ) ) * - + CAST ( NULL AS INTEGER ) + - 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT + 43 * MIN( - 67 ) * - MAX( + + 58 ) * + 62
----
10360076

skipif mysql # not compatible
query I rowsort label-9078
SELECT + 43 * MIN ( - 67 ) * - MAX ( + + 58 ) * + 62
----
10360076

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL 3 * - COUNT( * ) + + + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL 3 * - COUNT ( * ) + + + COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT DISTINCT - 91 * + 68 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT - 91 * + 68 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9081
SELECT ALL + - COALESCE ( - 88, - COUNT( ALL - COALESCE ( - 37, - 56, - CASE - - 38 WHEN 85 / + 61 THEN NULL ELSE - - 52 / - CAST( NULL AS DECIMAL ) END + - 89 + 67 ) ) ) AS col0, - 45
----
88
-45

skipif mysql # not compatible
query II rowsort label-9081
SELECT ALL + - COALESCE ( - 88, - COUNT ( ALL - COALESCE ( - 37, - 56, - CASE - - 38 WHEN 85 / + 61 THEN NULL ELSE - - 52 / - CAST ( NULL AS REAL ) END + - 89 + 67 ) ) ) AS col0, - 45
----
88
-45

query I rowsort
SELECT + 10 * - + 3 AS col2
----
-30

query II rowsort
SELECT - 18 AS col1, - 61
----
-18
-61

query I rowsort
SELECT ALL - 80 + - 79 * + 50 + + 85
----
-3945

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT MAX( DISTINCT - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9085
SELECT MAX ( DISTINCT - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9086
SELECT - COALESCE ( - 51, + 87 * - - COUNT( * ) DIV + 35 * NULLIF ( - 42, + AVG ( + - 36 ) ) + - 87 ) * + - 21 col0, - COUNT( * ) AS col2
----
-1071
-1

skipif mysql # not compatible
query II rowsort label-9086
SELECT - COALESCE ( - 51, + 87 * - - COUNT ( * ) / + 35 * NULLIF ( - 42, + AVG ( + - 36 ) ) + - 87 ) * + - 21 col0, - COUNT ( * ) AS col2
----
-1071
-1

query I rowsort
SELECT ALL NULLIF ( - - 44, + 36 ) AS col1
----
44

query II rowsort
SELECT - 28 AS col2, 79 AS col1
----
-28
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9089
SELECT ALL 16 - CAST( - COUNT( * ) AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL 16 - CAST ( - COUNT ( * ) AS INTEGER )
----
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9090
SELECT DISTINCT ( - COALESCE ( - 49, - 72 * - - 83, 35 * CAST( NULL AS SIGNED ) DIV 45 + + 72 ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT ( - COALESCE ( - 49, - 72 * - - 83, 35 * CAST ( NULL AS INTEGER ) / 45 + + 72 ) ) AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 8 * + 29 AS col0
----
232

onlyif mysql # aggregate syntax: 
query II rowsort label-9093
SELECT 5, COUNT( * ) + 69 col0
----
5
70

skipif mysql # not compatible
query II rowsort label-9093
SELECT 5, COUNT ( * ) + 69 col0
----
5
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT - 98 + 97 * COUNT( + 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-9094
SELECT - 98 + 97 * COUNT ( + 21 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9095
SELECT - CAST( - - 19 AS SIGNED ) * ( 36 ) DIV + NULLIF ( 64, 9 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9095
SELECT - CAST ( - - 19 AS INTEGER ) * ( 36 ) / + NULLIF ( 64, 9 ) AS col0
----
-10

query I rowsort
SELECT - 74 * - 44 col0
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT - COALESCE ( COUNT( 20 ), - 72, - + 3 ) - NULLIF ( COUNT( * ), - COUNT( * ) ) * + - 82 + COUNT( + 45 )
----
82

skipif mysql # not compatible
query I rowsort label-9097
SELECT - COALESCE ( COUNT ( 20 ), - 72, - + 3 ) - NULLIF ( COUNT ( * ), - COUNT ( * ) ) * + - 82 + COUNT ( + 45 )
----
82

query I rowsort
SELECT + 50 * - 48
----
-2400

query I rowsort
SELECT - 20 - - 91 AS col2
----
71

query I rowsort
SELECT ALL NULLIF ( + 98, + + NULLIF ( - 10, 95 + + 48 ) - ( - 96 ) ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT - 14 * - ( + - 1 ) DIV + ( + 21 )
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT - 14 * - ( + - 1 ) / + ( + 21 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL - COUNT( * ) * - 65 + - ( + 94 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL - COUNT ( * ) * - 65 + - ( + 94 ) AS col1
----
-29

query II rowsort
SELECT + - 52 * 89 - + 49 + + 99 + - 24 * + + 67 AS col0, - 45 + + - 84 AS col2
----
-6186
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-9104
SELECT ALL + 47 * - 92 * - COUNT( * ) col2, + COUNT( * )
----
4324
1

skipif mysql # not compatible
query II rowsort label-9104
SELECT ALL + 47 * - 92 * - COUNT ( * ) col2, + COUNT ( * )
----
4324
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT ALL + COUNT( * ) DIV + 98 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL + COUNT ( * ) / + 98 + - COUNT ( * )
----
-1

query II rowsort
SELECT 82, - 27 col0
----
82
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9107
SELECT + CAST( NULL AS SIGNED ), - 10 * - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9107
SELECT + CAST ( NULL AS INTEGER ), - 10 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT + COUNT( * ) * + - 61 + - 57 DIV + + 41 + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9108
SELECT + COUNT ( * ) * + - 61 + - 57 / + + 41 + COUNT ( * )
----
-61

query I rowsort
SELECT + 70 * - + 43
----
-3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9110
SELECT DISTINCT COUNT( * ) DIV - 50 + NULLIF ( - + 94, + + 68 + + 66 ) - - 68 * 72, - 4 * - ( - - COUNT( * ) ) + + 45 * + 63 AS col1
----
4802
2839

skipif mysql # not compatible
query II rowsort label-9110
SELECT DISTINCT COUNT ( * ) / - 50 + NULLIF ( - + 94, + + 68 + + 66 ) - - 68 * 72, - 4 * - ( - - COUNT ( * ) ) + + 45 * + 63 AS col1
----
4802
2839

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9111
SELECT DISTINCT + + ( + 94 ) DIV - COUNT( * ) + - 36 + - 26 * 8
----
-338

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + + ( + 94 ) / - COUNT ( * ) + - 36 + - 26 * 8
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + + ( + 24 ) + + 17 * - + MAX( - - ( NULLIF ( + 33, - 31 ) ) ) + + 63 AS col2
----
-474

skipif mysql # not compatible
query I rowsort label-9112
SELECT + + ( + 24 ) + + 17 * - + MAX ( - - ( NULLIF ( + 33, - 31 ) ) ) + + 63 AS col2
----
-474

onlyif mysql # aggregate syntax: 
query II rowsort label-9113
SELECT ALL - NULLIF ( 13, 94 + 33 * + + 20 ) * 17 - - - COUNT( * ) + - 11 + + - COUNT( * ) + - - 6 - - 21, 93 + 54 col0
----
-207
147

skipif mysql # not compatible
query II rowsort label-9113
SELECT ALL - NULLIF ( 13, 94 + 33 * + + 20 ) * 17 - - - COUNT ( * ) + - 11 + + - COUNT ( * ) + - - 6 - - 21, 93 + 54 col0
----
-207
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT COALESCE ( + + 41, - CASE 94 WHEN ( + 40 ) * + 70 * 3 - 59 THEN NULL ELSE + 80 * - - ( - CAST( 20 AS SIGNED ) ) - 87 + - 96 * - SUM( DISTINCT + CAST( - + 43 AS SIGNED ) ) - + 20 + - + COUNT( ALL + 90 ) + + + 11 * - 67 END * + 76 * + 53 * - 52, 50, - - 69 )
----
41

skipif mysql # not compatible
query I rowsort label-9114
SELECT COALESCE ( + + 41, - CASE 94 WHEN ( + 40 ) * + 70 * 3 - 59 THEN NULL ELSE + 80 * - - ( - CAST ( 20 AS INTEGER ) ) - 87 + - 96 * - SUM ( DISTINCT + CAST ( - + 43 AS INTEGER ) ) - + 20 + - + COUNT ( ALL + 90 ) + + + 11 * - 67 END * + 76 * + 53 * - 52, 50, - - 69 )
----
41

query I rowsort
SELECT DISTINCT 70 * + 34
----
2380

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT 49 * - 28 + + 42 + - - 55 - ( 76 ) * + 79 DIV + - 79 + 22
----
-1177

skipif mysql # not compatible
query I rowsort label-9116
SELECT 49 * - 28 + + 42 + - - 55 - ( 76 ) * + 79 / + - 79 + 22
----
-1177

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT - 40 DIV ( - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-9117
SELECT - 40 / ( - 21 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9118
SELECT ALL COUNT( * ) * - COUNT( * ) / - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL COUNT ( * ) * - COUNT ( * ) / - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9119
SELECT ALL 36 * + 61 * - 73 - COUNT( * ) * + 72 DIV + 9 - COUNT( * ) + + COUNT( * )
----
-160316

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL 36 * + 61 * - 73 - COUNT ( * ) * + 72 / + 9 - COUNT ( * ) + + COUNT ( * )
----
-160316

query I rowsort
SELECT + 87 + + + 76 + - + 90
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL + 19 * + NULLIF ( 42, + 19 ) - 10 * - COUNT( * )
----
808

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL + 19 * + NULLIF ( 42, + 19 ) - 10 * - COUNT ( * )
----
808

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - 80 + + - 13 * - - 60 * + - COUNT( ALL - 49 )
----
700

skipif mysql # not compatible
query I rowsort label-9122
SELECT - 80 + + - 13 * - - 60 * + - COUNT ( ALL - 49 )
----
700

query I rowsort
SELECT + ( - 78 ) * - 28 * - 95
----
-207480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT MAX( DISTINCT CAST( + - 50 AS SIGNED ) )
----
-50

skipif mysql # not compatible
query I rowsort label-9124
SELECT MAX ( DISTINCT CAST ( + - 50 AS INTEGER ) )
----
-50

query I rowsort
SELECT ALL NULLIF ( + + 14, + 56 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT MIN( DISTINCT + + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9126
SELECT MIN ( DISTINCT + + 10 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9127
SELECT - 41, COALESCE ( + COUNT( * ), 91 ) DIV - - COUNT( * ) AS col0
----
-41
1

skipif mysql # not compatible
query II rowsort label-9127
SELECT - 41, COALESCE ( + COUNT ( * ), 91 ) / - - COUNT ( * ) AS col0
----
-41
1

query I rowsort
SELECT - 33 + - - 27
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9129
SELECT ALL + MAX( 54 ) * + 77 + - - CAST( NULL AS DECIMAL ) AS col0, - 41 + - COUNT( - + 0 )
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-9129
SELECT ALL + MAX ( 54 ) * + 77 + - - CAST ( NULL AS REAL ) AS col0, - 41 + - COUNT ( - + 0 )
----
NULL
-42

query II rowsort
SELECT ALL 51 AS col1, 29 * 85 * + - 89
----
51
-219385

query II rowsort
SELECT - 52, 80 AS col1
----
-52
80

query I rowsort
SELECT 13 + ( + - 20 ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT ALL 3 DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL 3 / - 34
----
0

query II rowsort
SELECT DISTINCT 56 AS col0, - 61 * - 80 AS col0
----
56
4880

query II rowsort
SELECT DISTINCT 9 AS col2, 40 col2
----
9
40

query II rowsort
SELECT ALL 60 col1, 27 AS col1
----
60
27

query II rowsort
SELECT 20 AS col1, + 51
----
20
51

query II rowsort
SELECT ALL 62 AS col2, - 35
----
62
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9139
SELECT DISTINCT - NULLIF ( + 37, + CAST( NULL AS DECIMAL ) ) + + + 11 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT - NULLIF ( + 37, + CAST ( NULL AS REAL ) ) + + + 11 AS col0
----
-26

query I rowsort
SELECT + 9 + - ( + COALESCE ( 93, 54 ) ) + NULLIF ( + COALESCE ( - ( 47 ), - 23 + - 4 * + - 59 * 71 ), + 45 ) AS col2
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9141
SELECT ( - 12 ) DIV - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9141
SELECT ( - 12 ) / - COUNT ( * ) AS col2
----
12

query I rowsort
SELECT - ( - - 11 ) * + 90
----
-990

query I rowsort
SELECT ALL - - ( + 95 ) + - + 2
----
93

query I rowsort
SELECT ALL - - 24 + - + 30
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9145
SELECT + 15 * - ( - 80 ) * - 40 + + - COUNT( * ) * - + 31 col1, - 99 * - 25 AS col2
----
-47969
2475

skipif mysql # not compatible
query II rowsort label-9145
SELECT + 15 * - ( - 80 ) * - 40 + + - COUNT ( * ) * - + 31 col1, - 99 * - 25 AS col2
----
-47969
2475

query I rowsort
SELECT ALL + + 11 + 16 + - - 40 * - 0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT ALL - 60 + + - 59 + ( - CAST( NULL AS SIGNED ) ) * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - 60 + + - 59 + ( - CAST ( NULL AS INTEGER ) ) * - 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT 84 + - COUNT( ALL + NULLIF ( 23, + 60 ) ) col1
----
83

skipif mysql # not compatible
query I rowsort label-9148
SELECT 84 + - COUNT ( ALL + NULLIF ( 23, + 60 ) ) col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9149
SELECT DISTINCT - + 81 + 7 AS col0, CAST( 29 AS SIGNED ) AS col1
----
-74
29

skipif mysql # not compatible
query II rowsort label-9149
SELECT DISTINCT - + 81 + 7 AS col0, CAST ( 29 AS INTEGER ) AS col1
----
-74
29

query I rowsort
SELECT + - ( - - 68 ) AS col1
----
-68

query I rowsort
SELECT ALL + 0 + - - 1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT - 68 AS col1, - COUNT( * )
----
-68
-1

skipif mysql # not compatible
query II rowsort label-9152
SELECT - 68 AS col1, - COUNT ( * )
----
-68
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT - 52 DIV 96 + - - 5
----
5

skipif mysql # not compatible
query I rowsort label-9153
SELECT - 52 / 96 + - - 5
----
5

query I rowsort
SELECT - 1 * 74 col0
----
-74

query II rowsort
SELECT - 30 AS col1, - 79 col1
----
-30
-79

query II rowsort
SELECT + 52 AS col1, 83 AS col1
----
52
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + 84 + + SUM( DISTINCT - 38 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9157
SELECT + 84 + + SUM ( DISTINCT - 38 ) AS col2
----
46

query I rowsort
SELECT ALL 23 - + - 61 * - CASE 61 WHEN - 75 THEN + 1 WHEN + + 65 THEN NULL ELSE NULL END + + 53 AS col1
----
NULL

query I rowsort
SELECT 98 * - - ( - 78 ) * - 34 col1
----
259896

query I rowsort
SELECT 75 * - - ( - + COALESCE ( 93, - 99 + + + 8 + + 22 ) ) AS col0
----
-6975

query I rowsort
SELECT 88 * NULLIF ( + 26, - + 19 * 75 )
----
2288

query I rowsort
SELECT ALL ( + + 10 ) * 84 AS col1
----
840

query I rowsort
SELECT ( + ( 0 ) ) * - 3 AS col0
----
0

query I rowsort
SELECT DISTINCT 62 * 19
----
1178

query I rowsort
SELECT ALL - 46 + - 85 + + 44 * + 98 AS col1
----
4181

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT 14 + - - 21 + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT 14 + - - 21 + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-9167
SELECT - COUNT( * ) * - 13 AS col0, + 89 + - 81
----
13
8

skipif mysql # not compatible
query II rowsort label-9167
SELECT - COUNT ( * ) * - 13 AS col0, + 89 + - 81
----
13
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL 77 + 96 * + SUM( DISTINCT + 13 )
----
1325

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL 77 + 96 * + SUM ( DISTINCT + 13 )
----
1325

query I rowsort
SELECT ALL COALESCE ( + 38, 86 * - 96 + - ( + + 9 ), + 28 * - - 89 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - COUNT( - 89 ) + + 91 + 30 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-9170
SELECT - COUNT ( - 89 ) + + 91 + 30 AS col2
----
120

query II rowsort
SELECT DISTINCT - 64 + - 50 AS col0, 93 AS col0
----
-114
93

query I rowsort
SELECT ALL - - 21 + 92 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT DISTINCT NULLIF ( - + COUNT( * ), - - 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT NULLIF ( - + COUNT ( * ), - - 36 ) AS col1
----
-1

query I rowsort
SELECT - 76 * - 36 col2
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - COUNT( DISTINCT - + 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9175
SELECT - COUNT ( DISTINCT - + 86 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9176
SELECT ALL - ( + + COUNT( * ) ), - 54 DIV - - 37 AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9176
SELECT ALL - ( + + COUNT ( * ) ), - 54 / - - 37 AS col1
----
-1
-1

query I rowsort
SELECT ALL + 68 * - + 18 - 32
----
-1256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9178
SELECT ALL - 53 col2, + 35 DIV + MIN( DISTINCT - 64 ) + - - 37 AS col0
----
-53
37

skipif mysql # not compatible
query II rowsort label-9178
SELECT ALL - 53 col2, + 35 / + MIN ( DISTINCT - 64 ) + - - 37 AS col0
----
-53
37

query II rowsort
SELECT ALL - 24 AS col0, - 15 AS col0
----
-24
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9180
SELECT 49 * 70 - + - 88 * - + COALESCE ( - 75, + NULLIF ( - COALESCE ( + 52, - 5 * - COALESCE ( - 39, 62 ) + + 50, - + 66 * COUNT( * ) + - 1 * + 83 * 76 + - + 59 ), - + 54 - - + NULLIF ( + - 75, ( + + CASE 53 WHEN - COALESCE ( 47, - 67 + + 47 * - SUM( ALL + + 86 ) * - 18 - - 31, - 24 ) THEN - 99 END ) * + 47 + - - 55 ) ) + - SUM( DISTINCT + + 43 ) + NULLIF ( + 51, - + COUNT( * ) DIV - 12 * + NULLIF ( - 12, - 14 + NULLIF ( 92, - 13 ) ) ) * + MAX( DISTINCT - 76 ), - ( - CASE - COUNT( * ) WHEN - 20 THEN + 35 END ) DIV + 77 )
----
10030

skipif mysql # not compatible
query I rowsort label-9180
SELECT 49 * 70 - + - 88 * - + COALESCE ( - 75, + NULLIF ( - COALESCE ( + 52, - 5 * - COALESCE ( - 39, 62 ) + + 50, - + 66 * COUNT ( * ) + - 1 * + 83 * 76 + - + 59 ), - + 54 - - + NULLIF ( + - 75, ( + + CASE 53 WHEN - COALESCE ( 47, - 67 + + 47 * - SUM ( ALL + + 86 ) * - 18 - - 31, - 24 ) THEN - 99 END ) * + 47 + - - 55 ) ) + - SUM ( DISTINCT + + 43 ) + NULLIF ( + 51, - + COUNT ( * ) / - 12 * + NULLIF ( - 12, - 14 + NULLIF ( 92, - 13 ) ) ) * + MAX ( DISTINCT - 76 ), - ( - CASE - COUNT ( * ) WHEN - 20 THEN + 35 END ) / + 77 )
----
10030

query II rowsort
SELECT + 68 col2, 67 * + - ( - + 66 ) * + 38 col2
----
68
168036

onlyif mysql # DIV for integer division: 
query II rowsort label-9182
SELECT ALL - 69 AS col2, 34 + 23 DIV + + 79 + + 8 * + - 29 AS col2
----
-69
-198

skipif mysql # not compatible
query II rowsort label-9182
SELECT ALL - 69 AS col2, 34 + 23 / + + 79 + + 8 * + - 29 AS col2
----
-69
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT ALL - COALESCE ( - CASE - 94 WHEN - - 97 THEN NULL ELSE - 17 DIV - 16 END, + CASE - - 31 WHEN + - COUNT( * ) + + - COUNT( * ) THEN - 34 + - + ( + 57 ) + 9 + - 85 * - 50 * + + 61 WHEN + 51 THEN + - 19 * 81 END + - - COUNT( - 66 ) * + - 51, 14 )
----
1

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL - COALESCE ( - CASE - 94 WHEN - - 97 THEN NULL ELSE - 17 / - 16 END, + CASE - - 31 WHEN + - COUNT ( * ) + + - COUNT ( * ) THEN - 34 + - + ( + 57 ) + 9 + - 85 * - 50 * + + 61 WHEN + 51 THEN + - 19 * 81 END + - - COUNT ( - 66 ) * + - 51, 14 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT MAX( - 93 ) * - 84 + - - 71 + + 84
----
7967

skipif mysql # not compatible
query I rowsort label-9184
SELECT MAX ( - 93 ) * - 84 + - - 71 + + 84
----
7967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 20 * - - 95 * + 40
----
76000

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT COUNT( + 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9187
SELECT COUNT ( + 38 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL + CAST( + CASE - 25 WHEN + COUNT( ALL + - 61 ) + + - NULLIF ( - 15, 48 / - + 94 + + 21 * COUNT( * ) ) * - - 34 * - 21 - + CAST( AVG ( + 60 ) AS SIGNED ) THEN + ( + 90 ) ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + CAST ( + CASE - 25 WHEN + COUNT ( ALL + - 61 ) + + - NULLIF ( - 15, 48 / - + 94 + + 21 * COUNT ( * ) ) * - - 34 * - 21 - + CAST ( AVG ( + 60 ) AS INTEGER ) THEN + ( + 90 ) ELSE NULL END AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL + 68, 99 AS col0
----
68
99

query I rowsort
SELECT - 21 + - 0 AS col1
----
-21

query I rowsort
SELECT DISTINCT + ( - + 85 )
----
-85

query II rowsort
SELECT DISTINCT 45 AS col2, 69
----
45
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9193
SELECT + 74 + - 15 + SUM( + 63 ) DIV + 81 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9193
SELECT + 74 + - 15 + SUM ( + 63 ) / + 81 AS col0
----
59

query I rowsort
SELECT + 91 + 32
----
123

query I rowsort
SELECT ALL 3 + + ( + 3 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT 24 * - 57 * - 31 + - + ( - COUNT( * ) )
----
42409

skipif mysql # not compatible
query I rowsort label-9196
SELECT 24 * - 57 * - 31 + - + ( - COUNT ( * ) )
----
42409

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT - 38 DIV - + 72
----
0

skipif mysql # not compatible
query I rowsort label-9197
SELECT - 38 / - + 72
----
0

query I rowsort
SELECT + 44 + + 12
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT - 73 AS col1, - 5 * ( - + 96 ) * - 42 + - + COUNT( * )
----
-73
-20161

skipif mysql # not compatible
query II rowsort label-9199
SELECT - 73 AS col1, - 5 * ( - + 96 ) * - 42 + - + COUNT ( * )
----
-73
-20161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9200
SELECT ALL - ( + 90 ) + 93 DIV + ( + COUNT( * ) ) - COALESCE ( - - NULLIF ( + 0, + 45 * + CAST( NULL AS SIGNED ) * + 21 ), 83 - 4 + - + 67 * - 40, + - 50, + - 40 * - - 55 ) + + 63
----
66

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL - ( + 90 ) + 93 / + ( + COUNT ( * ) ) - COALESCE ( - - NULLIF ( + 0, + 45 * + CAST ( NULL AS INTEGER ) * + 21 ), 83 - 4 + - + 67 * - 40, + - 50, + - 40 * - - 55 ) + + 63
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + - 21 + + 82 * 42 + - 95 + + COUNT( * )
----
3329

skipif mysql # not compatible
query I rowsort label-9201
SELECT + - 21 + + 82 * 42 + - 95 + + COUNT ( * )
----
3329

query I rowsort
SELECT ALL + 15 + - - 44 AS col2
----
59

query I rowsort
SELECT ALL 50 * 13
----
650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9204
SELECT ALL - 66 + - 1 DIV - 25 * - + MIN( - ( + 23 ) ) * - - CASE - + 67 WHEN + + 61 * + + COALESCE ( 47, + 28 DIV + 20, + 43 ) THEN NULL ELSE - - 59 END + CASE WHEN NULL IN ( - COUNT( * ) ) THEN NULL ELSE - 89 END AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL - 66 + - 1 / - 25 * - + MIN ( - ( + 23 ) ) * - - CASE - + 67 WHEN + + 61 * + + COALESCE ( 47, + 28 / + 20, + 43 ) THEN NULL ELSE - - 59 END + CASE WHEN NULL IN ( - COUNT ( * ) ) THEN NULL ELSE - 89 END AS col0
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT - - 37 AS col2, + COUNT( DISTINCT - 91 )
----
37
1

skipif mysql # not compatible
query II rowsort label-9205
SELECT - - 37 AS col2, + COUNT ( DISTINCT - 91 )
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + COUNT( * ) * + - 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9206
SELECT + COUNT ( * ) * + - 82 AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9207
SELECT + 7 + + NULLIF ( - - ( 96 ), - + 91 * 61 ) DIV + 8 - + + SUM( DISTINCT + ( + 14 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9207
SELECT + 7 + + NULLIF ( - - ( 96 ), - + 91 * 61 ) / + 8 - + + SUM ( DISTINCT + ( + 14 ) ) AS col1
----
5

query II rowsort
SELECT - + 14, - 24 - 90 AS col2
----
-14
-114

query I rowsort
SELECT - ( - ( - - NULLIF ( - - 18, 76 ) ) ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9210
SELECT ALL + 4, 41 + + + ( 74 ) - - + COUNT( * ) - - 94 AS col2
----
4
210

skipif mysql # not compatible
query II rowsort label-9210
SELECT ALL + 4, 41 + + + ( 74 ) - - + COUNT ( * ) - - 94 AS col2
----
4
210

onlyif mysql # aggregate syntax: 
query II rowsort label-9211
SELECT + ( 88 ) + - COUNT( * ) col0, 66
----
87
66

skipif mysql # not compatible
query II rowsort label-9211
SELECT + ( 88 ) + - COUNT ( * ) col0, 66
----
87
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL + - 1 * - 2 * + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL + - 1 * - 2 * + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT ALL + 63 * ( + 36 ) col2
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + CASE - ( + + 40 ) WHEN 45 * - - COUNT( * ) THEN + + 39 ELSE - - COUNT( * ) END * - 55
----
-55

skipif mysql # not compatible
query I rowsort label-9214
SELECT + CASE - ( + + 40 ) WHEN 45 * - - COUNT ( * ) THEN + + 39 ELSE - - COUNT ( * ) END * - 55
----
-55

query II rowsort
SELECT + 28 * + 92 AS col2, 47 AS col1
----
2576
47

query I rowsort
SELECT - 34 + + 49
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9217
SELECT ALL - CAST( - - 4 AS SIGNED ) * 72 + 4 - - + 39
----
-245

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - CAST ( - - 4 AS INTEGER ) * 72 + 4 - - + 39
----
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT 18 * 51 * 13 DIV - + 50 + + 35 AS col2
----
-203

skipif mysql # not compatible
query I rowsort label-9218
SELECT 18 * 51 * 13 / - + 50 + + 35 AS col2
----
-203

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT ALL + 18 DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + 18 / - 21
----
0

query I rowsort
SELECT DISTINCT 48 * + + 59 + - 88
----
2744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9221
SELECT DISTINCT + CAST( + 27 AS SIGNED ) AS col0, 19 * - - CASE - 91 WHEN - 64 THEN - ( 84 ) * - 15 WHEN - 54 THEN + ( + - AVG ( CAST( NULL AS SIGNED ) ) ) END + 51 * - + ( - 99 ) + + 3 - - - COUNT( - + 0 )
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9221
SELECT DISTINCT + CAST ( + 27 AS INTEGER ) AS col0, 19 * - - CASE - 91 WHEN - 64 THEN - ( 84 ) * - 15 WHEN - 54 THEN + ( + - AVG ( CAST ( NULL AS INTEGER ) ) ) END + 51 * - + ( - 99 ) + + 3 - - - COUNT ( - + 0 )
----
27
NULL

query I rowsort
SELECT COALESCE ( - 64, + 63 )
----
-64

query II rowsort
SELECT - 62 * - 44 AS col1, 52 + 39
----
2728
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL + COUNT( * ) * COUNT( 4 ) + - - 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL + COUNT ( * ) * COUNT ( 4 ) + - - 20 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT DISTINCT + CAST( - 95 AS SIGNED ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT + CAST ( - 95 AS INTEGER ) col0
----
-95

query I rowsort
SELECT DISTINCT ( ( + - 6 ) ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT - COUNT( + 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9227
SELECT - COUNT ( + 18 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9228
SELECT DISTINCT + 86 * - 27 * + SUM( DISTINCT ( + ( - 77 ) ) ) * + + 67 * ( + + 20 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + 86 * - 27 * + SUM ( DISTINCT ( + ( - 77 ) ) ) * + + 67 * ( + + 20 ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9229
SELECT DISTINCT + 37 - CASE - 24 WHEN ( + 29 ) - - 78 + + 25 + - 19 / ( + 3 ) * COUNT( * ) * + CAST( + COUNT( * ) AS DECIMAL ) * - 43 + + - COALESCE ( + - 10, - CAST( - - COUNT( + + 50 ) AS SIGNED ), + 12 ) THEN + - 9 + + - 40 ELSE - + 74 + - 74 END, 32 col2
----
185
32

skipif mysql # not compatible
query II rowsort label-9229
SELECT DISTINCT + 37 - CASE - 24 WHEN ( + 29 ) - - 78 + + 25 + - 19 / ( + 3 ) * COUNT ( * ) * + CAST ( + COUNT ( * ) AS REAL ) * - 43 + + - COALESCE ( + - 10, - CAST ( - - COUNT ( + + 50 ) AS INTEGER ), + 12 ) THEN + - 9 + + - 40 ELSE - + 74 + - 74 END, 32 col2
----
185
32

query I rowsort
SELECT - + 98 * + 60 AS col2
----
-5880

query I rowsort
SELECT - NULLIF ( - - 24, - 62 + + COALESCE ( + + 10, ( + + 68 ) ) + 33 ) AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT ALL + CAST( + - 84 AS SIGNED ) * - ( - - ( CAST( - + 31 AS SIGNED ) ) )
----
-2604

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + CAST ( + - 84 AS INTEGER ) * - ( - - ( CAST ( - + 31 AS INTEGER ) ) )
----
-2604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT + CAST( NULL AS SIGNED ) / ( + + 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT + CAST ( NULL AS INTEGER ) / ( + + 41 ) AS col0
----
NULL

query I rowsort
SELECT + 67 * + 35
----
2345

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL COUNT( * ) * - 99 col1
----
-99

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL COUNT ( * ) * - 99 col1
----
-99

query I rowsort
SELECT DISTINCT 68 * 92 * - - 11 AS col2
----
68816

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT 33 * + COUNT( * ) + - 90
----
-57

skipif mysql # not compatible
query I rowsort label-9237
SELECT 33 * + COUNT ( * ) + - 90
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT ( - 56 ) * - + 70 * COUNT( * ) - 85, - 3 AS col1
----
3835
-3

skipif mysql # not compatible
query II rowsort label-9238
SELECT ( - 56 ) * - + 70 * COUNT ( * ) - 85, - 3 AS col1
----
3835
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + ( + + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9239
SELECT + ( + + COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT + 34 * + - COUNT( * ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-9240
SELECT + 34 * + - COUNT ( * ) col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL COUNT( * ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL COUNT ( * ) + + 53
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-9242
SELECT + 20 DIV + CASE - 23 WHEN - + 87 THEN NULL WHEN 56 THEN - 64 + 42 ELSE + 96 END - + 9 - 99, 49 * + 50 col2
----
-108
2450

skipif mysql # not compatible
query II rowsort label-9242
SELECT + 20 / + CASE - 23 WHEN - + 87 THEN NULL WHEN 56 THEN - 64 + 42 ELSE + 96 END - + 9 - 99, 49 * + 50 col2
----
-108
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ( + 53 ) * NULLIF ( 21, ( 78 ) * MIN( DISTINCT - 63 ) * + 88 + + ( ( 66 ) ) * 31 ) * - 74 * + 27
----
-2223774

skipif mysql # not compatible
query I rowsort label-9243
SELECT ( + 53 ) * NULLIF ( 21, ( 78 ) * MIN ( DISTINCT - 63 ) * + 88 + + ( ( 66 ) ) * 31 ) * - 74 * + 27
----
-2223774

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL COUNT( * ) + COUNT( * ) + + 2 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL COUNT ( * ) + COUNT ( * ) + + 2 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9245
SELECT ALL - CAST( + 55 AS SIGNED ) + 6 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - CAST ( + 55 AS INTEGER ) + 6 AS col0
----
-49

query I rowsort
SELECT ( + NULLIF ( + + 49, - 79 ) ) + + 25
----
74

query I rowsort
SELECT 39 * + ( ( - 13 ) )
----
-507

query I rowsort
SELECT ALL - 97 + - + 55 + + - 89 AS col2
----
-241

query I rowsort
SELECT 64 * - 58 * - 38 AS col2
----
141056

query I rowsort
SELECT 38 + + 14
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT ALL - 70 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - 70 / 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT + 19 * + 93 + + SUM( + - 29 ) * + + NULLIF ( + SUM( + 94 ), + 47 )
----
-959

skipif mysql # not compatible
query I rowsort label-9252
SELECT + 19 * + 93 + + SUM ( + - 29 ) * + + NULLIF ( + SUM ( + 94 ), + 47 )
----
-959

query I rowsort
SELECT ( + + 61 ) + + ( - - 65 ) * + - 62 AS col2
----
-3969

query I rowsort
SELECT DISTINCT + + 43 * - ( - CASE - - ( 88 ) WHEN - - 42 THEN NULL WHEN + - 49 THEN + + 2 ELSE + 59 END ) + + 0 + - 58 AS col2
----
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT 77 * + - COUNT( * ) * + + 44
----
-3388

skipif mysql # not compatible
query I rowsort label-9255
SELECT 77 * + - COUNT ( * ) * + + 44
----
-3388

query I rowsort
SELECT ALL + 81 * + - 84 * - 62
----
421848

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + MAX( ALL - + 61 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-9257
SELECT + MAX ( ALL - + 61 ) col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT ALL - 42 DIV 84 + - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - 42 / 84 + - 67 AS col2
----
-67

query I rowsort
SELECT - 1 + - 24
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9260
SELECT ALL + CAST( NULL AS SIGNED ) + 41 DIV + 60 col2, - 45 DIV - 53 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9260
SELECT ALL + CAST ( NULL AS INTEGER ) + 41 / + 60 col2, - 45 / - 53 AS col0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT 23 DIV 16 * + + 85
----
85

skipif mysql # not compatible
query I rowsort label-9261
SELECT 23 / 16 * + + 85
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT 94 + + + SUM( CAST( NULL AS SIGNED ) ) * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT 94 + + + SUM ( CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 97 - 53 AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT DISTINCT - 45 + - COALESCE ( + CAST( + 47 AS SIGNED ), + NULLIF ( - 34, - 89 ) * + 18 )
----
-92

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT - 45 + - COALESCE ( + CAST ( + 47 AS INTEGER ), + NULLIF ( - 34, - 89 ) * + 18 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT ALL - 28 + + 52 DIV 69
----
-28

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL - 28 + + 52 / 69
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9266
SELECT COALESCE ( 40, - 53 ) + - 36 AS col2, - 62 * - - COUNT( * )
----
4
-62

skipif mysql # not compatible
query II rowsort label-9266
SELECT COALESCE ( 40, - 53 ) + - 36 AS col2, - 62 * - - COUNT ( * )
----
4
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT CASE - + 20 WHEN + COUNT( * ) + + 58 THEN - - ( + - 11 ) ELSE NULL END * ( 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT CASE - + 20 WHEN + COUNT ( * ) + + 58 THEN - - ( + - 11 ) ELSE NULL END * ( 25 )
----
NULL

query II rowsort
SELECT + 33, + 67 AS col0
----
33
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9269
SELECT 28 * 69 + + + SUM( DISTINCT - 55 ) * 8 + + + 48 + + 29 + + 47 + - 85 DIV 29
----
1614

skipif mysql # not compatible
query I rowsort label-9269
SELECT 28 * 69 + + + SUM ( DISTINCT - 55 ) * 8 + + + 48 + + 29 + + 47 + - 85 / 29
----
1614

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT - COUNT( * ) * - + 23 + 23
----
46

skipif mysql # not compatible
query I rowsort label-9270
SELECT - COUNT ( * ) * - + 23 + 23
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9271
SELECT ALL CAST( - CAST( 40 AS SIGNED ) AS SIGNED ) + - 88 DIV + 34 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL CAST ( - CAST ( 40 AS INTEGER ) AS INTEGER ) + - 88 / + 34 AS col2
----
-42

query I rowsort
SELECT COALESCE ( - 73, + 48 ) * - + 59 + 95
----
4402

query II rowsort
SELECT DISTINCT - 70 col2, - 94 * - - 2 - - 62
----
-70
-126

query I rowsort
SELECT 44 * 31
----
1364

query I rowsort
SELECT DISTINCT 38 * - + 99 * - - 79 * - 77
----
22884246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT DISTINCT 49 - - 99 - - + 96 * - + 90 * 29 + - CAST( 83 AS SIGNED ) col1
----
-250495

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT 49 - - 99 - - + 96 * - + 90 * 29 + - CAST ( 83 AS INTEGER ) col1
----
-250495

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT 57 * - + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9277
SELECT 57 * - + COUNT ( * ) AS col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT 43 DIV 26
----
1

skipif mysql # not compatible
query I rowsort label-9278
SELECT 43 / 26
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9279
SELECT ALL COUNT( * ) * - 68 DIV - 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL COUNT ( * ) * - 68 / - 38 AS col1
----
1

query II rowsort
SELECT + 64, 55 AS col1
----
64
55

query II rowsort
SELECT + 9, + 25 * + 33 AS col1
----
9
825

query II rowsort
SELECT + 26, - 49 AS col0
----
26
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9283
SELECT + SUM( ALL ( 92 ) ) DIV + 4 AS col1, + 30
----
23
30

skipif mysql # not compatible
query II rowsort label-9283
SELECT + SUM ( ALL ( 92 ) ) / + 4 AS col1, + 30
----
23
30

query I rowsort
SELECT - ( + 90 ) - + + 35 AS col1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT 12 * - SUM( 94 )
----
-1128

skipif mysql # not compatible
query I rowsort label-9285
SELECT 12 * - SUM ( 94 )
----
-1128

query I rowsort
SELECT ALL ( + + NULLIF ( - 40, - 34 ) )
----
-40

query II rowsort
SELECT - COALESCE ( + + 44, + - 18, - 52 ) AS col0, - 18 * - - 22 * 37 * - 5 col0
----
-44
73260

query I rowsort
SELECT DISTINCT - 85 * - 20
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT - - CASE - ( + 59 ) WHEN + COUNT( * ) THEN + + 25 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT - - CASE - ( + 59 ) WHEN + COUNT ( * ) THEN + + 25 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + 57 + - 5 AS col1
----
52

query II rowsort
SELECT ALL - ( - 53 ) AS col1, - 70 AS col1
----
53
-70

query II rowsort
SELECT + 83, 10 + 51 col1
----
83
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9293
SELECT ALL - 81, SUM( ALL 75 ) AS col0
----
-81
75

skipif mysql # not compatible
query II rowsort label-9293
SELECT ALL - 81, SUM ( ALL 75 ) AS col0
----
-81
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT 40 + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9294
SELECT 40 + COUNT ( * ) AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9295
SELECT 84 - + 16 DIV + 49 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9295
SELECT 84 - + 16 / + 49 AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT - - 71, CASE - COUNT( * ) WHEN 97 THEN - 40 * NULLIF ( - 99, + 23 ) END AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-9296
SELECT - - 71, CASE - COUNT ( * ) WHEN 97 THEN - 40 * NULLIF ( - 99, + 23 ) END AS col2
----
71
NULL

query I rowsort
SELECT - 99 * + 81
----
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL + + 3 + - + 63 + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL + + 3 + - + 63 + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - NULLIF ( COUNT( * ), - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9299
SELECT - NULLIF ( COUNT ( * ), - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT - 23 * + + 33
----
-759

query I rowsort
SELECT ALL - 59 + - 67
----
-126

query I rowsort
SELECT DISTINCT COALESCE ( + 27, + + 22 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT MIN( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT MIN ( 62 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT ALL 87 + + COALESCE ( + NULLIF ( - 87, - COUNT( * ) ), - + 27, 50 ) AS col0, - 27
----
0
-27

skipif mysql # not compatible
query II rowsort label-9304
SELECT ALL 87 + + COALESCE ( + NULLIF ( - 87, - COUNT ( * ) ), - + 27, 50 ) AS col0, - 27
----
0
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9305
SELECT 60 * - - 66 / - CAST( NULL AS DECIMAL ) - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT 60 * - - 66 / - CAST ( NULL AS REAL ) - - 80
----
NULL

query I rowsort
SELECT ALL 3 * + 26 AS col1
----
78

query I rowsort
SELECT NULLIF ( + + 86, - COALESCE ( - 66, + 59 ) + + 60 * 90 ) AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT ALL - 97 DIV + + 30
----
-3

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL - 97 / + + 30
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9309
SELECT COALESCE ( + ( + CAST( - + 65 AS SIGNED ) ), 47, + - 70 DIV + ( 81 ) * - 59 + + COUNT( * ) * + 40 )
----
-65

skipif mysql # not compatible
query I rowsort label-9309
SELECT COALESCE ( + ( + CAST ( - + 65 AS INTEGER ) ), 47, + - 70 / + ( 81 ) * - 59 + + COUNT ( * ) * + 40 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9310
SELECT ALL 97 * - 32, - CAST( NULL AS SIGNED ) + 99 AS col2
----
-3104
NULL

skipif mysql # not compatible
query II rowsort label-9310
SELECT ALL 97 * - 32, - CAST ( NULL AS INTEGER ) + 99 AS col2
----
-3104
NULL

query I rowsort
SELECT + 3 * - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9312
SELECT + CAST( NULL AS SIGNED ) * 90 - + COUNT( * ) / - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT + CAST ( NULL AS INTEGER ) * 90 - + COUNT ( * ) / - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL - 7 * COUNT( ALL 55 )
----
-7

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - 7 * COUNT ( ALL 55 )
----
-7

query I rowsort
SELECT - 49 + 10 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + + 34 * 42 * + - 81 + + 22 + - MIN( DISTINCT + - 17 ) AS col2
----
-115629

skipif mysql # not compatible
query I rowsort label-9315
SELECT + + 34 * 42 * + - 81 + + 22 + - MIN ( DISTINCT + - 17 ) AS col2
----
-115629

query I rowsort
SELECT - NULLIF ( 5, 0 * - 9 ) col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT - CAST( 22 AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9317
SELECT - CAST ( 22 AS INTEGER ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9318
SELECT + - 61 + + 60, + NULLIF ( - ( + 36 ), ( + 34 ) / + COALESCE ( + + 9, - 81, + 3 / 95 ) * - 81 - + - 20 * COUNT( * ) ) + + 28 AS col2
----
-1
-8

skipif mysql # not compatible
query II rowsort label-9318
SELECT + - 61 + + 60, + NULLIF ( - ( + 36 ), ( + 34 ) / + COALESCE ( + + 9, - 81, + 3 / 95 ) * - 81 - + - 20 * COUNT ( * ) ) + + 28 AS col2
----
-1
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT + + 86 + 2 AS col0, COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-9319
SELECT + + 86 + 2 AS col0, COUNT ( * )
----
88
1

query II rowsort
SELECT ALL 77 * - + 81 - 88, 39 col0
----
-6325
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT ALL 17 DIV - 42 + + 18
----
18

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL 17 / - 42 + + 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT + 61 + - 2 * - - 82 * + COUNT( * )
----
-103

skipif mysql # not compatible
query I rowsort label-9322
SELECT + 61 + - 2 * - - 82 * + COUNT ( * )
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9323
SELECT + 4 * + COUNT( * ) + + 50 DIV - - ( - 2 ) + - 39 - + 84 * - 45 * + 39 + - + 47
----
147313

skipif mysql # not compatible
query I rowsort label-9323
SELECT + 4 * + COUNT ( * ) + + 50 / - - ( - 2 ) + - 39 - + 84 * - 45 * + 39 + - + 47
----
147313

onlyif mysql # DIV for integer division: 
query I rowsort label-9324
SELECT + - ( - - 0 ) DIV + 16 + + 8
----
8

skipif mysql # not compatible
query I rowsort label-9324
SELECT + - ( - - 0 ) / + 16 + + 8
----
8

query I rowsort
SELECT ALL + 40 + 85 * - 70
----
-5910

query I rowsort
SELECT + - 59 * + + 57 AS col0
----
-3363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT DISTINCT - - CAST( 44 AS SIGNED ) + CASE 70 WHEN + 0 + + 2 THEN - 76 - - 50 WHEN - 38 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - - CAST ( 44 AS INTEGER ) + CASE 70 WHEN + 0 + + 2 THEN - 76 - - 50 WHEN - 38 THEN NULL END
----
NULL

query II rowsort
SELECT ALL + 79 + + - 75, + 11 + - - 17 AS col0
----
4
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT ALL - 27 + - + CASE + CAST( NULL AS SIGNED ) WHEN 61 THEN - + 92 + - + 59 * 46 + + 67 * 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL - 27 + - + CASE + CAST ( NULL AS INTEGER ) WHEN 61 THEN - + 92 + - + 59 * 46 + + 67 * 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL + ( + MIN( ALL - ( NULLIF ( 86, + ( COALESCE ( + - 26, + 93 * + 23 + + - 9, + 93 ) ) ) ) ) ) + + - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL + ( + MIN ( ALL - ( NULLIF ( 86, + ( COALESCE ( + - 26, + 93 * + 23 + + - 9, + 93 ) ) ) ) ) ) + + - COUNT ( * ) AS col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT - 75 * 93 * - 26 * - - 48 * - CAST( NULL AS SIGNED ) * + - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT - 75 * 93 * - 26 * - - 48 * - CAST ( NULL AS INTEGER ) * + - 61 AS col0
----
NULL

query I rowsort
SELECT - 93 + + - 33 + 29 AS col1
----
-97

query II rowsort
SELECT - 18, 79 AS col1
----
-18
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT SUM( - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT SUM ( - 7 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL 75 - + 40 + 94 - + COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL 75 - + 40 + 94 - + COUNT ( * )
----
128

query II rowsort
SELECT 86 AS col1, - 51 AS col2
----
86
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9337
SELECT + 57 + - 24 + + + SUM( + COALESCE ( + + 65, - 14 ) ) + 20 + 72 DIV 67 + COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-9337
SELECT + 57 + - 24 + + + SUM ( + COALESCE ( + + 65, - 14 ) ) + 20 + 72 / 67 + COUNT ( * )
----
120

query I rowsort
SELECT + 16 * + + 9 AS col1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT - 33 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT - 33 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 39 - + - 8
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT - COUNT( * ) + + 44 + MAX( 6 ) + - 65 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9341
SELECT - COUNT ( * ) + + 44 + MAX ( 6 ) + - 65 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT - ( - 37 ) + + - COUNT( * ) + + - 4 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9342
SELECT - ( - 37 ) + + - COUNT ( * ) + + - 4 AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9343
SELECT - COUNT( * ) DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT - COUNT ( * ) / 87 AS col1
----
0

query II rowsort
SELECT - 49 * + 91 * + 30, 32 * + + 96 * 21 AS col2
----
-133770
64512

onlyif mysql # aggregate syntax: 
query II rowsort label-9345
SELECT ALL + COUNT( * ) AS col2, + 96
----
1
96

skipif mysql # not compatible
query II rowsort label-9345
SELECT ALL + COUNT ( * ) AS col2, + 96
----
1
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT DISTINCT + - 28 DIV 73 * 31 + 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT + - 28 / 73 * 31 + 90 AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT - + ( + 65 ) DIV - 70 + - 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9347
SELECT - + ( + 65 ) / - 70 + - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9348
SELECT - - 65 * + ( 82 ) * 20 AS col1, 67 + MIN( + 68 ) col0
----
106600
135

skipif mysql # not compatible
query II rowsort label-9348
SELECT - - 65 * + ( 82 ) * 20 AS col1, 67 + MIN ( + 68 ) col0
----
106600
135

query II rowsort
SELECT ALL + - 65 AS col0, 97
----
-65
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT - 22 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT - 22 / 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL + - 15 * + 34 + - SUM( 19 )
----
-529

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL + - 15 * + 34 + - SUM ( 19 )
----
-529

onlyif mysql # aggregate syntax: 
query II rowsort label-9352
SELECT + + 29, - MIN( - 57 ) AS col0
----
29
57

skipif mysql # not compatible
query II rowsort label-9352
SELECT + + 29, - MIN ( - 57 ) AS col0
----
29
57

query I rowsort
SELECT ALL + + 86 * + 77
----
6622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT ALL - 93 * - 23 * - - 41 + - CASE 94 WHEN - - 1 THEN NULL WHEN + NULLIF ( + 60, MIN( - 38 ) * 48 * 2 + - - NULLIF ( 10, AVG ( - 83 ) * 25 * - MIN( 90 ) + 65 ) + + 34 * - 98 ) THEN NULL WHEN - 12 THEN - CAST( - CASE WHEN NOT + COUNT( * ) IS NULL THEN NULL ELSE 33 / + - MAX( ALL - ( 76 ) ) END AS SIGNED ) * - + ( COUNT( * ) ) * - + 75 - + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - 93 * - 23 * - - 41 + - CASE 94 WHEN - - 1 THEN NULL WHEN + NULLIF ( + 60, MIN ( - 38 ) * 48 * 2 + - - NULLIF ( 10, AVG ( - 83 ) * 25 * - MIN ( 90 ) + 65 ) + + 34 * - 98 ) THEN NULL WHEN - 12 THEN - CAST ( - CASE WHEN NOT + COUNT ( * ) IS NULL THEN NULL ELSE 33 / + - MAX ( ALL - ( 76 ) ) END AS INTEGER ) * - + ( COUNT ( * ) ) * - + 75 - + 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT 74 * + 15 + - + COUNT( * )
----
1109

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT 74 * + 15 + - + COUNT ( * )
----
1109

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL - 14 * - 42 + + ( + CASE COUNT( * ) WHEN - 63 * 91 THEN NULL ELSE + - COALESCE ( 98, 80 + 11 ) END ) + - + 79
----
411

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL - 14 * - 42 + + ( + CASE COUNT ( * ) WHEN - 63 * 91 THEN NULL ELSE + - COALESCE ( 98, 80 + 11 ) END ) + - + 79
----
411

query I rowsort
SELECT + + ( + 99 )
----
99

query I rowsort
SELECT + ( + - 34 ) * 38 * + 17
----
-21964

query I rowsort
SELECT 54 - - 5 + - 54 AS col2
----
5

query II rowsort
SELECT + 29 AS col0, + 10
----
29
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL + 8 + + - NULLIF ( + COUNT( * ), MAX( + ( + 55 ) ) - ( - - MIN( DISTINCT - ( - 80 ) ) ) + - ( - 24 ) * - 4 + - - 75 / - - ( - 94 ) + + 81 )
----
7

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL + 8 + + - NULLIF ( + COUNT ( * ), MAX ( + ( + 55 ) ) - ( - - MIN ( DISTINCT - ( - 80 ) ) ) + - ( - 24 ) * - 4 + - - 75 / - - ( - 94 ) + + 81 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9362
SELECT ALL CAST( - MAX( - 74 ) AS SIGNED ) - + COUNT( ALL + - 64 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL CAST ( - MAX ( - 74 ) AS INTEGER ) - + COUNT ( ALL + - 64 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT - - 23 AS col1, COUNT( * ) + + COUNT( * ) * - CASE 8 WHEN + 43 + + 69 THEN NULL ELSE COUNT( * ) END
----
23
0

skipif mysql # not compatible
query II rowsort label-9363
SELECT - - 23 AS col1, COUNT ( * ) + + COUNT ( * ) * - CASE 8 WHEN + 43 + + 69 THEN NULL ELSE COUNT ( * ) END
----
23
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9364
SELECT DISTINCT COUNT( * ) / + CASE + 68 WHEN + ( - + 74 ) THEN CAST( - 25 AS SIGNED ) * + + MIN( - 69 ) + - - 98 + 86 + - 99 + 31 + 72 / + 88 + - - 3 - - CAST( NULL AS SIGNED ) WHEN + + 22 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT COUNT ( * ) / + CASE + 68 WHEN + ( - + 74 ) THEN CAST ( - 25 AS INTEGER ) * + + MIN ( - 69 ) + - - 98 + 86 + - 99 + 31 + 72 / + 88 + - - 3 - - CAST ( NULL AS INTEGER ) WHEN + + 22 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT COALESCE ( + 92, 32 + - + 93 * + 14, 30 ) - - COUNT( * ) * - 47
----
45

skipif mysql # not compatible
query I rowsort label-9365
SELECT COALESCE ( + 92, 32 + - + 93 * + 14, 30 ) - - COUNT ( * ) * - 47
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT COALESCE ( + COUNT( * ), + 86 ) + - COUNT( * ) * 50
----
-49

skipif mysql # not compatible
query I rowsort label-9366
SELECT COALESCE ( + COUNT ( * ), + 86 ) + - COUNT ( * ) * 50
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9367
SELECT CAST( 89 AS SIGNED ) * - + COUNT( * ) - - + 47 AS col2, + COALESCE ( 22, ( - COUNT( * ) ), + 20 ) + - - 13
----
-42
35

skipif mysql # not compatible
query II rowsort label-9367
SELECT CAST ( 89 AS INTEGER ) * - + COUNT ( * ) - - + 47 AS col2, + COALESCE ( 22, ( - COUNT ( * ) ), + 20 ) + - - 13
----
-42
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9368
SELECT 32 + + COUNT( * ) DIV - ( + 87 ) AS col2, - 71
----
32
-71

skipif mysql # not compatible
query II rowsort label-9368
SELECT 32 + + COUNT ( * ) / - ( + 87 ) AS col2, - 71
----
32
-71

query I rowsort
SELECT ALL ( 38 ) - + - 91 + + - 25 * + 1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT CAST( NULL AS SIGNED ) * 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT CAST ( NULL AS INTEGER ) * 54 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT SUM( - 91 ) * + 92
----
-8372

skipif mysql # not compatible
query I rowsort label-9371
SELECT SUM ( - 91 ) * + 92
----
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ( - + COUNT( * ) ) * - 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9372
SELECT ( - + COUNT ( * ) ) * - 3 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9373
SELECT COUNT( * ) * + 76 DIV - 76 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9373
SELECT COUNT ( * ) * + 76 / - 76 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9374
SELECT + 20 * 66 - - 38 * - 42 DIV + - 7 + - COUNT( * ) - 8 + - 72 * - 9 * 75 * + - 46 * COUNT( * ), - 38 + COUNT( * ) + - SUM( DISTINCT + NULLIF ( 83, + 2 + + + ( - - 77 ) ) ) DIV + + COUNT( * ) + COUNT( * ) AS col2
----
-2234061
-119

skipif mysql # not compatible
query II rowsort label-9374
SELECT + 20 * 66 - - 38 * - 42 / + - 7 + - COUNT ( * ) - 8 + - 72 * - 9 * 75 * + - 46 * COUNT ( * ), - 38 + COUNT ( * ) + - SUM ( DISTINCT + NULLIF ( 83, + 2 + + + ( - - 77 ) ) ) / + + COUNT ( * ) + COUNT ( * ) AS col2
----
-2234061
-119

query I rowsort
SELECT DISTINCT + 62 * 38
----
2356

query II rowsort
SELECT ALL - 7 + - 2 AS col0, 46
----
-9
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT ALL - - MAX( ALL 32 )
----
32

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL - - MAX ( ALL 32 )
----
32

query I rowsort
SELECT 20 + - 58 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL + 8 + + - 52 * + 57 / - AVG ( 96 ) * CASE - 91 WHEN ( 72 ) / + ( + COUNT( * ) ) + + ( - + 56 ) + - 98 + - 81 * MIN( ALL + - ( 48 ) ) * ( 12 ) THEN + MAX( DISTINCT + 80 ) * - MIN( - 99 ) - - 98 + - + 65 / + SUM( DISTINCT 4 ) + + - 27 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + 8 + + - 52 * + 57 / - AVG ( 96 ) * CASE - 91 WHEN ( 72 ) / + ( + COUNT ( * ) ) + + ( - + 56 ) + - 98 + - 81 * MIN ( ALL + - ( 48 ) ) * ( 12 ) THEN + MAX ( DISTINCT + 80 ) * - MIN ( - 99 ) - - 98 + - + 65 / + SUM ( DISTINCT 4 ) + + - 27 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9380
SELECT DISTINCT + ( + COALESCE ( 9, SUM( ALL - 63 ) - COALESCE ( + 80, - 6 + - COUNT( * ) ) + + COUNT( * ) * + 56 ) ) + + + COUNT( * ) col2, + ( - - COUNT( * ) )
----
10
1

skipif mysql # not compatible
query II rowsort label-9380
SELECT DISTINCT + ( + COALESCE ( 9, SUM ( ALL - 63 ) - COALESCE ( + 80, - 6 + - COUNT ( * ) ) + + COUNT ( * ) * + 56 ) ) + + + COUNT ( * ) col2, + ( - - COUNT ( * ) )
----
10
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9381
SELECT DISTINCT - ( 1 ) + CASE + COUNT( * ) WHEN - 92 THEN 29 * 73 WHEN - + 28 * + AVG ( + 2 ) * 96 - + - COUNT( ALL - - 69 ) + - 60 + 20 + - - CAST( NULL AS SIGNED ) + + - 68 * - 19 - - 4 THEN - 3 + 55 ELSE - + 7 * + COUNT( * ) - + 94 + - + COUNT( * ) + - 72 * - MIN( DISTINCT + 19 ) END * - - ( SUM( DISTINCT - 34 ) )
----
-43045

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - ( 1 ) + CASE + COUNT ( * ) WHEN - 92 THEN 29 * 73 WHEN - + 28 * + AVG ( + 2 ) * 96 - + - COUNT ( ALL - - 69 ) + - 60 + 20 + - - CAST ( NULL AS INTEGER ) + + - 68 * - 19 - - 4 THEN - 3 + 55 ELSE - + 7 * + COUNT ( * ) - + 94 + - + COUNT ( * ) + - 72 * - MIN ( DISTINCT + 19 ) END * - - ( SUM ( DISTINCT - 34 ) )
----
-43045

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ( 7 ) + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9382
SELECT ( 7 ) + COUNT ( * ) AS col2
----
8

query I rowsort
SELECT 89 - 92 * - 74 AS col1
----
6897

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT + ( - + MAX( DISTINCT 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-9384
SELECT + ( - + MAX ( DISTINCT 59 ) )
----
-59

query I rowsort
SELECT 66 * + + 56 AS col1
----
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL - 23 + - 12 + - 89 * + CAST( + COALESCE ( - 31, - 21 + MIN( + + 84 ) + 41 ) AS SIGNED ) * - 2
----
-5553

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL - 23 + - 12 + - 89 * + CAST ( + COALESCE ( - 31, - 21 + MIN ( + + 84 ) + 41 ) AS INTEGER ) * - 2
----
-5553

query I rowsort
SELECT 18 * + 6 + 82
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT DISTINCT + - COALESCE ( 4, + 6, 51 - + - 82 ) DIV - CASE + - 0 WHEN 37 + - MIN( + 26 ) THEN + 50 ELSE - - 13 END
----
0

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT + - COALESCE ( 4, + 6, 51 - + - 82 ) / - CASE + - 0 WHEN 37 + - MIN ( + 26 ) THEN + 50 ELSE - - 13 END
----
0

query I rowsort
SELECT DISTINCT - + NULLIF ( + 13, 84 ) - + 3
----
-16

query I rowsort
SELECT ALL + - 83 * + 80 AS col1
----
-6640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9391
SELECT ALL + 21 DIV + COALESCE ( - 61, 84, + 92 + + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL + 21 / + COALESCE ( - 61, 84, + 92 + + - COUNT ( * ) )
----
0

query I rowsort
SELECT 77 * - 36 - + + 39 + 17 + 57
----
-2737

query I rowsort
SELECT 25 * + 92 - 32
----
2268

query I rowsort
SELECT 13 * + 5 * + 60
----
3900

query I rowsort
SELECT 51 + - + 83 col2
----
-32

query I rowsort
SELECT 29 + + - 86 col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-9397
SELECT DISTINCT 20 AS col2, COUNT( * ) AS col2
----
20
1

skipif mysql # not compatible
query II rowsort label-9397
SELECT DISTINCT 20 AS col2, COUNT ( * ) AS col2
----
20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9398
SELECT DISTINCT COUNT( - NULLIF ( + - 5, - 70 + CAST( NULL AS SIGNED ) ) ), 33 + + - 82 DIV - 36 - - ( 64 ) DIV - 29 + - 32 AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9398
SELECT DISTINCT COUNT ( - NULLIF ( + - 5, - 70 + CAST ( NULL AS INTEGER ) ) ), 33 + + - 82 / - 36 - - ( 64 ) / - 29 + - 32 AS col1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9399
SELECT ALL COUNT( * ) AS col2, + MAX( ALL - + CAST( NULL AS SIGNED ) ), + 12 AS col2
----
1
NULL
12

skipif mysql # not compatible
query III rowsort label-9399
SELECT ALL COUNT ( * ) AS col2, + MAX ( ALL - + CAST ( NULL AS INTEGER ) ), + 12 AS col2
----
1
NULL
12

query I rowsort
SELECT ALL 74 * - 72 AS col0
----
-5328

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT MIN( + 50 ) + + 34 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9401
SELECT MIN ( + 50 ) + + 34 AS col0
----
84

query I rowsort
SELECT ALL 20 * 22
----
440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT NULLIF ( - COUNT( * ), ( - + 56 ) * + - 81 * - + 35 ) DIV - 34 * 27 - 66
----
-66

skipif mysql # not compatible
query I rowsort label-9403
SELECT NULLIF ( - COUNT ( * ), ( - + 56 ) * + - 81 * - + 35 ) / - 34 * 27 - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ALL 14 + 65 - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL 14 + 65 - COUNT ( * )
----
78

query I rowsort
SELECT ALL + 3 + - + 5 AS col0
----
-2

query I rowsort
SELECT ALL 84 * - 54 AS col2
----
-4536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL + CAST( - AVG ( - 58 ) AS SIGNED ) * 39 + - 2
----
2260

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + CAST ( - AVG ( - 58 ) AS INTEGER ) * 39 + - 2
----
2260

query I rowsort
SELECT 98 + 13 AS col1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT ALL 72 DIV 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL 72 / 55 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT + SUM( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-9410
SELECT + SUM ( 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT - COUNT( * ) * + 40 + 7 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9411
SELECT - COUNT ( * ) * + 40 + 7 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT + SUM( ALL 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9412
SELECT + SUM ( ALL 38 )
----
38

query I rowsort
SELECT CASE - 64 WHEN 14 THEN 80 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT 13 DIV 40 + + 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9414
SELECT 13 / 40 + + 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT MAX( ALL 31 )
----
31

skipif mysql # not compatible
query I rowsort label-9415
SELECT MAX ( ALL 31 )
----
31

query I rowsort
SELECT ALL + 13 * ( 33 * + 62 )
----
26598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT + CAST( NULL AS SIGNED ) * - NULLIF ( + ( 78 ), + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT + CAST ( NULL AS INTEGER ) * - NULLIF ( + ( 78 ), + 31 )
----
NULL

query I rowsort
SELECT ALL 65 * + 40 - 39 AS col1
----
2561

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT COUNT( * ) * 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT COUNT ( * ) * 12 AS col0
----
12

query I rowsort
SELECT DISTINCT + ( + 76 )
----
76

query I rowsort
SELECT - 76 * 60
----
-4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT DISTINCT + CAST( + 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT + CAST ( + 80 AS INTEGER )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT COALESCE ( - 80, - CAST( + 65 AS SIGNED ) - COUNT( * ) * - 2 ) * COALESCE ( 90, + 48 * NULLIF ( COUNT( * ), ( ( + 37 ) ) ), + 97 ) + - COUNT( * ) AS col2
----
-7201

skipif mysql # not compatible
query I rowsort label-9423
SELECT COALESCE ( - 80, - CAST ( + 65 AS INTEGER ) - COUNT ( * ) * - 2 ) * COALESCE ( 90, + 48 * NULLIF ( COUNT ( * ), ( ( + 37 ) ) ), + 97 ) + - COUNT ( * ) AS col2
----
-7201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), 56 + - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), 56 + - 11 )
----
NULL

query I rowsort
SELECT + 40 * 40 AS col0
----
1600

query I rowsort
SELECT - 46 * 83 AS col1
----
-3818

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - 16 - COUNT( * ) * - ( + 20 * + ( COUNT( * ) ) + 29 )
----
33

skipif mysql # not compatible
query I rowsort label-9427
SELECT - 16 - COUNT ( * ) * - ( + 20 * + ( COUNT ( * ) ) + 29 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9428
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) / 99
----
0

query I rowsort
SELECT - 93 - 70 AS col0
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT SUM( ALL 74 ) col1
----
74

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT SUM ( ALL 74 ) col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT DISTINCT - 70 DIV 2
----
-35

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT - 70 / 2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT - 24 * - ( SUM( DISTINCT - 11 ) * - COUNT( 82 ) ) AS col0
----
264

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT - 24 * - ( SUM ( DISTINCT - 11 ) * - COUNT ( 82 ) ) AS col0
----
264

query I rowsort
SELECT - 80 + ( 10 )
----
-70

query I rowsort
SELECT ALL + 79 * 42
----
3318

query I rowsort
SELECT - ( - 22 ) * 19 AS col1
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT - 15 - - NULLIF ( - 0, - COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9436
SELECT - 15 - - NULLIF ( - 0, - COUNT ( * ) )
----
-15

query I rowsort
SELECT ALL - 7 + 72 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - ( COUNT( * ) ) * 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9438
SELECT - ( COUNT ( * ) ) * 6 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - MIN( DISTINCT 57 ) + 27 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9439
SELECT - MIN ( DISTINCT 57 ) + 27 AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9440
SELECT DISTINCT CASE MAX( ALL 92 ) WHEN + 91 THEN NULL ELSE CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT CASE MAX ( ALL 92 ) WHEN + 91 THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 7 + 80
----
87

query I rowsort
SELECT DISTINCT + 90 + - 2
----
88

query I rowsort
SELECT - 28 + + 65
----
37

query I rowsort
SELECT ALL + - 79 + + 18 * - 61 AS col2
----
-1177

query I rowsort
SELECT - 41 + + 18
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT + 11 DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9446
SELECT + 11 / 75 AS col2
----
0

query I rowsort
SELECT 26 * + 24 - 33
----
591

query I rowsort
SELECT DISTINCT + 15 * + 84
----
1260

query I rowsort
SELECT + + CASE 98 WHEN - 43 THEN NULL WHEN 66 THEN - 34 * + 67 + + 85 END / 76 - + 67
----
NULL

query I rowsort
SELECT + 68 * - NULLIF ( 14, 34 ) AS col1
----
-952

query I rowsort
SELECT + - 76 + - 42
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL + - COALESCE ( NULLIF ( 86, + COUNT( - 56 ) ), 72 + + SUM( DISTINCT - 86 ) ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL + - COALESCE ( NULLIF ( 86, + COUNT ( - 56 ) ), 72 + + SUM ( DISTINCT - 86 ) ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT - + MIN( - 18 ) * + 61 AS col2
----
1098

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - + MIN ( - 18 ) * + 61 AS col2
----
1098

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL + + ( + 98 ) * + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL + + ( + 98 ) * + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT + - 26 * COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9455
SELECT + - 26 * COUNT ( * ) AS col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT + CASE + 29 WHEN 6 + + 26 THEN - 62 ELSE 56 + 50 DIV 18 END AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9456
SELECT + CASE + 29 WHEN 6 + + 26 THEN - 62 ELSE 56 + 50 / 18 END AS col0
----
58

query I rowsort
SELECT + 57 + 10 AS col1
----
67

query I rowsort
SELECT - - 86 * 83 - 57 * + 13
----
6397

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT CASE - ( - 73 ) WHEN - 72 THEN NULL ELSE ( - COALESCE ( - 15, - MAX( DISTINCT 19 ) ) ) END AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9459
SELECT CASE - ( - 73 ) WHEN - 72 THEN NULL ELSE ( - COALESCE ( - 15, - MAX ( DISTINCT 19 ) ) ) END AS col0
----
15

query I rowsort
SELECT + 41 + - 36
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT + + 49 DIV 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT + + 49 / 76 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9462
SELECT + - 44 DIV 44
----
-1

skipif mysql # not compatible
query I rowsort label-9462
SELECT + - 44 / 44
----
-1

query I rowsort
SELECT - 54 + 97 * - NULLIF ( + 12, 41 ) AS col2
----
-1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT - + ( CAST( - COUNT( * ) AS SIGNED ) ) * - 33
----
-33

skipif mysql # not compatible
query I rowsort label-9464
SELECT - + ( CAST ( - COUNT ( * ) AS INTEGER ) ) * - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + 93 + + COUNT( * ) * - 48
----
45

skipif mysql # not compatible
query I rowsort label-9465
SELECT + 93 + + COUNT ( * ) * - 48
----
45

query I rowsort
SELECT + 69 + 41 AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT ALL 75 * + CAST( 43 AS SIGNED )
----
3225

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL 75 * + CAST ( 43 AS INTEGER )
----
3225

query I rowsort
SELECT + 87 * 76 AS col1
----
6612

query I rowsort
SELECT DISTINCT 10 * + - 52 AS col2
----
-520

query I rowsort
SELECT + 33 * + 30 AS col0
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT 84 * + 0 * + 28 + 57 * + MIN( - 21 + 98 )
----
4389

skipif mysql # not compatible
query I rowsort label-9471
SELECT 84 * + 0 * + 28 + 57 * + MIN ( - 21 + 98 )
----
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT MAX( - - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-9472
SELECT MAX ( - - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT - 56 * + COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9473
SELECT - 56 * + COUNT ( * ) AS col0
----
-56

query I rowsort
SELECT - ( + + 53 ) + 8
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT COUNT( 97 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9475
SELECT COUNT ( 97 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL SUM( ALL 54 ) * 49 + 35
----
2681

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL SUM ( ALL 54 ) * 49 + 35
----
2681

query I rowsort
SELECT ALL 59 * - 99 * - ( + 85 * - 47 ) + - 53 * 63 AS col2
----
-23338134

query I rowsort
SELECT DISTINCT - 3 + + + 45 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT - ( 28 ) + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-9479
SELECT - ( 28 ) + COUNT ( * )
----
-27

query I rowsort
SELECT ALL 3 + + 62 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL - CASE - MAX( DISTINCT 27 ) WHEN - 60 - - 64 THEN NULL WHEN 36 THEN 13 ELSE 79 - - MIN( ALL 91 ) END + + 67 * 45
----
2845

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - CASE - MAX ( DISTINCT 27 ) WHEN - 60 - - 64 THEN NULL WHEN 36 THEN 13 ELSE 79 - - MIN ( ALL 91 ) END + + 67 * 45
----
2845

query I rowsort
SELECT DISTINCT + 3 * + 14
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT - 67 + - + COUNT( * ) * - 51
----
-16

skipif mysql # not compatible
query I rowsort label-9483
SELECT - 67 + - + COUNT ( * ) * - 51
----
-16

query I rowsort
SELECT 1 * + 30 AS col1
----
30

query I rowsort
SELECT ALL + 77 * + NULLIF ( 67, + 22 + + 57 * + 21 )
----
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT - MIN( 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9486
SELECT - MIN ( 13 )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT - COALESCE ( - ( 4 ), 50 * 82 + ( + COALESCE ( 29, - 23, 0 ) - 96 DIV 93 ) DIV 59 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9487
SELECT - COALESCE ( - ( 4 ), 50 * 82 + ( + COALESCE ( 29, - 23, 0 ) - 96 / 93 ) / 59 ) AS col0
----
4

query I rowsort
SELECT 41 + - - 8 + + 65 * 13
----
894

query I rowsort
SELECT - 48 + + + 62 * + ( 81 ) AS col2
----
4974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9490
SELECT CAST( - 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-9490
SELECT CAST ( - 63 AS INTEGER )
----
-63

query I rowsort
SELECT DISTINCT - - 23 * - 91 AS col0
----
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT COALESCE ( - - ( COUNT( * ) ), - 58 - - 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9492
SELECT COALESCE ( - - ( COUNT ( * ) ), - 58 - - 66 ) AS col2
----
1

query I rowsort
SELECT + 98 + 28 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL - - SUM( ALL + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - - SUM ( ALL + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT NULLIF ( 97, 13 ) + COALESCE ( 56, 51 * 36 + COALESCE ( - 25, + 9, COALESCE ( 48, - ( + COUNT( * ) ), + ( + 80 ) - 1 ) * 93 ) ) * + 68
----
3905

skipif mysql # not compatible
query I rowsort label-9495
SELECT NULLIF ( 97, 13 ) + COALESCE ( 56, 51 * 36 + COALESCE ( - 25, + 9, COALESCE ( 48, - ( + COUNT ( * ) ), + ( + 80 ) - 1 ) * 93 ) ) * + 68
----
3905

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT SUM( - + 14 ) * + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9496
SELECT SUM ( - + 14 ) * + COUNT ( * )
----
-14

query I rowsort
SELECT ALL + 9 * + + 79 + - 49
----
662

query I rowsort
SELECT DISTINCT - - 68 + - 81 * - 31
----
2579

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL + ( + COUNT( * ) ) + 86 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + ( + COUNT ( * ) ) + 86 AS col1
----
87

query I rowsort
SELECT DISTINCT 99 + - - 37
----
136

query I rowsort
SELECT ALL 57 + - + 1 + + + 8 + - 2 * - 39 AS col0
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9502
SELECT 71, + 89 - + + NULLIF ( - 75, - AVG ( ALL 32 ) * 76 + - ( + MAX( ALL - 11 ) - + 86 ) * CASE + 29 WHEN ( 86 ) * + COUNT( * ) THEN - ( - 31 ) * - 55 + + 61 * 87 END ) + - 73 DIV 5 AS col0
----
71
150

skipif mysql # not compatible
query II rowsort label-9502
SELECT 71, + 89 - + + NULLIF ( - 75, - AVG ( ALL 32 ) * 76 + - ( + MAX ( ALL - 11 ) - + 86 ) * CASE + 29 WHEN ( 86 ) * + COUNT ( * ) THEN - ( - 31 ) * - 55 + + 61 * 87 END ) + - 73 / 5 AS col0
----
71
150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9503
SELECT ALL - 93 col2, - COALESCE ( + 80, 80 * 2 ) + + ( CAST( NULL AS SIGNED ) + - 59 )
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-9503
SELECT ALL - 93 col2, - COALESCE ( + 80, 80 * 2 ) + + ( CAST ( NULL AS INTEGER ) + - 59 )
----
-93
NULL

query I rowsort
SELECT 28 * - + 53 * + 10 col1
----
-14840

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - COUNT( * ) * - 4 + - 64 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-9505
SELECT - COUNT ( * ) * - 4 + - 64 AS col2
----
-60

query I rowsort
SELECT CASE 1 WHEN - ( - 89 ) THEN NULL ELSE 62 END * CASE 76 WHEN 42 THEN 21 END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9507
SELECT ( + + 85 ) + - NULLIF ( 48, - CAST( + 11 AS DECIMAL ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9507
SELECT ( + + 85 ) + - NULLIF ( 48, - CAST ( + 11 AS REAL ) ) AS col0
----
37

query I rowsort
SELECT DISTINCT 63 + - - 8
----
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9509
SELECT CAST( - - 66 AS SIGNED ) DIV - 33
----
-2

skipif mysql # not compatible
query I rowsort label-9509
SELECT CAST ( - - 66 AS INTEGER ) / - 33
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT ALL 98 + + 56 DIV - + 22 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL 98 + + 56 / - + 22 AS col2
----
96

query II rowsort
SELECT + 80 AS col0, - 77 * + 90 AS col2
----
80
-6930

query II rowsort
SELECT DISTINCT - 96 AS col2, - 81 * - 69 AS col0
----
-96
5589

query I rowsort
SELECT ALL 91 * 60 AS col0
----
5460

query I rowsort
SELECT ALL 3 + - 65 AS col1
----
-62

query I rowsort
SELECT ALL 62 + + + 45
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT DISTINCT 20 * COALESCE ( CAST( + 62 AS SIGNED ), - 98 - ( 55 ) ) AS col0
----
1240

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT 20 * COALESCE ( CAST ( + 62 AS INTEGER ), - 98 - ( 55 ) ) AS col0
----
1240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT ALL - 90 - COALESCE ( - + CAST( + 5 AS SIGNED ), COUNT( * ) ) - + 12
----
-97

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - 90 - COALESCE ( - + CAST ( + 5 AS INTEGER ), COUNT ( * ) ) - + 12
----
-97

query I rowsort
SELECT CASE - 84 WHEN - 39 THEN + 25 - 0 * ( - 68 ) ELSE NULL END * ( - 30 ) AS col1
----
NULL

query I rowsort
SELECT ALL 55 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT 65, 71 + + 85 + COUNT( * ) * 14 AS col2
----
65
170

skipif mysql # not compatible
query II rowsort label-9520
SELECT 65, 71 + + 85 + COUNT ( * ) * 14 AS col2
----
65
170

query I rowsort
SELECT ( - - 69 ) + - 27 col1
----
42

query I rowsort
SELECT 1 - + + 22
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9523
SELECT DISTINCT 52, + 87 * + + 95 DIV COUNT( * ) + 40 AS col1
----
52
8305

skipif mysql # not compatible
query II rowsort label-9523
SELECT DISTINCT 52, + 87 * + + 95 / COUNT ( * ) + 40 AS col1
----
52
8305

query I rowsort
SELECT + NULLIF ( - 21, + ( 75 ) ) * + 44
----
-924

onlyif mysql # DIV for integer division: 
query II rowsort label-9525
SELECT - 97 AS col0, + 6 DIV - 79 - 13 AS col1
----
-97
-13

skipif mysql # not compatible
query II rowsort label-9525
SELECT - 97 AS col0, + 6 / - 79 - 13 AS col1
----
-97
-13

query I rowsort
SELECT ALL + - ( + 59 ) * - 65 AS col0
----
3835

query I rowsort
SELECT ALL - - 37 * 90
----
3330

query I rowsort
SELECT - - ( + - ( - 87 ) ) AS col2
----
87

query I rowsort
SELECT 69 + - 71 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT - + COUNT( * ) AS col2, MIN( ALL + + 63 ) * - COUNT( * ) - 46 AS col1
----
-1
-109

skipif mysql # not compatible
query II rowsort label-9530
SELECT - + COUNT ( * ) AS col2, MIN ( ALL + + 63 ) * - COUNT ( * ) - 46 AS col1
----
-1
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT DISTINCT + + NULLIF ( - + 83, + + 68 / - CAST( + 38 AS SIGNED ) ) * 19 AS col2
----
-1577

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT + + NULLIF ( - + 83, + + 68 / - CAST ( + 38 AS INTEGER ) ) * 19 AS col2
----
-1577

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT ALL - - 45 * 37 + + ( 8 ) + 51 DIV - 20 AS col1
----
1671

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL - - 45 * 37 + + ( 8 ) + 51 / - 20 AS col1
----
1671

query I rowsort
SELECT + 53 / + CASE 41 WHEN - 94 THEN - 75 * 7 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9534
SELECT - 23 DIV 86 DIV + 76 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-9534
SELECT - 23 / 86 / + 76 + - 8
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT DISTINCT - 20 * 47 DIV - 41 + - 48
----
-26

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT - 20 * 47 / - 41 + - 48
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL - MIN( ALL - 72 ) * + + 28
----
2016

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - MIN ( ALL - 72 ) * + + 28
----
2016

query II rowsort
SELECT ALL - - 19 col1, 60 * 89 + 8 AS col0
----
19
5348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT + CAST( + + 58 AS SIGNED ) * + 11 + 73
----
711

skipif mysql # not compatible
query I rowsort label-9538
SELECT + CAST ( + + 58 AS INTEGER ) * + 11 + 73
----
711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9539
SELECT ALL + + NULLIF ( + 50, - 35 + - ( 28 ) / + 73 ) * 99 + + COUNT( CAST( NULL AS SIGNED ) )
----
4950

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL + + NULLIF ( + 50, - 35 + - ( 28 ) / + 73 ) * 99 + + COUNT ( CAST ( NULL AS INTEGER ) )
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + 86 * - ( + - 32 ) + MIN( + 42 ) AS col0
----
2794

skipif mysql # not compatible
query I rowsort label-9540
SELECT + 86 * - ( + - 32 ) + MIN ( + 42 ) AS col0
----
2794

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT 32 + + + 45 + CASE - + COUNT( * ) WHEN COUNT( DISTINCT 82 ) + + 54 THEN 93 WHEN 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT 32 + + + 45 + CASE - + COUNT ( * ) WHEN COUNT ( DISTINCT 82 ) + + 54 THEN 93 WHEN 48 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT 20 DIV + 83 + - - 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9542
SELECT 20 / + 83 + - - 26 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9543
SELECT ALL + 20 + - ( + MIN( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL + 20 + - ( + MIN ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT SUM( ALL + 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9544
SELECT SUM ( ALL + 70 ) AS col2
----
70

query I rowsort
SELECT 21 * 13 * - + 1 + + 92 + + ( 43 )
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9546
SELECT ALL + 21 + + - 56 + + ( + SUM( 82 ) ) + - 26 * 61 DIV 23 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + 21 + + - 56 + + ( + SUM ( 82 ) ) + - 26 * 61 / 23 AS col2
----
-21

query I rowsort
SELECT 76 + - 47 * + ( 50 )
----
-2274

query II rowsort
SELECT ALL - 57 - + 8 AS col2, 45 + - - 87 AS col1
----
-65
132

query I rowsort
SELECT DISTINCT + 3 * 70 * 6 AS col2
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT ALL COALESCE ( - 47, + COUNT( * ) ) - - - CAST( - 88 AS SIGNED ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL COALESCE ( - 47, + COUNT ( * ) ) - - - CAST ( - 88 AS INTEGER ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT + COUNT( * ) * 20 + - ( + 93 )
----
-73

skipif mysql # not compatible
query I rowsort label-9551
SELECT + COUNT ( * ) * 20 + - ( + 93 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT SUM( - - ( + 62 ) ) - - 2
----
64

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT SUM ( - - ( + 62 ) ) - - 2
----
64

query I rowsort
SELECT + 20 * - 79 * + 8 AS col2
----
-12640

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT + 31 + + CASE + 69 WHEN - + 45 THEN - 75 WHEN + COUNT( * ) THEN + 21 + ( + 96 ) / 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT + 31 + + CASE + 69 WHEN - + 45 THEN - 75 WHEN + COUNT ( * ) THEN + 21 + ( + 96 ) / 44 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9555
SELECT ALL CASE 56 WHEN ( 74 ) THEN 58 * - 30 WHEN COUNT( * ) + 67 THEN 32 + CASE CAST( NULL AS SIGNED ) WHEN - CAST( 9 AS DECIMAL ) THEN ( + 75 ) ELSE 34 END / - NULLIF ( + 82, 28 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL CASE 56 WHEN ( 74 ) THEN 58 * - 30 WHEN COUNT ( * ) + 67 THEN 32 + CASE CAST ( NULL AS INTEGER ) WHEN - CAST ( 9 AS REAL ) THEN ( + 75 ) ELSE 34 END / - NULLIF ( + 82, 28 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT + - 63 + - 98 + + - CAST( + 78 AS SIGNED ) AS col1
----
-239

skipif mysql # not compatible
query I rowsort label-9556
SELECT + - 63 + - 98 + + - CAST ( + 78 AS INTEGER ) AS col1
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT + + 89 + + COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9557
SELECT + + 89 + + COUNT ( * ) AS col0
----
90

query I rowsort
SELECT ALL - ( 56 )
----
-56

query I rowsort
SELECT + - 14 * 40
----
-560

query I rowsort
SELECT ALL - 8 * 58 AS col1
----
-464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9561
SELECT + 66 + - 63 DIV COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9561
SELECT + 66 + - 63 / COUNT ( * ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9562
SELECT - CASE 25 WHEN - 43 * - + 83 THEN NULL WHEN - 35 THEN NULL WHEN - 13 * 6 THEN ( - CAST( NULL AS SIGNED ) ) * + 69 + - 53 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT - CASE 25 WHEN - 43 * - + 83 THEN NULL WHEN - 35 THEN NULL WHEN - 13 * 6 THEN ( - CAST ( NULL AS INTEGER ) ) * + 69 + - 53 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + 75 * - ( - 67 ) AS col0
----
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT + 24 * - NULLIF ( MIN( 13 ), - ( 87 ) / 74 ) AS col1
----
-312

skipif mysql # not compatible
query I rowsort label-9564
SELECT + 24 * - NULLIF ( MIN ( 13 ), - ( 87 ) / 74 ) AS col1
----
-312

query I rowsort
SELECT - 93 + + 37 - 81 AS col0
----
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9566
SELECT ALL MIN( - 88 ) + MAX( ALL + 2 ) DIV - 62
----
-88

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL MIN ( - 88 ) + MAX ( ALL + 2 ) / - 62
----
-88

query I rowsort
SELECT - ( + + 92 ) + + 49
----
-43

query I rowsort
SELECT DISTINCT ( + - 48 ) AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9569
SELECT ALL + + CAST( NULL AS SIGNED ) + - COUNT( * ) * - - COUNT( * ) * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - - COUNT ( * ) * 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + + 87 * - 40 * - COUNT( * ) - ( 71 ) AS col1
----
3409

skipif mysql # not compatible
query I rowsort label-9570
SELECT + + 87 * - 40 * - COUNT ( * ) - ( 71 ) AS col1
----
3409

query I rowsort
SELECT ALL + 81 + + - 36
----
45

query I rowsort
SELECT DISTINCT + 59 + 68 + + 67 * 7 AS col1
----
596

query I rowsort
SELECT ALL - 1 + + - COALESCE ( + 65, - 58, 44 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT - MAX( 52 ) + - COUNT( - 23 ) + - 44 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9574
SELECT - MAX ( 52 ) + - COUNT ( - 23 ) + - 44 AS col2
----
-97

query I rowsort
SELECT + 40 * - 45 AS col0
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT + COUNT( * ) * - 10 + - 32
----
-42

skipif mysql # not compatible
query I rowsort label-9576
SELECT + COUNT ( * ) * - 10 + - 32
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT - 16 DIV - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9577
SELECT - 16 / - COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL 35 * 89 + CASE + + 43 WHEN - 93 THEN NULL ELSE - ( - 64 ) * 38 END AS col1
----
5547

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT + 28 * - 64 * - - 83 * - COUNT( ALL + 55 )
----
148736

skipif mysql # not compatible
query I rowsort label-9579
SELECT + 28 * - 64 * - - 83 * - COUNT ( ALL + 55 )
----
148736

query I rowsort
SELECT - 34 * - 39
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT - COUNT( * ) * + 16 * + 38 * + + 61
----
-37088

skipif mysql # not compatible
query I rowsort label-9581
SELECT - COUNT ( * ) * + 16 * + 38 * + + 61
----
-37088

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT ( + 94 ) * + MIN( 13 ) AS col0
----
1222

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT ( + 94 ) * + MIN ( 13 ) AS col0
----
1222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9583
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - + 7 - + - 79 - + 12 + 21 col0
----
81

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - + 7 - + - 79 - + 12 + 21 col0
----
81

query I rowsort
SELECT DISTINCT 45 * + 20 * + + 37
----
33300

query I rowsort
SELECT - ( + 89 ) * + - 74 + + 26 AS col1
----
6612

query II rowsort
SELECT ALL + COALESCE ( - 3, 89 ), 6 - - + 83 AS col1
----
-3
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT NULLIF ( + MIN( DISTINCT - - 36 ), 22 + - + 45 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9587
SELECT NULLIF ( + MIN ( DISTINCT - - 36 ), 22 + - + 45 ) AS col0
----
36

query I rowsort
SELECT NULLIF ( - 91, + 43 ) AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT + 2 * - 27 + + + 30 + 31 DIV NULLIF ( - 36, 58 ) + 80
----
56

skipif mysql # not compatible
query I rowsort label-9589
SELECT + 2 * - 27 + + + 30 + 31 / NULLIF ( - 36, 58 ) + 80
----
56

query I rowsort
SELECT - 26 * + ( 29 ) AS col1
----
-754

query I rowsort
SELECT - 44 + + 30
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT ALL + MAX( + 44 ) col2
----
44

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL + MAX ( + 44 ) col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT - 8 * - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9593
SELECT - 8 * - COUNT ( * ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT DISTINCT - 81 * 36 DIV + - 48
----
60

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT - 81 * 36 / + - 48
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 70, 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL - - 66 * - + COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - - 66 * - + COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT + MAX( + + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + MAX ( + + 3 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT - COALESCE ( CASE ( - 95 ) WHEN - 98 THEN - 55 ELSE 9 END, - 0 * - 71, COALESCE ( - 27, 31, - ( 48 ) * + 84 ) + - 73 / + 31 ) / - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT - COALESCE ( CASE ( - 95 ) WHEN - 98 THEN - 55 ELSE 9 END, - 0 * - 71, COALESCE ( - 27, 31, - ( 48 ) * + 84 ) + - 73 / + 31 ) / - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9600
SELECT DISTINCT 56 DIV - - SUM( DISTINCT + 79 )
----
0

skipif mysql # not compatible
query I rowsort label-9600
SELECT DISTINCT 56 / - - SUM ( DISTINCT + 79 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT DISTINCT + + 61 + - 16 + - 6 DIV - - 34 * 13
----
45

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + + 61 + - 16 + - 6 / - - 34 * 13
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9602
SELECT ALL - 11 + 62 * - 72 + - NULLIF ( - CAST( - ( 78 ) AS SIGNED ), + 49 + + 81 DIV - 67 ) DIV - 46 AS col2
----
-4474

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - 11 + 62 * - 72 + - NULLIF ( - CAST ( - ( 78 ) AS INTEGER ), + 49 + + 81 / - 67 ) / - 46 AS col2
----
-4474

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT + + 41 * - ( - MAX( ALL - 70 ) ) AS col2
----
-2870

skipif mysql # not compatible
query I rowsort label-9603
SELECT + + 41 * - ( - MAX ( ALL - 70 ) ) AS col2
----
-2870

query I rowsort
SELECT ALL 97 + 20
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL 41 + - COUNT( * ) + - 28 - + - 44 + 45 - 81 * 74 * 38 * 39
----
-8883007

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL 41 + - COUNT ( * ) + - 28 - + - 44 + 45 - 81 * 74 * 38 * 39
----
-8883007

query I rowsort
SELECT DISTINCT - 3 + - 80 AS col2
----
-83

query II rowsort
SELECT - 68, - 8 AS col1
----
-68
-8

query I rowsort
SELECT + 24 + + + ( 31 )
----
55

query I rowsort
SELECT + 94 * + CASE - 67 WHEN ( + 80 ) THEN 58 ELSE 72 END AS col1
----
6768

query I rowsort
SELECT + ( + + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT ALL + 22 col0, 13 + - - MAX( - 91 ) col2
----
22
-78

skipif mysql # not compatible
query II rowsort label-9611
SELECT ALL + 22 col0, 13 + - - MAX ( - 91 ) col2
----
22
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9612
SELECT 57 DIV - 94 + + - 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9612
SELECT 57 / - 94 + + - 45 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9613
SELECT ALL CASE - COUNT( * ) WHEN 98 THEN - + ( + COUNT( * ) ) - + 28 / - 3 WHEN - CASE WHEN NOT ( NULL ) > NULL THEN - COUNT( * ) END + MIN( ALL 78 ) THEN 78 * COALESCE ( + 15, - 42, SUM( - 38 ) * - CAST( - 89 AS SIGNED ), 65 + + 73 ) END / 50 - ( + 85 + 58 / + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL CASE - COUNT ( * ) WHEN 98 THEN - + ( + COUNT ( * ) ) - + 28 / - 3 WHEN - CASE WHEN NOT ( NULL ) > NULL THEN - COUNT ( * ) END + MIN ( ALL 78 ) THEN 78 * COALESCE ( + 15, - 42, SUM ( - 38 ) * - CAST ( - 89 AS INTEGER ), 65 + + 73 ) END / 50 - ( + 85 + 58 / + 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT COALESCE ( + + ( COUNT( * ) ), - 14 ) * + COUNT( * ) + + - MAX( DISTINCT - 90 ) + - 80
----
11

skipif mysql # not compatible
query I rowsort label-9614
SELECT COALESCE ( + + ( COUNT ( * ) ), - 14 ) * + COUNT ( * ) + + - MAX ( DISTINCT - 90 ) + - 80
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9615
SELECT ALL COUNT( * ) DIV - 25 - - - COALESCE ( - 66, + + COUNT( * ) - + + 66 DIV + COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL COUNT ( * ) / - 25 - - - COALESCE ( - 66, + + COUNT ( * ) - + + 66 / + COUNT ( * ) )
----
66

query I rowsort
SELECT + 74 * 55 * 56 AS col0
----
227920

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT ALL 80 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL 80 / - + 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT DISTINCT 97 DIV + + 75
----
1

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT 97 / + + 75
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL 32 - + - ( - NULLIF ( - - 43, - 24 * COUNT( * ) * 43 - ( + 38 ) ) ) - + 83
----
-94

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL 32 - + - ( - NULLIF ( - - 43, - 24 * COUNT ( * ) * 43 - ( + 38 ) ) ) - + 83
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9620
SELECT 72 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-9620
SELECT 72 / + 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT CAST( - + 99 AS SIGNED ) * + 55
----
-5445

skipif mysql # not compatible
query I rowsort label-9621
SELECT CAST ( - + 99 AS INTEGER ) * + 55
----
-5445

query I rowsort
SELECT 17 * 31 AS col2
----
527

query I rowsort
SELECT ALL + 86 * + + 86
----
7396

query I rowsort
SELECT ALL 96 * + 81 AS col1
----
7776

query I rowsort
SELECT 98 * - 69
----
-6762

query I rowsort
SELECT 1 + - - 89 col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL COUNT( ALL + + ( 40 ) ) * + - 13 * + - CAST( NULL AS SIGNED ) / + - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL COUNT ( ALL + + ( 40 ) ) * + - 13 * + - CAST ( NULL AS INTEGER ) / + - 37 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9628
SELECT DISTINCT - 40, - 10 * - + CAST( - ( - 34 ) AS SIGNED ) AS col2
----
-40
340

skipif mysql # not compatible
query II rowsort label-9628
SELECT DISTINCT - 40, - 10 * - + CAST ( - ( - 34 ) AS INTEGER ) AS col2
----
-40
340

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL 90 * - + ( - + 94 ) * - COUNT( * ) AS col2
----
-8460

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL 90 * - + ( - + 94 ) * - COUNT ( * ) AS col2
----
-8460

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT - NULLIF ( 24, - COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT - NULLIF ( 24, - COUNT ( * ) )
----
-24

query I rowsort
SELECT + 48 * - + 73 AS col1
----
-3504

query I rowsort
SELECT DISTINCT - 75 + + 33
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT ALL COALESCE ( - + NULLIF ( - 37, - 38 ), - CASE - - 57 WHEN CAST( - NULLIF ( 45, ( 96 ) ) AS SIGNED ) * SUM( + 34 ) THEN - 58 + + ( COUNT( * ) + 56 * - MIN( + 76 ) ) ELSE - 86 END ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL COALESCE ( - + NULLIF ( - 37, - 38 ), - CASE - - 57 WHEN CAST ( - NULLIF ( 45, ( 96 ) ) AS INTEGER ) * SUM ( + 34 ) THEN - 58 + + ( COUNT ( * ) + 56 * - MIN ( + 76 ) ) ELSE - 86 END ) AS col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT DISTINCT - 59 + - 5 DIV + 65
----
-59

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - 59 + - 5 / + 65
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - NULLIF ( 89, + 32 * - 73 * + COUNT( * ) + - 40 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9635
SELECT - NULLIF ( 89, + 32 * - 73 * + COUNT ( * ) + - 40 ) AS col0
----
-89

query I rowsort
SELECT ALL - 26 + 27
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL + SUM( - 44 ) + - + 40
----
-84

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + SUM ( - 44 ) + - + 40
----
-84

query I rowsort
SELECT 44 + - 73 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT NULLIF ( + 13, - - COUNT( * ) * + - 94 )
----
13

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT NULLIF ( + 13, - - COUNT ( * ) * + - 94 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9640
SELECT DISTINCT - COUNT( * ) + + 19 DIV - 85 + + 15 + 3
----
17

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - COUNT ( * ) + + 19 / - 85 + + 15 + 3
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT COUNT( * ) + + 0 - - 71 * - - ( + - 96 ) * - 35
----
238561

skipif mysql # not compatible
query I rowsort label-9641
SELECT COUNT ( * ) + + 0 - - 71 * - - ( + - 96 ) * - 35
----
238561

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT + 92 + + + 42 + 35 + + + 71 - + + 82 DIV - 5 AS col0
----
256

skipif mysql # not compatible
query I rowsort label-9642
SELECT + 92 + + + 42 + 35 + + + 71 - + + 82 / - 5 AS col0
----
256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT MAX( DISTINCT - 51 ) * - COALESCE ( + 87, + CAST( - MIN( CAST( NULL AS SIGNED ) ) AS SIGNED ) ) col1
----
4437

skipif mysql # not compatible
query I rowsort label-9643
SELECT MAX ( DISTINCT - 51 ) * - COALESCE ( + 87, + CAST ( - MIN ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) col1
----
4437

query I rowsort
SELECT + 5 + - + 6 * - - 0 AS col0
----
5

query I rowsort
SELECT ALL + 89 - - 51
----
140

query I rowsort
SELECT DISTINCT 34 * 17 AS col2
----
578

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL 92 * - + 86 * 10 * + + COUNT( * )
----
-79120

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL 92 * - + 86 * 10 * + + COUNT ( * )
----
-79120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT DISTINCT 27 * - CAST( - COUNT( * ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT 27 * - CAST ( - COUNT ( * ) AS INTEGER )
----
27

query II rowsort
SELECT ALL 39 * - + 70 AS col2, - 97
----
-2730
-97

query I rowsort
SELECT ALL 56 * + 82 * + - 13
----
-59696

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT 91 * + - COUNT( * ) * - 81
----
7371

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT 91 * + - COUNT ( * ) * - 81
----
7371

query II rowsort
SELECT 76 * - - 86 col1, 58 col2
----
6536
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT 82 - CASE + - 3 WHEN + COUNT( * ) THEN NULL WHEN - + COALESCE ( + COUNT( ( 30 ) ), - 41 ) * 21 + - 30 THEN COUNT( * ) * 39 + 64 ELSE NULL END + CASE 32 WHEN + 34 THEN 23 * + 77 ELSE - MIN( - 69 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT 82 - CASE + - 3 WHEN + COUNT ( * ) THEN NULL WHEN - + COALESCE ( + COUNT ( ( 30 ) ), - 41 ) * 21 + - 30 THEN COUNT ( * ) * 39 + 64 ELSE NULL END + CASE 32 WHEN + 34 THEN 23 * + 77 ELSE - MIN ( - 69 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT DISTINCT - 81 * - CASE - 89 WHEN + - 43 / 52 THEN 96 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT - 81 * - CASE - 89 WHEN + - 43 / 52 THEN 96 * - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9655
SELECT DISTINCT - MAX( DISTINCT 94 ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-9655
SELECT DISTINCT - MAX ( DISTINCT 94 ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-94
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT ALL MAX( 88 ) DIV 9
----
9

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL MAX ( 88 ) / 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT 90 + + + COUNT( - - 60 ) - + CASE - - 61 WHEN - + 43 THEN 92 * - 65 ELSE NULL END + + 8 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT 90 + + + COUNT ( - - 60 ) - + CASE - - 61 WHEN - + 43 THEN 92 * - 65 ELSE NULL END + + 8 * - 42
----
NULL

query I rowsort
SELECT + 50 * - 99 + - + 22 + + + 30 col2
----
-4942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9659
SELECT ALL COUNT( * ) DIV CAST( - 79 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL COUNT ( * ) / CAST ( - 79 AS INTEGER ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT + 63 DIV - ( + 77 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT + 63 / - ( + 77 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 11 * - 43 AS col1
----
-473

query I rowsort
SELECT ALL 16 + + + 29 - 55 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9663
SELECT ALL + - 99 + + 90 * COUNT( * ) DIV + 82
----
-98

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + - 99 + + 90 * COUNT ( * ) / + 82
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - CASE 3 WHEN + 41 - + 3 * 59 * NULLIF ( COUNT( * ), - MAX( - CASE 85 WHEN + NULLIF ( 52, - 58 * - ( - 77 / - 47 ) ) THEN 61 * 91 END ) ) THEN 56 WHEN 73 THEN NULL WHEN + 69 + + 89 THEN - 72 ELSE NULL END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT - CASE 3 WHEN + 41 - + 3 * 59 * NULLIF ( COUNT ( * ), - MAX ( - CASE 85 WHEN + NULLIF ( 52, - 58 * - ( - 77 / - 47 ) ) THEN 61 * 91 END ) ) THEN 56 WHEN 73 THEN NULL WHEN + 69 + + 89 THEN - 72 ELSE NULL END / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT DISTINCT 69 + - COUNT( * ) * - 71 * - 31
----
-2132

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT 69 + - COUNT ( * ) * - 71 * - 31
----
-2132

query I rowsort
SELECT ALL 73 * - + 6 AS col1
----
-438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9667
SELECT DISTINCT + CAST( - - 30 AS SIGNED ) * - COUNT( * ) + - - COUNT( * ) DIV + 65 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + CAST ( - - 30 AS INTEGER ) * - COUNT ( * ) + - - COUNT ( * ) / + 65 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL + COALESCE ( + 3, 23, - COUNT( * ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + COALESCE ( + 3, 23, - COUNT ( * ) ) AS col1
----
3

query I rowsort
SELECT + 49 * + 73
----
3577

query II rowsort
SELECT - ( - 31 ) col0, ( - 13 ) col1
----
31
-13

query I rowsort
SELECT ALL - + 19 * - + 97 AS col1
----
1843

query I rowsort
SELECT - 15 - - 86 col1
----
71

query I rowsort
SELECT DISTINCT - 20 * - - NULLIF ( - 43, 82 )
----
860

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT 76 * COALESCE ( 89, ( - - 35 ) + - 77 * - COUNT( DISTINCT + 93 ) ) AS col0
----
6764

skipif mysql # not compatible
query I rowsort label-9674
SELECT 76 * COALESCE ( 89, ( - - 35 ) + - 77 * - COUNT ( DISTINCT + 93 ) ) AS col0
----
6764

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT MAX( - 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT MAX ( - 93 ) AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9676
SELECT ALL + SUM( + + 86 ) - 63 + 64 * - CAST( NULL AS SIGNED ) + - + 84 AS col0, MIN( ALL 92 ) + 2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9676
SELECT ALL + SUM ( + + 86 ) - 63 + 64 * - CAST ( NULL AS INTEGER ) + - + 84 AS col0, MIN ( ALL 92 ) + 2
----
NULL
94

query I rowsort
SELECT DISTINCT + 75 * + 71 AS col2
----
5325

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9678
SELECT - NULLIF ( + - 16, CAST( - - 6 AS DECIMAL ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT - NULLIF ( + - 16, CAST ( - - 6 AS REAL ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT - ( - COALESCE ( - 89, + 19 ) ) - + 34 + + SUM( - 49 ) * - SUM( ALL + 88 )
----
4189

skipif mysql # not compatible
query I rowsort label-9679
SELECT - ( - COALESCE ( - 89, + 19 ) ) - + 34 + + SUM ( - 49 ) * - SUM ( ALL + 88 )
----
4189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9680
SELECT - 21 + COALESCE ( - - COUNT( * ), + 10 ) + - + 15 * + 74 - COUNT( * ) DIV 65 DIV 4 * COUNT( * )
----
-1130

skipif mysql # not compatible
query I rowsort label-9680
SELECT - 21 + COALESCE ( - - COUNT ( * ), + 10 ) + - + 15 * + 74 - COUNT ( * ) / 65 / 4 * COUNT ( * )
----
-1130

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT - 39 * - SUM( + 46 ), + 43 AS col2
----
1794
43

skipif mysql # not compatible
query II rowsort label-9681
SELECT - 39 * - SUM ( + 46 ), + 43 AS col2
----
1794
43

query I rowsort
SELECT + 3 * - + 92 AS col0
----
-276

query I rowsort
SELECT - ( + 91 ) + - 21 + + 62 - 96 * - + 49 AS col1
----
4654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT CAST( NULL AS SIGNED ) / + 43 * COUNT( * ) + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT CAST ( NULL AS INTEGER ) / + 43 * COUNT ( * ) + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9685
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9686
SELECT COALESCE ( 97, + + 61 * - - CASE - - COUNT( * ) WHEN + + 60 THEN + - ( - 3 ) DIV - COALESCE ( 96, - 47 * 39 + + COUNT( - 41 ) ) + 86 * + 99 ELSE NULL END * 50 + + ( + 87 ) * + 50 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-9686
SELECT COALESCE ( 97, + + 61 * - - CASE - - COUNT ( * ) WHEN + + 60 THEN + - ( - 3 ) / - COALESCE ( 96, - 47 * 39 + + COUNT ( - 41 ) ) + 86 * + 99 ELSE NULL END * 50 + + ( + 87 ) * + 50 ) col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT DISTINCT 90 * + 97 + - CAST( + + 76 AS SIGNED )
----
8654

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT 90 * + 97 + - CAST ( + + 76 AS INTEGER )
----
8654

query I rowsort
SELECT CASE - - 63 WHEN 32 * 87 THEN + 41 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT + 50 * - + 46 / + + CASE + 74 WHEN - 65 THEN - 38 ELSE NULL END + CASE + 82 WHEN + 53 THEN 98 END * - COALESCE ( COUNT( * ), + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT + 50 * - + 46 / + + CASE + 74 WHEN - 65 THEN - 38 ELSE NULL END + CASE + 82 WHEN + 53 THEN 98 END * - COALESCE ( COUNT ( * ), + 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT - 89 * - - 46 * + 80 + - + 35 - - 9 + - 30 * + 72 + 40 * + COUNT( * ) col1
----
-329666

skipif mysql # not compatible
query I rowsort label-9690
SELECT - 89 * - - 46 * + 80 + - + 35 - - 9 + - 30 * + 72 + 40 * + COUNT ( * ) col1
----
-329666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9691
SELECT COALESCE ( + 8, 20 DIV + 6 * - 29 * 39 - - 10 + + 57 * MAX( ALL + 51 * - 46 ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9691
SELECT COALESCE ( + 8, 20 / + 6 * - 29 * 39 - - 10 + + 57 * MAX ( ALL + 51 * - 46 ) ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9692
SELECT DISTINCT - 43 * + 65 + + + 72 + - + 65, - 24 * + - 61 DIV - COUNT( * ) AS col1
----
-2788
-1464

skipif mysql # not compatible
query II rowsort label-9692
SELECT DISTINCT - 43 * + 65 + + + 72 + - + 65, - 24 * + - 61 / - COUNT ( * ) AS col1
----
-2788
-1464

query I rowsort
SELECT ALL + 7 * - 53 + 71 + - 54 + + 63 AS col0
----
-291

onlyif mysql # aggregate syntax: 
query II rowsort label-9694
SELECT + 1, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9694
SELECT + 1, + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT + 88 * 7 * - 37 + + 43 + 70 DIV ( + ( - - COUNT( * ) ) )
----
-22679

skipif mysql # not compatible
query I rowsort label-9695
SELECT + 88 * 7 * - 37 + + 43 + 70 / ( + ( - - COUNT ( * ) ) )
----
-22679

query I rowsort
SELECT ( + NULLIF ( + - 2, + 50 ) ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL + + MAX( ALL + 91 ) col2
----
91

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + + MAX ( ALL + 91 ) col2
----
91

query I rowsort
SELECT + + 54 * + 91 * 79 * + ( - 17 )
----
-6599502

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - + COUNT( * ) * + 5 + - - 20 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9699
SELECT - + COUNT ( * ) * + 5 + - - 20 AS col2
----
15

query I rowsort
SELECT DISTINCT + 28 * 71 - - - 19 col2
----
1969

query II rowsort
SELECT ALL + 63, 98 AS col0
----
63
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9702
SELECT + + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 34 - + 63 col1
----
-29

query I rowsort
SELECT + + 2 + - 62 * + + 15
----
-928

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT + 17 DIV 97 * 39
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT + 17 / 97 * 39
----
0

query I rowsort
SELECT ALL 87 * + 34
----
2958

query II rowsort
SELECT DISTINCT 92 * + 44 * 72 AS col0, 41 AS col1
----
291456
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9708
SELECT DISTINCT - + 54 / + 37 / - + CAST( NULL AS SIGNED ) / 32 * + 29 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT - + 54 / + 37 / - + CAST ( NULL AS INTEGER ) / 32 * + 29 col1
----
NULL

query I rowsort
SELECT - ( + - ( 61 ) ) AS col0
----
61

query I rowsort
SELECT - 51 + + 80 + + 8 - ( + 99 ) + - - 26 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - NULLIF ( 18, 77 ) * - - 60 * COUNT( * )
----
-1080

skipif mysql # not compatible
query I rowsort label-9711
SELECT - NULLIF ( 18, 77 ) * - - 60 * COUNT ( * )
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL MAX( - ( - ( 76 ) ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL MAX ( - ( - ( 76 ) ) ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT + COUNT( * ) * - 39 AS col0, + 77 AS col2
----
-39
77

skipif mysql # not compatible
query II rowsort label-9713
SELECT + COUNT ( * ) * - 39 AS col0, + 77 AS col2
----
-39
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT ALL - 99 + COUNT( * ) * - 98 * 99 col0, - COUNT( * ) AS col2
----
-9801
-1

skipif mysql # not compatible
query II rowsort label-9714
SELECT ALL - 99 + COUNT ( * ) * - 98 * 99 col0, - COUNT ( * ) AS col2
----
-9801
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT + COUNT( * ) * 79
----
79

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT + COUNT ( * ) * 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT - 80 * - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-9716
SELECT - 80 * - COUNT ( * ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - ( 69 ) * - NULLIF ( 24, - 62 * - 73 * - + 16 * + SUM( 17 ) ) AS col0
----
1656

skipif mysql # not compatible
query I rowsort label-9717
SELECT - ( 69 ) * - NULLIF ( 24, - 62 * - 73 * - + 16 * + SUM ( 17 ) ) AS col0
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL + 27 * + MIN( DISTINCT - - 7 )
----
189

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL + 27 * + MIN ( DISTINCT - - 7 )
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9719
SELECT ALL 74 + COUNT( * ) DIV + 8 * 70 * + ( + 29 ) + - 65 - COUNT( * ) + + + COUNT( * ) + - MAX( ( 70 ) + + 74 )
----
-135

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL 74 + COUNT ( * ) / + 8 * 70 * + ( + 29 ) + - 65 - COUNT ( * ) + + + COUNT ( * ) + - MAX ( ( 70 ) + + 74 )
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9720
SELECT - 44 * + + NULLIF ( CAST( COALESCE ( COUNT( * ), + 48 ) AS SIGNED ), - 35 ) * - 56 * + - 61
----
-150304

skipif mysql # not compatible
query I rowsort label-9720
SELECT - 44 * + + NULLIF ( CAST ( COALESCE ( COUNT ( * ), + 48 ) AS INTEGER ), - 35 ) * - 56 * + - 61
----
-150304

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL + 36 + - + COUNT( * ) * + + MIN( - 63 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL + 36 + - + COUNT ( * ) * + + MIN ( - 63 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL + COALESCE ( + + COUNT( * ), + 4 ) + - 88 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + COALESCE ( + + COUNT ( * ), + 4 ) + - 88 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9723
SELECT ALL + COUNT( * ) * 27, COUNT( * ) * ( 62 ) AS col0
----
27
62

skipif mysql # not compatible
query II rowsort label-9723
SELECT ALL + COUNT ( * ) * 27, COUNT ( * ) * ( 62 ) AS col0
----
27
62

query I rowsort
SELECT ALL + ( + COALESCE ( - 72, + 69, + 45 ) ) col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9725
SELECT - 8 DIV - MAX( DISTINCT 83 )
----
0

skipif mysql # not compatible
query I rowsort label-9725
SELECT - 8 / - MAX ( DISTINCT 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - COUNT( * ) * 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9726
SELECT - COUNT ( * ) * 41 AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9727
SELECT DISTINCT + CAST( + + 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT + CAST ( + + 32 AS INTEGER )
----
32

query I rowsort
SELECT - 2 - + 11
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT DISTINCT - + 15 DIV + + NULLIF ( - + 35, - NULLIF ( AVG ( DISTINCT 39 ), 80 ) ) * + + 38 + ( 20 ) col0
----
20

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - + 15 / + + NULLIF ( - + 35, - NULLIF ( AVG ( DISTINCT 39 ), 80 ) ) * + + 38 + ( 20 ) col0
----
20

query I rowsort
SELECT DISTINCT + 5 * - 92
----
-460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9731
SELECT ALL + - CASE - 13 WHEN 12 THEN COALESCE ( 76, 74 ) + SUM( + - 48 ) ELSE + CAST( - 42 AS SIGNED ) * COUNT( * ) - + 69 * COUNT( * ) END
----
111

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL + - CASE - 13 WHEN 12 THEN COALESCE ( 76, 74 ) + SUM ( + - 48 ) ELSE + CAST ( - 42 AS INTEGER ) * COUNT ( * ) - + 69 * COUNT ( * ) END
----
111

query I rowsort
SELECT - 69 * - 63 + 94 AS col1
----
4441

query I rowsort
SELECT + - 92 + - 2
----
-94

query I rowsort
SELECT DISTINCT + 86 * 88 * + 97 AS col0
----
734096

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - SUM( + 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9735
SELECT - SUM ( + 50 ) AS col0
----
-50

query I rowsort
SELECT ALL + ( + ( + 95 ) )
----
95

query I rowsort
SELECT - - ( - + 38 ) * 19 AS col2
----
-722

query II rowsort
SELECT DISTINCT + + 10 * + + 57 AS col0, - 73
----
570
-73

query I rowsort
SELECT 90 * 84 + + 57
----
7617

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT ALL 16 DIV 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL 16 / 33 AS col1
----
0

query I rowsort
SELECT ALL 34 * 1 AS col0
----
34

query I rowsort
SELECT ALL 80 * + 93 AS col0
----
7440

query I rowsort
SELECT DISTINCT 39 + CASE 83 WHEN - + 65 THEN + - 42 WHEN - 69 THEN 65 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9744
SELECT ALL CASE 74 WHEN + 8 THEN 99 + 86 * + + CAST( NULL AS SIGNED ) ELSE NULL END + 34 + + 28 + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL CASE 74 WHEN + 8 THEN 99 + 86 * + + CAST ( NULL AS INTEGER ) ELSE NULL END + 34 + + 28 + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 7 ) * - 67 col2
----
469

query I rowsort
SELECT ALL 74 + + + 68 AS col0
----
142

query I rowsort
SELECT DISTINCT 33 * 16
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9748
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) + + - COALESCE ( - AVG ( ALL + + 78 ), SUM( DISTINCT 66 ), + - 59 + - + MIN( DISTINCT + 73 ) + - 83 ) * + 82 * - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + - COALESCE ( - AVG ( ALL + + 78 ), SUM ( DISTINCT 66 ), + - 59 + - + MIN ( DISTINCT + 73 ) + - 83 ) * + 82 * - 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL - CASE + COUNT( ALL + 95 ) WHEN + + 96 / + NULLIF ( - 13, + 66 ) + - 19 THEN NULL ELSE 89 * 74 * 17 + 90 END + - 1
----
-112053

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - CASE + COUNT ( ALL + 95 ) WHEN + + 96 / + NULLIF ( - 13, + 66 ) + - 19 THEN NULL ELSE 89 * 74 * 17 + 90 END + - 1
----
-112053

query I rowsort
SELECT 17 - + 78 AS col0
----
-61

query II rowsort
SELECT ALL 80 AS col0, 70 col0
----
80
70

query I rowsort
SELECT 1 + 78
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT ALL + CAST( NULL AS SIGNED ) + + + 12 / - + 51 / - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 12 / - + 51 / - 3 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 96 * 15 * + 10 AS col2
----
14400

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - COUNT( - 9 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - COUNT ( - 9 ) col1
----
-1

query I rowsort
SELECT ALL - 78 * - + 18 AS col0
----
1404

query I rowsort
SELECT 34 + 74
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT ALL 40 - - - 36 + - CAST( + 11 AS SIGNED ) * - + 72 * 38
----
30100

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL 40 - - - 36 + - CAST ( + 11 AS INTEGER ) * - + 72 * 38
----
30100

query I rowsort
SELECT 64 * + 19 + - 65 col2
----
1151

query I rowsort
SELECT ALL + + 17 - + 51 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL - NULLIF ( + COUNT( * ), 92 - + COALESCE ( + 34, - 4 ) + + + ( + - 51 ) ) * + 56
----
-56

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL - NULLIF ( + COUNT ( * ), 92 - + COALESCE ( + 34, - 4 ) + + + ( + - 51 ) ) * + 56
----
-56

query I rowsort
SELECT NULLIF ( - + 11, 58 ) * + 45 * - + 91 AS col0
----
45045

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL + MAX( ALL + + 33 ) - + - 73
----
106

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL + MAX ( ALL + + 33 ) - + - 73
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + 33 + - COUNT( * ) * + + 31
----
2

skipif mysql # not compatible
query I rowsort label-9764
SELECT + 33 + - COUNT ( * ) * + + 31
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9765
SELECT ALL - - 12 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - - 12 / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT CASE - SUM( DISTINCT + ( + 53 ) ) WHEN + - 3 THEN + + 53 ELSE NULL END * 43 + + + ( - ( + - 12 ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT CASE - SUM ( DISTINCT + ( + 53 ) ) WHEN + - 3 THEN + + 53 ELSE NULL END * 43 + + + ( - ( + - 12 ) ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + 0 * CASE 56 WHEN 34 THEN + 37 WHEN + - COUNT( * ) * 1 * 80 + - - 2 THEN NULL ELSE 95 + 2 END + 21
----
21

skipif mysql # not compatible
query I rowsort label-9767
SELECT + 0 * CASE 56 WHEN 34 THEN + 37 WHEN + - COUNT ( * ) * 1 * 80 + - - 2 THEN NULL ELSE 95 + 2 END + 21
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT ALL - + 45 DIV - ( + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - + 45 / - ( + COUNT ( * ) )
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9769
SELECT - 9 DIV + 39 * - - 96 AS col0, CAST( + 36 AS SIGNED ) AS col0
----
0
36

skipif mysql # not compatible
query II rowsort label-9769
SELECT - 9 / + 39 * - - 96 AS col0, CAST ( + 36 AS INTEGER ) AS col0
----
0
36

query I rowsort
SELECT ALL 52 * + 14 * 62 + 55 AS col1
----
45191

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL - - MAX( 43 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL - - MAX ( 43 ) col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT + COUNT( * ) + + 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9772
SELECT + COUNT ( * ) + + 77 AS col2
----
78

query I rowsort
SELECT - NULLIF ( - + 72, + 77 / 97 * - 18 * 28 )
----
72

query I rowsort
SELECT ALL + - 20 + - 42 AS col0
----
-62

query I rowsort
SELECT ALL - - 57 * + 72 AS col1
----
4104

query I rowsort
SELECT 11 * + 36 col0
----
396

query I rowsort
SELECT 82 + 3
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL SUM( - 10 ) + + + 33
----
23

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL SUM ( - 10 ) + + + 33
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT 92 + 51 + + COUNT( * )
----
144

skipif mysql # not compatible
query I rowsort label-9779
SELECT 92 + 51 + + COUNT ( * )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT ALL + 99 + COUNT( * ) + - 2 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL + 99 + COUNT ( * ) + - 2 AS col1
----
98

query I rowsort
SELECT ALL - 36 + + - 8
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9782
SELECT ALL 80 + + - MIN( + - 12 ) * - 94 DIV - 90 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL 80 + + - MIN ( + - 12 ) * - 94 / - 90 AS col2
----
92

query I rowsort
SELECT COALESCE ( + 56, - ( - - 25 ) ) + + + 75 AS col2
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT 91 DIV - MIN( 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-9784
SELECT 91 / - MIN ( 50 )
----
-1

query I rowsort
SELECT 27 + - 54
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9786
SELECT 46 AS col0, - 94 + - MAX( ALL + 95 ) AS col0
----
46
-189

skipif mysql # not compatible
query II rowsort label-9786
SELECT 46 AS col0, - 94 + - MAX ( ALL + 95 ) AS col0
----
46
-189

query I rowsort
SELECT ALL ( + 61 ) - - + 96
----
157

query I rowsort
SELECT ALL 79 * + - 64
----
-5056

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9789
SELECT COUNT( * ) + - 25, - CASE CASE - AVG ( DISTINCT - 36 ) WHEN ( - - 7 ) THEN - - 87 + 39 WHEN + 40 + + COUNT( * ) * 64 THEN + 18 * 70 END WHEN - 83 * 94 + - 20 THEN - CASE + MIN( 9 ) WHEN COUNT( * ) THEN + 44 WHEN 32 * + MIN( 30 ) + 2 THEN ( - 58 ) / - ( + 40 ) WHEN - COUNT( * ) * 78 THEN + 65 / 18 + + MAX( ALL - CAST( NULL AS DECIMAL ) + - ( + 73 ) ) ELSE NULL END ELSE NULL END * COUNT( * ) + - 53 * - 41 AS col1
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-9789
SELECT COUNT ( * ) + - 25, - CASE CASE - AVG ( DISTINCT - 36 ) WHEN ( - - 7 ) THEN - - 87 + 39 WHEN + 40 + + COUNT ( * ) * 64 THEN + 18 * 70 END WHEN - 83 * 94 + - 20 THEN - CASE + MIN ( 9 ) WHEN COUNT ( * ) THEN + 44 WHEN 32 * + MIN ( 30 ) + 2 THEN ( - 58 ) / - ( + 40 ) WHEN - COUNT ( * ) * 78 THEN + 65 / 18 + + MAX ( ALL - CAST ( NULL AS REAL ) + - ( + 73 ) ) ELSE NULL END ELSE NULL END * COUNT ( * ) + - 53 * - 41 AS col1
----
-24
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9790
SELECT ALL CAST( ( - - ( 24 ) ) AS SIGNED ) * + NULLIF ( + COUNT( * ), COUNT( ALL + + 9 ) * - - 2 ) * - 55 + + COUNT( * ) + 40 * 47 + + 57 AS col1
----
618

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL CAST ( ( - - ( 24 ) ) AS INTEGER ) * + NULLIF ( + COUNT ( * ), COUNT ( ALL + + 9 ) * - - 2 ) * - 55 + + COUNT ( * ) + 40 * 47 + + 57 AS col1
----
618

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL SUM( + 83 ) * + COUNT( + - 40 )
----
83

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL SUM ( + 83 ) * + COUNT ( + - 40 )
----
83

query I rowsort
SELECT ALL 66 - + 23
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT COUNT( * ) * - 36 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9793
SELECT COUNT ( * ) * - 36 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT SUM( + + 12 ) * + MIN( DISTINCT - 80 ) AS col0
----
-960

skipif mysql # not compatible
query I rowsort label-9794
SELECT SUM ( + + 12 ) * + MIN ( DISTINCT - 80 ) AS col0
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT ALL - NULLIF ( + NULLIF ( 92, COUNT( * ) ), COALESCE ( + COUNT( ALL + 91 ), - 95, + - 41 ) - + COUNT( * ) + 31 * 96 )
----
-92

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL - NULLIF ( + NULLIF ( 92, COUNT ( * ) ), COALESCE ( + COUNT ( ALL + 91 ), - 95, + - 41 ) - + COUNT ( * ) + 31 * 96 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9796
SELECT DISTINCT - - CASE 65 WHEN + AVG ( ALL - CAST( NULL AS SIGNED ) ) * - 75 - + 39 + - MIN( ALL + ( + 6 ) ) * + - 4 + 40 + 41 + - 59 THEN NULL WHEN - COUNT( * ) - + ( 77 ) * + COUNT( * ) THEN - COALESCE ( + 96, 72, + 35 + + 41 * 63 ) * - 8 + + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - - CASE 65 WHEN + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * - 75 - + 39 + - MIN ( ALL + ( + 6 ) ) * + - 4 + 40 + 41 + - 59 THEN NULL WHEN - COUNT ( * ) - + ( 77 ) * + COUNT ( * ) THEN - COALESCE ( + 96, 72, + 35 + + 41 * 63 ) * - 8 + + 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT CASE - 52 WHEN + 42 * + + COUNT( * ) + 85 THEN - - 25 ELSE + + 54 END
----
54

skipif mysql # not compatible
query I rowsort label-9797
SELECT CASE - 52 WHEN + 42 * + + COUNT ( * ) + 85 THEN - - 25 ELSE + + 54 END
----
54

query II rowsort
SELECT + 54 AS col2, - 47
----
54
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT 58 * + COUNT( * ) + - + 51 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9799
SELECT 58 * + COUNT ( * ) + - + 51 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT - 57 - - 54, CASE + 52 WHEN + AVG ( + 30 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 44 END AS col2
----
-3
44

skipif mysql # not compatible
query II rowsort label-9800
SELECT - 57 - - 54, CASE + 52 WHEN + AVG ( + 30 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 44 END AS col2
----
-3
44

query II rowsort
SELECT ALL - 92 col1, + 1 + - + 37
----
-92
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT ALL - - 10 * COALESCE ( 93, + COUNT( * ), - + 29 DIV 4 ) AS col1
----
930

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - - 10 * COALESCE ( 93, + COUNT ( * ), - + 29 / 4 ) AS col1
----
930

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9803
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1, + 17 * + ( + - 9 ) AS col1, + + 19 + + 93 AS col0
----
NULL
-153
112

skipif mysql # not compatible
query III rowsort label-9803
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1, + 17 * + ( + - 9 ) AS col1, + + 19 + + 93 AS col0
----
NULL
-153
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT DISTINCT - 3 * + 18 + CAST( 46 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT - 3 * + 18 + CAST ( 46 AS INTEGER ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT + - COUNT( * ) AS col2, - ( - 90 )
----
-1
90

skipif mysql # not compatible
query II rowsort label-9805
SELECT + - COUNT ( * ) AS col2, - ( - 90 )
----
-1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL + 14 * - + COUNT( DISTINCT + 90 ) + MAX( ALL - 88 )
----
-102

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + 14 * - + COUNT ( DISTINCT + 90 ) + MAX ( ALL - 88 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL + NULLIF ( + + COUNT( * ), - 61 * - + 50 / 26 * - + 54 + 9 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + NULLIF ( + + COUNT ( * ), - 61 * - + 50 / 26 * - + 54 + 9 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT - COALESCE ( 17, - + CAST( + 82 AS SIGNED ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9808
SELECT - COALESCE ( 17, - + CAST ( + 82 AS INTEGER ) ) AS col1
----
-17

query I rowsort
SELECT ALL - 59 * - - 42 AS col0
----
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + - 54 * + + 65 + + + COUNT( * )
----
-3509

skipif mysql # not compatible
query I rowsort label-9810
SELECT + - 54 * + + 65 + + + COUNT ( * )
----
-3509

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9811
SELECT + + 14 * + 33 + CAST( NULL AS DECIMAL ) * NULLIF ( + 29, - + 35 - - + SUM( - 42 ) ) * + COUNT( * ) + + 9 + 51 + 36 + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT + + 14 * + 33 + CAST ( NULL AS REAL ) * NULLIF ( + 29, - + 35 - - + SUM ( - 42 ) ) * + COUNT ( * ) + + 9 + 51 + 36 + 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT - + 90 - - 24 + 49 * 83 DIV + + 19 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-9812
SELECT - + 90 - - 24 + 49 * 83 / + + 19 AS col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT DISTINCT + NULLIF ( - AVG ( + + 62 ), 32 ) * + MAX( ALL - 4 ) * + 87 + + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + ( - ( COALESCE ( - MAX( 71 ), + 15 ) ) ) / 51 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT + NULLIF ( - AVG ( + + 62 ), 32 ) * + MAX ( ALL - 4 ) * + 87 + + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + ( - ( COALESCE ( - MAX ( 71 ), + 15 ) ) ) / 51 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT ALL 18 * + 31 * - - 60 DIV 60 * - 67 + + + 22 + + - 7 * + - 40 - - NULLIF ( + - 75, + ( + 76 ) * - NULLIF ( - 5, 39 ) ) * - 63 AS col1
----
-32359

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL 18 * + 31 * - - 60 / 60 * - 67 + + + 22 + + - 7 * + - 40 - - NULLIF ( + - 75, + ( + 76 ) * - NULLIF ( - 5, 39 ) ) * - 63 AS col1
----
-32359

onlyif mysql # aggregate syntax: 
query II rowsort label-9815
SELECT + 45 AS col0, COUNT( + 72 ) * - 9 + - 3 AS col2
----
45
-12

skipif mysql # not compatible
query II rowsort label-9815
SELECT + 45 AS col0, COUNT ( + 72 ) * - 9 + - 3 AS col2
----
45
-12

query I rowsort
SELECT DISTINCT + + ( 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT - 22 + COUNT( * ) + - COALESCE ( - COUNT( * ), + - 65, ( - 4 ) + - 19 ) + + NULLIF ( + 83, - ( 44 ) - COUNT( - 91 ) )
----
63

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT - 22 + COUNT ( * ) + - COALESCE ( - COUNT ( * ), + - 65, ( - 4 ) + - 19 ) + + NULLIF ( + 83, - ( 44 ) - COUNT ( - 91 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT DISTINCT + ( 91 ) + + COUNT( * ) * 35
----
126

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT + ( 91 ) + + COUNT ( * ) * 35
----
126

query I rowsort
SELECT - 21 * - 96 AS col1
----
2016

query II rowsort
SELECT DISTINCT + 68 - + 28 col0, + 53 AS col1
----
40
53

query I rowsort
SELECT ALL - 5 - - + 19 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - 3 - MAX( - 12 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9822
SELECT - 3 - MAX ( - 12 ) AS col0
----
9

query II rowsort
SELECT - 61 * - + 70 AS col2, 17
----
4270
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT - 79 + - - COALESCE ( + + COUNT( * ), + - 23 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9824
SELECT - 79 + - - COALESCE ( + + COUNT ( * ), + - 23 ) AS col1
----
-78

query I rowsort
SELECT ALL 67 - - 72 + + NULLIF ( + 59, + - 94 ) * - - 56
----
3443

query II rowsort
SELECT + 31 * + 52, + 3 * + 54 * + 0 * 50 col2
----
1612
0

query I rowsort
SELECT ALL ( + - NULLIF ( + 25, - 65 ) )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9828
SELECT + 49 - COUNT( * ) AS col2, - 65 AS col1
----
48
-65

skipif mysql # not compatible
query II rowsort label-9828
SELECT + 49 - COUNT ( * ) AS col2, - 65 AS col1
----
48
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT + + ( + COUNT( * ) ) - 10 - + - MAX( ALL + 96 ) * - 70 - - COALESCE ( - + COALESCE ( - 59, - - ( 69 ) * + 59 - 93 ), - 39 ) * 82
----
-1891

skipif mysql # not compatible
query I rowsort label-9829
SELECT + + ( + COUNT ( * ) ) - 10 - + - MAX ( ALL + 96 ) * - 70 - - COALESCE ( - + COALESCE ( - 59, - - ( 69 ) * + 59 - 93 ), - 39 ) * 82
----
-1891

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9830
SELECT - + 26 + + + CAST( NULL AS DECIMAL ) * - 92 + 13 + AVG ( DISTINCT + 58 ) - ( 76 ) + + 84 / + - 42 + 28 * 30 * - AVG ( ALL + 26 ) + COALESCE ( - 21, 55 ) / 96 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT - + 26 + + + CAST ( NULL AS REAL ) * - 92 + 13 + AVG ( DISTINCT + 58 ) - ( 76 ) + + 84 / + - 42 + 28 * 30 * - AVG ( ALL + 26 ) + COALESCE ( - 21, 55 ) / 96 * + 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9831
SELECT + 88 - 41 + 4 + - 61 DIV - + ( + + NULLIF ( - 2, - 24 ) )
----
21

skipif mysql # not compatible
query I rowsort label-9831
SELECT + 88 - 41 + 4 + - 61 / - + ( + + NULLIF ( - 2, - 24 ) )
----
21

query I rowsort
SELECT ALL 58 * COALESCE ( 5, + 88 )
----
290

query II rowsort
SELECT DISTINCT + 99 * - 59 AS col1, - 39 + 85 AS col0
----
-5841
46

query I rowsort
SELECT ALL - NULLIF ( - 64, + 78 ) * + - 75 * 2 + - + 4 AS col2
----
-9604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9835
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN + 57 THEN + 73 ELSE + MIN( + 46 ) END DIV + 6 * + + COUNT( * ) + - 69 + + + CASE + 60 WHEN 20 * - CASE - 81 WHEN - 26 THEN NULL ELSE 45 END THEN NULL WHEN 58 THEN NULL ELSE 67 END
----
5

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN + 57 THEN + 73 ELSE + MIN ( + 46 ) END / + 6 * + + COUNT ( * ) + - 69 + + + CASE + 60 WHEN 20 * - CASE - 81 WHEN - 26 THEN NULL ELSE 45 END THEN NULL WHEN 58 THEN NULL ELSE 67 END
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + 55 + CASE WHEN NULL IN ( 3, - NULLIF ( + + 22, - + 64 / AVG ( + 59 ) ) / + COUNT( * ) ) THEN NULL ELSE + 84 * 11 * - 61 END * 80
----
-4509065

skipif mysql # not compatible
query I rowsort label-9836
SELECT + 55 + CASE WHEN NULL IN ( 3, - NULLIF ( + + 22, - + 64 / AVG ( + 59 ) ) / + COUNT ( * ) ) THEN NULL ELSE + 84 * 11 * - 61 END * 80
----
-4509065

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT ALL + 55 * - + 85 * + + NULLIF ( NULLIF ( + CAST( - - 73 AS SIGNED ), + 62 ), CASE 57 WHEN - + 23 + - + 75 * + 88 + 12 THEN NULL WHEN 9 THEN 14 + + 39 END )
----
-341275

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL + 55 * - + 85 * + + NULLIF ( NULLIF ( + CAST ( - - 73 AS INTEGER ), + 62 ), CASE 57 WHEN - + 23 + - + 75 * + 88 + 12 THEN NULL WHEN 9 THEN 14 + + 39 END )
----
-341275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9838
SELECT ALL COUNT( * ) DIV - + 25 * + 91 * - 54 + - - 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL COUNT ( * ) / - + 25 * + 91 * - 54 + - - 67 AS col0
----
67

query I rowsort
SELECT - + 0 * + 94 * - - 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT + MIN( DISTINCT + + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9840
SELECT + MIN ( DISTINCT + + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + 13 * + SUM( - - 53 ) AS col0
----
689

skipif mysql # not compatible
query I rowsort label-9841
SELECT + 13 * + SUM ( - - 53 ) AS col0
----
689

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + 18 + MIN( + 1 ) * - - 88 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 18 + MIN ( + 1 ) * - - 88 AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9843
SELECT ALL + COUNT( * ) * 28 * + CAST( + 20 AS SIGNED ) - 52 + ( COALESCE ( + - 88, 30, - 75 ) )
----
420

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + COUNT ( * ) * 28 * + CAST ( + 20 AS INTEGER ) - 52 + ( COALESCE ( + - 88, 30, - 75 ) )
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9844
SELECT DISTINCT + CAST( + + 4 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT + CAST ( + + 4 AS INTEGER ) AS col0
----
4

query I rowsort
SELECT DISTINCT - 52 * 67 + + + 11 AS col2
----
-3473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT ALL + 48 * + + CAST( - 28 AS SIGNED ) - 64 - + + CASE - 83 WHEN - 43 THEN + + CAST( NULL AS SIGNED ) END + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + 48 * + + CAST ( - 28 AS INTEGER ) - 64 - + + CASE - 83 WHEN - 43 THEN + + CAST ( NULL AS INTEGER ) END + - 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT + 28 * - CASE - - MIN( DISTINCT - 38 ) WHEN - COUNT( * ) * - 38 + - ( - 74 ) THEN + 31 - + 85 + + 13 / - + 5 * + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT + 28 * - CASE - - MIN ( DISTINCT - 38 ) WHEN - COUNT ( * ) * - 38 + - ( - 74 ) THEN + 31 - + 85 + + 13 / - + 5 * + 89 END
----
NULL

query I rowsort
SELECT ALL 51 * + 38 AS col2
----
1938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9849
SELECT ALL 64 * + COUNT( * ) - + 20 + - CAST( - + 6 AS SIGNED ) + - COUNT( * ) * - - MIN( DISTINCT - - 15 ) AS col0, 42 AS col0
----
35
42

skipif mysql # not compatible
query II rowsort label-9849
SELECT ALL 64 * + COUNT ( * ) - + 20 + - CAST ( - + 6 AS INTEGER ) + - COUNT ( * ) * - - MIN ( DISTINCT - - 15 ) AS col0, 42 AS col0
----
35
42

query I rowsort
SELECT 18 * - 15 - - ( - - 9 ) col2
----
-261

query I rowsort
SELECT + ( - 16 ) col2
----
-16

query I rowsort
SELECT - 39 + + 16
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9853
SELECT DISTINCT - 69 * COUNT( * ) - CASE - + 62 WHEN - - 98 THEN NULL WHEN - NULLIF ( + + CASE + 31 WHEN + 30 THEN 95 * - + 17 + - COUNT( * ) + + CASE COUNT( * ) WHEN - COUNT( * ) THEN 32 * + 23 ELSE - AVG ( ALL 33 ) + - CAST( NULL AS SIGNED ) END * - 22 ELSE 65 + - COUNT( * ) END, - 60 + + COUNT( - 46 ) * - ( 42 ) ) THEN - 68 ELSE - 5 END AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - 69 * COUNT ( * ) - CASE - + 62 WHEN - - 98 THEN NULL WHEN - NULLIF ( + + CASE + 31 WHEN + 30 THEN 95 * - + 17 + - COUNT ( * ) + + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN 32 * + 23 ELSE - AVG ( ALL 33 ) + - CAST ( NULL AS INTEGER ) END * - 22 ELSE 65 + - COUNT ( * ) END, - 60 + + COUNT ( - 46 ) * - ( 42 ) ) THEN - 68 ELSE - 5 END AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL COALESCE ( - - 81, + - COUNT( * ), + 72 ) * 82 * MIN( ALL - 89 )
----
-591138

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL COALESCE ( - - 81, + - COUNT ( * ), + 72 ) * 82 * MIN ( ALL - 89 )
----
-591138

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT CASE - + 64 WHEN + ( + + 25 ) + - AVG ( - - 69 ) - + 84 + - 88 + + + 10 + 44 * - 97 * - + 38 THEN NULL WHEN - ( + COUNT( * ) ) * + 61 THEN COUNT( * ) * + 27 + - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT CASE - + 64 WHEN + ( + + 25 ) + - AVG ( - - 69 ) - + 84 + - 88 + + + 10 + 44 * - 97 * - + 38 THEN NULL WHEN - ( + COUNT ( * ) ) * + 61 THEN COUNT ( * ) * + 27 + - 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - 32 * 20 + + + COUNT( * ) AS col2
----
-639

skipif mysql # not compatible
query I rowsort label-9856
SELECT - 32 * 20 + + + COUNT ( * ) AS col2
----
-639

query I rowsort
SELECT ALL COALESCE ( - 63, - + ( - ( ( + 80 ) ) ) ) col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9858
SELECT DISTINCT - 92 * + + 86 - - - 95 AS col1, 75 * + MAX( + + 13 )
----
-8007
975

skipif mysql # not compatible
query II rowsort label-9858
SELECT DISTINCT - 92 * + + 86 - - - 95 AS col1, 75 * + MAX ( + + 13 )
----
-8007
975

query I rowsort
SELECT - 79 + - 75 AS col0
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9860
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 99 + 92
----
NULL
191

skipif mysql # not compatible
query II rowsort label-9860
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 99 + 92
----
NULL
191

query I rowsort
SELECT ALL + 19 * - 91 AS col0
----
-1729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9862
SELECT DISTINCT COALESCE ( 77, - 58 * - + 61 DIV 35 DIV 60 + - CAST( + MAX( ALL - 40 ) AS SIGNED ) * - 23 - + MAX( - COALESCE ( NULLIF ( 89, 84 + 71 * 55 ), + 72 * 70 ) ) - - 11 + 67 * ( 21 ) )
----
77

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT COALESCE ( 77, - 58 * - + 61 / 35 / 60 + - CAST ( + MAX ( ALL - 40 ) AS INTEGER ) * - 23 - + MAX ( - COALESCE ( NULLIF ( 89, 84 + 71 * 55 ), + 72 * 70 ) ) - - 11 + 67 * ( 21 ) )
----
77

query I rowsort
SELECT - ( + + 69 ) + - - 28 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT - COUNT( - 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-9864
SELECT - COUNT ( - 3 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9865
SELECT - 16 * - COALESCE ( ( 91 ), - + CAST( 91 AS SIGNED ) + + + 58 + + MIN( DISTINCT + 28 ) + - - 96 DIV 12 DIV 99 )
----
1456

skipif mysql # not compatible
query I rowsort label-9865
SELECT - 16 * - COALESCE ( ( 91 ), - + CAST ( 91 AS INTEGER ) + + + 58 + + MIN ( DISTINCT + 28 ) + - - 96 / 12 / 99 )
----
1456

query I rowsort
SELECT + 86 + + + 82
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-9867
SELECT ALL - - ( + COUNT( * ) ) + COUNT( + + 32 ) AS col0, 65 AS col2
----
2
65

skipif mysql # not compatible
query II rowsort label-9867
SELECT ALL - - ( + COUNT ( * ) ) + COUNT ( + + 32 ) AS col0, 65 AS col2
----
2
65

query II rowsort
SELECT DISTINCT + + 68 + NULLIF ( - + ( 31 ), + + 51 ) + 11, - 25 AS col2
----
48
-25

query I rowsort
SELECT DISTINCT + 26 * - 94 + + 9
----
-2435

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT - 67 + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - 67 + COUNT ( * )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT ALL + 3 + CAST( + 80 AS SIGNED ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL + 3 + CAST ( + 80 AS INTEGER ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT MAX( ALL - + 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT MAX ( ALL - + 32 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT + MIN( 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9873
SELECT + MIN ( 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT + 12 AS col1, CASE 34 WHEN + + COUNT( * ) THEN NULL ELSE + - 42 END * - 24
----
12
1008

skipif mysql # not compatible
query II rowsort label-9874
SELECT + 12 AS col1, CASE 34 WHEN + + COUNT ( * ) THEN NULL ELSE + - 42 END * - 24
----
12
1008

query I rowsort
SELECT ( 45 ) - + ( + 7 ) + + 29
----
67

query I rowsort
SELECT ( - 71 ) * - 38 * + - 66 - + 81 AS col1
----
-178149

query I rowsort
SELECT COALESCE ( - ( 16 ), - - 24 )
----
-16

query I rowsort
SELECT 59 * - 49 * - + 14 AS col2
----
40474

query I rowsort
SELECT ALL 10 * + 18 AS col0
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9880
SELECT + 4 * + 53 * - + 80 * 13 * + CAST( - 69 AS SIGNED ) * - - SUM( + - 23 ) + + CASE - CAST( - + 10 AS SIGNED ) WHEN - 3 THEN + + 98 END - + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT + 4 * + 53 * - + 80 * 13 * + CAST ( - 69 AS INTEGER ) * - - SUM ( + - 23 ) + + CASE - CAST ( - + 10 AS INTEGER ) WHEN - 3 THEN + + 98 END - + - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT DISTINCT COUNT( * ) - 55 - 10 + + + 81 + - 53 * + + 40 * + 22 + + 32 * 27 * + - NULLIF ( + + 35, - 78 )
----
-76863

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT COUNT ( * ) - 55 - 10 + + + 81 + - 53 * + + 40 * + 22 + + 32 * 27 * + - NULLIF ( + + 35, - 78 )
----
-76863

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT - 28 * + + 60 - 24 * + COUNT( * )
----
-1704

skipif mysql # not compatible
query I rowsort label-9882
SELECT - 28 * + + 60 - 24 * + COUNT ( * )
----
-1704

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT COUNT( * ) * + + ( - - 7 ) * + 58 * - + 50
----
-20300

skipif mysql # not compatible
query I rowsort label-9883
SELECT COUNT ( * ) * + + ( - - 7 ) * + 58 * - + 50
----
-20300

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT COUNT( * ) - - NULLIF ( + COUNT( * ), 63 * - COALESCE ( - 65, - - ( - + 83 ) + 0 - ( - 89 ) * 48 ) * + + 1 )
----
2

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT COUNT ( * ) - - NULLIF ( + COUNT ( * ), 63 * - COALESCE ( - 65, - - ( - + 83 ) + 0 - ( - 89 ) * 48 ) * + + 1 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT DISTINCT ( 70 ) * 52 * COUNT( * ) * + 84
----
305760

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT ( 70 ) * 52 * COUNT ( * ) * + 84
----
305760

query I rowsort
SELECT ( + 31 ) + 7
----
38

query I rowsort
SELECT ALL 50 * + + 96
----
4800

query II rowsort
SELECT ( 30 ) * + 72 + 67 AS col1, + 43 AS col1
----
2227
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT + 33 * + MAX( - + 6 ) AS col0
----
-198

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + 33 * + MAX ( - + 6 ) AS col0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT 55 DIV ( + 10 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9890
SELECT 55 / ( + 10 ) AS col0
----
5

query I rowsort
SELECT ( + 85 ) + 78 AS col2
----
163

query I rowsort
SELECT DISTINCT 49 + + 39 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT COUNT( * ) - - - COUNT( * ) + - 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9893
SELECT COUNT ( * ) - - - COUNT ( * ) + - 83 AS col1
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9894
SELECT CAST( NULL AS DECIMAL ) / + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT CAST ( NULL AS REAL ) / + - 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT ALL + 15 + + - 73 + + - CAST( NULL AS SIGNED ) + 77 * + MAX( - 5 ) + - - 93 * ( - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL + 15 + + - 73 + + - CAST ( NULL AS INTEGER ) + 77 * + MAX ( - 5 ) + - - 93 * ( - 62 )
----
NULL

query I rowsort
SELECT + 10 - - + 3 * + - 73 * + 86 AS col1
----
-18824

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9897
SELECT ALL 79 * + 37 AS col1, 92 DIV 52 - + COUNT( * ) AS col0
----
2923
0

skipif mysql # not compatible
query II rowsort label-9897
SELECT ALL 79 * + 37 AS col1, 92 / 52 - + COUNT ( * ) AS col0
----
2923
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9898
SELECT ALL - + COUNT( * ) DIV + COUNT( * ) - - 83 - - - 45 - - + 62 + 82 DIV 18 - - + 98 * + ( + 7 )
----
789

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - + COUNT ( * ) / + COUNT ( * ) - - 83 - - - 45 - - + 62 + 82 / 18 - - + 98 * + ( + 7 )
----
789

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL 6 + 0 * - CASE 36 WHEN - NULLIF ( 35, 4 + - 27 ) THEN + + 42 WHEN - ( COUNT( * ) ) * + 31 + + + 72 THEN + 84 * + 61 + - 34 * - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL 6 + 0 * - CASE 36 WHEN - NULLIF ( 35, 4 + - 27 ) THEN + + 42 WHEN - ( COUNT ( * ) ) * + 31 + + + 72 THEN + 84 * + 61 + - 34 * - 84 END
----
NULL

query I rowsort
SELECT DISTINCT - - 53 + + 58 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT 36 + - CASE + 78 WHEN - 98 THEN + - 32 * NULLIF ( + CASE + + SUM( DISTINCT + - 61 ) WHEN - 99 THEN 65 * + - 9 * - 49 ELSE NULL END, - + 72 * 5 ) WHEN - 21 THEN NULL ELSE - COUNT( * ) END * 60 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9901
SELECT 36 + - CASE + 78 WHEN - 98 THEN + - 32 * NULLIF ( + CASE + + SUM ( DISTINCT + - 61 ) WHEN - 99 THEN 65 * + - 9 * - 49 ELSE NULL END, - + 72 * 5 ) WHEN - 21 THEN NULL ELSE - COUNT ( * ) END * 60 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT - ( + + 69 ) - + COALESCE ( - 83, - - 99 ) + COUNT( * ) + COALESCE ( 12, - + ( - + 45 ) * + 43 - COUNT( * ) + - ( - 21 ) + - 92 * 88, - 98 ) * - 0 * 33
----
15

skipif mysql # not compatible
query I rowsort label-9902
SELECT - ( + + 69 ) - + COALESCE ( - 83, - - 99 ) + COUNT ( * ) + COALESCE ( 12, - + ( - + 45 ) * + 43 - COUNT ( * ) + - ( - 21 ) + - 92 * 88, - 98 ) * - 0 * 33
----
15

query I rowsort
SELECT - 3 + + + 69
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT 26 - + COUNT( * ) * + 97 col1
----
-71

skipif mysql # not compatible
query I rowsort label-9904
SELECT 26 - + COUNT ( * ) * + 97 col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL - COUNT( 16 ) + + 77 * - - 84 * + 12 AS col0
----
77615

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - COUNT ( 16 ) + + 77 * - - 84 * + 12 AS col0
----
77615

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT COUNT( * ) * - 31 + 5
----
-26

skipif mysql # not compatible
query I rowsort label-9906
SELECT COUNT ( * ) * - 31 + 5
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT + ( - - 96 ) + - - CAST( - 63 AS SIGNED ) + + 99 + 52 AS col1
----
184

skipif mysql # not compatible
query I rowsort label-9907
SELECT + ( - - 96 ) + - - CAST ( - 63 AS INTEGER ) + + 99 + 52 AS col1
----
184

query I rowsort
SELECT - ( - 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL - NULLIF ( + MAX( + + 69 ), + 25 + - 51 ) + 53 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL - NULLIF ( + MAX ( + + 69 ), + 25 + - 51 ) + 53 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9910
SELECT NULLIF ( + + 68, - CAST( COUNT( * ) AS DECIMAL ) ) + 50 col2
----
118

skipif mysql # not compatible
query I rowsort label-9910
SELECT NULLIF ( + + 68, - CAST ( COUNT ( * ) AS REAL ) ) + 50 col2
----
118

query I rowsort
SELECT DISTINCT + + 32 * + + 46 AS col1
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + COALESCE ( + 15, - 43, - NULLIF ( + ( - 91 ), - AVG ( - 9 ) ) ) * - 54 + 72 - COUNT( * ) + 37 AS col0
----
-702

skipif mysql # not compatible
query I rowsort label-9912
SELECT + COALESCE ( + 15, - 43, - NULLIF ( + ( - 91 ), - AVG ( - 9 ) ) ) * - 54 + 72 - COUNT ( * ) + 37 AS col0
----
-702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT - 19 * - CAST( + CASE - + 77 WHEN ( - 16 ) THEN NULL WHEN + + 4 + 41 + + 89 THEN 86 + 15 * + NULLIF ( COUNT( * ), + CASE WHEN NOT ( - NULLIF ( 12, COUNT( 11 ) + + 95 ) ) IS NOT NULL THEN 8 + 20 / AVG ( 10 ) WHEN ( NULL ) NOT BETWEEN 52 + 76 AND + ( NULLIF ( COUNT( * ), CASE 93 WHEN + 90 * 91 THEN - 51 WHEN 12 THEN + ( 63 ) END * - 74 ) ) * 62 THEN NULL ELSE COUNT( * ) + COALESCE ( + 7, COUNT( ALL 54 ) ) * 24 END ) + + MIN( ( 76 ) + ( + 42 ) ) ELSE 34 END AS SIGNED ) * 36 AS col0
----
23256

skipif mysql # not compatible
query I rowsort label-9913
SELECT - 19 * - CAST ( + CASE - + 77 WHEN ( - 16 ) THEN NULL WHEN + + 4 + 41 + + 89 THEN 86 + 15 * + NULLIF ( COUNT ( * ), + CASE WHEN NOT ( - NULLIF ( 12, COUNT ( 11 ) + + 95 ) ) IS NOT NULL THEN 8 + 20 / AVG ( 10 ) WHEN ( NULL ) NOT BETWEEN 52 + 76 AND + ( NULLIF ( COUNT ( * ), CASE 93 WHEN + 90 * 91 THEN - 51 WHEN 12 THEN + ( 63 ) END * - 74 ) ) * 62 THEN NULL ELSE COUNT ( * ) + COALESCE ( + 7, COUNT ( ALL 54 ) ) * 24 END ) + + MIN ( ( 76 ) + ( + 42 ) ) ELSE 34 END AS INTEGER ) * 36 AS col0
----
23256

query I rowsort
SELECT 74 * + 35
----
2590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT + 68 / + - CAST( NULL AS SIGNED ) * - - COUNT( * ) / - ( - 97 ) + + MIN( DISTINCT - - 48 ) + + + 48 * - + 57 / + COUNT( * ) + + MIN( + + CAST( - 4 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT + 68 / + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / - ( - 97 ) + + MIN ( DISTINCT - - 48 ) + + + 48 * - + 57 / + COUNT ( * ) + + MIN ( + + CAST ( - 4 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9916
SELECT ALL - CASE - 31 WHEN - 88 / NULLIF ( 49, 72 + + - 99 - - 55 ) * 47 / CAST( NULL AS SIGNED ) + 38 + + COALESCE ( - 65, + - 83 ) + - - CASE SUM( DISTINCT 45 ) WHEN CAST( NULL AS SIGNED ) THEN 25 ELSE NULL END / 63 * COUNT( * ) THEN 56 * - 51 + + 87 ELSE + SUM( 10 ) END AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL - CASE - 31 WHEN - 88 / NULLIF ( 49, 72 + + - 99 - - 55 ) * 47 / CAST ( NULL AS INTEGER ) + 38 + + COALESCE ( - 65, + - 83 ) + - - CASE SUM ( DISTINCT 45 ) WHEN CAST ( NULL AS INTEGER ) THEN 25 ELSE NULL END / 63 * COUNT ( * ) THEN 56 * - 51 + + 87 ELSE + SUM ( 10 ) END AS col0
----
-10

query I rowsort
SELECT DISTINCT - CASE - + 6 WHEN 16 * 33 THEN 58 ELSE + 7 END AS col2
----
-7

query I rowsort
SELECT 10 * - 90 AS col1
----
-900

query I rowsort
SELECT 46 * + 79
----
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL 98 * 16 * - 88 * - ( + SUM( 44 ) ) AS col0
----
6071296

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL 98 * 16 * - 88 * - ( + SUM ( 44 ) ) AS col0
----
6071296

query I rowsort
SELECT DISTINCT 15 * + 12
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT DISTINCT - 64 DIV - 73 * - - 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT - 64 / - 73 * - - 3 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT 82 * + 78 * - + 37 * 38 * + ( + NULLIF ( 82, - COUNT( * ) - - - 65 + + - 84 ) ) + 55 * + ( - 9 ) * 4 - - COUNT( * )
----
-737409611

skipif mysql # not compatible
query I rowsort label-9923
SELECT 82 * + 78 * - + 37 * 38 * + ( + NULLIF ( 82, - COUNT ( * ) - - - 65 + + - 84 ) ) + 55 * + ( - 9 ) * 4 - - COUNT ( * )
----
-737409611

query I rowsort
SELECT ALL - NULLIF ( - 24, - ( + 97 ) ) * - 18 - 42
----
-474

query I rowsort
SELECT NULLIF ( - + 69, 0 + + + 55 + + - 61 ) * - 84 + 76 AS col0
----
5872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9926
SELECT - 61 * - 87 + - COALESCE ( - 16, + COALESCE ( - + 39, 67 + + 77 * + - 0 ), + COALESCE ( + 43, + CAST( + 96 AS SIGNED ) * 47 - 5 DIV COUNT( * ), + 27 ) - + 91 * + ( 56 ) ) AS col0
----
5323

skipif mysql # not compatible
query I rowsort label-9926
SELECT - 61 * - 87 + - COALESCE ( - 16, + COALESCE ( - + 39, 67 + + 77 * + - 0 ), + COALESCE ( + 43, + CAST ( + 96 AS INTEGER ) * 47 - 5 / COUNT ( * ), + 27 ) - + 91 * + ( 56 ) ) AS col0
----
5323

query I rowsort
SELECT 92 * + 57 - + + 20 AS col1
----
5224

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT + COUNT( * ) AS col1, 49 * + ( + SUM( DISTINCT 65 ) ) * + 46 col0
----
1
146510

skipif mysql # not compatible
query II rowsort label-9928
SELECT + COUNT ( * ) AS col1, 49 * + ( + SUM ( DISTINCT 65 ) ) * + 46 col0
----
1
146510

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT 26 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT 26 / + 40
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT 61 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT 61 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL 8 + + MIN( + 91 ) * ( - 98 ) col0
----
-8910

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL 8 + + MIN ( + 91 ) * ( - 98 ) col0
----
-8910

query I rowsort
SELECT ALL 84 + - NULLIF ( - 4, - 66 )
----
88

query I rowsort
SELECT DISTINCT NULLIF ( - 71, 36 ) + + + 78 * - 32
----
-2567

query I rowsort
SELECT DISTINCT + 20 + + 56 AS col1
----
76

query I rowsort
SELECT DISTINCT 95 + + 72 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + - 87 * - 97 - COUNT( * )
----
8438

skipif mysql # not compatible
query I rowsort label-9936
SELECT + - 87 * - 97 - COUNT ( * )
----
8438

query I rowsort
SELECT ALL - 76 * 83 + + 58
----
-6250

query II rowsort
SELECT - 73 AS col1, 33 AS col2
----
-73
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9939
SELECT + + COALESCE ( + 24, - - 33 * + 9 DIV ( - 97 ) + - 58 - - 14 * 81 * - COUNT( * ) * - + 77 ) + - - ( + ( 7 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9939
SELECT + + COALESCE ( + 24, - - 33 * + 9 / ( - 97 ) + - 58 - - 14 * 81 * - COUNT ( * ) * - + 77 ) + - - ( + ( 7 ) ) AS col0
----
31

query I rowsort
SELECT ALL - 43 * - ( 48 )
----
2064

onlyif mysql # aggregate syntax: 
query II rowsort label-9941
SELECT + COUNT( * ) AS col2, 20
----
1
20

skipif mysql # not compatible
query II rowsort label-9941
SELECT + COUNT ( * ) AS col2, 20
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT - - COUNT( * ) + + MAX( - 6 )
----
-5

skipif mysql # not compatible
query I rowsort label-9942
SELECT - - COUNT ( * ) + + MAX ( - 6 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL - COUNT( * ) + - 83 + + 13 + - - 56 * 4 * - 31 - - 33 * + - 21 * - 79 AS col0
----
47732

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL - COUNT ( * ) + - 83 + + 13 + - - 56 * 4 * - 31 - - 33 * + - 21 * - 79 AS col0
----
47732

query I rowsort
SELECT + 10 * + 33 * - + 53 * - ( - - NULLIF ( + 38, 67 ) )
----
664620

query I rowsort
SELECT DISTINCT - 93 - 58 col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + + 55 * - + SUM( + 39 )
----
-2145

skipif mysql # not compatible
query I rowsort label-9946
SELECT + + 55 * - + SUM ( + 39 )
----
-2145

query II rowsort
SELECT - 8 AS col2, ( + 0 ) * - + 12 + ( + 89 )
----
-8
89

query I rowsort
SELECT - 64 * 19 AS col0
----
-1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9949
SELECT ALL - COUNT( * ) DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - COUNT ( * ) / + 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT + NULLIF ( - - MIN( ALL - 44 ), + 31 + + + 13 ) * CASE - + 24 WHEN - COUNT( DISTINCT - 49 ) THEN - COALESCE ( + 28, SUM( ALL 95 ), 1 ) WHEN 68 THEN - 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT + NULLIF ( - - MIN ( ALL - 44 ), + 31 + + + 13 ) * CASE - + 24 WHEN - COUNT ( DISTINCT - 49 ) THEN - COALESCE ( + 28, SUM ( ALL 95 ), 1 ) WHEN 68 THEN - 6 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT - COUNT( * ) + - 78 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-9951
SELECT - COUNT ( * ) + - 78 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT DISTINCT + 77 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT + 77 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT ALL - CASE - CASE AVG ( - 49 ) WHEN + - COUNT( * ) * + 67 / - COUNT( * ) THEN 50 * + COUNT( * ) ELSE NULL END WHEN - + 33 + - 97 + MAX( + + CAST( - 62 AS SIGNED ) ) * COUNT( * ) THEN NULL WHEN - COUNT( * ) / - COUNT( * ) THEN 96 END * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL - CASE - CASE AVG ( - 49 ) WHEN + - COUNT ( * ) * + 67 / - COUNT ( * ) THEN 50 * + COUNT ( * ) ELSE NULL END WHEN - + 33 + - 97 + MAX ( + + CAST ( - 62 AS INTEGER ) ) * COUNT ( * ) THEN NULL WHEN - COUNT ( * ) / - COUNT ( * ) THEN 96 END * 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9954
SELECT - 63 - + ( - - COUNT( * ) ) + + 71 col2, - 63 + + 87 - 59 AS col0
----
7
-35

skipif mysql # not compatible
query II rowsort label-9954
SELECT - 63 - + ( - - COUNT ( * ) ) + + 71 col2, - 63 + + 87 - 59 AS col0
----
7
-35

query I rowsort
SELECT DISTINCT 86 * + + 52 AS col2
----
4472

query I rowsort
SELECT ALL + COALESCE ( + 41, - + 28 - - 81 )
----
41

query I rowsort
SELECT - 44 * + COALESCE ( + 75, - 52 + + ( 87 ) ) AS col2
----
-3300

query I rowsort
SELECT - 57 * 48 + - + 26
----
-2762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9959
SELECT ALL + CASE - + COUNT( * ) WHEN + - 39 + + 21 + - 93 * + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) * + - 42 - 85 THEN - - 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + CASE - + COUNT ( * ) WHEN + - 39 + + 21 + - 93 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) * + - 42 - 85 THEN - - 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9960
SELECT COALESCE ( - 13, 65 DIV - 64 ) AS col1, - COUNT( * ) + + 94 * 76 AS col0
----
-13
7143

skipif mysql # not compatible
query II rowsort label-9960
SELECT COALESCE ( - 13, 65 / - 64 ) AS col1, - COUNT ( * ) + + 94 * 76 AS col0
----
-13
7143

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT COALESCE ( - + COUNT( * ), 11, - - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-9961
SELECT COALESCE ( - + COUNT ( * ), 11, - - 4 )
----
-1

query I rowsort
SELECT - 85 - + ( + + 22 ) * - + 66
----
1367

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + 2 * - - COUNT( - - 67 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-9963
SELECT + 2 * - - COUNT ( - - 67 ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL SUM( DISTINCT - + 88 ) * - 18 * - 38 + - 79
----
-60271

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL SUM ( DISTINCT - + 88 ) * - 18 * - 38 + - 79
----
-60271

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9965
SELECT COALESCE ( - 61, + - 44 DIV - CAST( NULL AS SIGNED ) DIV 67 )
----
-61

skipif mysql # not compatible
query I rowsort label-9965
SELECT COALESCE ( - 61, + - 44 / - CAST ( NULL AS INTEGER ) / 67 )
----
-61

query I rowsort
SELECT NULLIF ( + 36, + 73 ) AS col1
----
36

query I rowsort
SELECT ALL 61 * - 51 AS col1
----
-3111

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL + 67 * 2 + + 49 + + ( COUNT( * ) ) * 25
----
208

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + 67 * 2 + + 49 + + ( COUNT ( * ) ) * 25
----
208

query II rowsort
SELECT DISTINCT - 14 col1, 70
----
-14
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - + NULLIF ( - - 84, + + 37 * - + COALESCE ( + 82, + 36 ) + - - NULLIF ( + 76, COALESCE ( + - 27, NULLIF ( - NULLIF ( - 71, + - 84 + 82 ), - 97 * + 70 ), COUNT( * ) ) ) + + 65 ) + 68
----
-16

skipif mysql # not compatible
query I rowsort label-9970
SELECT - + NULLIF ( - - 84, + + 37 * - + COALESCE ( + 82, + 36 ) + - - NULLIF ( + 76, COALESCE ( + - 27, NULLIF ( - NULLIF ( - 71, + - 84 + 82 ), - 97 * + 70 ), COUNT ( * ) ) ) + + 65 ) + 68
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9971
SELECT + + 11 DIV SUM( 74 )
----
0

skipif mysql # not compatible
query I rowsort label-9971
SELECT + + 11 / SUM ( 74 )
----
0

query I rowsort
SELECT - - 41 + 30
----
71

query I rowsort
SELECT + 41 * 29 AS col2
----
1189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9974
SELECT - - CAST( + 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-9974
SELECT - - CAST ( + 47 AS INTEGER )
----
47

query I rowsort
SELECT - 94 - + + 52 + - - 60 * + 92 + - - NULLIF ( 85, + 55 ) + + - 92 + - 30 * 37
----
4257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT ALL - MIN( ALL 89 ) * 49 - + + COALESCE ( - ( CAST( NULL AS SIGNED ) ), 8 )
----
-4369

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - MIN ( ALL 89 ) * 49 - + + COALESCE ( - ( CAST ( NULL AS INTEGER ) ), 8 )
----
-4369

query I rowsort
SELECT + 8 + + + 16 + + 90 AS col1
----
114

query I rowsort
SELECT DISTINCT + ( - 36 ) AS col0
----
-36

query I rowsort
SELECT + + 26 + + 35
----
61

query I rowsort
SELECT ALL + 14 - - - 77 - + 49
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - - ( - + COUNT( * ) ) + + - 73 + - 12 + - + 84 * - - 32 * + - 99 AS col2
----
266026

skipif mysql # not compatible
query I rowsort label-9981
SELECT - - ( - + COUNT ( * ) ) + + - 73 + - 12 + - + 84 * - - 32 * + - 99 AS col2
----
266026

query I rowsort
SELECT + - 34 - + - 44 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT + + 65 + - + 90 + MAX( + - 66 ) + - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9983
SELECT + + 65 + - + 90 + MAX ( + - 66 ) + - COUNT ( * ) AS col1
----
-92

query I rowsort
SELECT + ( + - 46 ) - - 17 + + ( + + 2 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT + 10 * + ( + COUNT( * ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9985
SELECT + 10 * + ( + COUNT ( * ) ) AS col1
----
10

query I rowsort
SELECT - 84 + + - 10 * + 55
----
-634

query II rowsort
SELECT ALL + 47 AS col2, 47 * + 6
----
47
282

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9988
SELECT 48 AS col2, + CAST( NULL AS DECIMAL )
----
48
NULL

skipif mysql # not compatible
query II rowsort label-9988
SELECT 48 AS col2, + CAST ( NULL AS REAL )
----
48
NULL

query I rowsort
SELECT ALL 51 * - - 62 AS col0
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + 63 + - COUNT( * ) + - COALESCE ( + + 37, 10 + - 2 * - 59 ) * - 72 * + COUNT( * ) + + - 14 col1
----
2712

skipif mysql # not compatible
query I rowsort label-9990
SELECT + 63 + - COUNT ( * ) + - COALESCE ( + + 37, 10 + - 2 * - 59 ) * - 72 * + COUNT ( * ) + + - 14 col1
----
2712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9991
SELECT ALL - MAX( ALL + + 29 ) + + - 34 DIV + 28
----
-30

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - MAX ( ALL + + 29 ) + + - 34 / + 28
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT DISTINCT + 1 DIV CASE - 95 WHEN - 25 THEN NULL ELSE - 6 + - 83 + + + 68 END * - + 90 * + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT + 1 / CASE - 95 WHEN - 25 THEN NULL ELSE - 6 + - 83 + + + 68 END * - + 90 * + 98 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9993
SELECT - 53 * CAST( + - 10 AS SIGNED ) * + 80 * - COUNT( + + 11 ) * - 8 + + 57 AS col0
----
339257

skipif mysql # not compatible
query I rowsort label-9993
SELECT - 53 * CAST ( + - 10 AS INTEGER ) * + 80 * - COUNT ( + + 11 ) * - 8 + + 57 AS col0
----
339257

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT - COUNT( * ) * - + COUNT( * ) + 50
----
51

skipif mysql # not compatible
query I rowsort label-9994
SELECT - COUNT ( * ) * - + COUNT ( * ) + 50
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT 19 / - CAST( NULL AS SIGNED ) + + 6 / + 19 * 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT 19 / - CAST ( NULL AS INTEGER ) + + 6 / + 19 * 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9996
SELECT + 79 * + + 23 AS col0, - COUNT( ALL + 33 ) - + - COUNT( * ), + COUNT( * ) AS col1
----
1817
0
1

skipif mysql # not compatible
query III rowsort label-9996
SELECT + 79 * + + 23 AS col0, - COUNT ( ALL + 33 ) - + - COUNT ( * ), + COUNT ( * ) AS col1
----
1817
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT CAST( - + 51 AS SIGNED ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9997
SELECT CAST ( - + 51 AS INTEGER ) AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9998
SELECT - NULLIF ( + ( - 91 ), - 2 ) DIV - 75 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9998
SELECT - NULLIF ( + ( - 91 ), - 2 ) / - 75 AS col2
----
-1

query I rowsort
SELECT - 61 + 39
----
-22

