sqllogictest
Artifact Content
Not logged in

Artifact a2ef0e6cfb0cbca7ab80db4a61a15f5c637b7f58:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + + 16 * 93 * + 34 col1
----
50592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1
SELECT DISTINCT - + 94 DIV - COUNT( DISTINCT + 51 )
----
94

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT - + 94 / - COUNT ( DISTINCT + 51 )
----
94

query I rowsort
SELECT + 49 * + + 69 + 81
----
3462

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL - 77 * + COALESCE ( - - 64, - 79 * + NULLIF ( 85, + COUNT( * ) * + 29 ) + + 39 * + 64 )
----
-4928

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - 77 * + COALESCE ( - - 64, - 79 * + NULLIF ( 85, + COUNT ( * ) * + 29 ) + + 39 * + 64 )
----
-4928

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT + + 66 DIV 58 * 71 * - 5 AS col2
----
-355

skipif mysql # not compatible
query I rowsort label-4
SELECT + + 66 / 58 * 71 * - 5 AS col2
----
-355

query I rowsort
SELECT - 97 * - - 54 - - 30
----
-5208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT DISTINCT CAST( - - 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT CAST ( - - 93 AS INTEGER )
----
93

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL COUNT( * ) - - 64 + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL COUNT ( * ) - - 64 + COUNT ( * )
----
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-12
SELECT + 9 * + 57 * - + 91 * - - 36 * + CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-12
SELECT + 9 * + 57 * - + 91 * - - 36 * + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col0
----
NULL
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT + CASE + ( - 54 ) WHEN + COUNT( * ) THEN + 28 ELSE - 8 END + + 93 + + ( COUNT( * ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-14
SELECT + CASE + ( - 54 ) WHEN + COUNT ( * ) THEN + 28 ELSE - 8 END + + 93 + + ( COUNT ( * ) ) AS col0
----
86

query I rowsort
SELECT + 85 - + - 79 + - 72 * + - 87 * + 38 * + 40
----
9521444

query I rowsort
SELECT ALL 67 * + - 37 col2
----
-2479

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT + CAST( NULL AS SIGNED ) + - - 79 + - 43 / CAST( CASE - 3 WHEN + 99 THEN NULL ELSE + COUNT( * ) * + - MAX( ALL + 10 ) END AS SIGNED ) * - - 36 - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT + CAST ( NULL AS INTEGER ) + - - 79 + - 43 / CAST ( CASE - 3 WHEN + 99 THEN NULL ELSE + COUNT ( * ) * + - MAX ( ALL + 10 ) END AS INTEGER ) * - - 36 - + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL SUM( ALL - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL SUM ( ALL - 98 ) AS col1
----
-98

query I rowsort
SELECT DISTINCT - 54 + + - 91 + - + 75
----
-220

query I rowsort
SELECT + 25 + - ( - + 90 ) + - - 30
----
145

query I rowsort
SELECT ALL 31 * - + 68 AS col2
----
-2108

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

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

query I rowsort
SELECT DISTINCT 66 * - 56
----
-3696

query I rowsort
SELECT ALL ( + 94 ) + - 42 AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-26
SELECT + 7 DIV + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-26
SELECT + 7 / + COUNT ( * ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-27
SELECT - 13 * - + CAST( + + 87 AS SIGNED ) AS col0, - 8 col2
----
1131
-8

skipif mysql # not compatible
query II rowsort label-27
SELECT - 13 * - + CAST ( + + 87 AS INTEGER ) AS col0, - 8 col2
----
1131
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT + - NULLIF ( - COUNT( * ), COALESCE ( - 48, + ( ( 10 ) ) * - - 57 ) ) + ( + + 9 ) + + 44 + - CASE + SUM( DISTINCT 51 ) WHEN + 47 THEN + 1 WHEN + NULLIF ( - - 19, 50 + - 8 ) - + 62 THEN 89 * 3 ELSE + 3 * + 86 + - 68 * 81 END * + MAX( ALL - 47 )
----
-246696

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT + - NULLIF ( - COUNT ( * ), COALESCE ( - 48, + ( ( 10 ) ) * - - 57 ) ) + ( + + 9 ) + + 44 + - CASE + SUM ( DISTINCT 51 ) WHEN + 47 THEN + 1 WHEN + NULLIF ( - - 19, 50 + - 8 ) - + 62 THEN 89 * 3 ELSE + 3 * + 86 + - 68 * 81 END * + MAX ( ALL - 47 )
----
-246696

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

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

query I rowsort
SELECT - 93 * 31
----
-2883

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL + - CASE - - 99 WHEN 0 * - 75 * + MIN( ALL - - 59 ) THEN + 26 ELSE NULL END / + 3 * COUNT( * ) * - ( + NULLIF ( + + 61, - 79 ) ) + NULLIF ( 98, + + 69 ) - + 46 * - NULLIF ( - 64, + 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL + - CASE - - 99 WHEN 0 * - 75 * + MIN ( ALL - - 59 ) THEN + 26 ELSE NULL END / + 3 * COUNT ( * ) * - ( + NULLIF ( + + 61, - 79 ) ) + NULLIF ( 98, + + 69 ) - + 46 * - NULLIF ( - 64, + 14 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-32
SELECT ALL 71 DIV + 70 + COUNT( * ) - - ( 26 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL 71 / + 70 + COUNT ( * ) - - ( 26 ) AS col0
----
28

query I rowsort
SELECT + - CASE + 97 WHEN - ( - - 84 ) THEN - + NULLIF ( 31, - 17 ) / 37 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT ALL 79 DIV - 78 - - 10
----
9

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL 79 / - 78 - - 10
----
9

query I rowsort
SELECT - 95 + + 46 AS col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-36
SELECT + ( - - COUNT( * ) ) * 23 - + - 69 + - COUNT( * ) DIV CASE 25 WHEN + 94 - - 99 THEN NULL WHEN + + 6 * + + 7 THEN 13 * - - 23 ELSE 74 END * + 68 AS col1, + COUNT( * )
----
92
1

skipif mysql # not compatible
query II rowsort label-36
SELECT + ( - - COUNT ( * ) ) * 23 - + - 69 + - COUNT ( * ) / CASE 25 WHEN + 94 - - 99 THEN NULL WHEN + + 6 * + + 7 THEN 13 * - - 23 ELSE 74 END * + 68 AS col1, + COUNT ( * )
----
92
1

query II rowsort
SELECT DISTINCT + 2, - 92 * + ( - + 65 ) AS col2
----
2
5980

query I rowsort
SELECT - 9 + + 43 * + + ( 15 ) - + - 36 AS col0
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL - - CASE - 80 WHEN + ( - 22 ) * COUNT( * ) THEN NULL WHEN - NULLIF ( 65, - AVG ( + 63 ) ) * + COUNT( * ) * - 1 * CASE - 39 WHEN + 14 THEN + COUNT( + 91 ) ELSE NULL END THEN - + 84 * 93 * + 25 * + + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - - CASE - 80 WHEN + ( - 22 ) * COUNT ( * ) THEN NULL WHEN - NULLIF ( 65, - AVG ( + 63 ) ) * + COUNT ( * ) * - 1 * CASE - 39 WHEN + 14 THEN + COUNT ( + 91 ) ELSE NULL END THEN - + 84 * 93 * + 25 * + + 90 END
----
NULL

query I rowsort
SELECT + 8 * 7 * 85 + + 51 AS col0
----
4811

query II rowsort
SELECT DISTINCT - - 97 AS col1, 61 AS col1
----
97
61

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT 84 * - 52 + - COUNT( DISTINCT 79 ) + + + 70 AS col2
----
-4299

skipif mysql # not compatible
query I rowsort label-42
SELECT 84 * - 52 + - COUNT ( DISTINCT 79 ) + + + 70 AS col2
----
-4299

query II rowsort
SELECT + 9 AS col2, 46 AS col2
----
9
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT ALL + 85 DIV + 67 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + 85 / + 67 AS col0
----
1

query I rowsort
SELECT 7 + + 13 * - 81
----
-1046

query I rowsort
SELECT 78 * + 70 AS col1
----
5460

query I rowsort
SELECT 82 * - 4 AS col0
----
-328

query I rowsort
SELECT DISTINCT 26 * + 16 * + 26 AS col1
----
10816

query I rowsort
SELECT ALL CASE + 37 WHEN 52 THEN - 50 * 24 WHEN ( + 49 ) + + 31 THEN NULL ELSE NULL END + - 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT DISTINCT + COUNT( DISTINCT 45 ) + - + 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT + COUNT ( DISTINCT 45 ) + - + 49 AS col0
----
-48

query I rowsort
SELECT 4 + - - 8 + ( - 41 )
----
-29

query I rowsort
SELECT NULLIF ( - + 12, + 39 ) * - - 10
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT 16 * + NULLIF ( 95, 52 ) * COUNT( * )
----
1520

skipif mysql # not compatible
query I rowsort label-54
SELECT 16 * + NULLIF ( 95, 52 ) * COUNT ( * )
----
1520

query I rowsort
SELECT ALL 25 + 34
----
59

query I rowsort
SELECT ALL ( 69 ) + + 9 - 93 * + + 62 AS col0
----
-5688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-57
SELECT COUNT( DISTINCT + - 57 ) - - 53 + - 76 DIV - COUNT( * ) - 34 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-57
SELECT COUNT ( DISTINCT + - 57 ) - - 53 + - 76 / - COUNT ( * ) - 34 AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-58
SELECT 80 AS col1, + 60 * - - COUNT( * ) AS col1
----
80
60

skipif mysql # not compatible
query II rowsort label-58
SELECT 80 AS col1, + 60 * - - COUNT ( * ) AS col1
----
80
60

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

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

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

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

query I rowsort
SELECT 35 + NULLIF ( 50, 60 ) - + 5 + 61 AS col2
----
141

query I rowsort
SELECT DISTINCT + 54 - + 32
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT DISTINCT 56 * + 66 * + COUNT( * ) AS col1
----
3696

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT 56 * + 66 * + COUNT ( * ) AS col1
----
3696

query I rowsort
SELECT + ( 31 ) * + 60
----
1860

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-65
SELECT + CAST( NULL AS SIGNED ), - 83 + ( - 49 ) - - - 31 * - 93 + 89 AS col0
----
NULL
2840

skipif mysql # not compatible
query II rowsort label-65
SELECT + CAST ( NULL AS INTEGER ), - 83 + ( - 49 ) - - - 31 * - 93 + 89 AS col0
----
NULL
2840

query II rowsort
SELECT 17 AS col0, 51 AS col2
----
17
51

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT - COUNT( * ) + + NULLIF ( + + COUNT( * ), + 84 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-67
SELECT - COUNT ( * ) + + NULLIF ( + + COUNT ( * ), + 84 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-68
SELECT ALL CAST( + ( + - NULLIF ( - + 67, + COUNT( * ) * + CAST( NULL AS SIGNED ) * - - 63 - + + 46 + - NULLIF ( + 63, - 3 * - 12 + - 8 * + COUNT( * ) + 33 ) * + + 21 + - + 72 * + 25 * - 42 + 95 / + + 40 ) ) AS SIGNED ) - + 79 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL CAST ( + ( + - NULLIF ( - + 67, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - - 63 - + + 46 + - NULLIF ( + 63, - 3 * - 12 + - 8 * + COUNT ( * ) + 33 ) * + + 21 + - + 72 * + 25 * - 42 + 95 / + + 40 ) ) AS INTEGER ) - + 79 AS col0
----
-12

query I rowsort
SELECT 97 + + 56
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT 84 DIV - + 86
----
0

skipif mysql # not compatible
query I rowsort label-70
SELECT 84 / - + 86
----
0

query II rowsort
SELECT - 59 col2, 45
----
-59
45

onlyif mysql # aggregate syntax: 
query II rowsort label-72
SELECT + + COUNT( * ) col2, - 80 + 52 AS col2
----
1
-28

skipif mysql # not compatible
query II rowsort label-72
SELECT + + COUNT ( * ) col2, - 80 + 52 AS col2
----
1
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL - CASE + 46 WHEN - + COUNT( * ) * 79 THEN - - 70 * + 50 * 81 * + 50 + - 52 + - 96 WHEN - 99 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL - CASE + 46 WHEN - + COUNT ( * ) * 79 THEN - - 70 * + 50 * 81 * + 50 + - 52 + - 96 WHEN - 99 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + + ( ( - - ( - + ( + SUM( + 6 ) ) ) ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-74
SELECT + + ( ( - - ( - + ( + SUM ( + 6 ) ) ) ) ) AS col2
----
-6

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

skipif mysql # not compatible
query I rowsort label-75
SELECT + + MAX ( - - 6 )
----
6

query I rowsort
SELECT 63 - 62 + + - 81 + + 49 col1
----
-31

query I rowsort
SELECT ( 14 ) * 94 + + ( + 42 ) AS col0
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT ALL + MIN( 34 ) * + - 37 AS col1
----
-1258

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL + MIN ( 34 ) * + - 37 AS col1
----
-1258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-79
SELECT + 65 * - - 48 - - 94 * - - 19 * + - 43 * - - COUNT( * ) * - - CASE 6 WHEN - CAST( NULL AS SIGNED ) * 1 + 11 + CAST( NULL AS SIGNED ) + - ( 64 ) * - - 35 * - + COUNT( - ( + 10 ) ) THEN + SUM( - + ( - 76 ) ) * 53 + COALESCE ( - 51, 90 ) WHEN - 94 + + COUNT( * ) THEN NULL END + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT + 65 * - - 48 - - 94 * - - 19 * + - 43 * - - COUNT ( * ) * - - CASE 6 WHEN - CAST ( NULL AS INTEGER ) * 1 + 11 + CAST ( NULL AS INTEGER ) + - ( 64 ) * - - 35 * - + COUNT ( - ( + 10 ) ) THEN + SUM ( - + ( - 76 ) ) * 53 + COALESCE ( - 51, 90 ) WHEN - 94 + + COUNT ( * ) THEN NULL END + - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL + 81 * + 9 * COUNT( * ) AS col1
----
729

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL + 81 * + 9 * COUNT ( * ) AS col1
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT 7 - - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-81
SELECT 7 - - COUNT ( * ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-82
SELECT ALL - 9 + - MIN( + - COALESCE ( + 29, ( - CAST( NULL AS SIGNED ) ) ) ) col0
----
20

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL - 9 + - MIN ( + - COALESCE ( + 29, ( - CAST ( NULL AS INTEGER ) ) ) ) col0
----
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-83
SELECT 97 + - - CAST( NULL AS SIGNED ) * CASE - CAST( - 0 AS DECIMAL ) WHEN 46 THEN - 16 WHEN - 63 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT 97 + - - CAST ( NULL AS INTEGER ) * CASE - CAST ( - 0 AS REAL ) WHEN 46 THEN - 16 WHEN - 63 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-84
SELECT COALESCE ( - 39, - 10 ) - - - COUNT( * ) * + CAST( NULL AS SIGNED ) * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-84
SELECT COALESCE ( - 39, - 10 ) - - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 91 AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 57 ) * + - 5
----
285

query I rowsort
SELECT 29 * - + 96
----
-2784

query I rowsort
SELECT ALL - 5 * ( + 6 ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT DISTINCT + 47 * - CASE ( + - 72 ) WHEN COALESCE ( - 38, + - COUNT( * ) ) THEN + 83 WHEN - + 2 THEN NULL WHEN + 83 / + + 77 + - + 7 THEN - + ( CASE + ( - 47 ) WHEN + 95 THEN - - 32 WHEN + 53 * CAST( + 25 AS SIGNED ) + + COUNT( * ) * - NULLIF ( + 80 * - 32, - 58 / + ( 86 ) ) THEN NULL END ) END * - 54 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT + 47 * - CASE ( + - 72 ) WHEN COALESCE ( - 38, + - COUNT ( * ) ) THEN + 83 WHEN - + 2 THEN NULL WHEN + 83 / + + 77 + - + 7 THEN - + ( CASE + ( - 47 ) WHEN + 95 THEN - - 32 WHEN + 53 * CAST ( + 25 AS INTEGER ) + + COUNT ( * ) * - NULLIF ( + 80 * - 32, - 58 / + ( 86 ) ) THEN NULL END ) END * - 54 + 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-89
SELECT DISTINCT - NULLIF ( - COALESCE ( 63, 21 DIV + 34 + + 33 ), CAST( + 74 AS SIGNED ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT - NULLIF ( - COALESCE ( 63, 21 / + 34 + + 33 ), CAST ( + 74 AS INTEGER ) ) AS col1
----
63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-91
SELECT 29 + 97 col0, 97 * - ( + AVG ( ALL CAST( NULL AS SIGNED ) ) ) * CAST( NULL AS SIGNED )
----
126
NULL

skipif mysql # not compatible
query II rowsort label-91
SELECT 29 + 97 col0, 97 * - ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) * CAST ( NULL AS INTEGER )
----
126
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + 68 * + COALESCE ( + 0, 38 + - 4 * 18 + + - COUNT( * ) ) + + - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-94
SELECT + 68 * + COALESCE ( + 0, 38 + - 4 * 18 + + - COUNT ( * ) ) + + - ( COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT 11 * 38
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL - 98 * NULLIF ( - 52, - + COUNT( ALL - - 98 ) ) + - ( + 1 ) + - - 43
----
5138

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL - 98 * NULLIF ( - 52, - + COUNT ( ALL - - 98 ) ) + - ( + 1 ) + - - 43
----
5138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT DISTINCT ( - COUNT( * ) ) * - 37 / CASE + + 33 WHEN + - ( 13 ) THEN COUNT( * ) + 20 WHEN - ( + 30 ) THEN NULL WHEN + - MAX( + - 75 ) THEN NULL END * 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT ( - COUNT ( * ) ) * - 37 / CASE + + 33 WHEN + - ( 13 ) THEN COUNT ( * ) + 20 WHEN - ( + 30 ) THEN NULL WHEN + - MAX ( + - 75 ) THEN NULL END * 58 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-99
SELECT + NULLIF ( + CASE - ( - - 67 ) WHEN - + COUNT( * ) THEN NULL WHEN - 28 THEN + NULLIF ( 84, MAX( + + 14 ) * 14 ) END, + 38 * 10 + 61 ) * COALESCE ( - - 46, - - CAST( AVG ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - - 63 - - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT + NULLIF ( + CASE - ( - - 67 ) WHEN - + COUNT ( * ) THEN NULL WHEN - 28 THEN + NULLIF ( 84, MAX ( + + 14 ) * 14 ) END, + 38 * 10 + 61 ) * COALESCE ( - - 46, - - CAST ( AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - - 63 - - 42 )
----
NULL

query III rowsort
SELECT ALL 74 * - 82 AS col2, 44 AS col0, 49 AS col2
----
-6068
44
49

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

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

query I rowsort
SELECT + 27 - - 2 AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-103
SELECT 85 * + 93 - + 33 - - + CAST( NULL AS SIGNED ) * CAST( + 21 AS DECIMAL ) + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-103
SELECT 85 * + 93 - + 33 - - + CAST ( NULL AS INTEGER ) * CAST ( + 21 AS REAL ) + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-104
SELECT DISTINCT 5 * + 20 + + 74 DIV MAX( ALL - 2 )
----
63

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT 5 * + 20 + + 74 / MAX ( ALL - 2 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-105
SELECT - 39 DIV + + MAX( ALL + 49 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-105
SELECT - 39 / + + MAX ( ALL + 49 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-106
SELECT ALL - 95 * - 51 + - - CAST( + - CASE - 10 WHEN - 11 THEN - + 64 WHEN + + 34 / + 94 * SUM( ALL + 46 ) * + 63 + - - 3 THEN NULL END AS SIGNED ) AS col2, 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-106
SELECT ALL - 95 * - 51 + - - CAST ( + - CASE - 10 WHEN - 11 THEN - + 64 WHEN + + 34 / + 94 * SUM ( ALL + 46 ) * + 63 + - - 3 THEN NULL END AS INTEGER ) AS col2, 77
----
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT DISTINCT - CAST( - 46 AS SIGNED ) * - 83 AS col2
----
-3818

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT - CAST ( - 46 AS INTEGER ) * - 83 AS col2
----
-3818

query I rowsort
SELECT - 3 + - 29 AS col2
----
-32

query I rowsort
SELECT ALL - 17 * 30 + - + 71 + 44
----
-537

query II rowsort
SELECT DISTINCT + 94, + 66 AS col0
----
94
66

query I rowsort
SELECT ALL + 50 * - - ( - - 92 ) * + + 11 AS col1
----
50600

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT + 8 + - MAX( + - 70 ) + - ( + ( - 84 ) )
----
162

skipif mysql # not compatible
query I rowsort label-112
SELECT + 8 + - MAX ( + - 70 ) + - ( + ( - 84 ) )
----
162

query I rowsort
SELECT - 72 + + 36 AS col0
----
-36

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-115
SELECT COUNT( * ), - 76 DIV 64 * + + 58 AS col1
----
1
-58

skipif mysql # not compatible
query II rowsort label-115
SELECT COUNT ( * ), - 76 / 64 * + + 58 AS col1
----
1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL COALESCE ( - - 53, COUNT( - 23 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL COALESCE ( - - 53, COUNT ( - 23 ) ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-117
SELECT DISTINCT COUNT( * ) AS col2, 65 * - 63
----
1
-4095

skipif mysql # not compatible
query II rowsort label-117
SELECT DISTINCT COUNT ( * ) AS col2, 65 * - 63
----
1
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT DISTINCT SUM( DISTINCT 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT SUM ( DISTINCT 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT - 16 - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-119
SELECT - 16 - COUNT ( * ) AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-120
SELECT - 86 DIV + ( + ( SUM( DISTINCT 63 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-120
SELECT - 86 / + ( + ( SUM ( DISTINCT 63 ) ) ) AS col1
----
-1

query I rowsort
SELECT - + 88 * - - 14
----
-1232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-122
SELECT - + NULLIF ( - 57, 97 * + 22 + - COUNT( * ) * 6 - CASE + COUNT( * ) WHEN + 19 - + 42 THEN - + 53 * 8 WHEN + 28 * ( + COALESCE ( - 28, + 96, - 31 + - + 5 + - 76 - 24 / - - 63 * - + CAST( NULL AS SIGNED ) ) ) * 62 - 43 + 63 THEN CAST( 21 AS DECIMAL ) WHEN 79 / MAX( 6 ) + 22 THEN NULL ELSE NULL END + 43 * COUNT( * ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-122
SELECT - + NULLIF ( - 57, 97 * + 22 + - COUNT ( * ) * 6 - CASE + COUNT ( * ) WHEN + 19 - + 42 THEN - + 53 * 8 WHEN + 28 * ( + COALESCE ( - 28, + 96, - 31 + - + 5 + - 76 - 24 / - - 63 * - + CAST ( NULL AS INTEGER ) ) ) * 62 - 43 + 63 THEN CAST ( 21 AS REAL ) WHEN 79 / MAX ( 6 ) + 22 THEN NULL ELSE NULL END + 43 * COUNT ( * ) ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-123
SELECT ALL - 77 AS col0, 1 + - 36 * + 18 DIV 83 DIV - 72 * + + 17 + MIN( ALL - 89 ) + + + 10
----
-77
-78

skipif mysql # not compatible
query II rowsort label-123
SELECT ALL - 77 AS col0, 1 + - 36 * + 18 / 83 / - 72 * + + 17 + MIN ( ALL - 89 ) + + + 10
----
-77
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT - + 38 DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-124
SELECT - + 38 / 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT - - CASE + SUM( ALL + - 1 ) WHEN + 42 * 93 * - COUNT( * ) * + + COALESCE ( + 59, 84, - + 55 + - - 86 ) + + - 2 - + - 93 THEN - COUNT( * ) END - + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT - - CASE + SUM ( ALL + - 1 ) WHEN + 42 * 93 * - COUNT ( * ) * + + COALESCE ( + 59, 84, - + 55 + - - 86 ) + + - 2 - + - 93 THEN - COUNT ( * ) END - + 83 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 0 * 3 AS col1
----
0

query I rowsort
SELECT ALL + + 81 * + - 36 * - - 53
----
-154548

query I rowsort
SELECT + 2 * - - 18 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT - COUNT( + - COALESCE ( + 25, + 9, + 82 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-129
SELECT - COUNT ( + - COALESCE ( + 25, + 9, + 82 ) )
----
-1

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

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

query I rowsort
SELECT + - 6 + + 0 AS col0
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL + NULLIF ( - MIN( ALL 1 ), - + 20 + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + NULLIF ( - MIN ( ALL 1 ), - + 20 + - COUNT ( * ) ) AS col0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT DISTINCT + 90 * + 77 + - - COUNT( - - 64 ) AS col1
----
6931

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT + 90 * + 77 + - - COUNT ( - - 64 ) AS col1
----
6931

query I rowsort
SELECT + 91 + - 36 * 21 * + 63 AS col2
----
-47537

query I rowsort
SELECT + 97 * + 8 col1
----
776

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT CASE - COUNT( DISTINCT + ( - 62 ) ) WHEN - COUNT( * ) * + - 97 THEN - - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT CASE - COUNT ( DISTINCT + ( - 62 ) ) WHEN - COUNT ( * ) * + - 97 THEN - - 73 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT CASE - MAX( ALL - + 44 ) WHEN + 45 * + 12 THEN - 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT CASE - MAX ( ALL - + 44 ) WHEN + 45 * + 12 THEN - 32 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-141
SELECT DISTINCT + COUNT( 74 ), - 24 AS col2
----
1
-24

skipif mysql # not compatible
query II rowsort label-141
SELECT DISTINCT + COUNT ( 74 ), - 24 AS col2
----
1
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-142
SELECT - 66 * 21 * - + 19 * - 98 AS col0, NULLIF ( COUNT( * ), - 98 ) * - + COUNT( * ) * + + 93 AS col1
----
-2580732
-93

skipif mysql # not compatible
query II rowsort label-142
SELECT - 66 * 21 * - + 19 * - 98 AS col0, NULLIF ( COUNT ( * ), - 98 ) * - + COUNT ( * ) * + + 93 AS col1
----
-2580732
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT - COUNT( * ) * + COUNT( * ) - - 12
----
11

skipif mysql # not compatible
query I rowsort label-143
SELECT - COUNT ( * ) * + COUNT ( * ) - - 12
----
11

query I rowsort
SELECT ALL + NULLIF ( - 39, + 12 )
----
-39

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

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

query I rowsort
SELECT + 13 - - + ( - - 27 )
----
40

query I rowsort
SELECT + 30 * - 60 col0
----
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-148
SELECT - CAST( 66 AS SIGNED ) AS col2, 99
----
-66
99

skipif mysql # not compatible
query II rowsort label-148
SELECT - CAST ( 66 AS INTEGER ) AS col2, 99
----
-66
99

query I rowsort
SELECT + + 34 + - + 28 * - 35 + - 36 + - - 19
----
997

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT + - 59 + + 75 + + 35 * + + COUNT( * ) + + - 3 col0
----
48

skipif mysql # not compatible
query I rowsort label-150
SELECT + - 59 + + 75 + + 35 * + + COUNT ( * ) + + - 3 col0
----
48

query I rowsort
SELECT - 93 * + ( - - 75 )
----
-6975

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT DISTINCT + 4 * + - 94 + CASE - - 90 WHEN + 33 / - + 72 THEN + 97 - - COUNT( * ) + 92 * - 26 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT + 4 * + - 94 + CASE - - 90 WHEN + 33 / - + 72 THEN + 97 - - COUNT ( * ) + 92 * - 26 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-154
SELECT 51 + + ( 72 ) * - + 81 DIV + COUNT( * ) + + - COUNT( * ) + - 52 + + 82 + - + 59
----
-5811

skipif mysql # not compatible
query I rowsort label-154
SELECT 51 + + ( 72 ) * - + 81 / + COUNT ( * ) + + - COUNT ( * ) + - 52 + + 82 + - + 59
----
-5811

query I rowsort
SELECT 82 * + - 52 + + - 6
----
-4270

query I rowsort
SELECT ALL - 71 + - 72 + 22 + - 79
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - MAX( ALL 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-157
SELECT - MAX ( ALL 44 )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT ALL + - 45 + 28 DIV + COUNT( * ) + 57 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + - 45 + 28 / + COUNT ( * ) + 57 AS col2
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT MAX( - - 46 ) + + 95 * - COALESCE ( + - 77, 64 ) AS col0
----
7361

skipif mysql # not compatible
query I rowsort label-160
SELECT MAX ( - - 46 ) + + 95 * - COALESCE ( + - 77, 64 ) AS col0
----
7361

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT - 95 * + COUNT( ALL 33 )
----
-95

skipif mysql # not compatible
query I rowsort label-161
SELECT - 95 * + COUNT ( ALL 33 )
----
-95

query I rowsort
SELECT - - NULLIF ( - ( + - ( + + 48 ) ), 15 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT ALL - - CASE MIN( + 37 ) WHEN - ( - SUM( ALL 96 ) ) THEN - ( - + 7 ) + - COUNT( * ) END + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL - - CASE MIN ( + 37 ) WHEN - ( - SUM ( ALL 96 ) ) THEN - ( - + 7 ) + - COUNT ( * ) END + - 67
----
NULL

query I rowsort
SELECT - ( - 24 ) - 62 * + + 63 * 29 AS col1
----
-113250

query I rowsort
SELECT DISTINCT + 27 + 48 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT - COUNT( ALL 89 ) * 78 * 47 AS col0
----
-3666

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - COUNT ( ALL 89 ) * 78 * 47 AS col0
----
-3666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-167
SELECT ALL + 22 + + + 6 * - + COUNT( 65 ) DIV 99 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL + 22 + + + 6 * - + COUNT ( 65 ) / 99 AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-168
SELECT DISTINCT CASE - 98 WHEN - + ( 79 ) THEN + - 77 + + + 22 + 5 * - COALESCE ( - 55, - 84 ) + + 51 ELSE - 61 END DIV - MAX( - 40 ) + - 11 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT CASE - 98 WHEN - + ( 79 ) THEN + - 77 + + + 22 + 5 * - COALESCE ( - 55, - 84 ) + + 51 ELSE - 61 END / - MAX ( - 40 ) + - 11 AS col0
----
-12

query I rowsort
SELECT ALL 15 - 35
----
-20

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

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

query II rowsort
SELECT ALL - 71 AS col0, 67 * 77 + - - 67 AS col1
----
-71
5226

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-173
SELECT DISTINCT - COALESCE ( 41, - - 31 + - 71 + - + 95 + - NULLIF ( + COUNT( * ), - + 52 * - 44 * - MAX( ALL CAST( NULL AS SIGNED ) ) + MIN( - 6 ) * - - 5 ) * + + COALESCE ( + 43, + 22, - 48 ) DIV + 92 ) DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - COALESCE ( 41, - - 31 + - 71 + - + 95 + - NULLIF ( + COUNT ( * ), - + 52 * - 44 * - MAX ( ALL CAST ( NULL AS INTEGER ) ) + MIN ( - 6 ) * - - 5 ) * + + COALESCE ( + 43, + 22, - 48 ) / + 92 ) / + 42
----
0

query I rowsort
SELECT DISTINCT - ( - - 28 ) * - 61 AS col1
----
1708

query I rowsort
SELECT 67 + + 97 * + 9
----
940

onlyif mysql # aggregate syntax: 
query II rowsort label-176
SELECT - + 81 AS col1, + MIN( ALL 11 )
----
-81
11

skipif mysql # not compatible
query II rowsort label-176
SELECT - + 81 AS col1, + MIN ( ALL 11 )
----
-81
11

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT - 68 + MIN( - CASE + 73 WHEN - 91 THEN + 87 * 48 + + ( + 42 ) + - 69 END ) + - NULLIF ( - 76, + 26 + 23 ) - + 11 * + - COUNT( * ) * COUNT( * ) * + - 28, + 51 * 18 AS col2
----
NULL
918

skipif mysql # not compatible
query II rowsort label-177
SELECT - 68 + MIN ( - CASE + 73 WHEN - 91 THEN + 87 * 48 + + ( + 42 ) + - 69 END ) + - NULLIF ( - 76, + 26 + 23 ) - + 11 * + - COUNT ( * ) * COUNT ( * ) * + - 28, + 51 * 18 AS col2
----
NULL
918

onlyif mysql # DIV for integer division: 
query I rowsort label-178
SELECT 27 DIV + ( - 12 )
----
-2

skipif mysql # not compatible
query I rowsort label-178
SELECT 27 / + ( - 12 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT - SUM( - - 18 ) * + 32
----
-576

skipif mysql # not compatible
query I rowsort label-179
SELECT - SUM ( - - 18 ) * + 32
----
-576

query I rowsort
SELECT + 39 * 87 + - 46 + 19 AS col1
----
3366

onlyif mysql # DIV for integer division: 
query I rowsort label-181
SELECT DISTINCT + 44 DIV - - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT + 44 / - - 92 AS col2
----
0

query I rowsort
SELECT DISTINCT 95 + + ( - 89 ) + - 86
----
-80

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

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT - 75 + - - COUNT ( * ) / + 52 AS col1
----
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-184
SELECT ALL + 11 * 54 * 20 DIV + 65 + 62 AS col0, - 57 AS col1
----
244
-57

skipif mysql # not compatible
query II rowsort label-184
SELECT ALL + 11 * 54 * 20 / + 65 + 62 AS col0, - 57 AS col1
----
244
-57

query I rowsort
SELECT ALL + 0 + ( 26 )
----
26

query I rowsort
SELECT ALL + 42 + + 71
----
113

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

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

query I rowsort
SELECT - 80 + - + 62 AS col0
----
-142

query I rowsort
SELECT 66 + - 49 AS col1
----
17

query I rowsort
SELECT DISTINCT 25 + - 84 * + - 93 + - 92 AS col1
----
7745

query I rowsort
SELECT ALL + 98 + - - 46 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT ALL NULLIF ( + 17, COUNT( * ) * - - 83 * + 95 - - NULLIF ( 33, 73 + + - 31 + + 83 ) * 28 )
----
17

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL NULLIF ( + 17, COUNT ( * ) * - - 83 * + 95 - - NULLIF ( 33, 73 + + - 31 + + 83 ) * 28 )
----
17

query II rowsort
SELECT ALL - 62 AS col1, + 58 AS col2
----
-62
58

query I rowsort
SELECT 36 * - ( - 97 ) AS col2
----
3492

query II rowsort
SELECT 13 * + - 4 AS col2, 74 AS col0
----
-52
74

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT 23 * + - 98 * - COUNT( * ) AS col1
----
2254

skipif mysql # not compatible
query I rowsort label-196
SELECT 23 * + - 98 * - COUNT ( * ) AS col1
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT ALL + 0 / - CASE + + 37 WHEN 48 THEN + + 95 - - 13 + - - ( - 7 ) / 61 WHEN + COUNT( ALL 74 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL + 0 / - CASE + + 37 WHEN 48 THEN + + 95 - - 13 + - - ( - 7 ) / 61 WHEN + COUNT ( ALL 74 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-198
SELECT ALL - 28 * + 72, 73 DIV + 87 * + + 98 AS col1
----
-2016
0

skipif mysql # not compatible
query II rowsort label-198
SELECT ALL - 28 * + 72, 73 / + 87 * + + 98 AS col1
----
-2016
0

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT ALL 1 / - CASE 79 WHEN - 70 THEN - - NULLIF ( + - 74, 7 ) + + - 97 WHEN 48 + - MIN( + - 24 ) THEN NULL END * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL 1 / - CASE 79 WHEN - 70 THEN - - NULLIF ( + - 74, 7 ) + + - 97 WHEN 48 + - MIN ( + - 24 ) THEN NULL END * + 37
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT ALL - SUM( - 87 ) col0, 81 AS col0
----
87
81

skipif mysql # not compatible
query II rowsort label-201
SELECT ALL - SUM ( - 87 ) col0, 81 AS col0
----
87
81

query I rowsort
SELECT 32 + - 48 + + - 21 * - 26 * + + 67 AS col0
----
36566

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

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

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

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

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

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

query I rowsort
SELECT + 66 * 6 - - - 0 AS col1
----
396

query I rowsort
SELECT ALL + 15 * + + 55 col2
----
825

query I rowsort
SELECT DISTINCT + - 49 + 64
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-209
SELECT ALL + 32 AS col0, + 11 * - ( + COUNT( * ) ) * 66
----
32
-726

skipif mysql # not compatible
query II rowsort label-209
SELECT ALL + 32 AS col0, + 11 * - ( + COUNT ( * ) ) * 66
----
32
-726

query I rowsort
SELECT + - 76 + + 48 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-211
SELECT ALL 85 + + COUNT( * ) AS col1, - 40
----
86
-40

skipif mysql # not compatible
query II rowsort label-211
SELECT ALL 85 + + COUNT ( * ) AS col1, - 40
----
86
-40

query I rowsort
SELECT - 99 + - 85 AS col0
----
-184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-213
SELECT + - ( - 19 ) DIV + NULLIF ( + - 29, + - ( CAST( NULL AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-213
SELECT + - ( - 19 ) / + NULLIF ( + - 29, + - ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
0

query I rowsort
SELECT + + 49 * 54 AS col1
----
2646

query II rowsort
SELECT - + 68, - COALESCE ( + - 73, - 36 * + - 61 + - 44 + + 13, 53 ) col0
----
-68
73

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT ALL CASE 35 WHEN + MIN( DISTINCT - 88 ) THEN NULL WHEN COUNT( * ) / 67 THEN + 75 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL CASE 35 WHEN + MIN ( DISTINCT - 88 ) THEN NULL WHEN COUNT ( * ) / 67 THEN + 75 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT DISTINCT 97 - - + NULLIF ( 57, - ( + 84 ) ) + - - 8 * + - MAX( 94 ) AS col1
----
-598

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT 97 - - + NULLIF ( 57, - ( + 84 ) ) + - - 8 * + - MAX ( 94 ) AS col1
----
-598

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-218
SELECT DISTINCT - 88, + CASE + 6 WHEN - + 32 THEN - 54 END / - CAST( - 41 AS SIGNED ) AS col2
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-218
SELECT DISTINCT - 88, + CASE + 6 WHEN - + 32 THEN - 54 END / - CAST ( - 41 AS INTEGER ) AS col2
----
-88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT ALL 41 DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL 41 / - 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT + 68 + - + SUM( DISTINCT + 54 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-220
SELECT + 68 + - + SUM ( DISTINCT + 54 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT + 85 - + + MIN( - - 8 )
----
77

skipif mysql # not compatible
query I rowsort label-221
SELECT + 85 - + + MIN ( - - 8 )
----
77

query I rowsort
SELECT + 44 * + 83 col0
----
3652

query I rowsort
SELECT + 62 + - - 13 * 6 + + - 21 * + 9 + - + ( - 11 ) + 44 * - + 39
----
-1754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-224
SELECT DISTINCT CASE - COUNT( * ) WHEN 90 THEN 10 + - AVG ( + + CAST( + - 58 AS SIGNED ) ) ELSE NULL END * - 27 * - COUNT( ALL + - ( + 88 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT CASE - COUNT ( * ) WHEN 90 THEN 10 + - AVG ( + + CAST ( + - 58 AS INTEGER ) ) ELSE NULL END * - 27 * - COUNT ( ALL + - ( + 88 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-225
SELECT - 7 DIV ( + + ( + ( + COUNT( * ) ) ) ) + - + 47
----
-54

skipif mysql # not compatible
query I rowsort label-225
SELECT - 7 / ( + + ( + ( + COUNT ( * ) ) ) ) + - + 47
----
-54

query I rowsort
SELECT ALL + NULLIF ( - 14, - - 85 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT - COUNT( * ) * - 8 * + 4
----
32

skipif mysql # not compatible
query I rowsort label-227
SELECT - COUNT ( * ) * - 8 * + 4
----
32

query I rowsort
SELECT - 8 - 8 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - CASE 49 WHEN + COALESCE ( + 31, 3 + + - 59 ) + - 69 * 56 THEN NULL WHEN + 73 * + - COUNT( * ) + 41 - 71 THEN 73 END * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-229
SELECT - CASE 49 WHEN + COALESCE ( + 31, 3 + + - 59 ) + - 69 * 56 THEN NULL WHEN + 73 * + - COUNT ( * ) + 41 - 71 THEN 73 END * 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-230
SELECT ( - - 65 ), 37 * CAST( - + AVG ( 34 ) AS SIGNED ) DIV + + COUNT( * ) - - + 26 AS col2
----
65
-1232

skipif mysql # not compatible
query II rowsort label-230
SELECT ( - - 65 ), 37 * CAST ( - + AVG ( 34 ) AS INTEGER ) / + + COUNT ( * ) - - + 26 AS col2
----
65
-1232

onlyif mysql # aggregate syntax: 
query II rowsort label-231
SELECT DISTINCT + 42 * - COUNT( * ), - 39 * + + 83 + - + 62 + + ( - + COUNT( * ) ) + + 95 + - + 10 AS col0
----
-42
-3215

skipif mysql # not compatible
query II rowsort label-231
SELECT DISTINCT + 42 * - COUNT ( * ), - 39 * + + 83 + - + 62 + + ( - + COUNT ( * ) ) + + 95 + - + 10 AS col0
----
-42
-3215

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-232
SELECT - NULLIF ( + 68, + - 9 - + ( 28 ) * NULLIF ( - - 11, + - CASE 45 WHEN - + 32 THEN NULL WHEN - 38 + - - COUNT( * ) THEN + 44 END * - 81 ) * ( + ( - 80 ) ) + + - 11 - - 76 DIV ( 84 ) * + - COUNT( * ) + - CAST( NULL AS DECIMAL ) * - ( + 75 ) ) DIV - - COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-232
SELECT - NULLIF ( + 68, + - 9 - + ( 28 ) * NULLIF ( - - 11, + - CASE 45 WHEN - + 32 THEN NULL WHEN - 38 + - - COUNT ( * ) THEN + 44 END * - 81 ) * ( + ( - 80 ) ) + + - 11 - - 76 / ( 84 ) * + - COUNT ( * ) + - CAST ( NULL AS REAL ) * - ( + 75 ) ) / - - COUNT ( * ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-233
SELECT + 68 DIV - 18 + + 37 AS col1, ( 25 ) + - 1 + + + 90 * + - 13 * 17
----
34
-19866

skipif mysql # not compatible
query II rowsort label-233
SELECT + 68 / - 18 + + 37 AS col1, ( 25 ) + - 1 + + + 90 * + - 13 * 17
----
34
-19866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT - ( + 84 ) + 59 * - AVG ( + - CAST( NULL AS SIGNED ) ) - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT - ( + 84 ) + 59 * - AVG ( + - CAST ( NULL AS INTEGER ) ) - - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL - COUNT( * ) * 90 - - ( + ( - 67 ) )
----
-157

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL - COUNT ( * ) * 90 - - ( + ( - 67 ) )
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - 68 * - ( 42 ) + - + COUNT( * ) + - 26 * + COUNT( * ) + - + 27 + 81
----
2883

skipif mysql # not compatible
query I rowsort label-236
SELECT - 68 * - ( 42 ) + - + COUNT ( * ) + - 26 * + COUNT ( * ) + - + 27 + 81
----
2883

query I rowsort
SELECT ALL - 31 * 72 * - 67 + + + 77
----
149621

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-238
SELECT - - NULLIF ( - ( + 50 ), - + 9 + 53 / 12 + 40 ) + + - 33 + + 37 - + 99 * - + 73 * - CAST( NULL AS DECIMAL ) * + 46 * - 37 / - 69 * - ( + SUM( ALL + + 77 ) ) + + - 62 / + ( + - AVG ( ALL + + 17 ) ) * + MAX( - 17 ) * + + SUM( - 93 ) + + 76 / 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT - - NULLIF ( - ( + 50 ), - + 9 + 53 / 12 + 40 ) + + - 33 + + 37 - + 99 * - + 73 * - CAST ( NULL AS REAL ) * + 46 * - 37 / - 69 * - ( + SUM ( ALL + + 77 ) ) + + - 62 / + ( + - AVG ( ALL + + 17 ) ) * + MAX ( - 17 ) * + + SUM ( - 93 ) + + 76 / 27 AS col1
----
NULL

query I rowsort
SELECT - - 39 + + + 76 AS col2
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT + + CASE + 11 WHEN - 1 THEN + 30 WHEN + 71 + + 40 + - - 50 * CAST( + 44 AS SIGNED ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END + - 60 * + CAST( - 33 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT + + CASE + 11 WHEN - 1 THEN + 30 WHEN + 71 + + 40 + - - 50 * CAST ( + 44 AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END + - 60 * + CAST ( - 33 AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 30 * - 98 - - + 26
----
-2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-243
SELECT - COUNT( * ) + 70 col1, CAST( NULL AS SIGNED )
----
69
NULL

skipif mysql # not compatible
query II rowsort label-243
SELECT - COUNT ( * ) + 70 col1, CAST ( NULL AS INTEGER )
----
69
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT DISTINCT - + COALESCE ( + + 30, + 24 ) - + 93 DIV + + 23 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT - + COALESCE ( + + 30, + 24 ) - + 93 / + + 23 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - COUNT( * ) + + 31 + + 0 + - 48 * - 32
----
1566

skipif mysql # not compatible
query I rowsort label-245
SELECT - COUNT ( * ) + + 31 + + 0 + - 48 * - 32
----
1566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT DISTINCT + + 29 * + - CAST( NULL AS SIGNED ) / - 15 - + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT + + 29 * + - CAST ( NULL AS INTEGER ) / - 15 - + + 33 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL SUM ( - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT DISTINCT + 49 * + MAX( ALL + 49 ) * 46 * - ( MIN( + - 42 ) ) AS col2
----
4638732

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + 49 * + MAX ( ALL + 49 ) * 46 * - ( MIN ( + - 42 ) ) AS col2
----
4638732

query I rowsort
SELECT + CASE + ( + 79 ) WHEN 8 THEN NULL WHEN - 63 * - 79 * - 22 + + 30 THEN NULL WHEN 48 THEN + + ( 7 ) END
----
NULL

query II rowsort
SELECT + 74 + - 51 * 18 * - 18 + - 95 * - 43 AS col1, 71 AS col2
----
20683
71

query I rowsort
SELECT - 44 * + 62 AS col2
----
-2728

query I rowsort
SELECT + 50 + + 3 AS col1
----
53

query I rowsort
SELECT - NULLIF ( + 60, - + 1 * 41 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT DISTINCT - MAX( - - 75 ) * - 96 * - - MAX( DISTINCT - 33 ) * + + ( 7 ) col1
----
-1663200

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT - MAX ( - - 75 ) * - 96 * - - MAX ( DISTINCT - 33 ) * + + ( 7 ) col1
----
-1663200

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT DISTINCT 91 DIV 28
----
3

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT 91 / 28
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-256
SELECT ALL 26 * CASE - + 50 WHEN - 97 * + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) WHEN - 48 THEN NULL WHEN - 87 THEN + + 81 * 12 + + + 65 * + 15 + - 85 - - - 60 * + MAX( 2 ) ELSE - 39 DIV + COUNT( * ) * + COUNT( * ) END col1
----
-1014

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL 26 * CASE - + 50 WHEN - 97 * + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) WHEN - 48 THEN NULL WHEN - 87 THEN + + 81 * 12 + + + 65 * + 15 + - 85 - - - 60 * + MAX ( 2 ) ELSE - 39 / + COUNT ( * ) * + COUNT ( * ) END col1
----
-1014

query I rowsort
SELECT ALL ( - ( + 62 ) ) + 39 AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-258
SELECT DISTINCT 55 DIV - 13 * + 72 DIV - - 65
----
-4

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT 55 / - 13 * + 72 / - - 65
----
-4

query I rowsort
SELECT + 78 * - 14 AS col1
----
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT ( - ( + 3 ) ) DIV + - ( - 66 ) + - 93 DIV 74 * - 51
----
51

skipif mysql # not compatible
query I rowsort label-260
SELECT ( - ( + 3 ) ) / + - ( - 66 ) + - 93 / 74 * - 51
----
51

query I rowsort
SELECT ALL 90 * 14 * 66 AS col0
----
83160

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + MAX( DISTINCT - + 18 ) * 21
----
-378

skipif mysql # not compatible
query I rowsort label-262
SELECT + MAX ( DISTINCT - + 18 ) * 21
----
-378

query I rowsort
SELECT + ( + NULLIF ( 21, + 31 ) ) * - 8 AS col2
----
-168

query I rowsort
SELECT DISTINCT 84 + 89 AS col2
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-265
SELECT DISTINCT CAST( 79 AS SIGNED ) + + - 11 AS col2, COUNT( * )
----
68
1

skipif mysql # not compatible
query II rowsort label-265
SELECT DISTINCT CAST ( 79 AS INTEGER ) + + - 11 AS col2, COUNT ( * )
----
68
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT CAST( - 2 AS SIGNED ) * 32 * 85 AS col1
----
-5440

skipif mysql # not compatible
query I rowsort label-266
SELECT CAST ( - 2 AS INTEGER ) * 32 * 85 AS col1
----
-5440

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

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

query I rowsort
SELECT ALL + + 11 + - + 96 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT 49 DIV - 46 + 40 col0
----
39

skipif mysql # not compatible
query I rowsort label-269
SELECT 49 / - 46 + 40 col0
----
39

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

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

query II rowsort
SELECT + 7 AS col0, 18 AS col2
----
7
18

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

skipif mysql # not compatible
query I rowsort label-272
SELECT COUNT ( * ) / + 14 AS col0
----
0

query I rowsort
SELECT ALL - - 7 * + 22 * 38 * - - 88 col0
----
514976

query I rowsort
SELECT DISTINCT - 60 - - 49
----
-11

query I rowsort
SELECT ( + - 4 ) * - + 66 AS col2
----
264

query I rowsort
SELECT ALL + - 27 * - + ( - - 36 ) + + 56 AS col2
----
1028

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

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

query I rowsort
SELECT 30 * + - 55 AS col2
----
-1650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-279
SELECT - COALESCE ( - COUNT( * ), 13 * - 66 DIV - 39, + 61 * 5 ) * - 30 - + + 4
----
-34

skipif mysql # not compatible
query I rowsort label-279
SELECT - COALESCE ( - COUNT ( * ), 13 * - 66 / - 39, + 61 * 5 ) * - 30 - + + 4
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-280
SELECT 35 + 10 DIV ( - - COUNT( * ) ) + CAST( - CAST( + CAST( + 56 AS SIGNED ) AS SIGNED ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-280
SELECT 35 + 10 / ( - - COUNT ( * ) ) + CAST ( - CAST ( + CAST ( + 56 AS INTEGER ) AS INTEGER ) AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-281
SELECT ALL 85 * - ( COUNT( * ) ) * 28 + - - 98 * 43 * 64, 22 * + 67 AS col1
----
267316
1474

skipif mysql # not compatible
query II rowsort label-281
SELECT ALL 85 * - ( COUNT ( * ) ) * 28 + - - 98 * 43 * 64, 22 * + 67 AS col1
----
267316
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT 22 + - + CASE - 40 WHEN - 37 - 60 + + 88 THEN + + NULLIF ( 56, - 87 ) * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT 22 + - + CASE - 40 WHEN - 37 - 60 + + 88 THEN + + NULLIF ( 56, - 87 ) * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 97 + 55 + - - 87 * + 77 * - + 40
----
-267808

query I rowsort
SELECT ALL - 42 * - 99 AS col0
----
4158

query II rowsort
SELECT 77 * + + 64 AS col2, 77 + + 68 + 57 * - 22 AS col0
----
4928
-1109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-286
SELECT 48 + COUNT( * ) + + - 59 + - SUM( DISTINCT - + CAST( - 70 AS SIGNED ) ) + CAST( NULL AS SIGNED ) * + ( 56 ) * 89 / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-286
SELECT 48 + COUNT ( * ) + + - 59 + - SUM ( DISTINCT - + CAST ( - 70 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * + ( 56 ) * 89 / 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-287
SELECT ALL 43 + - - 62 AS col0, - 77 + CAST( NULL AS SIGNED )
----
105
NULL

skipif mysql # not compatible
query II rowsort label-287
SELECT ALL 43 + - - 62 AS col0, - 77 + CAST ( NULL AS INTEGER )
----
105
NULL

query I rowsort
SELECT ALL - ( - - 24 ) col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-289
SELECT 70 * + + 77 + - - 55 + - CASE + + COUNT( * ) WHEN - - COUNT( * ) THEN - 21 DIV + 47 + - 21 * COUNT( DISTINCT 26 ) * + 77 WHEN - ( + 2 ) THEN - NULLIF ( 70, - ( + - ( 3 ) ) ) ELSE NULL END + - + 27 + + 21 * + + 50
----
8085

skipif mysql # not compatible
query I rowsort label-289
SELECT 70 * + + 77 + - - 55 + - CASE + + COUNT ( * ) WHEN - - COUNT ( * ) THEN - 21 / + 47 + - 21 * COUNT ( DISTINCT 26 ) * + 77 WHEN - ( + 2 ) THEN - NULLIF ( 70, - ( + - ( 3 ) ) ) ELSE NULL END + - + 27 + + 21 * + + 50
----
8085

onlyif mysql # DIV for integer division: 
query I rowsort label-290
SELECT ALL 36 DIV + + 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL 36 / + + 50 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT + 60 DIV 72 * 8 + + 98
----
98

skipif mysql # not compatible
query I rowsort label-291
SELECT + 60 / 72 * 8 + + 98
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT ALL + 70 + + 44 + - NULLIF ( + 10, + 33 ) AS col0, + ( - CASE 4 WHEN - MIN( DISTINCT - + 29 ) THEN + 34 END ) + 71
----
104
NULL

skipif mysql # not compatible
query II rowsort label-292
SELECT ALL + 70 + + 44 + - NULLIF ( + 10, + 33 ) AS col0, + ( - CASE 4 WHEN - MIN ( DISTINCT - + 29 ) THEN + 34 END ) + 71
----
104
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT SUM( - 79 ) + 90 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-293
SELECT SUM ( - 79 ) + 90 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT ALL + 83 DIV - 15 + + 63 + 61 + + 50 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL + 83 / - 15 + + 63 + 61 + + 50 AS col2
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT 17 + - COUNT( - 55 )
----
16

skipif mysql # not compatible
query I rowsort label-295
SELECT 17 + - COUNT ( - 55 )
----
16

query I rowsort
SELECT 97 * - 47 + 53 + + 95
----
-4411

query I rowsort
SELECT 56 + 10
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-298
SELECT ALL NULLIF ( 71, - COUNT( * ) * + 20 DIV + COALESCE ( - + 6, + MAX( ALL + - COALESCE ( - - CAST( NULL AS SIGNED ), + NULLIF ( + ( - 23 ), - 97 ) ) ) ) ) * - COALESCE ( - MAX( DISTINCT + 10 ), 54 + - 3, 97 ), 97 + + - 58 DIV MIN( + 50 ) AS col0
----
710
96

skipif mysql # not compatible
query II rowsort label-298
SELECT ALL NULLIF ( 71, - COUNT ( * ) * + 20 / + COALESCE ( - + 6, + MAX ( ALL + - COALESCE ( - - CAST ( NULL AS INTEGER ), + NULLIF ( + ( - 23 ), - 97 ) ) ) ) ) * - COALESCE ( - MAX ( DISTINCT + 10 ), 54 + - 3, 97 ), 97 + + - 58 / MIN ( + 50 ) AS col0
----
710
96

query I rowsort
SELECT - 88 + + - 63 * - 13
----
731

onlyif mysql # aggregate syntax: 
query II rowsort label-300
SELECT ALL - MIN( DISTINCT + 72 ) AS col0, - 42 AS col2
----
-72
-42

skipif mysql # not compatible
query II rowsort label-300
SELECT ALL - MIN ( DISTINCT + 72 ) AS col0, - 42 AS col2
----
-72
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT - - MIN( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT - - MIN ( ALL 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL + ( - - 34 ) * + COUNT( * ) * + - 25 - - 85
----
-765

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL + ( - - 34 ) * + COUNT ( * ) * + - 25 - - 85
----
-765

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

query I rowsort
SELECT - ( + NULLIF ( + 73, 77 ) ) + + - ( - 20 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT 45 * - + MAX( DISTINCT - - 35 ) AS col1
----
-1575

skipif mysql # not compatible
query I rowsort label-305
SELECT 45 * - + MAX ( DISTINCT - - 35 ) AS col1
----
-1575

query I rowsort
SELECT 89 * - ( 78 ) * - + 87 * - + 14 AS col2
----
-8455356

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT DISTINCT - 99 DIV - 91
----
1

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT - 99 / - 91
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-308
SELECT ALL COUNT( * ) DIV + + COUNT( ALL + 2 ) * + COUNT( * )
----
1

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

query I rowsort
SELECT DISTINCT + 28 * + 79 AS col0
----
2212

query I rowsort
SELECT ALL 21 + 34
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL CASE + 82 WHEN COUNT( * ) THEN + 69 / 1 WHEN + 74 + 83 - 81 - + + 12 THEN + - 46 END + + + ( - 11 ) + + NULLIF ( + + COALESCE ( - + 30, 80 + 11 + - 39 * - + 7 ), - 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL CASE + 82 WHEN COUNT ( * ) THEN + 69 / 1 WHEN + 74 + 83 - 81 - + + 12 THEN + - 46 END + + + ( - 11 ) + + NULLIF ( + + COALESCE ( - + 30, 80 + 11 + - 39 * - + 7 ), - 46 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 55 + - 62 + 52 AS col2
----
-65

query I rowsort
SELECT 32 * - 11 AS col1
----
-352

query I rowsort
SELECT 67 + 39 AS col2
----
106

query I rowsort
SELECT 70 * - 34
----
-2380

query II rowsort
SELECT ALL + 1 + - ( + 19 ), ( - - 46 ) * 18 AS col2
----
-18
828

query I rowsort
SELECT - 37 + 65 * + 85 * + 72 + - 42 + - - 20 - + + 66 col2
----
397675

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

query I rowsort
SELECT - 49 * 80 AS col2
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL SUM( DISTINCT - 30 ) + 47 * - 59 * - COUNT( * ) col2
----
2743

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL SUM ( DISTINCT - 30 ) + 47 * - 59 * - COUNT ( * ) col2
----
2743

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT NULLIF ( - - 28, + MIN( ALL 79 ) - - 31 + 22 * COUNT( * ) * + 75 * + NULLIF ( + - COUNT( * ), + + MAX( - 47 ) ) * + COUNT( * ) / 41 )
----
28

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT NULLIF ( - - 28, + MIN ( ALL 79 ) - - 31 + 22 * COUNT ( * ) * + 75 * + NULLIF ( + - COUNT ( * ), + + MAX ( - 47 ) ) * + COUNT ( * ) / 41 )
----
28

query I rowsort
SELECT ALL CASE - + 67 WHEN - 17 THEN - + 26 * + + 61 * + 76 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT ALL - COUNT( * ) * + 75 * - + 8 AS col1
----
600

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL - COUNT ( * ) * + 75 * - + 8 AS col1
----
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT ALL - 38 + - 75 + - 57 + + CAST( 1 AS SIGNED ) AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL - 38 + - 75 + - 57 + + CAST ( 1 AS INTEGER ) AS col0
----
-169

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT - 21 - COALESCE ( COUNT( * ), 66 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT - 21 - COALESCE ( COUNT ( * ), 66 ) AS col1
----
-22

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

query I rowsort
SELECT DISTINCT + 5 * 49 col2
----
245

query I rowsort
SELECT DISTINCT + - CASE - + 28 WHEN + 73 THEN - 36 WHEN + 13 * - - 77 + + - 70 * - - ( - 92 ) + + 67 + + - 38 THEN NULL ELSE + + 47 END
----
-47

query II rowsort
SELECT 17, + 25 AS col1
----
17
25

query I rowsort
SELECT + - 16 * - + 11
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT + SUM( ALL 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT + SUM ( ALL 38 ) AS col0
----
38

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-334
SELECT - MAX( DISTINCT + + 84 ) + CAST( NULL AS DECIMAL ) + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT - MAX ( DISTINCT + + 84 ) + CAST ( NULL AS REAL ) + 62
----
NULL

query II rowsort
SELECT + + 68 AS col0, 49
----
68
49

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT - MIN( DISTINCT 90 ) + + - 72, - ( - 65 ) AS col2
----
-162
65

skipif mysql # not compatible
query II rowsort label-336
SELECT - MIN ( DISTINCT 90 ) + + - 72, - ( - 65 ) AS col2
----
-162
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-337
SELECT - + 39 DIV - - 34 - 82 + SUM( ALL - 81 ) col1
----
-164

skipif mysql # not compatible
query I rowsort label-337
SELECT - + 39 / - - 34 - 82 + SUM ( ALL - 81 ) col1
----
-164

query I rowsort
SELECT - - 46 * + + 95 + - - 91 + + 73 AS col2
----
4534

query I rowsort
SELECT DISTINCT + 89 * - ( + 96 ) + 72
----
-8472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-340
SELECT ALL - 70 * + - CASE + ( + 2 ) WHEN - + 18 THEN - 33 WHEN + + 61 + - 61 THEN NULL WHEN + 77 * + - CAST( + 42 AS SIGNED ) THEN 78 ELSE + - 98 END
----
-6860

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL - 70 * + - CASE + ( + 2 ) WHEN - + 18 THEN - 33 WHEN + + 61 + - 61 THEN NULL WHEN + 77 * + - CAST ( + 42 AS INTEGER ) THEN 78 ELSE + - 98 END
----
-6860

onlyif mysql # aggregate syntax: 
query II rowsort label-341
SELECT + 27 col2, 39 * COUNT( + - 7 ) AS col0
----
27
39

skipif mysql # not compatible
query II rowsort label-341
SELECT + 27 col2, 39 * COUNT ( + - 7 ) AS col0
----
27
39

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT + - 59 * - + 52 * - COUNT( * ) + 37
----
-3031

skipif mysql # not compatible
query I rowsort label-342
SELECT + - 59 * - + 52 * - COUNT ( * ) + 37
----
-3031

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT DISTINCT - + COUNT( * ) * - 41 + 32
----
73

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT - + COUNT ( * ) * - 41 + 32
----
73

query I rowsort
SELECT + 15 * + 7 AS col1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-345
SELECT ALL - 72 * 78 * - 61 + + 7 + - + 73 + + 19 - 95 AS col0, CAST( 42 AS SIGNED ) col1
----
342434
42

skipif mysql # not compatible
query II rowsort label-345
SELECT ALL - 72 * 78 * - 61 + + 7 + - + 73 + + 19 - 95 AS col0, CAST ( 42 AS INTEGER ) col1
----
342434
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-346
SELECT DISTINCT COALESCE ( CASE + 54 WHEN - - CAST( + - 1 AS SIGNED ) THEN + 67 WHEN - 4 THEN NULL ELSE NULL END, - 39 * + 12 ) * - COUNT( * ) AS col2
----
468

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT COALESCE ( CASE + 54 WHEN - - CAST ( + - 1 AS INTEGER ) THEN + 67 WHEN - 4 THEN NULL ELSE NULL END, - 39 * + 12 ) * - COUNT ( * ) AS col2
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT + 62 + - 49 + - COALESCE ( 21, - - 13 ) - + COUNT( ALL - 28 ) * + - 27 * + + 53 - + - 27
----
1450

skipif mysql # not compatible
query I rowsort label-347
SELECT + 62 + - 49 + - COALESCE ( 21, - - 13 ) - + COUNT ( ALL - 28 ) * + - 27 * + + 53 - + - 27
----
1450

query I rowsort
SELECT + CASE - 25 WHEN 17 * CASE 25 WHEN - 96 + + 2 THEN NULL ELSE + 1 END THEN - 39 END * + 36
----
NULL

query I rowsort
SELECT ALL 26 + - - 49 + + + 25
----
100

query I rowsort
SELECT - ( + COALESCE ( - + 30, 46 + - 47 ) )
----
30

query II rowsort
SELECT ALL 72 AS col2, 66 col2
----
72
66

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

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

query I rowsort
SELECT ALL 31 - + - 86 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT DISTINCT NULLIF ( + 97, + 89 * - + 37 * - 32 * COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT NULLIF ( + 97, + 89 * - + 37 * - 32 * COUNT ( * ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT DISTINCT 66 - ( - ( + COUNT( * ) ) ) * - 58
----
8

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT 66 - ( - ( + COUNT ( * ) ) ) * - 58
----
8

query I rowsort
SELECT DISTINCT 25 * + + 76
----
1900

query I rowsort
SELECT + 89 + - - 96
----
185

query I rowsort
SELECT DISTINCT 1 * 61 * - + 38 * + 0 * - 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL MAX( DISTINCT 70 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL MAX ( DISTINCT 70 ) col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-360
SELECT + COUNT( * ) + ( + 74 ) * + + CASE - 77 WHEN - 10 THEN + 88 + + + 78 + - + 24 + - 95 / - + 91 * - 18 + 50 - + - 23 / 32 WHEN 41 + - ( 38 ) + - CASE + 74 WHEN - + 0 / + 94 * - 97 * - - 64 * - COALESCE ( - 90, + - 12 ) - - MIN( ALL + + 92 ) THEN - COALESCE ( 18, 31 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 54 THEN + 97 / + 84 + ( MAX( DISTINCT - 36 ) ) ELSE NULL END + COUNT( * ) * 43 THEN NULL END / + 0 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT + COUNT ( * ) + ( + 74 ) * + + CASE - 77 WHEN - 10 THEN + 88 + + + 78 + - + 24 + - 95 / - + 91 * - 18 + 50 - + - 23 / 32 WHEN 41 + - ( 38 ) + - CASE + 74 WHEN - + 0 / + 94 * - 97 * - - 64 * - COALESCE ( - 90, + - 12 ) - - MIN ( ALL + + 92 ) THEN - COALESCE ( 18, 31 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 54 THEN + 97 / + 84 + ( MAX ( DISTINCT - 36 ) ) ELSE NULL END + COUNT ( * ) * 43 THEN NULL END / + 0 + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + - 70 + - - ( 83 ) + - - 64 AS col1
----
77

query I rowsort
SELECT ALL ( + ( - 55 ) ) AS col0
----
-55

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

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

query II rowsort
SELECT ALL + 16 AS col2, + 36 * - + 80
----
16
-2880

query II rowsort
SELECT DISTINCT + + 57 AS col2, 24 col0
----
57
24

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - 97 + + 32 * ( + MAX( ALL - + 41 ) )
----
-1409

skipif mysql # not compatible
query I rowsort label-366
SELECT - 97 + + 32 * ( + MAX ( ALL - + 41 ) )
----
-1409

query I rowsort
SELECT - + 54 + 84
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT + + CASE - - 81 WHEN 89 + + MAX( ALL - + 31 ) * - 69 THEN + 0 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-369
SELECT + + CASE - - 81 WHEN 89 + + MAX ( ALL - + 31 ) * - 69 THEN + 0 ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT 79 * + 58 + + 55 AS col2
----
4637

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT ALL - 49 DIV 32 + + + 33
----
32

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL - 49 / 32 + + + 33
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-372
SELECT 0, + CAST( + - 0 AS SIGNED )
----
0
0

skipif mysql # not compatible
query II rowsort label-372
SELECT 0, + CAST ( + - 0 AS INTEGER )
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-373
SELECT DISTINCT + + COUNT( * ) DIV 46 + + 96
----
96

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT + + COUNT ( * ) / 46 + + 96
----
96

query I rowsort
SELECT - 99 * - 77 col0
----
7623

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT DISTINCT 20 * COUNT( * ) + + + 29
----
49

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT 20 * COUNT ( * ) + + + 29
----
49

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

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT + CAST ( - 9 AS INTEGER ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-378
SELECT - 3 + + - 8, COUNT( * ) AS col2
----
-11
1

skipif mysql # not compatible
query II rowsort label-378
SELECT - 3 + + - 8, COUNT ( * ) AS col2
----
-11
1

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

skipif mysql # not compatible
query I rowsort label-379
SELECT - 62 * - - 0 * COUNT ( ALL 34 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT + 68 * + MIN( 98 )
----
6664

skipif mysql # not compatible
query I rowsort label-380
SELECT + 68 * + MIN ( 98 )
----
6664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-381
SELECT ALL - CAST( NULL AS SIGNED ) / - 15 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL - CAST ( NULL AS INTEGER ) / - 15 * 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT NULLIF ( - 83, ( - NULLIF ( 13, 48 ) ) * + 29 ), COUNT( ALL 17 ) col1
----
-83
1

skipif mysql # not compatible
query II rowsort label-382
SELECT NULLIF ( - 83, ( - NULLIF ( 13, 48 ) ) * + 29 ), COUNT ( ALL 17 ) col1
----
-83
1

query I rowsort
SELECT ALL 67 + 61 col1
----
128

query II rowsort
SELECT 51 * 12 AS col0, 15 AS col2
----
612
15

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

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

query I rowsort
SELECT ALL 20 * ( 22 )
----
440

query I rowsort
SELECT ALL + 38 - 86 AS col0
----
-48

query II rowsort
SELECT ALL 66 - 72 AS col1, 16 AS col0
----
-6
16

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ( + 21 ) + - ( - + COUNT( * ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-389
SELECT ( + 21 ) + - ( - + COUNT ( * ) ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-390
SELECT CAST( NULL AS SIGNED ) * - 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT CAST ( NULL AS INTEGER ) * - 2 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT ( - + 21 ) * + 77 + ( - - 5 ) * - COALESCE ( - ( + 64 ), - COUNT( * ) ) col0
----
-1297

skipif mysql # not compatible
query I rowsort label-391
SELECT ( - + 21 ) * + 77 + ( - - 5 ) * - COALESCE ( - ( + 64 ), - COUNT ( * ) ) col0
----
-1297

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT CASE COUNT( * ) WHEN 31 THEN - - 55 + 4 ELSE - - MAX( + ( 22 ) ) END * 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT CASE COUNT ( * ) WHEN 31 THEN - - 55 + 4 ELSE - - MAX ( + ( 22 ) ) END * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL MIN( DISTINCT - 96 ) * 74
----
-7104

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL MIN ( DISTINCT - 96 ) * 74
----
-7104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-394
SELECT ALL CASE + + CAST( NULL AS SIGNED ) WHEN - - 86 / - + ( 45 ) + MAX( ALL ( - 96 ) ) THEN - ( + 52 ) + - 27 WHEN - ( - + 63 ) * 2 THEN - 99 ELSE NULL END, 15 * ( - - 85 ) + + 39 AS col1
----
NULL
1314

skipif mysql # not compatible
query II rowsort label-394
SELECT ALL CASE + + CAST ( NULL AS INTEGER ) WHEN - - 86 / - + ( 45 ) + MAX ( ALL ( - 96 ) ) THEN - ( + 52 ) + - 27 WHEN - ( - + 63 ) * 2 THEN - 99 ELSE NULL END, 15 * ( - - 85 ) + + 39 AS col1
----
NULL
1314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-395
SELECT - CAST( - + COUNT( * ) AS SIGNED ) DIV - ( + 62 ) * + 99 AS col2, + ( + + 79 )
----
0
79

skipif mysql # not compatible
query II rowsort label-395
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) / - ( + 62 ) * + 99 AS col2, + ( + + 79 )
----
0
79

query I rowsort
SELECT ALL + 94 + + 41 AS col0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-397
SELECT 74 * 23 - + - NULLIF ( + CAST( + + 72 AS SIGNED ), 31 )
----
1774

skipif mysql # not compatible
query I rowsort label-397
SELECT 74 * 23 - + - NULLIF ( + CAST ( + + 72 AS INTEGER ), 31 )
----
1774

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-398
SELECT + 48 DIV 2 AS col0, 74 - - + MIN( + 79 ) DIV - 45
----
24
73

skipif mysql # not compatible
query II rowsort label-398
SELECT + 48 / 2 AS col0, 74 - - + MIN ( + 79 ) / - 45
----
24
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-399
SELECT ALL - NULLIF ( + + 39, + 65 / - + 52 * 96 * - + 30 - - + ( - - ( - 71 ) ) + + ( - + COALESCE ( CASE WHEN + COUNT( * ) IN ( + + 84 / + COUNT( * ) + - - 72 + CASE + + COUNT( * ) WHEN 93 THEN + CASE + 32 WHEN 33 THEN + 68 END * - 50 * + 17 / - 76 + - + 86 + - - 66 ELSE NULL END * - CASE + + 55 WHEN + 39 * - COUNT( * ) THEN - MAX( + 44 ) + 83 WHEN 59 THEN NULL ELSE - 89 END ) THEN - 48 + 80 / - 28 ELSE + CASE + 68 WHEN + 71 * + CAST( NULL AS SIGNED ) + - 78 THEN 60 * + COUNT( * ) ELSE + 36 * 53 END * + 43 END, 29 - + 6 ) ) - 62 - - 82 * + 3 ) + + 99
----
60

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - NULLIF ( + + 39, + 65 / - + 52 * 96 * - + 30 - - + ( - - ( - 71 ) ) + + ( - + COALESCE ( CASE WHEN + COUNT ( * ) IN ( + + 84 / + COUNT ( * ) + - - 72 + CASE + + COUNT ( * ) WHEN 93 THEN + CASE + 32 WHEN 33 THEN + 68 END * - 50 * + 17 / - 76 + - + 86 + - - 66 ELSE NULL END * - CASE + + 55 WHEN + 39 * - COUNT ( * ) THEN - MAX ( + 44 ) + 83 WHEN 59 THEN NULL ELSE - 89 END ) THEN - 48 + 80 / - 28 ELSE + CASE + 68 WHEN + 71 * + CAST ( NULL AS INTEGER ) + - 78 THEN 60 * + COUNT ( * ) ELSE + 36 * 53 END * + 43 END, 29 - + 6 ) ) - 62 - - 82 * + 3 ) + + 99
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-400
SELECT COALESCE ( + 98, + MIN( + 74 ) ) * - + 49 + COUNT( ALL - 63 ) - + 32 * CASE CAST( 78 AS SIGNED ) WHEN - - 28 * 9 + - - CASE WHEN NOT 40 > NULL THEN NULL WHEN + 3 BETWEEN + 8 + + 74 AND ( NULL ) THEN COUNT( * ) + + ( - NULLIF ( + + 48, ( - + 26 ) ) ) * 43 * + + 67 * - - 97 * + 60 ELSE - CAST( NULL AS SIGNED ) END + - COALESCE ( ( + ( 84 ) ), - 12, - 99 ) + + 32 THEN NULL WHEN + 39 THEN - CAST( NULL AS SIGNED ) * 91 WHEN + COUNT( * ) THEN 48 * - 24 + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-400
SELECT COALESCE ( + 98, + MIN ( + 74 ) ) * - + 49 + COUNT ( ALL - 63 ) - + 32 * CASE CAST ( 78 AS INTEGER ) WHEN - - 28 * 9 + - - CASE WHEN NOT 40 > NULL THEN NULL WHEN + 3 BETWEEN + 8 + + 74 AND ( NULL ) THEN COUNT ( * ) + + ( - NULLIF ( + + 48, ( - + 26 ) ) ) * 43 * + + 67 * - - 97 * + 60 ELSE - CAST ( NULL AS INTEGER ) END + - COALESCE ( ( + ( 84 ) ), - 12, - 99 ) + + 32 THEN NULL WHEN + 39 THEN - CAST ( NULL AS INTEGER ) * 91 WHEN + COUNT ( * ) THEN 48 * - 24 + 51 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 80 + + 90
----
10

query I rowsort
SELECT DISTINCT + 1 + 7 * 5 * - 44 * 87 * 78 AS col0
----
-10450439

query I rowsort
SELECT ALL - 79 + 40 + + 16
----
-23

query I rowsort
SELECT NULLIF ( - 95, - 90 )
----
-95

query I rowsort
SELECT ALL 53 + - 5 AS col1
----
48

query I rowsort
SELECT ALL + 87 + 73
----
160

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

query I rowsort
SELECT 35 + 80 * 18
----
1475

query I rowsort
SELECT 70 * 79
----
5530

query I rowsort
SELECT ALL - 15 * 43 AS col2
----
-645

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

query I rowsort
SELECT ALL + 51 - - 34
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-413
SELECT + 58 AS col0, - NULLIF ( + + COUNT( - + 25 ), - 5 ) col0
----
58
-1

skipif mysql # not compatible
query II rowsort label-413
SELECT + 58 AS col0, - NULLIF ( + + COUNT ( - + 25 ), - 5 ) col0
----
58
-1

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

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

query II rowsort
SELECT ALL - 31, + 92 AS col0
----
-31
92

query I rowsort
SELECT ALL + 52 - - 12 - - + 19
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT 50 DIV + 63 col1
----
0

skipif mysql # not compatible
query I rowsort label-417
SELECT 50 / + 63 col1
----
0

query I rowsort
SELECT 86 * - 52
----
-4472

onlyif mysql # aggregate syntax: 
query II rowsort label-419
SELECT ALL 25, COUNT( ALL 89 ) AS col2
----
25
1

skipif mysql # not compatible
query II rowsort label-419
SELECT ALL 25, COUNT ( ALL 89 ) AS col2
----
25
1

query I rowsort
SELECT 60 + + + 46 * + 69 + - 98 AS col2
----
3136

query II rowsort
SELECT - 81 col0, - 50 AS col0
----
-81
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT DISTINCT MAX( ALL 87 )
----
87

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT MAX ( ALL 87 )
----
87

query I rowsort
SELECT ALL - 53 * + 23 AS col0
----
-1219

query I rowsort
SELECT ALL COALESCE ( + - 12, - - 52, 72 ) * - 73 AS col0
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT ( COUNT( * ) ) * - 32 * - 37 + + + 66
----
1250

skipif mysql # not compatible
query I rowsort label-425
SELECT ( COUNT ( * ) ) * - 32 * - 37 + + + 66
----
1250

query I rowsort
SELECT DISTINCT 31 * - - 8 AS col0
----
248

query I rowsort
SELECT + 5 + - 70
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-428
SELECT - CAST( - COALESCE ( 80, - - 43 / + 71 ) AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-428
SELECT - CAST ( - COALESCE ( 80, - - 43 / + 71 ) AS INTEGER )
----
80

query I rowsort
SELECT 89 + - - 52
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL 58 + + - 29 + + COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL 58 + + - 29 + + COUNT ( * ) col2
----
30

query II rowsort
SELECT - 72 AS col2, 84
----
-72
84

query II rowsort
SELECT - 11 AS col2, + 15 - - - 61
----
-11
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-433
SELECT ALL + 71 + + CAST( NULL AS SIGNED ) * + + COUNT( DISTINCT 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + 71 + + CAST ( NULL AS INTEGER ) * + + COUNT ( DISTINCT 32 )
----
NULL

query II rowsort
SELECT ALL - - 98, 72 AS col1
----
98
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-435
SELECT ALL - CAST( + 87 AS SIGNED ) * - 90 + + MAX( + 94 )
----
7924

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - CAST ( + 87 AS INTEGER ) * - 90 + + MAX ( + 94 )
----
7924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-436
SELECT ALL - 45, CAST( NULL AS SIGNED ) AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-436
SELECT ALL - 45, CAST ( NULL AS INTEGER ) AS col0
----
-45
NULL

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

query I rowsort
SELECT 35 * - + 76
----
-2660

query II rowsort
SELECT + - 37, 90 AS col1
----
-37
90

query I rowsort
SELECT DISTINCT + 4 * - 40 - 33 AS col1
----
-193

onlyif mysql # DIV for integer division: 
query I rowsort label-441
SELECT 56 DIV 58 + 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-441
SELECT 56 / 58 + 73 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-442
SELECT + COUNT( * ) DIV 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT + COUNT ( * ) / 5 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), + - 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT + MAX( ALL - 72 ) - + 95
----
-167

skipif mysql # not compatible
query I rowsort label-444
SELECT + MAX ( ALL - 72 ) - + 95
----
-167

query I rowsort
SELECT - 55 * - 10 AS col0
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT + 66 * + 50 * + + NULLIF ( - + 22, + 91 + 66 * - 8 ) * - COUNT( * ) AS col0
----
72600

skipif mysql # not compatible
query I rowsort label-446
SELECT + 66 * + 50 * + + NULLIF ( - + 22, + 91 + 66 * - 8 ) * - COUNT ( * ) AS col0
----
72600

query I rowsort
SELECT - 72 + 88 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT DISTINCT - MIN( 37 ) * + 91
----
-3367

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT - MIN ( 37 ) * + 91
----
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT ALL + NULLIF ( - 45, + 94 + + + MIN( ALL 46 ) - - 90 * + 12 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + NULLIF ( - 45, + 94 + + + MIN ( ALL 46 ) - - 90 * + 12 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL COALESCE ( + 45, - NULLIF ( 55, - - COUNT( * ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL COALESCE ( + 45, - NULLIF ( 55, - - COUNT ( * ) ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT - COUNT( * ) + 18 col0
----
17

skipif mysql # not compatible
query I rowsort label-451
SELECT - COUNT ( * ) + 18 col0
----
17

query I rowsort
SELECT - 13 + - 29 * - + 30 AS col2
----
857

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-455
SELECT - 89 DIV + 63 AS col2, 16 col0
----
-1
16

skipif mysql # not compatible
query II rowsort label-455
SELECT - 89 / + 63 AS col2, 16 col0
----
-1
16

query I rowsort
SELECT ALL - 53 + + 10
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT DISTINCT + 94 + + - 27 + CASE - + CAST( - - COALESCE ( - + 3, + 68 * + ( + 28 ) * - + MIN( - 84 ) + - ( - 27 ) + + - CASE + - CAST( + COUNT( DISTINCT 86 ) AS SIGNED ) WHEN + 9 THEN - 77 WHEN + SUM( + 49 ) * 82 THEN - 97 ELSE NULL END * - 36 + - CASE - - 51 WHEN - + 4 THEN NULL ELSE + CASE AVG ( - - 41 ) WHEN + - 37 THEN NULL ELSE MAX( + 5 ) END END * - COUNT( * ) / CASE COALESCE ( COUNT( * ), - 15 ) WHEN COUNT( * ) * 2 + CAST( + 58 AS SIGNED ) THEN 7 * 98 WHEN 55 THEN 93 END + 61, 82 * - 12 ) AS SIGNED ) WHEN 91 THEN COUNT( * ) END * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + 94 + + - 27 + CASE - + CAST ( - - COALESCE ( - + 3, + 68 * + ( + 28 ) * - + MIN ( - 84 ) + - ( - 27 ) + + - CASE + - CAST ( + COUNT ( DISTINCT 86 ) AS INTEGER ) WHEN + 9 THEN - 77 WHEN + SUM ( + 49 ) * 82 THEN - 97 ELSE NULL END * - 36 + - CASE - - 51 WHEN - + 4 THEN NULL ELSE + CASE AVG ( - - 41 ) WHEN + - 37 THEN NULL ELSE MAX ( + 5 ) END END * - COUNT ( * ) / CASE COALESCE ( COUNT ( * ), - 15 ) WHEN COUNT ( * ) * 2 + CAST ( + 58 AS INTEGER ) THEN 7 * 98 WHEN 55 THEN 93 END + 61, 82 * - 12 ) AS INTEGER ) WHEN 91 THEN COUNT ( * ) END * + 18
----
NULL

query I rowsort
SELECT DISTINCT - 36 + - ( - - ( - 29 ) ) col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-459
SELECT - COUNT( * ) DIV - - COUNT( * ) AS col2, + 57
----
-1
57

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

onlyif mysql # aggregate syntax: 
query II rowsort label-460
SELECT DISTINCT + COUNT( * ) * + - 56 * MAX( ALL 60 ) AS col0, 14
----
-3360
14

skipif mysql # not compatible
query II rowsort label-460
SELECT DISTINCT + COUNT ( * ) * + - 56 * MAX ( ALL 60 ) AS col0, 14
----
-3360
14

query I rowsort
SELECT DISTINCT 64 * - 95 + 38 AS col2
----
-6042

query I rowsort
SELECT ALL + 12 + - 92 + - 27 + - 87
----
-194

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

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

query I rowsort
SELECT ALL 91 + + - CASE - + 85 WHEN + + 59 THEN NULL ELSE 37 END
----
54

query I rowsort
SELECT DISTINCT - - 9 * - 30 AS col1
----
-270

query I rowsort
SELECT - 5 - 70
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL - + COUNT( DISTINCT NULLIF ( - 78, - + 98 * + 68 ) ) * - 69 - + 84 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL - + COUNT ( DISTINCT NULLIF ( - 78, - + 98 * + 68 ) ) * - 69 - + 84 AS col1
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT DISTINCT + - MAX( DISTINCT - - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT + - MAX ( DISTINCT - - 14 ) AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-470
SELECT DISTINCT + CAST( 81 AS SIGNED ) AS col2, 87
----
81
87

skipif mysql # not compatible
query II rowsort label-470
SELECT DISTINCT + CAST ( 81 AS INTEGER ) AS col2, 87
----
81
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-471
SELECT 88 DIV + 42 - - - 59 + CAST( - COUNT( * ) AS SIGNED ) DIV 96, 79 AS col2
----
-57
79

skipif mysql # not compatible
query II rowsort label-471
SELECT 88 / + 42 - - - 59 + CAST ( - COUNT ( * ) AS INTEGER ) / 96, 79 AS col2
----
-57
79

query I rowsort
SELECT ALL 97 * - - 87
----
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + NULLIF ( + + 66, + 31 / AVG ( ALL + 32 ) + COUNT( * ) + + 52 ) * 65 col0
----
4290

skipif mysql # not compatible
query I rowsort label-473
SELECT + NULLIF ( + + 66, + 31 / AVG ( ALL + 32 ) + COUNT ( * ) + + 52 ) * 65 col0
----
4290

query I rowsort
SELECT ALL 9 * - 49
----
-441

query I rowsort
SELECT + COALESCE ( 51, 35 )
----
51

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

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

query I rowsort
SELECT + 43 * + - 33
----
-1419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-478
SELECT ALL CASE + 82 WHEN + 92 * - + 42 * + - 82 + 45 + - COUNT( * ) + NULLIF ( + - 97, CAST( 64 AS SIGNED ) + + 95 ) * + - 0 * + 65 + - 58 THEN + ( + 43 ) WHEN - - 46 + - 8 * - AVG ( ALL 34 ) THEN 48 * - 91 END * + 88 * - + 36 / + - 37 + - + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL CASE + 82 WHEN + 92 * - + 42 * + - 82 + 45 + - COUNT ( * ) + NULLIF ( + - 97, CAST ( 64 AS INTEGER ) + + 95 ) * + - 0 * + 65 + - 58 THEN + ( + 43 ) WHEN - - 46 + - 8 * - AVG ( ALL 34 ) THEN 48 * - 91 END * + 88 * - + 36 / + - 37 + - + 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT 66 * - MIN( ( + + 53 ) )
----
-3498

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT 66 * - MIN ( ( + + 53 ) )
----
-3498

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-481
SELECT ALL 35 * 68 * - - 14 + - + 91 + COUNT( * ), 27 * - - COUNT( * ) * 99 AS col1, + - 93 * - 28 + + 12 + + - COUNT( 4 ) AS col1
----
33230
2673
2615

skipif mysql # not compatible
query III rowsort label-481
SELECT ALL 35 * 68 * - - 14 + - + 91 + COUNT ( * ), 27 * - - COUNT ( * ) * 99 AS col1, + - 93 * - 28 + + 12 + + - COUNT ( 4 ) AS col1
----
33230
2673
2615

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ( + 16 ) * COUNT( * ) + 14 * - + 86
----
-1188

skipif mysql # not compatible
query I rowsort label-483
SELECT ( + 16 ) * COUNT ( * ) + 14 * - + 86
----
-1188

query I rowsort
SELECT - 83 * + + 55
----
-4565

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT MAX( - - 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-485
SELECT MAX ( - - 18 ) AS col1
----
18

query I rowsort
SELECT ALL + - 11 * - + 57
----
627

query I rowsort
SELECT - CASE ( - 76 ) WHEN 72 + 77 + + + 62 THEN - 69 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-488
SELECT ALL NULLIF ( 34, + + 51 * - 56 * COALESCE ( + - 89, + 32 ) * 55 * + 13 + NULLIF ( + 79, ( 40 ) ) * ( + COUNT( - 74 ) ) * - 88 * + + 66 + 81 * + CAST( + 68 AS SIGNED ) )
----
34

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL NULLIF ( 34, + + 51 * - 56 * COALESCE ( + - 89, + 32 ) * 55 * + 13 + NULLIF ( + 79, ( 40 ) ) * ( + COUNT ( - 74 ) ) * - 88 * + + 66 + 81 * + CAST ( + 68 AS INTEGER ) )
----
34

query I rowsort
SELECT - 23 - 91 - + 9
----
-123

query I rowsort
SELECT - + 77 * - 27 * 85 * - 67 AS col1
----
-11839905

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL + 71 * COUNT( + 27 ) * - 56
----
-3976

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + 71 * COUNT ( + 27 ) * - 56
----
-3976

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT DISTINCT NULLIF ( + + 88, SUM( ALL - + 23 ) * + 96 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT NULLIF ( + + 88, SUM ( ALL - + 23 ) * + 96 ) AS col0
----
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-494
SELECT DISTINCT + - 61 DIV + ( - 92 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT + - 61 / + ( - 92 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT - + CASE 49 WHEN - 89 THEN + COALESCE ( 61, - 26 * - 21 + + - 24 ) + 29 * MAX( - + 32 ) ELSE NULL END - 11 + + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-495
SELECT - + CASE 49 WHEN - 89 THEN + COALESCE ( 61, - 26 * - 21 + + - 24 ) + 29 * MAX ( - + 32 ) ELSE NULL END - 11 + + 2 AS col0
----
NULL

query I rowsort
SELECT 87 * - 88 col0
----
-7656

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-497
SELECT ALL + + SUM( DISTINCT 90 ) DIV 4 AS col1, COUNT( * ) AS col1
----
22
1

skipif mysql # not compatible
query II rowsort label-497
SELECT ALL + + SUM ( DISTINCT 90 ) / 4 AS col1, COUNT ( * ) AS col1
----
22
1

query I rowsort
SELECT + 16 + + + 31
----
47

query I rowsort
SELECT DISTINCT + 56 * 49 AS col2
----
2744

query I rowsort
SELECT 67 * 67 * 76 AS col2
----
341164

query I rowsort
SELECT ALL + + 19 * + 96 AS col1
----
1824

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT ALL + - 2 DIV 65 * + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL + - 2 / 65 * + 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-503
SELECT - 52 + + - NULLIF ( + - COUNT( 77 ), - 99 ), MIN( 86 ) AS col1
----
-51
86

skipif mysql # not compatible
query II rowsort label-503
SELECT - 52 + + - NULLIF ( + - COUNT ( 77 ), - 99 ), MIN ( 86 ) AS col1
----
-51
86

query I rowsort
SELECT DISTINCT + 95 * + 93 AS col1
----
8835

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-505
SELECT + CAST( NULL AS DECIMAL ) / + 50 + - + 75 - 63 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-505
SELECT + CAST ( NULL AS REAL ) / + 50 + - + 75 - 63 * 57
----
NULL

query II rowsort
SELECT DISTINCT - 12, 50 AS col2
----
-12
50

query I rowsort
SELECT ALL + 93 * 29
----
2697

query II rowsort
SELECT 54 col0, + 83
----
54
83

query II rowsort
SELECT + 9 AS col1, 19 col1
----
9
19

query II rowsort
SELECT ALL - 31 AS col0, - 28 col0
----
-31
-28

query I rowsort
SELECT 70 * 44
----
3080

query II rowsort
SELECT + 66 AS col2, 52
----
66
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT NULLIF ( - 44, 54 ) * - 40 DIV - COALESCE ( + COUNT( * ), - COUNT( * ) + - 26 ) AS col2
----
-1760

skipif mysql # not compatible
query I rowsort label-513
SELECT NULLIF ( - 44, 54 ) * - 40 / - COALESCE ( + COUNT ( * ), - COUNT ( * ) + - 26 ) AS col2
----
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-514
SELECT ALL 14 + + + ( 52 ) DIV 54 * + 55 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL 14 + + + ( 52 ) / 54 * + 55 AS col1
----
14

query II rowsort
SELECT + 75 col0, - 90 AS col1
----
75
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-516
SELECT NULLIF ( - COALESCE ( 98, ( 19 ) ), - 68 * + + 84 * + 49 - + 3 DIV CAST( NULL AS SIGNED ) * + 91 DIV - + COUNT( 2 ) + - + 94 ) DIV + 32 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-516
SELECT NULLIF ( - COALESCE ( 98, ( 19 ) ), - 68 * + + 84 * + 49 - + 3 / CAST ( NULL AS INTEGER ) * + 91 / - + COUNT ( 2 ) + - + 94 ) / + 32 AS col1
----
-3

query II rowsort
SELECT ALL - 75 AS col1, - 37
----
-75
-37

query I rowsort
SELECT DISTINCT ( - 67 ) * 28 AS col1
----
-1876

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL MAX( + ( - 45 ) ) + + + NULLIF ( 45, - 46 ) + 98 * - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL MAX ( + ( - 45 ) ) + + + NULLIF ( 45, - 46 ) + 98 * - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT SUM( ALL - 20 ) - - 63 * - 22 AS col0
----
-1406

skipif mysql # not compatible
query I rowsort label-520
SELECT SUM ( ALL - 20 ) - - 63 * - 22 AS col0
----
-1406

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-521
SELECT + 41 AS col1, - CAST( NULL AS SIGNED ) * - + 84
----
41
NULL

skipif mysql # not compatible
query II rowsort label-521
SELECT + 41 AS col1, - CAST ( NULL AS INTEGER ) * - + 84
----
41
NULL

query I rowsort
SELECT ALL 48 * + - ( + + 82 )
----
-3936

query I rowsort
SELECT DISTINCT ( + 36 ) * + 99 AS col0
----
3564

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

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

query I rowsort
SELECT ALL 68 * + - 73 * + 21 + - 1 + + 71
----
-104174

query I rowsort
SELECT - 7 + - 66 + + 12
----
-61

query II rowsort
SELECT DISTINCT 19 AS col0, + 80
----
19
80

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

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

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

skipif mysql # not compatible
query II rowsort label-529
SELECT 42 AS col1, - COUNT ( * ) col0
----
42
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT + CAST( + 23 AS SIGNED ) + - 74 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-530
SELECT + CAST ( + 23 AS INTEGER ) + - 74 AS col2
----
-51

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

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL - 60 * + COUNT ( - + 18 ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-532
SELECT - COALESCE ( 65, - - NULLIF ( + 24, + - CASE - COUNT( * ) WHEN + - CASE + 94 WHEN - 7 / 0 + - 17 - + 14 THEN 77 WHEN COALESCE ( - CAST( NULL AS SIGNED ), 84, + 40 ) + ( 37 ) THEN - 93 * - + 8 - - 91 + + NULLIF ( 42, 80 ) ELSE NULL END THEN NULL WHEN - 16 + + - 47 + 39 * 15 * + 72 * 15 THEN + CAST( + 81 AS SIGNED ) ELSE + ( + COALESCE ( + 62, + 95, 65 ) ) + + 27 * + 48 END * - 22 ), - 70 + 35 * - COALESCE ( - 64 * - 88 + 0 * - 13, + 20 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-532
SELECT - COALESCE ( 65, - - NULLIF ( + 24, + - CASE - COUNT ( * ) WHEN + - CASE + 94 WHEN - 7 / 0 + - 17 - + 14 THEN 77 WHEN COALESCE ( - CAST ( NULL AS INTEGER ), 84, + 40 ) + ( 37 ) THEN - 93 * - + 8 - - 91 + + NULLIF ( 42, 80 ) ELSE NULL END THEN NULL WHEN - 16 + + - 47 + 39 * 15 * + 72 * 15 THEN + CAST ( + 81 AS INTEGER ) ELSE + ( + COALESCE ( + 62, + 95, 65 ) ) + + 27 * + 48 END * - 22 ), - 70 + 35 * - COALESCE ( - 64 * - 88 + 0 * - 13, + 20 ) )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-533
SELECT COALESCE ( + - COUNT( + + 40 ), 20 DIV - 11 + - MAX( + 48 ) + - 8 ) + - + ( 28 )
----
-29

skipif mysql # not compatible
query I rowsort label-533
SELECT COALESCE ( + - COUNT ( + + 40 ), 20 / - 11 + - MAX ( + 48 ) + - 8 ) + - + ( 28 )
----
-29

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

query I rowsort
SELECT DISTINCT + - 42 * + 4 AS col0
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-536
SELECT ALL 9, COUNT( * ) * + 51 + + 85 + - - 96 AS col1
----
9
232

skipif mysql # not compatible
query II rowsort label-536
SELECT ALL 9, COUNT ( * ) * + 51 + + 85 + - - 96 AS col1
----
9
232

query II rowsort
SELECT - 20 AS col2, 55 * 89 * + + 80 AS col1
----
-20
391600

query II rowsort
SELECT - 70, 61 AS col2
----
-70
61

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

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

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

query I rowsort
SELECT 80 * + 75
----
6000

query II rowsort
SELECT 66 * + 22 AS col1, + 45
----
1452
45

query I rowsort
SELECT 11 / CASE - 51 WHEN - COALESCE ( + - 62, 67 ) THEN 10 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL COUNT( * ) * 25 + + + 49
----
74

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL COUNT ( * ) * 25 + + + 49
----
74

query I rowsort
SELECT ALL + 67 * 68 + - NULLIF ( - 28, - - 3 * 66 ) * + - 61
----
2848

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT 5 * + - ( + 5 ) * + + SUM( ALL - 69 ) + - + 28
----
1697

skipif mysql # not compatible
query I rowsort label-546
SELECT 5 * + - ( + 5 ) * + + SUM ( ALL - 69 ) + - + 28
----
1697

query I rowsort
SELECT 94 + 58 + + 42 * - + ( CASE + 79 WHEN NULLIF ( - 21, - COALESCE ( - + 11, 52 + ( + 97 ) ) ) * + - 60 THEN - 98 WHEN 1 - + + 34 + + 57 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-548
SELECT ALL - CAST( + + 42 AS SIGNED ), COALESCE ( - + ( - MAX( - 13 ) ), 23 DIV - + 28 + + + 8, - + MAX( DISTINCT - - 82 ) ) AS col1
----
-42
-13

skipif mysql # not compatible
query II rowsort label-548
SELECT ALL - CAST ( + + 42 AS INTEGER ), COALESCE ( - + ( - MAX ( - 13 ) ), 23 / - + 28 + + + 8, - + MAX ( DISTINCT - - 82 ) ) AS col1
----
-42
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT 36 * + - COUNT( * ) + + + 9
----
-27

skipif mysql # not compatible
query I rowsort label-549
SELECT 36 * + - COUNT ( * ) + + + 9
----
-27

query I rowsort
SELECT 39 - + 16
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-551
SELECT ALL CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col0, COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) + - 66 * + 79
----
NULL
-5214

skipif mysql # not compatible
query II rowsort label-551
SELECT ALL CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + - 66 * + 79
----
NULL
-5214

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

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

query I rowsort
SELECT + ( COALESCE ( 82, + 34, - 15 ) )
----
82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT CASE + + 81 WHEN NULLIF ( + + 63, 63 ) * + + 74 THEN NULL WHEN - - 64 + + + 88 - - CASE 85 WHEN - 65 * 82 * - + 75 THEN 76 / - - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) END THEN + + 3 WHEN + + COUNT( * ) THEN 15 + - + 65 END * - + 97 * + - 10 + - 75 * 22 * - CASE + + 22 WHEN - + COUNT( + 75 ) THEN + COUNT( ALL - 87 ) END + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT CASE + + 81 WHEN NULLIF ( + + 63, 63 ) * + + 74 THEN NULL WHEN - - 64 + + + 88 - - CASE 85 WHEN - 65 * 82 * - + 75 THEN 76 / - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) END THEN + + 3 WHEN + + COUNT ( * ) THEN 15 + - + 65 END * - + 97 * + - 10 + - 75 * 22 * - CASE + + 22 WHEN - + COUNT ( + 75 ) THEN + COUNT ( ALL - 87 ) END + + 6 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 97 * 42
----
4074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-557
SELECT + + SUM( ALL 1 ) DIV 98 + COALESCE ( - 97, + 65 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-557
SELECT + + SUM ( ALL 1 ) / 98 + COALESCE ( - 97, + 65 ) AS col2
----
-97

query I rowsort
SELECT ALL 15 * + + 76
----
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-559
SELECT - CASE - - 57 WHEN + + 73 THEN 4 + 78 END * 0 * + NULLIF ( 58, - - CAST( NULL AS SIGNED ) ) * 7 + - 79 + - 76 - - 92 AS col0, - MIN( 94 )
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-559
SELECT - CASE - - 57 WHEN + + 73 THEN 4 + 78 END * 0 * + NULLIF ( 58, - - CAST ( NULL AS INTEGER ) ) * 7 + - 79 + - 76 - - 92 AS col0, - MIN ( 94 )
----
NULL
-94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT + NULLIF ( - 59, + 98 ) DIV - 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-561
SELECT + NULLIF ( - 59, + 98 ) / - 45 AS col0
----
1

query I rowsort
SELECT ALL 82 * + 64 + + - 29
----
5219

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL + SUM( - 41 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL + SUM ( - 41 ) col2
----
-41

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-565
SELECT DISTINCT - 78 DIV + CAST( + 99 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - 78 / + CAST ( + 99 AS INTEGER ) col0
----
0

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

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

query I rowsort
SELECT + 57 - + + 67 AS col0
----
-10

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

skipif mysql # not compatible
query I rowsort label-568
SELECT + + 93 * + CAST ( NULL AS INTEGER ) * - 23
----
NULL

query I rowsort
SELECT + ( - 34 ) + - 1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT + COUNT( * ) + + + 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-570
SELECT + COUNT ( * ) + + + 9 AS col1
----
10

query I rowsort
SELECT - 32 + + - 70
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL 38 + + - 69 * - ( + COUNT( * ) ) * + + 90
----
6248

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL 38 + + - 69 * - ( + COUNT ( * ) ) * + + 90
----
6248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-573
SELECT - CASE + ( + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) WHEN - 47 * 21 THEN NULL ELSE - 2 DIV - 5 END AS col0, 59 DIV + + 11 - + COUNT( * ) AS col1
----
0
4

skipif mysql # not compatible
query II rowsort label-573
SELECT - CASE + ( + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) WHEN - 47 * 21 THEN NULL ELSE - 2 / - 5 END AS col0, 59 / + + 11 - + COUNT ( * ) AS col1
----
0
4

query I rowsort
SELECT ALL - 30 + + + 3 col1
----
-27

query I rowsort
SELECT DISTINCT - 21 * + 50 col0
----
-1050

query I rowsort
SELECT DISTINCT 43 + - 69
----
-26

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

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

query II rowsort
SELECT ALL + 69 AS col0, + 33 col1
----
69
33

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

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

query I rowsort
SELECT - 49 + + 7 - 86
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL + SUM( ALL 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL + SUM ( ALL 58 ) AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT + 37 DIV - - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-582
SELECT + 37 / - - 91 AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT - 6 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-584
SELECT - 6 / 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT ALL - 59 * - COALESCE ( CAST( - 56 AS SIGNED ), - 67, COUNT( * ) )
----
-3304

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - 59 * - COALESCE ( CAST ( - 56 AS INTEGER ), - 67, COUNT ( * ) )
----
-3304

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT - 24 + COUNT( * ) + MAX( + 18 ) + - 95
----
-100

skipif mysql # not compatible
query I rowsort label-586
SELECT - 24 + COUNT ( * ) + MAX ( + 18 ) + - 95
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-587
SELECT ALL + + 92 * + 98 + 21 AS col0, CASE + ( - MIN( DISTINCT - 25 ) ) WHEN + 1 THEN - 58 ELSE + 0 + 0 END - - - 53 - + - 82 - - 12 col0
----
9037
41

skipif mysql # not compatible
query II rowsort label-587
SELECT ALL + + 92 * + 98 + 21 AS col0, CASE + ( - MIN ( DISTINCT - 25 ) ) WHEN + 1 THEN - 58 ELSE + 0 + 0 END - - - 53 - + - 82 - - 12 col0
----
9037
41

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT DISTINCT - COALESCE ( 88, MAX( 88 ) DIV + - COUNT( * ) ) * + - 27 AS col1
----
2376

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT - COALESCE ( 88, MAX ( 88 ) / + - COUNT ( * ) ) * + - 27 AS col1
----
2376

query I rowsort
SELECT - + 4 - + 56 AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-591
SELECT ALL - - CAST( NULL AS SIGNED ) * + 63 / MIN( ALL + - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 63 / MIN ( ALL + - 25 )
----
NULL

query I rowsort
SELECT DISTINCT + + COALESCE ( - 39, + 52 * - 48 + - - 9 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT ALL + NULLIF ( - 51, CASE - MIN( ALL + CAST( - - 8 AS SIGNED ) ) WHEN COALESCE ( - 93, + ( 25 ) + 8 ) + 24 THEN + MAX( 77 ) ELSE + - 24 + - - 37 / + 35 + - 94 * + 50 END * - + 58 )
----
-51

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + NULLIF ( - 51, CASE - MIN ( ALL + CAST ( - - 8 AS INTEGER ) ) WHEN COALESCE ( - 93, + ( 25 ) + 8 ) + 24 THEN + MAX ( 77 ) ELSE + - 24 + - - 37 / + 35 + - 94 * + 50 END * - + 58 )
----
-51

query I rowsort
SELECT 21 * - - 87 + 34 col2
----
1861

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT + COUNT( * ), 94 * + 43 + 96 col2
----
1
4138

skipif mysql # not compatible
query II rowsort label-595
SELECT + COUNT ( * ), 94 * + 43 + 96 col2
----
1
4138

onlyif mysql # aggregate syntax: 
query II rowsort label-596
SELECT DISTINCT + 78 col0, ( COUNT( * ) ) / + + CASE + - 59 WHEN + 91 * + + 52 * - - COALESCE ( 29, - COUNT( DISTINCT - - 33 ) + - 86 * 90, - 5 - 84 ) THEN 24 END * 23 + - 46 * 14 AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-596
SELECT DISTINCT + 78 col0, ( COUNT ( * ) ) / + + CASE + - 59 WHEN + 91 * + + 52 * - - COALESCE ( 29, - COUNT ( DISTINCT - - 33 ) + - 86 * 90, - 5 - 84 ) THEN 24 END * 23 + - 46 * 14 AS col0
----
78
NULL

query I rowsort
SELECT ALL - 77 * + ( 3 )
----
-231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-598
SELECT - - 71 * 52 DIV + COUNT( * )
----
3692

skipif mysql # not compatible
query I rowsort label-598
SELECT - - 71 * 52 / + COUNT ( * )
----
3692

query I rowsort
SELECT ALL CASE WHEN + 80 BETWEEN NULL AND + - 8 THEN - 6 END * + - 73 + - COALESCE ( - 32, + - 51, - 76 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL - 16 + 51 + - 38 * COUNT( * ) + 84
----
81

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL - 16 + 51 + - 38 * COUNT ( * ) + 84
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT + 55 + - CAST( - - CASE + + 68 WHEN + 40 THEN - 33 / 41 + - 29 + + COUNT( * ) ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT + 55 + - CAST ( - - CASE + + 68 WHEN + 40 THEN - 33 / 41 + - 29 + + COUNT ( * ) ELSE NULL END AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 6, + 70 AS col1
----
-6
70

query I rowsort
SELECT + 33 + - 76 * + 66
----
-4983

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL COUNT( * ) + + 1 * 59 * + 55 + - + 81 * 13 * - 71 + - - 80 col2
----
78089

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL COUNT ( * ) + + 1 * 59 * + 55 + - + 81 * 13 * - 71 + - - 80 col2
----
78089

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT - SUM( - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-606
SELECT - SUM ( - 18 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-607
SELECT - COALESCE ( ( - + 37 ), + - CASE 4 WHEN + + 55 + - 19 THEN NULL WHEN + 60 * + CASE ( - CAST( NULL AS SIGNED ) ) WHEN + 87 THEN + - 71 END THEN - - NULLIF ( + 72, COALESCE ( - 29, - + 78 / - NULLIF ( 90, - CASE + + ( - - COUNT( * ) ) WHEN - 86 + + 63 THEN - 54 + + 13 * 96 / 56 + + COUNT( * ) ELSE + 63 END + 94 + - - COALESCE ( - 13, + CASE - 51 WHEN + + 64 * - 72 - - - COUNT( * ) + 77 * + 41 / + 95 + 45 THEN + NULLIF ( + 51, - ( - 73 ) * + 5 ) ELSE + 48 END / 2 ) * + 7 ) + NULLIF ( CAST( + COUNT( * ) AS SIGNED ), - 68 ) ) ) * 64 END * + 17 + 6 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-607
SELECT - COALESCE ( ( - + 37 ), + - CASE 4 WHEN + + 55 + - 19 THEN NULL WHEN + 60 * + CASE ( - CAST ( NULL AS INTEGER ) ) WHEN + 87 THEN + - 71 END THEN - - NULLIF ( + 72, COALESCE ( - 29, - + 78 / - NULLIF ( 90, - CASE + + ( - - COUNT ( * ) ) WHEN - 86 + + 63 THEN - 54 + + 13 * 96 / 56 + + COUNT ( * ) ELSE + 63 END + 94 + - - COALESCE ( - 13, + CASE - 51 WHEN + + 64 * - 72 - - - COUNT ( * ) + 77 * + 41 / + 95 + 45 THEN + NULLIF ( + 51, - ( - 73 ) * + 5 ) ELSE + 48 END / 2 ) * + 7 ) + NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), - 68 ) ) ) * 64 END * + 17 + 6 ) AS col1
----
37

query I rowsort
SELECT ALL + 34 + - - 34 * 86
----
2958

query I rowsort
SELECT + COALESCE ( - 92, + 78 ) * - + 76 AS col2
----
6992

query II rowsort
SELECT DISTINCT + 16 + - 74 AS col1, 24 AS col2
----
-58
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-611
SELECT ALL - 62 + - 65 AS col2, + CAST( NULL AS SIGNED ) col2
----
-127
NULL

skipif mysql # not compatible
query II rowsort label-611
SELECT ALL - 62 + - 65 AS col2, + CAST ( NULL AS INTEGER ) col2
----
-127
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-612
SELECT ALL SUM( DISTINCT + 90 ) DIV - 73 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL SUM ( DISTINCT + 90 ) / - 73 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT + 73 DIV + 75 * - 20 * 55 * + 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT + 73 / + 75 * - 20 * 55 * + 37 AS col2
----
0

query I rowsort
SELECT + 66 * - 59
----
-3894

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

query I rowsort
SELECT + 31 * + 2 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) * + - 55 + + 31 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) * + - 55 + + 31 AS col2
----
86

query I rowsort
SELECT + 83 - - 26 + 92 AS col1
----
201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-619
SELECT ALL + 8 DIV - + 51 - - + CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL + 8 / - + 51 - - + CAST ( 99 AS INTEGER )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-620
SELECT - CASE + ( + + MIN( + 13 ) ) WHEN 56 * - ( 32 ) THEN + 1 * CAST( NULL AS SIGNED ) * + ( + ( - - 51 ) ) END * + 76 + + 48 AS col1, 52 DIV COUNT( * ) AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-620
SELECT - CASE + ( + + MIN ( + 13 ) ) WHEN 56 * - ( 32 ) THEN + 1 * CAST ( NULL AS INTEGER ) * + ( + ( - - 51 ) ) END * + 76 + + 48 AS col1, 52 / COUNT ( * ) AS col0
----
NULL
52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-622
SELECT COALESCE ( - COUNT( * ), + COUNT( 33 ), - CASE + + CASE + 12 WHEN - 48 * + 67 + + 86 * + 87 + - 10 THEN - 8 WHEN - 82 + 28 THEN - - 87 END WHEN - 99 THEN - CASE - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) + + - 36 * + + 97 THEN 21 END ELSE NULL END * + 63 ) AS col1, - 66 + - - 7 * 86
----
-1
536

skipif mysql # not compatible
query II rowsort label-622
SELECT COALESCE ( - COUNT ( * ), + COUNT ( 33 ), - CASE + + CASE + 12 WHEN - 48 * + 67 + + 86 * + 87 + - 10 THEN - 8 WHEN - 82 + 28 THEN - - 87 END WHEN - 99 THEN - CASE - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) + + - 36 * + + 97 THEN 21 END ELSE NULL END * + 63 ) AS col1, - 66 + - - 7 * 86
----
-1
536

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT 62 DIV 89 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-624
SELECT 62 / 89 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT COUNT( * ) * 26 * - 21
----
-546

skipif mysql # not compatible
query I rowsort label-625
SELECT COUNT ( * ) * 26 * - 21
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-626
SELECT - 28 - - ( + + 54 ) DIV - CAST( - SUM( ALL ( 81 ) ) AS SIGNED ) * - - 48 * 96 + - - 49 - + COUNT( * ) DIV + 9 + - 60 + 56 + COALESCE ( + 37, - - 41 ) * - ( + - 71 ) + - 53 * + 2
----
2538

skipif mysql # not compatible
query I rowsort label-626
SELECT - 28 - - ( + + 54 ) / - CAST ( - SUM ( ALL ( 81 ) ) AS INTEGER ) * - - 48 * 96 + - - 49 - + COUNT ( * ) / + 9 + - 60 + 56 + COALESCE ( + 37, - - 41 ) * - ( + - 71 ) + - 53 * + 2
----
2538

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-628
SELECT DISTINCT + 3 + - CAST( + COALESCE ( + + ( + 70 ), + 19, 48 ) AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT + 3 + - CAST ( + COALESCE ( + + ( + 70 ), + 19, 48 ) AS INTEGER ) AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT DISTINCT + 39 * 92 DIV - + ( ( 35 ) ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT + 39 * 92 / - + ( ( 35 ) ) AS col0
----
-102

query I rowsort
SELECT ALL - - 20 AS col1
----
20

query I rowsort
SELECT DISTINCT + 23 + - 2 + - 84 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-632
SELECT + 94 + - 71 + - 62 + + 77 DIV 93 col0, - CAST( 92 AS SIGNED )
----
-39
-92

skipif mysql # not compatible
query II rowsort label-632
SELECT + 94 + - 71 + - 62 + + 77 / 93 col0, - CAST ( 92 AS INTEGER )
----
-39
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT + 90 + SUM( 53 ) AS col2
----
143

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT + 90 + SUM ( 53 ) AS col2
----
143

query II rowsort
SELECT ALL - + 80 + 21 AS col0, 41 AS col2
----
-59
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT MIN( CAST( NULL AS SIGNED ) ) + + 18 + + 42 + 20 * + 41 * 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT MIN ( CAST ( NULL AS INTEGER ) ) + + 18 + + 42 + 20 * + 41 * 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-636
SELECT ALL + 29 + + 65 + + 74 * + 50 * - 28 AS col1, + CASE + 87 WHEN - 54 * - - ( + - 67 ) / 67 THEN NULL WHEN - + SUM( DISTINCT - 60 ) + + + 18 + COALESCE ( - 23, 0 * COALESCE ( COUNT( * ), - - 56 ) * - AVG ( DISTINCT + + 40 ), 89 * + 84 + - + 70 ) + - 20 / - AVG ( 34 ) * 63 THEN + COALESCE ( + 92, 27 / - + 16 * - 6 / 87 * + 60 ) END * + 35 + + + MIN( - 87 )
----
-103506
NULL

skipif mysql # not compatible
query II rowsort label-636
SELECT ALL + 29 + + 65 + + 74 * + 50 * - 28 AS col1, + CASE + 87 WHEN - 54 * - - ( + - 67 ) / 67 THEN NULL WHEN - + SUM ( DISTINCT - 60 ) + + + 18 + COALESCE ( - 23, 0 * COALESCE ( COUNT ( * ), - - 56 ) * - AVG ( DISTINCT + + 40 ), 89 * + 84 + - + 70 ) + - 20 / - AVG ( 34 ) * 63 THEN + COALESCE ( + 92, 27 / - + 16 * - 6 / 87 * + 60 ) END * + 35 + + + MIN ( - 87 )
----
-103506
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT + 53 * + COUNT( * ), NULLIF ( + 13, - + 36 ) * + 23 AS col0
----
53
299

skipif mysql # not compatible
query II rowsort label-637
SELECT + 53 * + COUNT ( * ), NULLIF ( + 13, - + 36 ) * + 23 AS col0
----
53
299

query I rowsort
SELECT ALL - + 80 + + + 28
----
-52

query I rowsort
SELECT - 92 - 62 * - 2
----
32

query I rowsort
SELECT DISTINCT - 48 + + - 81
----
-129

query II rowsort
SELECT - 47 col2, - 59 AS col1
----
-47
-59

query II rowsort
SELECT ALL 49 AS col0, 78 AS col0
----
49
78

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT 95 + - 68 * - SUM( ALL + + 13 ) AS col2
----
979

skipif mysql # not compatible
query I rowsort label-643
SELECT 95 + - 68 * - SUM ( ALL + + 13 ) AS col2
----
979

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL + 30 + + 32 - - SUM( DISTINCT + 94 )
----
156

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL + 30 + + 32 - - SUM ( DISTINCT + 94 )
----
156

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

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

query I rowsort
SELECT ALL 85 - - + 64
----
149

query II rowsort
SELECT DISTINCT 8, 61 col2
----
8
61

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT ALL + 3 DIV ( + + 25 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL + 3 / ( + + 25 ) AS col0
----
0

query I rowsort
SELECT 85 + + + 71 * + 76 + - 57 AS col2
----
5424

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT COUNT( * ) - - + 32
----
33

skipif mysql # not compatible
query I rowsort label-650
SELECT COUNT ( * ) - - + 32
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT 95 + + + 31 + COUNT( * ) * - 84 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-651
SELECT 95 + + + 31 + COUNT ( * ) * - 84 AS col0
----
42

query I rowsort
SELECT 30 - + 74 + - + 39 + 31 col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT ALL - COUNT( * ) - - - 22 + - - COUNT( * ) DIV + 61 col0
----
-23

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - COUNT ( * ) - - - 22 + - - COUNT ( * ) / + 61 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT NULLIF ( - 99, - - 20 * + + AVG ( ALL - + 14 ) / 73 + - COUNT( * ) / - 74 + - + 40 + + + 7 ) + - + 57 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-654
SELECT NULLIF ( - 99, - - 20 * + + AVG ( ALL - + 14 ) / 73 + - COUNT ( * ) / - 74 + - + 40 + + + 7 ) + - + 57 AS col2
----
-156

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-656
SELECT DISTINCT + MIN( DISTINCT + 93 ) * 37 AS col0, - 39
----
3441
-39

skipif mysql # not compatible
query II rowsort label-656
SELECT DISTINCT + MIN ( DISTINCT + 93 ) * 37 AS col0, - 39
----
3441
-39

query II rowsort
SELECT DISTINCT 34 AS col2, + 59 * - - 7
----
34
413

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-658
SELECT ( CAST( NULL AS SIGNED ) ) * + + 68 AS col1, + 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-658
SELECT ( CAST ( NULL AS INTEGER ) ) * + + 68 AS col1, + 55
----
NULL
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT ALL CAST( NULL AS SIGNED ) / - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL CAST ( NULL AS INTEGER ) / - 48
----
NULL

query II rowsort
SELECT 79 AS col2, + 77
----
79
77

query II rowsort
SELECT ALL - + 68 AS col0, 91 AS col0
----
-68
91

query I rowsort
SELECT ( - 2 ) * + 53 * - 6
----
636

query II rowsort
SELECT - 7 * - 4 + 98 AS col0, 55 AS col2
----
126
55

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

skipif mysql # not compatible
query I rowsort label-664
SELECT - 54 / CAST ( NULL AS INTEGER ) + 73 + + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-665
SELECT DISTINCT - ( - ( + COALESCE ( 11, + 54 + ( CAST( NULL AS SIGNED ) ) * - ( CASE + 53 WHEN + - ( + 45 ) THEN + SUM( + 67 ) WHEN COUNT( * ) THEN NULL WHEN + - 64 THEN - COUNT( * ) + + + SUM( ALL + - 51 ) END ) ) ) ) * - 77 AS col0, - 1
----
-847
-1

skipif mysql # not compatible
query II rowsort label-665
SELECT DISTINCT - ( - ( + COALESCE ( 11, + 54 + ( CAST ( NULL AS INTEGER ) ) * - ( CASE + 53 WHEN + - ( + 45 ) THEN + SUM ( + 67 ) WHEN COUNT ( * ) THEN NULL WHEN + - 64 THEN - COUNT ( * ) + + + SUM ( ALL + - 51 ) END ) ) ) ) * - 77 AS col0, - 1
----
-847
-1

query II rowsort
SELECT + 60 AS col1, 10 AS col0
----
60
10

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT DISTINCT - COUNT( ALL 27 ) * COALESCE ( + + ( - - COUNT( * ) ), 25 + + + 32 * - COUNT( * ) - 0 + + 99, - COUNT( * ), - 12 + + 62 ) * + 47 + + 21 * - - 76
----
1549

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT - COUNT ( ALL 27 ) * COALESCE ( + + ( - - COUNT ( * ) ), 25 + + + 32 * - COUNT ( * ) - 0 + + 99, - COUNT ( * ), - 12 + + 62 ) * + 47 + + 21 * - - 76
----
1549

query I rowsort
SELECT ALL - 49 + - 56
----
-105

query I rowsort
SELECT 2 + - 82 * + 29 AS col1
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT ALL - CASE - + 37 WHEN COUNT( DISTINCT - 25 ) THEN NULL WHEN + 89 THEN + 82 / 31 * + 46 / + 93 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL - CASE - + 37 WHEN COUNT ( DISTINCT - 25 ) THEN NULL WHEN + 89 THEN + 82 / 31 * + 46 / + 93 ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT + COUNT( DISTINCT - - 22 ) + - 91 col2
----
-90

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + COUNT ( DISTINCT - - 22 ) + - 91 col2
----
-90

query I rowsort
SELECT ALL + 34 * - - 76 col1
----
2584

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT DISTINCT - COUNT( * ) - - 62
----
61

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT - COUNT ( * ) - - 62
----
61

query I rowsort
SELECT DISTINCT + 62 * + + 29 AS col0
----
1798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-676
SELECT COUNT( DISTINCT + + 30 ) * - COUNT( * ) DIV ( + COALESCE ( + - 85, + 78, 65 ) ) * - + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-676
SELECT COUNT ( DISTINCT + + 30 ) * - COUNT ( * ) / ( + COALESCE ( + - 85, + 78, 65 ) ) * - + 30 AS col2
----
0

query I rowsort
SELECT 79 * + 29
----
2291

query I rowsort
SELECT 14 * - + 14
----
-196

query I rowsort
SELECT ALL - 71 * + - 5 * + 39 * + 70 AS col0
----
969150

query I rowsort
SELECT 30 + - + 87
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT 40 + - COUNT( * ) - - SUM( 4 )
----
43

skipif mysql # not compatible
query I rowsort label-681
SELECT 40 + - COUNT ( * ) - - SUM ( 4 )
----
43

query I rowsort
SELECT 14 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-683
SELECT ALL COUNT( + 30 ) AS col1, + 4
----
1
4

skipif mysql # not compatible
query II rowsort label-683
SELECT ALL COUNT ( + 30 ) AS col1, + 4
----
1
4

query III rowsort
SELECT ALL 72 AS col1, + 67, + 15 AS col0
----
72
67
15

query I rowsort
SELECT ALL NULLIF ( - - 68, + - 23 )
----
68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-687
SELECT - 71 - - + MAX( - 90 ) + - 57 + + - 32 * SUM( DISTINCT - 79 ) DIV + 18 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-687
SELECT - 71 - - + MAX ( - 90 ) + - 57 + + - 32 * SUM ( DISTINCT - 79 ) / + 18 AS col2
----
-78

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-689
SELECT - 39, 37 * + MAX( DISTINCT 71 ) AS col0
----
-39
2627

skipif mysql # not compatible
query II rowsort label-689
SELECT - 39, 37 * + MAX ( DISTINCT 71 ) AS col0
----
-39
2627

query I rowsort
SELECT - 24 + - - 29 AS col2
----
5

query II rowsort
SELECT 56 AS col2, + 95
----
56
95

query I rowsort
SELECT ALL + 37 * - 84
----
-3108

query II rowsort
SELECT DISTINCT + 4 AS col2, - 96
----
4
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-694
SELECT 41 DIV - COUNT( ALL 57 ) + COUNT( * ) + - 0
----
-40

skipif mysql # not compatible
query I rowsort label-694
SELECT 41 / - COUNT ( ALL 57 ) + COUNT ( * ) + - 0
----
-40

query I rowsort
SELECT ALL + 92 * 35 + 9
----
3229

query I rowsort
SELECT ALL - 45 * 53 AS col1
----
-2385

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

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

query I rowsort
SELECT ALL + ( + + COALESCE ( + 51, + 89 ) ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-699
SELECT + 0, + 48 * + 13 * - COUNT( * ) * + 15 AS col0
----
0
-9360

skipif mysql # not compatible
query II rowsort label-699
SELECT + 0, + 48 * + 13 * - COUNT ( * ) * + 15 AS col0
----
0
-9360

query I rowsort
SELECT - - 89 * 36 AS col0
----
3204

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT - 24 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT - 24 / + 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-703
SELECT + 8 * + 47 * + 6 + - 78 + 81 DIV - 97 * NULLIF ( 23, 8 * COUNT( * ) * + - 60 * COUNT( * ) )
----
2178

skipif mysql # not compatible
query I rowsort label-703
SELECT + 8 * + 47 * + 6 + - 78 + 81 / - 97 * NULLIF ( 23, 8 * COUNT ( * ) * + - 60 * COUNT ( * ) )
----
2178

query I rowsort
SELECT + + 34 - - 46
----
80

query II rowsort
SELECT + 85 AS col0, 3 * 64
----
85
192

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT ALL - 27 * - 52 + + 99 + + 5 DIV - 69
----
1503

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL - 27 * - 52 + + 99 + + 5 / - 69
----
1503

query I rowsort
SELECT + + 32 * + 37 * 26
----
30784

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT DISTINCT 96 * - + COALESCE ( + 0, + 17 ) + - 28 - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT 96 * - + COALESCE ( + 0, + 17 ) + - 28 - COUNT ( * ) col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-709
SELECT ALL + - COALESCE ( 36, + - 14 * COUNT( * ) * 15, - NULLIF ( - - 8, 64 + - CAST( + COUNT( * ) AS SIGNED ) ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + - COALESCE ( 36, + - 14 * COUNT ( * ) * 15, - NULLIF ( - - 8, 64 + - CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col2
----
-36

query II rowsort
SELECT + - 50 AS col1, 38 * + + 20
----
-50
760

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT + 92 + - + 63 - 56 + - 12 + - 37 DIV - + 77 * 9
----
-39

skipif mysql # not compatible
query I rowsort label-711
SELECT + 92 + - + 63 - 56 + - 12 + - 37 / - + 77 * 9
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL + MAX( ALL + 95 ) * - 65 AS col0
----
-6175

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + MAX ( ALL + 95 ) * - 65 AS col0
----
-6175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-713
SELECT + CAST( - + 85 AS SIGNED ) + 36 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-713
SELECT + CAST ( - + 85 AS INTEGER ) + 36 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT MIN( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-714
SELECT MIN ( - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT MIN( + 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-715
SELECT MIN ( + 11 ) AS col0
----
11

query I rowsort
SELECT + 26 * 42 col0
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT COUNT( * ) * 31 + - 46 * + ( - 80 ) AS col0
----
3711

skipif mysql # not compatible
query I rowsort label-717
SELECT COUNT ( * ) * 31 + - 46 * + ( - 80 ) AS col0
----
3711

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT - 2 + COALESCE ( - 27, + - 56 ) + + COUNT( * ) + - - 87 * + - 88 * - - 44 + + 22
----
-336870

skipif mysql # not compatible
query I rowsort label-718
SELECT - 2 + COALESCE ( - 27, + - 56 ) + + COUNT ( * ) + - - 87 * + - 88 * - - 44 + + 22
----
-336870

query I rowsort
SELECT + 14 + - 42
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-720
SELECT + 31 + - CASE + - 7 WHEN + 4 THEN + 23 ELSE + 36 + + + CASE + 67 WHEN - - 20 THEN 53 - + 70 + - 27 * - MAX( + 65 ) * + 42 DIV - 38 + + 95 + 16 * + 79 ELSE + 31 + - - 57 END END * 67 + + 64 AS col0
----
-8213

skipif mysql # not compatible
query I rowsort label-720
SELECT + 31 + - CASE + - 7 WHEN + 4 THEN + 23 ELSE + 36 + + + CASE + 67 WHEN - - 20 THEN 53 - + 70 + - 27 * - MAX ( + 65 ) * + 42 / - 38 + + 95 + 16 * + 79 ELSE + 31 + - - 57 END END * 67 + + 64 AS col0
----
-8213

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT ALL - 40 DIV - - ( + NULLIF ( + 87, + 55 + + 68 - - - 39 ) )
----
0

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL - 40 / - - ( + NULLIF ( + 87, + 55 + + 68 - - - 39 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-722
SELECT + 8 + COUNT( * ) AS col2, 52 - + 92 - - 48 AS col0
----
9
8

skipif mysql # not compatible
query II rowsort label-722
SELECT + 8 + COUNT ( * ) AS col2, 52 - + 92 - - 48 AS col0
----
9
8

query I rowsort
SELECT + 66 * - + 8
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT + 84 + - - NULLIF ( - - CASE - COUNT( * ) WHEN - 6 THEN - 32 + - 27 END, - 61 / - 78 - + COUNT( * ) + 96 * 42 - 74 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT + 84 + - - NULLIF ( - - CASE - COUNT ( * ) WHEN - 6 THEN - 32 + - 27 END, - 61 / - 78 - + COUNT ( * ) + 96 * 42 - 74 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL - 13 * - - COALESCE ( - COUNT( * ), 56 * - 52 + - 92 + + ( - - 32 ) * - 4 * COUNT( * ) * - 0 * + 95 + + - 94 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL - 13 * - - COALESCE ( - COUNT ( * ), 56 * - 52 + - 92 + + ( - - 32 ) * - 4 * COUNT ( * ) * - 0 * + 95 + + - 94 ) AS col0
----
13

query I rowsort
SELECT ALL 66 * 81
----
5346

query I rowsort
SELECT + 72 + - 8 + + 51
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT - COUNT( * ) * ( + MIN( ( - 29 ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-728
SELECT - COUNT ( * ) * ( + MIN ( ( - 29 ) ) )
----
29

query II rowsort
SELECT + 48 + - + 18 col1, 34
----
30
34

onlyif mysql # aggregate syntax: 
query II rowsort label-730
SELECT - 30 + COUNT( * ), + 73 AS col2
----
-29
73

skipif mysql # not compatible
query II rowsort label-730
SELECT - 30 + COUNT ( * ), + 73 AS col2
----
-29
73

query I rowsort
SELECT - ( + 12 ) + + + 84 * + 43
----
3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-732
SELECT DISTINCT MAX( + + 99 ) + + CAST( NULL AS SIGNED ) - + CAST( 11 AS SIGNED ) AS col2, 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-732
SELECT DISTINCT MAX ( + + 99 ) + + CAST ( NULL AS INTEGER ) - + CAST ( 11 AS INTEGER ) AS col2, 31
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT - + SUM( ALL - - 17 ) + - 72 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-733
SELECT - + SUM ( ALL - - 17 ) + - 72 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT - - 4 + + - COUNT( * ) - - + 75 * 79 + - COUNT( * ) * + 23 AS col1
----
5905

skipif mysql # not compatible
query I rowsort label-734
SELECT - - 4 + + - COUNT ( * ) - - + 75 * 79 + - COUNT ( * ) * + 23 AS col1
----
5905

query I rowsort
SELECT ALL - 93 * + 61
----
-5673

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-737
SELECT DISTINCT 49 DIV 18 * + - 10 + - - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT 49 / 18 * + - 10 + - - COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT ALL 86 DIV COUNT( * ) + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL 86 / COUNT ( * ) + COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-739
SELECT - MAX( DISTINCT + CAST( + 2 AS SIGNED ) ) * 93 AS col1
----
-186

skipif mysql # not compatible
query I rowsort label-739
SELECT - MAX ( DISTINCT + CAST ( + 2 AS INTEGER ) ) * 93 AS col1
----
-186

query I rowsort
SELECT + 65 * + 65 + - + 52 + - + 85 AS col0
----
4088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-741
SELECT + ( MIN( ALL + CAST( NULL AS SIGNED ) ) ) * 7 + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-741
SELECT + ( MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) * 7 + - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT DISTINCT - NULLIF ( - SUM( DISTINCT - - 60 ), 70 ) * 24 + + ( + COUNT( * ) ) + 9 AS col1
----
1450

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT - NULLIF ( - SUM ( DISTINCT - - 60 ), 70 ) * 24 + + ( + COUNT ( * ) ) + 9 AS col1
----
1450

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( - 27, 31 + + 24 ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-745
SELECT ALL + - 5 DIV - COALESCE ( 74, 51 DIV + CAST( NULL AS SIGNED ) ) - - 36 - + + COALESCE ( - COUNT( * ), + 59 )
----
37

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + - 5 / - COALESCE ( 74, 51 / + CAST ( NULL AS INTEGER ) ) - - 36 - + + COALESCE ( - COUNT ( * ), + 59 )
----
37

query I rowsort
SELECT + COALESCE ( - + 80, - ( - 10 ) ) col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT - + 28 DIV 13 * 37 + 1
----
-73

skipif mysql # not compatible
query I rowsort label-747
SELECT - + 28 / 13 * 37 + 1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - + 42 * SUM( 38 ) AS col2
----
-1596

skipif mysql # not compatible
query I rowsort label-748
SELECT - + 42 * SUM ( 38 ) AS col2
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT 17 * 7 - - ( COUNT( * ) ) + CASE - - 42 WHEN + 64 * - 48 * - - 91 * 50 THEN NULL ELSE - - 21 END * + 38 AS col2
----
918

skipif mysql # not compatible
query I rowsort label-749
SELECT 17 * 7 - - ( COUNT ( * ) ) + CASE - - 42 WHEN + 64 * - 48 * - - 91 * 50 THEN NULL ELSE - - 21 END * + 38 AS col2
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-750
SELECT + 26 DIV - COUNT( DISTINCT 55 )
----
-26

skipif mysql # not compatible
query I rowsort label-750
SELECT + 26 / - COUNT ( DISTINCT 55 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT ALL 32 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL 32 / - 42
----
0

query I rowsort
SELECT - NULLIF ( - 37, - 72 ) * - ( - ( + - 29 ) ) + ( - 52 )
----
-1125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-753
SELECT + CAST( + AVG ( - 64 ) AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-753
SELECT + CAST ( + AVG ( - 64 ) AS INTEGER )
----
-64

query I rowsort
SELECT - 14 * 28 * 94 col0
----
-36848

query I rowsort
SELECT + 20 + - NULLIF ( - 19, 9 + - 50 ) AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-756
SELECT ALL + 75, NULLIF ( 16, - CAST( - 60 AS SIGNED ) - - 60 ) AS col2
----
75
16

skipif mysql # not compatible
query II rowsort label-756
SELECT ALL + 75, NULLIF ( 16, - CAST ( - 60 AS INTEGER ) - - 60 ) AS col2
----
75
16

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

skipif mysql # not compatible
query I rowsort label-757
SELECT + NULLIF ( + COUNT ( * ), - - 10 * - 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL 96 * + MIN( ALL + 6 ) AS col1
----
576

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL 96 * + MIN ( ALL + 6 ) AS col1
----
576

query I rowsort
SELECT 49 * 35
----
1715

query I rowsort
SELECT 20 * 66 * + 8 AS col2
----
10560

query II rowsort
SELECT ALL 25 AS col1, + 31
----
25
31

query II rowsort
SELECT 60 AS col1, - 86 AS col1
----
60
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-763
SELECT 39 DIV 73 * + - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-763
SELECT 39 / 73 * + - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT ALL 12 + + - COUNT( ALL 66 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL 12 + + - COUNT ( ALL 66 ) AS col1
----
11

query I rowsort
SELECT 45 * 34 col1
----
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-766
SELECT DISTINCT 47 + + 78 + COUNT( ALL 93 ) + + + 73 * + 17 + + ( - - 56 ) + + COALESCE ( - 68, - + COUNT( * ) * 18 + - 69 ) / - - 47 * 88 / + 95 / 70 + + CASE - 99 WHEN + COALESCE ( + COUNT( * ), - 97 + - + 36 + - CAST( NULL AS SIGNED ) * - CAST( - 49 AS SIGNED ) ) * AVG ( - 4 ) + 6 THEN + + ( - 18 ) WHEN + NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) / - 31 + + 2 * CAST( + + AVG ( + - 84 ) AS SIGNED ) * + CASE - + 18 WHEN 59 THEN NULL WHEN + CAST( + ( - 0 ) AS DECIMAL ) THEN COUNT( * ) END * + 72 - + ( 60 ) + COUNT( * ) / NULLIF ( - 65 * + 93 + - ( + 32 + + 17 ) * CAST( 5 + + ( 9 ) AS SIGNED ), - 62 * - 95 ) - + CAST( 62 AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT 47 + + 78 + COUNT ( ALL 93 ) + + + 73 * + 17 + + ( - - 56 ) + + COALESCE ( - 68, - + COUNT ( * ) * 18 + - 69 ) / - - 47 * 88 / + 95 / 70 + + CASE - 99 WHEN + COALESCE ( + COUNT ( * ), - 97 + - + 36 + - CAST ( NULL AS INTEGER ) * - CAST ( - 49 AS INTEGER ) ) * AVG ( - 4 ) + 6 THEN + + ( - 18 ) WHEN + NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) / - 31 + + 2 * CAST ( + + AVG ( + - 84 ) AS INTEGER ) * + CASE - + 18 WHEN 59 THEN NULL WHEN + CAST ( + ( - 0 ) AS REAL ) THEN COUNT ( * ) END * + 72 - + ( 60 ) + COUNT ( * ) / NULLIF ( - 65 * + 93 + - ( + 32 + + 17 ) * CAST ( 5 + + ( 9 ) AS INTEGER ), - 62 * - 95 ) - + CAST ( 62 AS INTEGER ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-767
SELECT ALL - COUNT( * ) AS col1, + 25 + 66 AS col1
----
-1
91

skipif mysql # not compatible
query II rowsort label-767
SELECT ALL - COUNT ( * ) AS col1, + 25 + 66 AS col1
----
-1
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-768
SELECT DISTINCT 96 + - 22 DIV COUNT( * ) * NULLIF ( + CAST( + NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), + 42 * + 65 * 43 * + 6 - - + 13 - + COUNT( * ) DIV SUM( - + 93 ) + - 53 ) AS SIGNED ), - 4 - - - 17 DIV + COUNT( * ) + + + 26 ) * - 56
----
-1136

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT 96 + - 22 / COUNT ( * ) * NULLIF ( + CAST ( + NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), + 42 * + 65 * 43 * + 6 - - + 13 - + COUNT ( * ) / SUM ( - + 93 ) + - 53 ) AS INTEGER ), - 4 - - - 17 / + COUNT ( * ) + + + 26 ) * - 56
----
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL - ( - COUNT( * ) ) * - 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - ( - COUNT ( * ) ) * - 0 col0
----
0

query I rowsort
SELECT ALL + 64 * + + 70 AS col2
----
4480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-771
SELECT 41 - COUNT( * ) * CASE + ( + + 36 ) WHEN 62 THEN NULL WHEN - 52 THEN + 91 / 63 - CASE ( 3 ) WHEN - CAST( NULL AS SIGNED ) + - - 25 THEN - 83 WHEN - 25 * 86 THEN + + 4 END * - - 5 END * 55 - - 71 / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT 41 - COUNT ( * ) * CASE + ( + + 36 ) WHEN 62 THEN NULL WHEN - 52 THEN + 91 / 63 - CASE ( 3 ) WHEN - CAST ( NULL AS INTEGER ) + - - 25 THEN - 83 WHEN - 25 * 86 THEN + + 4 END * - - 5 END * 55 - - 71 / 19
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT 87 + 8 DIV + - 25 + - NULLIF ( 76, - 99 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-773
SELECT 87 + 8 / + - 25 + - NULLIF ( 76, - 99 ) AS col0
----
11

query I rowsort
SELECT ALL - 62 * + 71 col1
----
-4402

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT ALL COUNT( * ) * 65 * + 52 col2, - ( - - 81 )
----
3380
-81

skipif mysql # not compatible
query II rowsort label-775
SELECT ALL COUNT ( * ) * 65 * + 52 col2, - ( - - 81 )
----
3380
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-776
SELECT DISTINCT - 51 AS col2, COUNT( DISTINCT - 5 ) AS col2
----
-51
1

skipif mysql # not compatible
query II rowsort label-776
SELECT DISTINCT - 51 AS col2, COUNT ( DISTINCT - 5 ) AS col2
----
-51
1

query I rowsort
SELECT ALL + COALESCE ( + 10, - 57 ) - + 64 AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-778
SELECT + 63 DIV - + 41 - + ( CAST( + - 24 AS SIGNED ) )
----
23

skipif mysql # not compatible
query I rowsort label-778
SELECT + 63 / - + 41 - + ( CAST ( + - 24 AS INTEGER ) )
----
23

query II rowsort
SELECT ALL - - 86, 55 AS col1
----
86
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + 61 + - COALESCE ( - + 16, - ( 33 ) + - - COUNT( * ) ) * 41
----
717

skipif mysql # not compatible
query I rowsort label-781
SELECT + 61 + - COALESCE ( - + 16, - ( 33 ) + - - COUNT ( * ) ) * 41
----
717

query I rowsort
SELECT 80 * + + 31 * - 58 AS col1
----
-143840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-783
SELECT - COALESCE ( + - ( COUNT( * ) ), - 37 ) + - CASE - - 4 WHEN - COUNT( * ) THEN + NULLIF ( - 10, - 35 * - 22 + + 35 + - COUNT( * ) * - + CASE - 30 WHEN + + 56 + + + 25 + 96 * 59 * + 35 * + COUNT( * ) THEN - + CAST( COUNT( ALL + ( + 37 ) ) AS SIGNED ) END ) * + ( + - 3 ) - - - 30 END - - 72 * - NULLIF ( - + 33, - - 11 / - 73 ) AS col1, COUNT( + - 45 ) * + 10 AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-783
SELECT - COALESCE ( + - ( COUNT ( * ) ), - 37 ) + - CASE - - 4 WHEN - COUNT ( * ) THEN + NULLIF ( - 10, - 35 * - 22 + + 35 + - COUNT ( * ) * - + CASE - 30 WHEN + + 56 + + + 25 + 96 * 59 * + 35 * + COUNT ( * ) THEN - + CAST ( COUNT ( ALL + ( + 37 ) ) AS INTEGER ) END ) * + ( + - 3 ) - - - 30 END - - 72 * - NULLIF ( - + 33, - - 11 / - 73 ) AS col1, COUNT ( + - 45 ) * + 10 AS col2
----
NULL
10

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT 33 - - + COUNT( * ), SUM( + 14 ) col1
----
34
14

skipif mysql # not compatible
query II rowsort label-784
SELECT 33 - - + COUNT ( * ), SUM ( + 14 ) col1
----
34
14

query I rowsort
SELECT 4 * - ( 90 ) AS col2
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT ALL - CAST( - - SUM( ALL 42 ) AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - CAST ( - - SUM ( ALL 42 ) AS INTEGER )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-787
SELECT ALL - COALESCE ( 6, - COUNT( * ), - 29 * - 62 * 9, + - 58 ), + ( - 51 ) DIV - 18 AS col0
----
-6
2

skipif mysql # not compatible
query II rowsort label-787
SELECT ALL - COALESCE ( 6, - COUNT ( * ), - 29 * - 62 * 9, + - 58 ), + ( - 51 ) / - 18 AS col0
----
-6
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT - AVG ( DISTINCT - 44 ) * - CASE NULLIF ( - + COALESCE ( - 71, + COUNT( * ) * - + 14 + - COUNT( * ) ), 46 ) WHEN - CASE + MIN( - 39 ) WHEN + - 55 - + 8 * 10 THEN - 18 + + + 26 END * - 64 + 71 - + - 93 THEN NULL WHEN - 39 THEN + 58 ELSE NULL END + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT - AVG ( DISTINCT - 44 ) * - CASE NULLIF ( - + COALESCE ( - 71, + COUNT ( * ) * - + 14 + - COUNT ( * ) ), 46 ) WHEN - CASE + MIN ( - 39 ) WHEN + - 55 - + 8 * 10 THEN - 18 + + + 26 END * - 64 + 71 - + - 93 THEN NULL WHEN - 39 THEN + 58 ELSE NULL END + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT MIN( - 5 ) * + 53
----
-265

skipif mysql # not compatible
query I rowsort label-790
SELECT MIN ( - 5 ) * + 53
----
-265

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

skipif mysql # not compatible
query I rowsort label-791
SELECT 29 + + - NULLIF ( 86, + + ( + + COUNT ( * ) ) )
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT COUNT( * ) + - + ( + ( + 46 ) ) + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-793
SELECT COUNT ( * ) + - + ( + ( + 46 ) ) + COUNT ( * )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT 55 + + 52 DIV 89 col1
----
55

skipif mysql # not compatible
query I rowsort label-794
SELECT 55 + + 52 / 89 col1
----
55

query I rowsort
SELECT CASE - 85 WHEN - 45 THEN - 13 ELSE NULL END + - 73 AS col1
----
NULL

query I rowsort
SELECT ALL + 78 + + 28 + + 17
----
123

query I rowsort
SELECT - 29 + + + ( 9 )
----
-20

query I rowsort
SELECT 53 * 47 + 95
----
2586

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT - 66 * - MAX( ALL + - 66 ) AS col0
----
-4356

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT - 66 * - MAX ( ALL + - 66 ) AS col0
----
-4356

query I rowsort
SELECT 33 * 55 AS col2
----
1815

query II rowsort
SELECT ALL + + 90 * 1 AS col0, 73
----
90
73

query I rowsort
SELECT ALL 71 * - + 90 * - + 81
----
517590

onlyif mysql # aggregate syntax: 
query II rowsort label-803
SELECT MIN( 28 ) * - - 94 * + 63 col0, - COUNT( * ) + 78 AS col1
----
165816
77

skipif mysql # not compatible
query II rowsort label-803
SELECT MIN ( 28 ) * - - 94 * + 63 col0, - COUNT ( * ) + 78 AS col1
----
165816
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-804
SELECT - 58 * - 78 AS col1, + 88 DIV ( - + CAST( + AVG ( DISTINCT - - 17 ) AS SIGNED ) ) * 53
----
4524
-265

skipif mysql # not compatible
query II rowsort label-804
SELECT - 58 * - 78 AS col1, + 88 / ( - + CAST ( + AVG ( DISTINCT - - 17 ) AS INTEGER ) ) * 53
----
4524
-265

query I rowsort
SELECT DISTINCT - - NULLIF ( - - 21, - 97 ) col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-806
SELECT + ( - 43 ) * - + CAST( + 39 AS SIGNED ) * - 92
----
-154284

skipif mysql # not compatible
query I rowsort label-806
SELECT + ( - 43 ) * - + CAST ( + 39 AS INTEGER ) * - 92
----
-154284

query I rowsort
SELECT - NULLIF ( + 77, + 99 ) * 10 + + - 40 * + 24 * 22 * 89
----
-1880450

query I rowsort
SELECT DISTINCT + 77 * 54 + - 62 - - 56
----
4152

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

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

query I rowsort
SELECT - 85 + + 73 + - ( NULLIF ( 79, + 42 ) ) + - 16
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-811
SELECT ALL + 44 * - - CAST( + + 89 AS SIGNED ) * + 30 + - COUNT( * ), 39 AS col2
----
117479
39

skipif mysql # not compatible
query II rowsort label-811
SELECT ALL + 44 * - - CAST ( + + 89 AS INTEGER ) * + 30 + - COUNT ( * ), 39 AS col2
----
117479
39

query I rowsort
SELECT + 73 * - 19
----
-1387

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT + CASE - 38 WHEN 87 / + 69 THEN - - COALESCE ( + 14, - 61 * + - 8 * + - 51 + - 92 ) WHEN + + CASE + 48 WHEN + 70 + 23 THEN - 12 + + + 52 WHEN + 50 + - NULLIF ( - 38, ( - 30 ) / - 40 * 21 ) THEN NULL WHEN - + 80 THEN NULL ELSE NULL END / + 38 * - COUNT( * ) + + 99 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT + CASE - 38 WHEN 87 / + 69 THEN - - COALESCE ( + 14, - 61 * + - 8 * + - 51 + - 92 ) WHEN + + CASE + 48 WHEN + 70 + 23 THEN - 12 + + + 52 WHEN + 50 + - NULLIF ( - 38, ( - 30 ) / - 40 * 21 ) THEN NULL WHEN - + 80 THEN NULL ELSE NULL END / + 38 * - COUNT ( * ) + + 99 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT - NULLIF ( 57, + NULLIF ( + CAST( - 63 AS SIGNED ), - + 92 ) ) + 69
----
12

skipif mysql # not compatible
query I rowsort label-815
SELECT - NULLIF ( 57, + NULLIF ( + CAST ( - 63 AS INTEGER ), - + 92 ) ) + 69
----
12

query I rowsort
SELECT ALL 19 * - 17 + - 39
----
-362

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL + ( + NULLIF ( + 2, - - COUNT( * ) * 76 + - 31 ) ) * 61 * + 16 + + 95 * + 17 * - 34 AS col2
----
-52958

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL + ( + NULLIF ( + 2, - - COUNT ( * ) * 76 + - 31 ) ) * 61 * + 16 + + 95 * + 17 * - 34 AS col2
----
-52958

query I rowsort
SELECT ALL NULLIF ( - 30, + NULLIF ( + 27, + 56 ) )
----
-30

query I rowsort
SELECT DISTINCT + 65 + + 21
----
86

query I rowsort
SELECT ALL + 92 * - 57
----
-5244

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-822
SELECT - MIN( DISTINCT + - 33 ) DIV + 35 + + 6 col2
----
6

skipif mysql # not compatible
query I rowsort label-822
SELECT - MIN ( DISTINCT + - 33 ) / + 35 + + 6 col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-823
SELECT + 36 * COUNT( * ) * + + 13 AS col1, + 78
----
468
78

skipif mysql # not compatible
query II rowsort label-823
SELECT + 36 * COUNT ( * ) * + + 13 AS col1, + 78
----
468
78

query II rowsort
SELECT - 64 AS col2, + 85 AS col2
----
-64
85

query I rowsort
SELECT ALL + + 67 - 69 * - NULLIF ( + + 74, - 25 * - + 44 )
----
5173

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-827
SELECT - 2 - - 90 - 76 * - COUNT( * ) - + - 84 * - 68 * MAX( - CAST( - 59 AS SIGNED ) ) col1
----
-336844

skipif mysql # not compatible
query I rowsort label-827
SELECT - 2 - - 90 - 76 * - COUNT ( * ) - + - 84 * - 68 * MAX ( - CAST ( - 59 AS INTEGER ) ) col1
----
-336844

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-828
SELECT DISTINCT + 54 * + - 35 DIV COUNT( * )
----
-1890

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT + 54 * + - 35 / COUNT ( * )
----
-1890

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

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

query I rowsort
SELECT ALL + + 87 * 73 + - 22
----
6329

query II rowsort
SELECT DISTINCT 76 AS col0, 35 + 30 + + 79 AS col0
----
76
144

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT - COUNT( - 16 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-832
SELECT - COUNT ( - 16 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT - - ( 95 ) + - - 81 + - - MIN( - COALESCE ( 96, + 32 ) ) - - + 13 AS col1, 87 * + 45
----
93
3915

skipif mysql # not compatible
query II rowsort label-833
SELECT - - ( 95 ) + - - 81 + - - MIN ( - COALESCE ( 96, + 32 ) ) - - + 13 AS col1, 87 * + 45
----
93
3915

query I rowsort
SELECT - + 55 + 99
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT - CAST( 84 AS SIGNED ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-835
SELECT - CAST ( 84 AS INTEGER ) AS col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-836
SELECT - 5 * + 54 + - COUNT( * ) - 42 DIV - 21 + - 76 * - 48
----
3379

skipif mysql # not compatible
query I rowsort label-836
SELECT - 5 * + 54 + - COUNT ( * ) - 42 / - 21 + - 76 * - 48
----
3379

query I rowsort
SELECT DISTINCT 44 + + - 23 + + NULLIF ( ( 79 ), + - 41 / + 47 + + - 42 )
----
100

query II rowsort
SELECT 29 AS col1, - 74 * 34 * + - NULLIF ( - - 13, - 55 ) * - 93 + - 71 + 11
----
29
-3041904

query I rowsort
SELECT + NULLIF ( + + 85, + + 36 )
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-841
SELECT ALL + 17 / - 55 + + 16 + - CAST( NULL AS SIGNED ) + - - NULLIF ( + 45, + 66 * - 77 ) / + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + 17 / - 55 + + 16 + - CAST ( NULL AS INTEGER ) + - - NULLIF ( + 45, + 66 * - 77 ) / + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT - 78 DIV + + 90 + - 20 + + + 18 + 74 - + 95 + + - 67 * + - 64 * + 12 AS col1
----
51433

skipif mysql # not compatible
query I rowsort label-842
SELECT - 78 / + + 90 + - 20 + + + 18 + 74 - + 95 + + - 67 * + - 64 * + 12 AS col1
----
51433

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

query I rowsort
SELECT + 49 * ( + 17 ) col2
----
833

query I rowsort
SELECT + 8 + 65 * - 59 AS col0
----
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT - 31 / - CASE + + COUNT( * ) WHEN - + 63 THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT - 31 / - CASE + + COUNT ( * ) WHEN - + 63 THEN - + COUNT ( * ) ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT ( + COUNT( - 19 ) ) * + 71
----
71

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT ( + COUNT ( - 19 ) ) * + 71
----
71

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

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

query I rowsort
SELECT NULLIF ( + 29, + 65 )
----
29

query I rowsort
SELECT - 65 - - 32
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT - CAST( NULL AS SIGNED ) - ( 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-852
SELECT - CAST ( NULL AS INTEGER ) - ( 93 )
----
NULL

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

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

query I rowsort
SELECT - CASE WHEN NOT + 54 < 89 THEN + + 63 END AS col0
----
NULL

query I rowsort
SELECT - - 94 + + - 45 col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-856
SELECT - - 45 + + + 89 - MAX( 50 ) AS col2, 26 * + - COUNT( * ) col0
----
84
-26

skipif mysql # not compatible
query II rowsort label-856
SELECT - - 45 + + + 89 - MAX ( 50 ) AS col2, 26 * + - COUNT ( * ) col0
----
84
-26

query I rowsort
SELECT DISTINCT COALESCE ( 43, 48, + ( + 61 ) + + ( + 65 ) ) AS col0
----
43

query I rowsort
SELECT - NULLIF ( COALESCE ( - ( + - 40 ), 24 ), + 15 * - + COALESCE ( - + 44, + 97 ) )
----
-40

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

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

query II rowsort
SELECT - 76, 35 AS col1
----
-76
35

query I rowsort
SELECT ALL - 89 + - 7 * + ( - 95 ) * - - ( - 37 ) * + 11 * - NULLIF ( + 36, - 1 ) + + 66 + + 99
----
9743656

query I rowsort
SELECT - 80 * + + 77 + + ( 53 )
----
-6107

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT - + 67 DIV 14
----
-4

skipif mysql # not compatible
query I rowsort label-863
SELECT - + 67 / 14
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-864
SELECT DISTINCT - 40 DIV - 35 * COUNT( + 58 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT - 40 / - 35 * COUNT ( + 58 ) + COUNT ( * )
----
2

query II rowsort
SELECT ALL - 29 + + 47 AS col2, 36 * - 44 + - 40 * 11 col2
----
18
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT DISTINCT + - ( + + 98 ) + + ( + - COUNT( DISTINCT + 58 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + - ( + + 98 ) + + ( + - COUNT ( DISTINCT + 58 ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL - 49 + 86 * - + COUNT( * ) * + - 37 AS col1
----
3133

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - 49 + 86 * - + COUNT ( * ) * + - 37 AS col1
----
3133

query II rowsort
SELECT - + 57, 94 * - 70 AS col0
----
-57
-6580

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

query I rowsort
SELECT DISTINCT + 36 * + 71 AS col2
----
2556

query I rowsort
SELECT 13 * + ( + + 29 )
----
377

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

skipif mysql # not compatible
query I rowsort label-872
SELECT COUNT ( * ) + - - 50 + - COUNT ( * ) * - 44 AS col1
----
95

query I rowsort
SELECT DISTINCT - COALESCE ( + 98, + + 64 ) + + 36 + 69 * - 82
----
-5720

query II rowsort
SELECT DISTINCT + CASE - 70 WHEN - 33 + + 50 * + 54 THEN - 57 * 39 WHEN - 97 * + + 82 THEN - 26 / 29 ELSE NULL END - + 72, 16 col0
----
NULL
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT COUNT( DISTINCT 79 ) + - SUM( - 33 )
----
34

skipif mysql # not compatible
query I rowsort label-876
SELECT COUNT ( DISTINCT 79 ) + - SUM ( - 33 )
----
34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-878
SELECT NULLIF ( 59, - + 14 + 46 - - - CAST( NULL AS SIGNED ) + - ( - 32 ) * + 11 * + + ( + COUNT( * ) ) * COALESCE ( 63, + 34 + + CASE + ( 94 ) WHEN 28 * + COUNT( * ) THEN - 93 * - 17 * - MAX( ALL 6 ) DIV - 97 WHEN - 30 THEN NULL END, - - NULLIF ( + ( - 90 ), - 79 * 15 ) * + 62 ) + - 38 ) * + COUNT( * ) DIV 81 + + - 45 + - 14 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-878
SELECT NULLIF ( 59, - + 14 + 46 - - - CAST ( NULL AS INTEGER ) + - ( - 32 ) * + 11 * + + ( + COUNT ( * ) ) * COALESCE ( 63, + 34 + + CASE + ( 94 ) WHEN 28 * + COUNT ( * ) THEN - 93 * - 17 * - MAX ( ALL 6 ) / - 97 WHEN - 30 THEN NULL END, - - NULLIF ( + ( - 90 ), - 79 * 15 ) * + 62 ) + - 38 ) * + COUNT ( * ) / 81 + + - 45 + - 14 AS col2
----
-59

query I rowsort
SELECT DISTINCT 83 - - 82
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-880
SELECT DISTINCT 95 DIV + + 33 AS col2, 55 * + + 36 * + - COUNT( * ) * + 60 AS col1
----
2
-118800

skipif mysql # not compatible
query II rowsort label-880
SELECT DISTINCT 95 / + + 33 AS col2, 55 * + + 36 * + - COUNT ( * ) * + 60 AS col1
----
2
-118800

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT 48 DIV 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-881
SELECT 48 / 45 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT MIN( - 45 ) * + COALESCE ( + 53, + COUNT( * ) * 77 + - - 26 * + 80 - + COUNT( - ( + 13 ) ), + - ( + - 48 ) * + 47 ) + + COUNT( * ) col2
----
-2384

skipif mysql # not compatible
query I rowsort label-882
SELECT MIN ( - 45 ) * + COALESCE ( + 53, + COUNT ( * ) * 77 + - - 26 * + 80 - + COUNT ( - ( + 13 ) ), + - ( + - 48 ) * + 47 ) + + COUNT ( * ) col2
----
-2384

query I rowsort
SELECT DISTINCT 47 - - 87 + 37 AS col2
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT 73 DIV + - 92 * 24
----
0

skipif mysql # not compatible
query I rowsort label-884
SELECT 73 / + - 92 * 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT 36 * - - 1 * - + 58 * NULLIF ( + 82, - 93 + + - COALESCE ( 28, - COUNT( * ) ) ) + - 99
----
-171315

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT 36 * - - 1 * - + 58 * NULLIF ( + 82, - 93 + + - COALESCE ( 28, - COUNT ( * ) ) ) + - 99
----
-171315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT DISTINCT 40 * CAST( + - 32 AS SIGNED )
----
-1280

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT 40 * CAST ( + - 32 AS INTEGER )
----
-1280

query I rowsort
SELECT ALL 54 * 16
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - COALESCE ( ( - 97 ), 84, 99 + - 34 ) - - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-888
SELECT - COALESCE ( ( - 97 ), 84, 99 + - 34 ) - - + COUNT ( * )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT 88 * 48 * + + 23 + + CAST( + - 30 AS SIGNED ) * + - CAST( NULL AS SIGNED ) + 4 - - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT 88 * 48 * + + 23 + + CAST ( + - 30 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) + 4 - - 65 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( 26, + 97 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-891
SELECT - 78 * + 72 AS col0, COUNT( * ) + - 41 + - 56 AS col0
----
-5616
-96

skipif mysql # not compatible
query II rowsort label-891
SELECT - 78 * + 72 AS col0, COUNT ( * ) + - 41 + - 56 AS col0
----
-5616
-96

query I rowsort
SELECT + 47 * - 37 * - 80 AS col1
----
139120

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT - - COALESCE ( - 63, COUNT( * ) * - CASE - 45 WHEN - 29 THEN + 0 WHEN - AVG ( + - 52 ) THEN NULL ELSE NULL END * - - 51 )
----
-63

skipif mysql # not compatible
query I rowsort label-893
SELECT - - COALESCE ( - 63, COUNT ( * ) * - CASE - 45 WHEN - 29 THEN + 0 WHEN - AVG ( + - 52 ) THEN NULL ELSE NULL END * - - 51 )
----
-63

query I rowsort
SELECT DISTINCT 65 + 90
----
155

query I rowsort
SELECT + 14 * - - ( + 83 ) AS col0
----
1162

onlyif mysql # aggregate syntax: 
query II rowsort label-896
SELECT ALL CASE - MAX( DISTINCT - 38 ) WHEN - - CASE WHEN NOT 51 NOT IN ( + COUNT( * ) ) THEN 36 END + + - 36 - + 8 * + COUNT( * ) THEN + 83 WHEN + - 68 THEN 77 END + - CASE 30 WHEN - - 18 THEN NULL WHEN 54 + + 2 THEN - 92 ELSE NULL END / + 41 + 54, + 49 col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-896
SELECT ALL CASE - MAX ( DISTINCT - 38 ) WHEN - - CASE WHEN NOT 51 NOT IN ( + COUNT ( * ) ) THEN 36 END + + - 36 - + 8 * + COUNT ( * ) THEN + 83 WHEN + - 68 THEN 77 END + - CASE 30 WHEN - - 18 THEN NULL WHEN 54 + + 2 THEN - 92 ELSE NULL END / + 41 + 54, + 49 col2
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT COALESCE ( 10, - + SUM( DISTINCT 30 ) ) col2
----
10

skipif mysql # not compatible
query I rowsort label-897
SELECT COALESCE ( 10, - + SUM ( DISTINCT 30 ) ) col2
----
10

query I rowsort
SELECT 49 * - 30
----
-1470

query I rowsort
SELECT 23 + - 67
----
-44

query II rowsort
SELECT 6 AS col2, + 75
----
6
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-901
SELECT MAX( DISTINCT + - 63 ) + - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT MAX ( DISTINCT + - 63 ) + - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT 68 DIV + + 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-902
SELECT 68 / + + 31 AS col2
----
2

query I rowsort
SELECT 39 * 35
----
1365

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT ALL + 50 DIV 1
----
50

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL + 50 / 1
----
50

query I rowsort
SELECT ALL - NULLIF ( + 60, - 42 * ( + 92 ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT 33 * - 98 + - COUNT( * )
----
-3235

skipif mysql # not compatible
query I rowsort label-906
SELECT 33 * - 98 + - COUNT ( * )
----
-3235

query I rowsort
SELECT 74 * - 81 AS col1
----
-5994

query I rowsort
SELECT 51 * - 78 * 72 + + - 81 + ( + 81 ) AS col2
----
-286416

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT SUM( ALL + 53 ) col0
----
53

skipif mysql # not compatible
query I rowsort label-909
SELECT SUM ( ALL + 53 ) col0
----
53

query I rowsort
SELECT DISTINCT - ( CASE - ( 57 ) WHEN - 93 THEN - + 16 WHEN - + 77 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT ALL - 61 * - + 32 * - MIN( ALL - CAST( + 35 AS SIGNED ) ) AS col1
----
68320

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - 61 * - + 32 * - MIN ( ALL - CAST ( + 35 AS INTEGER ) ) AS col1
----
68320

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

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

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

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

query II rowsort
SELECT DISTINCT - ( - - COALESCE ( - 50, - ( - 31 ), + + 84 ) ) AS col0, + 85
----
50
85

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT ALL + CASE + ( + + 93 ) WHEN - 1 + - ( + + 39 ) THEN NULL WHEN + + 24 + + COALESCE ( - 33, ( + ( 18 ) ) ) THEN - - 49 * - 48 + 89 * - 64 * + COUNT( + - 86 ) * + 49 END + - + 29 / + MIN( + 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL + CASE + ( + + 93 ) WHEN - 1 + - ( + + 39 ) THEN NULL WHEN + + 24 + + COALESCE ( - 33, ( + ( 18 ) ) ) THEN - - 49 * - 48 + 89 * - 64 * + COUNT ( + - 86 ) * + 49 END + - + 29 / + MIN ( + 55 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-919
SELECT + 21 + - 88 * + 34 * - NULLIF ( + 61, + CAST( 12 AS SIGNED ) ) + ( - + 11 ), 78 + - - 74 col0
----
182522
152

skipif mysql # not compatible
query II rowsort label-919
SELECT + 21 + - 88 * + 34 * - NULLIF ( + 61, + CAST ( 12 AS INTEGER ) ) + ( - + 11 ), 78 + - - 74 col0
----
182522
152

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

skipif mysql # not compatible
query II rowsort label-920
SELECT - ( COUNT ( * ) ) / - 54 AS col1, - 29
----
0
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-921
SELECT ALL 65 + - - SUM( + CAST( - - 38 AS SIGNED ) ) col0
----
103

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL 65 + - - SUM ( + CAST ( - - 38 AS INTEGER ) ) col0
----
103

query I rowsort
SELECT + 4 - - 7 AS col1
----
11

query I rowsort
SELECT + NULLIF ( - 45, 60 + 29 ) AS col0
----
-45

query I rowsort
SELECT 42 * + 98 + + 48
----
4164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT ALL + 31 + - + COALESCE ( COUNT( * ), - - ( + 12 ), + 29 ) * - NULLIF ( + 79, - 26 * + 77 )
----
110

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + 31 + - + COALESCE ( COUNT ( * ), - - ( + 12 ), + 29 ) * - NULLIF ( + 79, - 26 * + 77 )
----
110

query I rowsort
SELECT ALL + 73 * - 49
----
-3577

query I rowsort
SELECT DISTINCT - 4 + 0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-929
SELECT CAST( - + MAX( ALL 63 ) AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-929
SELECT CAST ( - + MAX ( ALL 63 ) AS INTEGER )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT ALL 15 + 73 DIV + + ( + - 51 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL 15 + 73 / + + ( + - 51 ) AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-931
SELECT + SUM( ALL - - 88 ) + + + 33 + + 29 DIV 84
----
121

skipif mysql # not compatible
query I rowsort label-931
SELECT + SUM ( ALL - - 88 ) + + + 33 + + 29 / 84
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-932
SELECT ALL CAST( - ( ( - 62 ) ) AS SIGNED ) * + ( COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL CAST ( - ( ( - 62 ) ) AS INTEGER ) * + ( COUNT ( * ) )
----
62

onlyif mysql # aggregate syntax: 
query III rowsort label-933
SELECT + 98 + + 47 + - 51 AS col2, + 79 * + ( - - COUNT( * ) ) AS col1, + 55 * - - COUNT( * ) AS col1
----
94
79
55

skipif mysql # not compatible
query III rowsort label-933
SELECT + 98 + + 47 + - 51 AS col2, + 79 * + ( - - COUNT ( * ) ) AS col1, + 55 * - - COUNT ( * ) AS col1
----
94
79
55

query I rowsort
SELECT + + 15 * + 65 AS col2
----
975

query II rowsort
SELECT + 25 + + + ( - 88 ) AS col1, 68 AS col1
----
-63
68

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT ALL 95 + 6 + + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL 95 + 6 + + COUNT ( * )
----
102

query II rowsort
SELECT - 46 AS col0, - 16 + + 43 AS col0
----
-46
27

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT - CASE - 13 WHEN - 51 / 97 + - - 41 / + 58 * - 54 - COUNT( * ) + - - 86 THEN NULL WHEN + 4 * - 69 * - - ( - + 1 ) * 66 + 71 THEN - - CASE MIN( ALL + 13 ) WHEN + 30 THEN 97 WHEN 90 THEN 5 + - + 16 + - - 29 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT - CASE - 13 WHEN - 51 / 97 + - - 41 / + 58 * - 54 - COUNT ( * ) + - - 86 THEN NULL WHEN + 4 * - 69 * - - ( - + 1 ) * 66 + 71 THEN - - CASE MIN ( ALL + 13 ) WHEN + 30 THEN 97 WHEN 90 THEN 5 + - + 16 + - - 29 END END AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - 32, - 36 )
----
32

query I rowsort
SELECT ALL - 64 * 80 AS col0
----
-5120

query I rowsort
SELECT + 79 * 34
----
2686

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-942
SELECT ALL NULLIF ( - + NULLIF ( 96, - CAST( NULL AS DECIMAL ) ), ( 62 ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL NULLIF ( - + NULLIF ( 96, - CAST ( NULL AS REAL ) ), ( 62 ) ) AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-943
SELECT - COALESCE ( 47, - + 36 ) * ( - CASE COALESCE ( - COUNT( * ), - 69 * + + 90 + 92 + + 2 * + - 87 / + 51 ) WHEN + 87 + 96 + + 9 THEN + - CAST( + 33 AS SIGNED ) * - 83 END ) + 96 - + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT - COALESCE ( 47, - + 36 ) * ( - CASE COALESCE ( - COUNT ( * ), - 69 * + + 90 + 92 + + 2 * + - 87 / + 51 ) WHEN + 87 + 96 + + 9 THEN + - CAST ( + 33 AS INTEGER ) * - 83 END ) + 96 - + - 92 AS col1
----
NULL

query I rowsort
SELECT 56 * - + 93 + + - 90 AS col2
----
-5298

query I rowsort
SELECT ALL + NULLIF ( - 30, - 90 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-946
SELECT - CAST( NULL AS SIGNED ) * + + 52, + 31 * + + 9 col0
----
NULL
279

skipif mysql # not compatible
query II rowsort label-946
SELECT - CAST ( NULL AS INTEGER ) * + + 52, + 31 * + + 9 col0
----
NULL
279

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-947
SELECT - 89 * - COALESCE ( + + 16, + - 64, - COUNT( * ) DIV - 59 + - CASE + - 41 WHEN + COUNT( * ) * + CAST( NULL AS DECIMAL ) THEN NULL WHEN 85 THEN - 91 DIV + COALESCE ( COUNT( * ), + - 14 ) END )
----
1424

skipif mysql # not compatible
query I rowsort label-947
SELECT - 89 * - COALESCE ( + + 16, + - 64, - COUNT ( * ) / - 59 + - CASE + - 41 WHEN + COUNT ( * ) * + CAST ( NULL AS REAL ) THEN NULL WHEN 85 THEN - 91 / + COALESCE ( COUNT ( * ), + - 14 ) END )
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL 34 * + - CASE 64 WHEN + 85 + - 7 THEN ( + 77 ) + - 17 / + + 42 - 83 WHEN - COALESCE ( + MAX( ALL + CASE - 6 WHEN - - 83 + - + 81 * 29 * - 30 THEN 6 END ), + ( - 12 ) + + 72 * - + 59 * + 18 ) * 42 * + - 51 - + COALESCE ( + 79, ( - 69 ) ) THEN NULL ELSE NULL END + - + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL 34 * + - CASE 64 WHEN + 85 + - 7 THEN ( + 77 ) + - 17 / + + 42 - 83 WHEN - COALESCE ( + MAX ( ALL + CASE - 6 WHEN - - 83 + - + 81 * 29 * - 30 THEN 6 END ), + ( - 12 ) + + 72 * - + 59 * + 18 ) * 42 * + - 51 - + COALESCE ( + 79, ( - 69 ) ) THEN NULL ELSE NULL END + - + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-949
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col2, + 16 DIV - + COUNT( * )
----
-1
-16

skipif mysql # not compatible
query II rowsort label-949
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col2, + 16 / - + COUNT ( * )
----
-1
-16

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

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL + 29 / ( COUNT ( * ) ) AS col0
----
29

query I rowsort
SELECT DISTINCT 96 * - 45 * - + NULLIF ( + ( + ( - 14 ) ), - - 1 ) + - 55
----
-60535

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - COUNT( * ) * - 36 * - 94 col0
----
-3384

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - COUNT ( * ) * - 36 * - 94 col0
----
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT - + MIN( - 29 ) * - 94 AS col2
----
-2726

skipif mysql # not compatible
query I rowsort label-954
SELECT - + MIN ( - 29 ) * - 94 AS col2
----
-2726

query II rowsort
SELECT + 2 + - + 37 col2, + 23 AS col0
----
-35
23

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT + - 81 * - COALESCE ( 62, - COUNT( * ) ) + + - COALESCE ( 42, + 59 ) AS col1
----
4980

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + - 81 * - COALESCE ( 62, - COUNT ( * ) ) + + - COALESCE ( 42, + 59 ) AS col1
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT DISTINCT - COUNT( * ) * - + 46 + - 77 * 40 * - ( 44 ) AS col0
----
135566

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT - COUNT ( * ) * - + 46 + - 77 * 40 * - ( 44 ) AS col0
----
135566

query I rowsort
SELECT ALL + - 15 * - 78 + + 43 col0
----
1213

query I rowsort
SELECT - 69 * 28 AS col1
----
-1932

query I rowsort
SELECT ALL + - NULLIF ( + + ( - 51 ), - 20 + ( + + 11 ) ) AS col2
----
51

query I rowsort
SELECT DISTINCT - 21 * - 92 + - - 32
----
1964

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT ALL 26 DIV + 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL 26 / + 18 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-963
SELECT - CASE - COUNT( * ) WHEN 69 + + 44 + + + 29 * - ( - 27 ) + + + 38 + + + 52 THEN - 46 WHEN + - COUNT( * ) * + + COUNT( * ) THEN NULL ELSE NULL END, + CAST( NULL AS SIGNED ) * COUNT( * ) * - ( 48 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-963
SELECT - CASE - COUNT ( * ) WHEN 69 + + 44 + + + 29 * - ( - 27 ) + + + 38 + + + 52 THEN - 46 WHEN + - COUNT ( * ) * + + COUNT ( * ) THEN NULL ELSE NULL END, + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - ( 48 )
----
NULL
NULL

query I rowsort
SELECT - - 70 - - + NULLIF ( + 0, - 8 ) + - + 70
----
0

query I rowsort
SELECT + - 6 * - + 91 AS col1
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-966
SELECT + 32 DIV + 46 + + 36 * + MAX( + 19 ) AS col0
----
684

skipif mysql # not compatible
query I rowsort label-966
SELECT + 32 / + 46 + + 36 * + MAX ( + 19 ) AS col0
----
684

query I rowsort
SELECT - 71 * + 93
----
-6603

query I rowsort
SELECT DISTINCT - 67 * 86 * + - 38
----
218956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT DISTINCT + CASE + + 83 WHEN 17 + - + CAST( NULL AS SIGNED ) + + 63 * - CAST( NULL AS SIGNED ) * - - ( + - 64 ) THEN NULL ELSE + 24 END - + 61
----
-37

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT + CASE + + 83 WHEN 17 + - + CAST ( NULL AS INTEGER ) + + 63 * - CAST ( NULL AS INTEGER ) * - - ( + - 64 ) THEN NULL ELSE + 24 END - + 61
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-970
SELECT + CASE - COUNT( DISTINCT 34 ) WHEN - + COUNT( * ) THEN + + 95 ELSE 80 END - 39 + - CAST( NULL AS DECIMAL ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT + CASE - COUNT ( DISTINCT 34 ) WHEN - + COUNT ( * ) THEN + + 95 ELSE 80 END - 39 + - CAST ( NULL AS REAL ) + - 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-971
SELECT ALL + CAST( + 95 AS SIGNED ) * - 48 + + COUNT( * ) col1
----
-4559

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL + CAST ( + 95 AS INTEGER ) * - 48 + + COUNT ( * ) col1
----
-4559

query I rowsort
SELECT DISTINCT 78 * + + 14 AS col0
----
1092

query II rowsort
SELECT DISTINCT 53, 4 AS col2
----
53
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-974
SELECT - CAST( - ( 38 ) AS SIGNED ) AS col0, 42
----
38
42

skipif mysql # not compatible
query II rowsort label-974
SELECT - CAST ( - ( 38 ) AS INTEGER ) AS col0, 42
----
38
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-975
SELECT - CAST( - CASE 38 WHEN + 91 THEN + - 65 * + ( + 12 ) + 35 + 60 WHEN - + 3 / + - CASE + MIN( + 85 ) WHEN + 14 THEN NULL WHEN COALESCE ( - - CAST( - AVG ( ALL - 90 ) AS DECIMAL ), - COUNT( * ) * - 32 * - 47, 9 + 56 + 66 ) + + 82 THEN - - 81 WHEN - + 4 + + COUNT( * ) / - COUNT( - 11 ) THEN + - 74 ELSE - 96 END - SUM( ALL 34 ) THEN + - COALESCE ( - + 33, 32, + 9 + - 34 - - 55 ) * - 17 - + 14 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT - CAST ( - CASE 38 WHEN + 91 THEN + - 65 * + ( + 12 ) + 35 + 60 WHEN - + 3 / + - CASE + MIN ( + 85 ) WHEN + 14 THEN NULL WHEN COALESCE ( - - CAST ( - AVG ( ALL - 90 ) AS REAL ), - COUNT ( * ) * - 32 * - 47, 9 + 56 + 66 ) + + 82 THEN - - 81 WHEN - + 4 + + COUNT ( * ) / - COUNT ( - 11 ) THEN + - 74 ELSE - 96 END - SUM ( ALL 34 ) THEN + - COALESCE ( - + 33, 32, + 9 + - 34 - - 55 ) * - 17 - + 14 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT + COUNT( * ) * 14 * + + 29 AS col1
----
406

skipif mysql # not compatible
query I rowsort label-976
SELECT + COUNT ( * ) * 14 * + + 29 AS col1
----
406

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT + 95 + - MAX( - - 92 ) * + - 60 * + - 1
----
-5425

skipif mysql # not compatible
query I rowsort label-977
SELECT + 95 + - MAX ( - - 92 ) * + - 60 * + - 1
----
-5425

query I rowsort
SELECT + 1 - 39
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-979
SELECT ALL COUNT( * ) DIV 40 + - 25 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL COUNT ( * ) / 40 + - 25 AS col2
----
-25

query I rowsort
SELECT DISTINCT + 16 * - 35
----
-560

query I rowsort
SELECT ALL + CASE WHEN 79 = NULL THEN + 19 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-982
SELECT + CAST( + 81 AS SIGNED ) DIV - 83 * 84
----
0

skipif mysql # not compatible
query I rowsort label-982
SELECT + CAST ( + 81 AS INTEGER ) / - 83 * 84
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT COUNT( * ) * + 91 + 93 * + - SUM( ALL + NULLIF ( + 59, + 6 * + 68 * - 36 ) ) * + NULLIF ( 94, - CAST( - 74 AS SIGNED ) ) + + - 69 + - 61 * 7 * - 5 + - + 79 * 58 + + + 1 + - 91 AS col2
----
-518293

skipif mysql # not compatible
query I rowsort label-984
SELECT COUNT ( * ) * + 91 + 93 * + - SUM ( ALL + NULLIF ( + 59, + 6 * + 68 * - 36 ) ) * + NULLIF ( 94, - CAST ( - 74 AS INTEGER ) ) + + - 69 + - 61 * 7 * - 5 + - + 79 * 58 + + + 1 + - 91 AS col2
----
-518293

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

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

query I rowsort
SELECT ALL + CASE 67 WHEN + 85 + 36 THEN NULL WHEN + 34 THEN + 62 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-987
SELECT + CAST ( NULL AS INTEGER ) / + 5 AS col2
----
NULL

query I rowsort
SELECT - 29 * 6 col0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT 71 DIV 91 + + 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-989
SELECT 71 / 91 + + 65 AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT CAST( 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-990
SELECT CAST ( 26 AS INTEGER ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-991
SELECT ALL - 23 DIV + 60 + 2
----
2

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - 23 / + 60 + 2
----
2

query I rowsort
SELECT 14 - + NULLIF ( + 95, 3 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT - 54 * - ( - COUNT( * ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - 54 * - ( - COUNT ( * ) ) AS col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT DISTINCT 16 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT 16 / - 32
----
0

query I rowsort
SELECT ALL + COALESCE ( 52, + 62 * + 38 ) - - 67
----
119

query I rowsort
SELECT 4 + 19 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT - 15 * - COUNT( * ) + + 15 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-997
SELECT - 15 * - COUNT ( * ) + + 15 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT 49 - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-998
SELECT 49 - COUNT ( * ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-999
SELECT DISTINCT + MIN( DISTINCT 31 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + MIN ( DISTINCT 31 ) * - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 59 - 16
----
43

query I rowsort
SELECT 33 + 60
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT 49 + + 65 * - COUNT( * ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-1004
SELECT 49 + + 65 * - COUNT ( * ) col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1005
SELECT MIN( + 84 ) + 63 DIV + 13
----
88

skipif mysql # not compatible
query I rowsort label-1005
SELECT MIN ( + 84 ) + 63 / + 13
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT SUM( ALL - 92 ) * - 54 AS col0
----
4968

skipif mysql # not compatible
query I rowsort label-1006
SELECT SUM ( ALL - 92 ) * - 54 AS col0
----
4968

query I rowsort
SELECT 68 + - 8 AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1008
SELECT ALL - 29 DIV COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL - 29 / COUNT ( * )
----
-29

query I rowsort
SELECT 54 + 33 * - 99
----
-3213

query I rowsort
SELECT 64 * 99 AS col1
----
6336

query I rowsort
SELECT 67 * + 98 col0
----
6566

query I rowsort
SELECT ALL 84 * 85
----
7140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1013
SELECT ALL - 29 * + CASE 40 WHEN + 67 * + 95 + 87 THEN NULL WHEN 59 THEN CAST( NULL AS SIGNED ) WHEN COUNT( 86 ) * 8 - + 32 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL - 29 * + CASE 40 WHEN + 67 * + 95 + 87 THEN NULL WHEN 59 THEN CAST ( NULL AS INTEGER ) WHEN COUNT ( 86 ) * 8 - + 32 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 75 + + 30 * 0
----
75

query I rowsort
SELECT DISTINCT - 11 + 99
----
88

query I rowsort
SELECT DISTINCT + 57 + NULLIF ( 77, 84 - - 98 )
----
134

query I rowsort
SELECT ALL - 2 * + ( - 76 ) AS col1
----
152

query I rowsort
SELECT NULLIF ( 34, 58 ) * 99
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL COUNT( * ) + 63 * 62 col2
----
3907

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL COUNT ( * ) + 63 * 62 col2
----
3907

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT MIN( ALL 81 ) + - 43 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1020
SELECT MIN ( ALL 81 ) + - 43 AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT DISTINCT CASE 31 WHEN + 25 THEN 6 WHEN CAST( NULL AS SIGNED ) THEN NULL END + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT CASE 31 WHEN + 25 THEN 6 WHEN CAST ( NULL AS INTEGER ) THEN NULL END + 14
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT + SUM( + 96 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-1023
SELECT + SUM ( + 96 ) col0
----
96

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

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL + COUNT ( * ) + + 92 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL + CASE WHEN NULL < NULL THEN + 60 WHEN NOT 90 < + 1 * - 66 THEN - ( COUNT( * ) ) - 38 * 54 END + 93 * 0 AS col2
----
-2053

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL + CASE WHEN NULL < NULL THEN + 60 WHEN NOT 90 < + 1 * - 66 THEN - ( COUNT ( * ) ) - 38 * 54 END + 93 * 0 AS col2
----
-2053

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT 63 DIV - 27 + 31
----
29

skipif mysql # not compatible
query I rowsort label-1026
SELECT 63 / - 27 + 31
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT MIN( - 13 ) * + 25
----
-325

skipif mysql # not compatible
query I rowsort label-1027
SELECT MIN ( - 13 ) * + 25
----
-325

query I rowsort
SELECT 0 + - 2 * 13
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL 20 - - NULLIF ( 37 - 40, 13 * COUNT( * ) ) * NULLIF ( - 88 * - 47 + + 19, MAX( 91 ) * - COUNT( * ) + + NULLIF ( - 33, - 49 ) )
----
-12445

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL 20 - - NULLIF ( 37 - 40, 13 * COUNT ( * ) ) * NULLIF ( - 88 * - 47 + + 19, MAX ( 91 ) * - COUNT ( * ) + + NULLIF ( - 33, - 49 ) )
----
-12445

query I rowsort
SELECT ALL + 50 - - 29 AS col0
----
79

query I rowsort
SELECT 49 * 76 AS col2
----
3724

query I rowsort
SELECT 92 * - 53
----
-4876

query I rowsort
SELECT 23 * - 73 + - 23
----
-1702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT DISTINCT - - ( CAST( - 19 AS SIGNED ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - - ( CAST ( - 19 AS INTEGER ) ) AS col1
----
-19

query I rowsort
SELECT 72 * 90
----
6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT ALL - CASE CASE WHEN ( NULL ) BETWEEN ( CASE + COUNT( * ) WHEN 2 THEN NULL WHEN 38 * + 2 + 22 THEN NULL ELSE - COUNT( * ) END ) AND ( NULLIF ( + 33, CAST( NULL AS SIGNED ) + 85 ) ) THEN 55 ELSE - 75 END WHEN 49 THEN - 47 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - CASE CASE WHEN ( NULL ) BETWEEN ( CASE + COUNT ( * ) WHEN 2 THEN NULL WHEN 38 * + 2 + 22 THEN NULL ELSE - COUNT ( * ) END ) AND ( NULLIF ( + 33, CAST ( NULL AS INTEGER ) + 85 ) ) THEN 55 ELSE - 75 END WHEN 49 THEN - 47 END col1
----
NULL

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

query I rowsort
SELECT ALL - 18 * 20
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT - CASE + 34 WHEN 70 THEN 59 * - 84 WHEN ( + ( + 6 ) ) THEN NULL ELSE - ( + 82 ) * 25 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT - CASE + 34 WHEN 70 THEN 59 * - 84 WHEN ( + ( + 6 ) ) THEN NULL ELSE - ( + 82 ) * 25 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1040
SELECT ALL 50 DIV 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL 50 / 92 AS col0
----
0

query I rowsort
SELECT ( - 67 ) * NULLIF ( 11, COALESCE ( 61, + 57 ) ) AS col1
----
-737

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

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

query I rowsort
SELECT ALL - 6 + + 85 + 90 AS col2
----
169

query I rowsort
SELECT ALL + 42 + + + 89 col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT 58 * - - ( - CASE COUNT( * ) WHEN - CASE - COUNT( * ) WHEN MAX( + 48 ) THEN - 90 ELSE 24 / 95 END * AVG ( DISTINCT + 5 ) THEN 55 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT 58 * - - ( - CASE COUNT ( * ) WHEN - CASE - COUNT ( * ) WHEN MAX ( + 48 ) THEN - 90 ELSE 24 / 95 END * AVG ( DISTINCT + 5 ) THEN 55 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 19 + - 44 + - 12 * - 51
----
587

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL + SUM( DISTINCT - - 10 ) + - 61
----
-51

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + SUM ( DISTINCT - - 10 ) + - 61
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL - 43 + + COALESCE ( + ( COUNT( 2 ) ), 65, 19 )
----
-42

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL - 43 + + COALESCE ( + ( COUNT ( 2 ) ), 65, 19 )
----
-42

query I rowsort
SELECT DISTINCT + 88 + + 97 + 3 AS col2
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-1050
SELECT ALL + 43 + 42 DIV - 44
----
43

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL + 43 + 42 / - 44
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT 93 - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1051
SELECT 93 - COUNT ( * )
----
92

query I rowsort
SELECT ALL + 70 + 12 AS col2
----
82

query I rowsort
SELECT 73 + 86 AS col2
----
159

query I rowsort
SELECT ALL + 44 + 17
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1055
SELECT DISTINCT - CASE + 62 WHEN 24 DIV - CAST( - 48 AS DECIMAL ) THEN - 74 - + CASE - 25 WHEN + 6 THEN 77 END ELSE + COUNT( * ) END DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT - CASE + 62 WHEN 24 / - CAST ( - 48 AS REAL ) THEN - 74 - + CASE - 25 WHEN + 6 THEN 77 END ELSE + COUNT ( * ) END / 69
----
0

query I rowsort
SELECT ALL - ( - + 15 ) * 88 AS col1
----
1320

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

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT - + SUM ( - - ( - 11 ) ) * - COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT DISTINCT + + 62 * - 74 - - 39 AS col0
----
-4549

query I rowsort
SELECT DISTINCT - - 30 * - 61 + 46 * + 43 AS col2
----
148

query I rowsort
SELECT ALL + - 67 * + + 66
----
-4422

query I rowsort
SELECT - 46 * + 84 + + 69 AS col1
----
-3795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1062
SELECT + + 93 * + - COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT + + 93 * + - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT 82 DIV - 91 + 56
----
56

skipif mysql # not compatible
query I rowsort label-1063
SELECT 82 / - 91 + 56
----
56

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT + 38 - + - MIN( 52 ) + 64 * + 85 AS col1
----
5530

skipif mysql # not compatible
query I rowsort label-1067
SELECT + 38 - + - MIN ( 52 ) + 64 * + 85 AS col1
----
5530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1068
SELECT + - COUNT( * ) * - + 4 + SUM( 1 + - 21 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT + - COUNT ( * ) * - + 4 + SUM ( 1 + - 21 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT + CASE + 48 WHEN - 95 + 59 / - 91 THEN NULLIF ( - 66, 82 + + NULLIF ( - 35, 64 ) ) - 8 WHEN + 0 + - 16 THEN NULL WHEN 31 THEN 58 / 13 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT + CASE + 48 WHEN - 95 + 59 / - 91 THEN NULLIF ( - 66, 82 + + NULLIF ( - 35, 64 ) ) - 8 WHEN + 0 + - 16 THEN NULL WHEN 31 THEN 58 / 13 + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT + + MAX( DISTINCT + 8 ) * COUNT( + 70 * 78 ) + 70 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1070
SELECT + + MAX ( DISTINCT + 8 ) * COUNT ( + 70 * 78 ) + 70 AS col0
----
78

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

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

query I rowsort
SELECT + 78 * + 52 * 6
----
24336

query I rowsort
SELECT + + 56 + + 17
----
73

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1075
SELECT DISTINCT + COALESCE ( 56, 79 DIV - MAX( ALL 12 ) ) * + MIN( 4 )
----
224

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT + COALESCE ( 56, 79 / - MAX ( ALL 12 ) ) * + MIN ( 4 )
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1076
SELECT ALL 56 * 27 / - + CAST( NULL AS SIGNED ) * CASE + 18 * 12 WHEN - 48 + CAST( + 7 AS SIGNED ) THEN NULL WHEN + 95 - COUNT( * ) THEN - NULLIF ( - 83, - 72 ) END + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL 56 * 27 / - + CAST ( NULL AS INTEGER ) * CASE + 18 * 12 WHEN - 48 + CAST ( + 7 AS INTEGER ) THEN NULL WHEN + 95 - COUNT ( * ) THEN - NULLIF ( - 83, - 72 ) END + 59
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1077
SELECT + CAST ( NULL AS INTEGER ) - + + CAST ( NULL AS INTEGER ) - + + 61 * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL 99 * 85 / ( + CASE + ( - 36 ) WHEN + 86 THEN COUNT( * ) WHEN 70 THEN NULL END ) + - ( - 66 ) * AVG ( DISTINCT - 47 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL 99 * 85 / ( + CASE + ( - 36 ) WHEN + 86 THEN COUNT ( * ) WHEN 70 THEN NULL END ) + - ( - 66 ) * AVG ( DISTINCT - 47 ) col1
----
NULL

query I rowsort
SELECT DISTINCT 13 + 27 + - 44 * 65 AS col2
----
-2820

query I rowsort
SELECT ALL - 11 + + 8
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT - 42 + + 24 + - - COUNT( * ) + 23 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1081
SELECT - 42 + + 24 + - - COUNT ( * ) + 23 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL 48 + - - 37 + + MIN( ALL - 22 ) * - MAX( + 13 )
----
371

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL 48 + - - 37 + + MIN ( ALL - 22 ) * - MAX ( + 13 )
----
371

query II rowsort
SELECT - 12 AS col2, + 45 + - NULLIF ( + 54, 37 ) + 52 AS col2
----
-12
43

query I rowsort
SELECT - 19 + 12 AS col0
----
-7

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

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

query I rowsort
SELECT + 24 + - 66 + + 44 * + 92
----
4006

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1088
SELECT DISTINCT - SUM( DISTINCT + 35 ) * 32 DIV 93 - - 58
----
46

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - SUM ( DISTINCT + 35 ) * 32 / 93 - - 58
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT ALL 65 * 58 * - COALESCE ( + 46, ( 24 ) + - 14 DIV + 41 ) AS col2
----
-173420

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL 65 * 58 * - COALESCE ( + 46, ( 24 ) + - 14 / + 41 ) AS col2
----
-173420

query I rowsort
SELECT - 76 * 18 * 79
----
-108072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT DISTINCT MIN( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT MIN ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL - COUNT( ALL + 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL - COUNT ( ALL + 86 ) AS col1
----
-1

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

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

query I rowsort
SELECT DISTINCT + 36 - - - 59 + - 77 + - 16
----
-116

query I rowsort
SELECT + - 78 * 42
----
-3276

query I rowsort
SELECT - + 72 + + + 66 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL + NULLIF ( + CASE + 42 WHEN COALESCE ( + COUNT( * ), COUNT( * ), - 20 / 18 ) * - 0 + 21 THEN NULL WHEN 17 - ( 58 ) THEN + 32 ELSE NULL END, - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL + NULLIF ( + CASE + 42 WHEN COALESCE ( + COUNT ( * ), COUNT ( * ), - 20 / 18 ) * - 0 + 21 THEN NULL WHEN 17 - ( 58 ) THEN + 32 ELSE NULL END, - 42 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1098
SELECT ALL 14 AS col0, + 88 + - + SUM( + CAST( NULL AS SIGNED ) ) AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-1098
SELECT ALL 14 AS col0, + 88 + - + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1
----
14
NULL

query I rowsort
SELECT - 44 * - - 18 * + + 52 * 13 - 49
----
-535441

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1100
SELECT DISTINCT + + 2 * + + COUNT( * ) / - CAST( NULL AS DECIMAL ) * 48 + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + + 2 * + + COUNT ( * ) / - CAST ( NULL AS REAL ) * 48 + 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT + SUM( + + 99 ) * + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT + SUM ( + + 99 ) * + COUNT ( * )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1102
SELECT DISTINCT + + ( - 16 ) DIV 2
----
-8

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT + + ( - 16 ) / 2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1103
SELECT ALL COUNT( * ) DIV + 37 + 13 + MIN( 30 ) col2
----
43

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL COUNT ( * ) / + 37 + 13 + MIN ( 30 ) col2
----
43

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

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

query I rowsort
SELECT DISTINCT + 40 * COALESCE ( + 9, - 89 + - 51, ( 4 ) ) AS col1
----
360

query I rowsort
SELECT - + 71 + 5
----
-66

query I rowsort
SELECT ALL + + 60 * 23 * + 18
----
24840

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT ALL COUNT( * ) DIV - ( - 7 ) * + 33 + + 12 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL COUNT ( * ) / - ( - 7 ) * + 33 + + 12 / 69
----
0

query I rowsort
SELECT - - 85 * + 50 AS col0
----
4250

query I rowsort
SELECT + CASE + 87 WHEN 29 THEN AVG ( 38 ) ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT - + 10 * + 58 DIV 29 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-1112
SELECT - + 10 * + 58 / 29 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1113
SELECT + 31 * CAST( 12 AS SIGNED ) + + MIN( ( 47 ) + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1113
SELECT + 31 * CAST ( 12 AS INTEGER ) + + MIN ( ( 47 ) + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT + 11 AS col2, + 51
----
11
51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT + CAST( NULL AS SIGNED ) + - CASE 75 WHEN - + 90 + - 51 THEN AVG ( DISTINCT + 78 ) WHEN + 32 * 99 THEN NULL ELSE + 65 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT + CAST ( NULL AS INTEGER ) + - CASE 75 WHEN - + 90 + - 51 THEN AVG ( DISTINCT + 78 ) WHEN + 32 * 99 THEN NULL ELSE + 65 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT ALL 27 * - 59 + + CAST( 84 AS SIGNED ) * 7 col0
----
-1005

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL 27 * - 59 + + CAST ( 84 AS INTEGER ) * 7 col0
----
-1005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1118
SELECT + COALESCE ( + 89, 63 DIV COALESCE ( - 86, 30, + 94 DIV - 88 + 70 ) + 63 * COUNT( 98 ) )
----
89

skipif mysql # not compatible
query I rowsort label-1118
SELECT + COALESCE ( + 89, 63 / COALESCE ( - 86, 30, + 94 / - 88 + 70 ) + 63 * COUNT ( 98 ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ALL COUNT( * ) * - - 48 * + MIN( - - 78 ) + + 86
----
3830

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL COUNT ( * ) * - - 48 * + MIN ( - - 78 ) + + 86
----
3830

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT ALL 39 * - 64 + + + 22 DIV + 36
----
-2496

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL 39 * - 64 + + + 22 / + 36
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT CASE WHEN NULL <> ( 41 ) THEN CASE - 79 WHEN + ( 57 ) * 65 THEN 79 * - 29 WHEN + 3 THEN ( + 28 ) * - COUNT( * ) END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1121
SELECT CASE WHEN NULL <> ( 41 ) THEN CASE - 79 WHEN + ( 57 ) * 65 THEN 79 * - 29 WHEN + 3 THEN ( + 28 ) * - COUNT ( * ) END ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT + NULLIF ( + COUNT( * ), - - COUNT( * ) ) * - + 46 * 95 + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT + NULLIF ( + COUNT ( * ), - - COUNT ( * ) ) * - + 46 * 95 + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT NULLIF ( MIN( + 17 ), 8 )
----
17

skipif mysql # not compatible
query I rowsort label-1123
SELECT NULLIF ( MIN ( + 17 ), 8 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL 76 * - + 68 + + COUNT( * ) * - + 93
----
-5261

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL 76 * - + 68 + + COUNT ( * ) * - + 93
----
-5261

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT 7 * + SUM( + 53 ) - - 39
----
410

skipif mysql # not compatible
query I rowsort label-1125
SELECT 7 * + SUM ( + 53 ) - - 39
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT + NULLIF ( - 59, - COUNT( * ) - + + 79 ) - - CASE WHEN NOT ( NULLIF ( 74, - 9 ) ) IN ( - CASE + 80 WHEN + 64 THEN - ( + COUNT( * ) ) * - 28 ELSE NULL END + - 83 * 52 ) THEN NULL ELSE - 13 END AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1126
SELECT + NULLIF ( - 59, - COUNT ( * ) - + + 79 ) - - CASE WHEN NOT ( NULLIF ( 74, - 9 ) ) IN ( - CASE + 80 WHEN + 64 THEN - ( + COUNT ( * ) ) * - 28 ELSE NULL END + - 83 * 52 ) THEN NULL ELSE - 13 END AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL COUNT( * ) * - - NULLIF ( - 72, - ( CASE 88 WHEN 19 THEN ( 64 ) / - 85 END ) / COUNT( ALL 61 ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL COUNT ( * ) * - - NULLIF ( - 72, - ( CASE 88 WHEN 19 THEN ( 64 ) / - 85 END ) / COUNT ( ALL 61 ) ) AS col0
----
-72

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

skipif mysql # not compatible
query I rowsort label-1128
SELECT SUM ( ALL 24 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT 92 + + + 39 + ( 47 ) - - CAST( NULL AS SIGNED ) * 71 / + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT 92 + + + 39 + ( 47 ) - - CAST ( NULL AS INTEGER ) * 71 / + 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1130
SELECT ALL 95 - + 60 + + + 57 + COUNT( * ) - 61 DIV - 3
----
113

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL 95 - + 60 + + + 57 + COUNT ( * ) - 61 / - 3
----
113

query I rowsort
SELECT ALL 65 * - + 48
----
-3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1132
SELECT CAST( NULL AS SIGNED ) - + 46 + - + 78 * - 88 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1132
SELECT CAST ( NULL AS INTEGER ) - + 46 + - + 78 * - 88 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1133
SELECT ALL ( - COUNT( * ) ), 93 + + 83 + 23 AS col0
----
-1
199

skipif mysql # not compatible
query II rowsort label-1133
SELECT ALL ( - COUNT ( * ) ), 93 + + 83 + 23 AS col0
----
-1
199

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT SUM( + + 12 ) + - 68 + + 23 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1134
SELECT SUM ( + + 12 ) + - 68 + + 23 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT 98 * + SUM( - + 7 )
----
-686

skipif mysql # not compatible
query I rowsort label-1135
SELECT 98 * + SUM ( - + 7 )
----
-686

query I rowsort
SELECT ALL + - 0 * - 62 * + 8 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT ALL + COALESCE ( - COUNT( DISTINCT 27 ), + + 34 + - 32 * + 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + COALESCE ( - COUNT ( DISTINCT 27 ), + + 34 + - 32 * + 52 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT - COUNT( * ) * + - 21 * + ( - 6 ) + - 61
----
-187

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - COUNT ( * ) * + - 21 * + ( - 6 ) + - 61
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT - - CASE + + 40 WHEN + - 95 * + + CAST( NULL AS SIGNED ) - + 51 THEN 6 WHEN 63 THEN - ( 22 ) * + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1139
SELECT - - CASE + + 40 WHEN + - 95 * + + CAST ( NULL AS INTEGER ) - + 51 THEN 6 WHEN 63 THEN - ( 22 ) * + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - CAST ( + - 24 AS INTEGER ) AS col2
----
24

query I rowsort
SELECT ALL + 11 * 70 + + ( - NULLIF ( - 15, + 53 ) ) + + 33 * + 92 AS col1
----
3821

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

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

query I rowsort
SELECT 16 + - 96 AS col2
----
-80

query I rowsort
SELECT + COALESCE ( + 42, + + 16, + 3 )
----
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1146
SELECT 24 * - + 60 + 30 * - - 27 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT 24 * - + 60 + 30 * - - 27 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT DISTINCT - MAX( 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT - MAX ( 91 ) AS col1
----
-91

query I rowsort
SELECT 26 + + ( 86 ) AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL + 95 * 55 + - MIN( - 2 ) AS col1
----
5227

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL + 95 * 55 + - MIN ( - 2 ) AS col1
----
5227

query I rowsort
SELECT ALL + 11 + - 79 - - + 3
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1151
SELECT ALL + SUM( DISTINCT - 49 ) + - + 75 + - 31 DIV - + ( MIN( DISTINCT 59 ) )
----
-124

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL + SUM ( DISTINCT - 49 ) + - + 75 + - 31 / - + ( MIN ( DISTINCT 59 ) )
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT 74 - 15 * 33 DIV NULLIF ( - - 60, 10 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1152
SELECT 74 - 15 * 33 / NULLIF ( - - 60, 10 ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1153
SELECT DISTINCT + 2 DIV + 9 * - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT + 2 / + 9 * - 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL - COUNT( * ) * - - 67 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL - COUNT ( * ) * - - 67 AS col0
----
-67

query I rowsort
SELECT ALL + 84 * + 47
----
3948

query I rowsort
SELECT 64 * - 2
----
-128

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

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

query I rowsort
SELECT ALL + 11 * 54
----
594

query I rowsort
SELECT 73 + 21 col1
----
94

query I rowsort
SELECT 12 * 25 + - - 74 + - + 44 AS col1
----
330

query I rowsort
SELECT 18 - 92 AS col1
----
-74

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

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

query I rowsort
SELECT ALL + 12 * 96 AS col2
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT 99 * 31 * COUNT( * ) AS col0
----
3069

skipif mysql # not compatible
query I rowsort label-1164
SELECT 99 * 31 * COUNT ( * ) AS col0
----
3069

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

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

query I rowsort
SELECT ALL ( + 37 ) * + - 95 AS col0
----
-3515

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

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

query I rowsort
SELECT ALL ( + + 68 ) * - - 87 - + CASE 80 WHEN - 83 THEN NULL WHEN 75 THEN 19 WHEN 34 * 62 THEN NULL ELSE NULL END * + 21 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT - 15 DIV - - 27
----
0

skipif mysql # not compatible
query I rowsort label-1169
SELECT - 15 / - - 27
----
0

query I rowsort
SELECT 13 + + - 2 col2
----
11

query I rowsort
SELECT ALL + 6 * + + ( 74 )
----
444

query I rowsort
SELECT DISTINCT + 84 + - 30
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1173
SELECT ALL + 26 + + CASE - CAST( + 13 AS SIGNED ) WHEN + - 98 * - 4 THEN NULL WHEN AVG ( ALL NULLIF ( + CAST( NULL AS SIGNED ), 82 * 35 ) ) - + 0 THEN NULL ELSE - 66 END AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL + 26 + + CASE - CAST ( + 13 AS INTEGER ) WHEN + - 98 * - 4 THEN NULL WHEN AVG ( ALL NULLIF ( + CAST ( NULL AS INTEGER ), 82 * 35 ) ) - + 0 THEN NULL ELSE - 66 END AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1174
SELECT DISTINCT + CAST( + 1 AS SIGNED ) + + + ( 2 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT + CAST ( + 1 AS INTEGER ) + + + ( 2 ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT 87 + 57 + + 83 + + 19 + 98 * COUNT( * )
----
344

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT 87 + 57 + + 83 + + 19 + 98 * COUNT ( * )
----
344

query I rowsort
SELECT - 31 + COALESCE ( + 82, + 16 ) * 19 * + 91 AS col1
----
141747

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT ALL 1 + 63 + - - 29 + 83 + 48 DIV + 31 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL 1 + 63 + - - 29 + 83 + 48 / + 31 AS col1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL COUNT( * ) + - + CASE WHEN + NULLIF ( 2, + 10 + - MAX( - ( + 17 ) ) ) BETWEEN CASE WHEN + COUNT( * ) <> 7 THEN NULL ELSE + 64 * + 32 END * 98 AND NULL THEN 13 / AVG ( ALL 75 ) END / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL COUNT ( * ) + - + CASE WHEN + NULLIF ( 2, + 10 + - MAX ( - ( + 17 ) ) ) BETWEEN CASE WHEN + COUNT ( * ) <> 7 THEN NULL ELSE + 64 * + 32 END * 98 AND NULL THEN 13 / AVG ( ALL 75 ) END / 48
----
NULL

query I rowsort
SELECT - 75 * + 72
----
-5400

query II rowsort
SELECT - 73 AS col2, - 59
----
-73
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1181
SELECT COALESCE ( - 43, + 21 ) DIV COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-1181
SELECT COALESCE ( - 43, + 21 ) / COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT 92 + - COUNT( - 40 ) * - 58 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-1182
SELECT 92 + - COUNT ( - 40 ) * - 58 AS col2
----
150

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

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

query I rowsort
SELECT ALL 28 * + + 65
----
1820

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

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

query I rowsort
SELECT ALL + - 98 * - 43 + 65 AS col1
----
4279

onlyif mysql # aggregate syntax: 
query II rowsort label-1187
SELECT + - ( + + SUM( DISTINCT - 41 ) ), 88 AS col1
----
41
88

skipif mysql # not compatible
query II rowsort label-1187
SELECT + - ( + + SUM ( DISTINCT - 41 ) ), 88 AS col1
----
41
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL + COUNT( * ) * + + 54 * - 5
----
-270

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL + COUNT ( * ) * + + 54 * - 5
----
-270

query I rowsort
SELECT 83 + + 12 AS col0
----
95

query II rowsort
SELECT + 37 AS col2, - 41 * - 45 AS col2
----
37
1845

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL 25 * 21 * MIN( + 6 ) * + 56 - + - 5 AS col1
----
176405

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL 25 * 21 * MIN ( + 6 ) * + 56 - + - 5 AS col1
----
176405

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

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

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

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - NULLIF ( + + 32, + 94 + - COUNT ( * ) )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1194
SELECT CAST( AVG ( - 73 ) AS SIGNED ) DIV COUNT( * ) * 84 AS col1
----
-6132

skipif mysql # not compatible
query I rowsort label-1194
SELECT CAST ( AVG ( - 73 ) AS INTEGER ) / COUNT ( * ) * 84 AS col1
----
-6132

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT - 56 * + 31 * 35 + - - 71 AS col1, + COUNT( * ) AS col1
----
-60689
1

skipif mysql # not compatible
query II rowsort label-1195
SELECT - 56 * + 31 * 35 + - - 71 AS col1, + COUNT ( * ) AS col1
----
-60689
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1198
SELECT - 62 * + - CAST( NULL AS SIGNED ) * + 33 * 65 + - ( + + 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT - 62 * + - CAST ( NULL AS INTEGER ) * + 33 * 65 + - ( + + 73 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1199
SELECT ALL - CASE CAST( NULL AS SIGNED ) WHEN - 96 THEN NULL WHEN - + 57 THEN + 59 ELSE NULL END / - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - CASE CAST ( NULL AS INTEGER ) WHEN - 96 THEN NULL WHEN - + 57 THEN + 59 ELSE NULL END / - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT + MAX( ALL 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + MAX ( ALL 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT 36 * COUNT( * ) - 82
----
-46

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT 36 * COUNT ( * ) - 82
----
-46

query I rowsort
SELECT - 36 * + 87 * - 59 * + 89 * - 58 AS col0
----
-953875656

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT ALL - 53 DIV - 14 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - 53 / - 14 AS col2
----
3

query I rowsort
SELECT DISTINCT + 62 * - - 81 * 8 AS col0
----
40176

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

query II rowsort
SELECT - 6 * - 25, + 20 col2
----
150
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT 81 * 60 - - ( + COUNT( * ) )
----
4861

skipif mysql # not compatible
query I rowsort label-1207
SELECT 81 * 60 - - ( + COUNT ( * ) )
----
4861

query I rowsort
SELECT - 94 + + ( + 58 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT - MIN( 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-1209
SELECT - MIN ( 72 )
----
-72

query I rowsort
SELECT ALL - - 29 + 36
----
65

query I rowsort
SELECT DISTINCT + - 66 * - 47 AS col1
----
3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1212
SELECT - - 66 * + 86 - + - 14 - + + COUNT( - CAST( - 60 AS SIGNED ) ) + 39 * + 4
----
5845

skipif mysql # not compatible
query I rowsort label-1212
SELECT - - 66 * + 86 - + - 14 - + + COUNT ( - CAST ( - 60 AS INTEGER ) ) + 39 * + 4
----
5845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1213
SELECT ALL - 55 + - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) + 7 + + - 29
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-1213
SELECT ALL - 55 + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + 7 + + - 29
----
NULL
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1214
SELECT DISTINCT - - CASE - 77 WHEN - COUNT( + - 75 ) + - 2 THEN - - COUNT( * ) ELSE NULL END + - ( CAST( NULL AS SIGNED ) ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - - CASE - 77 WHEN - COUNT ( + - 75 ) + - 2 THEN - - COUNT ( * ) ELSE NULL END + - ( CAST ( NULL AS INTEGER ) ) * + 80
----
NULL

query I rowsort
SELECT - 93 - CASE WHEN NOT ( 88 ) NOT BETWEEN ( - 37 + 35 ) AND NULL THEN 85 ELSE NULL END + - 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT + ( - + 5 ) + - NULLIF ( - COUNT( - 52 ), - ( - COUNT( * ) ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + ( - + 5 ) + - NULLIF ( - COUNT ( - 52 ), - ( - COUNT ( * ) ) ) AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1217
SELECT ALL - + CAST( NULL AS SIGNED ) + - NULLIF ( - 20, - - 72 * 38 + 6 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL - + CAST ( NULL AS INTEGER ) + - NULLIF ( - 20, - - 72 * 38 + 6 * COUNT ( * ) )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1218
SELECT ALL 89 + - CAST ( NULL AS INTEGER ), - COUNT ( * ) - 9 AS col2
----
NULL
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT - NULLIF ( + COUNT( - 84 ), - 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1219
SELECT - NULLIF ( + COUNT ( - 84 ), - 73 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1220
SELECT - 73 + - CAST( 65 AS SIGNED )
----
-138

skipif mysql # not compatible
query I rowsort label-1220
SELECT - 73 + - CAST ( 65 AS INTEGER )
----
-138

query I rowsort
SELECT ALL + 28 * + 56
----
1568

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT DISTINCT - 0 * + 95 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - 0 * + 95 + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + - 73 * + - 93 col0
----
6789

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT + 14 * SUM( + 43 ) AS col2
----
602

skipif mysql # not compatible
query I rowsort label-1226
SELECT + 14 * SUM ( + 43 ) AS col2
----
602

query II rowsort
SELECT + ( - - 73 ) AS col2, CASE + ( + 17 ) WHEN + 68 THEN + NULLIF ( + 71, 94 ) END
----
73
NULL

query I rowsort
SELECT ALL - NULLIF ( + 2, - + 0 ) * - CASE + 70 WHEN + 51 THEN - 99 * + 68 ELSE NULL END col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1230
SELECT DISTINCT 83 * - 59, CAST( NULL AS SIGNED ) AS col2
----
-4897
NULL

skipif mysql # not compatible
query II rowsort label-1230
SELECT DISTINCT 83 * - 59, CAST ( NULL AS INTEGER ) AS col2
----
-4897
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1231
SELECT DISTINCT + SUM( DISTINCT + 39 ) col1, - 52 AS col0
----
39
-52

skipif mysql # not compatible
query II rowsort label-1231
SELECT DISTINCT + SUM ( DISTINCT + 39 ) col1, - 52 AS col0
----
39
-52

query I rowsort
SELECT 85 * + 50 + + 95 + - 44 - + 71 * - 20
----
5721

onlyif mysql # aggregate syntax: 
query II rowsort label-1233
SELECT ALL 36 * 10 AS col1, COUNT( * ) AS col0
----
360
1

skipif mysql # not compatible
query II rowsort label-1233
SELECT ALL 36 * 10 AS col1, COUNT ( * ) AS col0
----
360
1

query II rowsort
SELECT + 42 + - - 98 AS col0, - 18
----
140
-18

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1236
SELECT - 6 + + 96 AS col0, + COALESCE ( CAST( 34 AS SIGNED ), + - COUNT( ALL - 68 ) * 64, - 78 ) AS col2
----
90
34

skipif mysql # not compatible
query II rowsort label-1236
SELECT - 6 + + 96 AS col0, + COALESCE ( CAST ( 34 AS INTEGER ), + - COUNT ( ALL - 68 ) * 64, - 78 ) AS col2
----
90
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT ALL + COUNT( * ) * 2 + - + MAX( ALL 62 ) + + COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL + COUNT ( * ) * 2 + - + MAX ( ALL 62 ) + + COUNT ( * ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-1238
SELECT CASE 21 WHEN - - 63 THEN - ( + 97 ) ELSE NULL END AS col1, 25 * - + COUNT( * )
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1238
SELECT CASE 21 WHEN - - 63 THEN - ( + 97 ) ELSE NULL END AS col1, 25 * - + COUNT ( * )
----
NULL
-25

query I rowsort
SELECT ALL + 39 * + 43 + - 22 AS col0
----
1655

query I rowsort
SELECT COALESCE ( + 4, 30 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1241
SELECT ALL + CAST( NULL AS DECIMAL ) * - 73 + + - 68 * - CASE - + 35 WHEN + 35 - + 14 * - 67 THEN - COUNT( * ) WHEN - MAX( ALL 49 ) * 18 THEN + 10 END * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL + CAST ( NULL AS REAL ) * - 73 + + - 68 * - CASE - + 35 WHEN + 35 - + 14 * - 67 THEN - COUNT ( * ) WHEN - MAX ( ALL 49 ) * 18 THEN + 10 END * + 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1242
SELECT ALL 33 DIV + - 38 AS col1, - MAX( DISTINCT + 38 ) * - ( + COUNT( * ) ) + - 28 * - 88 + 25 DIV - 4 col0
----
0
2496

skipif mysql # not compatible
query II rowsort label-1242
SELECT ALL 33 / + - 38 AS col1, - MAX ( DISTINCT + 38 ) * - ( + COUNT ( * ) ) + - 28 * - 88 + 25 / - 4 col0
----
0
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT + COUNT( * ) * - 19 + - 89 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT + COUNT ( * ) * - 19 + - 89 AS col0
----
-108

query I rowsort
SELECT ALL - - 62 * + 10 * + 76 + 44 AS col0
----
47164

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - COUNT( - 32 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1245
SELECT - COUNT ( - 32 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT - - 68 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-1246
SELECT - - 68 / + 89
----
0

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + - 47, - ( - + 57 ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL - 71 * + MAX( ALL - 91 ) AS col2
----
6461

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL - 71 * + MAX ( ALL - 91 ) AS col2
----
6461

query II rowsort
SELECT ALL + 8 - - 57 AS col1, + 68
----
65
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT DISTINCT CASE - + 92 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 90 - - 91 THEN NULL ELSE - 28 END
----
-28

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT CASE - + 92 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 90 - - 91 THEN NULL ELSE - 28 END
----
-28

query I rowsort
SELECT - 6 * - 19
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-1253
SELECT ALL - 16 * 55 AS col0, 23 - MIN( DISTINCT + 49 ) + COUNT( * ) * + 28
----
-880
2

skipif mysql # not compatible
query II rowsort label-1253
SELECT ALL - 16 * 55 AS col0, 23 - MIN ( DISTINCT + 49 ) + COUNT ( * ) * + 28
----
-880
2

query I rowsort
SELECT - - 11 + - - ( - 49 )
----
-38

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

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + + COUNT ( * ) - - ( + - 51 ) col1
----
-50

query I rowsort
SELECT - 90 - - 9 + + 83 + 15
----
17

query II rowsort
SELECT 12 * + 49 * 73 AS col0, - 88 * 97
----
42924
-8536

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT DISTINCT 88 col1, + COUNT( 9 )
----
88
1

skipif mysql # not compatible
query II rowsort label-1259
SELECT DISTINCT 88 col1, + COUNT ( 9 )
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT SUM( DISTINCT - - 54 ) - 28
----
26

skipif mysql # not compatible
query I rowsort label-1260
SELECT SUM ( DISTINCT - - 54 ) - 28
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1261
SELECT 72 AS col0, - 46 + - 28 + + - 51 + COUNT( * ) col1
----
72
-124

skipif mysql # not compatible
query II rowsort label-1261
SELECT 72 AS col0, - 46 + - 28 + + - 51 + COUNT ( * ) col1
----
72
-124

query I rowsort
SELECT DISTINCT 37 * 18 AS col1
----
666

query II rowsort
SELECT DISTINCT - 79 AS col0, 31
----
-79
31

query I rowsort
SELECT DISTINCT + 35 + + 68 + - 96 * - 10 AS col1
----
1063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT 92 DIV COUNT( * ) * 65 AS col2
----
5980

skipif mysql # not compatible
query I rowsort label-1265
SELECT 92 / COUNT ( * ) * 65 AS col2
----
5980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1266
SELECT COUNT( * ) * 78 DIV ( + + 78 ) * 45
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + MAX( DISTINCT + 71 ) * - 36 - - 38
----
-2518

skipif mysql # not compatible
query I rowsort label-1267
SELECT + MAX ( DISTINCT + 71 ) * - 36 - - 38
----
-2518

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT DISTINCT CASE - - 43 WHEN + ( NULLIF ( - 41, - NULLIF ( - 14, ( NULLIF ( COUNT( * ), COALESCE ( 2, + 61 ) ) ) ) ) ) THEN + 81 WHEN + 28 THEN NULL END / + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT CASE - - 43 WHEN + ( NULLIF ( - 41, - NULLIF ( - 14, ( NULLIF ( COUNT ( * ), COALESCE ( 2, + 61 ) ) ) ) ) ) THEN + 81 WHEN + 28 THEN NULL END / + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT COUNT( * ) DIV + - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1269
SELECT COUNT ( * ) / + - 20 AS col1
----
0

query I rowsort
SELECT 27 * + + 24 AS col0
----
648

query I rowsort
SELECT DISTINCT - ( + 39 ) col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1272
SELECT ALL - - MIN( - 45 ) + + 37 DIV - - 91 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - - MIN ( - 45 ) + + 37 / - - 91 AS col1
----
-45

query I rowsort
SELECT ALL - 27 + - - 58 AS col2
----
31

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1275
SELECT + 79 AS col1, AVG ( CAST( NULL AS SIGNED ) )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1275
SELECT + 79 AS col1, AVG ( CAST ( NULL AS INTEGER ) )
----
79
NULL

query II rowsort
SELECT + - 37 col2, - 39 AS col1
----
-37
-39

query I rowsort
SELECT 67 * + - 83
----
-5561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1278
SELECT - COALESCE ( + - 24, - - 80 - - CASE COUNT( * ) WHEN - 45 + MIN( DISTINCT + 65 ) THEN 18 WHEN 48 THEN - 53 DIV 77 ELSE NULL END + + 58 ) + + 53 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1278
SELECT - COALESCE ( + - 24, - - 80 - - CASE COUNT ( * ) WHEN - 45 + MIN ( DISTINCT + 65 ) THEN 18 WHEN 48 THEN - 53 / 77 ELSE NULL END + + 58 ) + + 53 AS col0
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL + CASE + COUNT( * ) WHEN - 0 + 7 THEN - ( 54 ) + - COUNT( * ) WHEN + - NULLIF ( 16, - 99 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL + CASE + COUNT ( * ) WHEN - 0 + 7 THEN - ( 54 ) + - COUNT ( * ) WHEN + - NULLIF ( 16, - 99 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1281
SELECT - + 93 AS col2, COUNT( * ) + - - 12 col0
----
-93
13

skipif mysql # not compatible
query II rowsort label-1281
SELECT - + 93 AS col2, COUNT ( * ) + - - 12 col0
----
-93
13

query I rowsort
SELECT ALL + + 98 * 80 AS col0
----
7840

query I rowsort
SELECT + 91 - + 12 * 48 * 97 AS col2
----
-55781

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT + ( + - 82 ) * + + SUM( ALL + ( + 30 ) ) AS col0
----
-2460

skipif mysql # not compatible
query I rowsort label-1285
SELECT + ( + - 82 ) * + + SUM ( ALL + ( + 30 ) ) AS col0
----
-2460

query I rowsort
SELECT 85 + - 90
----
-5

query I rowsort
SELECT + 44 * + + 48 AS col1
----
2112

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT + 57 + - ( + - 27 ) DIV 68 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1288
SELECT + 57 + - ( + - 27 ) / 68 AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT - ( + 11 ) DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1289
SELECT - ( + 11 ) / - 95 AS col0
----
0

query I rowsort
SELECT 86 + 40 AS col0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT 21 - 89 DIV + + 26 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1291
SELECT 21 - 89 / + + 26 AS col0
----
18

query I rowsort
SELECT DISTINCT 32 * - 9
----
-288

query I rowsort
SELECT 18 * + ( - - 44 ) AS col1
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1294
SELECT ALL - COUNT( * ) + + CAST( + 20 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL - COUNT ( * ) + + CAST ( + 20 AS INTEGER )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT 98 + CAST( - 9 AS SIGNED ) + 32
----
121

skipif mysql # not compatible
query I rowsort label-1295
SELECT 98 + CAST ( - 9 AS INTEGER ) + 32
----
121

query I rowsort
SELECT 37 * 58 AS col0
----
2146

query I rowsort
SELECT ALL + 22 + - 39
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-1298
SELECT COUNT( * ) - + 6, + 16 AS col0
----
-5
16

skipif mysql # not compatible
query II rowsort label-1298
SELECT COUNT ( * ) - + 6, + 16 AS col0
----
-5
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 55 + + 93 + + ( + - 98 ) * + + 19 * + ( + 73 ) * - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 55 + + 93 + + ( + - 98 ) * + + 19 * + ( + 73 ) * - 35 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1300
SELECT 22 / 99 + - + ( - CAST( NULL AS SIGNED ) ) + - 72 - 2 * - + MAX( ALL 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT 22 / 99 + - + ( - CAST ( NULL AS INTEGER ) ) + - 72 - 2 * - + MAX ( ALL 76 )
----
NULL

query I rowsort
SELECT ALL - 49 + 57 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT 27 + - 49 * + MAX( DISTINCT - 43 ) * 89 + + 15 AS col0
----
187565

skipif mysql # not compatible
query I rowsort label-1302
SELECT 27 + - 49 * + MAX ( DISTINCT - 43 ) * 89 + + 15 AS col0
----
187565

onlyif mysql # DIV for integer division: 
query II rowsort label-1303
SELECT ALL ( 71 ) + - + 15 - + + 0 col1, 39 + 47 DIV 95
----
56
39

skipif mysql # not compatible
query II rowsort label-1303
SELECT ALL ( 71 ) + - + 15 - + + 0 col1, 39 + 47 / 95
----
56
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT DISTINCT + 4 + + COUNT( * ) + - 97 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT + 4 + + COUNT ( * ) + - 97 AS col2
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT DISTINCT 94 + + - NULLIF ( - 61, 47 * + COUNT( * ) + + - 65 * - + 69 + 7 )
----
155

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT 94 + + - NULLIF ( - 61, 47 * + COUNT ( * ) + + - 65 * - + 69 + 7 )
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1307
SELECT + 59 + - COUNT( * ) AS col2, 50
----
58
50

skipif mysql # not compatible
query II rowsort label-1307
SELECT + 59 + - COUNT ( * ) AS col2, 50
----
58
50

onlyif mysql # DIV for integer division: 
query II rowsort label-1308
SELECT + 72 + NULLIF ( - 82, + 1 ) AS col2, + 29 DIV 6 AS col2
----
-10
4

skipif mysql # not compatible
query II rowsort label-1308
SELECT + 72 + NULLIF ( - 82, + 1 ) AS col2, + 29 / 6 AS col2
----
-10
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT ALL COUNT( * ) DIV 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL COUNT ( * ) / 18 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT 92 DIV - 43 col2
----
-2

skipif mysql # not compatible
query I rowsort label-1310
SELECT 92 / - 43 col2
----
-2

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

skipif mysql # not compatible
query I rowsort label-1311
SELECT - COUNT ( + 23 ) * + COUNT ( * ) / + 64 + - + 63
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-1312
SELECT DISTINCT + + 67 DIV - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT + + 67 / - 91 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL - NULLIF ( 88, COUNT( * ) ) - 51 + + 73 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL - NULLIF ( 88, COUNT ( * ) ) - 51 + + 73 AS col2
----
-66

query II rowsort
SELECT DISTINCT 83 * + - 55 * - 92 * - 94 AS col0, - 8 AS col2
----
-39478120
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT ALL ( + CASE + MAX( + 31 ) WHEN + + 4 + + + COUNT( * ) * + 92 + + 89 THEN - + COUNT( * ) * 19 WHEN 30 + + 46 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL ( + CASE + MAX ( + 31 ) WHEN + + 4 + + + COUNT ( * ) * + 92 + + 89 THEN - + COUNT ( * ) * 19 WHEN 30 + + 46 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT + 75 + + CAST( NULL AS SIGNED ) * - - 29 + - 96 + + 11 + 2 + - + 96 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT + 75 + + CAST ( NULL AS INTEGER ) * - - 29 + - 96 + + 11 + 2 + - + 96 + + + COUNT ( * )
----
NULL

query I rowsort
SELECT 41 * - ( - 34 ) * + 5
----
6970

query I rowsort
SELECT - 98 * - - 67 * + 76
----
-499016

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT DISTINCT ( + NULLIF ( + 39, + + COUNT( * ) * + 91 + + 51 ) )
----
39

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT ( + NULLIF ( + 39, + + COUNT ( * ) * + 91 + + 51 ) )
----
39

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

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

query II rowsort
SELECT ALL - 28 + - 50, + 16 * - 59 col2
----
-78
-944

query I rowsort
SELECT DISTINCT + 7 * 59
----
413

onlyif mysql # aggregate syntax: 
query II rowsort label-1324
SELECT DISTINCT 38, 75 * + COUNT( * ) + + COUNT( * ) AS col2
----
38
76

skipif mysql # not compatible
query II rowsort label-1324
SELECT DISTINCT 38, 75 * + COUNT ( * ) + + COUNT ( * ) AS col2
----
38
76

query I rowsort
SELECT - 55 + + - 93 AS col2
----
-148

query I rowsort
SELECT DISTINCT + ( - 76 ) + - 22 * + 25 AS col0
----
-626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT - COALESCE ( + 86, CAST( - - 6 AS SIGNED ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1327
SELECT - COALESCE ( + 86, CAST ( - - 6 AS INTEGER ) ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT DISTINCT SUM( ALL - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT SUM ( ALL - 32 ) AS col0
----
-32

query I rowsort
SELECT ALL - 90 + - 3 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT + 77 - + COUNT( * ) + 10 + + - MAX( ALL - 62 ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-1330
SELECT + 77 - + COUNT ( * ) + 10 + + - MAX ( ALL - 62 ) AS col2
----
148

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1332
SELECT ALL + NULLIF ( + - CASE - CAST( NULL AS SIGNED ) WHEN 3 * - 96 DIV - 19 THEN + 85 DIV 18 - - 76 - 89 * 84 WHEN 47 THEN 4 + + 98 ELSE 70 - 46 END, 28 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + NULLIF ( + - CASE - CAST ( NULL AS INTEGER ) WHEN 3 * - 96 / - 19 THEN + 85 / 18 - - 76 - 89 * 84 WHEN 47 THEN 4 + + 98 ELSE 70 - 46 END, 28 ) AS col0
----
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT - MIN( - - 94 ) * + ( MAX( + 49 ) )
----
-4606

skipif mysql # not compatible
query I rowsort label-1334
SELECT - MIN ( - - 94 ) * + ( MAX ( + 49 ) )
----
-4606

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL + CASE + AVG ( DISTINCT + 84 ) WHEN + 21 + - + ( + 83 ) THEN NULL WHEN 11 + 17 * + 74 - - CAST( NULL AS SIGNED ) THEN NULL WHEN 5 THEN 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL + CASE + AVG ( DISTINCT + 84 ) WHEN + 21 + - + ( + 83 ) THEN NULL WHEN 11 + 17 * + 74 - - CAST ( NULL AS INTEGER ) THEN NULL WHEN 5 THEN 36 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT - 44 * - COUNT( * ) * + 72 - 85 AS col1
----
3083

skipif mysql # not compatible
query I rowsort label-1337
SELECT - 44 * - COUNT ( * ) * + 72 - 85 AS col1
----
3083

query II rowsort
SELECT NULLIF ( - 33, + - 16 * 23 - + 5 ) AS col2, 59
----
-33
59

query II rowsort
SELECT 50, 27 AS col2
----
50
27

query I rowsort
SELECT + 70 * - + 5
----
-350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT - + COUNT( * ) * + 46 * - 15 AS col2
----
690

skipif mysql # not compatible
query I rowsort label-1342
SELECT - + COUNT ( * ) * + 46 * - 15 AS col2
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT 89 * + 17 + - 21 - - - 52 + MIN( - - 10 )
----
1450

skipif mysql # not compatible
query I rowsort label-1343
SELECT 89 * + 17 + - 21 - - - 52 + MIN ( - - 10 )
----
1450

query I rowsort
SELECT ALL - 84 * - + 19 AS col1
----
1596

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT - 76 AS col0, CASE + - 78 WHEN - COUNT( * ) + 60 THEN COUNT( * ) END + - 19
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-1345
SELECT - 76 AS col0, CASE + - 78 WHEN - COUNT ( * ) + 60 THEN COUNT ( * ) END + - 19
----
-76
NULL

query I rowsort
SELECT 29 * + 30 + - 79
----
791

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1347
SELECT + + COALESCE ( - - 57, - - 31 ) DIV - - SUM( ALL + + 67 ) - 51 - 43 + + 10 + - ( + 59 ) AS col0
----
-143

skipif mysql # not compatible
query I rowsort label-1347
SELECT + + COALESCE ( - - 57, - - 31 ) / - - SUM ( ALL + + 67 ) - 51 - 43 + + 10 + - ( + 59 ) AS col0
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1348
SELECT - - 79 + + 53 - - ( - + 67 ) + - 99 - + 94 * + CAST( - - 38 AS SIGNED ) * - 94 DIV + COUNT( * ) AS col2
----
335734

skipif mysql # not compatible
query I rowsort label-1348
SELECT - - 79 + + 53 - - ( - + 67 ) + - 99 - + 94 * + CAST ( - - 38 AS INTEGER ) * - 94 / + COUNT ( * ) AS col2
----
335734

query II rowsort
SELECT ALL + ( 59 ) * - 66 AS col1, - 21 AS col2
----
-3894
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT + + 63 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT + + 63 / - 78 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1351
SELECT ALL + 99 + + 8 + + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
108
NULL

skipif mysql # not compatible
query II rowsort label-1351
SELECT ALL + 99 + + 8 + + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
108
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL COUNT( * ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL COUNT ( * ) + 17
----
18

query I rowsort
SELECT ALL + 19 + ( 15 ) * + + 20
----
319

query I rowsort
SELECT + 37 + - 1 AS col1
----
36

query II rowsort
SELECT 80 AS col1, 31 AS col2
----
80
31

query II rowsort
SELECT ALL 45 AS col1, 52 AS col2
----
45
52

query I rowsort
SELECT - NULLIF ( - - 71, 26 ) AS col2
----
-71

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

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

query I rowsort
SELECT DISTINCT 7 + ( + + 97 ) AS col0
----
104

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1362
SELECT 74 AS col2, CAST( NULL AS SIGNED ) + - - 76
----
74
NULL

skipif mysql # not compatible
query II rowsort label-1362
SELECT 74 AS col2, CAST ( NULL AS INTEGER ) + - - 76
----
74
NULL

query II rowsort
SELECT ALL 56 AS col0, - 54
----
56
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT ALL - 59 * CAST( 17 AS SIGNED ) AS col1
----
-1003

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL - 59 * CAST ( 17 AS INTEGER ) AS col1
----
-1003

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT + 65 - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1365
SELECT + 65 - COUNT ( * ) AS col2
----
64

query I rowsort
SELECT DISTINCT 71 - + ( - - 39 ) * + + 40 * - 87 * - ( + 76 ) + - 95 * - - 27
----
-10317214

query II rowsort
SELECT ALL 65 AS col0, 41
----
65
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT DISTINCT - 41 * + COUNT( * ) * + + 48 AS col2
----
-1968

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT - 41 * + COUNT ( * ) * + + 48 AS col2
----
-1968

query I rowsort
SELECT + 0 + + + ( + 96 )
----
96

query I rowsort
SELECT + 12 * + ( 92 )
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL 23 * + - 44 * + COUNT( * )
----
-1012

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL 23 * + - 44 * + COUNT ( * )
----
-1012

query II rowsort
SELECT + ( + - 96 ) AS col0, 62
----
-96
62

query II rowsort
SELECT - 77 * - 27 + + 33 * + 19 AS col2, + 17 * 83 AS col0
----
2706
1411

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

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

query I rowsort
SELECT DISTINCT + 87 * 47 AS col0
----
4089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1376
SELECT CAST( + - MAX( DISTINCT - 31 ) AS SIGNED ) DIV + COUNT( * ) + + COUNT( * ) DIV - 74 AS col1, + CAST( NULL AS SIGNED ) * + 38 * - 3 + + ( 45 ) * - 37 AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-1376
SELECT CAST ( + - MAX ( DISTINCT - 31 ) AS INTEGER ) / + COUNT ( * ) + + COUNT ( * ) / - 74 AS col1, + CAST ( NULL AS INTEGER ) * + 38 * - 3 + + ( 45 ) * - 37 AS col2
----
31
NULL

query I rowsort
SELECT + + COALESCE ( - 40, - 72 )
----
-40

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1379
SELECT + + 10 + - ( + - 97 ) * NULLIF ( - CAST( NULL AS DECIMAL ), 96 ) * + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT + + 10 + - ( + - 97 ) * NULLIF ( - CAST ( NULL AS REAL ), 96 ) * + 7 AS col2
----
NULL

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

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

query II rowsort
SELECT ALL + - 4 AS col1, 60
----
-4
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT + 71 * + MIN( ALL 65 ) + + 3 AS col2
----
4618

skipif mysql # not compatible
query I rowsort label-1382
SELECT + 71 * + MIN ( ALL 65 ) + + 3 AS col2
----
4618

query II rowsort
SELECT - 54, - 8 + - 21 + + 11 AS col1
----
-54
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1384
SELECT - COALESCE ( + 95, + 90 * - + SUM( - ( + 91 ) ) + - 52 - - - 34 DIV - 39 * - 49 DIV COUNT( * ), ( + 73 ) ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-1384
SELECT - COALESCE ( + 95, + 90 * - + SUM ( - ( + 91 ) ) + - 52 - - - 34 / - 39 * - 49 / COUNT ( * ), ( + 73 ) ) col2
----
-95

query II rowsort
SELECT + 15, 50 AS col1
----
15
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT + 71 + 71 DIV - - 57
----
72

skipif mysql # not compatible
query I rowsort label-1386
SELECT + 71 + 71 / - - 57
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL - COUNT( - 68 ) + + 3 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL - COUNT ( - 68 ) + + 3 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL - - SUM( ALL + + 47 ) * 31 AS col0
----
1457

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - - SUM ( ALL + + 47 ) * 31 AS col0
----
1457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1389
SELECT ALL - + 95 + COUNT( * ) + - - 6 - - + COALESCE ( - CAST( + 15 AS SIGNED ), + 28 + 80, 19 ), 12 + - 35 col1
----
-103
-23

skipif mysql # not compatible
query II rowsort label-1389
SELECT ALL - + 95 + COUNT ( * ) + - - 6 - - + COALESCE ( - CAST ( + 15 AS INTEGER ), + 28 + 80, 19 ), 12 + - 35 col1
----
-103
-23

query I rowsort
SELECT DISTINCT + + 33 + + ( 90 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT DISTINCT - COUNT( * ) + + 63 + 11 + MIN( + 84 ) + - 5 + + 40 * - 56 * + 92 AS col2
----
-205928

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT - COUNT ( * ) + + 63 + 11 + MIN ( + 84 ) + - 5 + + 40 * - 56 * + 92 AS col2
----
-205928

onlyif mysql # aggregate syntax: 
query II rowsort label-1392
SELECT COUNT( * ), - 75 + + - 39 * - - 31 AS col2
----
1
-1284

skipif mysql # not compatible
query II rowsort label-1392
SELECT COUNT ( * ), - 75 + + - 39 * - - 31 AS col2
----
1
-1284

onlyif mysql # aggregate syntax: 
query II rowsort label-1393
SELECT DISTINCT - + 20 * + - 72 * + MIN( + 3 ) AS col2, 43 AS col1
----
4320
43

skipif mysql # not compatible
query II rowsort label-1393
SELECT DISTINCT - + 20 * + - 72 * + MIN ( + 3 ) AS col2, 43 AS col1
----
4320
43

query I rowsort
SELECT DISTINCT - 90 + 59 AS col0
----
-31

query I rowsort
SELECT ALL + ( - 29 ) + 79 AS col1
----
50

query I rowsort
SELECT ALL - CASE + 51 WHEN + - 61 + 70 * + 15 / + 19 THEN - - 24 ELSE NULL END + 83
----
NULL

query II rowsort
SELECT 11 * - 48, 66 AS col1
----
-528
66

query I rowsort
SELECT 46 * + 37 AS col1
----
1702

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1399
SELECT ALL SUM( ALL + ( + 76 ) ) DIV ( + 94 ) AS col2, - 48 DIV - - ( COUNT( * ) ) AS col1
----
0
-48

skipif mysql # not compatible
query II rowsort label-1399
SELECT ALL SUM ( ALL + ( + 76 ) ) / ( + 94 ) AS col2, - 48 / - - ( COUNT ( * ) ) AS col1
----
0
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT COUNT( * ) * + 27 * - 81
----
-2187

skipif mysql # not compatible
query I rowsort label-1401
SELECT COUNT ( * ) * + 27 * - 81
----
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT ALL + 72 - - SUM( - + 56 )
----
16

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL + 72 - - SUM ( - + 56 )
----
16

query I rowsort
SELECT 36 * - 17
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT COUNT( * ) + + ( + - ( + COUNT( DISTINCT - - 12 ) ) ) * + 77
----
-76

skipif mysql # not compatible
query I rowsort label-1404
SELECT COUNT ( * ) + + ( + - ( + COUNT ( DISTINCT - - 12 ) ) ) * + 77
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1405
SELECT 46 * 46 DIV - COUNT( * )
----
-2116

skipif mysql # not compatible
query I rowsort label-1405
SELECT 46 * 46 / - COUNT ( * )
----
-2116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1406
SELECT ALL 82 - - - 15 * CAST( NULL AS SIGNED ) * + 66 + + + ( + + 4 ) + 5 * 30 AS col1, - 44 AS col1
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-1406
SELECT ALL 82 - - - 15 * CAST ( NULL AS INTEGER ) * + 66 + + + ( + + 4 ) + 5 * 30 AS col1, - 44 AS col1
----
NULL
-44

query II rowsort
SELECT 71 * - 88 AS col0, 34 AS col1
----
-6248
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT COUNT( * ) - 81 * 26
----
-2105

skipif mysql # not compatible
query I rowsort label-1408
SELECT COUNT ( * ) - 81 * 26
----
-2105

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ALL - MAX( 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL - MAX ( 31 )
----
-31

query II rowsort
SELECT DISTINCT - + ( - 52 ), + 84 AS col1
----
52
84

query I rowsort
SELECT DISTINCT 49 * + 47 + - 26 * + + 95 AS col2
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT - + MAX( - 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT - + MAX ( - 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT DISTINCT MAX( ALL + + 63 ) + - 84 col1
----
-21

skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT MAX ( ALL + + 63 ) + - 84 col1
----
-21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1415
SELECT ALL 34 * 51 DIV - - 7
----
247

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL 34 * 51 / - - 7
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL + COUNT( * ) + 87 * 10 + COALESCE ( + 74, + - ( - + 64 ) )
----
945

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL + COUNT ( * ) + 87 * 10 + COALESCE ( + 74, + - ( - + 64 ) )
----
945

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

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

query I rowsort
SELECT + CASE + 1 WHEN 80 THEN + 87 * 10 * - 27 / + ( + - ( + + 68 ) ) + - + 55 / + 5 + - CASE 97 WHEN + 48 THEN 72 END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT 85 DIV - 54 + + 63 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1419
SELECT 85 / - 54 + + 63 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL + CASE + - 2 WHEN - 95 / + 81 THEN + 49 * + 58 WHEN 71 THEN NULL WHEN SUM( - 6 ) - - 98 THEN NULL END + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + CASE + - 2 WHEN - 95 / + 81 THEN + 49 * + 58 WHEN 71 THEN NULL WHEN SUM ( - 6 ) - - 98 THEN NULL END + - 62 AS col0
----
NULL

query I rowsort
SELECT 16 * - 90 AS col0
----
-1440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL - COUNT( * ) + ( - + 49 ) * 79
----
-3872

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - COUNT ( * ) + ( - + 49 ) * 79
----
-3872

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

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

query I rowsort
SELECT 21 + + 18
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT ALL 60 - NULLIF ( + ( - 70 ), ( CAST( NULL AS SIGNED ) ) * 74 * COUNT( * ) / 67 - COUNT( DISTINCT + NULLIF ( + 50, 68 ) ) * COUNT( * ) ) col0
----
130

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL 60 - NULLIF ( + ( - 70 ), ( CAST ( NULL AS INTEGER ) ) * 74 * COUNT ( * ) / 67 - COUNT ( DISTINCT + NULLIF ( + 50, 68 ) ) * COUNT ( * ) ) col0
----
130

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT DISTINCT - CAST( 35 AS SIGNED ) * + CASE - + COUNT( * ) WHEN COUNT( * ) * + 41 * + 2 THEN 93 WHEN 67 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT - CAST ( 35 AS INTEGER ) * + CASE - + COUNT ( * ) WHEN COUNT ( * ) * + 41 * + 2 THEN 93 WHEN 67 THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 54 AS col2, - 18
----
-54
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT 42 + + ( - COUNT( * ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1430
SELECT 42 + + ( - COUNT ( * ) ) AS col1
----
41

query I rowsort
SELECT 81 * - + 38
----
-3078

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

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

query I rowsort
SELECT ALL 70 * + + 30
----
2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1434
SELECT DISTINCT + 24 DIV + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT + 24 / + - COUNT ( * )
----
-24

query II rowsort
SELECT - 10 AS col0, + 11
----
-10
11

query I rowsort
SELECT ALL - 8 + - - 36 AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1437
SELECT - COUNT( * ) AS col2, MIN( DISTINCT + 50 ) + 19
----
-1
69

skipif mysql # not compatible
query II rowsort label-1437
SELECT - COUNT ( * ) AS col2, MIN ( DISTINCT + 50 ) + 19
----
-1
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1438
SELECT + 26 * - COUNT( * ) * - 34 col2, + 1 col0
----
884
1

skipif mysql # not compatible
query II rowsort label-1438
SELECT + 26 * - COUNT ( * ) * - 34 col2, + 1 col0
----
884
1

query I rowsort
SELECT DISTINCT 4 * + 64 * - 38 + + 71 AS col0
----
-9657

query I rowsort
SELECT + 48 - 14
----
34

query II rowsort
SELECT + - 20 AS col2, - 26 AS col2
----
-20
-26

query II rowsort
SELECT + 92 + - ( - 65 ) AS col2, - 73 col0
----
157
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL + 3 * 25 + + CASE + - COUNT( * ) WHEN + MIN( DISTINCT + 39 ) THEN + + 82 WHEN 9 THEN + + COUNT( * ) + - 96 / - - 20 WHEN - - 52 THEN - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL + 3 * 25 + + CASE + - COUNT ( * ) WHEN + MIN ( DISTINCT + 39 ) THEN + + 82 WHEN 9 THEN + + COUNT ( * ) + - 96 / - - 20 WHEN - - 52 THEN - 10 END
----
NULL

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

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

query II rowsort
SELECT - 12 * - 60 + - + 64 col2, - 90 * + - NULLIF ( - 45, - + 97 ) * 22
----
656
-89100

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT DISTINCT + ( + 87 ) * - - 33 * + 94 - - - COUNT( * ) + - 58 + - 45
----
269770

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT + ( + 87 ) * - - 33 * + 94 - - - COUNT ( * ) + - 58 + - 45
----
269770

query I rowsort
SELECT ALL - 9 * - 7 + - - 78 AS col2
----
141

query II rowsort
SELECT - 23 AS col0, - 96 + + + 97 AS col1
----
-23
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT + 95 * 32 DIV + 15 AS col2
----
202

skipif mysql # not compatible
query I rowsort label-1450
SELECT + 95 * 32 / + 15 AS col2
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT + CASE - SUM( ALL + 40 ) WHEN + - ( + 38 ) + - COUNT( * ) + - 10 * - 34 + - 51 * 65 + + ( - - 31 ) THEN NULL WHEN 88 THEN 35 + - 36 ELSE NULL END * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT + CASE - SUM ( ALL + 40 ) WHEN + - ( + 38 ) + - COUNT ( * ) + - 10 * - 34 + - 51 * 65 + + ( - - 31 ) THEN NULL WHEN 88 THEN 35 + - 36 ELSE NULL END * 21 AS col2
----
NULL

query I rowsort
SELECT - 78 + + - 34
----
-112

query I rowsort
SELECT + NULLIF ( - ( 19 ), - 19 + - + 56 + + - 72 * + 69 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT COUNT( - 96 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1454
SELECT COUNT ( - 96 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT + 72 * + COUNT( - + 59 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1455
SELECT + 72 * + COUNT ( - + 59 ) AS col2
----
72

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT + COALESCE ( 94, 52 ) DIV + - ( COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-1457
SELECT + COALESCE ( 94, 52 ) / + - ( COUNT ( * ) )
----
-94

query I rowsort
SELECT ALL COALESCE ( + ( + + 50 ), - 29 + + 85 ) - 96
----
-46

query I rowsort
SELECT + 13 * 43
----
559

query I rowsort
SELECT + 65 - + + 78 + + + 48 * 7 - + 84
----
239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT + AVG ( ALL - 71 ) * + 57 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT + AVG ( ALL - 71 ) * + 57 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1462
SELECT DISTINCT + 28 * - CAST( NULL AS DECIMAL ), 4 AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-1462
SELECT DISTINCT + 28 * - CAST ( NULL AS REAL ), 4 AS col1
----
NULL
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1463
SELECT ALL - 65 + - 52 DIV - - COUNT( * ) - - CAST( + 26 AS SIGNED ) + 58 - - 41 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL - 65 + - 52 / - - COUNT ( * ) - - CAST ( + 26 AS INTEGER ) + 58 - - 41 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1464
SELECT DISTINCT ( NULLIF ( - CAST( NULL AS SIGNED ), - 36 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT ( NULLIF ( - CAST ( NULL AS INTEGER ), - 36 ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 83 + 45
----
-38

query I rowsort
SELECT - 29 + + + 51
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1467
SELECT ALL - ( - 15 ) + - CASE + 23 WHEN + CAST( - 76 AS SIGNED ) * - 23 - + + 41 THEN + 87 + - 36 + + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - ( - 15 ) + - CASE + 23 WHEN + CAST ( - 76 AS INTEGER ) * - 23 - + + 41 THEN + 87 + - 36 + + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1468
SELECT ALL + 67 * - + COUNT( * ) * + 22 * + COALESCE ( 71, + + 44, + 25 * - 7 - + - 22 ) AS col0, - 43 + - 60 * + COUNT( * )
----
-104654
-103

skipif mysql # not compatible
query II rowsort label-1468
SELECT ALL + 67 * - + COUNT ( * ) * + 22 * + COALESCE ( 71, + + 44, + 25 * - 7 - + - 22 ) AS col0, - 43 + - 60 * + COUNT ( * )
----
-104654
-103

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

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

query I rowsort
SELECT - - 65 + + - 93 + - + ( + 83 ) AS col0
----
-111

query I rowsort
SELECT ALL + + 55 + 81 * - - 90
----
7345

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT ( + + 3 ) DIV + 57 + + - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT ( + + 3 ) / + 57 + + - 60 AS col1
----
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - 65 * NULLIF ( + CASE - + 40 WHEN - ( 33 ) + - - 42 THEN + COUNT( 91 ) WHEN ( + - 22 ) THEN 99 END, + + ( - COUNT( - 87 ) ) ) - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT - 65 * NULLIF ( + CASE - + 40 WHEN - ( 33 ) + - - 42 THEN + COUNT ( 91 ) WHEN ( + - 22 ) THEN 99 END, + + ( - COUNT ( - 87 ) ) ) - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT ( 37 ) DIV + 57 - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-1475
SELECT ( 37 ) / + 57 - + 31
----
-31

query I rowsort
SELECT ALL NULLIF ( - - ( 7 ), - 48 * 5 * 94 - + - 94 ) * - 87 - 14
----
-623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1477
SELECT - + 94 - 82 + - - NULLIF ( - 32, - + COUNT( * ) * + 59 + - ( 71 ) + - 21 + - 55 ) DIV - 40 AS col2
----
-176

skipif mysql # not compatible
query I rowsort label-1477
SELECT - + 94 - 82 + - - NULLIF ( - 32, - + COUNT ( * ) * + 59 + - ( 71 ) + - 21 + - 55 ) / - 40 AS col2
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL + 61 * - COUNT( * ) - + + 62
----
-123

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + 61 * - COUNT ( * ) - + + 62
----
-123

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1480
SELECT DISTINCT 60 DIV ( COUNT( * ) )
----
60

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

query I rowsort
SELECT + 25 - + + 80
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT - 13 DIV - NULLIF ( - - 85, 29 * - + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-1482
SELECT - 13 / - NULLIF ( - - 85, 29 * - + 37 )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1484
SELECT + 83 / + COUNT ( * ) AS col1
----
83

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1486
SELECT DISTINCT 6 * + COALESCE ( - 77, + CAST( - 33 AS SIGNED ) + - - 24 + - - 54 * - + 3 ) AS col0
----
-462

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT 6 * + COALESCE ( - 77, + CAST ( - 33 AS INTEGER ) + - - 24 + - - 54 * - + 3 ) AS col0
----
-462

query I rowsort
SELECT ALL + 32 * 44 + - 32 + 59
----
1435

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT DISTINCT CASE + 37 WHEN - + 84 THEN + - 27 WHEN 17 * - NULLIF ( + - 57, - - COALESCE ( + - COUNT( * ), 2 + - 20 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT CASE + 37 WHEN - + 84 THEN + - 27 WHEN 17 * - NULLIF ( + - 57, - - COALESCE ( + - COUNT ( * ), 2 + - 20 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL COUNT( * ) * - ( + 1 ) + - SUM( + 77 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL COUNT ( * ) * - ( + 1 ) + - SUM ( + 77 ) col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT DISTINCT ( - 97 ) * - 15 * - + COUNT( * ) + + 1 + - 89
----
-1543

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT ( - 97 ) * - 15 * - + COUNT ( * ) + + 1 + - 89
----
-1543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1491
SELECT CAST( + 2 AS SIGNED ) * + + 98 + CASE - COALESCE ( 13, + - 47 * + 12 + 97 + + 81 - + AVG ( - 1 ) * + 99 + + + 30 * + 22 + COALESCE ( 22, 46 * + 73, - 74 ), 86 ) WHEN 48 + + COALESCE ( 18, + 38 * + 81 ) / - COALESCE ( COUNT( * ), 35 + 50 * 34 ) THEN NULL WHEN 57 + 80 THEN NULL ELSE + COUNT( DISTINCT 17 ) + + 18 END * + 56 AS col0
----
1260

skipif mysql # not compatible
query I rowsort label-1491
SELECT CAST ( + 2 AS INTEGER ) * + + 98 + CASE - COALESCE ( 13, + - 47 * + 12 + 97 + + 81 - + AVG ( - 1 ) * + 99 + + + 30 * + 22 + COALESCE ( 22, 46 * + 73, - 74 ), 86 ) WHEN 48 + + COALESCE ( 18, + 38 * + 81 ) / - COALESCE ( COUNT ( * ), 35 + 50 * 34 ) THEN NULL WHEN 57 + 80 THEN NULL ELSE + COUNT ( DISTINCT 17 ) + + 18 END * + 56 AS col0
----
1260

query I rowsort
SELECT 90 + 45
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL 93 + + 13 + 72 + + COUNT( * ) * + 67
----
245

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL 93 + + 13 + 72 + + COUNT ( * ) * + 67
----
245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT 52 + CAST( NULL AS SIGNED ) + - CAST( + 85 AS SIGNED ) + - COUNT( * ) * - 9 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT 52 + CAST ( NULL AS INTEGER ) + - CAST ( + 85 AS INTEGER ) + - COUNT ( * ) * - 9 * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 53 * 78 * - - 7 * + 81 AS col2
----
-2343978

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT 22 - + 6 + + COUNT( * ) * - + NULLIF ( COALESCE ( - COUNT( * ), ( MIN( - 80 ) ) + + 61 ), - - 39 ) + - COUNT( * ) * + 28
----
-11

skipif mysql # not compatible
query I rowsort label-1496
SELECT 22 - + 6 + + COUNT ( * ) * - + NULLIF ( COALESCE ( - COUNT ( * ), ( MIN ( - 80 ) ) + + 61 ), - - 39 ) + - COUNT ( * ) * + 28
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT - 29, 41 - COUNT( * ) AS col1
----
-29
40

skipif mysql # not compatible
query II rowsort label-1497
SELECT - 29, 41 - COUNT ( * ) AS col1
----
-29
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT DISTINCT + ( COUNT( * ) ) * 48 + + 20 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT + ( COUNT ( * ) ) * 48 + + 20 AS col1
----
68

query I rowsort
SELECT ALL + 53 - 16 AS col2
----
37

query I rowsort
SELECT 14 + + 18 + - 62
----
-30

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1502
SELECT 63 * - COUNT( + CAST( COALESCE ( - 49, - 49 + - 20 * 13 * + 50 ) AS DECIMAL ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-1502
SELECT 63 * - COUNT ( + CAST ( COALESCE ( - 49, - 49 + - 20 * 13 * + 50 ) AS REAL ) ) AS col0
----
-63

query I rowsort
SELECT + 37 * 3
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT 18 * + NULLIF ( - + 20, - + 64 * - COUNT( * ) + 37 + - + 47 ) - 47 * - 0 + + 95
----
-265

skipif mysql # not compatible
query I rowsort label-1504
SELECT 18 * + NULLIF ( - + 20, - + 64 * - COUNT ( * ) + 37 + - + 47 ) - 47 * - 0 + + 95
----
-265

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

skipif mysql # not compatible
query I rowsort label-1505
SELECT CAST ( NULL AS INTEGER ) + - 75 + - 81 + 82 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT ALL - 79 DIV + 1 + + + 79
----
0

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL - 79 / + 1 + + + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + COUNT( * ) * + - 58 * - 31 AS col2
----
1798

skipif mysql # not compatible
query I rowsort label-1507
SELECT + COUNT ( * ) * + - 58 * - 31 AS col2
----
1798

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

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

query I rowsort
SELECT ALL 20 * + 92
----
1840

onlyif mysql # DIV for integer division: 
query II rowsort label-1510
SELECT - 39 * + 5 * - - 82 + + 50 + + 56 DIV + - 29, - 51 * 18 col0
----
-15941
-918

skipif mysql # not compatible
query II rowsort label-1510
SELECT - 39 * + 5 * - - 82 + + 50 + + 56 / + - 29, - 51 * 18 col0
----
-15941
-918

query I rowsort
SELECT 20 * + - 86 * - 81 * + - 39 AS col1
----
-5433480

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT 45 DIV - 35 + - 41
----
-42

skipif mysql # not compatible
query I rowsort label-1512
SELECT 45 / - 35 + - 41
----
-42

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

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

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

skipif mysql # not compatible
query II rowsort label-1514
SELECT 23 AS col0, COUNT ( * ) AS col2
----
23
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1515
SELECT 58 col2, CAST( + 24 AS SIGNED ) * + 16 + + - 64
----
58
320

skipif mysql # not compatible
query II rowsort label-1515
SELECT 58 col2, CAST ( + 24 AS INTEGER ) * + 16 + + - 64
----
58
320

query I rowsort
SELECT ALL - 82 + + - 95 * - 17
----
1533

query I rowsort
SELECT DISTINCT - 55 * - 91
----
5005

query I rowsort
SELECT 55 * ( + 78 ) col2
----
4290

query II rowsort
SELECT + 5 AS col0, 67 AS col1
----
5
67

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

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - ( + 95 ) + - ( - - COUNT ( * ) ) AS col1
----
-96

query II rowsort
SELECT DISTINCT - 39 col1, + 31 * + 28 AS col0
----
-39
868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT ALL 47 + + - MAX( DISTINCT 5 ) + - 61 DIV + 72 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL 47 + + - MAX ( DISTINCT 5 ) + - 61 / + 72 AS col1
----
42

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

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL 6 + - + COUNT ( * ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT 87 + - 79 + - 12 * + 19 * - - CASE + 39 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 68 + + - 94 * + + 13 * - - ( - COALESCE ( - 20, + COALESCE ( - 9, - 66 ), - 98, - 84 + 71 ) ) * + ( 89 ) THEN 26 + + 53 * - ( 20 ) END + 26 / - MIN( + 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT 87 + - 79 + - 12 * + 19 * - - CASE + 39 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 68 + + - 94 * + + 13 * - - ( - COALESCE ( - 20, + COALESCE ( - 9, - 66 ), - 98, - 84 + 71 ) ) * + ( 89 ) THEN 26 + + 53 * - ( 20 ) END + 26 / - MIN ( + 67 ) AS col2
----
NULL

query I rowsort
SELECT 70 - 58 * + - 17 AS col1
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT 77 + - - COUNT( * ) * + 72 + + 38
----
187

skipif mysql # not compatible
query I rowsort label-1526
SELECT 77 + - - COUNT ( * ) * + 72 + + 38
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT + COUNT( * ) - - 90 col2
----
91

skipif mysql # not compatible
query I rowsort label-1527
SELECT + COUNT ( * ) - - 90 col2
----
91

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

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

query I rowsort
SELECT 59 * + ( - 79 ) AS col1
----
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL 28 * + + ( + NULLIF ( - + 99, + 88 + + + MAX( ALL 41 ) ) )
----
-2772

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL 28 * + + ( + NULLIF ( - + 99, + 88 + + + MAX ( ALL 41 ) ) )
----
-2772

query I rowsort
SELECT DISTINCT 33 - - - 62 AS col0
----
-29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT 36 + + ( - 92 ) DIV - - 76
----
35

skipif mysql # not compatible
query I rowsort label-1533
SELECT 36 + + ( - 92 ) / - - 76
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT - COUNT( DISTINCT + 87 ) - - 95 * + + 93
----
8834

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT - COUNT ( DISTINCT + 87 ) - - 95 * + + 93
----
8834

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT COUNT( * ) * + 39 * + - 99
----
-3861

skipif mysql # not compatible
query I rowsort label-1535
SELECT COUNT ( * ) * + 39 * + - 99
----
-3861

query I rowsort
SELECT + ( + - NULLIF ( 83, - 85 * - 81 ) ) + - 99 + - 93
----
-275

onlyif mysql # aggregate syntax: 
query II rowsort label-1537
SELECT + COUNT( * ) AS col0, 59 * + + SUM( ( 83 ) ) AS col2
----
1
4897

skipif mysql # not compatible
query II rowsort label-1537
SELECT + COUNT ( * ) AS col0, 59 * + + SUM ( ( 83 ) ) AS col2
----
1
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL + SUM( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL + SUM ( 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT CASE 9 WHEN + 58 THEN ( - COUNT( * ) ) ELSE - 58 END col0, 7 AS col0
----
-58
7

skipif mysql # not compatible
query II rowsort label-1539
SELECT CASE 9 WHEN + 58 THEN ( - COUNT ( * ) ) ELSE - 58 END col0, 7 AS col0
----
-58
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1540
SELECT SUM( ALL 60 ) AS col1, + 45 * 63 + 98 AS col0
----
60
2933

skipif mysql # not compatible
query II rowsort label-1540
SELECT SUM ( ALL 60 ) AS col1, + 45 * 63 + 98 AS col0
----
60
2933

query I rowsort
SELECT ( - 87 ) col1
----
-87

query I rowsort
SELECT 5 + + 16 AS col1
----
21

query II rowsort
SELECT DISTINCT - 49, - 93 AS col2
----
-49
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1544
SELECT - 92 AS col1, + CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * - COUNT( * ) * + COUNT( * ) THEN NULL ELSE + - ( 10 ) * - ( 9 ) * 80 * - + ( - COUNT( * ) ) * - 19 + + + CAST( NULL AS SIGNED ) * + + CASE ( + NULLIF ( + 90, 22 / 9 + 89 ) ) WHEN 17 / + CASE CAST( - COUNT( * ) AS SIGNED ) WHEN - COUNT( * ) THEN 32 ELSE ( 6 ) END THEN 87 WHEN 72 * 90 + CASE 39 WHEN COUNT( * ) - 40 THEN NULL ELSE 34 END * + MAX( ALL - 43 + ( + 89 ) * 83 ) THEN - 4 * CASE 13 * - CAST( NULL AS SIGNED ) WHEN 22 THEN + 65 END + COUNT( * ) WHEN + ( + 19 ) / 35 + 98 THEN NULL END - 77 * 65 END + 14 AS col1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-1544
SELECT - 92 AS col1, + CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE + - ( 10 ) * - ( 9 ) * 80 * - + ( - COUNT ( * ) ) * - 19 + + + CAST ( NULL AS INTEGER ) * + + CASE ( + NULLIF ( + 90, 22 / 9 + 89 ) ) WHEN 17 / + CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN - COUNT ( * ) THEN 32 ELSE ( 6 ) END THEN 87 WHEN 72 * 90 + CASE 39 WHEN COUNT ( * ) - 40 THEN NULL ELSE 34 END * + MAX ( ALL - 43 + ( + 89 ) * 83 ) THEN - 4 * CASE 13 * - CAST ( NULL AS INTEGER ) WHEN 22 THEN + 65 END + COUNT ( * ) WHEN + ( + 19 ) / 35 + 98 THEN NULL END - 77 * 65 END + 14 AS col1
----
-92
NULL

query I rowsort
SELECT - 1 * - 31
----
31

query I rowsort
SELECT ALL - + 33 * 86
----
-2838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1547
SELECT COUNT( * ) / + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * - 27 + 91 + + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT COUNT ( * ) / + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 27 + 91 + + 54 AS col2
----
NULL

query I rowsort
SELECT 65 * + + 46
----
2990

query I rowsort
SELECT ALL 91 * + 42 + - - 53
----
3875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1550
SELECT COUNT( * ) - - 88 + + 46 DIV + ( + 95 )
----
89

skipif mysql # not compatible
query I rowsort label-1550
SELECT COUNT ( * ) - - 88 + + 46 / + ( + 95 )
----
89

query I rowsort
SELECT 46 - 84 col2
----
-38

query I rowsort
SELECT 65 * 30
----
1950

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1553
SELECT ALL 34 * + - 53 * - 74 + COALESCE ( - 67, - COUNT( * ), - + 7 * ( 1 ) DIV + CASE 69 WHEN + + 71 THEN NULL WHEN - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) - + - 91 THEN - - 34 - + 7 ELSE NULL END )
----
133281

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL 34 * + - 53 * - 74 + COALESCE ( - 67, - COUNT ( * ), - + 7 * ( 1 ) / + CASE 69 WHEN + + 71 THEN NULL WHEN - MAX ( DISTINCT CAST ( NULL AS REAL ) ) - + - 91 THEN - - 34 - + 7 ELSE NULL END )
----
133281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 81 + + - 84 / - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 81 + + - 84 / - 81
----
NULL

query I rowsort
SELECT - 88 - + - 55 * - 29 - + - 51
----
-1632

query I rowsort
SELECT ALL - 6 * 72
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL + 52 + + + 63 + - COUNT( * ) * - 92 AS col2
----
207

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL + 52 + + + 63 + - COUNT ( * ) * - 92 AS col2
----
207

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

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

query I rowsort
SELECT ALL COALESCE ( + - 93, 6 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query III rowsort label-1560
SELECT - MAX( + - 50 ) AS col0, 29, - COUNT( * ) AS col0
----
50
29
-1

skipif mysql # not compatible
query III rowsort label-1560
SELECT - MAX ( + - 50 ) AS col0, 29, - COUNT ( * ) AS col0
----
50
29
-1

query I rowsort
SELECT ALL - 45 * - 33 col1
----
1485

query I rowsort
SELECT DISTINCT + 86 - - - 47
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT + + 59 + - 97 + ( - MAX( - 61 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1563
SELECT + + 59 + - 97 + ( - MAX ( - 61 ) ) AS col1
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT - 45 + 83 - 15 * - + COUNT( * ) * - 60
----
-862

skipif mysql # not compatible
query I rowsort label-1565
SELECT - 45 + 83 - 15 * - + COUNT ( * ) * - 60
----
-862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1566
SELECT ALL + 1 DIV + CAST( + - MAX( DISTINCT 26 ) AS SIGNED ) + 64 DIV - + ( - - 59 ), + 6 AS col1
----
-1
6

skipif mysql # not compatible
query II rowsort label-1566
SELECT ALL + 1 / + CAST ( + - MAX ( DISTINCT 26 ) AS INTEGER ) + 64 / - + ( - - 59 ), + 6 AS col1
----
-1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT + + COALESCE ( + CAST( NULL AS SIGNED ), + 30 ) - + 5 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1567
SELECT + + COALESCE ( + CAST ( NULL AS INTEGER ), + 30 ) - + 5 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1568
SELECT + + ( 64 ) DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-1568
SELECT + + ( 64 ) / - 35
----
-1

query I rowsort
SELECT + - 41 + - 4 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT + COUNT( * ) + 10 * - 1 col2, 37 AS col2
----
-9
37

skipif mysql # not compatible
query II rowsort label-1570
SELECT + COUNT ( * ) + 10 * - 1 col2, 37 AS col2
----
-9
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1571
SELECT - COUNT( * ) * + - COUNT( * ) DIV 88 * - 46 + 94 + 50 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-1571
SELECT - COUNT ( * ) * + - COUNT ( * ) / 88 * - 46 + 94 + 50 AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ALL - CASE + 80 WHEN + - 9 THEN + ( 17 ) * - ( - 85 ) WHEN 3 THEN + 96 ELSE NULL END * - AVG ( DISTINCT + 82 ) + + - COUNT( * ) + + + 85 / - 12 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL - CASE + 80 WHEN + - 9 THEN + ( 17 ) * - ( - 85 ) WHEN 3 THEN + 96 ELSE NULL END * - AVG ( DISTINCT + 82 ) + + - COUNT ( * ) + + + 85 / - 12 * + 66
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1574
SELECT ( AVG ( - - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT ( AVG ( - - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL 74 * - 4 + 38 col0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT + COUNT( * ) + - 42 * + 93 + - CASE + 12 WHEN MAX( + ( + 92 ) ) + + 91 THEN 51 WHEN + + 10 THEN 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT + COUNT ( * ) + - 42 * + 93 + - CASE + 12 WHEN MAX ( + ( + 92 ) ) + + 91 THEN 51 WHEN + + 10 THEN 79 ELSE NULL END
----
NULL

query I rowsort
SELECT + COALESCE ( + + 40, - 98 * - - 69 + - - ( - + 54 ) + - 60, + 74 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT + 99 DIV - ( 40 ) + ( 91 ) + + 94 * + SUM( DISTINCT + 67 ) + - 17 - - 6 * 31 * + COUNT( * ) col1
----
6556

skipif mysql # not compatible
query I rowsort label-1578
SELECT + 99 / - ( 40 ) + ( 91 ) + + 94 * + SUM ( DISTINCT + 67 ) + - 17 - - 6 * 31 * + COUNT ( * ) col1
----
6556

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

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

query II rowsort
SELECT + 58 AS col1, - 81 * 60 * 58 col1
----
58
-281880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1581
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN + + ( 1 ) THEN - + 18 - - + SUM( - 39 ) WHEN + + 47 THEN NULL WHEN + 24 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN + + ( 1 ) THEN - + 18 - - + SUM ( - 39 ) WHEN + + 47 THEN NULL WHEN + 24 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT + ( 52 ) * - 9 AS col2, 90 AS col2
----
-468
90

query II rowsort
SELECT DISTINCT + 22 col0, 61 AS col1
----
22
61

query II rowsort
SELECT ALL 54 * + 69 - - 22 AS col2, 71 AS col1
----
3748
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT NULLIF ( - ( 35 ), + 90 / + COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1585
SELECT NULLIF ( - ( 35 ), + 90 / + COUNT ( * ) )
----
-35

query II rowsort
SELECT DISTINCT + 67 AS col2, - 60 AS col2
----
67
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1587
SELECT - + 63 DIV 81 + + - COUNT( * ) + 82
----
81

skipif mysql # not compatible
query I rowsort label-1587
SELECT - + 63 / 81 + + - COUNT ( * ) + 82
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1588
SELECT ALL + 57 DIV COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + 57 / COUNT ( * )
----
57

query I rowsort
SELECT + - CASE + - 34 WHEN 61 THEN NULL ELSE - - 82 END AS col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1590
SELECT DISTINCT + - 80 DIV + - ( + ( 84 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT + - 80 / + - ( + ( 84 ) )
----
0

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

query II rowsort
SELECT - + 85 + + 56 - + 28 col2, + 44
----
-57
44

query II rowsort
SELECT DISTINCT 59, 14 AS col2
----
59
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT ALL + - 75 * - COALESCE ( + 18, + + 97, - 26 + + 2 * + 20, 0 * - 96 - - 20 * - 22 ) / - ( 72 ) * 46 + CAST( NULL AS SIGNED ) + + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + - 75 * - COALESCE ( + 18, + + 97, - 26 + + 2 * + 20, 0 * - 96 - - 20 * - 22 ) / - ( 72 ) * 46 + CAST ( NULL AS INTEGER ) + + - 85
----
NULL

query I rowsort
SELECT - 65 + + 74
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT + 39 * COUNT( + 6 ) * + 77
----
3003

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT + 39 * COUNT ( + 6 ) * + 77
----
3003

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT - ( - + 86 ) + 0, + COALESCE ( - + 4, - + 62 + + MAX( - 54 ) + + 67 * - COALESCE ( + 77, + - COUNT( * ) ) * 54 ) AS col0
----
86
-4

skipif mysql # not compatible
query II rowsort label-1597
SELECT - ( - + 86 ) + 0, + COALESCE ( - + 4, - + 62 + + MAX ( - 54 ) + + 67 * - COALESCE ( + 77, + - COUNT ( * ) ) * 54 ) AS col0
----
86
-4

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1599
SELECT + 93 * + 40 + + + 86 + - + 90 + + 57 + CAST( - - 16 AS SIGNED )
----
3789

skipif mysql # not compatible
query I rowsort label-1599
SELECT + 93 * + 40 + + + 86 + - + 90 + + 57 + CAST ( - - 16 AS INTEGER )
----
3789

query I rowsort
SELECT ALL + ( - 50 ) + 23
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1601
SELECT ALL - CASE - 35 WHEN - CAST( + ( - + COALESCE ( 33, 81 + + 89 + - 8 * + 78 ) ) AS DECIMAL ) THEN NULL WHEN + 60 THEN - + 19 + + 4 * + - COUNT( * ) ELSE NULL END + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - CASE - 35 WHEN - CAST ( + ( - + COALESCE ( 33, 81 + + 89 + - 8 * + 78 ) ) AS REAL ) THEN NULL WHEN + 60 THEN - + 19 + + 4 * + - COUNT ( * ) ELSE NULL END + + 0
----
NULL

query II rowsort
SELECT DISTINCT + 96 + - 8 AS col2, 2 + - 25
----
88
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT ALL 2 DIV + ( + 56 ) + + + ( - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL 2 / + ( + 56 ) + + + ( - - 78 )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1604
SELECT + ( + - 52 ) * 28 * + 76 + + 65 + 36 DIV - MAX( 11 ) * + COUNT( * ) AS col0
----
-110594

skipif mysql # not compatible
query I rowsort label-1604
SELECT + ( + - 52 ) * 28 * + 76 + + 65 + 36 / - MAX ( 11 ) * + COUNT ( * ) AS col0
----
-110594

query I rowsort
SELECT ALL - 24 * - + 59 AS col2
----
1416

query I rowsort
SELECT ALL 95 - 23 + 74 AS col2
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT 15 DIV - 28 - + - 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1607
SELECT 15 / - 28 - + - 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1608
SELECT 97 * 64 AS col0, COUNT( * ) * - 24
----
6208
-24

skipif mysql # not compatible
query II rowsort label-1608
SELECT 97 * 64 AS col0, COUNT ( * ) * - 24
----
6208
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT COALESCE ( 53, - 73 * + - 69 + - - 25 ) * + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1609
SELECT COALESCE ( 53, - 73 * + - 69 + - - 25 ) * + COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT 80 + + COUNT( * ) + + 13 * 38
----
575

skipif mysql # not compatible
query I rowsort label-1610
SELECT 80 + + COUNT ( * ) + + 13 * 38
----
575

onlyif mysql # DIV for integer division: 
query II rowsort label-1611
SELECT ALL - 52 - 19 AS col1, 30 DIV - 35 AS col0
----
-71
0

skipif mysql # not compatible
query II rowsort label-1611
SELECT ALL - 52 - 19 AS col1, 30 / - 35 AS col0
----
-71
0

query I rowsort
SELECT + 69 * - 71 + + 73 col2
----
-4826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT CASE - - COALESCE ( + ( 24 ), MAX( CAST( NULL AS SIGNED ) ) * - 71 + - 21 ) WHEN + 77 THEN NULL WHEN - 76 * + 78 THEN - + 2 END * 33 + - CASE - 84 WHEN - - 65 THEN + MAX( - 15 ) * + 54 + - 77 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT CASE - - COALESCE ( + ( 24 ), MAX ( CAST ( NULL AS INTEGER ) ) * - 71 + - 21 ) WHEN + 77 THEN NULL WHEN - 76 * + 78 THEN - + 2 END * 33 + - CASE - 84 WHEN - - 65 THEN + MAX ( - 15 ) * + 54 + - 77 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT 52 * - 59 - - COUNT( * ) AS col1
----
-3067

skipif mysql # not compatible
query I rowsort label-1614
SELECT 52 * - 59 - - COUNT ( * ) AS col1
----
-3067

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT + COUNT( * ) * 42 + - - 98 + COALESCE ( + 2, CASE - CAST( NULL AS SIGNED ) WHEN CASE + 21 WHEN - + 66 + - COALESCE ( 86, MIN( ALL 2 ) ) - - 78 * - COUNT( * ) + - 69 THEN + ( - + 36 ) ELSE NULL END THEN 74 ELSE NULL END )
----
142

skipif mysql # not compatible
query I rowsort label-1616
SELECT + COUNT ( * ) * 42 + - - 98 + COALESCE ( + 2, CASE - CAST ( NULL AS INTEGER ) WHEN CASE + 21 WHEN - + 66 + - COALESCE ( 86, MIN ( ALL 2 ) ) - - 78 * - COUNT ( * ) + - 69 THEN + ( - + 36 ) ELSE NULL END THEN 74 ELSE NULL END )
----
142

query I rowsort
SELECT DISTINCT - 95 * + + 74 + - 16
----
-7046

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT + + COUNT( - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1618
SELECT + + COUNT ( - 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT + 5 + + - 80 + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-1619
SELECT + 5 + + - 80 + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1620
SELECT DISTINCT 83 * + MIN( 0 ) DIV 69 + - SUM( ALL + 22 ) DIV + 55 * - - 1
----
0

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT 83 * + MIN ( 0 ) / 69 + - SUM ( ALL + 22 ) / + 55 * - - 1
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - 97, + 90 * 83 + 48, - + 0 + + 5 + + 83 + 4 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1622
SELECT DISTINCT - 54 + 92 + - 12 DIV - CAST( + + 77 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - 54 + 92 + - 12 / - CAST ( + + 77 AS INTEGER )
----
38

query I rowsort
SELECT ALL + + 39 + - 67 + + 69 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1624
SELECT DISTINCT - 52 + + 30 + + 39 * + + 49 * CASE - 6 WHEN - AVG ( ALL 77 ) THEN + 15 * - 22 / NULLIF ( + - 14, - CAST( NULL AS SIGNED ) - 26 + - 82 * + COUNT( * ) ) / + 14 * - 64 + 18 END * - COALESCE ( + 5, 58 * - SUM( DISTINCT 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - 52 + + 30 + + 39 * + + 49 * CASE - 6 WHEN - AVG ( ALL 77 ) THEN + 15 * - 22 / NULLIF ( + - 14, - CAST ( NULL AS INTEGER ) - 26 + - 82 * + COUNT ( * ) ) / + 14 * - 64 + 18 END * - COALESCE ( + 5, 58 * - SUM ( DISTINCT 61 ) )
----
NULL

query I rowsort
SELECT 52 + + 83
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1626
SELECT CASE + - ( + 85 ) WHEN - 61 THEN NULL WHEN - 14 + - - 24 THEN + - 67 * - 31 END / + 71 AS col2, CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1626
SELECT CASE + - ( + 85 ) WHEN - 61 THEN NULL WHEN - 14 + - - 24 THEN + - 67 * - 31 END / + 71 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query I rowsort
SELECT ALL - 19 + - + 37 AS col1
----
-56

query II rowsort
SELECT ALL + 60 + 87 col0, - 70 AS col2
----
147
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1629
SELECT + 30 + + 28 AS col1, + 15 * CAST( COUNT( * ) AS SIGNED )
----
58
15

skipif mysql # not compatible
query II rowsort label-1629
SELECT + 30 + + 28 AS col1, + 15 * CAST ( COUNT ( * ) AS INTEGER )
----
58
15

query I rowsort
SELECT NULLIF ( 94, 51 ) * 1 * 55 * - + NULLIF ( 22, - AVG ( - + 91 ) / + 57 * - + 53 ) + + + CASE + - 76 WHEN + 3 + - 46 THEN + 52 ELSE ( - - 92 ) END
----
-113648

query I rowsort
SELECT 62 + + 6 - + 54 AS col1
----
14

query I rowsort
SELECT 55 + + + 56
----
111

query I rowsort
SELECT ALL + 82 + + + 73 AS col0
----
155

query I rowsort
SELECT DISTINCT + ( - + 86 ) * + 65 AS col0
----
-5590

onlyif mysql # aggregate syntax: 
query II rowsort label-1635
SELECT 90 + - 25 * - 83 - - COUNT( * ) * + COUNT( * ), + 78 AS col2
----
2166
78

skipif mysql # not compatible
query II rowsort label-1635
SELECT 90 + - 25 * - 83 - - COUNT ( * ) * + COUNT ( * ), + 78 AS col2
----
2166
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL - 20 - - 66 * ( + 52 ) + + + COUNT( * )
----
3413

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - 20 - - 66 * ( + 52 ) + + + COUNT ( * )
----
3413

query I rowsort
SELECT 61 + + - 17
----
44

query I rowsort
SELECT + 85 * - 69 + - + ( + - 93 )
----
-5772

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT 6 - - 83 DIV - 45 + + - 0 + + 4 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1639
SELECT 6 - - 83 / - 45 + + - 0 + + 4 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1640
SELECT + SUM( DISTINCT - 38 ) DIV - 44 + - - 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1640
SELECT + SUM ( DISTINCT - 38 ) / - 44 + - - 3 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT DISTINCT - 66 DIV - + 73
----
0

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT - 66 / - + 73
----
0

query I rowsort
SELECT ALL 41 * 13
----
533

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

skipif mysql # not compatible
query I rowsort label-1643
SELECT 96 / + COUNT ( * ) AS col1
----
96

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

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

query II rowsort
SELECT 80 * + 5 * - + 33, 86 AS col1
----
-13200
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT 86 DIV - 83
----
-1

skipif mysql # not compatible
query I rowsort label-1646
SELECT 86 / - 83
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT 21 * ( + COUNT( * ) ) * + 36
----
756

skipif mysql # not compatible
query I rowsort label-1647
SELECT 21 * ( + COUNT ( * ) ) * + 36
----
756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1648
SELECT COALESCE ( + NULLIF ( + 15, + - 52 DIV + COALESCE ( + COUNT( ALL - ( + + 16 ) ), 5 * MAX( ALL 86 ) DIV - 87 - 61 - - 55 + + 83 ) ), + - 30, 70 * - - 87 DIV 55 ) + - 67 * - 49
----
3298

skipif mysql # not compatible
query I rowsort label-1648
SELECT COALESCE ( + NULLIF ( + 15, + - 52 / + COALESCE ( + COUNT ( ALL - ( + + 16 ) ), 5 * MAX ( ALL 86 ) / - 87 - 61 - - 55 + + 83 ) ), + - 30, 70 * - - 87 / 55 ) + - 67 * - 49
----
3298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1649
SELECT + 45 * + 72 + 20 + + + 19 * + - 79 DIV COUNT( * ) + 13 DIV - + 20 + + - 90
----
1669

skipif mysql # not compatible
query I rowsort label-1649
SELECT + 45 * + 72 + 20 + + + 19 * + - 79 / COUNT ( * ) + 13 / - + 20 + + - 90
----
1669

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT - COALESCE ( + - 46, + + COALESCE ( - 51, 57, + 39 - 16 * - - COUNT( * ) ) )
----
46

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT - COALESCE ( + - 46, + + COALESCE ( - 51, 57, + 39 - 16 * - - COUNT ( * ) ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT + MIN( - 41 ) + 46
----
5

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + MIN ( - 41 ) + 46
----
5

query I rowsort
SELECT DISTINCT - ( + 15 ) col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL + COALESCE ( + ( - + 89 ), + + MAX( - 80 ) * - 34, - 60 ) + 30 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + COALESCE ( + ( - + 89 ), + + MAX ( - 80 ) * - 34, - 60 ) + 30 AS col1
----
-59

query I rowsort
SELECT + 48 + - - 7 AS col1
----
55

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

query II rowsort
SELECT + 61 + + - 22 * - - 60 AS col0, 24 AS col0
----
-1259
24

query I rowsort
SELECT ALL + 89 + - 6
----
83

query I rowsort
SELECT - 14 * + - 0 AS col2
----
0

query I rowsort
SELECT + CASE - - 73 WHEN - ( 70 ) THEN NULL WHEN 40 - + 3 THEN NULL WHEN - 36 * - 58 + - 87 THEN - 53 * - 73 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT + 40 + - COUNT ( * ) AS col2
----
39

query I rowsort
SELECT - 24 * - 73 - 88
----
1664

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

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

query I rowsort
SELECT DISTINCT + CASE - + 67 WHEN + 65 THEN - - 14 * - 31 + 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT ALL 85 AS col0, 23 * - COUNT( * ) * 80 * - - COUNT( * ) AS col0
----
85
-1840

skipif mysql # not compatible
query II rowsort label-1665
SELECT ALL 85 AS col0, 23 * - COUNT ( * ) * 80 * - - COUNT ( * ) AS col0
----
85
-1840

query I rowsort
SELECT DISTINCT 84 - 13 AS col0
----
71

query I rowsort
SELECT - 96 * - 64 * - 85
----
-522240

query I rowsort
SELECT ALL 19 - + 38 + 14 * 17 * - 93 + - 52 AS col2
----
-22205

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

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

query I rowsort
SELECT + 60 * + ( 39 )
----
2340

query I rowsort
SELECT - 66 * + 20
----
-1320

query I rowsort
SELECT - 83 + - 73
----
-156

query I rowsort
SELECT DISTINCT 77 * + 27 * - 64 AS col2
----
-133056

query I rowsort
SELECT - 6 * - + 9 * - 0
----
0

query I rowsort
SELECT ALL - 61 * 30 * - + 28 col2
----
51240

query II rowsort
SELECT + 66 AS col2, + 19 AS col0
----
66
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1677
SELECT ( - CAST( NULL AS DECIMAL ) ) / 27 + - 72 - + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT ( - CAST ( NULL AS REAL ) ) / 27 + - 72 - + 82 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1678
SELECT CAST( COUNT( * ) AS SIGNED ) DIV + 96 - + COUNT( * ) - 57 + + - 13
----
-71

skipif mysql # not compatible
query I rowsort label-1678
SELECT CAST ( COUNT ( * ) AS INTEGER ) / + 96 - + COUNT ( * ) - 57 + + - 13
----
-71

query I rowsort
SELECT NULLIF ( - - 90, - 11 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - 64 + NULLIF ( - 14, ( - + 94 ) * - 13 ) + + - COUNT( * ) - + - NULLIF ( - - 25, 61 * 50 )
----
-54

skipif mysql # not compatible
query I rowsort label-1680
SELECT - 64 + NULLIF ( - 14, ( - + 94 ) * - 13 ) + + - COUNT ( * ) - + - NULLIF ( - - 25, 61 * 50 )
----
-54

query I rowsort
SELECT ALL - 26 * - 30 + - + 83
----
697

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT - SUM( - 2 ) * + 64 + + + 95 + - 11
----
212

skipif mysql # not compatible
query I rowsort label-1682
SELECT - SUM ( - 2 ) * + 64 + + + 95 + - 11
----
212

onlyif mysql # aggregate syntax: 
query II rowsort label-1683
SELECT DISTINCT + + 61 col0, - COUNT( * )
----
61
-1

skipif mysql # not compatible
query II rowsort label-1683
SELECT DISTINCT + + 61 col0, - COUNT ( * )
----
61
-1

query I rowsort
SELECT DISTINCT + - 65 * + - 83 + - - 62 + + - 82 + - 72 + - - ( - + 64 ) AS col0
----
5239

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT ALL - 47 * + + COUNT( * ) * + 51 - - + COUNT( * ) + + COUNT( * ) col1
----
-2395

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - 47 * + + COUNT ( * ) * + 51 - - + COUNT ( * ) + + COUNT ( * ) col1
----
-2395

query I rowsort
SELECT + CASE 83 WHEN 45 THEN 30 - - + 20 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT - 72 * - 48 + - + 98 + + 87 / - + 70 * + CAST( NULL AS SIGNED ) * - 52 + + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT - 72 * - 48 + - + 98 + + 87 / - + 70 * + CAST ( NULL AS INTEGER ) * - 52 + + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT + + SUM( DISTINCT + 11 ) - 30 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1688
SELECT + + SUM ( DISTINCT + 11 ) - 30 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT ALL + - 56 * + CAST( - 81 AS SIGNED )
----
4536

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL + - 56 * + CAST ( - 81 AS INTEGER )
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + 76 * + ( + ( - COUNT( * ) ) ) * - 77 * + 48 * + 3 + - CASE 0 WHEN COUNT( * ) THEN - 34 - + - 67 ELSE + 26 * + ( 30 ) END AS col2
----
841908

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 76 * + ( + ( - COUNT ( * ) ) ) * - 77 * + 48 * + 3 + - CASE 0 WHEN COUNT ( * ) THEN - 34 - + - 67 ELSE + 26 * + ( 30 ) END AS col2
----
841908

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1691
SELECT - 89 * COUNT( * ) * ( 97 ) AS col1, 36 DIV - + 8
----
-8633
-4

skipif mysql # not compatible
query II rowsort label-1691
SELECT - 89 * COUNT ( * ) * ( 97 ) AS col1, 36 / - + 8
----
-8633
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1692
SELECT + 56 AS col1, + 6 + - MIN( - 67 )
----
56
73

skipif mysql # not compatible
query II rowsort label-1692
SELECT + 56 AS col1, + 6 + - MIN ( - 67 )
----
56
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1693
SELECT + 16 + - 2 + - ( - - 91 ) - - + 45 * - 29, + ( + 15 ) * - 19 + - + 33 + + 97 - - MIN( ALL + 1 ) + + COUNT( * ) * - 23 * - - 34 * - ( + 22 ) AS col0
----
-1382
16984

skipif mysql # not compatible
query II rowsort label-1693
SELECT + 16 + - 2 + - ( - - 91 ) - - + 45 * - 29, + ( + 15 ) * - 19 + - + 33 + + 97 - - MIN ( ALL + 1 ) + + COUNT ( * ) * - 23 * - - 34 * - ( + 22 ) AS col0
----
-1382
16984

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL - + ( + 65 ) * COUNT( - 92 ) + + 80 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - + ( + 65 ) * COUNT ( - 92 ) + + 80 AS col2
----
15

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

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

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

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

query I rowsort
SELECT - - 86 + 98
----
184

query I rowsort
SELECT + 72 + - 19 + - 21 * - 93
----
2006

query I rowsort
SELECT ALL 78 * + + 79
----
6162

query I rowsort
SELECT + 84 * 10
----
840

query I rowsort
SELECT + 1 + - - 75
----
76

query I rowsort
SELECT - CASE + 73 WHEN 71 / - 61 + - 64 THEN + + 90 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT + ( ( - + NULLIF ( - + MAX( DISTINCT + + 7 ), 70 ) ) ) + 95 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-1703
SELECT + ( ( - + NULLIF ( - + MAX ( DISTINCT + + 7 ), 70 ) ) ) + 95 AS col2
----
102

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

skipif mysql # not compatible
query I rowsort label-1704
SELECT + COUNT ( * ) / - 34 AS col2
----
0

query I rowsort
SELECT - 42 * - + 10
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT + COUNT( 0 ) + 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1706
SELECT + COUNT ( 0 ) + 76 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1707
SELECT + 24 + + + 22 + 96 * CASE - + 17 WHEN + - 58 THEN - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) + + - 72 - CASE - MAX( DISTINCT + + 26 ) WHEN + COUNT( * ) THEN + CAST( + 94 AS SIGNED ) * 50 WHEN - 40 DIV + 99 + NULLIF ( + SUM( - - 37 ), - - MAX( 73 ) ) + + 4 THEN NULL END + CAST( 36 AS SIGNED ) * CAST( NULL AS DECIMAL ) THEN 24 ELSE + 11 DIV NULLIF ( - 55 DIV COUNT( * ), + 0 * 86 ) + 78 * - 72 END AS col2
----
-539090

skipif mysql # not compatible
query I rowsort label-1707
SELECT + 24 + + + 22 + 96 * CASE - + 17 WHEN + - 58 THEN - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) + + - 72 - CASE - MAX ( DISTINCT + + 26 ) WHEN + COUNT ( * ) THEN + CAST ( + 94 AS INTEGER ) * 50 WHEN - 40 / + 99 + NULLIF ( + SUM ( - - 37 ), - - MAX ( 73 ) ) + + 4 THEN NULL END + CAST ( 36 AS INTEGER ) * CAST ( NULL AS REAL ) THEN 24 ELSE + 11 / NULLIF ( - 55 / COUNT ( * ), + 0 * 86 ) + 78 * - 72 END AS col2
----
-539090

query I rowsort
SELECT - 0 + + + 30
----
30

query I rowsort
SELECT - 76 + 1
----
-75

query I rowsort
SELECT + ( + 23 ) + - 3
----
20

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

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - COUNT ( * ) + + 40 AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT 94 DIV 93 + - 60 * ( + 59 ) - + 45 col0
----
-3584

skipif mysql # not compatible
query I rowsort label-1712
SELECT 94 / 93 + - 60 * ( + 59 ) - + 45 col0
----
-3584

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1713
SELECT ALL COUNT( * ) DIV - 62 AS col2, 64 + - 22 * + 18
----
0
-332

skipif mysql # not compatible
query II rowsort label-1713
SELECT ALL COUNT ( * ) / - 62 AS col2, 64 + - 22 * + 18
----
0
-332

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT + 40 + - COUNT( * ) + + 33 AS col2, + 99 * - 66 * + + MIN( - ( - 63 ) )
----
72
-411642

skipif mysql # not compatible
query II rowsort label-1714
SELECT + 40 + - COUNT ( * ) + + 33 AS col2, + 99 * - 66 * + + MIN ( - ( - 63 ) )
----
72
-411642

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT DISTINCT + - ( 27 ) DIV - - 59 * + + 62 + 86 + + 71 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT + - ( 27 ) / - - 59 * + + 62 + 86 + + 71 AS col0
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1716
SELECT DISTINCT + + 57 DIV - 42 + - - NULLIF ( - ( - COUNT( * ) ), + 27 - + 88 * - 33 * - + 12 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + + 57 / - 42 + - - NULLIF ( - ( - COUNT ( * ) ), + 27 - + 88 * - 33 * - + 12 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1717
SELECT ALL + - CASE + 78 WHEN - 36 THEN + + CAST( - + 45 AS DECIMAL ) * - 56 / + 1 * - 60 + - CASE WHEN NULL NOT IN ( + 31, + AVG ( DISTINCT 72 ), 7, 31 * - - 45 + + 36 - + + 94 * + 32 + + 35 * + AVG ( DISTINCT 69 ) ) THEN + 89 + + 89 END + 11 * + 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL + - CASE + 78 WHEN - 36 THEN + + CAST ( - + 45 AS REAL ) * - 56 / + 1 * - 60 + - CASE WHEN NULL NOT IN ( + 31, + AVG ( DISTINCT 72 ), 7, 31 * - - 45 + + 36 - + + 94 * + 32 + + 35 * + AVG ( DISTINCT 69 ) ) THEN + 89 + + 89 END + 11 * + 1 END
----
NULL

query I rowsort
SELECT + - 33 * 81
----
-2673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT 28 * CAST( + + ( - 12 ) AS SIGNED ) + - + 34 + - 49 col2
----
-419

skipif mysql # not compatible
query I rowsort label-1719
SELECT 28 * CAST ( + + ( - 12 ) AS INTEGER ) + - + 34 + - 49 col2
----
-419

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL + - 91 / - - ( - COALESCE ( - 88, + + 56 + - ( 4 ) * - + 62, + 73 * + SUM( - ( - + 88 ) ), - + 97 ) ) + + 66 + CASE + COUNT( * ) WHEN + - 38 + + 14 * - 30 * - 3 * + 48 THEN NULLIF ( + 24, 90 ) + - 14 ELSE NULL END * + SUM( 70 - 3 * - 62 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + - 91 / - - ( - COALESCE ( - 88, + + 56 + - ( 4 ) * - + 62, + 73 * + SUM ( - ( - + 88 ) ), - + 97 ) ) + + 66 + CASE + COUNT ( * ) WHEN + - 38 + + 14 * - 30 * - 3 * + 48 THEN NULLIF ( + 24, 90 ) + - 14 ELSE NULL END * + SUM ( 70 - 3 * - 62 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 98, 31 * + + 95 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - 87 * - - COALESCE ( + + 67, + 59 * - + COUNT( * ) * + 45 ) - + 47
----
-5876

skipif mysql # not compatible
query I rowsort label-1722
SELECT - 87 * - - COALESCE ( + + 67, + 59 * - + COUNT ( * ) * + 45 ) - + 47
----
-5876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1723
SELECT - CASE + 73 WHEN 69 * CAST( - 72 AS SIGNED ) THEN + COUNT( * ) + - COUNT( * ) WHEN - NULLIF ( + COUNT( * ), + 15 ) + + CAST( - 16 AS SIGNED ) + CASE + 10 WHEN 0 THEN + COUNT( * ) WHEN - 95 THEN NULL END * + 72 THEN NULL ELSE + 0 * + 93 - - 80 END * 21 DIV 70 + COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1723
SELECT - CASE + 73 WHEN 69 * CAST ( - 72 AS INTEGER ) THEN + COUNT ( * ) + - COUNT ( * ) WHEN - NULLIF ( + COUNT ( * ), + 15 ) + + CAST ( - 16 AS INTEGER ) + CASE + 10 WHEN 0 THEN + COUNT ( * ) WHEN - 95 THEN NULL END * + 72 THEN NULL ELSE + 0 * + 93 - - 80 END * 21 / 70 + COUNT ( * ) AS col0
----
-23

query I rowsort
SELECT - + 20 * + + 98 + - 36
----
-1996

query I rowsort
SELECT + NULLIF ( + 85, - ( - 2 ) )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT ALL + + 49 DIV - NULLIF ( - 87, - - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + + 49 / - NULLIF ( - 87, - - 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT + NULLIF ( - 82, 75 - + 97 + + 57 ) * COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-1727
SELECT + NULLIF ( - 82, 75 - + 97 + + 57 ) * COUNT ( * )
----
-82

query I rowsort
SELECT ALL 62 * - 57 AS col2
----
-3534

onlyif mysql # DIV for integer division: 
query I rowsort label-1729
SELECT DISTINCT + 79 - - 0 DIV 3
----
79

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT + 79 - - 0 / 3
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1730
SELECT + + CAST( - - 60 AS SIGNED ), + 97 * - + 48 col0
----
60
-4656

skipif mysql # not compatible
query II rowsort label-1730
SELECT + + CAST ( - - 60 AS INTEGER ), + 97 * - + 48 col0
----
60
-4656

query I rowsort
SELECT ALL + + 48 * - 31 AS col0
----
-1488

query I rowsort
SELECT DISTINCT - 88 * + 27 * 47 AS col0
----
-111672

query I rowsort
SELECT 64 * - + 9 AS col2
----
-576

query II rowsort
SELECT - 28, 15 AS col0
----
-28
15

query II rowsort
SELECT ALL 29, - 77 AS col2
----
29
-77

query II rowsort
SELECT 32, 12 AS col1
----
32
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT MAX( ALL - 82 ) - - - 89 col2
----
-171

skipif mysql # not compatible
query I rowsort label-1737
SELECT MAX ( ALL - 82 ) - - - 89 col2
----
-171

query II rowsort
SELECT ALL 38 AS col2, 55
----
38
55

query I rowsort
SELECT 90 * 83
----
7470

query II rowsort
SELECT 56 AS col1, 37
----
56
37

query I rowsort
SELECT ALL ( - - NULLIF ( + 5, 97 * + - 8 ) ) + + ( - + 64 ) * + + 61
----
-3899

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1742
SELECT ALL 3 AS col0, CAST( NULL AS SIGNED ) / - 51 * - 60 AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL 3 AS col0, CAST ( NULL AS INTEGER ) / - 51 * - 60 AS col0
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1743
SELECT 43, - CASE + 83 WHEN + COUNT( * ) * + 51 * - COUNT( 94 ) THEN - 3 WHEN + 53 THEN NULL ELSE NULL END AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-1743
SELECT 43, - CASE + 83 WHEN + COUNT ( * ) * + 51 * - COUNT ( 94 ) THEN - 3 WHEN + 53 THEN NULL ELSE NULL END AS col1
----
43
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1744
SELECT - 5, 26 DIV 9 - - 75 + 89 * + 29 AS col2
----
-5
2658

skipif mysql # not compatible
query II rowsort label-1744
SELECT - 5, 26 / 9 - - 75 + 89 * + 29 AS col2
----
-5
2658

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT - 7 AS col1, + MIN( DISTINCT + - 31 ) + + - 2 * 28 AS col1
----
-7
-87

skipif mysql # not compatible
query II rowsort label-1745
SELECT - 7 AS col1, + MIN ( DISTINCT + - 31 ) + + - 2 * 28 AS col1
----
-7
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT + COUNT( * ) + - NULLIF ( + COUNT( * ), - 86 + - COUNT( ALL - 6 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT + COUNT ( * ) + - NULLIF ( + COUNT ( * ), - 86 + - COUNT ( ALL - 6 ) )
----
0

query I rowsort
SELECT ALL COALESCE ( + + 25, + 69, 43 * - NULLIF ( - 61, - 37 ) ) + - 67 AS col2
----
-42

query I rowsort
SELECT DISTINCT 81 + + - 66 AS col1
----
15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1750
SELECT - - ( - MIN( DISTINCT + 71 ) ) DIV 29 + + + 60
----
58

skipif mysql # not compatible
query I rowsort label-1750
SELECT - - ( - MIN ( DISTINCT + 71 ) ) / 29 + + + 60
----
58

query I rowsort
SELECT 14 * 68
----
952

query I rowsort
SELECT - 49 + + 58 AS col0
----
9

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

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

query I rowsort
SELECT + - NULLIF ( 21, - 76 + - 79 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1755
SELECT 6 + 96 / - CAST( NULL AS SIGNED ) / + 79 AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1755
SELECT 6 + 96 / - CAST ( NULL AS INTEGER ) / + 79 AS col0, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT - 80 * + + 43 + - - 28 - 20
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1757
SELECT ALL + - 88 * - NULLIF ( - ( 24 ), + - 75 - 6 + 37 + 48 * - COUNT( * ) ) + 63 + + 32 DIV + - 25
----
-2050

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + - 88 * - NULLIF ( - ( 24 ), + - 75 - 6 + 37 + 48 * - COUNT ( * ) ) + 63 + + 32 / + - 25
----
-2050

query II rowsort
SELECT - 91 AS col2, 11 + + 96
----
-91
107

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - MIN ( - + 64 ) * + 84 AS col2
----
5376

query II rowsort
SELECT ALL - 32 AS col0, 40
----
-32
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT 21 + COUNT( * ) col2
----
22

skipif mysql # not compatible
query I rowsort label-1762
SELECT 21 + COUNT ( * ) col2
----
22

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

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

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

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

query I rowsort
SELECT + + CASE WHEN ( + 52 ) >= 22 THEN + - 77 + 1 * + 53 END AS col1
----
-24

query I rowsort
SELECT 84 + - COALESCE ( 14, - 69 )
----
70

query I rowsort
SELECT ALL + 2 * - - 85 AS col1
----
170

query I rowsort
SELECT 90 * 98 * + NULLIF ( 22, - 43 + + 37 )
----
194040

onlyif mysql # aggregate syntax: 
query II rowsort label-1769
SELECT ALL - 29 + COUNT( * ), + ( - ( - - 57 ) ) - 87 + 14 * 27 AS col1
----
-28
234

skipif mysql # not compatible
query II rowsort label-1769
SELECT ALL - 29 + COUNT ( * ), + ( - ( - - 57 ) ) - 87 + 14 * 27 AS col1
----
-28
234

query I rowsort
SELECT ALL + ( - - 95 ) + 89 AS col0
----
184

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

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

query I rowsort
SELECT DISTINCT + 84 + - - 27
----
111

query I rowsort
SELECT ALL + COALESCE ( + 42, - 27 * - 26 ) + - 90 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1774
SELECT 96 + - 54 DIV 36 DIV + + 55 + - - 8 + - 66 + + + SUM( DISTINCT + 35 ) * + 89 + ( - - 74 ) DIV - COUNT( * ) + - COALESCE ( + 97, - COALESCE ( - 33, + 61 * - - 24 - + 80 - + 21 + + + ( + + 96 ) * - + CAST( 49 AS SIGNED ) * ( 70 ) ) + - 21, 31, - SUM( ( - 61 ) ) )
----
2982

skipif mysql # not compatible
query I rowsort label-1774
SELECT 96 + - 54 / 36 / + + 55 + - - 8 + - 66 + + + SUM ( DISTINCT + 35 ) * + 89 + ( - - 74 ) / - COUNT ( * ) + - COALESCE ( + 97, - COALESCE ( - 33, + 61 * - - 24 - + 80 - + 21 + + + ( + + 96 ) * - + CAST ( 49 AS INTEGER ) * ( 70 ) ) + - 21, 31, - SUM ( ( - 61 ) ) )
----
2982

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT DISTINCT + 12 + + + COUNT( DISTINCT - + ( 20 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT + 12 + + + COUNT ( DISTINCT - + ( 20 ) ) AS col2
----
13

query I rowsort
SELECT ALL + 39 * - 52 AS col0
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT 15 + + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1777
SELECT 15 + + COUNT ( * ) AS col1
----
16

query I rowsort
SELECT ALL + 31 + - 64 AS col2
----
-33

query I rowsort
SELECT ALL 11 / + CASE - 24 WHEN - ( + 63 ) THEN + + 95 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1780
SELECT 24 + CAST( + + 31 AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1780
SELECT 24 + CAST ( + + 31 AS INTEGER ) AS col1
----
55

query I rowsort
SELECT ALL - 67 + - 39
----
-106

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1783
SELECT COUNT( * ) + CASE - CAST( NULL AS SIGNED ) WHEN 63 + - 21 THEN NULL WHEN 6 THEN + + CAST( 5 AS SIGNED ) * - COUNT( * ) * + - 54 END + - ( + 32 ), 10 * - - 37 + 23 AS col1
----
NULL
393

skipif mysql # not compatible
query II rowsort label-1783
SELECT COUNT ( * ) + CASE - CAST ( NULL AS INTEGER ) WHEN 63 + - 21 THEN NULL WHEN 6 THEN + + CAST ( 5 AS INTEGER ) * - COUNT ( * ) * + - 54 END + - ( + 32 ), 10 * - - 37 + 23 AS col1
----
NULL
393

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - - MAX( - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-1784
SELECT - - MAX ( - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1785
SELECT 29 * 6, COUNT( * ) * + 9 AS col2
----
174
9

skipif mysql # not compatible
query II rowsort label-1785
SELECT 29 * 6, COUNT ( * ) * + 9 AS col2
----
174
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT + 12 * - + NULLIF ( + CAST( + 63 AS SIGNED ), 33 - - 89 ) col2
----
-756

skipif mysql # not compatible
query I rowsort label-1786
SELECT + 12 * - + NULLIF ( + CAST ( + 63 AS INTEGER ), 33 - - 89 ) col2
----
-756

query I rowsort
SELECT 88 + + 92 + - 27
----
153

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

query I rowsort
SELECT DISTINCT + - 53 * + 47 + + 95 - - + 73 - + - 41
----
-2282

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

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

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

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

query I rowsort
SELECT - + 74 * - 11 + 29
----
843

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT + - 83 DIV - 3 + - + 37 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1793
SELECT + - 83 / - 3 + - + 37 AS col1
----
-10

query I rowsort
SELECT + - 35 * + 48 AS col2
----
-1680

query I rowsort
SELECT DISTINCT 20 * - + 51 AS col1
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT ALL 19 DIV + 87 * - + 83
----
0

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL 19 / + 87 * - + 83
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1797
SELECT + 31 DIV + MAX( DISTINCT 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1797
SELECT + 31 / + MAX ( DISTINCT 25 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT ALL - COUNT( * ) * + 23 * COUNT( * ) + - 78 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - COUNT ( * ) * + 23 * COUNT ( * ) + - 78 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL 7 + + 31 + + + 1 * + SUM( - - 9 ) + + ( + 5 ) * 59 * - + 12 * 20 * - 8 * 3 * - ( - 17 )
----
28886447

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL 7 + + 31 + + + 1 * + SUM ( - - 9 ) + + ( + 5 ) * 59 * - + 12 * 20 * - 8 * 3 * - ( - 17 )
----
28886447

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT COUNT( DISTINCT 23 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1800
SELECT COUNT ( DISTINCT 23 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT MIN( ALL 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1801
SELECT MIN ( ALL 83 ) AS col1
----
83

query I rowsort
SELECT + 24 - 84 * 63 * - 34
----
179952

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT SUM( + ( + 85 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT SUM ( + ( + 85 ) ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1805
SELECT ALL + CAST( - 60 AS SIGNED ) - - 94 - - ( 55 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + CAST ( - 60 AS INTEGER ) - - 94 - - ( 55 ) AS col0
----
89

query I rowsort
SELECT - - 46 * + 82
----
3772

onlyif mysql # aggregate syntax: 
query II rowsort label-1807
SELECT - ( + + 74 ) - + + 31, MIN( 28 ) AS col1
----
-105
28

skipif mysql # not compatible
query II rowsort label-1807
SELECT - ( + + 74 ) - + + 31, MIN ( 28 ) AS col1
----
-105
28

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1808
SELECT ALL - - CAST( NULL AS DECIMAL ) DIV + 33 * + 14 AS col1, + 81 * 42 DIV - 27 + - + 83
----
NULL
-209

skipif mysql # not compatible
query II rowsort label-1808
SELECT ALL - - CAST ( NULL AS REAL ) / + 33 * + 14 AS col1, + 81 * 42 / - 27 + - + 83
----
NULL
-209

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT DISTINCT - 52 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT - 52 / - 75 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT 44 DIV 60 + - 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1810
SELECT 44 / 60 + - 44 AS col0
----
-44

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT + + 7 DIV + 58 + 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1812
SELECT + + 7 / + 58 + 33 AS col2
----
33

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1814
SELECT ALL 9 * - - 78 - - 47 AS col0, + 86 * + + COUNT( - + 85 )
----
749
86

skipif mysql # not compatible
query II rowsort label-1814
SELECT ALL 9 * - - 78 - - 47 AS col0, + 86 * + + COUNT ( - + 85 )
----
749
86

query I rowsort
SELECT DISTINCT - 6 * + + 9 - 39 + - 51
----
-144

query I rowsort
SELECT + 84 + + 72 * - 87 + ( + + 86 ) AS col2
----
-6094

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ( + + CASE + 79 WHEN - + COALESCE ( CASE + COUNT( * ) WHEN - 10 - + 86 THEN + MAX( ALL 93 ) ELSE NULL END, - MAX( ALL - - 90 ) ) - - ( + ( - SUM( - + 42 ) ) ) * 61 + + 30 * 44 THEN - 3 * 94 * - + 26 + - COUNT( DISTINCT ( - + 88 ) ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT ( + + CASE + 79 WHEN - + COALESCE ( CASE + COUNT ( * ) WHEN - 10 - + 86 THEN + MAX ( ALL 93 ) ELSE NULL END, - MAX ( ALL - - 90 ) ) - - ( + ( - SUM ( - + 42 ) ) ) * 61 + + 30 * 44 THEN - 3 * 94 * - + 26 + - COUNT ( DISTINCT ( - + 88 ) ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT - 6 * + 46 + - 59 * COUNT( * ) * 74 * + 77
----
-336458

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - 6 * + 46 + - 59 * COUNT ( * ) * 74 * + 77
----
-336458

query I rowsort
SELECT ALL - 73 * - 12 + - 39
----
837

query I rowsort
SELECT + 65 * - 4 * - + 18 * - 28 * + + 30 AS col2
----
-3931200

query I rowsort
SELECT DISTINCT 60 * 38 + 65 AS col1
----
2345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1822
SELECT CASE COALESCE ( - - 40, - CASE - 98 WHEN - 66 THEN 88 END DIV - MIN( ALL 66 ) * SUM( ALL - ( + 83 ) ) - - 73 ) WHEN - + 12 THEN + COUNT( * ) - - - 4 ELSE + - 3 DIV 53 DIV + ( - CAST( + 85 AS SIGNED ) ) * + ( - CASE + 79 WHEN 31 THEN NULL ELSE - NULLIF ( 63, 25 ) END ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1822
SELECT CASE COALESCE ( - - 40, - CASE - 98 WHEN - 66 THEN 88 END / - MIN ( ALL 66 ) * SUM ( ALL - ( + 83 ) ) - - 73 ) WHEN - + 12 THEN + COUNT ( * ) - - - 4 ELSE + - 3 / 53 / + ( - CAST ( + 85 AS INTEGER ) ) * + ( - CASE + 79 WHEN 31 THEN NULL ELSE - NULLIF ( 63, 25 ) END ) END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL - CASE 11 WHEN - 32 - + 35 - + 56 + - 33 THEN + 23 - - 47 ELSE NULL END * MAX( ALL 7 ) + 37 * - 10 * COUNT( * ) + COALESCE ( 65, - 32 * 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL - CASE 11 WHEN - 32 - + 35 - + 56 + - 33 THEN + 23 - - 47 ELSE NULL END * MAX ( ALL 7 ) + 37 * - 10 * COUNT ( * ) + COALESCE ( 65, - 32 * 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT MIN( + + 86 ) * 21 * + MAX( + + 6 ) + + + 82 * 53 AS col1
----
15182

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT MIN ( + + 86 ) * 21 * + MAX ( + + 6 ) + + + 82 * 53 AS col1
----
15182

query I rowsort
SELECT ALL - 67 * - - 10
----
-670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1826
SELECT - CAST( - COUNT( DISTINCT 66 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1826
SELECT - CAST ( - COUNT ( DISTINCT 66 ) AS INTEGER ) AS col2
----
1

query II rowsort
SELECT ALL 57 AS col2, + 4 AS col2
----
57
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1828
SELECT DISTINCT 58 * - CASE - - COALESCE ( + + CAST( NULL AS SIGNED ), 17 * - 79 ) WHEN - 92 - - - 98 + - - 34 - - 41 + - 39 - + ( + + 98 ) * + 33 * 65 * + - ( + + COUNT( * ) ) * 83 * + COUNT( * ) * + 61 THEN NULL WHEN + + ( + COALESCE ( 22, 33 ) ) THEN + + COUNT( - 9 ) / + 25 - - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT 58 * - CASE - - COALESCE ( + + CAST ( NULL AS INTEGER ), 17 * - 79 ) WHEN - 92 - - - 98 + - - 34 - - 41 + - 39 - + ( + + 98 ) * + 33 * 65 * + - ( + + COUNT ( * ) ) * 83 * + COUNT ( * ) * + 61 THEN NULL WHEN + + ( + COALESCE ( 22, 33 ) ) THEN + + COUNT ( - 9 ) / + 25 - - 29 END
----
NULL

query I rowsort
SELECT + 70 * + 22
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT ALL 93 * - - CAST( - 8 AS SIGNED ) AS col2
----
-744

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL 93 * - - CAST ( - 8 AS INTEGER ) AS col2
----
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT + 34 * COALESCE ( - 72, - NULLIF ( + COUNT( + 43 ), - - 64 ) + + + 58 * - 99 + 88, - CASE + 52 WHEN 30 + - 87 / + 24 - - COUNT( * ) THEN NULL WHEN - 36 THEN NULL ELSE + SUM( - 50 ) END - + 78 ) AS col0
----
-2448

skipif mysql # not compatible
query I rowsort label-1831
SELECT + 34 * COALESCE ( - 72, - NULLIF ( + COUNT ( + 43 ), - - 64 ) + + + 58 * - 99 + 88, - CASE + 52 WHEN 30 + - 87 / + 24 - - COUNT ( * ) THEN NULL WHEN - 36 THEN NULL ELSE + SUM ( - 50 ) END - + 78 ) AS col0
----
-2448

query II rowsort
SELECT ALL 64 AS col2, 71 AS col2
----
64
71

query I rowsort
SELECT + 24 + + 79 * + 40 AS col0
----
3184

query I rowsort
SELECT 58 + + 81 + 57
----
196

query II rowsort
SELECT DISTINCT + 32, + 9 AS col1
----
32
9

query II rowsort
SELECT ALL - + 81 * + 37, + 38 AS col0
----
-2997
38

query I rowsort
SELECT + 60 + - - 59 AS col1
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-1838
SELECT ALL 30 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL 30 / - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT MIN( 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1839
SELECT MIN ( 8 ) AS col1
----
8

query I rowsort
SELECT 81 + + 65 + - 13 + + ( 31 ) AS col1
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1841
SELECT DISTINCT + COUNT( * ) + 44 AS col0, 49 DIV + 21 AS col0
----
45
2

skipif mysql # not compatible
query II rowsort label-1841
SELECT DISTINCT + COUNT ( * ) + 44 AS col0, 49 / + 21 AS col0
----
45
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT DISTINCT COALESCE ( - - 84, + 89 DIV 80, - 75 + + - 89 )
----
84

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT COALESCE ( - - 84, + 89 / 80, - 75 + + - 89 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT - COALESCE ( + - ( 96 ), + + 33 ) + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1843
SELECT - COALESCE ( + - ( 96 ), + + 33 ) + + COUNT ( * )
----
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT CASE + 63 WHEN + 87 THEN + CAST( + AVG ( - - 14 ) AS SIGNED ) + + + ( - 81 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT CASE + 63 WHEN + 87 THEN + CAST ( + AVG ( - - 14 ) AS INTEGER ) + + + ( - 81 ) END
----
NULL

query I rowsort
SELECT 19 + 74
----
93

query I rowsort
SELECT 7 * - 77
----
-539

onlyif mysql # DIV for integer division: 
query II rowsort label-1848
SELECT ALL - 2 + - 7 DIV - 56 * - 20, + 6 AS col1
----
-2
6

skipif mysql # not compatible
query II rowsort label-1848
SELECT ALL - 2 + - 7 / - 56 * - 20, + 6 AS col1
----
-2
6

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

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

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

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

query I rowsort
SELECT ALL + + 14 + + + 26
----
40

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

query I rowsort
SELECT ALL - + COALESCE ( + + 12, + - 25 + + + ( + 84 ) ) + COALESCE ( + - 41, + 1 )
----
-53

query I rowsort
SELECT + 34 * - ( - 91 ) * - 95
----
-293930

query I rowsort
SELECT DISTINCT - 98 + + 86 + - ( - 85 )
----
73

query I rowsort
SELECT 28 * 37 AS col0
----
1036

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT ALL - SUM( ALL + 34 ) * - - 92, - 13 * - ( 26 ) AS col2
----
-3128
338

skipif mysql # not compatible
query II rowsort label-1857
SELECT ALL - SUM ( ALL + 34 ) * - - 92, - 13 * - ( 26 ) AS col2
----
-3128
338

query I rowsort
SELECT 5 + + + 72 - - 69 + - + 65 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1859
SELECT DISTINCT - COUNT( ALL - 51 ) - CAST( NULL AS SIGNED ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT - COUNT ( ALL - 51 ) - CAST ( NULL AS INTEGER ) * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT MIN( + + 71 ) * - 49
----
-3479

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT MIN ( + + 71 ) * - 49
----
-3479

query I rowsort
SELECT 24 * 93 * - + 71
----
-158472

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

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

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

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

query I rowsort
SELECT 14 * - 99 * 7
----
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT COUNT( ALL - + 83 ) + - MAX( + + 51 )
----
-50

skipif mysql # not compatible
query I rowsort label-1865
SELECT COUNT ( ALL - + 83 ) + - MAX ( + + 51 )
----
-50

query I rowsort
SELECT ( + 50 ) * 46 * - + 17 * - 21 AS col2
----
821100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT 73 DIV 20 + 38
----
41

skipif mysql # not compatible
query I rowsort label-1868
SELECT 73 / 20 + 38
----
41

query II rowsort
SELECT ALL - 58 * - + 87 AS col2, 36 * - 97 AS col2
----
5046
-3492

query I rowsort
SELECT + 49 * + + 74 AS col0
----
3626

query I rowsort
SELECT ALL ( 86 ) * + 77 * - + 42
----
-278124

query I rowsort
SELECT DISTINCT - 25 + CASE + ( + 73 ) WHEN + 99 THEN - 57 + + 76 * 66 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL COUNT( * ) + + 86 * + 24 * 13 AS col0
----
26833

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL COUNT ( * ) + + 86 * + 24 * 13 AS col0
----
26833

query I rowsort
SELECT - 15 * 55 * - - 27 + - 21 AS col0
----
-22296

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT 42 * - 22 * + COUNT( * )
----
-924

skipif mysql # not compatible
query I rowsort label-1875
SELECT 42 * - 22 * + COUNT ( * )
----
-924

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT CASE + SUM( - 40 ) WHEN 90 + + 47 * + 12 THEN NULL WHEN 27 / - 3 * + 49 THEN NULL ELSE + 30 * 99 * + 87 * + MIN( ALL 35 ) END + - 93 + 26
----
9043583

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT CASE + SUM ( - 40 ) WHEN 90 + + 47 * + 12 THEN NULL WHEN 27 / - 3 * + 49 THEN NULL ELSE + 30 * 99 * + 87 * + MIN ( ALL 35 ) END + - 93 + 26
----
9043583

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1878
SELECT - + CAST( 45 AS SIGNED ) AS col0, 38 AS col1
----
-45
38

skipif mysql # not compatible
query II rowsort label-1878
SELECT - + CAST ( 45 AS INTEGER ) AS col0, 38 AS col1
----
-45
38

query I rowsort
SELECT ALL - 81 + - 2 col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1880
SELECT ALL COUNT( * ) DIV 31 * - - 21
----
0

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL COUNT ( * ) / 31 * - - 21
----
0

query I rowsort
SELECT 1 + + + 75 AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1882
SELECT ALL + - 9 * + - 54 + + 98 + - 52 DIV - - 96 * - MIN( ALL + - 56 ) + 29 + - 90
----
523

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + - 9 * + - 54 + + 98 + - 52 / - - 96 * - MIN ( ALL + - 56 ) + 29 + - 90
----
523

onlyif mysql # aggregate syntax: 
query II rowsort label-1883
SELECT + COUNT( * ) col1, ( - + 14 ) + - 6 + + 26 * 40 AS col2
----
1
1020

skipif mysql # not compatible
query II rowsort label-1883
SELECT + COUNT ( * ) col1, ( - + 14 ) + - 6 + + 26 * 40 AS col2
----
1
1020

query I rowsort
SELECT 35 * + 89
----
3115

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL - CASE + 66 WHEN - - COUNT( * ) * - 79 + + + 95 THEN NULL WHEN - CASE 33 WHEN - 72 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - 57 * - + 71 + - COUNT( * ) - - 93 * + 70 END THEN NULL ELSE + - 66 END AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - CASE + 66 WHEN - - COUNT ( * ) * - 79 + + + 95 THEN NULL WHEN - CASE 33 WHEN - 72 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - 57 * - + 71 + - COUNT ( * ) - - 93 * + 70 END THEN NULL ELSE + - 66 END AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT ALL - 73, + 9 + - SUM( DISTINCT - 41 ) * + + 2 * - NULLIF ( + COALESCE ( - 92, + COUNT( * ) ), + 4 ) AS col0
----
-73
7553

skipif mysql # not compatible
query II rowsort label-1886
SELECT ALL - 73, + 9 + - SUM ( DISTINCT - 41 ) * + + 2 * - NULLIF ( + COALESCE ( - 92, + COUNT ( * ) ), + 4 ) AS col0
----
-73
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT 9 + - + NULLIF ( + + CASE + 90 WHEN + 65 THEN - ( - 19 ) + 61 END, 83 * + 4 ) + 1 + - - 63 * COALESCE ( + 87, + SUM( DISTINCT - 92 ) * 96 * + 30 + 93 ) + - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT 9 + - + NULLIF ( + + CASE + 90 WHEN + 65 THEN - ( - 19 ) + 61 END, 83 * + 4 ) + 1 + - - 63 * COALESCE ( + 87, + SUM ( DISTINCT - 92 ) * 96 * + 30 + 93 ) + - 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT DISTINCT MIN( DISTINCT 91 ) * 52 DIV - 63
----
-75

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT MIN ( DISTINCT 91 ) * 52 / - 63
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT ALL + 12 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + 12 / - 29
----
0

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

skipif mysql # not compatible
query I rowsort label-1890
SELECT MIN ( 29 ) col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1891
SELECT COUNT( * ) + + 82 * - + 92 AS col0, - MIN( ALL + + 39 )
----
-7543
-39

skipif mysql # not compatible
query II rowsort label-1891
SELECT COUNT ( * ) + + 82 * - + 92 AS col0, - MIN ( ALL + + 39 )
----
-7543
-39

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

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - MIN ( - 27 )
----
27

query I rowsort
SELECT 24 * - 75 * + - 9 AS col2
----
16200

query I rowsort
SELECT ALL + ( 26 ) * - 6 * + 22
----
-3432

query II rowsort
SELECT - 95 * - 75 - + 9 + - - 13, 77 AS col2
----
7129
77

query II rowsort
SELECT ALL - 4, 27 col2
----
-4
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL + 50 * - - ( - - SUM( DISTINCT 64 ) ) AS col1
----
3200

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL + 50 * - - ( - - SUM ( DISTINCT 64 ) ) AS col1
----
3200

query II rowsort
SELECT ALL + 23 AS col2, 52 * 1 col0
----
23
52

query II rowsort
SELECT + 21 AS col0, 31 AS col1
----
21
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT ALL - + CAST( NULL AS SIGNED ) + + + NULLIF ( - - 61, + 81 * + + 65 ) * + - 38 * + AVG ( - 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - + CAST ( NULL AS INTEGER ) + + + NULLIF ( - - 61, + 81 * + + 65 ) * + - 38 * + AVG ( - 79 )
----
NULL

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

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

query II rowsort
SELECT DISTINCT 43 AS col2, 47
----
43
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT + + 1 - - - 53 - - COUNT( DISTINCT + 47 ) + + - 27 + + + 36
----
-42

skipif mysql # not compatible
query I rowsort label-1903
SELECT + + 1 - - - 53 - - COUNT ( DISTINCT + 47 ) + + - 27 + + + 36
----
-42

query I rowsort
SELECT + COALESCE ( - 4, + - 36 * 98 * 35 * - 42 )
----
-4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT + + 52 DIV 91 DIV - 11 + + 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1906
SELECT + + 52 / 91 / - 11 + + 20 AS col0
----
20

query I rowsort
SELECT - + 41 + + + 8
----
-33

query I rowsort
SELECT + 78 - + - 18
----
96

query I rowsort
SELECT ALL - 71 + - 95 * - 91 AS col1
----
8574

query I rowsort
SELECT + - 66 + + + ( + 11 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1911
SELECT ALL - + COALESCE ( CASE - 18 WHEN + ( 65 ) THEN + 81 WHEN + 99 THEN - - 56 END, - - 97 * - CAST( NULL AS SIGNED ) + COUNT( ALL - - 29 ), + CAST( 86 AS SIGNED ) ) + - - COUNT( * ) + + - 75 AS col1, COALESCE ( COUNT( * ), + 14 DIV + 63 )
----
-160
1

skipif mysql # not compatible
query II rowsort label-1911
SELECT ALL - + COALESCE ( CASE - 18 WHEN + ( 65 ) THEN + 81 WHEN + 99 THEN - - 56 END, - - 97 * - CAST ( NULL AS INTEGER ) + COUNT ( ALL - - 29 ), + CAST ( 86 AS INTEGER ) ) + - - COUNT ( * ) + + - 75 AS col1, COALESCE ( COUNT ( * ), + 14 / + 63 )
----
-160
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT ALL + - 56 DIV 59 + + 48 * 22
----
1056

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL + - 56 / 59 + + 48 * 22
----
1056

query I rowsort
SELECT DISTINCT - NULLIF ( - 55, - 14 ) AS col1
----
55

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

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL 75 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT DISTINCT - 69 DIV 28
----
-2

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT - 69 / 28
----
-2

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

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

query I rowsort
SELECT DISTINCT - 78 + + + 48 + - 30
----
-60

query I rowsort
SELECT ALL - 19 + 88 + + - 9 + + COALESCE ( + - 36, - 31 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL COUNT( * ) * + - 50 + + + 33 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL COUNT ( * ) * + - 50 + + + 33 AS col1
----
-17

query I rowsort
SELECT + - 39 * + NULLIF ( - 21, + AVG ( - + 82 ) + 86 * + - 18 / 56 ) col2
----
819

query I rowsort
SELECT + - 75 + - 70 col1
----
-145

query II rowsort
SELECT ( 50 ) AS col0, NULLIF ( + 79, - 99 ) + 53
----
50
132

query I rowsort
SELECT + 6 * 71 col2
----
426

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT DISTINCT ( - + 51 ) DIV ( + + 21 ) DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT ( - + 51 ) / ( + + 21 ) / 13
----
0

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

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

query I rowsort
SELECT - ( + 60 ) * + + 54 col2
----
-3240

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1927
SELECT - 91 * 16 DIV + CAST( + 5 AS SIGNED ) - + 5 + + 1 * + - 55 AS col1
----
-351

skipif mysql # not compatible
query I rowsort label-1927
SELECT - 91 * 16 / + CAST ( + 5 AS INTEGER ) - + 5 + + 1 * + - 55 AS col1
----
-351

query I rowsort
SELECT COALESCE ( + 77, + 65 * 46 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL - 4 * MAX( ALL 79 ) + + MAX( 71 )
----
-245

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL - 4 * MAX ( ALL 79 ) + + MAX ( 71 )
----
-245

query I rowsort
SELECT ALL - 55 * + - 13 + - 74
----
641

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT + 93 DIV ( - - 24 )
----
3

skipif mysql # not compatible
query I rowsort label-1931
SELECT + 93 / ( - - 24 )
----
3

query I rowsort
SELECT - - 30 + 10 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT 58 * - + 41 * + NULLIF ( - 85, + NULLIF ( + 12, - 64 ) ) + MAX( - 11 )
----
202119

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT 58 * - + 41 * + NULLIF ( - 85, + NULLIF ( + 12, - 64 ) ) + MAX ( - 11 )
----
202119

query I rowsort
SELECT - + 55 + - 75
----
-130

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1935
SELECT ALL 83 * 38 DIV ( - + 58 ) + CAST( + - 10 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL 83 * 38 / ( - + 58 ) + CAST ( + - 10 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT 20 * 73 + + 80 * + NULLIF ( 35, COUNT( * ) ) + - 19 + 39
----
4280

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT 20 * 73 + + 80 * + NULLIF ( 35, COUNT ( * ) ) + - 19 + 39
----
4280

onlyif mysql # aggregate syntax: 
query II rowsort label-1937
SELECT - 6 * + - 1 - - 9 + + SUM( - + 54 ), COUNT( * ) AS col2
----
-39
1

skipif mysql # not compatible
query II rowsort label-1937
SELECT - 6 * + - 1 - - 9 + + SUM ( - + 54 ), COUNT ( * ) AS col2
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1938
SELECT ALL 91 * - 95 + - CASE - 24 WHEN + + 24 * + - 59 * - CAST( 61 AS SIGNED ) * + - 85 / - - 55 * CAST( NULL AS DECIMAL ) + + - ( + MAX( + 67 ) ) THEN - 2 * 33 * + 50 END + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL 91 * - 95 + - CASE - 24 WHEN + + 24 * + - 59 * - CAST ( 61 AS INTEGER ) * + - 85 / - - 55 * CAST ( NULL AS REAL ) + + - ( + MAX ( + 67 ) ) THEN - 2 * 33 * + 50 END + 38 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + 40 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL - ( + 35 ) + MAX( 54 )
----
19

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - ( + 35 ) + MAX ( 54 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1941
SELECT - + COALESCE ( 98, - COUNT( * ) + + 26 ), 95 DIV COUNT( * ) AS col0
----
-98
95

skipif mysql # not compatible
query II rowsort label-1941
SELECT - + COALESCE ( 98, - COUNT ( * ) + + 26 ), 95 / COUNT ( * ) AS col0
----
-98
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1942
SELECT COUNT( DISTINCT - 90 ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-1942
SELECT COUNT ( DISTINCT - 90 ), COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT - 9 - - 22 + + 38 * - + 78
----
-2951

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + SUM( ALL 3 ) * ( - COALESCE ( - COUNT( * ), + COUNT( - + 90 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-1944
SELECT + SUM ( ALL 3 ) * ( - COALESCE ( - COUNT ( * ), + COUNT ( - + 90 ) ) )
----
3

query I rowsort
SELECT - - 5 col0
----
5

query I rowsort
SELECT - 36 - - ( - 55 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT ALL 37 * 25 DIV - 60
----
-15

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 37 * 25 / - 60
----
-15

query I rowsort
SELECT - 43 * + + 55 AS col1
----
-2365

query I rowsort
SELECT + 19 * - 21 * + - 38
----
15162

query I rowsort
SELECT + 77 * - 72 * + + 80 AS col2
----
-443520

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

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

query I rowsort
SELECT - 65 + 80
----
15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1954
SELECT - 83 * - CASE 67 WHEN - + 75 THEN COUNT( * ) * 82 ELSE - COALESCE ( - 7, + 60 * + MIN( 88 ) ) END AS col1, 78 * - 24 AS col1
----
581
-1872

skipif mysql # not compatible
query II rowsort label-1954
SELECT - 83 * - CASE 67 WHEN - + 75 THEN COUNT ( * ) * 82 ELSE - COALESCE ( - 7, + 60 * + MIN ( 88 ) ) END AS col1, 78 * - 24 AS col1
----
581
-1872

onlyif mysql # aggregate syntax: 
query II rowsort label-1955
SELECT + NULLIF ( + 93, - CASE 88 WHEN - 19 + + NULLIF ( + - 90, - - 18 ) + + + COUNT( * ) THEN 14 END ), - 5 - 79 AS col2
----
93
-84

skipif mysql # not compatible
query II rowsort label-1955
SELECT + NULLIF ( + 93, - CASE 88 WHEN - 19 + + NULLIF ( + - 90, - - 18 ) + + + COUNT ( * ) THEN 14 END ), - 5 - 79 AS col2
----
93
-84

query II rowsort
SELECT ALL + 95 AS col1, - 97 AS col1
----
95
-97

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

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

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

skipif mysql # not compatible
query I rowsort label-1958
SELECT - 24 * CAST ( NULL AS INTEGER ) + 62 + + 38
----
NULL

query I rowsort
SELECT DISTINCT 82 + - 37 AS col1
----
45

query I rowsort
SELECT ALL 93 + + + 90 AS col1
----
183

query II rowsort
SELECT + 8 AS col2, 67 * - ( + - 24 ) AS col0
----
8
1608

query I rowsort
SELECT ALL - 78 + - 34 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL + 23 + - - ( + NULLIF ( - 21, + 41 ) ) + - + COUNT( * ) * 97 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + 23 + - - ( + NULLIF ( - 21, + 41 ) ) + - + COUNT ( * ) * 97 AS col2
----
-95

query I rowsort
SELECT 43 * + ( 37 ) AS col1
----
1591

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1965
SELECT 78 + - ( 68 ) AS col0, + CAST( NULL AS SIGNED ) AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1965
SELECT 78 + - ( 68 ) AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
10
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT 84 DIV - - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1966
SELECT 84 / - - 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL 94 + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL 94 + COUNT ( * )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT + CAST( NULL AS SIGNED ) * + 60 + - + COALESCE ( 22, 22 ) * - 56 * + + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT + CAST ( NULL AS INTEGER ) * + 60 + - + COALESCE ( 22, 22 ) * - 56 * + + 62 AS col0
----
NULL

query I rowsort
SELECT 50 * - 34 AS col1
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL MAX( ALL + + 29 ) * - 59
----
-1711

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL MAX ( ALL + + 29 ) * - 59
----
-1711

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

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

query I rowsort
SELECT ALL - COALESCE ( + 49, + 79 ) * 71 * - 48 + - 19
----
166973

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT DISTINCT 2, - CASE + 50 WHEN 44 THEN - COUNT( * ) WHEN COUNT( * ) + + AVG ( + 48 ) + - COALESCE ( + COUNT( * ), - 63 ) - + 22 * + COUNT( * ) THEN NULL ELSE NULL END * + 40 AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-1974
SELECT DISTINCT 2, - CASE + 50 WHEN 44 THEN - COUNT ( * ) WHEN COUNT ( * ) + + AVG ( + 48 ) + - COALESCE ( + COUNT ( * ), - 63 ) - + 22 * + COUNT ( * ) THEN NULL ELSE NULL END * + 40 AS col1
----
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT - - COALESCE ( 37, + + 55, + COUNT( * ) ) * 0 - + 8 + + COUNT( * ) + + ( - 93 )
----
-100

skipif mysql # not compatible
query I rowsort label-1975
SELECT - - COALESCE ( 37, + + 55, + COUNT ( * ) ) * 0 - + 8 + + COUNT ( * ) + + ( - 93 )
----
-100

query I rowsort
SELECT - 93 + + 36 * - - 94 AS col0
----
3291

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT 99 * - CASE + 52 WHEN - 16 * 33 THEN + 25 ELSE + + ( - 95 ) END - - COUNT( * ) + COUNT( DISTINCT 86 ) + - 63 * - 64 + - 75 AS col2
----
13364

skipif mysql # not compatible
query I rowsort label-1977
SELECT 99 * - CASE + 52 WHEN - 16 * 33 THEN + 25 ELSE + + ( - 95 ) END - - COUNT ( * ) + COUNT ( DISTINCT 86 ) + - 63 * - 64 + - 75 AS col2
----
13364

query II rowsort
SELECT ALL 52 AS col2, - 45 AS col0
----
52
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT COUNT( * ) + - 53 - + SUM( ALL + - 49 )
----
-3

skipif mysql # not compatible
query I rowsort label-1979
SELECT COUNT ( * ) + - 53 - + SUM ( ALL + - 49 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT + 20 + + 20 + COUNT( * ) * 12 + + COALESCE ( 76, NULLIF ( + 4, + - ( - + 34 ) ) ) * + 14, 77 AS col2
----
1116
77

skipif mysql # not compatible
query II rowsort label-1980
SELECT + 20 + + 20 + COUNT ( * ) * 12 + + COALESCE ( 76, NULLIF ( + 4, + - ( - + 34 ) ) ) * + 14, 77 AS col2
----
1116
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1981
SELECT + 34 + COUNT( DISTINCT + 97 ) DIV - COUNT( * ) col0
----
33

skipif mysql # not compatible
query I rowsort label-1981
SELECT + 34 + COUNT ( DISTINCT + 97 ) / - COUNT ( * ) col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1982
SELECT ALL 75 AS col0, - 17 * + + ( - 33 ) + + MAX( ALL CASE - 90 WHEN + - 96 * 58 * - - 76 * + + 13 THEN NULL WHEN - 3 THEN NULL ELSE - 50 END ) AS col1
----
75
511

skipif mysql # not compatible
query II rowsort label-1982
SELECT ALL 75 AS col0, - 17 * + + ( - 33 ) + + MAX ( ALL CASE - 90 WHEN + - 96 * 58 * - - 76 * + + 13 THEN NULL WHEN - 3 THEN NULL ELSE - 50 END ) AS col1
----
75
511

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL - COALESCE ( + COUNT( * ), 28 ) * - MIN( + 77 ) * + ( - 68 ) * 5 + + 15 - 91 + - 91
----
-26347

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - COALESCE ( + COUNT ( * ), 28 ) * - MIN ( + 77 ) * + ( - 68 ) * 5 + + 15 - 91 + - 91
----
-26347

query I rowsort
SELECT 8 * + 50
----
400

query I rowsort
SELECT 44 + 29 * - 12 * + 68 * - 45 * 65 AS col0
----
69217244

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT 15 DIV + + 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT 15 / + + 50 AS col2
----
0

query II rowsort
SELECT 21 AS col0, - ( - NULLIF ( + ( + - 70 ), - 56 * 5 ) )
----
21
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1988
SELECT 63 + 34 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT 63 + 34 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT 82 + + 6 - COUNT( * ) col1
----
87

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT 82 + + 6 - COUNT ( * ) col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT 53 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT 53 / - - 65
----
0

query II rowsort
SELECT DISTINCT - 91 AS col1, - 94
----
-91
-94

query I rowsort
SELECT DISTINCT 17 + - - 98 AS col0
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT 43 DIV - 3
----
-14

skipif mysql # not compatible
query I rowsort label-1993
SELECT 43 / - 3
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT MIN( ALL + 8 ) * + + 84 AS col0
----
672

skipif mysql # not compatible
query I rowsort label-1994
SELECT MIN ( ALL + 8 ) * + + 84 AS col0
----
672

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1995
SELECT 37 AS col0, COUNT( * ) * + + COUNT( * ) * - - COUNT( * ) DIV + 44
----
37
0

skipif mysql # not compatible
query II rowsort label-1995
SELECT 37 AS col0, COUNT ( * ) * + + COUNT ( * ) * - - COUNT ( * ) / + 44
----
37
0

query I rowsort
SELECT + ( - ( + - 65 ) ) * + 81 + - + 60 AS col1
----
5205

query I rowsort
SELECT ALL 81 + 83
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1998
SELECT COALESCE ( - NULLIF ( - COUNT( * ), - 11 + - CAST( NULL AS SIGNED ) ), - + 75, + - 22 ) + + ( + - 63 ) AS col0, NULLIF ( - - 48, + - 90 * - - CASE + - 62 WHEN 53 THEN NULL WHEN - + ( - + 98 ) THEN + - 72 END + - - 83 ) * - 90 - 13 * + 7 col1
----
-62
-4411

skipif mysql # not compatible
query II rowsort label-1998
SELECT COALESCE ( - NULLIF ( - COUNT ( * ), - 11 + - CAST ( NULL AS INTEGER ) ), - + 75, + - 22 ) + + ( + - 63 ) AS col0, NULLIF ( - - 48, + - 90 * - - CASE + - 62 WHEN 53 THEN NULL WHEN - + ( - + 98 ) THEN + - 72 END + - - 83 ) * - 90 - 13 * + 7 col1
----
-62
-4411

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT + NULLIF ( - 33, 1 ) * + COUNT( * ) * 66 - 90 + COUNT( * ) * + 92 AS col0
----
-2176

skipif mysql # not compatible
query I rowsort label-1999
SELECT + NULLIF ( - 33, 1 ) * + COUNT ( * ) * 66 - 90 + COUNT ( * ) * + 92 AS col0
----
-2176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2000
SELECT DISTINCT - COUNT( * ) * + + NULLIF ( + 27, + COUNT( * ) ) - MAX( 65 ) + - - 40 + + CAST( NULL AS SIGNED ) * + 81 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT - COUNT ( * ) * + + NULLIF ( + 27, + COUNT ( * ) ) - MAX ( 65 ) + - - 40 + + CAST ( NULL AS INTEGER ) * + 81 * - 75
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2001
SELECT + 63 col0, ( + SUM( ALL - - 16 ) ) AS col2
----
63
16

skipif mysql # not compatible
query II rowsort label-2001
SELECT + 63 col0, ( + SUM ( ALL - - 16 ) ) AS col2
----
63
16

query II rowsort
SELECT DISTINCT - - 67 AS col2, 11 AS col1
----
67
11

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2003
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, 28 + 31
----
NULL
59

skipif mysql # not compatible
query II rowsort label-2003
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, 28 + 31
----
NULL
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2004
SELECT + 36, 10 * CASE + ( - + ( - 37 ) ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 77 END * 6 AS col1
----
36
-4620

skipif mysql # not compatible
query II rowsort label-2004
SELECT + 36, 10 * CASE + ( - + ( - 37 ) ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 77 END * 6 AS col1
----
36
-4620

query I rowsort
SELECT - 52 * - 32
----
1664

query II rowsort
SELECT - ( + + 87 ) AS col2, + 89 col2
----
-87
89

query II rowsort
SELECT - 36, + 12 * + - 29 AS col1
----
-36
-348

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT + 18 * 35 DIV 18 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2009
SELECT + 18 * 35 / 18 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT - COALESCE ( - + COUNT( * ), - 67 ) * + 12 * - - 12
----
144

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT - COALESCE ( - + COUNT ( * ), - 67 ) * + 12 * - - 12
----
144

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2011
SELECT 83 DIV 98 + - 75 + 14 + + - 24 * CAST( + 10 AS SIGNED ) - 24
----
-325

skipif mysql # not compatible
query I rowsort label-2011
SELECT 83 / 98 + - 75 + 14 + + - 24 * CAST ( + 10 AS INTEGER ) - 24
----
-325

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2012
SELECT COALESCE ( - ( + NULLIF ( + COALESCE ( - - 32, - 53 * - - 43 * - 99 - + 36 + + 23, + 25 + - + 57 - - + ( - ( 96 ) ) DIV 77 * - 73 ), - 99 ) ), + ( CAST( NULL AS SIGNED ) ) ) * - + 72 + + + 51 AS col1
----
2355

skipif mysql # not compatible
query I rowsort label-2012
SELECT COALESCE ( - ( + NULLIF ( + COALESCE ( - - 32, - 53 * - - 43 * - 99 - + 36 + + 23, + 25 + - + 57 - - + ( - ( 96 ) ) / 77 * - 73 ), - 99 ) ), + ( CAST ( NULL AS INTEGER ) ) ) * - + 72 + + + 51 AS col1
----
2355

query I rowsort
SELECT 44 * - 62 AS col1
----
-2728

query I rowsort
SELECT 24 - 85 * 95 AS col0
----
-8051

query II rowsort
SELECT ALL - 95 + + + 4, + 25 - 52 AS col0
----
-91
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-2016
SELECT ALL COUNT( * ) + - 91, 74 AS col1
----
-90
74

skipif mysql # not compatible
query II rowsort label-2016
SELECT ALL COUNT ( * ) + - 91, 74 AS col1
----
-90
74

query I rowsort
SELECT DISTINCT - 77 + - + 27 * - 12
----
247

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL COUNT( 86 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL COUNT ( 86 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2020
SELECT + 76 + - MIN( ALL 92 ) AS col1, + CAST( NULL AS SIGNED )
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-2020
SELECT + 76 + - MIN ( ALL 92 ) AS col1, + CAST ( NULL AS INTEGER )
----
-16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - MAX( 30 ) - + 22
----
-52

skipif mysql # not compatible
query I rowsort label-2021
SELECT - MAX ( 30 ) - + 22
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2022
SELECT ALL + 87 * + 98 AS col2, COALESCE ( 60, + COUNT( * ) ) + + 47 + + + MAX( ALL - 57 )
----
8526
50

skipif mysql # not compatible
query II rowsort label-2022
SELECT ALL + 87 * + 98 AS col2, COALESCE ( 60, + COUNT ( * ) ) + + 47 + + + MAX ( ALL - 57 )
----
8526
50

query I rowsort
SELECT - 52 + - 49
----
-101

query I rowsort
SELECT - 58 - 53 col1
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-2025
SELECT NULLIF ( + 71, + + 55 - - 80 + - 19 + - - COALESCE ( 76, + 38 * 74 ) * - 96 * + 79 * + 55 ), - 63 + 12 + NULLIF ( + 67, + COUNT( * ) ) AS col0
----
71
16

skipif mysql # not compatible
query II rowsort label-2025
SELECT NULLIF ( + 71, + + 55 - - 80 + - 19 + - - COALESCE ( 76, + 38 * 74 ) * - 96 * + 79 * + 55 ), - 63 + 12 + NULLIF ( + 67, + COUNT ( * ) ) AS col0
----
71
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2026
SELECT + COUNT( * ) * + 2 + CASE + 7 WHEN + - 41 + COUNT( * ) + + 99 - - + 96 - + AVG ( + 65 ) / - CASE - + 20 WHEN 6 * + 40 THEN NULL WHEN - COUNT( CAST( NULL AS DECIMAL ) ) + - 73 * + - 11 THEN NULL ELSE - 45 * + - ( COUNT( * ) ) END + - 37 THEN NULL WHEN + 64 THEN + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT + COUNT ( * ) * + 2 + CASE + 7 WHEN + - 41 + COUNT ( * ) + + 99 - - + 96 - + AVG ( + 65 ) / - CASE - + 20 WHEN 6 * + 40 THEN NULL WHEN - COUNT ( CAST ( NULL AS REAL ) ) + - 73 * + - 11 THEN NULL ELSE - 45 * + - ( COUNT ( * ) ) END + - 37 THEN NULL WHEN + 64 THEN + 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL 53 * + - 40 * + 67 + + + COUNT( * )
----
-142039

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL 53 * + - 40 * + 67 + + + COUNT ( * )
----
-142039

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT - COUNT( * ) * + 92 AS col2, + 72 - + 27 + ( - + 78 ) + 80 + - ( + COUNT( * ) )
----
-92
46

skipif mysql # not compatible
query II rowsort label-2028
SELECT - COUNT ( * ) * + 92 AS col2, + 72 - + 27 + ( - + 78 ) + 80 + - ( + COUNT ( * ) )
----
-92
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT + COUNT( DISTINCT - 79 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2029
SELECT + COUNT ( DISTINCT - 79 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - 22 + + + 78 - + MIN( ALL + 60 ) * + 70
----
-4144

skipif mysql # not compatible
query I rowsort label-2030
SELECT - 22 + + + 78 - + MIN ( ALL + 60 ) * + 70
----
-4144

query I rowsort
SELECT + 5 * + 63 - - 78 + + - 16
----
377

query II rowsort
SELECT ALL - 28 * + 97 - 22, 22 AS col0
----
-2738
22

query II rowsort
SELECT - 73 * - 78 AS col2, + 76 AS col0
----
5694
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL + 52 * - + CASE - 3 WHEN COUNT( * ) + - + COUNT( * ) THEN + - 78 WHEN + 56 THEN NULL ELSE - 52 END + 87 AS col2
----
2791

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL + 52 * - + CASE - 3 WHEN COUNT ( * ) + - + COUNT ( * ) THEN + - 78 WHEN + 56 THEN NULL ELSE - 52 END + 87 AS col2
----
2791

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT + - SUM( - 17 ) * + 81
----
1377

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + - SUM ( - 17 ) * + 81
----
1377

query I rowsort
SELECT CASE - 73 WHEN - + 43 THEN - 21 WHEN 44 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * + 23 * - - 37 AS col1
----
-851

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * + 23 * - - 37 AS col1
----
-851

query I rowsort
SELECT DISTINCT 1 * - 59 + - 10
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT + - COALESCE ( SUM( - 1 ), + 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT + - COALESCE ( SUM ( - 1 ), + 10 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL + COUNT( * ) * - SUM( ALL 25 ) * 62
----
-1550

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + COUNT ( * ) * - SUM ( ALL 25 ) * 62
----
-1550

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

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

query II rowsort
SELECT DISTINCT + ( + + 4 ), 67 * + NULLIF ( - ( + - 94 ), - 38 ) AS col2
----
4
6298

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

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

query I rowsort
SELECT + 16 * - - 6
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2045
SELECT DISTINCT 4 + - + 39 AS col2, + COUNT( * ) - - CAST( NULL AS SIGNED ) col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-2045
SELECT DISTINCT 4 + - + 39 AS col2, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) col2
----
-35
NULL

query II rowsort
SELECT ALL - 59 + - 75 AS col0, 89
----
-134
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2047
SELECT + COUNT( * ) + - + 66 + COUNT( * ) AS col0, + 31
----
-64
31

skipif mysql # not compatible
query II rowsort label-2047
SELECT + COUNT ( * ) + - + 66 + COUNT ( * ) AS col0, + 31
----
-64
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT - NULLIF ( - MAX( - 62 ), 39 * + COALESCE ( - 26, + + COUNT( * ) ) )
----
-62

skipif mysql # not compatible
query I rowsort label-2048
SELECT - NULLIF ( - MAX ( - 62 ), 39 * + COALESCE ( - 26, + + COUNT ( * ) ) )
----
-62

query I rowsort
SELECT DISTINCT + 45 + 96 AS col0
----
141

query I rowsort
SELECT ALL - 91 + 47
----
-44

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2052
SELECT ALL 91 AS col0, + 8 DIV + COALESCE ( - 96, ( - + CASE ( + 6 ) WHEN + - CAST( ( + - 93 ) AS SIGNED ) THEN + 65 WHEN 74 THEN NULL END ) DIV 84, - 98 ) + - 41
----
91
-41

skipif mysql # not compatible
query II rowsort label-2052
SELECT ALL 91 AS col0, + 8 / + COALESCE ( - 96, ( - + CASE ( + 6 ) WHEN + - CAST ( ( + - 93 ) AS INTEGER ) THEN + 65 WHEN 74 THEN NULL END ) / 84, - 98 ) + - 41
----
91
-41

query I rowsort
SELECT DISTINCT 5 + - + 22 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT ALL 64 + + 64 DIV - 70 + - ( 92 )
----
-28

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL 64 + + 64 / - 70 + - ( 92 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT ALL 40 - 88 + + CASE - 30 WHEN - - CAST( + 84 AS SIGNED ) + - 6 / + - COUNT( * ) + + 87 THEN + 2 ELSE - CASE - ( + 15 ) WHEN 72 THEN + + 91 * + 9 - 59 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL 40 - 88 + + CASE - 30 WHEN - - CAST ( + 84 AS INTEGER ) + - 6 / + - COUNT ( * ) + + 87 THEN + 2 ELSE - CASE - ( + 15 ) WHEN 72 THEN + + 91 * + 9 - 59 ELSE NULL END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT + 46 DIV + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT + 46 / + 70 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( + 97, - ( 77 ) ) AS col1
----
97

query I rowsort
SELECT DISTINCT 70 - + - 93
----
163

query I rowsort
SELECT ALL + 56 * 9
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-2060
SELECT + NULLIF ( - 8, - - 88 * - 90 / + 77 * + 52 ) + + ( 61 ) * + 80 + NULLIF ( + COUNT( ALL - 4 ), - + 57 ), + 2 + + 55 - COUNT( ALL NULLIF ( 52, 0 ) ) * 9 col2
----
4873
48

skipif mysql # not compatible
query II rowsort label-2060
SELECT + NULLIF ( - 8, - - 88 * - 90 / + 77 * + 52 ) + + ( 61 ) * + 80 + NULLIF ( + COUNT ( ALL - 4 ), - + 57 ), + 2 + + 55 - COUNT ( ALL NULLIF ( 52, 0 ) ) * 9 col2
----
4873
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ALL 4 - - COUNT( * ) col0
----
5

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL 4 - - COUNT ( * ) col0
----
5

query II rowsort
SELECT DISTINCT + 55, - 3 AS col0
----
55
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT - 70 * + - 95 * - COUNT( * ) + - - 98
----
-6552

skipif mysql # not compatible
query I rowsort label-2063
SELECT - 70 * + - 95 * - COUNT ( * ) + - - 98
----
-6552

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT + 74 DIV - 31 - - 41 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 74 / - 31 - - 41 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT + COALESCE ( + - CAST( NULL AS SIGNED ), + + 75 ) * - 66 * 5 + 20
----
-24730

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + COALESCE ( + - CAST ( NULL AS INTEGER ), + + 75 ) * - 66 * 5 + 20
----
-24730

query I rowsort
SELECT + 28 + - - 7 AS col2
----
35

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

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

query II rowsort
SELECT ALL + 15 AS col2, - 30 * - 31
----
15
930

query I rowsort
SELECT - - 1 * - + CASE - - 76 WHEN + 97 * + 19 + - + 78 THEN + - 83 + + + 62 ELSE NULL END * - + 24 AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2070
SELECT + COUNT ( * ), 17 col2
----
1
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2071
SELECT ALL - 15 * - CAST( - CAST( - COUNT( * ) AS DECIMAL ) AS SIGNED ) + - 2 + CASE - - 40 WHEN CASE + + CAST( NULL AS SIGNED ) WHEN 81 * 87 THEN + - COUNT( DISTINCT - NULLIF ( - 86, + + 42 ) ) END THEN - + 39 * + - MAX( DISTINCT + ( + - 84 ) ) - 87 + - - ( 5 ) + + 69 ELSE 77 END
----
90

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL - 15 * - CAST ( - CAST ( - COUNT ( * ) AS REAL ) AS INTEGER ) + - 2 + CASE - - 40 WHEN CASE + + CAST ( NULL AS INTEGER ) WHEN 81 * 87 THEN + - COUNT ( DISTINCT - NULLIF ( - 86, + + 42 ) ) END THEN - + 39 * + - MAX ( DISTINCT + ( + - 84 ) ) - 87 + - - ( 5 ) + + 69 ELSE 77 END
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL 30 * + + 45 * - 95 + + ( + - MIN( + 82 ) ) AS col2
----
-128332

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL 30 * + + 45 * - 95 + + ( + - MIN ( + 82 ) ) AS col2
----
-128332

onlyif mysql # aggregate syntax: 
query II rowsort label-2073
SELECT - - 74 * - 89 * - CASE - 98 WHEN + 26 * + - 93 THEN - + 42 WHEN - - COUNT( - - 69 ) THEN + 10 ELSE 83 END AS col1, COUNT( * ) AS col2
----
546638
1

skipif mysql # not compatible
query II rowsort label-2073
SELECT - - 74 * - 89 * - CASE - 98 WHEN + 26 * + - 93 THEN - + 42 WHEN - - COUNT ( - - 69 ) THEN + 10 ELSE 83 END AS col1, COUNT ( * ) AS col2
----
546638
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT + + 94 + + COUNT( + + 32 ) + 44 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-2074
SELECT + + 94 + + COUNT ( + + 32 ) + 44 AS col2
----
139

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

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - - COUNT ( * ) * - NULLIF ( + 69, - 36 )
----
-69

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

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

query I rowsort
SELECT 34 * - 88 AS col1
----
-2992

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2078
SELECT ALL 0 + + 3 - + - 12 * + 24 AS col1, - COUNT( - 90 ) DIV + COUNT( * )
----
291
-1

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL 0 + + 3 - + - 12 * + 24 AS col1, - COUNT ( - 90 ) / + COUNT ( * )
----
291
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT CASE - + 48 WHEN 71 / + + COUNT( * ) + 53 THEN NULL WHEN COUNT( - 85 ) THEN 34 WHEN - - 0 THEN 24 END * - ( 38 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT CASE - + 48 WHEN 71 / + + COUNT ( * ) + 53 THEN NULL WHEN COUNT ( - 85 ) THEN 34 WHEN - - 0 THEN 24 END * - ( 38 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT 33 + + 80 DIV 26 col1
----
36

skipif mysql # not compatible
query I rowsort label-2080
SELECT 33 + + 80 / 26 col1
----
36

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

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

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

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

query II rowsort
SELECT ALL 65 - - CASE 98 WHEN - 96 THEN 71 ELSE NULL END AS col2, 43 AS col1
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT 59 - COUNT( * ) - + 53
----
5

skipif mysql # not compatible
query I rowsort label-2084
SELECT 59 - COUNT ( * ) - + 53
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT ALL 17 * COALESCE ( COUNT( ALL CAST( NULL AS SIGNED ) ), - COUNT( * ) ) * - ( 9 )
----
0

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL 17 * COALESCE ( COUNT ( ALL CAST ( NULL AS INTEGER ) ), - COUNT ( * ) ) * - ( 9 )
----
0

query I rowsort
SELECT ALL - 60 - + ( - + 34 )
----
-26

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

skipif mysql # not compatible
query I rowsort label-2087
SELECT COUNT ( 85 ) + - 91 AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2088
SELECT DISTINCT 64 * CASE + MAX( ALL 63 ) WHEN CAST( NULL AS SIGNED ) * - 77 + - 10 THEN NULL WHEN - 41 + + - 70 * - AVG ( DISTINCT + + 26 ) THEN NULL WHEN - - 86 THEN NULL WHEN - 90 * - 74 THEN NULL WHEN - 95 THEN + 56 * 43 END AS col1, 32 AS col1
----
NULL
32

skipif mysql # not compatible
query II rowsort label-2088
SELECT DISTINCT 64 * CASE + MAX ( ALL 63 ) WHEN CAST ( NULL AS INTEGER ) * - 77 + - 10 THEN NULL WHEN - 41 + + - 70 * - AVG ( DISTINCT + + 26 ) THEN NULL WHEN - - 86 THEN NULL WHEN - 90 * - 74 THEN NULL WHEN - 95 THEN + 56 * 43 END AS col1, 32 AS col1
----
NULL
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT 94 DIV + - 62
----
-1

skipif mysql # not compatible
query I rowsort label-2089
SELECT 94 / + - 62
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2090
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) - + + 86 * - 68 + - + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) - + + 86 * - 68 + - + 33 AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT + COUNT ( * ) / + - 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL - SUM( - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - SUM ( - 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT + + NULLIF ( COUNT( * ), 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2094
SELECT + + NULLIF ( COUNT ( * ), 29 ) AS col1
----
1

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

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

query I rowsort
SELECT - + 47 * - - 78 + + 30
----
-3636

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT ALL + + 42 * 46 + MIN( DISTINCT CASE WHEN 40 IS NOT NULL THEN - 51 DIV - 43 ELSE NULL END )
----
1933

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + + 42 * 46 + MIN ( DISTINCT CASE WHEN 40 IS NOT NULL THEN - 51 / - 43 ELSE NULL END )
----
1933

query II rowsort
SELECT DISTINCT + 62 * + 54, - 67 col0
----
3348
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT SUM( - CASE + 51 WHEN - - 90 * 26 THEN NULL ELSE 38 END )
----
-38

skipif mysql # not compatible
query I rowsort label-2100
SELECT SUM ( - CASE + 51 WHEN - - 90 * 26 THEN NULL ELSE 38 END )
----
-38

query I rowsort
SELECT - 37 + - 42
----
-79

query I rowsort
SELECT 19 * 28 AS col0
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL - NULLIF ( + 88, - - COUNT( * ) / + 94 * - - 65 ) + 21 col0
----
-67

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - NULLIF ( + 88, - - COUNT ( * ) / + 94 * - - 65 ) + 21 col0
----
-67

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT - + 67 * + CAST( NULL AS SIGNED ) + + ( - 81 ) + + 49 * AVG ( + - 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT - + 67 * + CAST ( NULL AS INTEGER ) + + ( - 81 ) + + 49 * AVG ( + - 59 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2106
SELECT CAST( - 8 AS SIGNED ) * 27 + + + CASE + 51 WHEN + + 78 * - COALESCE ( + 81, - - COUNT( * ) + AVG ( DISTINCT - 63 ) * + CAST( NULL AS SIGNED ) * 37 + ( - - 71 ) * COUNT( * ) + 2 - - 43 ) + + 39 - - COALESCE ( - ( + 7 ), - MIN( ALL - + 71 ), 57 ) + + ( + + 93 ) * MAX( - 90 ) * - 85 THEN - CAST( + 40 AS SIGNED ) WHEN + 16 + COUNT( * ) THEN + 75 WHEN - 82 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT CAST ( - 8 AS INTEGER ) * 27 + + + CASE + 51 WHEN + + 78 * - COALESCE ( + 81, - - COUNT ( * ) + AVG ( DISTINCT - 63 ) * + CAST ( NULL AS INTEGER ) * 37 + ( - - 71 ) * COUNT ( * ) + 2 - - 43 ) + + 39 - - COALESCE ( - ( + 7 ), - MIN ( ALL - + 71 ), 57 ) + + ( + + 93 ) * MAX ( - 90 ) * - 85 THEN - CAST ( + 40 AS INTEGER ) WHEN + 16 + COUNT ( * ) THEN + 75 WHEN - 82 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 57 + + 70
----
127

query I rowsort
SELECT ALL + 91 + - 95 AS col0
----
-4

query I rowsort
SELECT ALL - 36 * - 33 AS col2
----
1188

query I rowsort
SELECT 53 + - 64 AS col0
----
-11

query I rowsort
SELECT 59 - ( - - 6 ) AS col2
----
53

query I rowsort
SELECT ALL + 91 - + 66
----
25

query I rowsort
SELECT ALL - 28 - - + 79 AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT 49 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-2114
SELECT 49 / + 61
----
0

query I rowsort
SELECT DISTINCT - 19 * - 44 AS col0
----
836

query I rowsort
SELECT 59 + - 70
----
-11

query I rowsort
SELECT DISTINCT + 55 * + 30
----
1650

query I rowsort
SELECT 68 + - 55 AS col1
----
13

query I rowsort
SELECT ALL - 28 - + 52 + + - 13
----
-93

query I rowsort
SELECT 78 + + 40
----
118

query I rowsort
SELECT ALL 11 - - 18
----
29

query I rowsort
SELECT 84 * + 30 * - 7 * + 51
----
-899640

onlyif mysql # DIV for integer division: 
query II rowsort label-2123
SELECT DISTINCT - 56 * 19 DIV + + 35 AS col1, 27 * - 75 + - - 37 + + 68 AS col2
----
-30
-1920

skipif mysql # not compatible
query II rowsort label-2123
SELECT DISTINCT - 56 * 19 / + + 35 AS col1, 27 * - 75 + - - 37 + + 68 AS col2
----
-30
-1920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT DISTINCT MAX( - - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT MAX ( - - 68 )
----
68

query I rowsort
SELECT 74 * + 61 * - 14 * 15
----
-947940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT NULLIF ( + - 13, + - COUNT( * ) / - 66 ) + + + CAST( - - 0 AS SIGNED ) * - 12 * 38 + - 37 - + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-2127
SELECT NULLIF ( + - 13, + - COUNT ( * ) / - 66 ) + + + CAST ( - - 0 AS INTEGER ) * - 12 * 38 + - 37 - + + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT DISTINCT + 7 DIV MAX( ALL 1 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT + 7 / MAX ( ALL 1 ) AS col2
----
7

query I rowsort
SELECT ALL - 74 * + + 92 AS col2
----
-6808

query I rowsort
SELECT ALL 63 + - - 3
----
66

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

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

query I rowsort
SELECT 34 * - 65
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT DISTINCT + + 28 * - 15 * - 68 * - COUNT( * ) * 14 + + 55 + - 26 * + 50 AS col1
----
-401085

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + + 28 * - 15 * - 68 * - COUNT ( * ) * 14 + + 55 + - 26 * + 50 AS col1
----
-401085

query I rowsort
SELECT ALL + 28 * 55 + + 28
----
1568

query I rowsort
SELECT 57 * + - 22 AS col0
----
-1254

onlyif mysql # aggregate syntax: 
query II rowsort label-2136
SELECT ALL - - 52 AS col2, - 35 + 86 - COUNT( * ) + - - 64
----
52
114

skipif mysql # not compatible
query II rowsort label-2136
SELECT ALL - - 52 AS col2, - 35 + 86 - COUNT ( * ) + - - 64
----
52
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2137
SELECT ALL + + ( 54 ) * - - ( - 82 ) * + CAST( 11 AS SIGNED ) + ( + 30 ) + - 52 + 81 - ( - 6 ) * - 10 + - 7 + 72 + - COUNT( * ) * + 43 * - 23 + + + 40
----
-47615

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL + + ( 54 ) * - - ( - 82 ) * + CAST ( 11 AS INTEGER ) + ( + 30 ) + - 52 + 81 - ( - 6 ) * - 10 + - 7 + 72 + - COUNT ( * ) * + 43 * - 23 + + + 40
----
-47615

query I rowsort
SELECT + 49 * - 23 AS col2
----
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT NULLIF ( + - 86, - - ( 66 ) * - 35 + 29 - - 30 * - - ( + - 5 ) + 2 ) * - 93 + 50 * + 20 - - COUNT( DISTINCT + 42 )
----
8999

skipif mysql # not compatible
query I rowsort label-2139
SELECT NULLIF ( + - 86, - - ( 66 ) * - 35 + 29 - - 30 * - - ( + - 5 ) + 2 ) * - 93 + 50 * + 20 - - COUNT ( DISTINCT + 42 )
----
8999

query I rowsort
SELECT DISTINCT + - 36 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT 97 * - 51 - + 1 + MAX( ALL + + 93 )
----
-4855

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT 97 * - 51 - + 1 + MAX ( ALL + + 93 )
----
-4855

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT - 50 * - - 81 * + MIN( 3 ) * - - 8 * + 73 AS col0
----
-7095600

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT - 50 * - - 81 * + MIN ( 3 ) * - - 8 * + 73 AS col0
----
-7095600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2143
SELECT COUNT( * ), 7 DIV + + 21 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2143
SELECT COUNT ( * ), 7 / + + 21 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2144
SELECT + COUNT( * ), + 28 + - ( + 97 ) * - 41 AS col2
----
1
4005

skipif mysql # not compatible
query II rowsort label-2144
SELECT + COUNT ( * ), + 28 + - ( + 97 ) * - 41 AS col2
----
1
4005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2145
SELECT + CASE - + COUNT( * ) WHEN 60 * + CAST( NULL AS SIGNED ) + - COUNT( * ) + - + 10 * + - 39 * - 67 * - 97 + - + 2 THEN NULL ELSE + + 49 END AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2145
SELECT + CASE - + COUNT ( * ) WHEN 60 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - + 10 * + - 39 * - 67 * - 97 + - + 2 THEN NULL ELSE + + 49 END AS col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2146
SELECT + 33 AS col1, SUM( DISTINCT - 33 ) + - - 17
----
33
-16

skipif mysql # not compatible
query II rowsort label-2146
SELECT + 33 AS col1, SUM ( DISTINCT - 33 ) + - - 17
----
33
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT MAX( ALL - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-2147
SELECT MAX ( ALL - 82 )
----
-82

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT - COUNT( * ) DIV - NULLIF ( - 78, - COUNT( * ) DIV + 52 + 25 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2150
SELECT - COUNT ( * ) / - NULLIF ( - 78, - COUNT ( * ) / + 52 + 25 ) AS col1
----
0

query II rowsort
SELECT - 98 AS col2, - 84 + - 18 * + - 97
----
-98
1662

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL MAX( DISTINCT - 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL MAX ( DISTINCT - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT DISTINCT MAX( 12 ) col2
----
12

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT MAX ( 12 ) col2
----
12

query I rowsort
SELECT - CASE + - 90 WHEN 86 * + + 32 + + - 35 THEN + 70 * + + 90 END / + 53 * 31 * - - 95 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + SUM( - NULLIF ( - 85, 81 ) ) + - COALESCE ( + 50, 27 * + 98 + + - 39 * - + 93 )
----
35

skipif mysql # not compatible
query I rowsort label-2155
SELECT + SUM ( - NULLIF ( - 85, 81 ) ) + - COALESCE ( + 50, 27 * + 98 + + - 39 * - + 93 )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2156
SELECT ALL + MIN( DISTINCT - - 59 ) DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL + MIN ( DISTINCT - - 59 ) / 79
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + 70 + - 50 * + MAX( 29 ) * - + 50 + - 25 * + + 19 AS col0
----
72095

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + 70 + - 50 * + MAX ( 29 ) * - + 50 + - 25 * + + 19 AS col0
----
72095

onlyif mysql # aggregate syntax: 
query II rowsort label-2159
SELECT - ( - COUNT( * ) ) - + - 29 + 49, 42 AS col0
----
79
42

skipif mysql # not compatible
query II rowsort label-2159
SELECT - ( - COUNT ( * ) ) - + - 29 + 49, 42 AS col0
----
79
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL + + 46 * - ( - - MAX( ALL - 72 ) )
----
3312

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL + + 46 * - ( - - MAX ( ALL - 72 ) )
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL - 44 + MAX( - 99 )
----
-143

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL - 44 + MAX ( - 99 )
----
-143

query I rowsort
SELECT - - 39 + + 94
----
133

query I rowsort
SELECT - NULLIF ( - + 8, + + 5 ) * 17
----
136

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

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

query I rowsort
SELECT - - 89 + - 69 + + - 3 AS col2
----
17

query I rowsort
SELECT DISTINCT + 26 + - - 89
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT - CAST( 21 AS SIGNED ) + 72 * + 66 * + 8 AS col2
----
37995

skipif mysql # not compatible
query I rowsort label-2167
SELECT - CAST ( 21 AS INTEGER ) + 72 * + 66 * + 8 AS col2
----
37995

onlyif mysql # DIV for integer division: 
query II rowsort label-2168
SELECT + 66 - + - 8 DIV 24 + - 13, - ( - 66 ) AS col0
----
53
66

skipif mysql # not compatible
query II rowsort label-2168
SELECT + 66 - + - 8 / 24 + - 13, - ( - 66 ) AS col0
----
53
66

query II rowsort
SELECT ALL - 69, - 0 + + 90 AS col2
----
-69
90

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2171
SELECT - 73 AS col2, + ( + 55 ) DIV + 20 - + + 16 AS col2
----
-73
-14

skipif mysql # not compatible
query II rowsort label-2171
SELECT - 73 AS col2, + ( + 55 ) / + 20 - + + 16 AS col2
----
-73
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2172
SELECT - CAST( + - NULLIF ( - + 30, - NULLIF ( - 81, - 53 + CAST( - COUNT( * ) AS SIGNED ) ) + - 96 ) AS SIGNED ) AS col2, - COUNT( * ) AS col2
----
-30
-1

skipif mysql # not compatible
query II rowsort label-2172
SELECT - CAST ( + - NULLIF ( - + 30, - NULLIF ( - 81, - 53 + CAST ( - COUNT ( * ) AS INTEGER ) ) + - 96 ) AS INTEGER ) AS col2, - COUNT ( * ) AS col2
----
-30
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT ALL + 1 * - - 11 / ( + COUNT( * ) ) * - - 44 * CAST( NULL AS SIGNED ) + - COUNT( * ) * + 0 + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + 1 * - - 11 / ( + COUNT ( * ) ) * - - 44 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 0 + - 39 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2175
SELECT ALL COALESCE ( + COUNT( + CAST( NULL AS SIGNED ) ), - + 60 * 58 ) DIV - + 70 + + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL COALESCE ( + COUNT ( + CAST ( NULL AS INTEGER ) ), - + 60 * 58 ) / - + 70 + + 11 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2176
SELECT ALL MIN( ALL + - CAST( 48 AS SIGNED ) ) * + ( 31 )
----
-1488

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL MIN ( ALL + - CAST ( 48 AS INTEGER ) ) * + ( 31 )
----
-1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT ALL + 40 * + 45 + CASE 27 WHEN - + NULLIF ( 90, 11 ) * - 84 + 70 * 89 / + CAST( - - 41 AS SIGNED ) * 87 * 98 THEN NULL WHEN - - COUNT( * ) + 35 THEN NULL WHEN NULLIF ( - + 69, + ( + COUNT( * ) ) * SUM( - 93 ) * ( + - COALESCE ( + 27, + 46, + 32 - + 55 ) ) + 43 * 38 - CAST( + 12 AS SIGNED ) + + COUNT( * ) ) THEN NULL ELSE + 57 * - COALESCE ( - + NULLIF ( - 16, 15 / + COUNT( * ) ), 98 ) END
----
888

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL + 40 * + 45 + CASE 27 WHEN - + NULLIF ( 90, 11 ) * - 84 + 70 * 89 / + CAST ( - - 41 AS INTEGER ) * 87 * 98 THEN NULL WHEN - - COUNT ( * ) + 35 THEN NULL WHEN NULLIF ( - + 69, + ( + COUNT ( * ) ) * SUM ( - 93 ) * ( + - COALESCE ( + 27, + 46, + 32 - + 55 ) ) + 43 * 38 - CAST ( + 12 AS INTEGER ) + + COUNT ( * ) ) THEN NULL ELSE + 57 * - COALESCE ( - + NULLIF ( - 16, 15 / + COUNT ( * ) ), 98 ) END
----
888

onlyif mysql # aggregate syntax: 
query II rowsort label-2178
SELECT ALL + + 16 * 42, 80 * + + 24 * + COALESCE ( - 31, 14 * + 8, + MIN( + 76 ) ) * ( + - 64 ) AS col1
----
672
3809280

skipif mysql # not compatible
query II rowsort label-2178
SELECT ALL + + 16 * 42, 80 * + + 24 * + COALESCE ( - 31, 14 * + 8, + MIN ( + 76 ) ) * ( + - 64 ) AS col1
----
672
3809280

query I rowsort
SELECT + 82 * + 56
----
4592

query I rowsort
SELECT + 42 + - - 24 AS col1
----
66

query I rowsort
SELECT - 54 + - ( - 30 )
----
-24

query II rowsort
SELECT ( + - 64 ), + 33 AS col0
----
-64
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT + ( 82 ) * COUNT( ALL 71 ) + COUNT( ALL - ( - 36 ) ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2183
SELECT + ( 82 ) * COUNT ( ALL 71 ) + COUNT ( ALL - ( - 36 ) ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT + COUNT( * ) * + NULLIF ( + 53, + + 86 + - - 35 + + 18 * + 33 + + - 47 ) + + 99 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-2184
SELECT + COUNT ( * ) * + NULLIF ( + 53, + + 86 + - - 35 + + 18 * + 33 + + - 47 ) + + 99 AS col1
----
152

query I rowsort
SELECT 1 * - 36 + + + 70 * + - 41 AS col0
----
-2906

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT ALL SUM( - + 54 ) * - 61
----
3294

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL SUM ( - + 54 ) * - 61
----
3294

query I rowsort
SELECT + ( + 99 ) + - 37 * - + 18 AS col2
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL - COUNT( * ) * 28 col1
----
-28

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - COUNT ( * ) * 28 col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT + SUM( ALL + 89 ) + 15 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-2189
SELECT + SUM ( ALL + 89 ) + 15 AS col2
----
104

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2191
SELECT - 64 * - - 85 + + CASE - + 55 WHEN 6 THEN - COALESCE ( - CAST( NULL AS SIGNED ), - 62, + COUNT( - 47 ) * COUNT( * ) + + CAST( NULL AS SIGNED ) + 16 ) / 91 * + + ( + NULLIF ( - + 94, - + 61 ) ) - ( 89 ) + - - COUNT( * ) * - 85 ELSE + CAST( NULL AS SIGNED ) * + 1 - + - ( + 21 ) + 81 END / - + 12 * - 45 / 84 * + - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT - 64 * - - 85 + + CASE - + 55 WHEN 6 THEN - COALESCE ( - CAST ( NULL AS INTEGER ), - 62, + COUNT ( - 47 ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 16 ) / 91 * + + ( + NULLIF ( - + 94, - + 61 ) ) - ( 89 ) + - - COUNT ( * ) * - 85 ELSE + CAST ( NULL AS INTEGER ) * + 1 - + - ( + 21 ) + 81 END / - + 12 * - 45 / 84 * + - 11 AS col0
----
NULL

query I rowsort
SELECT ALL 34 * 7 * - + 63
----
-14994

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

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

query II rowsort
SELECT - 46 + 67 AS col2, - 90 AS col1
----
21
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT - 22 + 33 * 26 + - - 61 + - COUNT( DISTINCT 74 )
----
896

skipif mysql # not compatible
query I rowsort label-2196
SELECT - 22 + 33 * 26 + - - 61 + - COUNT ( DISTINCT 74 )
----
896

query I rowsort
SELECT DISTINCT - 46 + - 83 - + - 0 * 49 AS col1
----
-129

query I rowsort
SELECT ALL 84 + - 43 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT DISTINCT + + 60 DIV 84 + - 57 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + + 60 / 84 + - 57 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-2200
SELECT DISTINCT - + COUNT( - 7 ) + - + 4 AS col0, ( + - 41 ) - + 32
----
-5
-73

skipif mysql # not compatible
query II rowsort label-2200
SELECT DISTINCT - + COUNT ( - 7 ) + - + 4 AS col0, ( + - 41 ) - + 32
----
-5
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT ALL + - 35 + - 61 AS col2, + COALESCE ( + + 44, - ( - 56 ) * + + COUNT( * ) ) + - 8 AS col1
----
-96
36

skipif mysql # not compatible
query II rowsort label-2201
SELECT ALL + - 35 + - 61 AS col2, + COALESCE ( + + 44, - ( - 56 ) * + + COUNT ( * ) ) + - 8 AS col1
----
-96
36

query I rowsort
SELECT - - 2 * 95 * 17
----
3230

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2203
SELECT MIN( DISTINCT ( - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT MIN ( DISTINCT ( - CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT - + NULLIF ( 90, + - ( - 38 ) ) + + 26 AS col1
----
-64

query I rowsort
SELECT DISTINCT - 5 + - + 89
----
-94

query I rowsort
SELECT 28 * 33 AS col0
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL - - MAX( - 44 ) - - + 84 + + - 73
----
-33

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - - MAX ( - 44 ) - - + 84 + + - 73
----
-33

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2210
SELECT - COUNT( * ) * - - 22 - - 94 * + 42 * - SUM( DISTINCT - - ( - 7 ) ) - - 36 * CAST( + CAST( ( - 57 ) AS SIGNED ) AS SIGNED )
----
25562

skipif mysql # not compatible
query I rowsort label-2210
SELECT - COUNT ( * ) * - - 22 - - 94 * + 42 * - SUM ( DISTINCT - - ( - 7 ) ) - - 36 * CAST ( + CAST ( ( - 57 ) AS INTEGER ) AS INTEGER )
----
25562

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT + + ( + NULLIF ( - 92, + + COUNT( * ) + + 36 - 86 * + 83 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-2211
SELECT + + ( + NULLIF ( - 92, + + COUNT ( * ) + + 36 - 86 * + 83 ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT MAX( - - 66 ) * + 81 AS col0
----
5346

skipif mysql # not compatible
query I rowsort label-2212
SELECT MAX ( - - 66 ) * + 81 AS col0
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT + COUNT( * ) * + + 62 * - 30 + - NULLIF ( + 64, + ( - 20 ) * + 37 )
----
-1924

skipif mysql # not compatible
query I rowsort label-2213
SELECT + COUNT ( * ) * + + 62 * - 30 + - NULLIF ( + 64, + ( - 20 ) * + 37 )
----
-1924

query II rowsort
SELECT + 20 AS col0, 39 + - 80 AS col2
----
20
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2215
SELECT DISTINCT - 30 AS col1, CAST( - 4 AS SIGNED ) AS col0
----
-30
-4

skipif mysql # not compatible
query II rowsort label-2215
SELECT DISTINCT - 30 AS col1, CAST ( - 4 AS INTEGER ) AS col0
----
-30
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT DISTINCT COUNT( ALL - 24 ) * - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT COUNT ( ALL - 24 ) * - 54 AS col1
----
-54

query I rowsort
SELECT ALL + 15 * + 36 AS col1
----
540

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2218
SELECT CASE + - MIN( + 5 ) WHEN - 64 + 38 * + 21 THEN - + 97 ELSE NULL END / + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT CASE + - MIN ( + 5 ) WHEN - 64 + 38 * + 21 THEN - + 97 ELSE NULL END / + + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2219
SELECT COUNT( * ) * 10 + ( + CASE - ( 14 ) WHEN + - 62 * - CASE - CAST( NULL AS SIGNED ) WHEN - - 15 THEN NULL ELSE + - 85 * 52 / + 51 * - 13 END THEN - + 41 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT COUNT ( * ) * 10 + ( + CASE - ( 14 ) WHEN + - 62 * - CASE - CAST ( NULL AS INTEGER ) WHEN - - 15 THEN NULL ELSE + - 85 * 52 / + 51 * - 13 END THEN - + 41 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT 63, ( + 31 ) * COUNT( ALL + - 28 ) * + 98 AS col1
----
63
3038

skipif mysql # not compatible
query II rowsort label-2220
SELECT 63, ( + 31 ) * COUNT ( ALL + - 28 ) * + 98 AS col1
----
63
3038

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

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

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

skipif mysql # not compatible
query I rowsort label-2222
SELECT CAST ( NULL AS INTEGER ) * - + 9 * 7 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL CASE - 60 WHEN - 95 THEN NULL WHEN + + COALESCE ( 45, - - 72 * 41 + - - 66 - COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ), - - 66 + 47 + - 23 ) ) * 87 THEN NULL WHEN + 89 * - 33 THEN 68 * 63 ELSE CASE - 15 WHEN 87 * + + 12 THEN - CAST( NULL AS SIGNED ) END * - - 17 * + + NULLIF ( - 3, + 2 ) - 59 + + 27 * + 49 * + - ( 64 ) END + - - COALESCE ( 23, 20 * - COUNT( * ) + - 0 + + COUNT( * ) ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL CASE - 60 WHEN - 95 THEN NULL WHEN + + COALESCE ( 45, - - 72 * 41 + - - 66 - COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ), - - 66 + 47 + - 23 ) ) * 87 THEN NULL WHEN + 89 * - 33 THEN 68 * 63 ELSE CASE - 15 WHEN 87 * + + 12 THEN - CAST ( NULL AS INTEGER ) END * - - 17 * + + NULLIF ( - 3, + 2 ) - 59 + + 27 * + 49 * + - ( 64 ) END + - - COALESCE ( 23, 20 * - COUNT ( * ) + - 0 + + COUNT ( * ) ) * 64
----
NULL

query II rowsort
SELECT 49 AS col2, 36
----
49
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT 87 + + CASE - 37 WHEN + NULLIF ( + 36, - - MAX( - - 67 ) + - COUNT( * ) ) DIV - 99 THEN - COUNT( * ) WHEN + + 8 THEN NULL ELSE - - NULLIF ( + 42, 57 * - 50 ) END * 90 DIV - 25
----
-64

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT 87 + + CASE - 37 WHEN + NULLIF ( + 36, - - MAX ( - - 67 ) + - COUNT ( * ) ) / - 99 THEN - COUNT ( * ) WHEN + + 8 THEN NULL ELSE - - NULLIF ( + 42, 57 * - 50 ) END * 90 / - 25
----
-64

query II rowsort
SELECT + 5 AS col2, + 57
----
5
57

query I rowsort
SELECT DISTINCT + 25 + 41 AS col1
----
66

query II rowsort
SELECT ALL 62 col0, 58 * 90
----
62
5220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2229
SELECT COALESCE ( - 95, - + CAST( 88 AS SIGNED ) + 56, 52, - 33 ) * - 74 * - COUNT( * ) * SUM( - 52 ) + + COALESCE ( - ( + - ( - 51 ) ), + 71, + - 82 ) + + NULLIF ( - CAST( NULL AS SIGNED ), - 41 * + 31 + CASE 39 WHEN + + 88 THEN NULL WHEN + - 26 / + 25 * 59 THEN + COUNT( * ) ELSE - MAX( ALL - 24 ) / + 79 + - ( + - 51 ) * + 98 END + 59 - - 67 ) * + 53 * + 82 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT COALESCE ( - 95, - + CAST ( 88 AS INTEGER ) + 56, 52, - 33 ) * - 74 * - COUNT ( * ) * SUM ( - 52 ) + + COALESCE ( - ( + - ( - 51 ) ), + 71, + - 82 ) + + NULLIF ( - CAST ( NULL AS INTEGER ), - 41 * + 31 + CASE 39 WHEN + + 88 THEN NULL WHEN + - 26 / + 25 * 59 THEN + COUNT ( * ) ELSE - MAX ( ALL - 24 ) / + 79 + - ( + - 51 ) * + 98 END + 59 - - 67 ) * + 53 * + 82 + 64
----
NULL

query I rowsort
SELECT NULLIF ( - + ( + + 13 ), - 16 + - 49 ) AS col1
----
-13

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2232
SELECT ALL + CAST( 97 AS SIGNED ) * 68, - 18 + - + 83 + + 37 + - 43 DIV + CAST( + 95 AS SIGNED ) AS col0
----
6596
-64

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL + CAST ( 97 AS INTEGER ) * 68, - 18 + - + 83 + + 37 + - 43 / + CAST ( + 95 AS INTEGER ) AS col0
----
6596
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2233
SELECT 15, + CAST( 54 AS SIGNED ) / CASE CAST( NULL AS DECIMAL ) WHEN COALESCE ( + - 59, + CAST( NULL AS SIGNED ), ( - - 43 ) - - + 93 + - 98 ) * - MAX( DISTINCT 80 ) + 31 + + 46 THEN NULL WHEN - 49 * COUNT( * ) / - CAST( - ( + NULLIF ( - 44, - COUNT( ALL - 63 ) ) ) AS SIGNED ) THEN NULL WHEN - - 42 + - - COALESCE ( - COUNT( * ), - 9, + + 68 + 20 ) THEN - 38 + - + AVG ( + - 8 ) ELSE NULL END + - - ( + 52 ) AS col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-2233
SELECT 15, + CAST ( 54 AS INTEGER ) / CASE CAST ( NULL AS REAL ) WHEN COALESCE ( + - 59, + CAST ( NULL AS INTEGER ), ( - - 43 ) - - + 93 + - 98 ) * - MAX ( DISTINCT 80 ) + 31 + + 46 THEN NULL WHEN - 49 * COUNT ( * ) / - CAST ( - ( + NULLIF ( - 44, - COUNT ( ALL - 63 ) ) ) AS INTEGER ) THEN NULL WHEN - - 42 + - - COALESCE ( - COUNT ( * ), - 9, + + 68 + 20 ) THEN - 38 + - + AVG ( + - 8 ) ELSE NULL END + - - ( + 52 ) AS col2
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL COUNT( * ) - - 81
----
82

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL COUNT ( * ) - - 81
----
82

query I rowsort
SELECT 42 + + 54
----
96

query II rowsort
SELECT ALL 57, - 18 col1
----
57
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT DISTINCT + 74 * + + 6 + + 43 + - + 12 * - ( CAST( + 95 AS SIGNED ) )
----
1627

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + 74 * + + 6 + + 43 + - + 12 * - ( CAST ( + 95 AS INTEGER ) )
----
1627

query I rowsort
SELECT - 28 + - 47 + - + 83
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT + + 90 * + SUM( ALL + - 37 ) * + + 64 AS col1
----
-213120

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT + + 90 * + SUM ( ALL + - 37 ) * + + 64 AS col1
----
-213120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + 95 + 30 + 58 * MIN( ALL + 81 ) * - - 5 - + 55
----
23560

skipif mysql # not compatible
query I rowsort label-2241
SELECT + 95 + 30 + 58 * MIN ( ALL + 81 ) * - - 5 - + 55
----
23560

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT 88 * + + MIN( ALL 41 )
----
3608

skipif mysql # not compatible
query I rowsort label-2242
SELECT 88 * + + MIN ( ALL 41 )
----
3608

query I rowsort
SELECT DISTINCT - 58 * + + 78 + 98 - + 14
----
-4440

query II rowsort
SELECT - 54, 31 AS col1
----
-54
31

query I rowsort
SELECT 62 + - 23 + + COALESCE ( - + 48, - - 38 ) AS col0
----
-9

query I rowsort
SELECT 68 * 14 AS col2
----
952

query II rowsort
SELECT DISTINCT 30 * - 13, 89 AS col1
----
-390
89

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

query I rowsort
SELECT 78 * - 55
----
-4290

query I rowsort
SELECT DISTINCT + 28 * + 22
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL + 49 * SUM( 89 ) + - 67 - - - 35 col1
----
4259

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + 49 * SUM ( 89 ) + - 67 - - - 35 col1
----
4259

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT 68 + - - 83 * - CASE + 28 WHEN - CASE - 39 WHEN + 63 / + 81 THEN - + MAX( + 22 ) * + 49 + 65 + - 64 WHEN 85 THEN NULL END THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT 68 + - - 83 * - CASE + 28 WHEN - CASE - 39 WHEN + 63 / + 81 THEN - + MAX ( + 22 ) * + 49 + 65 + - 64 WHEN 85 THEN NULL END THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT COUNT( * ) * - 62 * NULLIF ( + 43, + MAX( + 90 ) * 84 ) * 24
----
-63984

skipif mysql # not compatible
query I rowsort label-2255
SELECT COUNT ( * ) * - 62 * NULLIF ( + 43, + MAX ( + 90 ) * 84 ) * 24
----
-63984

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2257
SELECT ALL + 39 + 60 DIV - - NULLIF ( + - COUNT( * ), CAST( NULL AS SIGNED ) + - 84 - - 70 )
----
-21

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + 39 + 60 / - - NULLIF ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) + - 84 - - 70 )
----
-21

query I rowsort
SELECT 12 + - - 46
----
58

query I rowsort
SELECT 19 * - 75
----
-1425

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2261
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) AS col1, + 13 * + + 84
----
NULL
1092

skipif mysql # not compatible
query II rowsort label-2261
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1, + 13 * + + 84
----
NULL
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL - SUM( - 61 ) * + + 88
----
5368

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - SUM ( - 61 ) * + + 88
----
5368

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT DISTINCT - + MAX( 55 ) AS col1, + 44
----
-55
44

skipif mysql # not compatible
query II rowsort label-2263
SELECT DISTINCT - + MAX ( 55 ) AS col1, + 44
----
-55
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT - 59 * - - 1 * + CAST( + 18 AS SIGNED ) + - NULLIF ( - ( + - COALESCE ( - 52, + 60 ) ), 26 + - + 78 + 13 )
----
-1010

skipif mysql # not compatible
query I rowsort label-2264
SELECT - 59 * - - 1 * + CAST ( + 18 AS INTEGER ) + - NULLIF ( - ( + - COALESCE ( - 52, + 60 ) ), 26 + - + 78 + 13 )
----
-1010

query II rowsort
SELECT + 46 + + 14, 91 AS col0
----
60
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2266
SELECT - + 25 DIV + COUNT( * ) + - + 90 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-2266
SELECT - + 25 / + COUNT ( * ) + - + 90 AS col1
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT ALL - 14 DIV - - 16 + + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL - 14 / - - 16 + + 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT + + 75 * - 55 * - COUNT( * ) + + 34 + - 71 * 80
----
-1521

skipif mysql # not compatible
query I rowsort label-2268
SELECT + + 75 * - 55 * - COUNT ( * ) + + 34 + - 71 * 80
----
-1521

query I rowsort
SELECT ALL - CASE - 32 WHEN - AVG ( DISTINCT 41 ) THEN - + 39 + - 56 + 34 * 48 * 43 END - - + 71 + 77 / 73 * 98
----
NULL

query II rowsort
SELECT - - ( - 47 ) AS col0, + 35 AS col0
----
-47
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - ( - 1 ) * - - MAX( - + ( + 48 ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2271
SELECT - ( - 1 ) * - - MAX ( - + ( + 48 ) ) AS col2
----
-48

query II rowsort
SELECT DISTINCT - 62 * 22 AS col0, 98 + 59 AS col0
----
-1364
157

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

skipif mysql # not compatible
query I rowsort label-2273
SELECT - - MIN ( DISTINCT - - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL 32 * + 37 - - CASE - 40 WHEN COUNT( ALL + - 37 ) THEN - - 0 ELSE + + COUNT( - 49 ) * 97 * + ( + COUNT( - - 20 ) ) + 1 * - - 47 END + - 85 * - + 45 AS col1
----
5153

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL 32 * + 37 - - CASE - 40 WHEN COUNT ( ALL + - 37 ) THEN - - 0 ELSE + + COUNT ( - 49 ) * 97 * + ( + COUNT ( - - 20 ) ) + 1 * - - 47 END + - 85 * - + 45 AS col1
----
5153

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT - SUM( - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-2275
SELECT - SUM ( - 6 )
----
6

query II rowsort
SELECT + - 18 * + - 83 - - 7 * + 89 AS col2, - 9 col2
----
2117
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL COUNT( ALL - + 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL COUNT ( ALL - + 67 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2278
SELECT + + 32 + COUNT( * ) + 73 * 89 AS col2, + CAST( 80 AS SIGNED ) + 57 AS col0
----
6530
137

skipif mysql # not compatible
query II rowsort label-2278
SELECT + + 32 + COUNT ( * ) + 73 * 89 AS col2, + CAST ( 80 AS INTEGER ) + 57 AS col0
----
6530
137

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

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

query I rowsort
SELECT DISTINCT - 69 + + + 21
----
-48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT + 65 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-2282
SELECT + 65 / + 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2283
SELECT DISTINCT CASE 55 WHEN + - 83 THEN - CASE 4 WHEN COUNT( * ) THEN + - 9 WHEN + 34 * + + 5 - + COUNT( * ) THEN 93 * + 38 ELSE NULL END WHEN - 77 * + 33 * - 17 THEN + COUNT( * ) END * + 80 + + 94 + - AVG ( - 37 ) - - ( + 30 ) * + COALESCE ( ( + COUNT( * ) ), ( + CASE 85 WHEN + - 97 + + - COUNT( DISTINCT - 33 ) THEN NULL WHEN - + 59 * - 58 * - 66 * - CASE + + NULLIF ( + - 12, + - 5 * - - 24 * + + 44 ) WHEN + CAST( - 85 AS SIGNED ) THEN CASE + ( COUNT( * ) ) WHEN + 86 THEN NULL ELSE - 41 + 34 END ELSE NULL END * NULLIF ( 68 * 60, + CASE - 5 WHEN ( + 10 ) THEN - 29 * + 40 ELSE NULL END + 26 ) THEN + 27 + 18 END ) ) / 83 + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT CASE 55 WHEN + - 83 THEN - CASE 4 WHEN COUNT ( * ) THEN + - 9 WHEN + 34 * + + 5 - + COUNT ( * ) THEN 93 * + 38 ELSE NULL END WHEN - 77 * + 33 * - 17 THEN + COUNT ( * ) END * + 80 + + 94 + - AVG ( - 37 ) - - ( + 30 ) * + COALESCE ( ( + COUNT ( * ) ), ( + CASE 85 WHEN + - 97 + + - COUNT ( DISTINCT - 33 ) THEN NULL WHEN - + 59 * - 58 * - 66 * - CASE + + NULLIF ( + - 12, + - 5 * - - 24 * + + 44 ) WHEN + CAST ( - 85 AS INTEGER ) THEN CASE + ( COUNT ( * ) ) WHEN + 86 THEN NULL ELSE - 41 + 34 END ELSE NULL END * NULLIF ( 68 * 60, + CASE - 5 WHEN ( + 10 ) THEN - 29 * + 40 ELSE NULL END + 26 ) THEN + 27 + 18 END ) ) / 83 + 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2284
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - MIN( + - 46 ) - - + 49 * ( + + 29 ) + - NULLIF ( 61, CAST( NULL AS SIGNED ) * + - ( + 25 ) ) THEN NULL WHEN + + NULLIF ( - 96, 49 * - + 93 ) + + CAST( ( - 10 ) AS DECIMAL ) THEN + ( + 40 ) + - + COUNT( * ) ELSE 82 END
----
82

skipif mysql # not compatible
query I rowsort label-2284
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - MIN ( + - 46 ) - - + 49 * ( + + 29 ) + - NULLIF ( 61, CAST ( NULL AS INTEGER ) * + - ( + 25 ) ) THEN NULL WHEN + + NULLIF ( - 96, 49 * - + 93 ) + + CAST ( ( - 10 ) AS REAL ) THEN + ( + 40 ) + - + COUNT ( * ) ELSE 82 END
----
82

query I rowsort
SELECT - 52 * - 91 + + 98
----
4830

query I rowsort
SELECT ALL - 45 * - 3 + + 94 AS col1
----
229

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

query I rowsort
SELECT ALL + 79 * - - 96 AS col1
----
7584

query I rowsort
SELECT - 11 * - 83 AS col2
----
913

query I rowsort
SELECT ALL 75 * + 52 AS col0
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT NULLIF ( COUNT( * ), 6 )
----
1

skipif mysql # not compatible
query I rowsort label-2291
SELECT NULLIF ( COUNT ( * ), 6 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT + CAST( - CASE - 80 WHEN - - 93 THEN NULL WHEN 56 THEN + 52 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT + CAST ( - CASE - 80 WHEN - - 93 THEN NULL WHEN 56 THEN + 52 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT COALESCE ( 56, - + 83, - + CAST( 40 AS SIGNED ) + - 44, 61 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2293
SELECT COALESCE ( 56, - + 83, - + CAST ( 40 AS INTEGER ) + - 44, 61 ) AS col0
----
56

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

skipif mysql # not compatible
query I rowsort label-2294
SELECT + MIN ( + 16 )
----
16

query I rowsort
SELECT ALL - + 49 * + - 97
----
4753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2296
SELECT DISTINCT + COUNT( * ) * - - COALESCE ( 97, + ( ( + 56 ) ), + COUNT( * ) * + - 13 * + + 57, + CAST( - + 44 AS SIGNED ) ) * - CASE + NULLIF ( + + 20, 62 / + + 99 + 70 ) WHEN + COUNT( * ) * + COUNT( * ) THEN NULL WHEN - MIN( 57 ) THEN - 90 WHEN COUNT( * ) * + AVG ( 80 ) + + - 90 * CAST( NULL AS SIGNED ) - 71 + 15 + - + 51 THEN - COALESCE ( - ( + ( - - CASE + 70 WHEN COALESCE ( + 91, 6 ) * - 7 + + + NULLIF ( 26, - 41 ) THEN 31 + + 94 WHEN + 85 THEN NULL END ) ), - 52 ) END - NULLIF ( - COUNT( * ) + 98, - 80 + + 72 ) * + MIN( DISTINCT + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + COUNT ( * ) * - - COALESCE ( 97, + ( ( + 56 ) ), + COUNT ( * ) * + - 13 * + + 57, + CAST ( - + 44 AS INTEGER ) ) * - CASE + NULLIF ( + + 20, 62 / + + 99 + 70 ) WHEN + COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN - MIN ( 57 ) THEN - 90 WHEN COUNT ( * ) * + AVG ( 80 ) + + - 90 * CAST ( NULL AS INTEGER ) - 71 + 15 + - + 51 THEN - COALESCE ( - ( + ( - - CASE + 70 WHEN COALESCE ( + 91, 6 ) * - 7 + + + NULLIF ( 26, - 41 ) THEN 31 + + 94 WHEN + 85 THEN NULL END ) ), - 52 ) END - NULLIF ( - COUNT ( * ) + 98, - 80 + + 72 ) * + MIN ( DISTINCT + 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT - 10 * 78 + - COUNT( * ) * + ( ( 63 ) ) AS col1
----
-843

skipif mysql # not compatible
query I rowsort label-2297
SELECT - 10 * 78 + - COUNT ( * ) * + ( ( 63 ) ) AS col1
----
-843

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL - COALESCE ( - - 71, - 85 ) * + + COUNT( * ) * - - 79 + + 49 AS col2
----
-5560

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - COALESCE ( - - 71, - 85 ) * + + COUNT ( * ) * - - 79 + + 49 AS col2
----
-5560

query I rowsort
SELECT 13 * + 38 * 71 - + 91 AS col2
----
34983

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

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

query I rowsort
SELECT DISTINCT + 41 + - 79
----
-38

query I rowsort
SELECT DISTINCT + - 15 + + 80 * 76 * 87
----
528945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2303
SELECT ALL + + CAST( + + 14 AS SIGNED ) + + 33 * + 41 / CAST( NULL AS SIGNED ) AS col1, 22 / + CASE + 29 WHEN COUNT( * ) THEN 89 WHEN + COUNT( * ) THEN NULL ELSE NULL END + + CASE + COUNT( * ) WHEN - 15 THEN NULL ELSE - 93 * - + 46 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2303
SELECT ALL + + CAST ( + + 14 AS INTEGER ) + + 33 * + 41 / CAST ( NULL AS INTEGER ) AS col1, 22 / + CASE + 29 WHEN COUNT ( * ) THEN 89 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + + CASE + COUNT ( * ) WHEN - 15 THEN NULL ELSE - 93 * - + 46 END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2304
SELECT ALL 71 + COUNT( * ) + + + NULLIF ( + MIN( - 53 ), 62 ) * - 10 * - MIN( DISTINCT 92 ) * - ( 73 ) * - - 36 + + 45 + - 90 - + COUNT( * ) - - 13 AS col0, 17
----
128141319
17

skipif mysql # not compatible
query II rowsort label-2304
SELECT ALL 71 + COUNT ( * ) + + + NULLIF ( + MIN ( - 53 ), 62 ) * - 10 * - MIN ( DISTINCT 92 ) * - ( 73 ) * - - 36 + + 45 + - 90 - + COUNT ( * ) - - 13 AS col0, 17
----
128141319
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2305
SELECT - COALESCE ( ( + ( + + 96 ) ), - + NULLIF ( - + 58, - 23 ), + - COUNT( + CAST( NULL AS DECIMAL ) ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-2305
SELECT - COALESCE ( ( + ( + + 96 ) ), - + NULLIF ( - + 58, - 23 ), + - COUNT ( + CAST ( NULL AS REAL ) ) ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - 89 * + ( + SUM( ALL 68 ) )
----
-6052

skipif mysql # not compatible
query I rowsort label-2306
SELECT - 89 * + ( + SUM ( ALL 68 ) )
----
-6052

query I rowsort
SELECT - ( - 39 ) AS col2
----
39

query I rowsort
SELECT - 24 * - 91 * + - 19 AS col1
----
-41496

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT + 6 + - 69 - - COUNT( * ) + - 7 + - + 71
----
-140

skipif mysql # not compatible
query I rowsort label-2309
SELECT + 6 + - 69 - - COUNT ( * ) + - 7 + - + 71
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - CASE + 68 WHEN COUNT( * ) + - + 16 / - 56 + - 67 THEN NULL ELSE - 40 END col0
----
40

skipif mysql # not compatible
query I rowsort label-2310
SELECT - CASE + 68 WHEN COUNT ( * ) + - + 16 / - 56 + - 67 THEN NULL ELSE - 40 END col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT DISTINCT 22 DIV + 48 + + 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT 22 / + 48 + + 17 AS col2
----
17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2313
SELECT DISTINCT 35 * + 32 AS col1, + 52 * 2 DIV + 34 DIV - - NULLIF ( COUNT( * ), - COALESCE ( COUNT( * ), - 55 ) ) col2
----
1120
3

skipif mysql # not compatible
query II rowsort label-2313
SELECT DISTINCT 35 * + 32 AS col1, + 52 * 2 / + 34 / - - NULLIF ( COUNT ( * ), - COALESCE ( COUNT ( * ), - 55 ) ) col2
----
1120
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT + 53 DIV 90 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-2315
SELECT + 53 / 90 + - 45
----
-45

query I rowsort
SELECT 2 + + 75 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL 63 - - COUNT( * ) * - 74 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL 63 - - COUNT ( * ) * - 74 AS col2
----
-11

query II rowsort
SELECT ALL - - 24 col2, CASE - 21 WHEN - 67 THEN 88 END AS col1
----
24
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT DISTINCT + SUM( - 44 ) * + 33 AS col0
----
-1452

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT + SUM ( - 44 ) * + 33 AS col0
----
-1452

onlyif mysql # aggregate syntax: 
query II rowsort label-2322
SELECT + NULLIF ( - 65, - NULLIF ( 16, + 66 * - + 94 / + 30 ) * - + 73 ) * - + 51 + - + 79 * - + 35 AS col1, ( 57 ) * + + SUM( ALL - 49 ) - 45 AS col2
----
6080
-2838

skipif mysql # not compatible
query II rowsort label-2322
SELECT + NULLIF ( - 65, - NULLIF ( 16, + 66 * - + 94 / + 30 ) * - + 73 ) * - + 51 + - + 79 * - + 35 AS col1, ( 57 ) * + + SUM ( ALL - 49 ) - 45 AS col2
----
6080
-2838

query I rowsort
SELECT - 8 * - + 50 AS col1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT MAX( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-2324
SELECT MAX ( - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT CASE - - COUNT( * ) WHEN + - 45 * - + 72 THEN - ( 12 ) WHEN + 13 THEN + + 99 WHEN + - 77 THEN + 34 / - - 23 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT CASE - - COUNT ( * ) WHEN + - 45 * - + 72 THEN - ( 12 ) WHEN + 13 THEN + + 99 WHEN + - 77 THEN + 34 / - - 23 END col2
----
NULL

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

query I rowsort
SELECT DISTINCT + 70 + 62
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT ALL - 12 + - - 60 + - + 83 DIV 47 + - 82
----
-35

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL - 12 + - - 60 + - + 83 / 47 + - 82
----
-35

query I rowsort
SELECT DISTINCT + 79 + + 91 AS col2
----
170

query I rowsort
SELECT DISTINCT - + 0 + - + 73 AS col1
----
-73

query II rowsort
SELECT DISTINCT 0, - 38 AS col0
----
0
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT ALL - 77 + 84 + - 28 - 87 + + + 86 DIV - 61
----
-109

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - 77 + 84 + - 28 - 87 + + + 86 / - 61
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT COUNT( * ) * 96 * ( + 6 ) * 67
----
38592

skipif mysql # not compatible
query I rowsort label-2333
SELECT COUNT ( * ) * 96 * ( + 6 ) * 67
----
38592

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL + 52 * - - MIN( DISTINCT + 85 )
----
4420

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL + 52 * - - MIN ( DISTINCT + 85 )
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL + COALESCE ( - COUNT( * ), - 40 + 22 ) - NULLIF ( + 86, - + ( - 63 ) * + + 67 + ( COUNT( * ) ) )
----
-87

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + COALESCE ( - COUNT ( * ), - 40 + 22 ) - NULLIF ( + 86, - + ( - 63 ) * + + 67 + ( COUNT ( * ) ) )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT COUNT( * ) + - 49 + + 94
----
46

skipif mysql # not compatible
query I rowsort label-2336
SELECT COUNT ( * ) + - 49 + + 94
----
46

query I rowsort
SELECT 6 * - + 42
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2338
SELECT COALESCE ( + COUNT( * ), 51 + CASE CAST( + 69 AS SIGNED ) WHEN + 31 THEN 64 + + 17 WHEN + 23 THEN 70 WHEN + + 90 THEN NULL END ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT COALESCE ( + COUNT ( * ), 51 + CASE CAST ( + 69 AS INTEGER ) WHEN + 31 THEN 64 + + 17 WHEN + 23 THEN 70 WHEN + + 90 THEN NULL END ) * - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2340
SELECT 80 * - 95 + 15 + - - 63 + CAST( + 12 AS SIGNED ) - 50 * + 16 AS col2
----
-8310

skipif mysql # not compatible
query I rowsort label-2340
SELECT 80 * - 95 + 15 + - - 63 + CAST ( + 12 AS INTEGER ) - 50 * + 16 AS col2
----
-8310

query II rowsort
SELECT - 65 * + + 80 AS col1, + 21 AS col1
----
-5200
21

query I rowsort
SELECT + COALESCE ( + 39, - 94 * + 70 * 64, 68 )
----
39

query I rowsort
SELECT DISTINCT 53 + + 50
----
103

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

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

query I rowsort
SELECT DISTINCT 80 + + 84 + - 6
----
158

query I rowsort
SELECT + 69 * + - 34 - + 77 AS col0
----
-2423

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL 98 + + 33 * - + 54 * - SUM( 76 ) * + - 3 + + 51 AS col1
----
-406147

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL 98 + + 33 * - + 54 * - SUM ( 76 ) * + - 3 + + 51 AS col1
----
-406147

query I rowsort
SELECT 11 - + 40 + + 12 + 28 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT + 4 * + NULLIF ( - - MIN( + + 33 ), + 28 / + 22 * - 11 ) + + - 99 + + 43
----
76

skipif mysql # not compatible
query I rowsort label-2349
SELECT + 4 * + NULLIF ( - - MIN ( + + 33 ), + 28 / + 22 * - 11 ) + + - 99 + + 43
----
76

query I rowsort
SELECT DISTINCT 83 + - 70 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2351
SELECT ALL 87 * + COUNT( * ), CASE + 64 WHEN 59 / 47 * + + ( + 53 ) + 71 THEN - - 35 + COALESCE ( 62, - + SUM( + 88 ) * + 3 ) / - - 36 END AS col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-2351
SELECT ALL 87 * + COUNT ( * ), CASE + 64 WHEN 59 / 47 * + + ( + 53 ) + 71 THEN - - 35 + COALESCE ( 62, - + SUM ( + 88 ) * + 3 ) / - - 36 END AS col0
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT + MAX( - 43 ) + - + NULLIF ( - 42, + 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-2352
SELECT + MAX ( - 43 ) + - + NULLIF ( - 42, + 14 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ( - SUM( ALL 59 ) ) + 78 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2353
SELECT ( - SUM ( ALL 59 ) ) + 78 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ( + MAX( 68 ) ) * - - 98 - + - 50 * - 84
----
2464

skipif mysql # not compatible
query I rowsort label-2354
SELECT ( + MAX ( 68 ) ) * - - 98 - + - 50 * - 84
----
2464

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

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

query I rowsort
SELECT 6 + - 4 * + 8 * + 36 AS col2
----
-1146

query I rowsort
SELECT ALL + ( - - 14 ) * + - COALESCE ( + 8, + 77, - + 79 ) * - - 15
----
-1680

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

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

query II rowsort
SELECT ALL 33 AS col1, - 95 AS col2
----
33
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + MIN( - COALESCE ( + 28, + 14 ) ) + 80
----
52

skipif mysql # not compatible
query I rowsort label-2360
SELECT + MIN ( - COALESCE ( + 28, + 14 ) ) + 80
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2361
SELECT - COUNT( * ) DIV + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2361
SELECT - COUNT ( * ) / + 30 AS col1
----
0

query I rowsort
SELECT - 52 * - 65 AS col2
----
3380

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT - 17 + - - 96 DIV - 43 + + - COALESCE ( + - 94, + + 40 DIV + ( 43 ) )
----
75

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 17 + - - 96 / - 43 + + - COALESCE ( + - 94, + + 40 / + ( 43 ) )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2364
SELECT DISTINCT + ( + + 7 ) * COALESCE ( - + 37, - ( + 47 ) DIV COALESCE ( + - 22, + CAST( NULL AS SIGNED ) * - 82 + + 57, + 13 + 42, - 42 * 58 DIV - COALESCE ( + 54, - MAX( ALL + - 42 ), - 11, 68 ) DIV + + 31 - - 67 + + + 6 * - + CAST( NULL AS SIGNED ) ), - 91 )
----
-259

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT + ( + + 7 ) * COALESCE ( - + 37, - ( + 47 ) / COALESCE ( + - 22, + CAST ( NULL AS INTEGER ) * - 82 + + 57, + 13 + 42, - 42 * 58 / - COALESCE ( + 54, - MAX ( ALL + - 42 ), - 11, 68 ) / + + 31 - - 67 + + + 6 * - + CAST ( NULL AS INTEGER ) ), - 91 )
----
-259

onlyif mysql # aggregate syntax: 
query II rowsort label-2365
SELECT ALL COALESCE ( 54, + 71 + - + COUNT( * ) ), + MIN( DISTINCT - 78 ) * 62 AS col2
----
54
-4836

skipif mysql # not compatible
query II rowsort label-2365
SELECT ALL COALESCE ( 54, + 71 + - + COUNT ( * ) ), + MIN ( DISTINCT - 78 ) * 62 AS col2
----
54
-4836

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT - 4 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT - 4 / - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2367
SELECT 49 / - COUNT( * ) + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT 49 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) - 74
----
NULL

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

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

query I rowsort
SELECT COALESCE ( 23, - 29 * - 32 + + 51 )
----
23

query II rowsort
SELECT ALL + 73 * 75 + + - 95, 78 AS col2
----
5380
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + + COALESCE ( - + COUNT( * ), 63, - 9 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2371
SELECT + + COALESCE ( - + COUNT ( * ), 63, - 9 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT - 29 / 10 + 76 * - CAST( NULL AS SIGNED ) + + - 64 * + COALESCE ( - + 29, - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT - 29 / 10 + 76 * - CAST ( NULL AS INTEGER ) + + - 64 * + COALESCE ( - + 29, - 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT - 16 + MAX( DISTINCT + 6 ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-2373
SELECT - 16 + MAX ( DISTINCT + 6 ) col1
----
-10

query I rowsort
SELECT ALL + - COALESCE ( - + 97, + - 93 ) AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2375
SELECT + CAST( NULL AS SIGNED ), CAST( MIN( - 44 ) AS SIGNED ) col2
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-2375
SELECT + CAST ( NULL AS INTEGER ), CAST ( MIN ( - 44 ) AS INTEGER ) col2
----
NULL
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT - 32 DIV 7 * - 99 + - + 96 AS col0
----
300

skipif mysql # not compatible
query I rowsort label-2376
SELECT - 32 / 7 * - 99 + - + 96 AS col0
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT + 2 + + COUNT( ALL + NULLIF ( - 34, - 37 * - - 84 ) ) + - 90 + + + 65 * + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-2377
SELECT + 2 + + COUNT ( ALL + NULLIF ( - 34, - 37 * - - 84 ) ) + - 90 + + + 65 * + COUNT ( * )
----
-22

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

query II rowsort
SELECT - 96 AS col2, 32 AS col1
----
-96
32

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

skipif mysql # not compatible
query I rowsort label-2380
SELECT - - COUNT ( * ) * + 71 + - 17 AS col1
----
54

query II rowsort
SELECT - 29 AS col1, 57
----
-29
57

query II rowsort
SELECT - 46 AS col2, - 16 AS col1
----
-46
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-2383
SELECT DISTINCT 59 DIV 75 AS col1, 40 AS col1
----
0
40

skipif mysql # not compatible
query II rowsort label-2383
SELECT DISTINCT 59 / 75 AS col1, 40 AS col1
----
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL 77 - + MAX( 70 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL 77 - + MAX ( 70 ) AS col1
----
7

query I rowsort
SELECT + 88 * - - 15 AS col2
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - COALESCE ( + + COUNT( * ), 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-2386
SELECT - COALESCE ( + + COUNT ( * ), 70 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT + 52 DIV - + 46 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2387
SELECT + 52 / - + 46 AS col2
----
-1

query I rowsort
SELECT - 58 + 76 col0
----
18

query I rowsort
SELECT + 29 * - 19 * - 57
----
31407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2390
SELECT - COALESCE ( - - COALESCE ( - 14, - 56, + + COALESCE ( - ( + 64 ), 8, - + ( + 32 ), + - CAST( + 95 AS SIGNED ) ) ), - 60 DIV - 58 * + 64 ) * + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2390
SELECT - COALESCE ( - - COALESCE ( - 14, - 56, + + COALESCE ( - ( + 64 ), 8, - + ( + 32 ), + - CAST ( + 95 AS INTEGER ) ) ), - 60 / - 58 * + 64 ) * + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL COUNT( + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL COUNT ( + 1 ) AS col1
----
1

query I rowsort
SELECT + 22 + + + 54
----
76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2394
SELECT ALL 4 + 89 + - MIN( - 12 ), - 12 AS col2
----
105
-12

skipif mysql # not compatible
query II rowsort label-2394
SELECT ALL 4 + 89 + - MIN ( - 12 ), - 12 AS col2
----
105
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL SUM( DISTINCT + 5 ) col1
----
5

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL SUM ( DISTINCT + 5 ) col1
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT + 45 + + 1 * 35 * - + MIN( DISTINCT - 64 ) * + 56
----
125485

skipif mysql # not compatible
query I rowsort label-2397
SELECT + 45 + + 1 * 35 * - + MIN ( DISTINCT - 64 ) * + 56
----
125485

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT + MAX( + 47 ) AS col1, - 29 AS col0
----
47
-29

skipif mysql # not compatible
query II rowsort label-2398
SELECT + MAX ( + 47 ) AS col1, - 29 AS col0
----
47
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-2399
SELECT - + 80 DIV ( - 94 ) + - - 82 AS col2, - 27 AS col1
----
82
-27

skipif mysql # not compatible
query II rowsort label-2399
SELECT - + 80 / ( - 94 ) + - - 82 AS col2, - 27 AS col1
----
82
-27

query II rowsort
SELECT - + 69 * + 49 AS col2, 61
----
-3381
61

query II rowsort
SELECT DISTINCT + CASE - + 16 WHEN + 35 THEN - - ( - 4 ) ELSE - 63 END * 96 AS col1, + 83
----
-6048
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT DISTINCT + 39 DIV + 54 * 85 + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT + 39 / + 54 * 85 + - 69
----
-69

query I rowsort
SELECT 36 * 15 + + 44
----
584

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2405
SELECT DISTINCT - 92 DIV + + 22 + + ( - 44 ) + 55 * 5
----
227

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT - 92 / + + 22 + + ( - 44 ) + 55 * 5
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT 59 * + COUNT( * ) * - 69 * - + 17 + 27 + + ( + 89 ) * + 68 + + 16 * 3 - + 3 + + COUNT( DISTINCT + 28 )
----
75332

skipif mysql # not compatible
query I rowsort label-2406
SELECT 59 * + COUNT ( * ) * - 69 * - + 17 + 27 + + ( + 89 ) * + 68 + + 16 * 3 - + 3 + + COUNT ( DISTINCT + 28 )
----
75332

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2407
SELECT DISTINCT - + 80 * 84 * + 83 + - MAX( ALL + 86 ) + 73 DIV + 74 + + - 89 - - COUNT( * ) DIV + 2 AS col1, COUNT( * ) - - 78 AS col2, - 0 * + 27 + - COUNT( * ) DIV + 37 + - 76
----
-557935
79
-76

skipif mysql # not compatible
query III rowsort label-2407
SELECT DISTINCT - + 80 * 84 * + 83 + - MAX ( ALL + 86 ) + 73 / + 74 + + - 89 - - COUNT ( * ) / + 2 AS col1, COUNT ( * ) - - 78 AS col2, - 0 * + 27 + - COUNT ( * ) / + 37 + - 76
----
-557935
79
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - + 67 * - COUNT( * ) + + - 74 * + 31 * 45 AS col0
----
-103163

skipif mysql # not compatible
query I rowsort label-2408
SELECT - + 67 * - COUNT ( * ) + + - 74 * + 31 * 45 AS col0
----
-103163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2409
SELECT - - CASE - MAX( ALL - 53 ) WHEN MAX( 28 ) / - + 64 + - 49 + - + 15 * 47 * 68 THEN NULL WHEN - + NULLIF ( 40, 65 * + COUNT( * ) ) THEN + CAST( NULL AS SIGNED ) END - - + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT - - CASE - MAX ( ALL - 53 ) WHEN MAX ( 28 ) / - + 64 + - 49 + - + 15 * 47 * 68 THEN NULL WHEN - + NULLIF ( 40, 65 * + COUNT ( * ) ) THEN + CAST ( NULL AS INTEGER ) END - - + 18 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2411
SELECT - + COUNT( * ) - + + 57 AS col0, - 36 * - + COUNT( * ) AS col0
----
-58
36

skipif mysql # not compatible
query II rowsort label-2411
SELECT - + COUNT ( * ) - + + 57 AS col0, - 36 * - + COUNT ( * ) AS col0
----
-58
36

query I rowsort
SELECT ALL 7 * 53
----
371

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

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + ( - COUNT ( DISTINCT + 81 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 39 * + 84 * - 14 AS col1
----
45864

query I rowsort
SELECT 22 * + - 83 AS col0
----
-1826

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

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

query II rowsort
SELECT 42 AS col0, 85
----
42
85

query I rowsort
SELECT 6 + + 32
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT COUNT( * ) * 93 * - CASE + - 56 WHEN - 53 THEN NULL WHEN + + ( - 12 ) THEN 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT COUNT ( * ) * 93 * - CASE + - 56 WHEN - 53 THEN NULL WHEN + + ( - 12 ) THEN 47 END
----
NULL

query I rowsort
SELECT DISTINCT + 49 + + 78
----
127

query I rowsort
SELECT ALL 93 * - + 52
----
-4836

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT COUNT( * ) + - - 53 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT COUNT ( * ) + - - 53 AS col1
----
54

query I rowsort
SELECT DISTINCT - 86 + + 88 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT COUNT( * ) * + COALESCE ( - 57, - 86 + - + 27, - SUM( ALL - 62 ), - 98 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2425
SELECT COUNT ( * ) * + COALESCE ( - 57, - 86 + - + 27, - SUM ( ALL - 62 ), - 98 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT COUNT( * ) + - - 32 + - 53 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2426
SELECT COUNT ( * ) + - - 32 + - 53 AS col2
----
-20

query I rowsort
SELECT DISTINCT 92 + + 38 AS col1
----
130

query I rowsort
SELECT DISTINCT + 78 + + + 89 * + 35 + + 53
----
3246

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT - COALESCE ( - + 38, + 21 * 41 * - + 67 + + - COUNT( * ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2429
SELECT - COALESCE ( - + 38, + 21 * 41 * - + 67 + + - COUNT ( * ) ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL - 45 + 88 * MAX( DISTINCT 3 ) * + 85 * + 6 + - 35 AS col0
----
134560

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL - 45 + 88 * MAX ( DISTINCT 3 ) * + 85 * + 6 + - 35 AS col0
----
134560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT ALL + 34 * - + 4 + - CAST( - 93 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + 34 * - + 4 + - CAST ( - 93 AS INTEGER )
----
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-2432
SELECT DISTINCT - COALESCE ( - + ( + 95 ), + - 49 DIV 1 ), 21 AS col1
----
95
21

skipif mysql # not compatible
query II rowsort label-2432
SELECT DISTINCT - COALESCE ( - + ( + 95 ), + - 49 / 1 ), 21 AS col1
----
95
21

query I rowsort
SELECT DISTINCT ( + - 78 ) + + 79
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT - 34 + - NULLIF ( + 41, + - COALESCE ( - + 64, + + MAX( DISTINCT + + COALESCE ( 2, + - ( - - 12 ) ) ) ) ) * - 52 AS col0
----
2098

skipif mysql # not compatible
query I rowsort label-2434
SELECT - 34 + - NULLIF ( + 41, + - COALESCE ( - + 64, + + MAX ( DISTINCT + + COALESCE ( 2, + - ( - - 12 ) ) ) ) ) * - 52 AS col0
----
2098

query I rowsort
SELECT ALL 4 + 31 AS col1
----
35

query I rowsort
SELECT ALL 8 - 42 + - 13
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2437
SELECT DISTINCT - 51 * + - COALESCE ( 65, + 7 DIV - 9 + + COUNT( * ) - 5 )
----
3315

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT - 51 * + - COALESCE ( 65, + 7 / - 9 + + COUNT ( * ) - 5 )
----
3315

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2438
SELECT + 1 + CAST( + 44 AS SIGNED ) + 95 DIV 21
----
49

skipif mysql # not compatible
query I rowsort label-2438
SELECT + 1 + CAST ( + 44 AS INTEGER ) + 95 / 21
----
49

query I rowsort
SELECT - 75 * 25
----
-1875

query I rowsort
SELECT DISTINCT - - 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL - COUNT( * ) * - 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - COUNT ( * ) * - 59 AS col0
----
59

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

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

query I rowsort
SELECT ALL - 58 * 68 AS col2
----
-3944

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT + 94 * + - 66 + - 83 AS col0, + SUM( ALL + 52 ) AS col0
----
-6287
52

skipif mysql # not compatible
query II rowsort label-2444
SELECT + 94 * + - 66 + - 83 AS col0, + SUM ( ALL + 52 ) AS col0
----
-6287
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - CASE - + ( - 19 ) WHEN ( + - 4 ) * - - 71 * - NULLIF ( - + 97, 0 * - + 67 ) + 24 THEN NULL WHEN + 98 + - 14 + - 4 + 69 + - + 82 * + - COUNT( * ) + - + 1 + + + 44 * - + 75 THEN + + 2 END + + + 10 * 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2445
SELECT - CASE - + ( - 19 ) WHEN ( + - 4 ) * - - 71 * - NULLIF ( - + 97, 0 * - + 67 ) + 24 THEN NULL WHEN + 98 + - 14 + - 4 + 69 + - + 82 * + - COUNT ( * ) + - + 1 + + + 44 * - + 75 THEN + + 2 END + + + 10 * 20 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2446
SELECT 16 * + 0 AS col2, + CAST( 49 AS SIGNED ) + - 84 AS col0
----
0
-35

skipif mysql # not compatible
query II rowsort label-2446
SELECT 16 * + 0 AS col2, + CAST ( 49 AS INTEGER ) + - 84 AS col0
----
0
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-2447
SELECT + 65 AS col1, - 72 DIV + - 46 AS col2
----
65
1

skipif mysql # not compatible
query II rowsort label-2447
SELECT + 65 AS col1, - 72 / + - 46 AS col2
----
65
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2448
SELECT ALL + SUM( DISTINCT 7 ) DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + SUM ( DISTINCT 7 ) / - 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2449
SELECT 6, MAX( DISTINCT - 88 ) AS col1
----
6
-88

skipif mysql # not compatible
query II rowsort label-2449
SELECT 6, MAX ( DISTINCT - 88 ) AS col1
----
6
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT 51 + - - ( + 48 ) * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-2451
SELECT 51 + - - ( + 48 ) * COUNT ( * )
----
99

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

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

query I rowsort
SELECT ALL - 90 * - 57 AS col1
----
5130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2454
SELECT COUNT( * ) + - 45 + + 72 DIV - - 98 - 85 AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-2454
SELECT COUNT ( * ) + - 45 + + 72 / - - 98 - 85 AS col1
----
-129

query I rowsort
SELECT 41 * - 68 * - - 66 AS col1
----
-184008

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT - 0, NULLIF ( + 80, + - 90 / - AVG ( DISTINCT + 42 ) - COUNT( * ) ) AS col0
----
0
80

skipif mysql # not compatible
query II rowsort label-2456
SELECT - 0, NULLIF ( + 80, + - 90 / - AVG ( DISTINCT + 42 ) - COUNT ( * ) ) AS col0
----
0
80

onlyif mysql # DIV for integer division: 
query II rowsort label-2457
SELECT 31 - + 98 AS col2, - 68 DIV + 91
----
-67
0

skipif mysql # not compatible
query II rowsort label-2457
SELECT 31 - + 98 AS col2, - 68 / + 91
----
-67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT MAX( + 6 ) * + 78
----
468

skipif mysql # not compatible
query I rowsort label-2458
SELECT MAX ( + 6 ) * + 78
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT MIN( ALL + - 51 ) + - - 93 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2459
SELECT MIN ( ALL + - 51 ) + - - 93 AS col2
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL 10 + - NULLIF ( - 13, MIN( ALL - 37 ) )
----
23

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL 10 + - NULLIF ( - 13, MIN ( ALL - 37 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT 55 * + + MAX( ALL + 43 )
----
2365

skipif mysql # not compatible
query I rowsort label-2462
SELECT 55 * + + MAX ( ALL + 43 )
----
2365

query I rowsort
SELECT ALL 35 * - + 83 AS col0
----
-2905

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2465
SELECT ALL - 45 AS col1, SUM( ALL + 26 ) * CAST( NULL AS DECIMAL ) / 53 * 26 + 93 + - + 65 + - 57 * - 19 * - - 10 * + 55 AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-2465
SELECT ALL - 45 AS col1, SUM ( ALL + 26 ) * CAST ( NULL AS REAL ) / 53 * 26 + 93 + - + 65 + - 57 * - 19 * - - 10 * + 55 AS col0
----
-45
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2466
SELECT DISTINCT - 66 - + 98 col2, COUNT( * ) AS col1
----
-164
1

skipif mysql # not compatible
query II rowsort label-2466
SELECT DISTINCT - 66 - + 98 col2, COUNT ( * ) AS col1
----
-164
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL + 97 * - 47 + 69 + + - CASE - 60 WHEN - COUNT( * ) THEN - MAX( DISTINCT - + 52 ) * + + 63 + + + AVG ( - 16 ) WHEN - 93 THEN + 16 END + 42 / + ( - + 12 ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL + 97 * - 47 + 69 + + - CASE - 60 WHEN - COUNT ( * ) THEN - MAX ( DISTINCT - + 52 ) * + + 63 + + + AVG ( - 16 ) WHEN - 93 THEN + 16 END + 42 / + ( - + 12 ) * + 10
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT SUM( + 57 ) + COUNT( * ) * + - 93 + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-2469
SELECT SUM ( + 57 ) + COUNT ( * ) * + - 93 + COUNT ( * )
----
-35

query I rowsort
SELECT ALL - 22 * + 83 AS col0
----
-1826

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT DISTINCT - 2 * NULLIF ( + 30, - + 56 ) - + COUNT( - - 82 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT - 2 * NULLIF ( + 30, - + 56 ) - + COUNT ( - - 82 ) AS col1
----
-61

query II rowsort
SELECT + - 50, + 30 col1
----
-50
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT ALL + - CAST( - 52 AS SIGNED ) * - - 95 AS col2
----
4940

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + - CAST ( - 52 AS INTEGER ) * - - 95 AS col2
----
4940

query I rowsort
SELECT + - 15 - - 74 * 59 * - 53 col0
----
-231413

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2476
SELECT - 24 * + 42 AS col0, 15 + COUNT( * )
----
-1008
16

skipif mysql # not compatible
query II rowsort label-2476
SELECT - 24 * + 42 AS col0, 15 + COUNT ( * )
----
-1008
16

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

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

query II rowsort
SELECT + NULLIF ( - 86, + 7 ) col1, 14
----
-86
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT + MIN( 32 ) * 77 * + 37 + 26 + + 44
----
91238

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT + MIN ( 32 ) * 77 * + 37 + 26 + + 44
----
91238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT ALL - CAST( NULL AS SIGNED ) + + 7 + + - 92 + + - COUNT( * ) * + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL - CAST ( NULL AS INTEGER ) + + 7 + + - 92 + + - COUNT ( * ) * + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT - 82 - + - 21 + - 42 * - 90 - + COUNT( * ) AS col0
----
3718

skipif mysql # not compatible
query I rowsort label-2481
SELECT - 82 - + - 21 + - 42 * - 90 - + COUNT ( * ) AS col0
----
3718

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2482
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) * + MIN( + - 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) * + MIN ( + - 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT - 47 * + CASE + CASE - + 73 WHEN + + 15 THEN + 13 ELSE NULL END WHEN 27 * + 15 THEN + 71 / - - COUNT( * ) END + - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT - 47 * + CASE + CASE - + 73 WHEN + + 15 THEN + 13 ELSE NULL END WHEN 27 * + 15 THEN + 71 / - - COUNT ( * ) END + - - 99
----
NULL

query I rowsort
SELECT ALL + 31 + - 33
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT + 46 + 23 + + - 56 * CAST( + - 61 AS SIGNED ) AS col2
----
3485

skipif mysql # not compatible
query I rowsort label-2485
SELECT + 46 + 23 + + - 56 * CAST ( + - 61 AS INTEGER ) AS col2
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT - ( 43 ) - + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-2486
SELECT - ( 43 ) - + + COUNT ( * )
----
-44

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

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

query I rowsort
SELECT DISTINCT - 14 * - + 96 AS col0
----
1344

query I rowsort
SELECT - 94 + - - 47
----
-47

query I rowsort
SELECT - 7 + - ( + 87 ) AS col2
----
-94

query I rowsort
SELECT - 56 + + 64 + + 76 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT - - MAX( - - ( - - 80 ) ) * - 85 AS col0
----
-6800

skipif mysql # not compatible
query I rowsort label-2492
SELECT - - MAX ( - - ( - - 80 ) ) * - 85 AS col0
----
-6800

query I rowsort
SELECT + - 57 * - 31 - + 16
----
1751

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

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

query I rowsort
SELECT + + 82 + + 37
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT - - 80 + NULLIF ( COUNT( * ), 88 )
----
81

skipif mysql # not compatible
query I rowsort label-2496
SELECT - - 80 + NULLIF ( COUNT ( * ), 88 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2497
SELECT - 15 / - + 35 + MIN( + 46 ) + + 74 * 10 * + + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT - 15 / - + 35 + MIN ( + 46 ) + + 74 * 10 * + + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL + - COUNT ( * ) / + - 27
----
0

query I rowsort
SELECT DISTINCT + - 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL 72 * COUNT( DISTINCT + ( - 43 ) )
----
72

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL 72 * COUNT ( DISTINCT + ( - 43 ) )
----
72

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

skipif mysql # not compatible
query I rowsort label-2501
SELECT + ( - MIN ( - 80 ) )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT ALL + 96 DIV 57 + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + 96 / 57 + - 81
----
-80

query I rowsort
SELECT - + 82 * + 19 - 11 AS col2
----
-1569

query II rowsort
SELECT - 99 + - 25 AS col2, 40 AS col0
----
-124
40

query I rowsort
SELECT 64 * + 61 + 28 + 57 AS col2
----
3989

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2506
SELECT ALL NULLIF ( + 83, + 92 ) * + ( 49 ) + 35 * + NULLIF ( + 83, - 22 ) AS col1, + 29 - COUNT( * ) DIV - 61 + - + 11 + 21 AS col0
----
6972
39

skipif mysql # not compatible
query II rowsort label-2506
SELECT ALL NULLIF ( + 83, + 92 ) * + ( 49 ) + 35 * + NULLIF ( + 83, - 22 ) AS col1, + 29 - COUNT ( * ) / - 61 + - + 11 + 21 AS col0
----
6972
39

query I rowsort
SELECT + 12 * - 59
----
-708

query I rowsort
SELECT + 18 + + 95 - - 68 AS col2
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2509
SELECT + NULLIF ( + COUNT( * ), 38 - + + CAST( 9 AS SIGNED ) * + 87 - - 82 / + - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-2509
SELECT + NULLIF ( + COUNT ( * ), 38 - + + CAST ( 9 AS INTEGER ) * + 87 - - 82 / + - 27 )
----
1

query I rowsort
SELECT ALL + 38 * 82 + - 96
----
3020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT DISTINCT + 55 * - 95 + CASE 35 WHEN 66 THEN NULL WHEN 75 * - AVG ( ALL - 55 ) + 59 * + NULLIF ( - 94, - CAST( 64 AS SIGNED ) ) + + + COALESCE ( + ( 9 ), ( - + COUNT( * ) ) + - + 29 * + + ( + MAX( - 82 ) ) + ( - 21 ) * - ( + - 71 ) ) * - 63 * + COALESCE ( + - COUNT( * ), - ( 73 ) * 79 - - COUNT( * ) - - 95 - CAST( NULL AS SIGNED ) * - 69 * - - 14 * - ( 14 ) ) THEN - + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT + 55 * - 95 + CASE 35 WHEN 66 THEN NULL WHEN 75 * - AVG ( ALL - 55 ) + 59 * + NULLIF ( - 94, - CAST ( 64 AS INTEGER ) ) + + + COALESCE ( + ( 9 ), ( - + COUNT ( * ) ) + - + 29 * + + ( + MAX ( - 82 ) ) + ( - 21 ) * - ( + - 71 ) ) * - 63 * + COALESCE ( + - COUNT ( * ), - ( 73 ) * 79 - - COUNT ( * ) - - 95 - CAST ( NULL AS INTEGER ) * - 69 * - - 14 * - ( 14 ) ) THEN - + 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT + 58 + + ( - + COUNT( * ) ) * - 12 + + ( + 24 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2512
SELECT + 58 + + ( - + COUNT ( * ) ) * - 12 + + ( + 24 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL - ( + 78 ) * SUM( + 25 ) + - 51 + 83 * MAX( ALL + + ( + 86 ) ) + + 35
----
5172

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - ( + 78 ) * SUM ( + 25 ) + - 51 + 83 * MAX ( ALL + + ( + 86 ) ) + + 35
----
5172

query I rowsort
SELECT + 46 * + 11 AS col0
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT CASE COUNT( * ) WHEN + NULLIF ( - CASE - - 27 WHEN + 89 THEN + COUNT( * ) * - 15 WHEN 24 THEN + AVG ( DISTINCT 41 ) ELSE 15 END, - + 76 / ( + 74 ) ) * CASE AVG ( - - 55 ) WHEN 71 THEN - 97 + - + 96 ELSE 56 END * 14 * + - 54 THEN + - 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT CASE COUNT ( * ) WHEN + NULLIF ( - CASE - - 27 WHEN + 89 THEN + COUNT ( * ) * - 15 WHEN 24 THEN + AVG ( DISTINCT 41 ) ELSE 15 END, - + 76 / ( + 74 ) ) * CASE AVG ( - - 55 ) WHEN 71 THEN - 97 + - + 96 ELSE 56 END * 14 * + - 54 THEN + - 80 END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( - 28, - 34 / 44 + ( 90 ) + 99 ) * ( - - 25 ) AS col1
----
-700

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL - MAX( DISTINCT 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL - MAX ( DISTINCT 72 ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-2519
SELECT + 44 - + 52 DIV - 57, + 53 AS col0
----
44
53

skipif mysql # not compatible
query II rowsort label-2519
SELECT + 44 - + 52 / - 57, + 53 AS col0
----
44
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT - 14 DIV + 69 * + + 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2520
SELECT - 14 / + 69 * + + 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT + 58 - - - ( + + 16 ) AS col1, + ( + COUNT( * ) ) * + 92 + - SUM( DISTINCT + 44 )
----
42
48

skipif mysql # not compatible
query II rowsort label-2521
SELECT + 58 - - - ( + + 16 ) AS col1, + ( + COUNT ( * ) ) * + 92 + - SUM ( DISTINCT + 44 )
----
42
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT - + CASE + 36 WHEN + + 2 + - ( 90 ) + + + AVG ( DISTINCT + 52 ) THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2522
SELECT - + CASE + 36 WHEN + + 2 + - ( 90 ) + + + AVG ( DISTINCT + 52 ) THEN NULL ELSE COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL + SUM( ALL + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL + SUM ( ALL + 0 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + + 42 * - 82 AS col0
----
-3444

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL - - CASE - 1 WHEN - - 34 THEN - 11 END + + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - - CASE - 1 WHEN - - 34 THEN - 11 END + + ( - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT ALL CAST( - 25 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL CAST ( - 25 AS INTEGER ) AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT 10 * COUNT( 2 ) DIV - COUNT( * ) + - 58 * - 85 + + 86 AS col2
----
5006

skipif mysql # not compatible
query I rowsort label-2527
SELECT 10 * COUNT ( 2 ) / - COUNT ( * ) + - 58 * - 85 + + 86 AS col2
----
5006

onlyif mysql # aggregate syntax: 
query II rowsort label-2528
SELECT ALL + 79 + - - 99 * - COUNT( * ), 59 AS col2
----
-20
59

skipif mysql # not compatible
query II rowsort label-2528
SELECT ALL + 79 + - - 99 * - COUNT ( * ), 59 AS col2
----
-20
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT 13 + - 31 + - COUNT( * ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-2529
SELECT 13 + - 31 + - COUNT ( * ) col2
----
-19

query I rowsort
SELECT DISTINCT + 88 + + 94 * + 61 + - - 39 AS col1
----
5861

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT 89 DIV - - 63
----
1

skipif mysql # not compatible
query I rowsort label-2531
SELECT 89 / - - 63
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2532
SELECT 33 * - COUNT( - 17 ) AS col1, + COUNT( * ) + + - 92 AS col1
----
-33
-91

skipif mysql # not compatible
query II rowsort label-2532
SELECT 33 * - COUNT ( - 17 ) AS col1, + COUNT ( * ) + + - 92 AS col1
----
-33
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL NULLIF ( - COUNT( * ), + COUNT( * ) ) + + 1 * + + 33 + - + 12 + 25
----
45

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL NULLIF ( - COUNT ( * ), + COUNT ( * ) ) + + 1 * + + 33 + - + 12 + 25
----
45

query I rowsort
SELECT ALL 94 * ( - - 71 ) AS col0
----
6674

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT DISTINCT - 58 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT - 58 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL + NULLIF ( - COALESCE ( + - 24, - MIN( DISTINCT - 18 ) + - - 20 - - 36 - - 67 * - ( + 95 ) * - 34 + - + 82, + - 53 + + - 27 ), + 6 * 22 * + - 60 ) + - 6
----
18

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + NULLIF ( - COALESCE ( + - 24, - MIN ( DISTINCT - 18 ) + - - 20 - - 36 - - 67 * - ( + 95 ) * - 34 + - + 82, + - 53 + + - 27 ), + 6 * 22 * + - 60 ) + - 6
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT ALL 29 * 94 * COALESCE ( COUNT( * ), + COUNT( * ) * - - ( - 96 ) )
----
2726

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL 29 * 94 * COALESCE ( COUNT ( * ), + COUNT ( * ) * - - ( - 96 ) )
----
2726

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT 21 + + COUNT( * ) - + 87 / CASE COUNT( * ) WHEN - + 45 THEN + 5 * + - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT 21 + + COUNT ( * ) - + 87 / CASE COUNT ( * ) WHEN - + 45 THEN + 5 * + - 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - 39 * 70 + + - 74 + + COUNT( DISTINCT 91 ) * - 22 AS col1
----
-2826

skipif mysql # not compatible
query I rowsort label-2540
SELECT - 39 * 70 + + - 74 + + COUNT ( DISTINCT 91 ) * - 22 AS col1
----
-2826

onlyif mysql # DIV for integer division: 
query II rowsort label-2541
SELECT 47 DIV 69 AS col1, + 83
----
0
83

skipif mysql # not compatible
query II rowsort label-2541
SELECT 47 / 69 AS col1, + 83
----
0
83

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2543
SELECT SUM( - 80 ) + - ( + - 95 ) AS col0, + ( - 66 ) + + - MIN( DISTINCT + 47 ) + - 33 * - CASE CAST( NULL AS SIGNED ) WHEN + 77 * 54 + CASE + 15 WHEN - + 23 THEN - 28 END THEN NULL WHEN - COUNT( * ) + + 35 - - 99 + + 33 THEN + 54 END AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-2543
SELECT SUM ( - 80 ) + - ( + - 95 ) AS col0, + ( - 66 ) + + - MIN ( DISTINCT + 47 ) + - 33 * - CASE CAST ( NULL AS INTEGER ) WHEN + 77 * 54 + CASE + 15 WHEN - + 23 THEN - 28 END THEN NULL WHEN - COUNT ( * ) + + 35 - - 99 + + 33 THEN + 54 END AS col1
----
15
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT 76 - + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2545
SELECT 76 - + COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2546
SELECT ALL - 35 * + 63 DIV + COUNT( * ) * - - COUNT( * ), 98 * - 96 AS col1
----
-2205
-9408

skipif mysql # not compatible
query II rowsort label-2546
SELECT ALL - 35 * + 63 / + COUNT ( * ) * - - COUNT ( * ), 98 * - 96 AS col1
----
-2205
-9408

query I rowsort
SELECT + 25 + + 61 * - ( + 2 ) + 25 AS col0
----
-72

query II rowsort
SELECT 56 + 64 + 45 * + 80 + - 42 AS col2, 11
----
3678
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2549
SELECT ALL COALESCE ( ( - + 70 ), + - CASE 22 WHEN - - 90 THEN NULL WHEN - 7 * COALESCE ( + CAST( + - 4 AS SIGNED ), - 31 - + 97 + - 96 - - 26 * - 81 - + - 20, + 89 * - + 29 + + 38 * + 9 ) THEN 32 ELSE NULL END ) * CASE - 74 WHEN + - 88 * - MIN( DISTINCT + 13 ) * - 62 + - 21 + + + COUNT( * ) THEN 30 + + 59 + + + CAST( NULL AS SIGNED ) / + NULLIF ( 75, COALESCE ( + MAX( DISTINCT + 25 ), - - 71 / + 37, + + 40 * + 39 - - - CASE + 69 WHEN + 4 THEN + 45 + + 27 + 36 + - 46 + + 69 / COUNT( * ) * - 94 * + 47 ELSE CASE - 80 WHEN - 27 THEN 57 ELSE NULL END END * 33 + MIN( ALL 13 ) ) * 8 ) ELSE NULL END * - 97 + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL COALESCE ( ( - + 70 ), + - CASE 22 WHEN - - 90 THEN NULL WHEN - 7 * COALESCE ( + CAST ( + - 4 AS INTEGER ), - 31 - + 97 + - 96 - - 26 * - 81 - + - 20, + 89 * - + 29 + + 38 * + 9 ) THEN 32 ELSE NULL END ) * CASE - 74 WHEN + - 88 * - MIN ( DISTINCT + 13 ) * - 62 + - 21 + + + COUNT ( * ) THEN 30 + + 59 + + + CAST ( NULL AS INTEGER ) / + NULLIF ( 75, COALESCE ( + MAX ( DISTINCT + 25 ), - - 71 / + 37, + + 40 * + 39 - - - CASE + 69 WHEN + 4 THEN + 45 + + 27 + 36 + - 46 + + 69 / COUNT ( * ) * - 94 * + 47 ELSE CASE - 80 WHEN - 27 THEN 57 ELSE NULL END END * 33 + MIN ( ALL 13 ) ) * 8 ) ELSE NULL END * - 97 + 42 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 16 + 53 + + 34 + + + 74 * - - 29 AS col2
----
2249

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

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

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

query I rowsort
SELECT CASE 83 WHEN - + 13 * 34 * - 85 THEN NULL ELSE 16 + + 42 END + - 50
----
8

query II rowsort
SELECT + 67 + 14 AS col1, - 89
----
81
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2555
SELECT - COALESCE ( 26, - + COUNT( * ) * + NULLIF ( + + 37, + 59 ) * + 11 + + NULLIF ( COUNT( * ), - 31 ) + SUM( ALL - 10 ) - - 31 + - - 19 ) + 50 - - + 19 * - - COALESCE ( + ( CAST( NULL AS SIGNED ) ), - - 62, + 64, - - 12 )
----
1202

skipif mysql # not compatible
query I rowsort label-2555
SELECT - COALESCE ( 26, - + COUNT ( * ) * + NULLIF ( + + 37, + 59 ) * + 11 + + NULLIF ( COUNT ( * ), - 31 ) + SUM ( ALL - 10 ) - - 31 + - - 19 ) + 50 - - + 19 * - - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), - - 62, + 64, - - 12 )
----
1202

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

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - - 77 / + + ( + - COUNT ( * ) ) AS col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT + 51 DIV - 63 + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-2557
SELECT + 51 / - 63 + - 84
----
-84

query I rowsort
SELECT ALL + 42 + + 57 AS col0
----
99

query I rowsort
SELECT 35 + - - 15
----
50

query I rowsort
SELECT DISTINCT ( + - ( - 2 ) ) + + 46
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2561
SELECT ALL - CAST( 29 AS SIGNED ) DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - CAST ( 29 AS INTEGER ) / + 79
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT - COALESCE ( + 51, 7 * 74 * + 23 DIV + 40 - + COUNT( * ) * 87, + - 39 )
----
-51

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - COALESCE ( + 51, 7 * 74 * + 23 / + 40 - + COUNT ( * ) * 87, + - 39 )
----
-51

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

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - 44 * + COUNT ( - 24 ) AS col2
----
-44

query I rowsort
SELECT 41 + - 29 AS col2
----
12

query I rowsort
SELECT DISTINCT + 17 - - + 50
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT SUM( - - 61 ) col0
----
61

skipif mysql # not compatible
query I rowsort label-2566
SELECT SUM ( - - 61 ) col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT - MIN( DISTINCT - 24 ) DIV + 23 * + 1 + + - COUNT( * ) - - 38 DIV - - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT - MIN ( DISTINCT - 24 ) / + 23 * + 1 + + - COUNT ( * ) - - 38 / - - 43 AS col1
----
0

query I rowsort
SELECT + 73 * - 48 + + 78 * + - 61
----
-8262

query I rowsort
SELECT ALL - 45 * + 12 * + - 67
----
36180

query I rowsort
SELECT ALL - ( 54 ) AS col2
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2571
SELECT 47 + + 30 - NULLIF ( 83, 76 + + CASE - - 32 WHEN CAST( NULL AS DECIMAL ) THEN + - 93 END * - + 29 )
----
-6

skipif mysql # not compatible
query I rowsort label-2571
SELECT 47 + + 30 - NULLIF ( 83, 76 + + CASE - - 32 WHEN CAST ( NULL AS REAL ) THEN + - 93 END * - + 29 )
----
-6

query I rowsort
SELECT DISTINCT - CASE + + 39 WHEN - 7 + - + 96 THEN + ( + 67 ) - - 14 + - 23 WHEN 6 THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 37 AS col0, 89 + 40 - + - 36 AS col0
----
-37
165

query I rowsort
SELECT ALL 40 * - 12 * + - 11
----
5280

query I rowsort
SELECT 75 * - 94 AS col1
----
-7050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2576
SELECT ALL - 10 DIV MAX( - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL - 10 / MAX ( - 76 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2577
SELECT 82 DIV - ( + 21 ) * COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-2577
SELECT 82 / - ( + 21 ) * COUNT ( * )
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2578
SELECT + 1 AS col1, COALESCE ( - + 45, + 51 ) DIV 89 * + 99 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2578
SELECT + 1 AS col1, COALESCE ( - + 45, + 51 ) / 89 * + 99 AS col0
----
1
0

query I rowsort
SELECT 65 * 64 AS col0
----
4160

query I rowsort
SELECT - 78 * - ( 2 ) + 69
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT 72 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT 72 / 87
----
0

query I rowsort
SELECT DISTINCT 39 + 48 AS col2
----
87

query I rowsort
SELECT ALL - 38 * 19 AS col0
----
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL CASE - COUNT( * ) WHEN COUNT( * ) THEN - 56 END / 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - 56 END / 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT COUNT( - 73 ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-2585
SELECT COUNT ( - 73 ) + + 38
----
39

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

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT + 65 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT ( COUNT( * ) ) + MAX( + 86 ) * 53 col1
----
4559

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT ( COUNT ( * ) ) + MAX ( + 86 ) * 53 col1
----
4559

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL COUNT( * ) + MAX( 7 )
----
8

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL COUNT ( * ) + MAX ( 7 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT DISTINCT ( - ( MIN( 22 ) ) ) + ( 58 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT ( - ( MIN ( 22 ) ) ) + ( 58 ) AS col2
----
36

query I rowsort
SELECT + 96 + + 27 * + 70 col0
----
1986

query I rowsort
SELECT - CASE - 60 WHEN + 58 * + 43 - + 74 THEN + 58 - 1 ELSE - 55 END AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT DISTINCT MIN( DISTINCT 88 ) * - 55 AS col0
----
-4840

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT MIN ( DISTINCT 88 ) * - 55 AS col0
----
-4840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL MIN( DISTINCT 90 ) + 18 * 6 AS col2
----
198

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL MIN ( DISTINCT 90 ) + 18 * 6 AS col2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT ALL 95 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL 95 / - 48
----
-1

query I rowsort
SELECT + 7 * 4 AS col2
----
28

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

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

query I rowsort
SELECT ALL 89 - + 20
----
69

query I rowsort
SELECT ALL 24 - + ( 28 - - 60 )
----
-64

query I rowsort
SELECT + 6 + + 78 * 54 AS col2
----
4218

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2601
SELECT - CASE - 51 WHEN + 40 THEN MIN( - 2 ) WHEN + COUNT( * ) THEN NULL ELSE - CAST( NULL AS DECIMAL ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT - CASE - 51 WHEN + 40 THEN MIN ( - 2 ) WHEN + COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS REAL ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT DISTINCT + 95 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT + 95 / - 53
----
-1

query I rowsort
SELECT + 17 * 52
----
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2604
SELECT + MIN( 21 ) * CAST( + 18 AS SIGNED ) AS col0
----
378

skipif mysql # not compatible
query I rowsort label-2604
SELECT + MIN ( 21 ) * CAST ( + 18 AS INTEGER ) AS col0
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2605
SELECT ALL ( - NULLIF ( 38, MIN( ALL 8 ) + COALESCE ( 17, - MIN( ALL 8 ) ) * + 7 ) ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL ( - NULLIF ( 38, MIN ( ALL 8 ) + COALESCE ( 17, - MIN ( ALL 8 ) ) * + 7 ) ) / 65
----
0

query I rowsort
SELECT - 52 * - 22 AS col1
----
1144

query I rowsort
SELECT ALL - 14 * 61
----
-854

query I rowsort
SELECT DISTINCT - 23 * 19
----
-437

query I rowsort
SELECT + 16 * - 88 col0
----
-1408

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT + 34 + + 96 DIV 14 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2611
SELECT + 34 + + 96 / 14 AS col2
----
40

query I rowsort
SELECT ALL - 5 * 37 AS col2
----
-185

query I rowsort
SELECT 15 * - 4 + - 88
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT NULLIF ( CAST( 91 AS SIGNED ), 72 )
----
91

skipif mysql # not compatible
query I rowsort label-2614
SELECT NULLIF ( CAST ( 91 AS INTEGER ), 72 )
----
91

query I rowsort
SELECT - 92 * 60 AS col1
----
-5520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT - + 12 * - COUNT( * ) + + COALESCE ( 67, + COUNT( * ) + - 85, 37 ) * 32
----
2156

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT - + 12 * - COUNT ( * ) + + COALESCE ( 67, + COUNT ( * ) + - 85, 37 ) * 32
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL + CASE SUM( ALL - 9 ) WHEN 19 * + 39 THEN ( ( - COUNT( ALL 31 ) ) ) - + 22 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + CASE SUM ( ALL - 9 ) WHEN 19 * + 39 THEN ( ( - COUNT ( ALL 31 ) ) ) - + 22 END AS col2
----
NULL

query I rowsort
SELECT ALL + + 79 * - 75 + - 20 * 46
----
-6845

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - SUM( ALL 75 ) + NULLIF ( 72, - 40 * - 15 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2620
SELECT - SUM ( ALL 75 ) + NULLIF ( 72, - 40 * - 15 ) AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2621
SELECT - + 77 + COUNT( * ) DIV 28
----
-77

skipif mysql # not compatible
query I rowsort label-2621
SELECT - + 77 + COUNT ( * ) / 28
----
-77

query I rowsort
SELECT - - 3 + ( - 56 + + 74 )
----
21

query I rowsort
SELECT ALL + 92 * + 49 AS col1
----
4508

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT + COALESCE ( COUNT( * ), - 1 + + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 1 + + 8 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT - + 28 + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-2625
SELECT - + 28 + + COUNT ( * )
----
-27

query I rowsort
SELECT + 10 - 4
----
6

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

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT - CAST ( NULL AS REAL ) + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL MIN( 29 ) + + 63
----
92

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL MIN ( 29 ) + + 63
----
92

query I rowsort
SELECT - 63 * 18 AS col2
----
-1134

query I rowsort
SELECT ALL + + 93 * 80 col1
----
7440

query I rowsort
SELECT DISTINCT - - 31 * 75
----
2325

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

skipif mysql # not compatible
query I rowsort label-2632
SELECT - 76 + - COUNT ( * ) AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT DISTINCT COUNT( * ) DIV - 17 col1
----
0

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT COUNT ( * ) / - 17 col1
----
0

query I rowsort
SELECT ALL - + NULLIF ( 81, - 75 + 32 ) - 38
----
-119

query I rowsort
SELECT ALL + 7 - 51 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - - COUNT( * ) * 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2636
SELECT - - COUNT ( * ) * 23 AS col2
----
23

query I rowsort
SELECT + 0 * - NULLIF ( - 83, - 44 + - 1 * - 61 ) AS col1
----
0

query I rowsort
SELECT ALL 12 * 47 col2
----
564

query I rowsort
SELECT ALL 70 - + + 88
----
-18

query I rowsort
SELECT - COALESCE ( + 43, 6 * - 1 )
----
-43

query I rowsort
SELECT DISTINCT ( + 54 ) * - 26 col1
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL MAX( DISTINCT - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL MAX ( DISTINCT - 25 )
----
-25

query I rowsort
SELECT ALL 76 * 17 * + 83 col0
----
107236

query I rowsort
SELECT + NULLIF ( + 85, + 50 + 2 ) AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2645
SELECT + CAST( NULL AS SIGNED ) / - + NULLIF ( - 8, ( + 63 ) ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT + CAST ( NULL AS INTEGER ) / - + NULLIF ( - 8, ( + 63 ) ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT ALL 1 DIV 87 + 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL 1 / 87 + 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT + NULLIF ( + MAX( - 83 ), COALESCE ( SUM( DISTINCT 37 ), + 15 + COUNT( * ) * 42 ) ) * 80 AS col1
----
-6640

skipif mysql # not compatible
query I rowsort label-2647
SELECT + NULLIF ( + MAX ( - 83 ), COALESCE ( SUM ( DISTINCT 37 ), + 15 + COUNT ( * ) * 42 ) ) * 80 AS col1
----
-6640

query I rowsort
SELECT + 26 * 47 + + 2 AS col0
----
1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2649
SELECT DISTINCT SUM( - 99 ) DIV - 26 + + 41
----
44

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT SUM ( - 99 ) / - 26 + + 41
----
44

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

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

query I rowsort
SELECT - 92 + - 77 AS col1
----
-169

query I rowsort
SELECT + 4 * 89 col0
----
356

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT ALL 44 DIV + 49 * 22 + - 73
----
-73

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL 44 / + 49 * 22 + - 73
----
-73

query I rowsort
SELECT DISTINCT 13 / + + 57 * CASE - 65 * 21 WHEN - 87 THEN 27 END + 10 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2656
SELECT + 45 / + - 68 * CAST( NULL AS SIGNED ) + ( - CAST( NULL AS DECIMAL ) ) * + 32 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT + 45 / + - 68 * CAST ( NULL AS INTEGER ) + ( - CAST ( NULL AS REAL ) ) * + 32 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL + 87 + + + 48 - - ( - COUNT( * ) + COUNT( * ) ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + 87 + + + 48 - - ( - COUNT ( * ) + COUNT ( * ) ) AS col0
----
135

query I rowsort
SELECT DISTINCT - + NULLIF ( 47, - 3 + 37 )
----
-47

query I rowsort
SELECT 54 * - 63 + + 17 * - 23
----
-3793

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL 37 * - 33 * + MAX( DISTINCT - 87 ) AS col1
----
106227

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL 37 * - 33 * + MAX ( DISTINCT - 87 ) AS col1
----
106227

query I rowsort
SELECT 33 * 32 + - 75
----
981

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT COUNT( * ) + + 91 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2662
SELECT COUNT ( * ) + + 91 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL - + CASE - 19 WHEN + 28 + ( - 7 ) / - 57 THEN NULL WHEN 55 THEN + 14 ELSE NULL END - + COUNT( * ) * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - + CASE - 19 WHEN + 28 + ( - 7 ) / - 57 THEN NULL WHEN 55 THEN + 14 ELSE NULL END - + COUNT ( * ) * 35
----
NULL

query I rowsort
SELECT ALL 21 * 72 + - 11 * 82 AS col0
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT NULLIF ( - + COUNT( * ), 3 * - 16 ) - - 74
----
73

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT NULLIF ( - + COUNT ( * ), 3 * - 16 ) - - 74
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT - CAST( 31 AS SIGNED ) + + 95 col0
----
64

skipif mysql # not compatible
query I rowsort label-2666
SELECT - CAST ( 31 AS INTEGER ) + + 95 col0
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT 79 * - + COUNT( * ) * 93 + + 18 * + 57 AS col0
----
-6321

skipif mysql # not compatible
query I rowsort label-2668
SELECT 79 * - + COUNT ( * ) * 93 + + 18 * + 57 AS col0
----
-6321

query I rowsort
SELECT ALL ( - - 35 ) AS col2
----
35

query I rowsort
SELECT 82 - - - 66 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2671
SELECT DISTINCT - CAST( + 81 AS SIGNED ) * + 42 * - 43
----
146286

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT - CAST ( + 81 AS INTEGER ) * + 42 * - 43
----
146286

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2672
SELECT - 9 AS col0, 55 * + + 94 * 62 + CAST( NULL AS SIGNED ) col2
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-2672
SELECT - 9 AS col0, 55 * + + 94 * 62 + CAST ( NULL AS INTEGER ) col2
----
-9
NULL

query I rowsort
SELECT 40 * + 92
----
3680

query I rowsort
SELECT 50 * + + 15
----
750

query II rowsort
SELECT ALL 67 AS col2, - 72 + + 90
----
67
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT - MIN( DISTINCT - ( - + 57 ) ) * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT - MIN ( DISTINCT - ( - + 57 ) ) * COUNT ( * )
----
-57

query I rowsort
SELECT DISTINCT + 41 * 16 * + ( + 82 )
----
53792

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2679
SELECT ALL 24, - 58 DIV - NULLIF ( + 2, + 91 ) AS col1
----
24
29

skipif mysql # not compatible
query II rowsort label-2679
SELECT ALL 24, - 58 / - NULLIF ( + 2, + 91 ) AS col1
----
24
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT DISTINCT 82 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT 82 / + 56
----
1

query II rowsort
SELECT DISTINCT 27, + 31 + - 30 * + 88 AS col0
----
27
-2609

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

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

query I rowsort
SELECT ( - 77 ) * + + 50 * 84
----
-323400

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT 47, CASE 46 WHEN - COUNT( * ) THEN + 75 * COUNT( * ) END + 91 AS col0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-2684
SELECT 47, CASE 46 WHEN - COUNT ( * ) THEN + 75 * COUNT ( * ) END + 91 AS col0
----
47
NULL

query II rowsort
SELECT + 44, 51 + 22 + 39 * + 57 AS col1
----
44
2296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT 78 / - + ( + 74 ) * + 85 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT 78 / - + ( + 74 ) * + 85 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL CASE - CASE + 97 WHEN - 36 THEN NULL WHEN - 46 + - 24 * 97 THEN 36 WHEN - COUNT( * ) THEN 68 END WHEN 4 * ( 56 ) THEN NULL ELSE COALESCE ( + 31, 45 ) + SUM( 77 ) END + - 65 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL CASE - CASE + 97 WHEN - 36 THEN NULL WHEN - 46 + - 24 * 97 THEN 36 WHEN - COUNT ( * ) THEN 68 END WHEN 4 * ( 56 ) THEN NULL ELSE COALESCE ( + 31, 45 ) + SUM ( 77 ) END + - 65 AS col0
----
43

query I rowsort
SELECT 91 * - - 78 AS col1
----
7098

query I rowsort
SELECT ALL - 79 + + 15 - 90 AS col0
----
-154

query I rowsort
SELECT DISTINCT 9 + 4
----
13

query I rowsort
SELECT DISTINCT - 58 * 25 AS col0
----
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT 10 + 98 - + COUNT( * ) * 3 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-2692
SELECT 10 + 98 - + COUNT ( * ) * 3 AS col2
----
105

query II rowsort
SELECT 52, + 21 AS col0
----
52
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT + COUNT( - 50 ) DIV - 27 + 29 * - 79 AS col2
----
-2291

skipif mysql # not compatible
query I rowsort label-2694
SELECT + COUNT ( - 50 ) / - 27 + 29 * - 79 AS col2
----
-2291

query I rowsort
SELECT ALL - CASE - - 78 WHEN - 20 THEN NULL ELSE - 24 * 99 END - ( - ( + 34 ) ) AS col0
----
2410

query I rowsort
SELECT + 18 * - 18 AS col1
----
-324

query I rowsort
SELECT 48 + 46 + - 18
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT ALL - ( + - 54 ) * + CAST( - 26 AS SIGNED ) * + 59 col1
----
-82836

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL - ( + - 54 ) * + CAST ( - 26 AS INTEGER ) * + 59 col1
----
-82836

query I rowsort
SELECT + 45 + + 84 AS col1
----
129

query I rowsort
SELECT ALL 28 - 31 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL + + COUNT( * ) * - - 29 + + 38 + 85 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL + + COUNT ( * ) * - - 29 + + 38 + 85 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT COALESCE ( - 70, 56 * + COUNT( * ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2702
SELECT COALESCE ( - 70, 56 * + COUNT ( * ) ) AS col1
----
-70

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

skipif mysql # not compatible
query I rowsort label-2703
SELECT 70 * + COUNT ( * ) * 32 + COUNT ( * ) AS col1
----
2241

query I rowsort
SELECT - 11 + - 23 + - - 64 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL - + CASE + 54 WHEN COUNT( * ) THEN 73 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - + CASE + 54 WHEN COUNT ( * ) THEN 73 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2707
SELECT - COALESCE ( 56, + 23 + MIN( - 6 ), + 67 DIV 78 + 38 * - 56 ) + - 25 * 73
----
-1881

skipif mysql # not compatible
query I rowsort label-2707
SELECT - COALESCE ( 56, + 23 + MIN ( - 6 ), + 67 / 78 + 38 * - 56 ) + - 25 * 73
----
-1881

query I rowsort
SELECT + 34 * - 22
----
-748

query I rowsort
SELECT - - 42 * 84 + 66 AS col2
----
3594

query I rowsort
SELECT + 8 + - + 90
----
-82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT - CAST( 24 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2712
SELECT - CAST ( 24 AS INTEGER ) AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT ALL 65 * COALESCE ( + 93, + 25 * + 2, 21 * - 27 - CAST( NULL AS SIGNED ) * + ( + 1 ) ) AS col1
----
6045

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL 65 * COALESCE ( + 93, + 25 * + 2, 21 * - 27 - CAST ( NULL AS INTEGER ) * + ( + 1 ) ) AS col1
----
6045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2714
SELECT DISTINCT COALESCE ( + 91, + - COUNT( + 61 ) ) + + NULLIF ( 48, + 63 + + NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) ) ) * - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT COALESCE ( + 91, + - COUNT ( + 61 ) ) + + NULLIF ( 48, + 63 + + NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) ) * - COUNT ( * )
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT 60 + CAST( + 67 AS SIGNED ) * + - COUNT( + 81 )
----
-7

skipif mysql # not compatible
query I rowsort label-2716
SELECT 60 + CAST ( + 67 AS INTEGER ) * + - COUNT ( + 81 )
----
-7

query I rowsort
SELECT DISTINCT - 64 + 21 AS col0
----
-43

query I rowsort
SELECT 69 + - 63
----
6

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

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

query I rowsort
SELECT ALL - 82 + - NULLIF ( - 33, - 56 ) * + 81 AS col1
----
2591

query I rowsort
SELECT 46 + + + 25
----
71

query I rowsort
SELECT ALL + 19 + + - 26 + COALESCE ( 5, + 43 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT DISTINCT + 10 + - - 13 * - + ( - - MAX( 66 ) ) * - NULLIF ( - ( 1 ) * 3, - 55 ) AS col2
----
-2564

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT + 10 + - - 13 * - + ( - - MAX ( 66 ) ) * - NULLIF ( - ( 1 ) * 3, - 55 ) AS col2
----
-2564

query I rowsort
SELECT 65 + + 80 + 11 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT 1 * CASE + - COUNT( * ) WHEN - 12 / COUNT( * ) THEN NULL ELSE + 52 + + 64 END
----
116

skipif mysql # not compatible
query I rowsort label-2725
SELECT 1 * CASE + - COUNT ( * ) WHEN - 12 / COUNT ( * ) THEN NULL ELSE + 52 + + 64 END
----
116

query I rowsort
SELECT DISTINCT - 37 * 84
----
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT DISTINCT - 65 + - - COUNT( * ) + + 19 * 35 * 53
----
35181

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT - 65 + - - COUNT ( * ) + + 19 * 35 * 53
----
35181

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT ALL - 47 + 37 AS col0, + COUNT( * ) + - 46
----
-10
-45

skipif mysql # not compatible
query II rowsort label-2729
SELECT ALL - 47 + 37 AS col0, + COUNT ( * ) + - 46
----
-10
-45

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

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

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

query I rowsort
SELECT ALL + NULLIF ( + 11, - 81 + - 22 ) col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT + MAX( 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2733
SELECT + MAX ( 57 ) AS col0
----
57

query I rowsort
SELECT ALL + + ( + 65 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT DISTINCT + 46 * - COUNT( * ) - - 24 + - - CAST( 24 AS SIGNED ) * - 15
----
-382

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT + 46 * - COUNT ( * ) - - 24 + - - CAST ( 24 AS INTEGER ) * - 15
----
-382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2736
SELECT CASE + CASE - 50 WHEN + + CAST( - SUM( CAST( NULL AS SIGNED ) ) AS SIGNED ) * - ( - 90 + 16 ) + CAST( NULL AS DECIMAL ) THEN NULL ELSE - CASE 42 WHEN - 91 THEN + 48 ELSE NULL END END WHEN - 54 + + 11 THEN 47 * ( - 44 * 35 ) + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT CASE + CASE - 50 WHEN + + CAST ( - SUM ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - ( - 90 + 16 ) + CAST ( NULL AS REAL ) THEN NULL ELSE - CASE 42 WHEN - 91 THEN + 48 ELSE NULL END END WHEN - 54 + + 11 THEN 47 * ( - 44 * 35 ) + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT - 87 DIV - + 7 + + 10 + + 81 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-2737
SELECT - 87 / - + 7 + + 10 + + 81 AS col2
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT ALL - 3 * - 58 - + 67 DIV + + 76 AS col0
----
174

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - 3 * - 58 - + 67 / + + 76 AS col0
----
174

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

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

query II rowsort
SELECT ALL + + ( + + 70 ) AS col2, ( 46 ) * 25
----
70
1150

query I rowsort
SELECT DISTINCT 55 * - 68 AS col2
----
-3740

onlyif mysql # aggregate syntax: 
query II rowsort label-2742
SELECT ALL + - MIN( + 76 ), + 32 AS col0
----
-76
32

skipif mysql # not compatible
query II rowsort label-2742
SELECT ALL + - MIN ( + 76 ), + 32 AS col0
----
-76
32

query I rowsort
SELECT DISTINCT - + 32 * + + 14 - + 67 AS col0
----
-515

query I rowsort
SELECT DISTINCT - + 24 * 35
----
-840

query I rowsort
SELECT DISTINCT + - NULLIF ( + 40, + - 49 )
----
-40

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

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

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

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

query I rowsort
SELECT DISTINCT + 1 * 65 * 25 + 70 + 45 * 37 col0
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL COUNT( - 61 ) * - 25 + 76 col1
----
51

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL COUNT ( - 61 ) * - 25 + 76 col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT ALL 47 + 54 + - COALESCE ( 66, - + 81 * CAST( NULL AS SIGNED ) ) * + NULLIF ( - 47, 62 * - 83 ) AS col1
----
3203

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL 47 + 54 + - COALESCE ( 66, - + 81 * CAST ( NULL AS INTEGER ) ) * + NULLIF ( - 47, 62 * - 83 ) AS col1
----
3203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2751
SELECT - COALESCE ( + + 0, - 68, - - 72 + - - 97, - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT - COALESCE ( + + 0, - 68, - - 72 + - - 97, - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + 23 * + - 26
----
-598

query I rowsort
SELECT ALL 53 + + - 55 * + 16 + - - 34
----
-793

query I rowsort
SELECT ALL 11 + - + 83 * + 32
----
-2645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT + 35 * + - CAST( - 20 AS SIGNED ) * - 1 * - NULLIF ( 74, 89 ) * 45 col1
----
2331000

skipif mysql # not compatible
query I rowsort label-2755
SELECT + 35 * + - CAST ( - 20 AS INTEGER ) * - 1 * - NULLIF ( 74, 89 ) * 45 col1
----
2331000

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL MAX( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL MAX ( 53 )
----
53

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

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

query I rowsort
SELECT - 75 * + - 99 col2
----
7425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT ALL - CASE + + COALESCE ( - - 9, 63 + 49 * + 59 ) WHEN 35 * CAST( - 82 AS SIGNED ) - 14 THEN + 47 END + + 7 * + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - CASE + + COALESCE ( - - 9, 63 + 49 * + 59 ) WHEN 35 * CAST ( - 82 AS INTEGER ) - 14 THEN + 47 END + + 7 * + 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 10 * + 98 col1
----
980

query I rowsort
SELECT DISTINCT - 33 + 90
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT DISTINCT MAX( - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT MAX ( - 32 ) AS col1
----
-32

query I rowsort
SELECT DISTINCT - COALESCE ( - + 59, + + CASE - 76 WHEN - 80 THEN NULL WHEN 87 THEN 48 * + 81 ELSE NULL END * 98 ) - + 73 * 85
----
-6146

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

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

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

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

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

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

query I rowsort
SELECT - 9 * + + 90 col0
----
-810

query I rowsort
SELECT ALL + 16 * 16
----
256

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2770
SELECT ALL + + 51 * + COUNT( DISTINCT - 68 ) AS col1, - ( - COUNT( 5 ) ) * - CAST( NULL AS SIGNED ) AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-2770
SELECT ALL + + 51 * + COUNT ( DISTINCT - 68 ) AS col1, - ( - COUNT ( 5 ) ) * - CAST ( NULL AS INTEGER ) AS col1
----
51
NULL

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

query II rowsort
SELECT ALL + 18, + 62 * 70 * - - 45 AS col1
----
18
195300

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

query I rowsort
SELECT ALL + - 84 * - + 54 AS col1
----
4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT - - NULLIF ( - CAST( + 57 AS SIGNED ), ( SUM( DISTINCT - 18 ) ) ) * 55 AS col1
----
-3135

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - - NULLIF ( - CAST ( + 57 AS INTEGER ), ( SUM ( DISTINCT - 18 ) ) ) * 55 AS col1
----
-3135

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2777
SELECT + 59 AS col1, + 3 * - 32 + - 16 + + 94 + + NULLIF ( + NULLIF ( - 83, 72 ), - 57 + - ( CASE + 21 WHEN - 88 THEN 8 + 3 WHEN ( - ( 4 ) ) THEN + 43 END ) ) DIV + 85 * 20 AS col2
----
59
-18

skipif mysql # not compatible
query II rowsort label-2777
SELECT + 59 AS col1, + 3 * - 32 + - 16 + + 94 + + NULLIF ( + NULLIF ( - 83, 72 ), - 57 + - ( CASE + 21 WHEN - 88 THEN 8 + 3 WHEN ( - ( 4 ) ) THEN + 43 END ) ) / + 85 * 20 AS col2
----
59
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT - + COUNT( * ) * - + 32 * 35 + - 3
----
1117

skipif mysql # not compatible
query I rowsort label-2778
SELECT - + COUNT ( * ) * - + 32 * 35 + - 3
----
1117

query I rowsort
SELECT + 63 - + 57 AS col1
----
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2781
SELECT 68 * - COALESCE ( + COALESCE ( 75, CASE + COUNT( * ) WHEN 99 THEN NULL WHEN - COUNT( * ) - 5 THEN - 66 * + ( 1 ) WHEN - 14 THEN 49 END * 63, 18, 47 ), 79, - 67 * 70 + COALESCE ( COUNT( * ), + 83, 97, + 59 ) ) + + 50 DIV + 65 + + 62
----
-5038

skipif mysql # not compatible
query I rowsort label-2781
SELECT 68 * - COALESCE ( + COALESCE ( 75, CASE + COUNT ( * ) WHEN 99 THEN NULL WHEN - COUNT ( * ) - 5 THEN - 66 * + ( 1 ) WHEN - 14 THEN 49 END * 63, 18, 47 ), 79, - 67 * 70 + COALESCE ( COUNT ( * ), + 83, 97, + 59 ) ) + + 50 / + 65 + + 62
----
-5038

query II rowsort
SELECT + 60 AS col2, 58 AS col2
----
60
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT - 30 + + + COALESCE ( + COALESCE ( + + COUNT( * ), - 80 ), + 33 * - SUM( 70 * 93 ) ) * - 54
----
-84

skipif mysql # not compatible
query I rowsort label-2784
SELECT - 30 + + + COALESCE ( + COALESCE ( + + COUNT ( * ), - 80 ), + 33 * - SUM ( 70 * 93 ) ) * - 54
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL 96 * 28 + 84 + - ( + - ( - COUNT( DISTINCT - 62 ) ) ) AS col2
----
2771

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL 96 * 28 + 84 + - ( + - ( - COUNT ( DISTINCT - 62 ) ) ) AS col2
----
2771

query I rowsort
SELECT DISTINCT 54 * 13 * + - 59 + 99
----
-41319

query II rowsort
SELECT ALL + 40, 29 AS col2
----
40
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT - COUNT( * ) * 43 col1
----
-43

skipif mysql # not compatible
query I rowsort label-2788
SELECT - COUNT ( * ) * 43 col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2789
SELECT - COUNT( * ) DIV COUNT( * ) col0, - 71 * CASE + + 20 WHEN + 5 - + 26 THEN NULL WHEN 74 + CAST( CASE - CAST( + 95 AS SIGNED ) WHEN 54 DIV 27 THEN - 96 * - AVG ( + ( 71 ) DIV 94 ) WHEN - ( - 10 ) THEN NULL ELSE - 39 DIV MIN( + 47 ) END AS SIGNED ) THEN NULL WHEN 13 + + 95 * 69 THEN - 75 * 8 ELSE - 39 END + + 72 AS col1
----
-1
2841

skipif mysql # not compatible
query II rowsort label-2789
SELECT - COUNT ( * ) / COUNT ( * ) col0, - 71 * CASE + + 20 WHEN + 5 - + 26 THEN NULL WHEN 74 + CAST ( CASE - CAST ( + 95 AS INTEGER ) WHEN 54 / 27 THEN - 96 * - AVG ( + ( 71 ) / 94 ) WHEN - ( - 10 ) THEN NULL ELSE - 39 / MIN ( + 47 ) END AS INTEGER ) THEN NULL WHEN 13 + + 95 * 69 THEN - 75 * 8 ELSE - 39 END + + 72 AS col1
----
-1
2841

onlyif mysql # aggregate syntax: 
query II rowsort label-2790
SELECT - COUNT( * ) col2, - 15
----
-1
-15

skipif mysql # not compatible
query II rowsort label-2790
SELECT - COUNT ( * ) col2, - 15
----
-1
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + 0 + - MAX( DISTINCT + 15 ) + + 8 * + 57 * - 11 AS col1
----
-5031

skipif mysql # not compatible
query I rowsort label-2791
SELECT + 0 + - MAX ( DISTINCT + 15 ) + + 8 * + 57 * - 11 AS col1
----
-5031

query I rowsort
SELECT NULLIF ( 36, + 93 )
----
36

query I rowsort
SELECT CASE + 60 WHEN - 9 THEN + 6 END
----
NULL

query I rowsort
SELECT + 76 + 89 AS col0
----
165

query I rowsort
SELECT ALL 58 + + 40 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT ( + 31 ) DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT ( + 31 ) / 95 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2797
SELECT ALL MAX( DISTINCT + + 44 ) DIV COUNT( * ) DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL MAX ( DISTINCT + + 44 ) / COUNT ( * ) / + 35
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT 81 + - MIN( + 89 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2799
SELECT 81 + - MIN ( + 89 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT DISTINCT ( - 6 ) - - MIN( ALL 51 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT ( - 6 ) - - MIN ( ALL 51 ) AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2801
SELECT COUNT( * ) + COUNT( * ) + - + 98 DIV - 99 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2801
SELECT COUNT ( * ) + COUNT ( * ) + - + 98 / - 99 AS col0
----
2

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

skipif mysql # not compatible
query I rowsort label-2802
SELECT - - SUM ( ALL 29 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT 84 + + 90 DIV 70 * + 26 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-2803
SELECT 84 + + 90 / 70 * + 26 AS col2
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT - 89 * 25 * - ( + - 20 ) + - - 39 + - 60 - + 88 DIV 66
----
-44522

skipif mysql # not compatible
query I rowsort label-2804
SELECT - 89 * 25 * - ( + - 20 ) + - - 39 + - 60 - + 88 / 66
----
-44522

onlyif mysql # DIV for integer division: 
query II rowsort label-2805
SELECT ALL + 18 * + 37, - 21 DIV - 40 + + ( - + 58 ) AS col2
----
666
-58

skipif mysql # not compatible
query II rowsort label-2805
SELECT ALL + 18 * + 37, - 21 / - 40 + + ( - + 58 ) AS col2
----
666
-58

query II rowsort
SELECT DISTINCT - 5 col2, 57 AS col2
----
-5
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL NULLIF ( - COUNT( * ), + 32 * - 19 + - + SUM( + 58 ) + + 81 / - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL NULLIF ( - COUNT ( * ), + 32 * - 19 + - + SUM ( + 58 ) + + 81 / - 18 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT + CASE - - 46 WHEN + + NULLIF ( CAST( + + 32 AS SIGNED ), ( + 36 ) ) - + NULLIF ( - 78, - 46 ) THEN 0 * COALESCE ( - 56 * 69, + 61 * + COUNT( * ) ) WHEN 72 THEN NULL WHEN - 87 - 6 THEN + 46 END * 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT + CASE - - 46 WHEN + + NULLIF ( CAST ( + + 32 AS INTEGER ), ( + 36 ) ) - + NULLIF ( - 78, - 46 ) THEN 0 * COALESCE ( - 56 * 69, + 61 * + COUNT ( * ) ) WHEN 72 THEN NULL WHEN - 87 - 6 THEN + 46 END * 28 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT - 40 * COUNT( * ) * - + 39 * - ( - 86 ) + + CAST( NULL AS SIGNED )
----
NULL

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

query II rowsort
SELECT 21 AS col2, + 89 AS col1
----
21
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT 2 * + ( + - MIN( DISTINCT + + 38 ) ) * + + 28 * - 7 + 86 + + 88 AS col2
----
15070

skipif mysql # not compatible
query I rowsort label-2811
SELECT 2 * + ( + - MIN ( DISTINCT + + 38 ) ) * + + 28 * - 7 + 86 + + 88 AS col2
----
15070

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - 61 + - + 95 + + - 1 * - - MIN( ALL - + 9 ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-2812
SELECT - 61 + - + 95 + + - 1 * - - MIN ( ALL - + 9 ) AS col1
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2813
SELECT DISTINCT + - 6 + - 37 * - 20 * 32, CAST( NULL AS SIGNED ) * + - 99 * + CASE - NULLIF ( MAX( 73 ), + 22 ) WHEN + 52 THEN 36 * 64 WHEN - 30 / - 62 THEN NULL END AS col0
----
23674
NULL

skipif mysql # not compatible
query II rowsort label-2813
SELECT DISTINCT + - 6 + - 37 * - 20 * 32, CAST ( NULL AS INTEGER ) * + - 99 * + CASE - NULLIF ( MAX ( 73 ), + 22 ) WHEN + 52 THEN 36 * 64 WHEN - 30 / - 62 THEN NULL END AS col0
----
23674
NULL

query I rowsort
SELECT ALL - - 44 + CASE - 88 WHEN 50 * - 15 + + 19 THEN NULL WHEN + 96 THEN 87 + + 33 END * 74
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2816
SELECT ALL - CAST( NULL AS SIGNED ), + NULLIF ( + COUNT( * ), - + ( - + 60 ) * - 67 ) * - 37 AS col2
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2816
SELECT ALL - CAST ( NULL AS INTEGER ), + NULLIF ( + COUNT ( * ), - + ( - + 60 ) * - 67 ) * - 37 AS col2
----
NULL
-37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2818
SELECT ALL - 12 AS col2, - MAX( + 82 ) DIV + 48
----
-12
-1

skipif mysql # not compatible
query II rowsort label-2818
SELECT ALL - 12 AS col2, - MAX ( + 82 ) / + 48
----
-12
-1

query I rowsort
SELECT ALL + 51 + - - ( 89 ) AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL - + 64 + + MIN( DISTINCT - 91 ) + - + 99
----
-254

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL - + 64 + + MIN ( DISTINCT - 91 ) + - + 99
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT 59 * - + SUM( + - 93 ) AS col1
----
5487

skipif mysql # not compatible
query I rowsort label-2821
SELECT 59 * - + SUM ( + - 93 ) AS col1
----
5487

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT + 51 + - COUNT( * ) * + 18 + - - 62 + + 71 * + 63 * + ( 9 ) + 7
----
40359

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT + 51 + - COUNT ( * ) * + 18 + - - 62 + + 71 * + 63 * + ( 9 ) + 7
----
40359

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT ALL + COUNT( * ) - 43 AS col1, 74 * + SUM( DISTINCT - 95 )
----
-42
-7030

skipif mysql # not compatible
query II rowsort label-2823
SELECT ALL + COUNT ( * ) - 43 AS col1, 74 * + SUM ( DISTINCT - 95 )
----
-42
-7030

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT 85 * + COALESCE ( - 86, + MAX( 34 ), + COUNT( * ), - + ( 48 ) * CASE - COUNT( * ) / + 42 WHEN 91 * + 50 THEN NULL ELSE 94 * COUNT( * ) END ) AS col2
----
-7310

skipif mysql # not compatible
query I rowsort label-2824
SELECT 85 * + COALESCE ( - 86, + MAX ( 34 ), + COUNT ( * ), - + ( 48 ) * CASE - COUNT ( * ) / + 42 WHEN 91 * + 50 THEN NULL ELSE 94 * COUNT ( * ) END ) AS col2
----
-7310

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT COUNT( ALL - - 7 ) + + - 40 + + COUNT( * ) + 45 * - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-2825
SELECT COUNT ( ALL - - 7 ) + + - 40 + + COUNT ( * ) + 45 * - COUNT ( * )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2826
SELECT DISTINCT CASE + 73 WHEN + 82 THEN CAST( 49 AS DECIMAL ) WHEN + ( + ( 32 ) ) THEN 26 / + 52 WHEN - 72 - CAST( + 13 AS DECIMAL ) THEN + AVG ( - 28 ) / 13 ELSE NULL END - + CASE - 13 WHEN - CAST( NULL AS SIGNED ) * CAST( ( - 97 ) AS DECIMAL ) THEN NULL WHEN - ( 7 ) THEN + 57 END * + CASE WHEN - 5 IS NOT NULL THEN - 74 ELSE ( + 64 ) - CASE 63 WHEN + 50 / CAST( 55 AS DECIMAL ) + 19 * COUNT( 36 ) THEN 83 / 37 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT CASE + 73 WHEN + 82 THEN CAST ( 49 AS REAL ) WHEN + ( + ( 32 ) ) THEN 26 / + 52 WHEN - 72 - CAST ( + 13 AS REAL ) THEN + AVG ( - 28 ) / 13 ELSE NULL END - + CASE - 13 WHEN - CAST ( NULL AS INTEGER ) * CAST ( ( - 97 ) AS REAL ) THEN NULL WHEN - ( 7 ) THEN + 57 END * + CASE WHEN - 5 IS NOT NULL THEN - 74 ELSE ( + 64 ) - CASE 63 WHEN + 50 / CAST ( 55 AS REAL ) + 19 * COUNT ( 36 ) THEN 83 / 37 END END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 12, + 0 ) * - 97 - + 47 + - + 75 * 25 AS col1
----
-3086

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL + 33 - + 48 * + COALESCE ( COUNT( * ), - + 20 + 1 )
----
-15

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + 33 - + 48 * + COALESCE ( COUNT ( * ), - + 20 + 1 )
----
-15

query I rowsort
SELECT 26 + + 61
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2830
SELECT ( - COUNT( * ) ) DIV CASE COUNT( * ) WHEN + 44 THEN + 85 * - 43 + - 41 ELSE MIN( ALL - 45 ) + + 9 * + MIN( ALL 77 ) END + 41
----
41

skipif mysql # not compatible
query I rowsort label-2830
SELECT ( - COUNT ( * ) ) / CASE COUNT ( * ) WHEN + 44 THEN + 85 * - 43 + - 41 ELSE MIN ( ALL - 45 ) + + 9 * + MIN ( ALL 77 ) END + 41
----
41

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT 99 * - 30 * - 63 + - - 15 * + + COUNT( * ) AS col0
----
187125

skipif mysql # not compatible
query I rowsort label-2833
SELECT 99 * - 30 * - 63 + - - 15 * + + COUNT ( * ) AS col0
----
187125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT + 87 + AVG ( - 4 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT + 87 + AVG ( - 4 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT 48 / - MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT 48 / - MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 79 - 60 * - - 7 * + 10
----
-4121

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT ALL CAST( - - 91 AS SIGNED ) + + - 20 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL CAST ( - - 91 AS INTEGER ) + + - 20 AS col1
----
71

query I rowsort
SELECT - + NULLIF ( - 56, + 61 + - - 43 )
----
56

query II rowsort
SELECT ALL + 15 + 95 AS col2, 66
----
110
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2841
SELECT + CAST( 80 AS SIGNED ), + CAST( + - 23 AS SIGNED ) + + 50 AS col1
----
80
27

skipif mysql # not compatible
query II rowsort label-2841
SELECT + CAST ( 80 AS INTEGER ), + CAST ( + - 23 AS INTEGER ) + + 50 AS col1
----
80
27

query I rowsort
SELECT ALL 4 * + 78 + + 5
----
317

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT COALESCE ( - - 54, MAX( ALL ( - 71 ) ) ) - - 41 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2843
SELECT COALESCE ( - - 54, MAX ( ALL ( - 71 ) ) ) - - 41 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL - ( MIN( DISTINCT + + 54 ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL - ( MIN ( DISTINCT + + 54 ) ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT DISTINCT - - 63 * + - 63 / + 50 + + 63 + CASE + - CASE + 33 WHEN - COUNT( 93 ) * + 38 + - 13 THEN NULL ELSE + CASE - 18 WHEN - 5 THEN + ( - 99 ) WHEN - 43 * + CAST( NULL AS SIGNED ) THEN 14 END / - 28 + + 32 * NULLIF ( 84 + 55 * - ( 10 ), - 41 - 60 ) END WHEN - 11 THEN CAST( NULL AS SIGNED ) + 72 * 61 ELSE NULL END * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT - - 63 * + - 63 / + 50 + + 63 + CASE + - CASE + 33 WHEN - COUNT ( 93 ) * + 38 + - 13 THEN NULL ELSE + CASE - 18 WHEN - 5 THEN + ( - 99 ) WHEN - 43 * + CAST ( NULL AS INTEGER ) THEN 14 END / - 28 + + 32 * NULLIF ( 84 + 55 * - ( 10 ), - 41 - 60 ) END WHEN - 11 THEN CAST ( NULL AS INTEGER ) + 72 * 61 ELSE NULL END * 92 AS col0
----
NULL

query I rowsort
SELECT ALL + 74 * + - 96 + - 38 AS col1
----
-7142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2847
SELECT - NULLIF ( - COALESCE ( + 74, ( + 40 ) * + - 6 ), + 4 * - COUNT( * ) ) DIV + 65 + + 28 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2847
SELECT - NULLIF ( - COALESCE ( + 74, ( + 40 ) * + - 6 ), + 4 * - COUNT ( * ) ) / + 65 + + 28 AS col1
----
29

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

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

query I rowsort
SELECT ALL - + 17 col2
----
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT + 53 DIV + 92 + + 34 + - 5
----
29

skipif mysql # not compatible
query I rowsort label-2851
SELECT + 53 / + 92 + + 34 + - 5
----
29

query II rowsort
SELECT ALL + 11 AS col1, + 11 AS col2
----
11
11

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

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

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

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

query I rowsort
SELECT ALL + ( + 80 ) AS col1
----
80

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2857
SELECT - 34 * 76 * - + 3 AS col1, - MIN( - + 92 ) col1
----
7752
92

skipif mysql # not compatible
query II rowsort label-2857
SELECT - 34 * 76 * - + 3 AS col1, - MIN ( - + 92 ) col1
----
7752
92

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

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

query I rowsort
SELECT - 10 * + 81 AS col0
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - 87 + - COUNT( DISTINCT - 51 ) + 96 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2860
SELECT - 87 + - COUNT ( DISTINCT - 51 ) + 96 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT DISTINCT CASE + 27 WHEN - 94 THEN - 55 * + 30 ELSE - CAST( - - 43 AS SIGNED ) END AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT CASE + 27 WHEN - 94 THEN - 55 * + 30 ELSE - CAST ( - - 43 AS INTEGER ) END AS col0
----
-43

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

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

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL MIN ( ALL 18 )
----
18

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT - 80 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT - 80 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2868
SELECT DISTINCT - + COUNT( * ) * - + ( - 38 ) AS col2, 86
----
-38
86

skipif mysql # not compatible
query II rowsort label-2868
SELECT DISTINCT - + COUNT ( * ) * - + ( - 38 ) AS col2, 86
----
-38
86

query I rowsort
SELECT - 37 - + - 61 * + ( 71 ) AS col1
----
4294

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - + 65 + NULLIF ( - COUNT( * ), - 25 ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - + 65 + NULLIF ( - COUNT ( * ), - 25 ) col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2871
SELECT - + COALESCE ( + COUNT( * ), - - 41, - 26 ) + CAST( + 80 AS SIGNED ) col2, 9 + COUNT( * ) * COUNT( * ) AS col0
----
79
10

skipif mysql # not compatible
query II rowsort label-2871
SELECT - + COALESCE ( + COUNT ( * ), - - 41, - 26 ) + CAST ( + 80 AS INTEGER ) col2, 9 + COUNT ( * ) * COUNT ( * ) AS col0
----
79
10

query I rowsort
SELECT + + 25 - - 55 AS col0
----
80

query I rowsort
SELECT DISTINCT 95 + - - 83 col1
----
178

query I rowsort
SELECT ALL 99 + - - 18
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT - MAX( + ( - 14 ) ) + + 25 + - 94
----
-55

skipif mysql # not compatible
query I rowsort label-2875
SELECT - MAX ( + ( - 14 ) ) + + 25 + - 94
----
-55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT - 82 + - CAST( NULL AS SIGNED ) * - 84 + - ( + COUNT( - ( 5 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT - 82 + - CAST ( NULL AS INTEGER ) * - 84 + - ( + COUNT ( - ( 5 ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT DISTINCT - 53 DIV 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT - 53 / 77 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT DISTINCT - NULLIF ( 90, 50 * - - 93 * - CAST( NULL AS SIGNED ) - 39 - + 78 ) + 11 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT - NULLIF ( 90, 50 * - - 93 * - CAST ( NULL AS INTEGER ) - 39 - + 78 ) + 11 AS col2
----
-79

query I rowsort
SELECT + - 98 * - + 39 - + 99 * + 24
----
1446

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2881
SELECT DISTINCT - CAST( 35 AS SIGNED ) DIV CASE 25 WHEN - 30 + 12 THEN NULL ELSE + 52 * - 72 * + 18 END
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT - CAST ( 35 AS INTEGER ) / CASE 25 WHEN - 30 + 12 THEN NULL ELSE + 52 * - 72 * + 18 END
----
0

query I rowsort
SELECT - + 29 * + 15 * 15
----
-6525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT + - 99 * 1 + CAST( NULL AS SIGNED ) + + 4 * 75 + + 59 + - + 1 - - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT + - 99 * 1 + CAST ( NULL AS INTEGER ) + + 4 * 75 + + 59 + - + 1 - - 89 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT + 37 * - CAST( - + CASE + 53 WHEN + + 33 + COUNT( * ) * CAST( NULL AS SIGNED ) THEN + 4 ELSE 61 END AS SIGNED )
----
2257

skipif mysql # not compatible
query I rowsort label-2884
SELECT + 37 * - CAST ( - + CASE + 53 WHEN + + 33 + COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN + 4 ELSE 61 END AS INTEGER )
----
2257

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL - 59 * - - ( + CASE + - MAX( ( + 38 ) ) WHEN - + 64 THEN + - 92 * + COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - 59 * - - ( + CASE + - MAX ( ( + 38 ) ) WHEN - + 64 THEN + - 92 * + COUNT ( * ) END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT + COALESCE ( 21, + + 80 DIV - 70 + - 51, - 13 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2886
SELECT + COALESCE ( 21, + + 80 / - 70 + - 51, - 13 ) AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2887
SELECT 48 DIV + + 83 + - 24 + + 8
----
-16

skipif mysql # not compatible
query I rowsort label-2887
SELECT 48 / + + 83 + - 24 + + 8
----
-16

query I rowsort
SELECT + 88 * - - 73 * - 41 AS col1
----
-263384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2889
SELECT ALL - 60 * - COALESCE ( 97, + 13 * - ( 37 ) + - 85 DIV - 41 + - ( ( - ( 7 ) ) ) ) * + ( - SUM( DISTINCT + 17 ) )
----
-98940

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - 60 * - COALESCE ( 97, + 13 * - ( 37 ) + - 85 / - 41 + - ( ( - ( 7 ) ) ) ) * + ( - SUM ( DISTINCT + 17 ) )
----
-98940

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT + ( + NULLIF ( - 4, - 92 ) ) AS col1, - COUNT( * ) * - - 52
----
-4
-52

skipif mysql # not compatible
query II rowsort label-2890
SELECT + ( + NULLIF ( - 4, - 92 ) ) AS col1, - COUNT ( * ) * - - 52
----
-4
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL 42 * + 2 - - 44 + + ( MAX( + 11 ) ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 42 * + 2 - - 44 + + ( MAX ( + 11 ) ) AS col1
----
139

query I rowsort
SELECT + 58 * + + 5 * + 77 AS col2
----
22330

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT CASE + NULLIF ( + + 36, + - 92 / + 19 + 49 / - 5 ) WHEN - - COUNT( * ) THEN 62 WHEN 54 + - 65 THEN - 30 * + 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT CASE + NULLIF ( + + 36, + - 92 / + 19 + 49 / - 5 ) WHEN - - COUNT ( * ) THEN 62 WHEN 54 + - 65 THEN - 30 * + 8 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2894
SELECT - 11 / + COUNT ( * ) * + - COUNT ( * )
----
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT + 75 DIV - 2 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2896
SELECT + 75 / - 2 AS col1
----
-37

query I rowsort
SELECT DISTINCT - 53 * - 30 * - 76
----
-120840

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT + 60 * - + COUNT( * ) + + 14 - + - 36 DIV - 48 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT + 60 * - + COUNT ( * ) + + 14 - + - 36 / - 48 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL COUNT( * ) * - 77 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL COUNT ( * ) * - 77 AS col2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT - 45 DIV + 12
----
-3

skipif mysql # not compatible
query I rowsort label-2901
SELECT - 45 / + 12
----
-3

query I rowsort
SELECT ALL - 89 * + NULLIF ( + 38, - 91 ) + - - 55 - + - 28 * 17 * - + 0 + 77 col1
----
-3250

query I rowsort
SELECT + COALESCE ( 18, - 86 ) AS col0
----
18

query I rowsort
SELECT - 0 + + ( - + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT + COUNT( * ) + + - MIN( - 58 )
----
59

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT + COUNT ( * ) + + - MIN ( - 58 )
----
59

query I rowsort
SELECT NULLIF ( + 45, 56 )
----
45

query II rowsort
SELECT DISTINCT + ( - 30 ) AS col2, - 32 * + - 7
----
-30
224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT ALL - + 37 * + - COUNT( * ) * - + 51 DIV + 50
----
-37

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - + 37 * + - COUNT ( * ) * - + 51 / + 50
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT ALL - COUNT( * ) + + 79 AS col2, 97
----
78
97

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL - COUNT ( * ) + + 79 AS col2, 97
----
78
97

query I rowsort
SELECT - + 33 - + 43 col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT ALL - CASE 22 WHEN CAST( NULL AS SIGNED ) THEN 2 + + + COALESCE ( + 60, - 5 ) ELSE MAX( - 41 ) + - 51 END * - COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL - CASE 22 WHEN CAST ( NULL AS INTEGER ) THEN 2 + + + COALESCE ( + 60, - 5 ) ELSE MAX ( - 41 ) + - 51 END * - COUNT ( * ) AS col2
----
-92

query I rowsort
SELECT - - 58 - 51
----
7

query II rowsort
SELECT - 83 * - 75 AS col1, - 27 - 91 AS col0
----
6225
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2914
SELECT ALL - - CAST( + 33 AS SIGNED ) AS col1, MIN( ALL - 97 ) / + NULLIF ( + CAST( NULL AS SIGNED ), 10 )
----
33
NULL

skipif mysql # not compatible
query II rowsort label-2914
SELECT ALL - - CAST ( + 33 AS INTEGER ) AS col1, MIN ( ALL - 97 ) / + NULLIF ( + CAST ( NULL AS INTEGER ), 10 )
----
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT 80 - - COALESCE ( 11, - 77 * + MAX( ALL + 66 ) * - ( - 54 ), + 29 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2915
SELECT 80 - - COALESCE ( 11, - 77 * + MAX ( ALL + 66 ) * - ( - 54 ), + 29 ) AS col0
----
91

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

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL COUNT ( * ) / - + 52
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT + 57 * - 5 - - 7 * - 22 + - COUNT( * ) DIV 29 AS col0
----
-439

skipif mysql # not compatible
query I rowsort label-2917
SELECT + 57 * - 5 - - 7 * - 22 + - COUNT ( * ) / 29 AS col0
----
-439

query I rowsort
SELECT ALL - NULLIF ( 71, + 71 ) AS col1
----
NULL

query I rowsort
SELECT 10 * 22 AS col1
----
220

query I rowsort
SELECT COALESCE ( + 5, + - 50 ) * - 15
----
-75

query I rowsort
SELECT 84 + + + 11 AS col1
----
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2923
SELECT 0 * + + ( 35 ) / 60 + - CAST( NULL AS SIGNED ), 9 AS col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-2923
SELECT 0 * + + ( 35 ) / 60 + - CAST ( NULL AS INTEGER ), 9 AS col0
----
NULL
9

query I rowsort
SELECT 36 * + 43
----
1548

query I rowsort
SELECT DISTINCT 28 * - 15
----
-420

query I rowsort
SELECT 25 * - 24 AS col1
----
-600

query I rowsort
SELECT ( + 37 ) + + + 15 + - 83 + - - 96 * + + 91 AS col1
----
8705

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT DISTINCT 92 * - ( + MIN( DISTINCT - + 31 ) )
----
2852

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT 92 * - ( + MIN ( DISTINCT - + 31 ) )
----
2852

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

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL COUNT ( * ) + 49 AS col2
----
50

query I rowsort
SELECT 30 * + 79 + 24 AS col2
----
2394

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT ALL 59 DIV 5
----
11

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL 59 / 5
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT DISTINCT + CAST( + - 93 AS SIGNED ) * + 13 AS col1
----
-1209

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT + CAST ( + - 93 AS INTEGER ) * + 13 AS col1
----
-1209

onlyif mysql # DIV for integer division: 
query II rowsort label-2933
SELECT ALL + 10 AS col1, - 27 DIV 73
----
10
0

skipif mysql # not compatible
query II rowsort label-2933
SELECT ALL + 10 AS col1, - 27 / 73
----
10
0

query I rowsort
SELECT 54 + + 8 AS col0
----
62

query I rowsort
SELECT DISTINCT - 17 + - 7
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL + + CASE + + COALESCE ( - 62, 97 + - - 67 ) WHEN - 92 THEN - COALESCE ( - 30, 54 + + 20 + 46, - 83 ) ELSE + 19 END * COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL + + CASE + + COALESCE ( - 62, 97 + - - 67 ) WHEN - 92 THEN - COALESCE ( - 30, 54 + + 20 + 46, - 83 ) ELSE + 19 END * COUNT ( * ) AS col1
----
19

query II rowsort
SELECT - 79, - 78 AS col2
----
-79
-78

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

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

query II rowsort
SELECT 33 + + 77 + 92 AS col0, - 71
----
202
-71

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT ALL 74, CASE + CASE 94 WHEN + 42 THEN + 78 ELSE NULL END WHEN ( MIN( DISTINCT - 42 ) ) THEN NULL WHEN 3 THEN NULL ELSE - ( + 75 ) * + 26 END AS col2
----
74
-1950

skipif mysql # not compatible
query II rowsort label-2941
SELECT ALL 74, CASE + CASE 94 WHEN + 42 THEN + 78 ELSE NULL END WHEN ( MIN ( DISTINCT - 42 ) ) THEN NULL WHEN 3 THEN NULL ELSE - ( + 75 ) * + 26 END AS col2
----
74
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT COUNT( * ) - + 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-2942
SELECT COUNT ( * ) - + 37 AS col2
----
-36

query I rowsort
SELECT 25 + 69 col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT - COUNT( * ) + - 66 + - - 31 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2944
SELECT - COUNT ( * ) + - 66 + - - 31 AS col0
----
-36

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

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

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

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

query I rowsort
SELECT 2 + + 56
----
58

query I rowsort
SELECT - 71 * - + 49
----
3479

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

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

query II rowsort
SELECT ALL 3 AS col0, 53
----
3
53

query II rowsort
SELECT DISTINCT 5, + 2 + + 87 col0
----
5
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT - SUM( - - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-2952
SELECT - SUM ( - - 55 )
----
-55

query I rowsort
SELECT 10 * 68 AS col1
----
680

query II rowsort
SELECT + 12 AS col0, 72 AS col0
----
12
72

query I rowsort
SELECT 70 * ( + 63 ) + 56
----
4466

query I rowsort
SELECT 94 * - 9 col2
----
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT - 40 DIV + 67 + - 79 + - 65
----
-144

skipif mysql # not compatible
query I rowsort label-2957
SELECT - 40 / + 67 + - 79 + - 65
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL + ( 81 ) * + - CASE - 36 WHEN + 9 + COUNT( * ) THEN NULL WHEN - 10 + + - 66 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + ( 81 ) * + - CASE - 36 WHEN + 9 + COUNT ( * ) THEN NULL WHEN - 10 + + - 66 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 43 + 19
----
-24

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

query I rowsort
SELECT DISTINCT - ( 14 ) + - + 61 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL + COUNT( * ) + - + 35 + - 76 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + COUNT ( * ) + - + 35 + - 76 AS col0
----
-110

query I rowsort
SELECT 19 * - - 63
----
1197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT DISTINCT CAST( + 66 AS SIGNED ) + + + COUNT( ALL + + ( - + NULLIF ( 13, + + 50 ) ) ) - + 74 * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT CAST ( + 66 AS INTEGER ) + + + COUNT ( ALL + + ( - + NULLIF ( 13, + + 50 ) ) ) - + 74 * + COUNT ( * )
----
-7

query I rowsort
SELECT DISTINCT - ( 77 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT - MAX( - 31 ) + + 76 + + + 39 * - - COUNT( * ) * - MAX( DISTINCT - - 30 ) + + 46
----
-1017

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT - MAX ( - 31 ) + + 76 + + + 39 * - - COUNT ( * ) * - MAX ( DISTINCT - - 30 ) + + 46
----
-1017

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2967
SELECT ALL - CAST( - 35 AS SIGNED ) + + 19 DIV + 20
----
35

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL - CAST ( - 35 AS INTEGER ) + + 19 / + 20
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT 44 * + 64 - + - MAX( + - 35 ) AS col0
----
2781

skipif mysql # not compatible
query I rowsort label-2968
SELECT 44 * + 64 - + - MAX ( + - 35 ) AS col0
----
2781

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

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

query II rowsort
SELECT 42, 86 + - ( 63 ) AS col0
----
42
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2971
SELECT ALL + 79 + + COALESCE ( + 86, - 6 + + ( - 54 ), + COUNT( * ) DIV - 50 * 67 ) AS col2
----
165

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + 79 + + COALESCE ( + 86, - 6 + + ( - 54 ), + COUNT ( * ) / - 50 * 67 ) AS col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL + CASE - + 42 WHEN - NULLIF ( 78, - 9 + + + 4 + - + 6 ) - 47 THEN NULL WHEN + - 84 * 70 * - 53 * 0 + + 61 + + 89 / 43 THEN 83 WHEN + 21 / - 39 + + 18 THEN NULL ELSE NULL END * + CASE 56 - - CASE 96 WHEN 10 * 21 THEN 44 * ( 50 * - 39 ) WHEN 96 THEN 67 END WHEN 80 + ( + 99 + - 30 ) THEN NULL ELSE + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL + CASE - + 42 WHEN - NULLIF ( 78, - 9 + + + 4 + - + 6 ) - 47 THEN NULL WHEN + - 84 * 70 * - 53 * 0 + + 61 + + 89 / 43 THEN 83 WHEN + 21 / - 39 + + 18 THEN NULL ELSE NULL END * + CASE 56 - - CASE 96 WHEN 10 * 21 THEN 44 * ( 50 * - 39 ) WHEN 96 THEN 67 END WHEN 80 + ( + 99 + - 30 ) THEN NULL ELSE + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL + ( + NULLIF ( - 15, + + 69 ) ) - + + ( + 77 ) + 45 * 3 col1
----
43

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

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

query II rowsort
SELECT + - 68, + 12 * + - 98 AS col2
----
-68
-1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2976
SELECT + 3 - 17 DIV + + 97 * - + 60 + - COUNT( * ) DIV + MAX( + 54 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2976
SELECT + 3 - 17 / + + 97 * - + 60 + - COUNT ( * ) / + MAX ( + 54 ) AS col1
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT ALL - ( - COUNT( DISTINCT + + COALESCE ( 67, - 93 ) ) ) * + 13
----
13

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL - ( - COUNT ( DISTINCT + + COALESCE ( 67, - 93 ) ) ) * + 13
----
13

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

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL SUM ( - 69 )
----
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2981
SELECT ALL 15 AS col0, - 33 * CAST( NULL AS SIGNED ) col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-2981
SELECT ALL 15 AS col0, - 33 * CAST ( NULL AS INTEGER ) col2
----
15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2982
SELECT + NULLIF ( - 36, + CAST( NULL AS SIGNED ) * - 79 * - - 80 + + + 15 + - 89 ) - + 18 * - COUNT( * ), ( - + 61 ) AS col2
----
-18
-61

skipif mysql # not compatible
query II rowsort label-2982
SELECT + NULLIF ( - 36, + CAST ( NULL AS INTEGER ) * - 79 * - - 80 + + + 15 + - 89 ) - + 18 * - COUNT ( * ), ( - + 61 ) AS col2
----
-18
-61

query I rowsort
SELECT - 88 * + + 8 AS col0
----
-704

query II rowsort
SELECT - NULLIF ( - + 41, + 30 ), 38 AS col0
----
41
38

query II rowsort
SELECT + 58 * - 35 AS col1, - 54 col0
----
-2030
-54

query I rowsort
SELECT ALL 64 + - 22 col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2987
SELECT DISTINCT 23 + ( 66 ) + - SUM( DISTINCT - 14 ) AS col1, - 24
----
103
-24

skipif mysql # not compatible
query II rowsort label-2987
SELECT DISTINCT 23 + ( 66 ) + - SUM ( DISTINCT - 14 ) AS col1, - 24
----
103
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-2988
SELECT ( - 49 ) AS col1, - 47 + + 16 + + 4 DIV - COALESCE ( + 96, + 53, - 23 + 66 DIV + + 77 ) * + 41
----
-49
-31

skipif mysql # not compatible
query II rowsort label-2988
SELECT ( - 49 ) AS col1, - 47 + + 16 + + 4 / - COALESCE ( + 96, + 53, - 23 + 66 / + + 77 ) * + 41
----
-49
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - 52 - - ( 96 ) - + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2989
SELECT - 52 - - ( 96 ) - + COUNT ( * ) AS col0
----
43

query I rowsort
SELECT ALL + 39 * - ( + + 54 )
----
-2106

query I rowsort
SELECT CASE + + ( - 78 ) WHEN - 76 + - - 27 THEN 87 + + 66 WHEN + 82 THEN + 37 * 84 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2992
SELECT 48 DIV 49 + 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2992
SELECT 48 / 49 + 13 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT ALL - 95 * - COUNT( * ) + CASE + NULLIF ( - 0, - + 65 - + CAST( + - 62 AS SIGNED ) ) WHEN CASE COUNT( * ) WHEN + 99 THEN NULL WHEN - 98 THEN + COUNT( * ) WHEN - 69 THEN 4 - - 42 * 22 ELSE NULL END + - 97 THEN 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL - 95 * - COUNT ( * ) + CASE + NULLIF ( - 0, - + 65 - + CAST ( + - 62 AS INTEGER ) ) WHEN CASE COUNT ( * ) WHEN + 99 THEN NULL WHEN - 98 THEN + COUNT ( * ) WHEN - 69 THEN 4 - - 42 * 22 ELSE NULL END + - 97 THEN 91 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT + 16 + + CASE + - NULLIF ( 34, + COALESCE ( + 82, + 67 + + + 41 - 82, - - 52 ) ) WHEN + - COALESCE ( + 21, 81 * + COUNT( * ) ) * COUNT( * ) THEN 68 * 57 + COUNT( * ) / 37 WHEN CAST( COUNT( * ) AS SIGNED ) THEN NULL END + - NULLIF ( - CASE WHEN 1 IS NOT NULL THEN NULL ELSE + 3 END, + MAX( DISTINCT 28 ) / + 34 ) * + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT + 16 + + CASE + - NULLIF ( 34, + COALESCE ( + 82, + 67 + + + 41 - 82, - - 52 ) ) WHEN + - COALESCE ( + 21, 81 * + COUNT ( * ) ) * COUNT ( * ) THEN 68 * 57 + COUNT ( * ) / 37 WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN NULL END + - NULLIF ( - CASE WHEN 1 IS NOT NULL THEN NULL ELSE + 3 END, + MAX ( DISTINCT 28 ) / + 34 ) * + 84 AS col0
----
NULL

query I rowsort
SELECT - 47 * - + 36 + + 54 AS col1
----
1746

query II rowsort
SELECT - CASE + 48 WHEN + 64 THEN - - 95 END - - 20 AS col0, + 10 * 56
----
NULL
560

onlyif mysql # aggregate syntax: 
query II rowsort label-2997
SELECT ALL + 40 * + 15, + COUNT( * ) * + 64 * + 35 AS col0
----
600
2240

skipif mysql # not compatible
query II rowsort label-2997
SELECT ALL + 40 * + 15, + COUNT ( * ) * + 64 * + 35 AS col0
----
600
2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT 49 * - CAST( NULL AS SIGNED ) + - AVG ( + 21 ) + - 4 * 49 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT 49 * - CAST ( NULL AS INTEGER ) + - AVG ( + 21 ) + - 4 * 49 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT - 74 - + SUM( DISTINCT + - 38 ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-2999
SELECT - 74 - + SUM ( DISTINCT + - 38 ) col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - COUNT( * ) + - COUNT( * ) * - ( + + 78 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3000
SELECT - COUNT ( * ) + - COUNT ( * ) * - ( + + 78 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + SUM( ALL 25 ) * + 51 + + + 80 - + ( - 65 )
----
1420

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + SUM ( ALL 25 ) * + 51 + + + 80 - + ( - 65 )
----
1420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT DISTINCT - COUNT( DISTINCT - + 92 ) * + 37 - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT - COUNT ( DISTINCT - + 92 ) * + 37 - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 24 + ( - 46 )
----
-70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + 47 * + MAX( DISTINCT 41 ) * 22 + + 46 + - COUNT( * ) col2
----
42439

skipif mysql # not compatible
query I rowsort label-3005
SELECT + 47 * + MAX ( DISTINCT 41 ) * 22 + + 46 + - COUNT ( * ) col2
----
42439

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT ALL 77 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL 77 / 73
----
1

query I rowsort
SELECT - 46 * - 29 AS col0
----
1334

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

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

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

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

query I rowsort
SELECT - - 70 + - 58
----
12

query I rowsort
SELECT DISTINCT 61 * + 64 + + 41 AS col1
----
3945

onlyif mysql # DIV for integer division: 
query II rowsort label-3012
SELECT - - 21 DIV - - 85 * - 1 AS col1, NULLIF ( - - 52, - 19 + + - 71 )
----
0
52

skipif mysql # not compatible
query II rowsort label-3012
SELECT - - 21 / - - 85 * - 1 AS col1, NULLIF ( - - 52, - 19 + + - 71 )
----
0
52

query I rowsort
SELECT - ( + 9 ) + - - ( - 42 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL + 40 * + + MAX( ALL 46 ) AS col2
----
1840

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL + 40 * + + MAX ( ALL 46 ) AS col2
----
1840

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

skipif mysql # not compatible
query I rowsort label-3015
SELECT + 63 + COUNT ( * ) + - - 89 / ( SUM ( ALL - - 69 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT + ( - - CASE + 54 WHEN + 59 - + + 5 THEN NULL WHEN - - 39 THEN NULL ELSE 13 * - NULLIF ( 44, - 9 ) END ) + - 21 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT + ( - - CASE + 54 WHEN + 59 - + + 5 THEN NULL WHEN - - 39 THEN NULL ELSE 13 * - NULLIF ( 44, - 9 ) END ) + - 21 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL + 49 + + 45 * + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL + 49 + + 45 * + COUNT ( * ) AS col2
----
94

query I rowsort
SELECT - - 44 + - + 22 + + - 43 - - 72
----
51

query I rowsort
SELECT + - 80 * - + 70 + - ( + 59 )
----
5541

query I rowsort
SELECT - + 69 + - 75 AS col1
----
-144

query II rowsort
SELECT 81 AS col1, - 99 AS col2
----
81
-99

query I rowsort
SELECT + 88 + + 28 + + 74 * - 13 + + 99
----
-747

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3023
SELECT + 58 DIV CAST( + - 92 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT + 58 / CAST ( + - 92 AS INTEGER )
----
0

query I rowsort
SELECT ALL 70 + + 26
----
96

query I rowsort
SELECT + 76 + - 26 AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3026
SELECT + 52 + 54 + 49 + 19 + 14 + + 45 + - 57 DIV NULLIF ( 58, + 68 + 75 ), CAST( NULL AS SIGNED ) AS col2
----
233
NULL

skipif mysql # not compatible
query II rowsort label-3026
SELECT + 52 + 54 + 49 + 19 + 14 + + 45 + - 57 / NULLIF ( 58, + 68 + 75 ), CAST ( NULL AS INTEGER ) AS col2
----
233
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3028
SELECT ALL COALESCE ( - + 31, 21 ) + + 91 + - - ( COUNT( * ) ) + 61 DIV SUM( ALL + + 42 ) * 60 + - 60 + 38
----
99

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL COALESCE ( - + 31, 21 ) + + 91 + - - ( COUNT ( * ) ) + 61 / SUM ( ALL + + 42 ) * 60 + - 60 + 38
----
99

query II rowsort
SELECT 94 AS col0, + 95 + + + 7
----
94
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL + SUM( DISTINCT 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL + SUM ( DISTINCT 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT + ( - 56 ) DIV + 5 + - 50 + - - COUNT( * ) + - COUNT( DISTINCT + - 50 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3031
SELECT + ( - 56 ) / + 5 + - 50 + - - COUNT ( * ) + - COUNT ( DISTINCT + - 50 ) AS col0
----
-61

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3033
SELECT + 62 DIV CAST( 95 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT + 62 / CAST ( 95 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3034
SELECT ALL + 80 AS col1, CAST( - 4 AS SIGNED ) AS col0
----
80
-4

skipif mysql # not compatible
query II rowsort label-3034
SELECT ALL + 80 AS col1, CAST ( - 4 AS INTEGER ) AS col0
----
80
-4

query I rowsort
SELECT + COALESCE ( + 75, + - 18 ) * - 11 * 69
----
-56925

onlyif mysql # aggregate syntax: 
query II rowsort label-3036
SELECT ALL + ( - COALESCE ( - - SUM( - - 21 ), + - ( 61 ) * - 81 - - - 80 ) ) AS col1, 64
----
-21
64

skipif mysql # not compatible
query II rowsort label-3036
SELECT ALL + ( - COALESCE ( - - SUM ( - - 21 ), + - ( 61 ) * - 81 - - - 80 ) ) AS col1, 64
----
-21
64

query II rowsort
SELECT 61 AS col1, 9
----
61
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3038
SELECT + 97 AS col0, 0 * + + 57 * + ( - CAST( 39 AS SIGNED ) )
----
97
0

skipif mysql # not compatible
query II rowsort label-3038
SELECT + 97 AS col0, 0 * + + 57 * + ( - CAST ( 39 AS INTEGER ) )
----
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT - - CASE 3 WHEN - 3 * AVG ( ALL - 92 ) THEN - NULLIF ( + 7, 53 * - COUNT( * ) ) WHEN - - COUNT( * ) THEN - MIN( ALL - 89 ) * + + 82 WHEN + COUNT( * ) * 83 THEN 14 / + 26 END * - COALESCE ( + ( 83 ), 77 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT - - CASE 3 WHEN - 3 * AVG ( ALL - 92 ) THEN - NULLIF ( + 7, 53 * - COUNT ( * ) ) WHEN - - COUNT ( * ) THEN - MIN ( ALL - 89 ) * + + 82 WHEN + COUNT ( * ) * 83 THEN 14 / + 26 END * - COALESCE ( + ( 83 ), 77 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3040
SELECT + 15 DIV + 19 - + NULLIF ( + 45, - - 68 * + - ( 71 ) ) + + 9 + + 48 AS col2, + 96
----
12
96

skipif mysql # not compatible
query II rowsort label-3040
SELECT + 15 / + 19 - + NULLIF ( + 45, - - 68 * + - ( 71 ) ) + + 9 + + 48 AS col2, + 96
----
12
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT + - SUM( + 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3041
SELECT + - SUM ( + 51 ) AS col2
----
-51

query I rowsort
SELECT 77 * 9 AS col1
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT ALL - SUM( ALL + 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL - SUM ( ALL + 40 ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3044
SELECT ( - + ( COUNT( * ) ) ) * + 55 * - SUM( DISTINCT 9 ) * - CASE - CASE 20 WHEN - 82 + - + 18 * + 43 + + + 83 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 69 ELSE - ( + 86 ) * CASE + ( 41 ) WHEN 63 THEN + 13 WHEN 12 THEN 82 + 58 END + - SUM( ALL - 89 ) * 7 END WHEN + 15 THEN + NULLIF ( 4, 20 ) END * + SUM( 81 ) + + ( 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT ( - + ( COUNT ( * ) ) ) * + 55 * - SUM ( DISTINCT 9 ) * - CASE - CASE 20 WHEN - 82 + - + 18 * + 43 + + + 83 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 69 ELSE - ( + 86 ) * CASE + ( 41 ) WHEN 63 THEN + 13 WHEN 12 THEN 82 + 58 END + - SUM ( ALL - 89 ) * 7 END WHEN + 15 THEN + NULLIF ( 4, 20 ) END * + SUM ( 81 ) + + ( 37 ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 94 + - 31
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT - CAST( + - 26 AS SIGNED ) col2
----
26

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

query I rowsort
SELECT - - NULLIF ( - - COALESCE ( 12, + 99 ), - 78 ) AS col1
----
12

query I rowsort
SELECT 80 * 65 * - 59
----
-306800

onlyif mysql # aggregate syntax: 
query II rowsort label-3049
SELECT - 83 + + + MAX( - 61 ) AS col0, COUNT( * )
----
-144
1

skipif mysql # not compatible
query II rowsort label-3049
SELECT - 83 + + + MAX ( - 61 ) AS col0, COUNT ( * )
----
-144
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3050
SELECT - - COUNT( * ) AS col1, - CASE + 89 WHEN + SUM( + 98 ) THEN + - ( - 89 ) WHEN + 5 THEN NULL ELSE NULL END + - ( + 57 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3050
SELECT - - COUNT ( * ) AS col1, - CASE + 89 WHEN + SUM ( + 98 ) THEN + - ( - 89 ) WHEN + 5 THEN NULL ELSE NULL END + - ( + 57 ) AS col2
----
1
NULL

query I rowsort
SELECT 26 * + 90 * - 75
----
-175500

query II rowsort
SELECT 69 + 80 + - + 59, 98 AS col0
----
90
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3054
SELECT ALL + NULLIF ( - 48, + 85 ) + - 43 * + 70 * + - 50 + - COUNT( * ) + + - CASE - ( + NULLIF ( ( - - 15 ), + 16 ) ) WHEN + - CAST( 95 AS DECIMAL ) THEN 56 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL + NULLIF ( - 48, + 85 ) + - 43 * + 70 * + - 50 + - COUNT ( * ) + + - CASE - ( + NULLIF ( ( - - 15 ), + 16 ) ) WHEN + - CAST ( 95 AS REAL ) THEN 56 END col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3056
SELECT 19 * - - MAX( ALL - - ( CAST( NULL AS SIGNED ) ) ), - 50 - - MIN( - - 69 ) DIV - 83 AS col1
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-3056
SELECT 19 * - - MAX ( ALL - - ( CAST ( NULL AS INTEGER ) ) ), - 50 - - MIN ( - - 69 ) / - 83 AS col1
----
NULL
-50

query I rowsort
SELECT 9 + - 50 col2
----
-41

query I rowsort
SELECT 19 + - 63 * + 0 AS col1
----
19

query I rowsort
SELECT 28 + 93 * 22 AS col2
----
2074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT 35 * + COALESCE ( 92, + + 57 ) * + 15 - - CAST( - + COUNT( - 8 ) AS SIGNED )
----
48299

skipif mysql # not compatible
query I rowsort label-3060
SELECT 35 * + COALESCE ( 92, + + 57 ) * + 15 - - CAST ( - + COUNT ( - 8 ) AS INTEGER )
----
48299

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3061
SELECT COALESCE ( - 71, 53 + + 56 ) - 41 AS col0, - SUM( + ( 92 ) ) DIV 19
----
-112
-4

skipif mysql # not compatible
query II rowsort label-3061
SELECT COALESCE ( - 71, 53 + + 56 ) - 41 AS col0, - SUM ( + ( 92 ) ) / 19
----
-112
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL - MAX( - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - MAX ( - 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT 54 - + + 80 + - - ( + 87 ) - + 33 * - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-3063
SELECT 54 - + + 80 + - - ( + 87 ) - + 33 * - + COUNT ( * )
----
94

query I rowsort
SELECT ALL 50 * + 94
----
4700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT + 70 DIV - COUNT( * ) + + 96 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3065
SELECT + 70 / - COUNT ( * ) + + 96 AS col0
----
26

query I rowsort
SELECT + 59 + 86 AS col1
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-3067
SELECT 66 DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3067
SELECT 66 / - 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL 98 * + COUNT( * ) + - 46 * + - 37
----
1800

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL 98 * + COUNT ( * ) + - 46 * + - 37
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT COALESCE ( - 86, + 47 * + + SUM( - + 48 ) + 80 ) * - - 75 + + ( - - 32 )
----
-6418

skipif mysql # not compatible
query I rowsort label-3069
SELECT COALESCE ( - 86, + 47 * + + SUM ( - + 48 ) + 80 ) * - - 75 + + ( - - 32 )
----
-6418

query I rowsort
SELECT - 42 - + 47 + - + 73
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT + ( 83 ) * + COUNT( * ) + - COUNT( 62 ) * + - 2 * - 53
----
-23

skipif mysql # not compatible
query I rowsort label-3071
SELECT + ( 83 ) * + COUNT ( * ) + - COUNT ( 62 ) * + - 2 * - 53
----
-23

query II rowsort
SELECT + 22 + 95 AS col2, + 55 * - 73
----
117
-4015

query II rowsort
SELECT DISTINCT - 35 + + + 18 - - - 77 + ( - 21 ), 43 col0
----
-115
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT + 0 * + - 49 DIV + ( + 23 ) + 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3074
SELECT + 0 * + - 49 / + ( + 23 ) + 85 AS col1
----
85

query I rowsort
SELECT ALL + 24 + + 41 * + ( + - 44 ) AS col0
----
-1780

query I rowsort
SELECT 15 * 79 AS col2
----
1185

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

skipif mysql # not compatible
query I rowsort label-3077
SELECT CAST ( + + 60 AS INTEGER ) * - COUNT ( * )
----
-60

query II rowsort
SELECT ( - 24 ) AS col1, + 41
----
-24
41

query I rowsort
SELECT - 81 * + 97
----
-7857

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

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

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL - COUNT ( * ) + - 6 AS col2
----
-7

query I rowsort
SELECT ALL 41 * + 42 col0
----
1722

query I rowsort
SELECT DISTINCT 0 + - 34 col1
----
-34

query I rowsort
SELECT 29 + - + 16 + - ( 80 )
----
-67

query I rowsort
SELECT ALL - 80 - - 17
----
-63

query I rowsort
SELECT 38 + + + ( + 12 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT 45 + ( - 22 ) + - ( - 9 ) DIV - 22
----
23

skipif mysql # not compatible
query I rowsort label-3087
SELECT 45 + ( - 22 ) + - ( - 9 ) / - 22
----
23

query II rowsort
SELECT DISTINCT 66 AS col1, + 56 + 56 AS col1
----
66
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT 54 + + 1 + + 72 DIV - 82
----
55

skipif mysql # not compatible
query I rowsort label-3089
SELECT 54 + + 1 + + 72 / - 82
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT MIN( + 52 ) * + 36 - - + 16 col2
----
1888

skipif mysql # not compatible
query I rowsort label-3090
SELECT MIN ( + 52 ) * + 36 - - + 16 col2
----
1888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3091
SELECT ALL + CAST( - 68 AS SIGNED ) - + MAX( DISTINCT 17 )
----
-85

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL + CAST ( - 68 AS INTEGER ) - + MAX ( DISTINCT 17 )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT 35 DIV - + 30
----
-1

skipif mysql # not compatible
query I rowsort label-3092
SELECT 35 / - + 30
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3093
SELECT DISTINCT + ( + - 26 ) DIV - + COALESCE ( - + 81, - 37, - 27 ) AS col1, - 55 * + - CAST( - + 48 AS SIGNED ) col2
----
0
-2640

skipif mysql # not compatible
query II rowsort label-3093
SELECT DISTINCT + ( + - 26 ) / - + COALESCE ( - + 81, - 37, - 27 ) AS col1, - 55 * + - CAST ( - + 48 AS INTEGER ) col2
----
0
-2640

onlyif mysql # DIV for integer division: 
query II rowsort label-3094
SELECT 47 DIV 35 * - NULLIF ( + 76, + + 63 ), 46 - + + 38 AS col1
----
-76
8

skipif mysql # not compatible
query II rowsort label-3094
SELECT 47 / 35 * - NULLIF ( + 76, + + 63 ), 46 - + + 38 AS col1
----
-76
8

query I rowsort
SELECT ALL + 90 * + - 1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3096
SELECT 63 + + COUNT( * ) + + - 41 * + 83 DIV ( + COALESCE ( ( + 77 ), - 86 + 16 ) ) DIV + 82 - + 29 + - + 90 + - 56 + - 82 * + SUM( + 52 ) * + MIN( ALL - 0 )
----
-111

skipif mysql # not compatible
query I rowsort label-3096
SELECT 63 + + COUNT ( * ) + + - 41 * + 83 / ( + COALESCE ( ( + 77 ), - 86 + 16 ) ) / + 82 - + 29 + - + 90 + - 56 + - 82 * + SUM ( + 52 ) * + MIN ( ALL - 0 )
----
-111

query I rowsort
SELECT ALL - 18 * 8 AS col0
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3098
SELECT COALESCE ( CAST( + + CASE - - 49 WHEN COUNT( * ) THEN 70 WHEN + + 4 THEN - 97 WHEN - + 0 THEN NULL END AS SIGNED ), CASE - CAST( COUNT( * ) AS DECIMAL ) WHEN - - 91 * - 44 THEN NULL WHEN 87 * + 68 THEN - SUM( NULLIF ( - 51, + 45 + + 4 ) ) - 69 WHEN - COUNT( * ) THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT COALESCE ( CAST ( + + CASE - - 49 WHEN COUNT ( * ) THEN 70 WHEN + + 4 THEN - 97 WHEN - + 0 THEN NULL END AS INTEGER ), CASE - CAST ( COUNT ( * ) AS REAL ) WHEN - - 91 * - 44 THEN NULL WHEN 87 * + 68 THEN - SUM ( NULLIF ( - 51, + 45 + + 4 ) ) - 69 WHEN - COUNT ( * ) THEN NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3099
SELECT + - 84 * + - SUM( ALL + + 48 ) * 54 * - COUNT( * ) + - 23 + + 87 + + MIN( ALL CASE + - 32 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE - 16 END )
----
-217680

skipif mysql # not compatible
query I rowsort label-3099
SELECT + - 84 * + - SUM ( ALL + + 48 ) * 54 * - COUNT ( * ) + - 23 + + 87 + + MIN ( ALL CASE + - 32 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 16 END )
----
-217680

query II rowsort
SELECT - - CASE - 20 WHEN 58 THEN + 17 ELSE - 99 END * - - 43, - 50 AS col1
----
-4257
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT ( + 54 ) * - 36 * 25 + - + COALESCE ( 66, + COUNT( * ) ) * - + COUNT( * ) + - COUNT( * ) AS col2
----
-48535

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT ( + 54 ) * - 36 * 25 + - + COALESCE ( 66, + COUNT ( * ) ) * - + COUNT ( * ) + - COUNT ( * ) AS col2
----
-48535

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

skipif mysql # not compatible
query II rowsort label-3104
SELECT DISTINCT + COUNT ( * ) col1, COUNT ( * ) / + 63 AS col0
----
1
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT + 68 * + 57 + - MAX( ALL 83 ) AS col1
----
3793

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + 68 * + 57 + - MAX ( ALL 83 ) AS col1
----
3793

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT + COUNT( DISTINCT + + 79 ) * - - 44 - - 53 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3107
SELECT + COUNT ( DISTINCT + + 79 ) * - - 44 - - 53 AS col0
----
97

query I rowsort
SELECT DISTINCT + 25 * - 99 + + + 71 * - 95 + + 88
----
-9132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT DISTINCT + COUNT( * ) * + 15 * + + 32 + + - 91 AS col0
----
389

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT + COUNT ( * ) * + 15 * + + 32 + + - 91 AS col0
----
389

query I rowsort
SELECT + + 32 * - - 31 AS col0
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT + 96 * - COUNT( * ) - - 64 * - + 11
----
-800

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + 96 * - COUNT ( * ) - - 64 * - + 11
----
-800

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT ALL 94 - + 91 AS col0, + ( COUNT( * ) )
----
3
1

skipif mysql # not compatible
query II rowsort label-3114
SELECT ALL 94 - + 91 AS col0, + ( COUNT ( * ) )
----
3
1

query I rowsort
SELECT + 76 * - + 26
----
-1976

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT 10 col1, COUNT( * ) + - 16 + - SUM( 54 ) * ( - 1 )
----
10
39

skipif mysql # not compatible
query II rowsort label-3116
SELECT 10 col1, COUNT ( * ) + - 16 + - SUM ( 54 ) * ( - 1 )
----
10
39

query I rowsort
SELECT - NULLIF ( 65, - 67 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL + 94 * + MAX( DISTINCT - 41 ) * + COUNT( * ) col2
----
-3854

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + 94 * + MAX ( DISTINCT - 41 ) * + COUNT ( * ) col2
----
-3854

query II rowsort
SELECT + 46 * + - 87 AS col2, - 45 + - ( - 57 )
----
-4002
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN + - ( + ( + CAST( - + COUNT( * ) AS SIGNED ) ) ) * COUNT( * ) * - + 81 THEN + 92 WHEN + 43 / + ( - ( 17 ) ) + - 28 * + - 10 * + + 37 * - 63 THEN NULL END * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN + - ( + ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) ) * COUNT ( * ) * - + 81 THEN + 92 WHEN + 43 / + ( - ( 17 ) ) + - 28 * + - 10 * + + 37 * - 63 THEN NULL END * 98
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 71, + 99 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT + COUNT( * ) + 8 AS col1, - 72 AS col0
----
9
-72

skipif mysql # not compatible
query II rowsort label-3122
SELECT + COUNT ( * ) + 8 AS col1, - 72 AS col0
----
9
-72

query II rowsort
SELECT 21, 10 + - - 12 AS col1
----
21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT + CASE - NULLIF ( + 26, - 12 * 78 ) WHEN NULLIF ( 89, - + 52 + + COUNT( * ) ) + 54 * - 77 THEN - ( - - COALESCE ( - 30, MAX( + + 66 ), 3 * 82 + 25 ) ) WHEN ( 88 ) THEN - 98 ELSE NULL END + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT + CASE - NULLIF ( + 26, - 12 * 78 ) WHEN NULLIF ( 89, - + 52 + + COUNT ( * ) ) + 54 * - 77 THEN - ( - - COALESCE ( - 30, MAX ( + + 66 ), 3 * 82 + 25 ) ) WHEN ( 88 ) THEN - 98 ELSE NULL END + 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3125
SELECT 34 col2, - 78 - + 13 + COUNT( * ) DIV + 36
----
34
-91

skipif mysql # not compatible
query II rowsort label-3125
SELECT 34 col2, - 78 - + 13 + COUNT ( * ) / + 36
----
34
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT - MIN( DISTINCT + 31 ) + - COUNT( + 47 ) * 79 - 84 + ( + 31 ) + NULLIF ( COUNT( * ), - 20 - - NULLIF ( - 68, + + COUNT( * ) * + NULLIF ( - + 45, + 34 + 67 ) + 68 ) * 57 ) * + 38
----
-125

skipif mysql # not compatible
query I rowsort label-3126
SELECT - MIN ( DISTINCT + 31 ) + - COUNT ( + 47 ) * 79 - 84 + ( + 31 ) + NULLIF ( COUNT ( * ), - 20 - - NULLIF ( - 68, + + COUNT ( * ) * + NULLIF ( - + 45, + 34 + 67 ) + 68 ) * 57 ) * + 38
----
-125

query II rowsort
SELECT - + 83 AS col0, - 33 col1
----
-83
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL - 48 + + SUM( - + 55 )
----
-103

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - 48 + + SUM ( - + 55 )
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT + + SUM( ALL - 21 ) + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT + + SUM ( ALL - 21 ) + + COUNT ( * )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT ALL - 51 DIV + 58 + 48 * 78 + 35 - + 64 * - 11 AS col2
----
4483

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL - 51 / + 58 + 48 * 78 + 35 - + 64 * - 11 AS col2
----
4483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT + + 94 * + 58 * 65 / - - 6 * - 10 / - CAST( NULL AS SIGNED ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT + + 94 * + 58 * 65 / - - 6 * - 10 / - CAST ( NULL AS INTEGER ) + - 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3132
SELECT - 21 DIV + NULLIF ( COUNT( * ), + 40 ) + - 94 + + 37 * ( + - 95 ) * SUM( 77 ) AS col1
----
-270770

skipif mysql # not compatible
query I rowsort label-3132
SELECT - 21 / + NULLIF ( COUNT ( * ), + 40 ) + - 94 + + 37 * ( + - 95 ) * SUM ( 77 ) AS col1
----
-270770

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT ALL + 96 col1, + MIN( ALL + + 27 ) * + 32
----
96
864

skipif mysql # not compatible
query II rowsort label-3133
SELECT ALL + 96 col1, + MIN ( ALL + + 27 ) * + 32
----
96
864

query I rowsort
SELECT - 57 + + 63
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3135
SELECT + + MAX( ALL + + CASE + 49 WHEN - + ( - 26 ) THEN + + CAST( - 93 AS DECIMAL ) ELSE - CAST( NULL AS SIGNED ) + - + 13 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT + + MAX ( ALL + + CASE + 49 WHEN - + ( - 26 ) THEN + + CAST ( - 93 AS REAL ) ELSE - CAST ( NULL AS INTEGER ) + - + 13 END ) AS col2
----
NULL

query II rowsort
SELECT - 78 col2, - 45
----
-78
-45

query I rowsort
SELECT + - 21 - + 24 + + - 91 AS col0
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT + NULLIF ( 19, - 48 * - - 48 * 24 - - - 31 * - 37 * CAST( - + 24 AS SIGNED ) - - 93 )
----
19

skipif mysql # not compatible
query I rowsort label-3138
SELECT + NULLIF ( 19, - 48 * - - 48 * 24 - - - 31 * - 37 * CAST ( - + 24 AS INTEGER ) - - 93 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3139
SELECT + + CAST( COUNT( * ) AS SIGNED ), 9 * 70 + - + 74 AS col2
----
1
556

skipif mysql # not compatible
query II rowsort label-3139
SELECT + + CAST ( COUNT ( * ) AS INTEGER ), 9 * 70 + - + 74 AS col2
----
1
556

query II rowsort
SELECT ALL + - 46 AS col0, 16
----
-46
16

query I rowsort
SELECT DISTINCT + + 82 * + 44
----
3608

query I rowsort
SELECT - 78 * - + 80 + - ( - 88 ) AS col2
----
6328

query I rowsort
SELECT - 94 + - 0 * - 10 AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT + 70 + + 60 DIV + MIN( ALL - 85 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 70 + + 60 / + MIN ( ALL - 85 ) AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3145
SELECT + 46 / - CASE - 99 WHEN - COUNT( * ) THEN + 0 - + + AVG ( ALL 81 ) ELSE - ( 0 ) * + ( + CAST( NULL AS SIGNED ) ) + - 77 * + ( 10 ) + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT + 46 / - CASE - 99 WHEN - COUNT ( * ) THEN + 0 - + + AVG ( ALL 81 ) ELSE - ( 0 ) * + ( + CAST ( NULL AS INTEGER ) ) + - 77 * + ( 10 ) + 81 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3146
SELECT + 39 * + COALESCE ( 41, - 93 DIV - 8 * - 61 ) + 90 DIV 99 * - MIN( 99 ) * + - 69 + 28, 9 AS col2
----
1627
9

skipif mysql # not compatible
query II rowsort label-3146
SELECT + 39 * + COALESCE ( 41, - 93 / - 8 * - 61 ) + 90 / 99 * - MIN ( 99 ) * + - 69 + 28, 9 AS col2
----
1627
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT + 16 + + 13 * COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3147
SELECT + 16 + + 13 * COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT - NULLIF ( + + SUM( ALL - 15 ), + COUNT( * ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3148
SELECT - NULLIF ( + + SUM ( ALL - 15 ), + COUNT ( * ) ) AS col1
----
15

query I rowsort
SELECT + ( - 73 ) + 33 AS col0
----
-40

query I rowsort
SELECT ALL 98 + + 98 * + 71
----
7056

query II rowsort
SELECT DISTINCT 33 + - 44 + 98 AS col0, 97
----
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3152
SELECT ( - 81 ) * CAST( NULL AS SIGNED ) AS col2, 86 * + 90
----
NULL
7740

skipif mysql # not compatible
query II rowsort label-3152
SELECT ( - 81 ) * CAST ( NULL AS INTEGER ) AS col2, 86 * + 90
----
NULL
7740

onlyif mysql # aggregate syntax: 
query II rowsort label-3153
SELECT DISTINCT + COUNT( * ) + 64 * + NULLIF ( - - ( MAX( DISTINCT + 58 ) ), + - 40 * - MIN( DISTINCT - ( - 32 ) ) * 15 - 61 ) + 64 AS col0, - ( COUNT( * ) ) AS col1
----
3777
-1

skipif mysql # not compatible
query II rowsort label-3153
SELECT DISTINCT + COUNT ( * ) + 64 * + NULLIF ( - - ( MAX ( DISTINCT + 58 ) ), + - 40 * - MIN ( DISTINCT - ( - 32 ) ) * 15 - 61 ) + 64 AS col0, - ( COUNT ( * ) ) AS col1
----
3777
-1

query I rowsort
SELECT DISTINCT 97 + 8 * - 39
----
-215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT ALL - - 77 + + CAST( 7 AS SIGNED ) col0
----
84

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL - - 77 + + CAST ( 7 AS INTEGER ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL + SUM( ALL + 38 ) + + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL + SUM ( ALL + 38 ) + + - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT - SUM( + 41 ), + 93 AS col1
----
-41
93

skipif mysql # not compatible
query II rowsort label-3157
SELECT - SUM ( + 41 ), + 93 AS col1
----
-41
93

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

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

query I rowsort
SELECT + 11 * 17 + + 58 - - + ( + 17 ) * + - 85 col0
----
-1200

query II rowsort
SELECT DISTINCT - - 35 - 64 + 41 AS col0, 74 - - - 62 AS col0
----
12
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL 38 - - 95 + - + 69 - - CAST( - ( - NULLIF ( 59, + 21 * - + 44 ) ) AS SIGNED ) + + CASE 93 WHEN 14 * 50 THEN 44 + - + 25 * + 48 END * + + COUNT( * ) / 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL 38 - - 95 + - + 69 - - CAST ( - ( - NULLIF ( 59, + 21 * - + 44 ) ) AS INTEGER ) + + CASE 93 WHEN 14 * 50 THEN 44 + - + 25 * + 48 END * + + COUNT ( * ) / 23
----
NULL

query I rowsort
SELECT - 77 * + 54
----
-4158

query I rowsort
SELECT DISTINCT + 43 - + 76 * + - 38
----
2931

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL - - COUNT( DISTINCT + + 53 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - - COUNT ( DISTINCT + + 53 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL - ( 75 ) * + 45 + 19 * - COUNT( ALL + + 99 ) * + 56 * + CASE - 70 WHEN + - 74 + COUNT( + 26 ) THEN NULL WHEN - COALESCE ( + COUNT( * ), 30 * - 89 ) THEN + MAX( DISTINCT + 32 ) ELSE NULL END - - 83 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - ( 75 ) * + 45 + 19 * - COUNT ( ALL + + 99 ) * + 56 * + CASE - 70 WHEN + - 74 + COUNT ( + 26 ) THEN NULL WHEN - COALESCE ( + COUNT ( * ), 30 * - 89 ) THEN + MAX ( DISTINCT + 32 ) ELSE NULL END - - 83 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT + + COUNT( * ) * - ( - + MAX( DISTINCT NULLIF ( + 97, - + 6 ) ) ) - COUNT( * ) - 57
----
39

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT + + COUNT ( * ) * - ( - + MAX ( DISTINCT NULLIF ( + 97, - + 6 ) ) ) - COUNT ( * ) - 57
----
39

query II rowsort
SELECT ( - 78 ) AS col2, + 39
----
-78
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL - MAX( DISTINCT 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL - MAX ( DISTINCT 6 ) AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3169
SELECT + ( - 25 ) * + 43 - CASE + - 30 WHEN - - 35 THEN + CAST( - - 71 AS DECIMAL ) END AS col1, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3169
SELECT + ( - 25 ) * + 43 - CASE + - 30 WHEN - - 35 THEN + CAST ( - - 71 AS REAL ) END AS col1, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT DISTINCT - ( + 51 ) DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT - ( + 51 ) / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT 34 - - ( + + COUNT( * ) ) + - - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3171
SELECT 34 - - ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT 73 DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT 73 / + 93 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT ALL - 59 + 55 DIV - 77 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL - 59 + 55 / - 77 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT 44 * ( + + 45 ) DIV + 98 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3174
SELECT 44 * ( + + 45 ) / + 98 AS col0
----
20

query II rowsort
SELECT - 78, - 68 AS col1
----
-78
-68

query I rowsort
SELECT ALL 92 + - + 92 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT 63 / + - NULLIF ( - - COALESCE ( + - 34, + COUNT( * ), + - COUNT( * ) * - - 21 + - 31 + - 29 * 8 + + + 50, - - 6 + + CAST( NULL AS SIGNED ) ), - 34 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT 63 / + - NULLIF ( - - COALESCE ( + - 34, + COUNT ( * ), + - COUNT ( * ) * - - 21 + - 31 + - 29 * 8 + + + 50, - - 6 + + CAST ( NULL AS INTEGER ) ), - 34 ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 62 ) + - + 32 AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3179
SELECT ALL COUNT( * ) + - + ( + 30 ) AS col1, ( + NULLIF ( ( + 17 ), + 89 ) )
----
-29
17

skipif mysql # not compatible
query II rowsort label-3179
SELECT ALL COUNT ( * ) + - + ( + 30 ) AS col1, ( + NULLIF ( ( + 17 ), + 89 ) )
----
-29
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT ALL + 10 DIV 68 * - 63 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + 10 / 68 * - 63 / 40
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT NULLIF ( + - 61, + CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) + 50 * + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT NULLIF ( + - 61, + CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) + 50 * + ( - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT COUNT( ALL + 21 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3182
SELECT COUNT ( ALL + 21 ) col1
----
1

query I rowsort
SELECT - 39 + - - 5 * - 36
----
-219

query I rowsort
SELECT ALL 78 * - - ( ( ( + - 75 ) ) )
----
-5850

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT MIN( - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT MIN ( - 48 )
----
-48

query I rowsort
SELECT - 66 + - 81
----
-147

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

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

query I rowsort
SELECT + 75 + + 6 - + ( + + 59 )
----
22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT + 42 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT + 42 / + 69
----
0

query I rowsort
SELECT 84 * 87 * + 39 col2
----
285012

query II rowsort
SELECT ALL - 43 col2, + ( + 88 )
----
-43
88

query II rowsort
SELECT + + 30, + 91 col0
----
30
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3195
SELECT - ( - 78 ) + + 78 + 36 DIV CASE - + CAST( - + 96 AS SIGNED ) WHEN 83 + - 27 * 65 THEN NULL ELSE ( - - 28 ) DIV + COUNT( * ) END * + 75 AS col1
----
231

skipif mysql # not compatible
query I rowsort label-3195
SELECT - ( - 78 ) + + 78 + 36 / CASE - + CAST ( - + 96 AS INTEGER ) WHEN 83 + - 27 * 65 THEN NULL ELSE ( - - 28 ) / + COUNT ( * ) END * + 75 AS col1
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3196
SELECT ALL - - 65 / NULLIF ( - 23, - CAST( NULL AS SIGNED ) ) * CAST( - - 57 AS SIGNED ) * 18 + 95 + + + CASE + 51 WHEN + 89 + COUNT( + ( 8 ) ) + 49 THEN 49 + + 6 / - - COUNT( 55 ) - + 47 END / + 32 + NULLIF ( 98, 84 + CASE + 19 WHEN 23 - + 74 / 18 THEN NULL ELSE 38 * - 74 END * NULLIF ( COUNT( * ) * - 23, 32 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - - 65 / NULLIF ( - 23, - CAST ( NULL AS INTEGER ) ) * CAST ( - - 57 AS INTEGER ) * 18 + 95 + + + CASE + 51 WHEN + 89 + COUNT ( + ( 8 ) ) + 49 THEN 49 + + 6 / - - COUNT ( 55 ) - + 47 END / + 32 + NULLIF ( 98, 84 + CASE + 19 WHEN 23 - + 74 / 18 THEN NULL ELSE 38 * - 74 END * NULLIF ( COUNT ( * ) * - 23, 32 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL + 35 * + NULLIF ( + 41, - + CASE - - 53 WHEN + 29 + 88 * - COUNT( * ) * 55 THEN NULL ELSE - ( - 25 ) END + - - 83 * + 76 * 66 * - 78 )
----
1435

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + 35 * + NULLIF ( + 41, - + CASE - - 53 WHEN + 29 + 88 * - COUNT ( * ) * 55 THEN NULL ELSE - ( - 25 ) END + - - 83 * + 76 * 66 * - 78 )
----
1435

query I rowsort
SELECT 57 + 65 * + - 9
----
-528

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT ALL - 90 + + COUNT( * ) AS col2, 61 * - + COUNT( * )
----
-89
-61

skipif mysql # not compatible
query II rowsort label-3200
SELECT ALL - 90 + + COUNT ( * ) AS col2, 61 * - + COUNT ( * )
----
-89
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3201
SELECT ALL + 36 + - 36 - + - 89 + - 38 * 91 AS col0, CAST( - MIN( ALL - 56 ) AS SIGNED ) * - 74 col2
----
-3369
-4144

skipif mysql # not compatible
query II rowsort label-3201
SELECT ALL + 36 + - 36 - + - 89 + - 38 * 91 AS col0, CAST ( - MIN ( ALL - 56 ) AS INTEGER ) * - 74 col2
----
-3369
-4144

query I rowsort
SELECT DISTINCT + NULLIF ( - ( + 17 ), + + 21 - 80 + - - 95 + - + ( 93 ) * 46 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT - 86 * + + ( + 29 ) * - + 91 * COUNT( * ) + + 2 - - 54 + + - 12 * + - MIN( DISTINCT - 61 ) AS col1
----
226278

skipif mysql # not compatible
query I rowsort label-3203
SELECT - 86 * + + ( + 29 ) * - + 91 * COUNT ( * ) + + 2 - - 54 + + - 12 * + - MIN ( DISTINCT - 61 ) AS col1
----
226278

query I rowsort
SELECT ALL + ( - ( + 37 ) ) + 73
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT DISTINCT - 73 + + COUNT( * ) + + 42
----
-30

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT - 73 + + COUNT ( * ) + + 42
----
-30

query I rowsort
SELECT ALL - 28 + + ( + + 29 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3207
SELECT - CAST( NULL AS SIGNED ) + - CASE + - ( + 16 ) WHEN + + 72 + - 35 + + 75 THEN - 3 END / - - ( - 5 ) AS col2, 37 * - - MIN( - - 24 ) AS col1
----
NULL
888

skipif mysql # not compatible
query II rowsort label-3207
SELECT - CAST ( NULL AS INTEGER ) + - CASE + - ( + 16 ) WHEN + + 72 + - 35 + + 75 THEN - 3 END / - - ( - 5 ) AS col2, 37 * - - MIN ( - - 24 ) AS col1
----
NULL
888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT CASE COUNT( * ) WHEN + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - + 36 + + 23 * - 0 THEN - - 29 * - COUNT( * ) / + - COUNT( * ) * + CAST( NULL AS SIGNED ) / 82 / - - 72 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT CASE COUNT ( * ) WHEN + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 36 + + 23 * - 0 THEN - - 29 * - COUNT ( * ) / + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / 82 / - - 72 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + ( - COUNT( * ) ) + - COUNT( 11 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3209
SELECT + ( - COUNT ( * ) ) + - COUNT ( 11 ) AS col1
----
-2

query I rowsort
SELECT DISTINCT + 36 - + 73 - 34 * - 70
----
2343

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT + NULLIF ( ( - COUNT( * ) ), - - 60 + 65 + + - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT + NULLIF ( ( - COUNT ( * ) ), - - 60 + 65 + + - 54 )
----
-1

query II rowsort
SELECT - + 4 * 44, - 69 + 89 AS col0
----
-176
20

query I rowsort
SELECT + + 99 * ( + 0 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3214
SELECT ALL 56 DIV - 81 AS col0, 14 + - ( + 45 ) AS col1
----
0
-31

skipif mysql # not compatible
query II rowsort label-3214
SELECT ALL 56 / - 81 AS col0, 14 + - ( + 45 ) AS col1
----
0
-31

query I rowsort
SELECT - 26 - + 7 AS col2
----
-33

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

skipif mysql # not compatible
query I rowsort label-3216
SELECT + 95 / - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL + COALESCE ( + 2, + COUNT( * ), - COUNT( * ) + - 97 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL + COALESCE ( + 2, + COUNT ( * ), - COUNT ( * ) + - 97 ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3218
SELECT DISTINCT 97 * + + 31 AS col1, - COALESCE ( + CASE + 53 WHEN CAST( + - 2 AS SIGNED ) * - + 84 * + 93 THEN + + 40 END, - + 19, + 64 )
----
3007
19

skipif mysql # not compatible
query II rowsort label-3218
SELECT DISTINCT 97 * + + 31 AS col1, - COALESCE ( + CASE + 53 WHEN CAST ( + - 2 AS INTEGER ) * - + 84 * + 93 THEN + + 40 END, - + 19, + 64 )
----
3007
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL - 0 * + - COUNT( * ) * - 70 + - + 28 + + 20 + 3
----
-5

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL - 0 * + - COUNT ( * ) * - 70 + - + 28 + + 20 + 3
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT - 99 * + + 51 + COUNT( * )
----
-5048

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT - 99 * + + 51 + COUNT ( * )
----
-5048

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL - 49 * 70 + CASE + - COUNT( ALL + 41 ) WHEN + + 65 THEN - 51 + - 64 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL - 49 * 70 + CASE + - COUNT ( ALL + 41 ) WHEN + + 65 THEN - 51 + - 64 END col0
----
NULL

query I rowsort
SELECT ALL 9 * + - 79 + 45 * 31 AS col0
----
684

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT - 27 * SUM( + - 28 ) + - 36 * - + 62, - COUNT( * ) col0
----
2988
-1

skipif mysql # not compatible
query II rowsort label-3224
SELECT - 27 * SUM ( + - 28 ) + - 36 * - + 62, - COUNT ( * ) col0
----
2988
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT ALL 39 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL 39 / + 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT ALL 33 * + + 65 - + - NULLIF ( 85, + - SUM( DISTINCT CAST( + 99 AS SIGNED ) ) + + - 30 ) AS col2
----
2230

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL 33 * + + 65 - + - NULLIF ( 85, + - SUM ( DISTINCT CAST ( + 99 AS INTEGER ) ) + + - 30 ) AS col2
----
2230

onlyif mysql # aggregate syntax: 
query II rowsort label-3227
SELECT + 89 AS col0, 59 * + + ( + - 47 ) + - COUNT( * )
----
89
-2774

skipif mysql # not compatible
query II rowsort label-3227
SELECT + 89 AS col0, 59 * + + ( + - 47 ) + - COUNT ( * )
----
89
-2774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL COUNT( * ) * - - COALESCE ( - NULLIF ( CAST( + 82 AS SIGNED ), 99 - + 41 ), NULLIF ( - 88, + + AVG ( + 53 ) ), + - 29 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL COUNT ( * ) * - - COALESCE ( - NULLIF ( CAST ( + 82 AS INTEGER ), 99 - + 41 ), NULLIF ( - 88, + + AVG ( + 53 ) ), + - 29 ) AS col0
----
-82

query I rowsort
SELECT DISTINCT - - 41 * - 74 col1
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT - 82 * + SUM( + 31 ) + - 96
----
-2638

skipif mysql # not compatible
query I rowsort label-3230
SELECT - 82 * + SUM ( + 31 ) + - 96
----
-2638

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT DISTINCT 0 * SUM( - 53 ) AS col2, 44 AS col1
----
0
44

skipif mysql # not compatible
query II rowsort label-3232
SELECT DISTINCT 0 * SUM ( - 53 ) AS col2, 44 AS col1
----
0
44

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

query I rowsort
SELECT DISTINCT + ( - 97 ) AS col1
----
-97

query I rowsort
SELECT - 97 * + + 29 col0
----
-2813

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT - + 17 + COUNT( * ) - - 65 * + 56
----
3624

skipif mysql # not compatible
query I rowsort label-3236
SELECT - + 17 + COUNT ( * ) - - 65 * + 56
----
3624

query I rowsort
SELECT - 84 * - - 32 AS col2
----
-2688

query II rowsort
SELECT + - ( 44 ) - - - 95 AS col1, 41 col2
----
-139
41

query I rowsort
SELECT ALL + 31 * - 48 AS col1
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + + 62 - - + 97 * + MIN( - - 69 ) AS col0
----
6755

skipif mysql # not compatible
query I rowsort label-3240
SELECT + + 62 - - + 97 * + MIN ( - - 69 ) AS col0
----
6755

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT + 3 * COUNT( * ) * 96 AS col0
----
288

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + 3 * COUNT ( * ) * 96 AS col0
----
288

query I rowsort
SELECT ALL - 81 + 66 + - ( - - CASE 80 WHEN - 25 * - - 23 THEN + + 71 END ) / + 87 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3243
SELECT ALL + + 81 * + 91 * + - 81 + 19 + 68 / - 85 * + CASE - + 57 WHEN + - ( - 53 ) THEN NULL WHEN - - 94 - 84 THEN NULL WHEN - CASE + ( - 9 ) WHEN 86 + + 79 THEN NULL WHEN + - COUNT( * ) * + - 78 + - 17 THEN COUNT( ALL 91 ) - + 24 ELSE NULL END THEN CAST( 96 AS DECIMAL ) + + CAST( NULL AS SIGNED ) END * ( + 52 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + + 81 * + 91 * + - 81 + 19 + 68 / - 85 * + CASE - + 57 WHEN + - ( - 53 ) THEN NULL WHEN - - 94 - 84 THEN NULL WHEN - CASE + ( - 9 ) WHEN 86 + + 79 THEN NULL WHEN + - COUNT ( * ) * + - 78 + - 17 THEN COUNT ( ALL 91 ) - + 24 ELSE NULL END THEN CAST ( 96 AS REAL ) + + CAST ( NULL AS INTEGER ) END * ( + 52 ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 19 + + + 37
----
56

query I rowsort
SELECT - 73 + 19
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3246
SELECT + 24 / 95 + 77 + + CASE WHEN NULL IS NOT NULL THEN 36 END, COALESCE ( + - COALESCE ( 42, - 1 ), - 59 * CAST( NULL AS SIGNED ) ) AS col1
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-3246
SELECT + 24 / 95 + 77 + + CASE WHEN NULL IS NOT NULL THEN 36 END, COALESCE ( + - COALESCE ( 42, - 1 ), - 59 * CAST ( NULL AS INTEGER ) ) AS col1
----
NULL
-42

query I rowsort
SELECT ALL + 72 + + 43 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT DISTINCT 40 DIV 20 * - + 39 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT 40 / 20 * - + 39 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-3249
SELECT ALL - 9 AS col1, NULLIF ( - 56, COUNT( * ) + + 8 ) + + 75
----
-9
19

skipif mysql # not compatible
query II rowsort label-3249
SELECT ALL - 9 AS col1, NULLIF ( - 56, COUNT ( * ) + + 8 ) + + 75
----
-9
19

query II rowsort
SELECT 45, - 30 AS col1
----
45
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3251
SELECT CASE 0 WHEN - + 69 + 6 * - + 86 * 27 * - - CASE - 11 WHEN - - 80 THEN - + 82 END + - - 47 THEN 45 WHEN + 73 THEN 44 * - + 15 END + COALESCE ( + + COUNT( * ), + MAX( ALL 37 ) ) AS col2, + 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-3251
SELECT CASE 0 WHEN - + 69 + 6 * - + 86 * 27 * - - CASE - 11 WHEN - - 80 THEN - + 82 END + - - 47 THEN 45 WHEN + 73 THEN 44 * - + 15 END + COALESCE ( + + COUNT ( * ), + MAX ( ALL 37 ) ) AS col2, + 60 AS col1
----
NULL
60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT ALL 28 + + COUNT( * ) DIV - 16 * + ( + 58 )
----
28

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL 28 + + COUNT ( * ) / - 16 * + ( + 58 )
----
28

query I rowsort
SELECT DISTINCT + 46 * - 26
----
-1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 57 THEN - 23 * + 71 + - 51 ELSE NULL END * - COUNT( * ) * - - 37 + - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 57 THEN - 23 * + 71 + - 51 ELSE NULL END * - COUNT ( * ) * - - 37 + - - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL - MAX( 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - MAX ( 38 )
----
-38

query II rowsort
SELECT ALL - 27 AS col0, - 56
----
-27
-56

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

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

query I rowsort
SELECT + ( 58 ) * - 48 + 91
----
-2693

query I rowsort
SELECT - 97 * ( - NULLIF ( - 63, - 31 ) ) - 33 + + 28
----
-6116

query I rowsort
SELECT 65 * + 74 * - ( - 84 ) - + - 70
----
404110

query I rowsort
SELECT DISTINCT - - 71 col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL COUNT( * ) / - CASE + 1 WHEN + 1 THEN NULL WHEN - 89 + + 54 THEN + 70 WHEN NULLIF ( - + 64, - + 57 + - - COUNT( * ) * + 86 * + + 33 + - 0 + + + NULLIF ( - - 84, + 89 + - 13 ) * + 81 ) THEN - + 55 ELSE NULL END + + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL COUNT ( * ) / - CASE + 1 WHEN + 1 THEN NULL WHEN - 89 + + 54 THEN + 70 WHEN NULLIF ( - + 64, - + 57 + - - COUNT ( * ) * + 86 * + + 33 + - 0 + + + NULLIF ( - - 84, + 89 + - 13 ) * + 81 ) THEN - + 55 ELSE NULL END + + - 1
----
NULL

query I rowsort
SELECT 21 + + 1 col1
----
22

query I rowsort
SELECT 13 + 24 + + 21 AS col2
----
58

query I rowsort
SELECT ALL + 26 * + 67 * + 12
----
20904

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - 85 * + - 59 * + NULLIF ( - 87, - + COUNT( * ) )
----
-436305

skipif mysql # not compatible
query I rowsort label-3267
SELECT - 85 * + - 59 * + NULLIF ( - 87, - + COUNT ( * ) )
----
-436305

query I rowsort
SELECT 59 + + - 7
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3269
SELECT - NULLIF ( + 75, - CAST( 43 AS SIGNED ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3269
SELECT - NULLIF ( + 75, - CAST ( 43 AS INTEGER ) ) AS col2
----
-75

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

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

query I rowsort
SELECT DISTINCT 34 * 5 AS col1
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-3272
SELECT ALL - - MAX( ALL + 91 ) + + 3 + + 35 + - + 46 - 65 * - 71 * + 11 + + - 47 AS col2, 97
----
50801
97

skipif mysql # not compatible
query II rowsort label-3272
SELECT ALL - - MAX ( ALL + 91 ) + + 3 + + 35 + - + 46 - 65 * - 71 * + 11 + + - 47 AS col2, 97
----
50801
97

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

skipif mysql # not compatible
query I rowsort label-3273
SELECT + SUM ( - + 73 ) + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 10 AS col2, 33 AS col0
----
-10
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT COUNT( * ) * - 43 * 4 * + - CAST( NULL AS SIGNED ) + + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT COUNT ( * ) * - 43 * 4 * + - CAST ( NULL AS INTEGER ) + + 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT DISTINCT COUNT( ALL - 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT COUNT ( ALL - 2 ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT 0 + CAST ( - ( - + 23 ) AS INTEGER ) AS col0
----
23

query I rowsort
SELECT ALL - COALESCE ( + - 53, + 49 ) + + 84
----
137

query I rowsort
SELECT DISTINCT COALESCE ( + 15, 36 + - - 36, + 66 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL COUNT( * ) + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL COUNT ( * ) + - 93
----
-92

query I rowsort
SELECT ALL - 61 + 60 AS col1
----
-1

query I rowsort
SELECT ALL - 50 + - 90
----
-140

query II rowsort
SELECT - 50, + 60 - - - 13 AS col2
----
-50
47

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

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

query I rowsort
SELECT ALL - 31 * + 90 * + + 88 * - + 51
----
12521520

query I rowsort
SELECT ALL + 77 + 79 AS col2
----
156

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

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

query I rowsort
SELECT ALL - 13 * + - ( - 8 ) AS col2
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-3289
SELECT 57 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-3289
SELECT 57 / - 96
----
0

query I rowsort
SELECT ALL + 41 - - + 66
----
107

query I rowsort
SELECT DISTINCT - 14 * NULLIF ( - 45, - 58 ) AS col1
----
630

query II rowsort
SELECT DISTINCT + 59 - + 18 AS col1, 7 AS col0
----
41
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT 32 * + - COUNT( * ) + - + 25 col0
----
-57

skipif mysql # not compatible
query I rowsort label-3293
SELECT 32 * + - COUNT ( * ) + - + 25 col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT 72 DIV - - 87
----
0

skipif mysql # not compatible
query I rowsort label-3294
SELECT 72 / - - 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3295
SELECT + COUNT( DISTINCT + CAST( - 2 AS SIGNED ) ) DIV - 11 + + + 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3295
SELECT + COUNT ( DISTINCT + CAST ( - 2 AS INTEGER ) ) / - 11 + + + 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ( 98 ) * - 60 * + COUNT( * )
----
-5880

skipif mysql # not compatible
query I rowsort label-3296
SELECT ( 98 ) * - 60 * + COUNT ( * )
----
-5880

query I rowsort
SELECT ( - - 76 ) + 98 * 17
----
1742

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

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

query II rowsort
SELECT 5 * 26 AS col0, - 31
----
130
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3300
SELECT + COALESCE ( + 98, - COUNT( ALL + 33 ) + MAX( DISTINCT + COALESCE ( + NULLIF ( + 41, 92 / 99 ), 95 ) ), + COUNT( * ) + - - 17 * 42 * - - 36 * + 70 + + + CAST( NULL AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-3300
SELECT + COALESCE ( + 98, - COUNT ( ALL + 33 ) + MAX ( DISTINCT + COALESCE ( + NULLIF ( + 41, 92 / 99 ), 95 ) ), + COUNT ( * ) + - - 17 * 42 * - - 36 * + 70 + + + CAST ( NULL AS INTEGER ) )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT ALL - 97 * 72 * - 78 DIV - ( + 1 )
----
-544752

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - 97 * 72 * - 78 / - ( + 1 )
----
-544752

query I rowsort
SELECT 15 - - + 2 * - 38 col0
----
-61

query I rowsort
SELECT ALL - 6 + + - 81
----
-87

query II rowsort
SELECT 7 * - 33 AS col2, + 50 * + 7 AS col2
----
-231
350

query II rowsort
SELECT ALL 45 + - + 91 col0, - 48 AS col0
----
-46
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3306
SELECT DISTINCT + CAST( + + 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + CAST ( + + 14 AS INTEGER ) AS col1
----
14

query I rowsort
SELECT DISTINCT 7 + + + 82
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT ALL - 54 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - 54 / 95
----
0

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

query I rowsort
SELECT + 8 + - + 88 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT + CASE - + 94 WHEN - COUNT( * ) + 36 + + - 71 THEN 36 END + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT + CASE - + 94 WHEN - COUNT ( * ) + 36 + + - 71 THEN 36 END + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3312
SELECT - CAST( + CASE + 31 WHEN + 36 + - + ( - 1 ) + + 70 + ( - 10 ) * 80 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE + - 79 * + 73 + + 55 END AS SIGNED ) - + 54 AS col0
----
5658

skipif mysql # not compatible
query I rowsort label-3312
SELECT - CAST ( + CASE + 31 WHEN + 36 + - + ( - 1 ) + + 70 + ( - 10 ) * 80 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE + - 79 * + 73 + + 55 END AS INTEGER ) - + 54 AS col0
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT + COUNT( * ) + - 35 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3313
SELECT + COUNT ( * ) + - 35 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL MAX( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL MAX ( DISTINCT 80 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3315
SELECT - CASE - CASE + + 67 WHEN ( - + 89 ) THEN 32 * 97 END WHEN - - 68 * + CAST( + 72 AS SIGNED ) THEN - + 15 + - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT - CASE - CASE + + 67 WHEN ( - + 89 ) THEN 32 * 97 END WHEN - - 68 * + CAST ( + 72 AS INTEGER ) THEN - + 15 + - + COUNT ( * ) END
----
NULL

query II rowsort
SELECT ALL 54 AS col1, 97 * - 91 AS col2
----
54
-8827

query I rowsort
SELECT ALL 23 * + 84
----
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT - 34 * + - CAST( NULL AS SIGNED ) * 53 * - 44 * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT - 34 * + - CAST ( NULL AS INTEGER ) * 53 * - 44 * 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT - NULLIF ( + 30, 21 ) + 74 + + COUNT( ALL + + 25 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-3319
SELECT - NULLIF ( + 30, 21 ) + 74 + + COUNT ( ALL + + 25 ) col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3320
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) / COUNT( * ) * + - 57 * COUNT( * ) + - + 26 AS col1, + 49 AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3320
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) / COUNT ( * ) * + - 57 * COUNT ( * ) + - + 26 AS col1, + 49 AS col2
----
NULL
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3321
SELECT ALL 83 * CAST( - + COUNT( * ) AS SIGNED ) - - - 85 * - + 16
----
1277

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL 83 * CAST ( - + COUNT ( * ) AS INTEGER ) - - - 85 * - + 16
----
1277

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

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

query I rowsort
SELECT - 4 * - 29
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL + COALESCE ( - 1, 72, COUNT( * ) + 19 * - + ( - ( + + 69 ) ) * + 68 + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL + COALESCE ( - 1, 72, COUNT ( * ) + 19 * - + ( - ( + + 69 ) ) * + 68 + 18 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT - ( + AVG ( + 90 ) ) + 26 + - CASE + CASE - ( + NULLIF ( + 67, + 66 + + MIN( ALL + CAST( NULL AS SIGNED ) ) ) ) WHEN - 20 THEN NULL WHEN + COUNT( * ) * + - 24 + - - 31 THEN NULL ELSE 49 END WHEN - + ( 52 ) * + 66 + 44 THEN NULLIF ( + NULLIF ( - MAX( ALL 66 ), COUNT( * ) ), + 13 / + COUNT( * ) + - CASE COUNT( * ) + - COUNT( * ) WHEN - COUNT( - 32 ) THEN NULL ELSE 20 * 51 + 3 / COUNT( * ) END ) ELSE NULL END - + COUNT( 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT - ( + AVG ( + 90 ) ) + 26 + - CASE + CASE - ( + NULLIF ( + 67, + 66 + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) ) WHEN - 20 THEN NULL WHEN + COUNT ( * ) * + - 24 + - - 31 THEN NULL ELSE 49 END WHEN - + ( 52 ) * + 66 + 44 THEN NULLIF ( + NULLIF ( - MAX ( ALL 66 ), COUNT ( * ) ), + 13 / + COUNT ( * ) + - CASE COUNT ( * ) + - COUNT ( * ) WHEN - COUNT ( - 32 ) THEN NULL ELSE 20 * 51 + 3 / COUNT ( * ) END ) ELSE NULL END - + COUNT ( 83 ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + + 37, - 16 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3327
SELECT DISTINCT - CASE - COALESCE ( - CAST( NULL AS DECIMAL ), - 95 * + + 31 * + COUNT( * ) + - 38 + 99 + - - 28 * - 20 * - 35, + + 24 - + 49 * - + 46 ) WHEN + COALESCE ( 0, 89 ) * - 23 THEN + CASE - + 44 WHEN 49 THEN MAX( DISTINCT + 96 ) ELSE NULL END ELSE - 43 END * + 63 col1
----
2709

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT - CASE - COALESCE ( - CAST ( NULL AS REAL ), - 95 * + + 31 * + COUNT ( * ) + - 38 + 99 + - - 28 * - 20 * - 35, + + 24 - + 49 * - + 46 ) WHEN + COALESCE ( 0, 89 ) * - 23 THEN + CASE - + 44 WHEN 49 THEN MAX ( DISTINCT + 96 ) ELSE NULL END ELSE - 43 END * + 63 col1
----
2709

query I rowsort
SELECT DISTINCT - 65 * - 34 * 63
----
139230

query I rowsort
SELECT ALL + ( + + 14 ) AS col1
----
14

query I rowsort
SELECT - + 32 * 31
----
-992

query I rowsort
SELECT ALL + - 99 * - + 7 + + + 13 col0
----
706

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - + 63 * - MAX( ALL - 66 ) + 27 AS col0
----
-4131

skipif mysql # not compatible
query I rowsort label-3332
SELECT - + 63 * - MAX ( ALL - 66 ) + 27 AS col0
----
-4131

query II rowsort
SELECT + - 42, + COALESCE ( - - 35, - 24 ) * + - 70 - + 44 AS col2
----
-42
-2494

query I rowsort
SELECT - 76 + + 30
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - MIN( ALL + 53 ) + - CASE + + 82 WHEN - 48 * + + COUNT( * ) THEN - - 47 * + 65 END + + 89 / + 15 * - 40 + + 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT - MIN ( ALL + 53 ) + - CASE + + 82 WHEN - 48 * + + COUNT ( * ) THEN - - 47 * + 65 END + + 89 / + 15 * - 40 + + 15 col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 14 * 10 + 68 * 49 AS col0
----
3192

query I rowsort
SELECT DISTINCT 52 * + + 3 * + 94
----
14664

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT ALL - + 49 * 52 + - 51 AS col1, COUNT( * ) AS col0
----
-2599
1

skipif mysql # not compatible
query II rowsort label-3339
SELECT ALL - + 49 * 52 + - 51 AS col1, COUNT ( * ) AS col0
----
-2599
1

query I rowsort
SELECT + 40 + + - 93 + 38
----
-15

query I rowsort
SELECT - 79 * 93
----
-7347

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT + CAST( - - NULLIF ( + 67, - + 20 ) AS SIGNED ) + + + 97 AS col1
----
164

skipif mysql # not compatible
query I rowsort label-3343
SELECT + CAST ( - - NULLIF ( + 67, - + 20 ) AS INTEGER ) + + + 97 AS col1
----
164

query II rowsort
SELECT - - 78 AS col1, - 96 + - 80
----
78
-176

query II rowsort
SELECT - - 37 AS col1, - 62 AS col2
----
37
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT - 6 DIV - + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3346
SELECT - 6 / - + 92 AS col0
----
0

query I rowsort
SELECT ALL 52 - 66 + + 34 AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3348
SELECT DISTINCT CAST( + 88 AS SIGNED ) AS col2, 86 AS col0
----
88
86

skipif mysql # not compatible
query II rowsort label-3348
SELECT DISTINCT CAST ( + 88 AS INTEGER ) AS col2, 86 AS col0
----
88
86

query I rowsort
SELECT DISTINCT 82 - + + 71
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT 46 * - - COUNT( * ) * - + 26 AS col0
----
-1196

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT 46 * - - COUNT ( * ) * - + 26 AS col0
----
-1196

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT DISTINCT 75 DIV + 70 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT 75 / + 70 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT + MIN( + 7 ) DIV + 50 * - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3352
SELECT + MIN ( + 7 ) / + 50 * - 21 AS col0
----
0

query II rowsort
SELECT + 75 - + - NULLIF ( - 68, + 2 ) AS col2, 75 AS col2
----
7
75

query I rowsort
SELECT + 81 * 81
----
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL MIN( ALL 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL MIN ( ALL 14 ) AS col1
----
14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT DISTINCT + 15 DIV + - 76 + - + 78 + + 4 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT + 15 / + - 76 + - + 78 + + 4 AS col1
----
-74

query I rowsort
SELECT DISTINCT 68 * - + 69 AS col2
----
-4692

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3359
SELECT 15 DIV + COUNT( * ) - + 22 + - COUNT( * ), + 78 AS col2
----
-8
78

skipif mysql # not compatible
query II rowsort label-3359
SELECT 15 / + COUNT ( * ) - + 22 + - COUNT ( * ), + 78 AS col2
----
-8
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3360
SELECT DISTINCT + 21 DIV - 80 + + - COUNT( * ) + + + 14 * + 78 - + MIN( ALL + 68 )
----
1023

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + 21 / - 80 + + - COUNT ( * ) + + + 14 * + 78 - + MIN ( ALL + 68 )
----
1023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT - 73 - + 30 + + 92 + - CASE + 98 WHEN NULLIF ( ( + - 57 ), + - CAST( NULL AS SIGNED ) ) THEN + 19 END * - + CASE ( - - 83 ) WHEN - + AVG ( - 3 ) * + + 25 - - ( 77 ) THEN NULL WHEN - ( + 30 ) THEN NULL ELSE - + 66 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT - 73 - + 30 + + 92 + - CASE + 98 WHEN NULLIF ( ( + - 57 ), + - CAST ( NULL AS INTEGER ) ) THEN + 19 END * - + CASE ( - - 83 ) WHEN - + AVG ( - 3 ) * + + 25 - - ( 77 ) THEN NULL WHEN - ( + 30 ) THEN NULL ELSE - + 66 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT ALL + + 55 DIV 31 * 80 * - 30 + 38
----
-2362

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + + 55 / 31 * 80 * - 30 + 38
----
-2362

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT ALL + 37 DIV - 55 + 50 + 92
----
142

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL + 37 / - 55 + 50 + 92
----
142

query I rowsort
SELECT ALL + 3 * + 45
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL - COUNT( - + 75 ) * - 74 * - 93 + - 69 * - - 55 + - 71
----
-10748

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL - COUNT ( - + 75 ) * - 74 * - 93 + - 69 * - - 55 + - 71
----
-10748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3366
SELECT - 97 * - - COALESCE ( 67, + COUNT( * ) * + - CAST( - 77 AS SIGNED ) - + 90 )
----
-6499

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 97 * - - COALESCE ( 67, + COUNT ( * ) * + - CAST ( - 77 AS INTEGER ) - + 90 )
----
-6499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL + - CASE - COALESCE ( - 2, - ( + - 62 ), + 14 ) WHEN - 5 + 73 + + CAST( NULL AS SIGNED ) THEN SUM( + - 91 ) + - - 53 END * - 76 * - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + - CASE - COALESCE ( - 2, - ( + - 62 ), + 14 ) WHEN - 5 + 73 + + CAST ( NULL AS INTEGER ) THEN SUM ( + - 91 ) + - - 53 END * - 76 * - 26 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT COUNT( * ) - + 56 * 96 col1
----
-5375

skipif mysql # not compatible
query I rowsort label-3369
SELECT COUNT ( * ) - + 56 * 96 col1
----
-5375

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3370
SELECT 37 DIV + CAST( - 89 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT 37 / + CAST ( - 89 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3371
SELECT ALL + 71 DIV + 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL + 71 / + 42 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL COUNT( ALL - 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL COUNT ( ALL - 42 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT MAX( + + 6 ) - 52 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3373
SELECT MAX ( + + 6 ) - 52 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT 76 * + - MIN( + 36 ) AS col1, - 19 AS col1
----
-2736
-19

skipif mysql # not compatible
query II rowsort label-3374
SELECT 76 * + - MIN ( + 36 ) AS col1, - 19 AS col1
----
-2736
-19

query I rowsort
SELECT ALL 5 * - - 17
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT 82 - COUNT( * ) + 24 AS col2, + ( - 22 ) AS col0
----
105
-22

skipif mysql # not compatible
query II rowsort label-3376
SELECT 82 - COUNT ( * ) + 24 AS col2, + ( - 22 ) AS col0
----
105
-22

query I rowsort
SELECT 56 + - 3 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT 92 + 83 + + - 89 + - MAX( + 45 ) DIV + + 66
----
86

skipif mysql # not compatible
query I rowsort label-3378
SELECT 92 + 83 + + - 89 + - MAX ( + 45 ) / + + 66
----
86

query II rowsort
SELECT - 6 AS col1, 51 + + 25 + - 47 * + - 65 - - 33 + + + 77 + + + 66
----
-6
3307

query I rowsort
SELECT 66 * + - 20 AS col0
----
-1320

query I rowsort
SELECT ALL + 83 * - 48 AS col0
----
-3984

query II rowsort
SELECT 72 + 54 * + 34, - 63 col0
----
1908
-63

query II rowsort
SELECT 82 + - 85 * - 27 * + - 2 * - + 52, + 51 * - 94 AS col2
----
238762
-4794

query I rowsort
SELECT DISTINCT - 38 + + 82 + - 62 AS col2
----
-18

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

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

query II rowsort
SELECT ( + 92 ) + + 43 AS col1, 71 AS col2
----
135
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3387
SELECT DISTINCT 62 + 44 DIV CAST( - 68 AS SIGNED ) + - + ( - - 3 ) + 67 + + - NULLIF ( - 93, ( - COUNT( * ) ) + + 3 + - 15 ) + 82 * 84 AS col1
----
7107

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT 62 + 44 / CAST ( - 68 AS INTEGER ) + - + ( - - 3 ) + 67 + + - NULLIF ( - 93, ( - COUNT ( * ) ) + + 3 + - 15 ) + 82 * 84 AS col1
----
7107

query I rowsort
SELECT ALL 97 + + 63 * - - 59 * - 24
----
-89111

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT 84 + + 82 - + NULLIF ( - + 14, 84 ) * ( + NULLIF ( - 22, ( 57 ) ) ) * + + 83 * 70 * + + 39 + + + 86 + + + COUNT( ALL + 89 ) AS col0
----
-69789467

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT 84 + + 82 - + NULLIF ( - + 14, 84 ) * ( + NULLIF ( - 22, ( 57 ) ) ) * + + 83 * 70 * + + 39 + + + 86 + + + COUNT ( ALL + 89 ) AS col0
----
-69789467

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT - 4 * 27 + - 49 DIV 43 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-3390
SELECT - 4 * 27 + - 49 / 43 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL COUNT( * ) + - MAX( DISTINCT + + 28 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL COUNT ( * ) + - MAX ( DISTINCT + + 28 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL + 49 + + + ( - COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + 49 + + + ( - COUNT ( * ) )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3393
SELECT DISTINCT - 31, COUNT( * ) col2
----
-31
1

skipif mysql # not compatible
query II rowsort label-3393
SELECT DISTINCT - 31, COUNT ( * ) col2
----
-31
1

query I rowsort
SELECT ALL 11 + 66
----
77

query I rowsort
SELECT ALL + 69 + ( 72 ) AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL MIN( - 67 ) * - 83 AS col0
----
5561

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL MIN ( - 67 ) * - 83 AS col0
----
5561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT - COALESCE ( - 71, 0 * - 8 ) DIV - COUNT( * ) + - COUNT( * ) + 80 + + 82 * + 16 col0
----
1320

skipif mysql # not compatible
query I rowsort label-3397
SELECT - COALESCE ( - 71, 0 * - 8 ) / - COUNT ( * ) + - COUNT ( * ) + 80 + + 82 * + 16 col0
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT 82 + - COUNT( ALL + 58 )
----
81

skipif mysql # not compatible
query I rowsort label-3398
SELECT 82 + - COUNT ( ALL + 58 )
----
81

query I rowsort
SELECT - ( 20 ) * - 50 AS col1
----
1000

query II rowsort
SELECT ALL - 72 AS col2, 69 * + 69
----
-72
4761

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL + 42 * - 46 - - COUNT( * ) AS col1
----
-1931

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL + 42 * - 46 - - COUNT ( * ) AS col1
----
-1931

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT - NULLIF ( 3, - COUNT( + - 41 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3402
SELECT - NULLIF ( 3, - COUNT ( + - 41 ) ) AS col2
----
-3

query I rowsort
SELECT DISTINCT + - 95 * - 29 AS col2
----
2755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT DISTINCT + 98 * - + 75 * - CAST( - 82 AS SIGNED ) AS col0
----
-602700

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + 98 * - + 75 * - CAST ( - 82 AS INTEGER ) AS col0
----
-602700

query I rowsort
SELECT 0 * 1 + 45 + - + ( - 80 ) * - 33 col1
----
-2595

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT DISTINCT MIN( - - 61 ) AS col0, + 29
----
61
29

skipif mysql # not compatible
query II rowsort label-3406
SELECT DISTINCT MIN ( - - 61 ) AS col0, + 29
----
61
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT - COUNT( * ) col1, 55 + - COUNT( * )
----
-1
54

skipif mysql # not compatible
query II rowsort label-3407
SELECT - COUNT ( * ) col1, 55 + - COUNT ( * )
----
-1
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3408
SELECT 92 + - COUNT( * ) + - 66 * 13 DIV + + 64 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3408
SELECT 92 + - COUNT ( * ) + - 66 * 13 / + + 64 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3409
SELECT 94, CAST( NULL AS SIGNED ) * - 35 AS col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-3409
SELECT 94, CAST ( NULL AS INTEGER ) * - 35 AS col2
----
94
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3410
SELECT 66 / - + CAST( - COUNT( * ) AS SIGNED ) * + COALESCE ( + 32, - COUNT( * ) + COUNT( * ) ) - + ( + - CASE - 41 WHEN 21 * + 56 THEN - 32 END ) + + - AVG ( - 90 ) + + 9 * - + SUM( DISTINCT - 77 ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT 66 / - + CAST ( - COUNT ( * ) AS INTEGER ) * + COALESCE ( + 32, - COUNT ( * ) + COUNT ( * ) ) - + ( + - CASE - 41 WHEN 21 * + 56 THEN - 32 END ) + + - AVG ( - 90 ) + + 9 * - + SUM ( DISTINCT - 77 ) * 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3411
SELECT 1 + + 53 * + COALESCE ( + + 84, + - 0 * + - 96 * 30 * + + ( + 9 ), - 69 DIV CASE - CASE - 98 WHEN + 40 * - - COUNT( * ) - - 30 * - 76 * - + COALESCE ( SUM( DISTINCT - + 80 ), 68, - 63 ) THEN - COALESCE ( 3, ( 46 ) ) WHEN 55 + 60 THEN - ( 65 ) ELSE NULL END WHEN - 97 THEN 19 * 32 WHEN + 21 THEN 92 END DIV + 67, 33 )
----
4453

skipif mysql # not compatible
query I rowsort label-3411
SELECT 1 + + 53 * + COALESCE ( + + 84, + - 0 * + - 96 * 30 * + + ( + 9 ), - 69 / CASE - CASE - 98 WHEN + 40 * - - COUNT ( * ) - - 30 * - 76 * - + COALESCE ( SUM ( DISTINCT - + 80 ), 68, - 63 ) THEN - COALESCE ( 3, ( 46 ) ) WHEN 55 + 60 THEN - ( 65 ) ELSE NULL END WHEN - 97 THEN 19 * 32 WHEN + 21 THEN 92 END / + 67, 33 )
----
4453

query II rowsort
SELECT DISTINCT 6, - 58 col2
----
6
-58

query I rowsort
SELECT 17 + 72 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT 1 * ( - - MAX( ( + 46 ) ) ) col1
----
46

skipif mysql # not compatible
query I rowsort label-3414
SELECT 1 * ( - - MAX ( ( + 46 ) ) ) col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL + 51 + - 41 + COUNT( DISTINCT 51 )
----
11

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + 51 + - 41 + COUNT ( DISTINCT 51 )
----
11

query II rowsort
SELECT DISTINCT 21 col2, + 68
----
21
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT 91 * - COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3418
SELECT 91 * - COUNT ( * ) AS col2
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL + CASE + 74 WHEN + - 63 THEN NULL WHEN 21 * COUNT( * ) + - - 40 * - + ( - + 5 ) THEN NULL WHEN + 75 + - 85 / - - 11 * - ( + 24 ) THEN NULL WHEN COUNT( * ) + - 98 - - - 74 THEN - + 91 * + 72 * + - 91 ELSE NULL END + 86 + + 15 + + COUNT( * ) / - 87 + + + 1 * - 16 * - 50 * 90 + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + CASE + 74 WHEN + - 63 THEN NULL WHEN 21 * COUNT ( * ) + - - 40 * - + ( - + 5 ) THEN NULL WHEN + 75 + - 85 / - - 11 * - ( + 24 ) THEN NULL WHEN COUNT ( * ) + - 98 - - - 74 THEN - + 91 * + 72 * + - 91 ELSE NULL END + 86 + + 15 + + COUNT ( * ) / - 87 + + + 1 * - 16 * - 50 * 90 + + 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3421
SELECT 18 col0, SUM( ALL - 34 ) * + 97 AS col0
----
18
-3298

skipif mysql # not compatible
query II rowsort label-3421
SELECT 18 col0, SUM ( ALL - 34 ) * + 97 AS col0
----
18
-3298

onlyif mysql # aggregate syntax: 
query III rowsort label-3422
SELECT 54 AS col2, 13 col2, CASE + - 8 WHEN + - 14 * + 20 + + MAX( ALL - ( - 12 ) ) - + COUNT( * ) * - 62 * - - COUNT( * ) * - 59 - + 98 + - - 44 * + COUNT( * ) * ( + - 71 ) * + COUNT( * ) + - 44 THEN - 31 * + ( + 89 ) / COALESCE ( 28, - 39 * - AVG ( DISTINCT + 21 + ( + 58 ) ), - 36 + - 97 ) + - 92 * 10 ELSE NULL END
----
54
13
NULL

skipif mysql # not compatible
query III rowsort label-3422
SELECT 54 AS col2, 13 col2, CASE + - 8 WHEN + - 14 * + 20 + + MAX ( ALL - ( - 12 ) ) - + COUNT ( * ) * - 62 * - - COUNT ( * ) * - 59 - + 98 + - - 44 * + COUNT ( * ) * ( + - 71 ) * + COUNT ( * ) + - 44 THEN - 31 * + ( + 89 ) / COALESCE ( 28, - 39 * - AVG ( DISTINCT + 21 + ( + 58 ) ), - 36 + - 97 ) + - 92 * 10 ELSE NULL END
----
54
13
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL - SUM( 95 ) + + 76 + - 19 * - + 9 + - CAST( - ( 64 ) AS SIGNED )
----
216

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL - SUM ( 95 ) + + 76 + - 19 * - + 9 + - CAST ( - ( 64 ) AS INTEGER )
----
216

query I rowsort
SELECT 7 - - + 74
----
81

query II rowsort
SELECT 62, - 60 AS col1
----
62
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3426
SELECT COUNT( * ) - - 26 + - ( - + CAST( + - 61 AS SIGNED ) ) + + 9 / - 29 * MIN( DISTINCT + 83 ) * NULLIF ( - + CAST( NULL AS SIGNED ), + COALESCE ( + + 71, + 48, + - ( - - 42 ) ) ), - 33 * - 94 * 12 * - - 62 + + 55 + - 13 * - 97 AS col0
----
NULL
2309204

skipif mysql # not compatible
query II rowsort label-3426
SELECT COUNT ( * ) - - 26 + - ( - + CAST ( + - 61 AS INTEGER ) ) + + 9 / - 29 * MIN ( DISTINCT + 83 ) * NULLIF ( - + CAST ( NULL AS INTEGER ), + COALESCE ( + + 71, + 48, + - ( - - 42 ) ) ), - 33 * - 94 * 12 * - - 62 + + 55 + - 13 * - 97 AS col0
----
NULL
2309204

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

skipif mysql # not compatible
query I rowsort label-3427
SELECT ( - 62 ) * + COUNT ( * )
----
-62

query I rowsort
SELECT DISTINCT + + 31 * - + 42
----
-1302

query I rowsort
SELECT ALL 97 * + 98 - - ( NULLIF ( - - 61, ( - - 55 ) ) ) * ( + - 22 ) * + 36 AS col2
----
-38806

query I rowsort
SELECT - 70 * + - ( + ( - 70 ) ) + + - 36 + + 58 AS col0
----
-4878

query II rowsort
SELECT ALL - 17, 68 AS col0
----
-17
68

query I rowsort
SELECT 76 * - 66 + - - 26 * 24 + - COALESCE ( + 20, - ( - - 63 ) ) * 5 + + 90 AS col1
----
-4402

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT + 1 / + + 26 + + CASE + 45 WHEN - 8 + - 62 THEN + MAX( ALL - + 44 ) - - 21 END * - - ( + 10 ) - + SUM( + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT + 1 / + + 26 + + CASE + 45 WHEN - 8 + - 62 THEN + MAX ( ALL - + 44 ) - - 21 END * - - ( + 10 ) - + SUM ( + 98 )
----
NULL

query II rowsort
SELECT 69 AS col0, - 59
----
69
-59

query I rowsort
SELECT + - ( 29 ) - 44 + 10 AS col1
----
-63

query I rowsort
SELECT - - 32 * - 99
----
-3168

query I rowsort
SELECT + - 26 * + + 4
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT + 28 + SUM( + 86 ) - + 44
----
70

skipif mysql # not compatible
query I rowsort label-3438
SELECT + 28 + SUM ( + 86 ) - + 44
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3439
SELECT + COUNT( * ) DIV - 30 AS col0, - 30
----
0
-30

skipif mysql # not compatible
query II rowsort label-3439
SELECT + COUNT ( * ) / - 30 AS col0, - 30
----
0
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT - 43 * - + MAX( ALL + 77 ) * + + 82 * 56 + 62 col1
----
15204174

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT - 43 * - + MAX ( ALL + 77 ) * + + 82 * 56 + 62 col1
----
15204174

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT - MIN( DISTINCT - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3441
SELECT - MIN ( DISTINCT - 95 )
----
95

query I rowsort
SELECT DISTINCT + ( - + 7 ) * 31
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT DISTINCT 74 * + MAX( + - 38 ) AS col1
----
-2812

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT 74 * + MAX ( + - 38 ) AS col1
----
-2812

query I rowsort
SELECT + - 30 * + 71 * - 18
----
38340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3445
SELECT + + 25 * + COUNT( * ) + COALESCE ( 48, + 66 DIV 15 + + - COUNT( DISTINCT + + 73 ) + 75 * - - MAX( DISTINCT 61 ) * - - 95 DIV 77 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3445
SELECT + + 25 * + COUNT ( * ) + COALESCE ( 48, + 66 / 15 + + - COUNT ( DISTINCT + + 73 ) + 75 * - - MAX ( DISTINCT 61 ) * - - 95 / 77 ) AS col0
----
73

query I rowsort
SELECT ALL + + ( - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3447
SELECT + 61 - 42 + COUNT( * ) + + + 22 AS col1, + 12 * + 21
----
42
252

skipif mysql # not compatible
query II rowsort label-3447
SELECT + 61 - 42 + COUNT ( * ) + + + 22 AS col1, + 12 * + 21
----
42
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT MIN( DISTINCT - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3448
SELECT MIN ( DISTINCT - + 27 )
----
-27

query I rowsort
SELECT - 40 * + - 91 * 25 AS col2
----
91000

onlyif mysql # DIV for integer division: 
query I rowsort label-3450
SELECT + 52 + - 67 + ( 30 ) DIV + 44 col2
----
-15

skipif mysql # not compatible
query I rowsort label-3450
SELECT + 52 + - 67 + ( 30 ) / + 44 col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT ALL MIN( - - 46 ) AS col0, - 98 AS col1
----
46
-98

skipif mysql # not compatible
query II rowsort label-3451
SELECT ALL MIN ( - - 46 ) AS col0, - 98 AS col1
----
46
-98

query I rowsort
SELECT - ( - 66 ) AS col1
----
66

query I rowsort
SELECT ALL - 20 + 18 AS col0
----
-2

query I rowsort
SELECT DISTINCT COALESCE ( + - 27, - 17 )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3455
SELECT DISTINCT 45 + - + 89 AS col1, COUNT( * )
----
-44
1

skipif mysql # not compatible
query II rowsort label-3455
SELECT DISTINCT 45 + - + 89 AS col1, COUNT ( * )
----
-44
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3456
SELECT - CASE + COUNT( * ) WHEN + 74 THEN + 69 WHEN + 94 THEN CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3456
SELECT - CASE + COUNT ( * ) WHEN + 74 THEN + 69 WHEN + 94 THEN CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT + 75 + - - NULLIF ( CASE - 59 WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 69 END, 58 )
----
6

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT + 75 + - - NULLIF ( CASE - 59 WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 69 END, 58 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT ALL - COALESCE ( - 48, + + 82, + 86 + + 2 ) + - + CAST( NULL AS SIGNED ) * 55 + 38 + ( ( + 70 ) ) + + 93 + + 93 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL - COALESCE ( - 48, + + 82, + 86 + + 2 ) + - + CAST ( NULL AS INTEGER ) * 55 + 38 + ( ( + 70 ) ) + + 93 + + 93 * 60
----
NULL

query I rowsort
SELECT + 62 + + 77 col1
----
139

query I rowsort
SELECT - 56 * - 45 AS col0
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ALL SUM( - + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL SUM ( - + 19 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT ALL - + 58 - 6 DIV + + 45 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - + 58 - 6 / + + 45 AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL CASE ( - CASE + 37 WHEN 6 * - - MIN( + 2 ) + 87 + + 0 + COUNT( * ) THEN - 79 * - 31 * + 71 + + 98 + CAST( NULL AS SIGNED ) ELSE - 85 + - - 37 + + - 32 END ) WHEN 83 * 82 - + 27 * - + CAST( - 52 AS SIGNED ) * - + COALESCE ( + + 81, 16 * - COUNT( * ) ) THEN + NULLIF ( - 1, 59 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL CASE ( - CASE + 37 WHEN 6 * - - MIN ( + 2 ) + 87 + + 0 + COUNT ( * ) THEN - 79 * - 31 * + 71 + + 98 + CAST ( NULL AS INTEGER ) ELSE - 85 + - - 37 + + - 32 END ) WHEN 83 * 82 - + 27 * - + CAST ( - 52 AS INTEGER ) * - + COALESCE ( + + 81, 16 * - COUNT ( * ) ) THEN + NULLIF ( - 1, 59 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 28 * - 41 AS col0
----
1148

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3465
SELECT ALL + + MAX( ALL 67 ) / - - 45 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL + + MAX ( ALL 67 ) / - - 45 - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT + 4 * + - CAST( 6 AS SIGNED ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3466
SELECT + 4 * + - CAST ( 6 AS INTEGER ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3467
SELECT ALL - + CASE - 26 WHEN - 22 THEN NULL WHEN - 16 + + - 69 * - 78 THEN - 78 + + - 67 + + 43 * 50 END * + 3 / + 0 * CAST( NULL AS SIGNED ) + 94 + + COUNT( * ) * COALESCE ( + 24, 79 ) AS col2, 93 * 28 + COUNT( * ) + + 34
----
NULL
2639

skipif mysql # not compatible
query II rowsort label-3467
SELECT ALL - + CASE - 26 WHEN - 22 THEN NULL WHEN - 16 + + - 69 * - 78 THEN - 78 + + - 67 + + 43 * 50 END * + 3 / + 0 * CAST ( NULL AS INTEGER ) + 94 + + COUNT ( * ) * COALESCE ( + 24, 79 ) AS col2, 93 * 28 + COUNT ( * ) + + 34
----
NULL
2639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3468
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT 3 * 35 + + ( - - 1 ) + - - COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-3469
SELECT 3 * 35 + + ( - - 1 ) + - - COUNT ( * )
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3470
SELECT DISTINCT 18 DIV - + CASE - - 63 WHEN + COUNT( * ) * - 19 - + CAST( 12 AS SIGNED ) THEN NULL ELSE + 88 END * 81 * + 35
----
0

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT 18 / - + CASE - - 63 WHEN + COUNT ( * ) * - 19 - + CAST ( 12 AS INTEGER ) THEN NULL ELSE + 88 END * 81 * + 35
----
0

query I rowsort
SELECT DISTINCT + 94 * + 77 + - 57 AS col0
----
7181

query I rowsort
SELECT + ( - - 91 )
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3473
SELECT - + 59 DIV + 38 AS col2, + 67 col2
----
-1
67

skipif mysql # not compatible
query II rowsort label-3473
SELECT - + 59 / + 38 AS col2, + 67 col2
----
-1
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3474
SELECT 43 * + 76 + 5 * - 38 * + + 64 * 93 + + + 32 + - COUNT( * ) + CAST( NULL AS DECIMAL ) * - CAST( + + 92 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT 43 * + 76 + 5 * - 38 * + + 64 * 93 + + + 32 + - COUNT ( * ) + CAST ( NULL AS REAL ) * - CAST ( + + 92 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3475
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + 89, + 98 AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3475
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + 89, + 98 AS col0
----
NULL
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3476
SELECT ALL 32 * - 1 DIV + + NULLIF ( - 73, - 77 ) * + MAX( 35 ) + + - 10 + 0 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL 32 * - 1 / + + NULLIF ( - 73, - 77 ) * + MAX ( 35 ) + + - 10 + 0 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - COUNT( + 13 ) + + 81 + + 0 * - 73 * - ( 49 )
----
80

skipif mysql # not compatible
query I rowsort label-3477
SELECT - COUNT ( + 13 ) + + 81 + + 0 * - 73 * - ( 49 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT 51 * - 38 * - - 99 + - 36 + 9 - + - COUNT( * ) * + 58 * + + ( + + ( + - 30 ) ) * 54 - + 6 + - 83 * + 60 * - 21 * + 97 + + - ( 54 ) AS col0
----
9858351

skipif mysql # not compatible
query I rowsort label-3478
SELECT 51 * - 38 * - - 99 + - 36 + 9 - + - COUNT ( * ) * + 58 * + + ( + + ( + - 30 ) ) * 54 - + 6 + - 83 * + 60 * - 21 * + 97 + + - ( 54 ) AS col0
----
9858351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT + 28 * + 67 * + + 69 / 21 * 84 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT + 28 * + 67 * + + 69 / 21 * 84 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL - COUNT( * ) * + 20 * 2 + - 0 col2
----
-40

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - COUNT ( * ) * + 20 * 2 + - 0 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT - 79 * 70 * + - COUNT( * )
----
5530

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - 79 * 70 * + - COUNT ( * )
----
5530

query I rowsort
SELECT ALL 69 * 87 * + 60 + - - 89 * - 58 col0
----
355018

query I rowsort
SELECT CASE + 5 WHEN 91 THEN NULL WHEN - - 24 THEN - 9 WHEN - 63 * + AVG ( + 99 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 87 * + - 61 * 94 AS col1
----
-498858

query I rowsort
SELECT ALL - 28 * 75 + 70
----
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT NULLIF ( + COUNT( * ), - 5 / + + MAX( DISTINCT 90 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT NULLIF ( + COUNT ( * ), - 5 / + + MAX ( DISTINCT 90 ) ) AS col1
----
1

query I rowsort
SELECT + 74 + - + 58
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3488
SELECT ALL + 78 * - 18 + + 66 + + + 92 DIV + 61 + + + COUNT( * ) AS col2
----
-1336

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + 78 * - 18 + + 66 + + + 92 / + 61 + + + COUNT ( * ) AS col2
----
-1336

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT SUM( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-3489
SELECT SUM ( + 11 )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3490
SELECT MAX( ( 24 ) ), - 98 AS col0
----
24
-98

skipif mysql # not compatible
query II rowsort label-3490
SELECT MAX ( ( 24 ) ), - 98 AS col0
----
24
-98

query I rowsort
SELECT + 32 * + + 72 AS col0
----
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT ALL 38 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL 38 / 94 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT ALL 22 * - - 90 / - + CASE - CAST( NULL AS SIGNED ) WHEN SUM( ALL - CAST( 46 AS SIGNED ) ) THEN + ( - 96 ) * + - 54 * + - 48 + - 97 WHEN + 14 + COALESCE ( - - 33, + COUNT( + - 35 ) + + 4 ) THEN - 34 + COUNT( * ) ELSE NULL END - 32 * + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL 22 * - - 90 / - + CASE - CAST ( NULL AS INTEGER ) WHEN SUM ( ALL - CAST ( 46 AS INTEGER ) ) THEN + ( - 96 ) * + - 54 * + - 48 + - 97 WHEN + 14 + COALESCE ( - - 33, + COUNT ( + - 35 ) + + 4 ) THEN - 34 + COUNT ( * ) ELSE NULL END - 32 * + + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT 88 + - 73 * - 98 + COUNT( * ) * + 56 AS col2
----
7298

skipif mysql # not compatible
query I rowsort label-3494
SELECT 88 + - 73 * - 98 + COUNT ( * ) * + 56 AS col2
----
7298

query II rowsort
SELECT + 58, + 74 AS col1
----
58
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL - MIN( ALL - 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL - MIN ( ALL - 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT COUNT( * ) - - 62 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3497
SELECT COUNT ( * ) - - 62 AS col0
----
63

query I rowsort
SELECT 67 * + 2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - COUNT( * ) - - 72 - 79 + + 8 + 51
----
51

skipif mysql # not compatible
query I rowsort label-3499
SELECT - COUNT ( * ) - - 72 - 79 + + 8 + 51
----
51

query II rowsort
SELECT DISTINCT + 42, + 52 + - 22 col1
----
42
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT ALL + 54 DIV + 56 - + 51 + 69 col2
----
18

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL + 54 / + 56 - + 51 + 69 col2
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-3502
SELECT + 54 DIV 10 * - + 3, - 22 AS col0
----
-15
-22

skipif mysql # not compatible
query II rowsort label-3502
SELECT + 54 / 10 * - + 3, - 22 AS col0
----
-15
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT + 85 + + 92 + NULLIF ( + COUNT( * ), - 9 ) * ( - 0 )
----
177

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT + 85 + + 92 + NULLIF ( + COUNT ( * ), - 9 ) * ( - 0 )
----
177

query I rowsort
SELECT DISTINCT + + 88 * - 17 AS col2
----
-1496

query I rowsort
SELECT ALL - 63 + 45
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3506
SELECT + 15, + COUNT( * ) AS col0
----
15
1

skipif mysql # not compatible
query II rowsort label-3506
SELECT + 15, + COUNT ( * ) AS col0
----
15
1

query II rowsort
SELECT DISTINCT - 57 col0, - 29 AS col1
----
-57
-29

query I rowsort
SELECT 16 * 66
----
1056

query II rowsort
SELECT ALL - + 87, + 4 * + 37 col1
----
-87
148

query I rowsort
SELECT DISTINCT - - ( + 23 ) + - + 49 + 67
----
41

query I rowsort
SELECT DISTINCT - COALESCE ( 81, + 11 * + - ( + 20 ) ) col1
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-3512
SELECT ALL - 19 + - + 92 AS col1, + ( + 94 ) DIV - + NULLIF ( 70, - 40 ) + + 24 AS col0
----
-111
23

skipif mysql # not compatible
query II rowsort label-3512
SELECT ALL - 19 + - + 92 AS col1, + ( + 94 ) / - + NULLIF ( 70, - 40 ) + + 24 AS col0
----
-111
23

query I rowsort
SELECT DISTINCT + 38 + 74
----
112

query I rowsort
SELECT ALL CASE + 66 WHEN 62 THEN - 57 + 32 + 4 - + 99 + + + 50 * - 62 / + 32 / - 63 * + 36 ELSE NULL END / 86 + ( - - 99 ) + ( 39 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT 17 DIV + + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3515
SELECT 17 / + + 54 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT 91 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT 91 + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 97 - - - 45 + + 96 AS col2
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT 0 * + CAST( NULL AS SIGNED ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3518
SELECT 0 * + CAST ( NULL AS INTEGER ) * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL + MIN( DISTINCT 83 ) * - 45 * 33 * 89
----
-10969695

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + MIN ( DISTINCT 83 ) * - 45 * 33 * 89
----
-10969695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3520
SELECT COALESCE ( ( + + COUNT( * ) ), + COUNT( * ), - 21, + COALESCE ( - 61, + 85 * 85 ) ) * 3 DIV + CAST( + 67 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT COALESCE ( ( + + COUNT ( * ) ), + COUNT ( * ), - 21, + COALESCE ( - 61, + 85 * 85 ) ) * 3 / + CAST ( + 67 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT COUNT( * ) + + + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3521
SELECT COUNT ( * ) + + + 88 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT ALL CAST( NULL AS SIGNED ) - + 44 + - ( - 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL CAST ( NULL AS INTEGER ) - + 44 + - ( - 30 ) AS col1
----
NULL

query II rowsort
SELECT ALL - ( + 1 ) * - - 79 * - 53, 46 * - 52 AS col2
----
4187
-2392

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT DISTINCT COUNT( * ) * - ( 63 ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT COUNT ( * ) * - ( 63 ) col1
----
-63

query I rowsort
SELECT 72 + + + 54
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT - 63 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT - 63 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + 3 + + - 45 * - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-3527
SELECT + 3 + + - 45 * - - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + CASE - - 76 WHEN 27 / + ( - MIN( ALL - ( - + 5 ) ) ) + + 35 * + + ( + ( - + 27 ) ) THEN - + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT + CASE - - 76 WHEN 27 / + ( - MIN ( ALL - ( - + 5 ) ) ) + + 35 * + + ( + ( - + 27 ) ) THEN - + 49 END
----
NULL

query I rowsort
SELECT 51 + - 34 col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3530
SELECT 82 * - 21 + 37 + + MAX( - 10 ) + - - COUNT( * ) + CAST( NULL AS SIGNED ) * + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT 82 * - 21 + 37 + + MAX ( - 10 ) + - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 44 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL 95 + SUM( ALL - - 28 ) + - CAST( - 86 AS SIGNED ) * 62
----
5455

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL 95 + SUM ( ALL - - 28 ) + - CAST ( - 86 AS INTEGER ) * 62
----
5455

query I rowsort
SELECT DISTINCT + 25 * - 66 AS col1
----
-1650

query I rowsort
SELECT ALL - 67 + - + 39 * ( + + ( ( - 26 ) ) ) AS col0
----
947

query I rowsort
SELECT DISTINCT + 81 + + 79 * + 47 AS col1
----
3794

query I rowsort
SELECT DISTINCT 40 * - - 85
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - 79 + + CASE - 41 WHEN + 33 THEN NULL ELSE COUNT( * ) END + + 64 + + + 56 * + CASE - ( 28 ) WHEN - ( - 69 ) + 88 + - COUNT( * ) * + + 94 THEN + + 91 + + CASE - 82 WHEN + 0 * 12 - - ( + 71 ) + - - 35 THEN NULL ELSE - + 89 * + - 78 END + COUNT( * ) END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT - 79 + + CASE - 41 WHEN + 33 THEN NULL ELSE COUNT ( * ) END + + 64 + + + 56 * + CASE - ( 28 ) WHEN - ( - 69 ) + 88 + - COUNT ( * ) * + + 94 THEN + + 91 + + CASE - 82 WHEN + 0 * 12 - - ( + 71 ) + - - 35 THEN NULL ELSE - + 89 * + - 78 END + COUNT ( * ) END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL 94 * + COUNT( * ) + - 67 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL 94 * + COUNT ( * ) + - 67 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT + - 79 / + 51 + ( - 65 ) + + CAST( NULL AS SIGNED ) * 55 * + + ( + + 3 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT + - 79 / + 51 + ( - 65 ) + + CAST ( NULL AS INTEGER ) * 55 * + + ( + + 3 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT MAX( + 83 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-3539
SELECT MAX ( + 83 ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT NULLIF ( + ( 30 ), COUNT( * ) ) + + 59
----
89

skipif mysql # not compatible
query I rowsort label-3540
SELECT NULLIF ( + ( 30 ), COUNT ( * ) ) + + 59
----
89

query I rowsort
SELECT ALL 2 * 78 + - 85
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL - COUNT( - ( + 56 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - COUNT ( - ( + 56 ) ) col0
----
-1

query I rowsort
SELECT ALL - 67 * 27 + + ( + - 32 )
----
-1841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT 88 * - 36 * + AVG ( ALL - 73 ) + + 4 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT 88 * - 36 * + AVG ( ALL - 73 ) + + 4 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 17 + - - 80
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL - SUM( 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - SUM ( 11 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT 97 * - - 85 + - CAST( - + 12 AS SIGNED )
----
8257

skipif mysql # not compatible
query I rowsort label-3547
SELECT 97 * - - 85 + - CAST ( - + 12 AS INTEGER )
----
8257

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT 25 * + ( 73 ) + COUNT( * ) + + 14 * - 85
----
636

skipif mysql # not compatible
query I rowsort label-3548
SELECT 25 * + ( 73 ) + COUNT ( * ) + + 14 * - 85
----
636

query I rowsort
SELECT ALL + CASE - + ( 70 ) WHEN + 6 THEN NULL ELSE + + 90 END - - 8 * + - 67 * - - CASE + 5 WHEN - + 55 THEN NULL ELSE 17 END AS col0
----
-9022

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + COUNT( * ) * - 97
----
-97

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + COUNT ( * ) * - 97
----
-97

query I rowsort
SELECT DISTINCT + ( - 44 )
----
-44

query I rowsort
SELECT - 91 * 84 AS col0
----
-7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3553
SELECT ALL + CASE 87 WHEN - 53 - - 90 THEN NULL WHEN - - 94 * CASE 54 WHEN + 46 * 14 THEN - 86 + NULLIF ( + 3, + + 33 * - + CASE AVG ( ALL - 37 ) WHEN 67 + - + COUNT( * ) THEN NULL WHEN + - CASE - - 96 WHEN + - 67 THEN ( 66 ) WHEN 65 THEN NULL ELSE NULL END THEN + NULLIF ( CAST( + 69 AS SIGNED ), 66 + - 54 * + MIN( ALL 32 ) ) END ) WHEN + 36 - - 5 THEN NULL ELSE NULL END * 79 + + 45 * 85 + + 42 THEN 18 + ( - 19 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + CASE 87 WHEN - 53 - - 90 THEN NULL WHEN - - 94 * CASE 54 WHEN + 46 * 14 THEN - 86 + NULLIF ( + 3, + + 33 * - + CASE AVG ( ALL - 37 ) WHEN 67 + - + COUNT ( * ) THEN NULL WHEN + - CASE - - 96 WHEN + - 67 THEN ( 66 ) WHEN 65 THEN NULL ELSE NULL END THEN + NULLIF ( CAST ( + 69 AS INTEGER ), 66 + - 54 * + MIN ( ALL 32 ) ) END ) WHEN + 36 - - 5 THEN NULL ELSE NULL END * 79 + + 45 * 85 + + 42 THEN 18 + ( - 19 ) END AS col1
----
NULL

query II rowsort
SELECT ALL 30, 93 AS col1
----
30
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT DISTINCT COUNT( DISTINCT + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 56 * + 50 * - 7
----
19600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3557
SELECT + ( + 8 ) DIV + 43 col0, 84 - SUM( DISTINCT + - 93 )
----
0
177

skipif mysql # not compatible
query II rowsort label-3557
SELECT + ( + 8 ) / + 43 col0, 84 - SUM ( DISTINCT + - 93 )
----
0
177

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT DISTINCT + 54 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT + 54 / 66
----
0

query I rowsort
SELECT ALL NULLIF ( - 19, - 28 ) col0
----
-19

query I rowsort
SELECT DISTINCT + 21 * - - ( - 2 ) + + 8 AS col0
----
-34

query I rowsort
SELECT - + 99 * - 25
----
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT ALL 40 * - + CAST( NULL AS SIGNED ) / ( - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL 40 * - + CAST ( NULL AS INTEGER ) / ( - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT - COALESCE ( + + 60, 94 ) DIV + 7 + + COUNT( ALL + + 38 ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-3563
SELECT - COALESCE ( + + 60, 94 ) / + 7 + + COUNT ( ALL + + 38 ) col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT DISTINCT - CAST( + 56 AS SIGNED ) + - 18
----
-74

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT - CAST ( + 56 AS INTEGER ) + - 18
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT ALL + 18 + - MAX( - 82 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL + 18 + - MAX ( - 82 ) AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3566
SELECT DISTINCT + CASE - - 7 WHEN - - ( - 36 ) * - 83 THEN NULL WHEN + 49 - - COUNT( DISTINCT CAST( - 1 AS DECIMAL ) ) + - 31 * - COALESCE ( - 76, + 37, - + CAST( COALESCE ( - + 79, + - 36, - + 22 ) AS SIGNED ) ) THEN NULL ELSE - COUNT( * ) END + + + 22 + - 6, - 20 * - - 90 col2
----
15
-1800

skipif mysql # not compatible
query II rowsort label-3566
SELECT DISTINCT + CASE - - 7 WHEN - - ( - 36 ) * - 83 THEN NULL WHEN + 49 - - COUNT ( DISTINCT CAST ( - 1 AS REAL ) ) + - 31 * - COALESCE ( - 76, + 37, - + CAST ( COALESCE ( - + 79, + - 36, - + 22 ) AS INTEGER ) ) THEN NULL ELSE - COUNT ( * ) END + + + 22 + - 6, - 20 * - - 90 col2
----
15
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT + COUNT( * ) * 97 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3567
SELECT + COUNT ( * ) * 97 AS col2
----
97

query I rowsort
SELECT ALL - 27 * + 2
----
-54

query I rowsort
SELECT - 80 + + 2 * 7
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT NULLIF ( - MAX( - 51 ), - 81 * + 41 + - COUNT( DISTINCT - + ( - 58 ) ) ) + - 7
----
44

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT NULLIF ( - MAX ( - 51 ), - 81 * + 41 + - COUNT ( DISTINCT - + ( - 58 ) ) ) + - 7
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3571
SELECT - + 22, + CAST( NULL AS SIGNED ) AS col1
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-3571
SELECT - + 22, + CAST ( NULL AS INTEGER ) AS col1
----
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL + 3 + - + COUNT( * ) * 1 + + 7 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + 3 + - + COUNT ( * ) * 1 + + 7 AS col2
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-3573
SELECT + + 97 - + 22 DIV - - 81 AS col2, - 79
----
97
-79

skipif mysql # not compatible
query II rowsort label-3573
SELECT + + 97 - + 22 / - - 81 AS col2, - 79
----
97
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT + - 22 + CAST( NULL AS SIGNED ) + - AVG ( + 59 ) / - 92 * CAST( NULL AS SIGNED ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT + - 22 + CAST ( NULL AS INTEGER ) + - AVG ( + 59 ) / - 92 * CAST ( NULL AS INTEGER ) * 21
----
NULL

query I rowsort
SELECT DISTINCT + 53 * 85
----
4505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL 13 - 91 + + + 38 * 66 + CAST( - ( - COUNT( * ) ) AS SIGNED )
----
2431

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL 13 - 91 + + + 38 * 66 + CAST ( - ( - COUNT ( * ) ) AS INTEGER )
----
2431

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3577
SELECT ALL - CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + + 66 * ( + 44 ) - + + 97 AS col2
----
2807

onlyif mysql # DIV for integer division: 
query II rowsort label-3579
SELECT ALL + 46 AS col1, 51 DIV + + NULLIF ( 58, + 16 + - 52 DIV + 7 )
----
46
0

skipif mysql # not compatible
query II rowsort label-3579
SELECT ALL + 46 AS col1, 51 / + + NULLIF ( 58, + 16 + - 52 / + 7 )
----
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT + 58 - 66 - - - COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3580
SELECT + 58 - 66 - - - COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL ( + - 97 ) * + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL ( + - 97 ) * + - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3582
SELECT 39 DIV - - COUNT( * ) + + 62
----
101

skipif mysql # not compatible
query I rowsort label-3582
SELECT 39 / - - COUNT ( * ) + + 62
----
101

query I rowsort
SELECT - 28 * 26
----
-728

query II rowsort
SELECT ALL + 87 AS col2, 9 + + 80 AS col1
----
87
89

query II rowsort
SELECT DISTINCT + 65 AS col1, 8 AS col1
----
65
8

query I rowsort
SELECT ALL - 30 * + + COALESCE ( - 77, + 72 ) * 39
----
90090

query I rowsort
SELECT NULLIF ( + 52, - 80 * - COALESCE ( + 99, + 15 ) ) AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT ALL 15 DIV + - 58
----
0

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL 15 / + - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - CASE + 66 WHEN 11 THEN NULL ELSE COUNT( ( - 54 ) ) END * + 45 + - - 86 + 61 + + - 59 - - 2
----
45

skipif mysql # not compatible
query I rowsort label-3589
SELECT - CASE + 66 WHEN 11 THEN NULL ELSE COUNT ( ( - 54 ) ) END * + 45 + - - 86 + 61 + + - 59 - - 2
----
45

query II rowsort
SELECT + 75 AS col2, 16 * 11 AS col1
----
75
176

query I rowsort
SELECT + ( + - 48 ) AS col0
----
-48

query I rowsort
SELECT + 56 + + + 46 + + 98 AS col1
----
200

query II rowsort
SELECT ALL + 96 AS col0, + 26
----
96
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT + 73 + COUNT( * ) + + MAX( ALL - 87 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3594
SELECT + 73 + COUNT ( * ) + + MAX ( ALL - 87 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + COUNT( * ) * 88
----
88

skipif mysql # not compatible
query I rowsort label-3595
SELECT + COUNT ( * ) * 88
----
88

query I rowsort
SELECT - ( + 53 ) * 11
----
-583

query I rowsort
SELECT ALL + 58 * + 4
----
232

query II rowsort
SELECT ALL - 91, + 53 + - ( 64 ) * - - 48 AS col0
----
-91
-3019

query I rowsort
SELECT - 98 + + NULLIF ( ( + - NULLIF ( - 63, 16 ) ), 25 )
----
-35

query I rowsort
SELECT ALL - - 47 * - 47 + - 77
----
-2286

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL + MAX( 19 ) + - - 19
----
38

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + MAX ( 19 ) + - - 19
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT - + 62 + + COALESCE ( - + 28, + + COUNT( * ) - + + 26 + - 0 * - + 38 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-3602
SELECT - + 62 + + COALESCE ( - + 28, + + COUNT ( * ) - + + 26 + - 0 * - + 38 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3603
SELECT - + 92 * 50, 75 * - 32 - - 93 * 41 * ( 11 ) * + COUNT( * ) + 3 * - 49 col1
----
-4600
39396

skipif mysql # not compatible
query II rowsort label-3603
SELECT - + 92 * 50, 75 * - 32 - - 93 * 41 * ( 11 ) * + COUNT ( * ) + 3 * - 49 col1
----
-4600
39396

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT - - 87 + MAX( 13 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-3604
SELECT - - 87 + MAX ( 13 ) AS col2
----
100

query II rowsort
SELECT + 33 AS col0, 62
----
33
62

query I rowsort
SELECT DISTINCT - 65 + - 56 AS col0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL + - 39 + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + - 39 + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - + 35 AS col2, 87 AS col0
----
-35
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + - COUNT( * ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-3609
SELECT + - COUNT ( * ) + 28
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL - COUNT( * ) + - 13 + - - COUNT( * ) * - 99 * + 55
----
-5459

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL - COUNT ( * ) + - 13 + - - COUNT ( * ) * - 99 * + 55
----
-5459

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT + 70 * 93 * - - COALESCE ( 19, - 19 ) * + COUNT( * ) AS col2, 77
----
123690
77

skipif mysql # not compatible
query II rowsort label-3611
SELECT + 70 * 93 * - - COALESCE ( 19, - 19 ) * + COUNT ( * ) AS col2, 77
----
123690
77

query I rowsort
SELECT ALL - 15 * 6
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT + SUM( - - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-3613
SELECT + SUM ( - - 74 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3614
SELECT DISTINCT - - 10 DIV + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT - - 10 / + COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT 58 * + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT 58 * + COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT + - 85 + + 25 + + COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3616
SELECT + - 85 + + 25 + + COUNT ( * ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL + 80 * + 2 + + CASE AVG ( DISTINCT 47 ) WHEN + + AVG ( ALL - 82 ) * - + 14 THEN + 1 - - - COUNT( * ) - - 23 END + - 13 * - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL + 80 * + 2 + + CASE AVG ( DISTINCT 47 ) WHEN + + AVG ( ALL - 82 ) * - + 14 THEN + 1 - - - COUNT ( * ) - - 23 END + - 13 * - 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - + COUNT( ALL + 41 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3618
SELECT - + COUNT ( ALL + 41 ) AS col0
----
-1

query I rowsort
SELECT ( - 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT - - 40, SUM( + + 38 ) col2
----
40
38

skipif mysql # not compatible
query II rowsort label-3620
SELECT - - 40, SUM ( + + 38 ) col2
----
40
38

query I rowsort
SELECT - 46 * - - 83 AS col2
----
-3818

query I rowsort
SELECT - 63 + - 92
----
-155

query I rowsort
SELECT DISTINCT + 78 col2
----
78

query I rowsort
SELECT + 40 + 83 * - 17 * + 51 col1
----
-71921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3625
SELECT - 2 DIV 15 * 21 + + COUNT( * ) - - 59 DIV 16 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3625
SELECT - 2 / 15 * 21 + + COUNT ( * ) - - 59 / 16 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ( - + COUNT( DISTINCT - 63 ) ) + 50 + + 35 * 8 * - - 93 AS col1
----
26089

skipif mysql # not compatible
query I rowsort label-3626
SELECT ( - + COUNT ( DISTINCT - 63 ) ) + 50 + + 35 * 8 * - - 93 AS col1
----
26089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT ALL CAST( 75 AS SIGNED ) + + 28
----
103

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL CAST ( 75 AS INTEGER ) + + 28
----
103

query I rowsort
SELECT DISTINCT 27 * - 21
----
-567

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3629
SELECT 70 DIV COUNT( * ), + ( + 91 ) col1
----
70
91

skipif mysql # not compatible
query II rowsort label-3629
SELECT 70 / COUNT ( * ), + ( + 91 ) col1
----
70
91

query I rowsort
SELECT DISTINCT 3 + 91 - + - ( + + 57 )
----
151

query I rowsort
SELECT ALL 20 + - + ( - 84 ) + 85 AS col2
----
189

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3632
SELECT ALL CAST( NULL AS DECIMAL ) + + 36 + - 57 - - + 3 + COALESCE ( - 88, + COALESCE ( 87, COUNT( - 48 ) + + 23, + MAX( - 33 ) * + 84 ), COUNT( * ) ) * 50 * COALESCE ( - 90, - COUNT( * ), + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL CAST ( NULL AS REAL ) + + 36 + - 57 - - + 3 + COALESCE ( - 88, + COALESCE ( 87, COUNT ( - 48 ) + + 23, + MAX ( - 33 ) * + 84 ), COUNT ( * ) ) * 50 * COALESCE ( - 90, - COUNT ( * ), + 39 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT ALL - 71 + - CAST( + 61 AS SIGNED ) * MIN( + 25 ) AS col1
----
-1596

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - 71 + - CAST ( + 61 AS INTEGER ) * MIN ( + 25 ) AS col1
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT + 91 * + COALESCE ( + 3, 15, + 31 * COUNT( * ) + + 56 )
----
273

skipif mysql # not compatible
query I rowsort label-3634
SELECT + 91 * + COALESCE ( + 3, 15, + 31 * COUNT ( * ) + + 56 )
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + - COALESCE ( + + 90, 67 * + + COUNT( * ) ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-3635
SELECT + - COALESCE ( + + 90, 67 * + + COUNT ( * ) ) col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3636
SELECT ALL + - SUM( ALL 3 ) + + - 14 DIV - - 65 + - 79 * + + 22 col2
----
-1741

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + - SUM ( ALL 3 ) + + - 14 / - - 65 + - 79 * + + 22 col2
----
-1741

query I rowsort
SELECT DISTINCT - 38 + - 35
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3638
SELECT ALL - COUNT( * ) DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - COUNT ( * ) / 63 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3639
SELECT 26 DIV 42 AS col2, CASE - + CASE COALESCE ( - + NULLIF ( 43, + AVG ( ALL + 4 ) DIV + 35 * + AVG ( ALL - 26 ) ), + - 62, ( + + 98 ) ) WHEN - 98 THEN NULL WHEN COUNT( * ) + - 29 THEN 16 ELSE NULL END WHEN 68 THEN - 1 + - + 93 ELSE NULL END + 78 * - + COUNT( * )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3639
SELECT 26 / 42 AS col2, CASE - + CASE COALESCE ( - + NULLIF ( 43, + AVG ( ALL + 4 ) / + 35 * + AVG ( ALL - 26 ) ), + - 62, ( + + 98 ) ) WHEN - 98 THEN NULL WHEN COUNT ( * ) + - 29 THEN 16 ELSE NULL END WHEN 68 THEN - 1 + - + 93 ELSE NULL END + 78 * - + COUNT ( * )
----
0
NULL

query I rowsort
SELECT ALL 2 + + 66
----
68

query I rowsort
SELECT DISTINCT - + 50 - + - 29 + ( 99 )
----
78

query I rowsort
SELECT ALL COALESCE ( + 70, - + 43 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL - 86 * + 39 * MIN( ALL - + 96 )
----
321984

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL - 86 * + 39 * MIN ( ALL - + 96 )
----
321984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3644
SELECT ALL - ( - 50 ) - - SUM( ( + 51 ) ) + 37 + + CASE - + COUNT( * ) WHEN - 70 + + 63 - + 71 + - - 20 + - + ( + + SUM( ALL + 40 ) ) * 91 THEN NULL WHEN - ( COALESCE ( 45, ( 8 ) * + 4, 19 - - 44 * - CASE - - 16 WHEN + CAST( NULL AS SIGNED ) * - 98 + + 76 THEN + + NULLIF ( CAST( NULL AS DECIMAL ), - 1 ) / - 92 END, 26 - - 71 ) ) + - 51 THEN - ( 98 ) + COUNT( * ) ELSE + COUNT( * ) END * + 77
----
215

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - ( - 50 ) - - SUM ( ( + 51 ) ) + 37 + + CASE - + COUNT ( * ) WHEN - 70 + + 63 - + 71 + - - 20 + - + ( + + SUM ( ALL + 40 ) ) * 91 THEN NULL WHEN - ( COALESCE ( 45, ( 8 ) * + 4, 19 - - 44 * - CASE - - 16 WHEN + CAST ( NULL AS INTEGER ) * - 98 + + 76 THEN + + NULLIF ( CAST ( NULL AS REAL ), - 1 ) / - 92 END, 26 - - 71 ) ) + - 51 THEN - ( 98 ) + COUNT ( * ) ELSE + COUNT ( * ) END * + 77
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT - MIN( 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT - MIN ( 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL + COALESCE ( + 69, - COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL + COALESCE ( + 69, - COUNT ( * ) )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT COUNT( * ) + + + CASE + CAST( NULL AS SIGNED ) WHEN 39 * 88 THEN + ( + COUNT( * ) ) WHEN + 77 THEN + - 18 END * - + 97 + + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3647
SELECT COUNT ( * ) + + + CASE + CAST ( NULL AS INTEGER ) WHEN 39 * 88 THEN + ( + COUNT ( * ) ) WHEN + 77 THEN + - 18 END * - + 97 + + + 61
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 72, 0 - - + 25 ) col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT 10 - COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3649
SELECT 10 - COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT ALL 94 AS col2, MAX( + ( - 87 ) )
----
94
-87

skipif mysql # not compatible
query II rowsort label-3650
SELECT ALL 94 AS col2, MAX ( + ( - 87 ) )
----
94
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3652
SELECT ALL - 75 DIV + + 6 * + - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - 75 / + + 6 * + - COUNT ( * ) AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT 26 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT 26 / 72 AS col0
----
0

query I rowsort
SELECT ALL + 30 * NULLIF ( - 29, - 16 ) * - 84
----
73080

query I rowsort
SELECT DISTINCT + 57 * - 54
----
-3078

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT 16 DIV - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT 16 / - 31 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL + CAST( NULL AS SIGNED ) + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + CAST ( NULL AS INTEGER ) + 73 AS col0
----
NULL

query I rowsort
SELECT 32 - - - 60 AS col1
----
-28

query I rowsort
SELECT 51 * + 2 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL - 67 + - 15 - SUM( ALL + - 97 ) + 43 - + - 7 * - 75
----
-467

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL - 67 + - 15 - SUM ( ALL + - 97 ) + 43 - + - 7 * - 75
----
-467

query I rowsort
SELECT DISTINCT - ( - 51 ) AS col1
----
51

query II rowsort
SELECT 52 AS col1, + 37
----
52
37

query I rowsort
SELECT ALL 14 + 56
----
70

query II rowsort
SELECT 60, - 81 AS col2
----
60
-81

query I rowsort
SELECT 51 + - 98
----
-47

query I rowsort
SELECT + 56 + 66 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT - 48 * + 32 * + COUNT( * ) * COUNT( * ) AS col2
----
-1536

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT - 48 * + 32 * + COUNT ( * ) * COUNT ( * ) AS col2
----
-1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3668
SELECT 74 + - COUNT( * ) * - 56, + CAST( - ( + 38 ) AS SIGNED ) AS col1
----
130
-38

skipif mysql # not compatible
query II rowsort label-3668
SELECT 74 + - COUNT ( * ) * - 56, + CAST ( - ( + 38 ) AS INTEGER ) AS col1
----
130
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT + 39 - - + CAST( NULL AS SIGNED ) * + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT + 39 - - + CAST ( NULL AS INTEGER ) * + 25 AS col0
----
NULL

query I rowsort
SELECT + 76 * 30 * + CASE + 74 WHEN - 56 * 89 + + - 11 * + + ( - - ( + 42 ) ) THEN - + 62 ELSE NULL END * 16 + - 48 AS col1
----
NULL

query I rowsort
SELECT 51 * + + 69
----
3519

query I rowsort
SELECT + 96 + 8
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT ALL COUNT( * ) - - - 51 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL COUNT ( * ) - - - 51 AS col2
----
-50

query I rowsort
SELECT 43 + - + 71
----
-28

query I rowsort
SELECT 31 * - + 70
----
-2170

query I rowsort
SELECT 90 + - - 54
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT ALL - COUNT( * ), COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-3677
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT + ( + 69 ) * - CASE + + 42 WHEN + - 89 * - - 53 * + 39 - + - 25 - + 6 THEN - COUNT( * ) ELSE + 92 - - + 2 END - + COUNT( * ) + + + NULLIF ( + 65, - + 33 * - + 25 - + 90 * + - 57 + + + 16 + - 9 - + 13 - + 34 / + 21 )
----
-6422

skipif mysql # not compatible
query I rowsort label-3678
SELECT + ( + 69 ) * - CASE + + 42 WHEN + - 89 * - - 53 * + 39 - + - 25 - + 6 THEN - COUNT ( * ) ELSE + 92 - - + 2 END - + COUNT ( * ) + + + NULLIF ( + 65, - + 33 * - + 25 - + 90 * + - 57 + + + 16 + - 9 - + 13 - + 34 / + 21 )
----
-6422

query II rowsort
SELECT - - 20, + 91 AS col2
----
20
91

query I rowsort
SELECT - 46 + ( - ( - ( 96 ) ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - + MIN( DISTINCT + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-3681
SELECT - + MIN ( DISTINCT + 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL - ( - + COUNT( ALL - - 51 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - ( - + COUNT ( ALL - - 51 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT COUNT( * ) * ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3683
SELECT COUNT ( * ) * ( COUNT ( * ) )
----
1

query II rowsort
SELECT + 99 + - 40 * 52 + - 92 col2, 49 AS col1
----
-2073
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT DISTINCT 64 * + MIN( ALL - - 47 ) * + - ( - - 81 ) + 43 AS col2
----
-243605

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT 64 * + MIN ( ALL - - 47 ) * + - ( - - 81 ) + 43 AS col2
----
-243605

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT DISTINCT + 98 + - 92 * 30 + - COUNT( * ) + - ( + 95 ) AS col1
----
-2758

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT + 98 + - 92 * 30 + - COUNT ( * ) + - ( + 95 ) AS col1
----
-2758

query I rowsort
SELECT DISTINCT 57 + + + 12 AS col0
----
69

query I rowsort
SELECT - 69 + - - 34
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT ALL COUNT( ALL + 13 ) AS col2, 55 col0
----
1
55

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL COUNT ( ALL + 13 ) AS col2, 55 col0
----
1
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3690
SELECT - SUM( DISTINCT + 15 ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT - SUM ( DISTINCT + 15 ) / 80
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3691
SELECT + 74 + - 29 + + 62 DIV + 22 + + + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 74 + - 29 + + 62 / + 22 + + + COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT NULLIF ( - 5, - SUM( + 10 ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3692
SELECT NULLIF ( - 5, - SUM ( + 10 ) ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL MAX( + + 34 ) * - - 50 + - 26 col0
----
1674

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL MAX ( + + 34 ) * - - 50 + - 26 col0
----
1674

query I rowsort
SELECT + 6 * + 68 + + 10 col1
----
418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3695
SELECT DISTINCT + COALESCE ( + 5, + 93, + + MAX( + 13 ) ) DIV + + 77
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT + COALESCE ( + 5, + 93, + + MAX ( + 13 ) ) / + + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL 37 * - COUNT( * ) + - 68 AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL 37 * - COUNT ( * ) + - 68 AS col1
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3697
SELECT 0 * + CASE 30 WHEN 12 * + - COUNT( * ) THEN NULL WHEN - 48 THEN - 5 + + - 20 WHEN 82 THEN NULL END + + - 31 + - 24 + + + CASE - + NULLIF ( COUNT( * ), + + 23 ) WHEN - + 65 + CAST( NULL AS SIGNED ) THEN COUNT( * ) / - 46 ELSE COUNT( * ) END + + 81 * + 63 AS col2, CASE - - COUNT( * ) WHEN + 0 / - 50 THEN + 36 / 3 + + + 30 END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3697
SELECT 0 * + CASE 30 WHEN 12 * + - COUNT ( * ) THEN NULL WHEN - 48 THEN - 5 + + - 20 WHEN 82 THEN NULL END + + - 31 + - 24 + + + CASE - + NULLIF ( COUNT ( * ), + + 23 ) WHEN - + 65 + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) / - 46 ELSE COUNT ( * ) END + + 81 * + 63 AS col2, CASE - - COUNT ( * ) WHEN + 0 / - 50 THEN + 36 / 3 + + + 30 END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT - CASE - - 54 WHEN + COUNT( * ) THEN + 74 WHEN - ( - 25 ) THEN + - 75 END * 74 * 89 - SUM( DISTINCT - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT - CASE - - 54 WHEN + COUNT ( * ) THEN + 74 WHEN - ( - 25 ) THEN + - 75 END * 74 * 89 - SUM ( DISTINCT - 57 )
----
NULL

query II rowsort
SELECT ALL + 9 * 27, 95 AS col2
----
243
95

query I rowsort
SELECT DISTINCT 99 * + 24 + 6 + + - 73 * - 66
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT NULLIF ( COUNT( * ), + - 71 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3701
SELECT NULLIF ( COUNT ( * ), + - 71 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - SUM( DISTINCT + - 16 ) + + - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3702
SELECT - SUM ( DISTINCT + - 16 ) + + - COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL SUM( - NULLIF ( - - 3, - 81 ) ) * + 9 - - + 14 * + - MIN( 14 ) + + + ( 83 ) AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL SUM ( - NULLIF ( - - 3, - 81 ) ) * + 9 - - + 14 * + - MIN ( 14 ) + + + ( 83 ) AS col1
----
-140

query I rowsort
SELECT - - 5 * + 70 col0
----
350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3705
SELECT + 29 * + + 19 * 24 * + 1 * - - CASE 35 WHEN - - 90 + + 60 THEN - - 30 WHEN + CASE - - 18 WHEN + + 45 * 27 * + 5 + + - COUNT( * ) / AVG ( DISTINCT + 32 ) * COUNT( * ) THEN + 90 / ( 43 ) + - - 45 + + COUNT( DISTINCT - 19 ) - + ( - 28 ) END - + COUNT( * ) - + - 70 / 26 + - 58 + + - 48 + - + 22 * + CAST( NULL AS SIGNED ) * + + COALESCE ( ( 21 ), 9 ) + COUNT( * ) / - 86 THEN NULL END * - 57 + CAST( 40 + + 80 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT + 29 * + + 19 * 24 * + 1 * - - CASE 35 WHEN - - 90 + + 60 THEN - - 30 WHEN + CASE - - 18 WHEN + + 45 * 27 * + 5 + + - COUNT ( * ) / AVG ( DISTINCT + 32 ) * COUNT ( * ) THEN + 90 / ( 43 ) + - - 45 + + COUNT ( DISTINCT - 19 ) - + ( - 28 ) END - + COUNT ( * ) - + - 70 / 26 + - 58 + + - 48 + - + 22 * + CAST ( NULL AS INTEGER ) * + + COALESCE ( ( 21 ), 9 ) + COUNT ( * ) / - 86 THEN NULL END * - 57 + CAST ( 40 + + 80 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT - CASE - CAST( + 0 AS SIGNED ) WHEN + 2 * 92 THEN 53 * + ( COUNT( DISTINCT + - CAST( + 77 AS SIGNED ) ) ) ELSE + CASE 10 WHEN - 56 THEN - COUNT( * ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT - CASE - CAST ( + 0 AS INTEGER ) WHEN + 2 * 92 THEN 53 * + ( COUNT ( DISTINCT + - CAST ( + 77 AS INTEGER ) ) ) ELSE + CASE 10 WHEN - 56 THEN - COUNT ( * ) ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT ALL + ( - 1 ) col2, 7 + - MIN( ALL 87 ) * - MIN( + ( + - 1 ) ) + - + 32 * + 89
----
-1
-2928

skipif mysql # not compatible
query II rowsort label-3707
SELECT ALL + ( - 1 ) col2, 7 + - MIN ( ALL 87 ) * - MIN ( + ( + - 1 ) ) + - + 32 * + 89
----
-1
-2928

query II rowsort
SELECT 8 * 81 + - 15 * 6, + 27 col1
----
558
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL - 51 * - + NULLIF ( - 39, COUNT( * ) * - 43 ) - + 84
----
-2073

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL - 51 * - + NULLIF ( - 39, COUNT ( * ) * - 43 ) - + 84
----
-2073

query I rowsort
SELECT ALL 20 * - 64 AS col2
----
-1280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT - - 87 DIV 59 * + - MIN( DISTINCT + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-3711
SELECT - - 87 / 59 * + - MIN ( DISTINCT + 69 )
----
-69

query I rowsort
SELECT + + 81 * 2
----
162

query I rowsort
SELECT - + ( + ( 45 ) ) - 41 AS col0
----
-86

query I rowsort
SELECT + - 48 * + 68 * - 14 AS col2
----
45696

query I rowsort
SELECT ALL - 43 * + 37
----
-1591

query I rowsort
SELECT ALL + + 49 * - + 39 AS col0
----
-1911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT ALL - NULLIF ( COUNT( * ), + + 81 * - - SUM( DISTINCT - - 20 ) DIV - + COUNT( * ) ) + + 86 + + MIN( + - 85 ) * 85 DIV + 20
----
-276

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - NULLIF ( COUNT ( * ), + + 81 * - - SUM ( DISTINCT - - 20 ) / - + COUNT ( * ) ) + + 86 + + MIN ( + - 85 ) * 85 / + 20
----
-276

query I rowsort
SELECT ALL 87 + - + 50 + 2 * - 41
----
-45

query I rowsort
SELECT ALL 5 + 60 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3720
SELECT - ( CAST( COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3720
SELECT - ( CAST ( COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + 45 * COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3721
SELECT + 45 * COUNT ( * ) AS col2
----
45

query I rowsort
SELECT ALL 51 + + + 34 AS col2
----
85

query I rowsort
SELECT + 51 * 46
----
2346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3724
SELECT + 9 + - 94 + 61 + + ( + + COUNT( * ) ) DIV + 26 + + COUNT( * ) * + 17
----
-7

skipif mysql # not compatible
query I rowsort label-3724
SELECT + 9 + - 94 + 61 + + ( + + COUNT ( * ) ) / + 26 + + COUNT ( * ) * + 17
----
-7

query I rowsort
SELECT ALL ( 62 ) * + 92 + 17
----
5721

query I rowsort
SELECT ALL - 49 + + 14 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT + NULLIF ( 74, - CAST( NULL AS SIGNED ) * + - COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + NULLIF ( 74, - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) )
----
74

query I rowsort
SELECT DISTINCT 44 * 72
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT CAST( - CAST( 99 AS SIGNED ) AS SIGNED ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3729
SELECT CAST ( - CAST ( 99 AS INTEGER ) AS INTEGER ) AS col0
----
-99

query I rowsort
SELECT + 61 - + + ( - - 72 ) AS col0
----
-11

query I rowsort
SELECT + - 59 * 84 * ( - - 92 ) AS col1
----
-455952

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + - COALESCE ( + - 70, + + ( MIN( DISTINCT 68 ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + - COALESCE ( + - 70, + + ( MIN ( DISTINCT 68 ) ) )
----
70

query I rowsort
SELECT ALL - ( - COALESCE ( 38, + + 37 ) ) * 93 AS col2
----
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - 65 * - NULLIF ( CASE - COUNT( * ) WHEN - - 10 THEN - ( 96 ) / 68 + - 54 + - 60 + - - 53 * + + 81 / 33 + - + COUNT( * ) * - 94 END, - 64 * COUNT( * ) + + 74 + - 52 + + + COUNT( * ) * - 47 * + SUM( - 9 ) ) * - 33 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT - 65 * - NULLIF ( CASE - COUNT ( * ) WHEN - - 10 THEN - ( 96 ) / 68 + - 54 + - 60 + - - 53 * + + 81 / 33 + - + COUNT ( * ) * - 94 END, - 64 * COUNT ( * ) + + 74 + - 52 + + + COUNT ( * ) * - 47 * + SUM ( - 9 ) ) * - 33 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3735
SELECT ALL - - COUNT( * ) DIV - NULLIF ( COUNT( * ), + + 78 * - 0 * - ( + - 28 ) + - 96 + + 78 * - 71 * + - 48 ) + - + 11
----
-12

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - - COUNT ( * ) / - NULLIF ( COUNT ( * ), + + 78 * - 0 * - ( + - 28 ) + - 96 + + 78 * - 71 * + - 48 ) + - + 11
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT DISTINCT - 54 * - - CAST( - 89 AS SIGNED )
----
4806

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - 54 * - - CAST ( - 89 AS INTEGER )
----
4806

query I rowsort
SELECT - + 32 + - - 97
----
65

query I rowsort
SELECT - + 27 * 78
----
-2106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3739
SELECT DISTINCT + ( - ( - - NULLIF ( - 30, - - ( - - COUNT( - CAST( NULL AS SIGNED ) ) ) ) ) ) * - 53 + + COUNT( * ) col1
----
-1589

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT + ( - ( - - NULLIF ( - 30, - - ( - - COUNT ( - CAST ( NULL AS INTEGER ) ) ) ) ) ) * - 53 + + COUNT ( * ) col1
----
-1589

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - MIN( - 57 ) + 70 * + + 61
----
4327

skipif mysql # not compatible
query I rowsort label-3740
SELECT - MIN ( - 57 ) + 70 * + + 61
----
4327

onlyif mysql # aggregate syntax: 
query II rowsort label-3741
SELECT ALL - + 61 * + + COUNT( - 23 ) + COUNT( * ) + + COUNT( * ) AS col0, 59 AS col1
----
-59
59

skipif mysql # not compatible
query II rowsort label-3741
SELECT ALL - + 61 * + + COUNT ( - 23 ) + COUNT ( * ) + + COUNT ( * ) AS col0, 59 AS col1
----
-59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - 67 + + + COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3742
SELECT - 67 + + + COUNT ( * ) AS col1
----
-66

query II rowsort
SELECT DISTINCT + 2 * 72 - 35, 67 AS col0
----
109
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL - 11 + COUNT( * ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL - 11 + COUNT ( * ) col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT DISTINCT 38 * 70 * + CASE - 79 WHEN - - SUM( DISTINCT - 53 ) / CAST( NULL AS SIGNED ) / - 1 / - - COALESCE ( + + 7, - COUNT( * ) + + 88 - + MAX( DISTINCT + + 60 ) / ( + + 19 ), NULLIF ( - 43, CAST( NULL AS SIGNED ) ) ) * + 83 THEN - 57 - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT 38 * 70 * + CASE - 79 WHEN - - SUM ( DISTINCT - 53 ) / CAST ( NULL AS INTEGER ) / - 1 / - - COALESCE ( + + 7, - COUNT ( * ) + + 88 - + MAX ( DISTINCT + + 60 ) / ( + + 19 ), NULLIF ( - 43, CAST ( NULL AS INTEGER ) ) ) * + 83 THEN - 57 - 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL + 89 + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + 89 + + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL 64 + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL 64 + - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT COALESCE ( - COUNT( ALL 47 ), + 96 + - 26 + - 28, - 30 ) + - 46 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3748
SELECT COALESCE ( - COUNT ( ALL 47 ), + 96 + - 26 + - 28, - 30 ) + - 46 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT 55 + - - MAX( - + 85 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3749
SELECT 55 + - - MAX ( - + 85 ) AS col1
----
-30

query II rowsort
SELECT - 46, - 67 AS col0
----
-46
-67

query II rowsort
SELECT - 47 AS col0, 54 * ( + + 16 ) * + 68
----
-47
58752

query II rowsort
SELECT ALL 48 AS col1, + 37 AS col0
----
48
37

query I rowsort
SELECT 35 * + 2
----
70

query I rowsort
SELECT ALL 4 + + 71
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT DISTINCT 63 + 75 + NULLIF ( - 49, ( - CASE - - MIN( ALL ( - 90 ) ) WHEN - + 34 THEN ( + 11 ) ELSE NULL END ) * - 43 ) DIV + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT 63 + 75 + NULLIF ( - 49, ( - CASE - - MIN ( ALL ( - 90 ) ) WHEN - + 34 THEN ( + 11 ) ELSE NULL END ) * - 43 ) / + COUNT ( * ) AS col2
----
89

query I rowsort
SELECT DISTINCT - ( 88 ) * - 96
----
8448

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3757
SELECT 61 * ( 24 ) * - - CAST( NULL AS DECIMAL ) * ( - 78 ) AS col1, - 79 - ( - + COUNT( * ) ) col0
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-3757
SELECT 61 * ( 24 ) * - - CAST ( NULL AS REAL ) * ( - 78 ) AS col1, - 79 - ( - + COUNT ( * ) ) col0
----
NULL
-78

query I rowsort
SELECT ALL + ( + 49 ) - - 97
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT 68 col2, - ( COUNT( * ) ) * + - 51 AS col0
----
68
51

skipif mysql # not compatible
query II rowsort label-3759
SELECT 68 col2, - ( COUNT ( * ) ) * + - 51 AS col0
----
68
51

query I rowsort
SELECT DISTINCT 3 - 72 col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3761
SELECT DISTINCT 97 DIV + ( - + COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT 97 / + ( - + COUNT ( * ) )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3762
SELECT 70 DIV - MAX( DISTINCT - 93 ) * + 17 AS col0, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-3762
SELECT 70 / - MAX ( DISTINCT - 93 ) * + 17 AS col0, - COUNT ( * )
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT 76 + - - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3763
SELECT 76 + - - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3764
SELECT DISTINCT - 47, COUNT( * ) + - - 69 * + 2 - - - 44 * - + 60 AS col0
----
-47
2779

skipif mysql # not compatible
query II rowsort label-3764
SELECT DISTINCT - 47, COUNT ( * ) + - - 69 * + 2 - - - 44 * - + 60 AS col0
----
-47
2779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT ALL - COALESCE ( - + 65, 70 * + 54 + - CAST( NULL AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - COALESCE ( - + 65, 70 * + 54 + - CAST ( NULL AS INTEGER ) )
----
65

query I rowsort
SELECT DISTINCT 23 * + + 4 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT COUNT( * ) * - + NULLIF ( - COUNT( * ), + 0 ) + 9 + - 19 * 92 * - + 28
----
48954

skipif mysql # not compatible
query I rowsort label-3767
SELECT COUNT ( * ) * - + NULLIF ( - COUNT ( * ), + 0 ) + 9 + - 19 * 92 * - + 28
----
48954

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3768
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - 24 * + 93 AS col0
----
NULL
-2232

skipif mysql # not compatible
query II rowsort label-3768
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 24 * + 93 AS col0
----
NULL
-2232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT ALL CAST( 27 AS SIGNED ) + + + 81 - 19 + + 81 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL CAST ( 27 AS INTEGER ) + + + 81 - 19 + + 81 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT MAX( ALL - - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-3770
SELECT MAX ( ALL - - 23 )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT 52 AS col2, CASE - CASE - 30 WHEN 61 * 8 + - - 45 THEN + 88 END WHEN + SUM( 80 ) THEN COUNT( * ) END AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-3771
SELECT 52 AS col2, CASE - CASE - 30 WHEN 61 * 8 + - - 45 THEN + 88 END WHEN + SUM ( 80 ) THEN COUNT ( * ) END AS col2
----
52
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT 30 + + COALESCE ( + 67, CAST( NULL AS SIGNED ) * - 36 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT 30 + + COALESCE ( + 67, CAST ( NULL AS INTEGER ) * - 36 ) AS col2
----
97

query II rowsort
SELECT 95, ( 94 ) AS col1
----
95
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3774
SELECT ALL + 40 + 4 * + COALESCE ( - + COUNT( DISTINCT - 97 ), + 37, - 50 ) DIV MIN( DISTINCT + 87 ) + - 2 * 26 * + + 40 AS col0
----
-2040

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL + 40 + 4 * + COALESCE ( - + COUNT ( DISTINCT - 97 ), + 37, - 50 ) / MIN ( DISTINCT + 87 ) + - 2 * 26 * + + 40 AS col0
----
-2040

query I rowsort
SELECT DISTINCT 53 + 32 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT 44 * 13 + + 17 DIV + 79 + - 97
----
475

skipif mysql # not compatible
query I rowsort label-3776
SELECT 44 * 13 + + 17 / + 79 + - 97
----
475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT ALL - + COUNT( CAST( - 13 AS SIGNED ) ) * + ( ( - - ( - + 66 ) ) ) * + + 99 AS col0
----
6534

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - + COUNT ( CAST ( - 13 AS INTEGER ) ) * + ( ( - - ( - + 66 ) ) ) * + + 99 AS col0
----
6534

query II rowsort
SELECT ( - 35 ) AS col0, 65 AS col0
----
-35
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3779
SELECT - MAX( ALL - 16 ) AS col2, - 65
----
16
-65

skipif mysql # not compatible
query II rowsort label-3779
SELECT - MAX ( ALL - 16 ) AS col2, - 65
----
16
-65

query I rowsort
SELECT ALL - 85 + + 36 col1
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3781
SELECT 49 * CAST( NULL AS DECIMAL ) * 1 / - - 88 * - + 16 - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT 49 * CAST ( NULL AS REAL ) * 1 / - - 88 * - + 16 - - 51
----
NULL

query I rowsort
SELECT 71 * + 26 * 50
----
92300

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT - COUNT( * ) * + 15 * 30 col2
----
-450

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT - COUNT ( * ) * + 15 * 30 col2
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT MAX( 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT MAX ( 17 ) AS col1
----
17

query I rowsort
SELECT DISTINCT + 68 - + 72 AS col2
----
-4

query I rowsort
SELECT ALL 92 * - - 2 AS col1
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3787
SELECT ALL - 77 * + + 89 AS col0, + 11 - + CAST( NULL AS SIGNED ) + 9 * - + 55 AS col1
----
-6853
NULL

skipif mysql # not compatible
query II rowsort label-3787
SELECT ALL - 77 * + + 89 AS col0, + 11 - + CAST ( NULL AS INTEGER ) + 9 * - + 55 AS col1
----
-6853
NULL

query I rowsort
SELECT ALL - 78 * - 64 AS col1
----
4992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3789
SELECT + CASE + COALESCE ( + 54, ( 58 ) + - 69 + + ( + 70 ) * - 86 * + - COUNT( * ) + + 52 ) WHEN + 22 - - 44 / + 22 THEN NULL WHEN 0 + + 42 * + 32 / - 46 THEN CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT + CASE + COALESCE ( + 54, ( 58 ) + - 69 + + ( + 70 ) * - 86 * + - COUNT ( * ) + + 52 ) WHEN + 22 - - 44 / + 22 THEN NULL WHEN 0 + + 42 * + 32 / - 46 THEN CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - + ( + - 69 ) ) AS col1
----
69

query I rowsort
SELECT ALL + + 25 * + 63 + + ( - 25 ) + - 94
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - 56 * - + 51 * - - 4 * COUNT( * )
----
11424

skipif mysql # not compatible
query I rowsort label-3792
SELECT - 56 * - + 51 * - - 4 * COUNT ( * )
----
11424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT - 55 / - - 46 * 31 + - ( 87 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT - 55 / - - 46 * 31 + - ( 87 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( + 89, - 33 )
----
89

query I rowsort
SELECT - 0 * - 10 * - 51 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3796
SELECT + ( + MIN( ALL + - COALESCE ( - 77, + 42 * + 97 + + CAST( NULL AS SIGNED ) * - 15 * 98 - + + 43 ) ) ) - COUNT( * ) + + 35 * + COALESCE ( + ( + ( + 73 ) ), + 41 * 76 + - + ( - - 51 ) + + ( - 20 ) ) AS col1, - 25 AS col0
----
2631
-25

skipif mysql # not compatible
query II rowsort label-3796
SELECT + ( + MIN ( ALL + - COALESCE ( - 77, + 42 * + 97 + + CAST ( NULL AS INTEGER ) * - 15 * 98 - + + 43 ) ) ) - COUNT ( * ) + + 35 * + COALESCE ( + ( + ( + 73 ) ), + 41 * 76 + - + ( - - 51 ) + + ( - 20 ) ) AS col1, - 25 AS col0
----
2631
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT DISTINCT - CAST( - COUNT( DISTINCT - 74 ) AS SIGNED ) * NULLIF ( - CASE - 7 WHEN - 34 + - - AVG ( ALL + 67 ) THEN NULL ELSE ( 18 ) END, + 66 ) + COUNT( ALL - 91 ) + + - 25
----
-42

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT - CAST ( - COUNT ( DISTINCT - 74 ) AS INTEGER ) * NULLIF ( - CASE - 7 WHEN - 34 + - - AVG ( ALL + 67 ) THEN NULL ELSE ( 18 ) END, + 66 ) + COUNT ( ALL - 91 ) + + - 25
----
-42

query I rowsort
SELECT ALL 75 * + 78 AS col1
----
5850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3799
SELECT DISTINCT - 51 * + COUNT( * ) + MAX( ALL + - 6 ) DIV + 59 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT - 51 * + COUNT ( * ) + MAX ( ALL + - 6 ) / + 59 AS col1
----
-51

query I rowsort
SELECT ALL - 15 * + NULLIF ( 81, 89 ) + + 75 - 38
----
-1178

query II rowsort
SELECT ( + 1 ) AS col1, 33 * + 30
----
1
990

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT + MIN( - 17 ) - + 46
----
-63

skipif mysql # not compatible
query I rowsort label-3802
SELECT + MIN ( - 17 ) - + 46
----
-63

query I rowsort
SELECT ALL 42 * - + 17
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT - - COALESCE ( - 62, 97 * 47 * + 18 + 44 * - 73 * - + COUNT( * ) * + + COUNT( * ), 92 ) * 91 * + + 21 * + - 67 + 66
----
7938360

skipif mysql # not compatible
query I rowsort label-3804
SELECT - - COALESCE ( - 62, 97 * 47 * + 18 + 44 * - 73 * - + COUNT ( * ) * + + COUNT ( * ), 92 ) * 91 * + + 21 * + - 67 + 66
----
7938360

query I rowsort
SELECT + 29 + 24 + 39 + 13
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3806
SELECT + AVG ( DISTINCT 69 ) * + - COUNT( * ) + - 41 * - CAST( NULL AS SIGNED ) + COALESCE ( 44, 62 + + 73, 50 * + + MAX( DISTINCT + - 86 ) * + + 62 + CAST( + 55 AS DECIMAL ) * + CAST( NULL AS SIGNED ) * - 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT + AVG ( DISTINCT 69 ) * + - COUNT ( * ) + - 41 * - CAST ( NULL AS INTEGER ) + COALESCE ( 44, 62 + + 73, 50 * + + MAX ( DISTINCT + - 86 ) * + + 62 + CAST ( + 55 AS REAL ) * + CAST ( NULL AS INTEGER ) * - 23 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3807
SELECT COUNT( * ), + 12 AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-3807
SELECT COUNT ( * ), + 12 AS col2
----
1
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT 53 * + + 92 * + CAST( + - 58 AS SIGNED ) + 73
----
-282735

skipif mysql # not compatible
query I rowsort label-3808
SELECT 53 * + + 92 * + CAST ( + - 58 AS INTEGER ) + 73
----
-282735

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT ALL - 81 DIV - 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL - 81 / - 32 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT - MAX( DISTINCT + - 86 ) + + - COUNT( * ) * 95 + 26 + + CASE - 92 WHEN + MAX( CAST( NULL AS SIGNED ) ) - - ( - 78 ) + + COUNT( DISTINCT + - 17 ) * + 59 + COALESCE ( - - 22, 82 ) THEN - 54 WHEN 26 THEN - 96 + + 58 END + - 22 * CASE - + ( + 34 ) WHEN + - 71 THEN - + 63 ELSE - + 73 * + MAX( - 74 ) + + - 75 - + + 9 * + 88 + 29 / 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT - MAX ( DISTINCT + - 86 ) + + - COUNT ( * ) * 95 + 26 + + CASE - 92 WHEN + MAX ( CAST ( NULL AS INTEGER ) ) - - ( - 78 ) + + COUNT ( DISTINCT + - 17 ) * + 59 + COALESCE ( - - 22, 82 ) THEN - 54 WHEN 26 THEN - 96 + + 58 END + - 22 * CASE - + ( + 34 ) WHEN + - 71 THEN - + 63 ELSE - + 73 * + MAX ( - 74 ) + + - 75 - + + 9 * + 88 + 29 / 72 END AS col0
----
NULL

query I rowsort
SELECT ALL + 54 * - 3 AS col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT - NULLIF ( MAX( 51 ), - 86 )
----
-51

skipif mysql # not compatible
query I rowsort label-3812
SELECT - NULLIF ( MAX ( 51 ), - 86 )
----
-51

query I rowsort
SELECT - 56 + - 37
----
-93

query II rowsort
SELECT DISTINCT - 9 * - 85 * 99 AS col1, - 84
----
75735
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT + COUNT( * ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-3815
SELECT + COUNT ( * ) / 98
----
0

query I rowsort
SELECT ALL NULLIF ( - 89, - 27 * + 75 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT 85 * + ( - 22 ) * - COUNT( * ) * CASE + 81 WHEN COUNT( * ) + + + 78 THEN + COUNT( * ) / - 45 + - 72 WHEN + 46 THEN - 73 END * + + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT 85 * + ( - 22 ) * - COUNT ( * ) * CASE + 81 WHEN COUNT ( * ) + + + 78 THEN + COUNT ( * ) / - 45 + - 72 WHEN + 46 THEN - 73 END * + + 39 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 44 * + ( 40 ) * + 77
----
135520

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL - 46 + + + COALESCE ( + 13, - - COUNT( * ) ) + - - 65
----
32

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL - 46 + + + COALESCE ( + 13, - - COUNT ( * ) ) + - - 65
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT DISTINCT NULLIF ( + NULLIF ( 72, + COUNT( * ) ), - + 1 )
----
72

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT NULLIF ( + NULLIF ( 72, + COUNT ( * ) ), - + 1 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3821
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - - 14 * + - 85 * 47 AS col2
----
-55930

query I rowsort
SELECT ALL - + 82 + - 93
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT - MAX( ALL 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-3825
SELECT - MAX ( ALL 13 )
----
-13

query I rowsort
SELECT - NULLIF ( ( - 99 ), - 73 )
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3827
SELECT DISTINCT + - 64 DIV 24 * + - 14 * + 96 + - 3 + 10 AS col2, + 66 * - - 98 AS col0
----
2695
6468

skipif mysql # not compatible
query II rowsort label-3827
SELECT DISTINCT + - 64 / 24 * + - 14 * + 96 + - 3 + 10 AS col2, + 66 * - - 98 AS col0
----
2695
6468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT - CASE + - ( + 50 ) WHEN + - CASE + - 10 WHEN - 9 THEN NULL WHEN - - 80 THEN 74 + - - 23 + 88 + - + 58 ELSE NULL END THEN - 58 * 90 WHEN - 3 + - CAST( + + COUNT( * ) AS SIGNED ) + MIN( 9 ) THEN NULL ELSE + 29 - 55 END * - + COUNT( * ) + + - 51 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3828
SELECT - CASE + - ( + 50 ) WHEN + - CASE + - 10 WHEN - 9 THEN NULL WHEN - - 80 THEN 74 + - - 23 + 88 + - + 58 ELSE NULL END THEN - 58 * 90 WHEN - 3 + - CAST ( + + COUNT ( * ) AS INTEGER ) + MIN ( 9 ) THEN NULL ELSE + 29 - 55 END * - + COUNT ( * ) + + - 51 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3829
SELECT DISTINCT + 79, MIN( + 52 ) + 39 AS col1
----
79
91

skipif mysql # not compatible
query II rowsort label-3829
SELECT DISTINCT + 79, MIN ( + 52 ) + 39 AS col1
----
79
91

query I rowsort
SELECT + - 38 + - - 48 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL + - 80 * + + 43 - + - MIN( DISTINCT + - 23 ) + + 41 - - 80 AS col1
----
-3342

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL + - 80 * + + 43 - + - MIN ( DISTINCT + - 23 ) + + 41 - - 80 AS col1
----
-3342

query I rowsort
SELECT + ( 47 ) * - 0 + + 79 AS col0
----
79

query I rowsort
SELECT - + 52 * 76 AS col1
----
-3952

query II rowsort
SELECT ALL + 48 AS col2, + 8 AS col1
----
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT + NULLIF ( + 46, + 28 * 34 * - 64 / - CASE - + 51 WHEN + COUNT( * ) / 69 THEN - - 32 WHEN - COUNT( * ) THEN NULL ELSE NULL END ) * - - 63 AS col0
----
2898

skipif mysql # not compatible
query I rowsort label-3835
SELECT + NULLIF ( + 46, + 28 * 34 * - 64 / - CASE - + 51 WHEN + COUNT ( * ) / 69 THEN - - 32 WHEN - COUNT ( * ) THEN NULL ELSE NULL END ) * - - 63 AS col0
----
2898

query I rowsort
SELECT + 4 * 38 * 33
----
5016

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT COALESCE ( + COUNT( * ), + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-3837
SELECT COALESCE ( + COUNT ( * ), + 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT CASE - 3 WHEN + - 87 THEN NULL WHEN - 12 * MAX( DISTINCT - 21 ) THEN NULL ELSE + - ( - 83 ) END
----
83

skipif mysql # not compatible
query I rowsort label-3838
SELECT CASE - 3 WHEN + - 87 THEN NULL WHEN - 12 * MAX ( DISTINCT - 21 ) THEN NULL ELSE + - ( - 83 ) END
----
83

query II rowsort
SELECT + 68 * + 91 AS col1, + 21
----
6188
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT DISTINCT 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT 80 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT - COALESCE ( + + 80, - - COUNT( ALL CAST( - + 39 AS SIGNED ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-3841
SELECT - COALESCE ( + + 80, - - COUNT ( ALL CAST ( - + 39 AS INTEGER ) ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3842
SELECT - ( + 23 ) * MAX( DISTINCT 80 ) * + COUNT( * ) * + CAST( + 19 AS SIGNED ) + + ( + 82 ) + + - NULLIF ( CAST( 74 AS SIGNED ), SUM( DISTINCT - 47 ) ) + - 33 + + CAST( NULL AS DECIMAL ) * + - 92 + 87 + - 10 * - 68 AS col0, + CAST( - + ( + + 80 ) AS SIGNED ) AS col1
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-3842
SELECT - ( + 23 ) * MAX ( DISTINCT 80 ) * + COUNT ( * ) * + CAST ( + 19 AS INTEGER ) + + ( + 82 ) + + - NULLIF ( CAST ( 74 AS INTEGER ), SUM ( DISTINCT - 47 ) ) + - 33 + + CAST ( NULL AS REAL ) * + - 92 + 87 + - 10 * - 68 AS col0, + CAST ( - + ( + + 80 ) AS INTEGER ) AS col1
----
NULL
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT + 98 * - SUM( - 35 ) * + 8 * - - 22 - 9 + + 48
----
603719

skipif mysql # not compatible
query I rowsort label-3843
SELECT + 98 * - SUM ( - 35 ) * + 8 * - - 22 - 9 + + 48
----
603719

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL MIN( - 99 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL MIN ( - 99 ) col0
----
-99

query I rowsort
SELECT + 97 - - 99 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT MAX( ALL - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3846
SELECT MAX ( ALL - 99 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT SUM( DISTINCT 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-3847
SELECT SUM ( DISTINCT 65 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3848
SELECT ALL - CASE 42 WHEN + - ( + + 53 ) + + 45 THEN 1 * + 73 + + - 52 + - COUNT( * ) WHEN + 45 * + - CAST( - 40 AS SIGNED ) THEN NULL END + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - CASE 42 WHEN + - ( + + 53 ) + + 45 THEN 1 * + 73 + + - 52 + - COUNT ( * ) WHEN + 45 * + - CAST ( - 40 AS INTEGER ) THEN NULL END + - 57
----
NULL

query I rowsort
SELECT DISTINCT + 5 * 56 * 98 AS col2
----
27440

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT COUNT( * ) + - 36 - - MIN( + 30 )
----
-5

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT COUNT ( * ) + - 36 - - MIN ( + 30 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT + ( + CASE - 92 WHEN - 96 THEN - - 78 ELSE 74 END ) + + 46 + + + 71 + 21 - - MAX( 2 )
----
214

skipif mysql # not compatible
query I rowsort label-3851
SELECT + ( + CASE - 92 WHEN - 96 THEN - - 78 ELSE 74 END ) + + 46 + + + 71 + 21 - - MAX ( 2 )
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT + CAST( + + COALESCE ( 76, + ( 29 ) + + CAST( - 91 AS SIGNED ) + - 44 + + - 9 * - ( 38 ), - + 75 ) AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3852
SELECT + CAST ( + + COALESCE ( 76, + ( 29 ) + + CAST ( - 91 AS INTEGER ) + - 44 + + - 9 * - ( 38 ), - + 75 ) AS INTEGER ) AS col0
----
76

query I rowsort
SELECT ALL - 80 + + 19 AS col2
----
-61

query II rowsort
SELECT ALL 78 * - 13 - 52 * + 99 * - 13 AS col2, + 68
----
65910
68

query I rowsort
SELECT ALL + 97 + 53 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT + 54 * 51 + + COUNT( * )
----
2755

skipif mysql # not compatible
query I rowsort label-3856
SELECT + 54 * 51 + + COUNT ( * )
----
2755

query I rowsort
SELECT 83 - + 90 col0
----
-7

query I rowsort
SELECT + 11 * - 52 col1
----
-572

query I rowsort
SELECT 73 * + 99 + + - 70 + - 74
----
7083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3860
SELECT DISTINCT + - ( + 19 ) DIV 18 + - COUNT( * ) + - SUM( DISTINCT + 25 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT + - ( + 19 ) / 18 + - COUNT ( * ) + - SUM ( DISTINCT + 25 ) AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT DISTINCT + 43 * 34 DIV - 94 * - COUNT( * ) DIV - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT + 43 * 34 / - 94 * - COUNT ( * ) / - COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3862
SELECT DISTINCT - NULLIF ( + 17, + 47 ) - + ( + COUNT( * ) ) AS col1, + COUNT( * )
----
-18
1

skipif mysql # not compatible
query II rowsort label-3862
SELECT DISTINCT - NULLIF ( + 17, + 47 ) - + ( + COUNT ( * ) ) AS col1, + COUNT ( * )
----
-18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT 70 - + + 99 + - - 47 + - 58 * - MIN( - + 67 ) * - + 95 col2
----
369188

skipif mysql # not compatible
query I rowsort label-3863
SELECT 70 - + + 99 + - - 47 + - 58 * - MIN ( - + 67 ) * - + 95 col2
----
369188

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT - 76 * - + COUNT( * ) + - - 56 col2
----
132

skipif mysql # not compatible
query I rowsort label-3864
SELECT - 76 * - + COUNT ( * ) + - - 56 col2
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT 51 DIV - + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT 51 / - + 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL - NULLIF ( - - COUNT( - 50 ), 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL - NULLIF ( - - COUNT ( - 50 ), 20 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT DISTINCT - 36 DIV - 9
----
4

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT - 36 / - 9
----
4

query I rowsort
SELECT 99 * 34 AS col1
----
3366

query I rowsort
SELECT 70 + 77
----
147

query I rowsort
SELECT ALL 33 * + 12 AS col2
----
396

query I rowsort
SELECT ALL 92 + + 1 AS col1
----
93

query I rowsort
SELECT ALL - NULLIF ( 14, - + 79 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT DISTINCT - 37 DIV - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT - 37 / - COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT 89 + COALESCE ( - + 85, - 85 + - 80 * + 73 * + 67 + - + ( 1 ) ) + COUNT( * ) * - SUM( DISTINCT - + 72 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3874
SELECT 89 + COALESCE ( - + 85, - 85 + - 80 * + 73 * + 67 + - + ( 1 ) ) + COUNT ( * ) * - SUM ( DISTINCT - + 72 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT COALESCE ( - MAX( DISTINCT - 26 ), + 78 ) + - + 20
----
6

skipif mysql # not compatible
query I rowsort label-3875
SELECT COALESCE ( - MAX ( DISTINCT - 26 ), + 78 ) + - + 20
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3876
SELECT SUM( 32 ) + - 29 AS col1, + CAST( NULL AS SIGNED )
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3876
SELECT SUM ( 32 ) + - 29 AS col1, + CAST ( NULL AS INTEGER )
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3877
SELECT DISTINCT MIN( + + 11 ) + 28, 12 col0
----
39
12

skipif mysql # not compatible
query II rowsort label-3877
SELECT DISTINCT MIN ( + + 11 ) + 28, 12 col0
----
39
12

query I rowsort
SELECT ( - - 2 ) + 62 * + 1 * + 51 AS col1
----
3164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3879
SELECT ALL 63 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL 63 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 28, 30 AS col2
----
28
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL + COUNT( * ) + + NULLIF ( + + COUNT( * ), ( + 71 ) * + + 10 )
----
2

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + COUNT ( * ) + + NULLIF ( + + COUNT ( * ), ( + 71 ) * + + 10 )
----
2

query I rowsort
SELECT - + ( - + 2 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL + CAST( 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + CAST ( 57 AS INTEGER )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - 25 + MIN( ALL + - 49 )
----
-74

skipif mysql # not compatible
query I rowsort label-3884
SELECT - 25 + MIN ( ALL + - 49 )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT - 52 + - - COUNT( * ) + - 40 * + COUNT( * ) * - ( + 2 ) AS col1, 95 + 47 AS col0
----
29
142

skipif mysql # not compatible
query II rowsort label-3885
SELECT - 52 + - - COUNT ( * ) + - 40 * + COUNT ( * ) * - ( + 2 ) AS col1, 95 + 47 AS col0
----
29
142

query I rowsort
SELECT 67 * - - ( 32 ) + - + 93 AS col1
----
2051

query I rowsort
SELECT - 65 * - 1
----
65

query I rowsort
SELECT + 74 - 91 AS col2
----
-17

query I rowsort
SELECT + 18 + - 91 + - 99 + 47 AS col1
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL + CAST( NULL AS SIGNED ) * + 44 * 40 + - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + CAST ( NULL AS INTEGER ) * + 44 * 40 + - + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL - + COUNT( ALL + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL - + COUNT ( ALL + 43 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + + 65 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 65 * + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT MAX( - - ( - 59 ) ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3893
SELECT MAX ( - - ( - 59 ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3894
SELECT + 96 AS col1, 21 * + - 34 * - 84 * - COUNT( * ) + + - 65
----
96
-60041

skipif mysql # not compatible
query II rowsort label-3894
SELECT + 96 AS col1, 21 * + - 34 * - 84 * - COUNT ( * ) + + - 65
----
96
-60041

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL - COUNT( * ) + + 88 * + 33 - + + ( - 27 )
----
2930

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - COUNT ( * ) + + 88 * + 33 - + + ( - 27 )
----
2930

onlyif mysql # aggregate syntax: 
query II rowsort label-3896
SELECT ALL - 59 + - 25 + - CASE - 37 WHEN MAX( - 2 ) * - 89 THEN + 97 END * + COUNT( * ) AS col0, + 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-3896
SELECT ALL - 59 + - 25 + - CASE - 37 WHEN MAX ( - 2 ) * - 89 THEN + 97 END * + COUNT ( * ) AS col0, + 17
----
NULL
17

query I rowsort
SELECT DISTINCT - 50 + 7
----
-43

query I rowsort
SELECT ALL - 33 + - 88 col0
----
-121

query I rowsort
SELECT DISTINCT + 78 + - 79 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3900
SELECT 79 + - 23 + - 46 DIV - 38 + + 0
----
57

skipif mysql # not compatible
query I rowsort label-3900
SELECT 79 + - 23 + - 46 / - 38 + + 0
----
57

query I rowsort
SELECT ALL + 60 + + NULLIF ( - 69, - + 92 * + + 55 * + COALESCE ( - + ( + - 48 ), - NULLIF ( - 9, - - 0 ), - - 96 ) ) AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3902
SELECT 24 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT 24 / 57
----
0

query I rowsort
SELECT - 32 * - - 96
----
-3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT ALL - SUM( ALL + 59 ) DIV - 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - SUM ( ALL + 59 ) / - 32 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT - 51 * 82 - - ( 24 ) * 81 DIV ( + 14 ) * + 23 + - 8 AS col0
----
-1016

skipif mysql # not compatible
query I rowsort label-3905
SELECT - 51 * 82 - - ( 24 ) * 81 / ( + 14 ) * + 23 + - 8 AS col0
----
-1016

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL MIN( + - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL MIN ( + - 47 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3907
SELECT - CAST( NULL AS SIGNED ), - SUM( ALL - ( - CAST( NULL AS SIGNED ) ) ) + COUNT( * ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3907
SELECT - CAST ( NULL AS INTEGER ), - SUM ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - + COUNT( * ) - + 25
----
-26

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - + COUNT ( * ) - + 25
----
-26

query I rowsort
SELECT ALL - 97 - 51 AS col2
----
-148

query I rowsort
SELECT NULLIF ( - 35, 38 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT + + CASE + 51 WHEN + 58 * 69 * + 99 + 73 * - - MAX( ALL + - 25 ) THEN NULL WHEN + 29 + 63 THEN + 97 ELSE NULL END - + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + + CASE + 51 WHEN + 58 * 69 * + 99 + 73 * - - MAX ( ALL + - 25 ) THEN NULL WHEN + 29 + 63 THEN + 97 ELSE NULL END - + 54 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 31 col0, 41 * + - 94 col1
----
31
-3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT ALL 97 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL 97 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( + + 99 ) * 65 col0
----
-6435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT + + CAST( - + 1 AS SIGNED ) + - 35 col0
----
-36

skipif mysql # not compatible
query I rowsort label-3915
SELECT + + CAST ( - + 1 AS INTEGER ) + - 35 col0
----
-36

query I rowsort
SELECT ALL - - NULLIF ( - ( - + 2 ), - 26 * - 0 ) * - - 66
----
132

query II rowsort
SELECT ALL - 72 AS col1, + 30 * + 45 * + 19 * + + 8 AS col1
----
-72
205200

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + 29 * 94 * + COUNT( * )
----
2726

skipif mysql # not compatible
query I rowsort label-3918
SELECT + 29 * 94 * + COUNT ( * )
----
2726

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3919
SELECT DISTINCT COUNT( * ) / - CAST( NULL AS DECIMAL ) / - 44 - + 48 * - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT COUNT ( * ) / - CAST ( NULL AS REAL ) / - 44 - + 48 * - + 37
----
NULL

query I rowsort
SELECT + 82 + - - 78 col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + - MIN( - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-3921
SELECT + - MIN ( - 4 )
----
4

query I rowsort
SELECT ALL 22 * + 60
----
1320

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT + 46 - 93 DIV + ( + NULLIF ( + 21, - + 64 + - - 6 DIV 94 ) )
----
42

skipif mysql # not compatible
query I rowsort label-3923
SELECT + 46 - 93 / + ( + NULLIF ( + 21, - + 64 + - - 6 / 94 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL 92 * + 55 + - - COUNT( * )
----
5061

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL 92 * + 55 + - - COUNT ( * )
----
5061

query I rowsort
SELECT ALL 86 * + 3
----
258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT CAST( 37 AS SIGNED ) / + - 12 + + 1 + + 12 / + SUM( - 7 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT CAST ( 37 AS INTEGER ) / + - 12 + + 1 + + 12 / + SUM ( - 7 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - - 25 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT NULLIF ( + CASE + + CAST( NULL AS SIGNED ) WHEN - - 97 + - + 81 THEN NULL ELSE + 25 + - - CASE - - NULLIF ( - COALESCE ( - + 22, - 29 ), 34 ) WHEN - COUNT( * ) THEN NULL WHEN 22 THEN NULL WHEN - + 36 / 13 + - 78 + - 78 THEN + + COUNT( * ) + - 9 END + 21 END, 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT NULLIF ( + CASE + + CAST ( NULL AS INTEGER ) WHEN - - 97 + - + 81 THEN NULL ELSE + 25 + - - CASE - - NULLIF ( - COALESCE ( - + 22, - 29 ), 34 ) WHEN - COUNT ( * ) THEN NULL WHEN 22 THEN NULL WHEN - + 36 / 13 + - 78 + - 78 THEN + + COUNT ( * ) + - 9 END + 21 END, 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT COALESCE ( + 91, + 98 + + + ( - + 24 ) + + - SUM( ALL + 98 ) + - COUNT( * ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3929
SELECT COALESCE ( + 91, + 98 + + + ( - + 24 ) + + - SUM ( ALL + 98 ) + - COUNT ( * ) ) AS col1
----
91

query I rowsort
SELECT ALL 11 * - - 52 + + - 28
----
544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3931
SELECT DISTINCT 79 * + + 48 DIV ( - 48 ) + - 68 + CAST( + 72 AS SIGNED ), - COUNT( ALL 12 ) + COUNT( * ) + + 29 * - - 40 AS col2
----
-75
1160

skipif mysql # not compatible
query II rowsort label-3931
SELECT DISTINCT 79 * + + 48 / ( - 48 ) + - 68 + CAST ( + 72 AS INTEGER ), - COUNT ( ALL 12 ) + COUNT ( * ) + + 29 * - - 40 AS col2
----
-75
1160

query I rowsort
SELECT + 38 + + 66 AS col1
----
104

query II rowsort
SELECT 65 * + 48 * - 41 * - 76 + 83 col0, 95
----
9722003
95

query I rowsort
SELECT ALL + 50 * - COALESCE ( 12, + 59 + - 45 * - 14, 96 ) + + 86 * + + 24
----
1464

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT - 48 * - + 22 + + 38 + + MIN( DISTINCT 23 ) AS col0
----
1117

skipif mysql # not compatible
query I rowsort label-3935
SELECT - 48 * - + 22 + + 38 + + MIN ( DISTINCT 23 ) AS col0
----
1117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3936
SELECT + ( + 66 ) + + COALESCE ( - MAX( 94 ), - 38 DIV - - COUNT( * ) * - - COUNT( * ) ) + 50
----
22

skipif mysql # not compatible
query I rowsort label-3936
SELECT + ( + 66 ) + + COALESCE ( - MAX ( 94 ), - 38 / - - COUNT ( * ) * - - COUNT ( * ) ) + 50
----
22

query I rowsort
SELECT NULLIF ( + + 0, - - 27 * - 99 ) AS col1
----
0

query I rowsort
SELECT ALL - + 81 * 55 * 50
----
-222750

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT DISTINCT - + 68 * + + SUM( ALL + - 79 ) - - + 25 - ( + + 45 ) AS col0
----
5352

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT - + 68 * + + SUM ( ALL + - 79 ) - - + 25 - ( + + 45 ) AS col0
----
5352

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - + 35 + - CASE - 71 WHEN - COUNT( * ) * - 91 * + + 68 THEN ( + 71 ) * - ( - 43 ) END * - 9 + + - 94 / - SUM( DISTINCT - 30 ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT - + 35 + - CASE - 71 WHEN - COUNT ( * ) * - 91 * + + 68 THEN ( + 71 ) * - ( - 43 ) END * - 9 + + - 94 / - SUM ( DISTINCT - 30 ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT COUNT( ALL 66 ) AS col2, + 54 AS col1
----
1
54

skipif mysql # not compatible
query II rowsort label-3941
SELECT COUNT ( ALL 66 ) AS col2, + 54 AS col1
----
1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT - ( 82 ) + COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3942
SELECT - ( 82 ) + COUNT ( * ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - - SUM( DISTINCT + 44 ) * - + 94
----
-4136

skipif mysql # not compatible
query I rowsort label-3943
SELECT - - SUM ( DISTINCT + 44 ) * - + 94
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT - 73 + - SUM( + 36 ) * - 71 col0
----
2483

skipif mysql # not compatible
query I rowsort label-3944
SELECT - 73 + - SUM ( + 36 ) * - 71 col0
----
2483

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL ( + SUM( 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL ( + SUM ( 96 ) )
----
96

query I rowsort
SELECT - - ( + 15 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3947
SELECT DISTINCT + + COALESCE ( + 13, + 71 * 14 + COALESCE ( 0, 35 + - 28 ) * ( + 16 ) + + MIN( DISTINCT + COALESCE ( + 45, + 14 ) ) - 53, + 14 ) DIV + 84 + + 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT + + COALESCE ( + 13, + 71 * 14 + COALESCE ( 0, 35 + - 28 ) * ( + 16 ) + + MIN ( DISTINCT + COALESCE ( + 45, + 14 ) ) - 53, + 14 ) / + 84 + + 27 AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT ALL + ( 1 ) DIV + - 57 * + 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL + ( 1 ) / + - 57 * + 10 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL + COUNT( * ) + + - 20 * - + ( - 21 )
----
-419

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + COUNT ( * ) + + - 20 * - + ( - 21 )
----
-419

query I rowsort
SELECT ALL - ( + 21 ) * + - 61 col2
----
1281

query I rowsort
SELECT - - 58 * - - 45
----
2610

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT + - 53 + + 5 DIV - 35 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3952
SELECT + - 53 + + 5 / - 35 AS col1
----
-53

query I rowsort
SELECT ALL 16 + 70 col2
----
86

query I rowsort
SELECT - 22 + - 58
----
-80

query I rowsort
SELECT ALL - 59 + + + 1 - + ( - 47 ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT ALL CAST( + - 14 AS SIGNED ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL CAST ( + - 14 AS INTEGER ) col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3957
SELECT DISTINCT 57 DIV - COALESCE ( + 78, + COUNT( * ), - + 9 ) * - 46 + - 51 * - MAX( ALL 19 ) * - COUNT( * ) + 76 * - 77 * + 61
----
-357941

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT 57 / - COALESCE ( + 78, + COUNT ( * ), - + 9 ) * - 46 + - 51 * - MAX ( ALL 19 ) * - COUNT ( * ) + 76 * - 77 * + 61
----
-357941

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3958
SELECT ALL - 33 DIV + - 11 + + SUM( - - 86 )
----
89

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - 33 / + - 11 + + SUM ( - - 86 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3959
SELECT ALL + 53 AS col1, - COUNT( * )
----
53
-1

skipif mysql # not compatible
query II rowsort label-3959
SELECT ALL + 53 AS col1, - COUNT ( * )
----
53
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT ALL + 34 DIV + - 31 + + + SUM( ALL - - 82 ) * + + COUNT( - 71 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + 34 / + - 31 + + + SUM ( ALL - - 82 ) * + + COUNT ( - 71 ) AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT ALL 33 DIV - 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 33 / - 95 col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3963
SELECT + 15 AS col0, 20 * 63 DIV + 66
----
15
19

skipif mysql # not compatible
query II rowsort label-3963
SELECT + 15 AS col0, 20 * 63 / + 66
----
15
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT NULLIF ( + ( - 58 ), 15 + - 76 ) DIV + 66 * + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3964
SELECT NULLIF ( + ( - 58 ), 15 + - 76 ) / + 66 * + 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL 14 - + MIN( 26 ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL 14 - + MIN ( 26 ) col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT COUNT( * ) * + + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT COUNT ( * ) * + + 83 AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3967
SELECT ALL - 85 AS col2, CAST( + 26 AS SIGNED ) AS col2
----
-85
26

skipif mysql # not compatible
query II rowsort label-3967
SELECT ALL - 85 AS col2, CAST ( + 26 AS INTEGER ) AS col2
----
-85
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT - MIN( + + 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - MIN ( + + 66 ) AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT DISTINCT + 25 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT + 25 / + 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - COALESCE ( COUNT( * ), 82, + 99 * - 94, + COALESCE ( + - COUNT( DISTINCT - 31 ), - 3, - ( 19 ) + + + COALESCE ( + MIN( + 36 ), - 12 + 31 ) ) ) + + 18 + - COUNT( * ) * - 82 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3970
SELECT - COALESCE ( COUNT ( * ), 82, + 99 * - 94, + COALESCE ( + - COUNT ( DISTINCT - 31 ), - 3, - ( 19 ) + + + COALESCE ( + MIN ( + 36 ), - 12 + 31 ) ) ) + + 18 + - COUNT ( * ) * - 82 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT 94 * + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3971
SELECT 94 * + COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT MAX( ALL - - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3972
SELECT MAX ( ALL - - 61 ) AS col0
----
61

query I rowsort
SELECT 96 + + 81 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT SUM( + 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3974
SELECT SUM ( + 71 ) AS col0
----
71

query I rowsort
SELECT - 18 * - 94 AS col2
----
1692

query I rowsort
SELECT ALL - ( 22 ) AS col0
----
-22

query I rowsort
SELECT - 62 - - + 43
----
-19

query II rowsort
SELECT DISTINCT + 78, - 79 * + 5 AS col1
----
78
-395

onlyif mysql # aggregate syntax: 
query II rowsort label-3979
SELECT DISTINCT 20 AS col0, + COALESCE ( + + 44, COALESCE ( + 0, + 93 * - COUNT( * ), - + 68 ) * 84 ) - - + 88 AS col0
----
20
132

skipif mysql # not compatible
query II rowsort label-3979
SELECT DISTINCT 20 AS col0, + COALESCE ( + + 44, COALESCE ( + 0, + 93 * - COUNT ( * ), - + 68 ) * 84 ) - - + 88 AS col0
----
20
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL + 54 * + + COUNT( * ) - + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL + 54 * + + COUNT ( * ) - + 54 AS col0
----
0

query I rowsort
SELECT ALL + 43 + - 77 AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT ALL CASE WHEN NOT AVG ( DISTINCT + 46 ) IS NOT NULL THEN - 12 + 37 * - COUNT( ALL + CAST( NULL AS SIGNED ) ) ELSE NULL END + - 14 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL CASE WHEN NOT AVG ( DISTINCT + 46 ) IS NOT NULL THEN - 12 + 37 * - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ELSE NULL END + - 14 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - 62 + COUNT( + 54 ) * - 18
----
-80

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - 62 + COUNT ( + 54 ) * - 18
----
-80

query I rowsort
SELECT 45 + + 76 - - 75 - 70
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT - CASE + 65 WHEN 31 + + 7 THEN NULL ELSE - MAX( ALL - 11 ) * + 86 END AS col2
----
-946

skipif mysql # not compatible
query I rowsort label-3985
SELECT - CASE + 65 WHEN 31 + + 7 THEN NULL ELSE - MAX ( ALL - 11 ) * + 86 END AS col2
----
-946

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3986
SELECT + ( - COUNT( * ) ) DIV ( - 11 ) * - + 30 + - COUNT( DISTINCT - 22 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3986
SELECT + ( - COUNT ( * ) ) / ( - 11 ) * - + 30 + - COUNT ( DISTINCT - 22 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT 34 - + COUNT( * ) + - + 13 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3987
SELECT 34 - + COUNT ( * ) + - + 13 AS col0
----
20

query I rowsort
SELECT ALL - - 48 + 67 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - ( + + MAX( DISTINCT + + 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-3989
SELECT - ( + + MAX ( DISTINCT + + 28 ) )
----
-28

query I rowsort
SELECT 14 + + 66 * 59
----
3908

query I rowsort
SELECT 79 * - ( 6 )
----
-474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3992
SELECT ALL + MAX( + CAST( + 52 AS SIGNED ) ) * + 99 col1
----
5148

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + MAX ( + CAST ( + 52 AS INTEGER ) ) * + 99 col1
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL + 0 + + 0 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + 0 + + 0 + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3994
SELECT DISTINCT + COUNT( DISTINCT + 53 ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + COUNT ( DISTINCT + 53 ) / 86
----
0

query I rowsort
SELECT 69 + + - 19
----
50

query I rowsort
SELECT 5 * + + 5
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL - COUNT( * ) + + 62
----
61

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL - COUNT ( * ) + + 62
----
61

query I rowsort
SELECT 79 + - ( - 9 ) + NULLIF ( - 37, + + ( + + 24 ) * + + 67 ) AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT ALL + 1 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL + 1 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT 95 + + MAX( DISTINCT - NULLIF ( - 33, - 11 ) ) AS col2
----
128

skipif mysql # not compatible
query I rowsort label-4000
SELECT 95 + + MAX ( DISTINCT - NULLIF ( - 33, - 11 ) ) AS col2
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4001
SELECT ALL + COUNT( * ) * 30 DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + COUNT ( * ) * 30 / + + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL + COALESCE ( - 89, + SUM( ALL ( - 87 ) ) + + MIN( 43 ) - + 0 * 2 ) * - - 4
----
-356

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + COALESCE ( - 89, + SUM ( ALL ( - 87 ) ) + + MIN ( 43 ) - + 0 * 2 ) * - - 4
----
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT COUNT( * ) * + COUNT( * ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-4003
SELECT COUNT ( * ) * + COUNT ( * ) * - 9
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT - 76 * ( - - 71 ) + COUNT( * ) col0, + 89 * - + 97 + - + 84 + + - 19 + + 88 + + NULLIF ( + 37, ( - 99 ) )
----
-5395
-8611

skipif mysql # not compatible
query II rowsort label-4004
SELECT - 76 * ( - - 71 ) + COUNT ( * ) col0, + 89 * - + 97 + - + 84 + + - 19 + + 88 + + NULLIF ( + 37, ( - 99 ) )
----
-5395
-8611

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT COUNT( * ) * - + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT COUNT ( * ) * - + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT DISTINCT - - CASE + 90 WHEN + ( - 15 ) THEN COUNT( * ) + + - ( 7 ) WHEN - + 6 THEN + COUNT( * ) + COUNT( * ) - - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT - - CASE + 90 WHEN + ( - 15 ) THEN COUNT ( * ) + + - ( 7 ) WHEN - + 6 THEN + COUNT ( * ) + COUNT ( * ) - - 91 END
----
NULL

query I rowsort
SELECT ALL ( - 77 ) * - 29 * - + 56 * - 38 AS col0
----
4751824

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - + MIN( + 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - + MIN ( + 41 ) AS col2
----
-41

query I rowsort
SELECT DISTINCT + 47 + + - 66 + - + 65 AS col1
----
-84

query I rowsort
SELECT ALL + 88 * 89
----
7832

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT + 69 DIV - + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4011
SELECT + 69 / - + 88 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4012
SELECT DISTINCT 8 + + - 68 + 87 * - + 71 * 78 * + CAST( NULL AS DECIMAL ) * + 43 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT 8 + + - 68 + 87 * - + 71 * 78 * + CAST ( NULL AS REAL ) * + 43 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4013
SELECT ALL + CAST( - - 30 AS SIGNED ) AS col0, + 95
----
30
95

skipif mysql # not compatible
query II rowsort label-4013
SELECT ALL + CAST ( - - 30 AS INTEGER ) AS col0, + 95
----
30
95

query I rowsort
SELECT 98 + - 75 + - 5 col1
----
18

query I rowsort
SELECT + 26 * 52 AS col0
----
1352

query I rowsort
SELECT 57 + - ( + 62 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT DISTINCT - 64 + - CASE 28 WHEN - 90 THEN + 14 WHEN + 59 - - 40 + 62 THEN + - 20 END + - + 36 - - - 52 * + 6 / + 14 + - + COUNT( * ) * - 71 * - 82 + - COUNT( * ) - - COUNT( * ) * - - 17 * 0 col1, - COALESCE ( 24, - 39 + + 35 - + - 76 )
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-4017
SELECT DISTINCT - 64 + - CASE 28 WHEN - 90 THEN + 14 WHEN + 59 - - 40 + 62 THEN + - 20 END + - + 36 - - - 52 * + 6 / + 14 + - + COUNT ( * ) * - 71 * - 82 + - COUNT ( * ) - - COUNT ( * ) * - - 17 * 0 col1, - COALESCE ( 24, - 39 + + 35 - + - 76 )
----
NULL
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT DISTINCT 74 + + CAST( + + 90 AS SIGNED ) + - + 55
----
109

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT 74 + + CAST ( + + 90 AS INTEGER ) + - + 55
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT ALL 88 + COUNT( * ) - + 21 + - - MIN( DISTINCT 70 ) * 68 * + 32 AS col2, + MAX( 42 )
----
152388
42

skipif mysql # not compatible
query II rowsort label-4019
SELECT ALL 88 + COUNT ( * ) - + 21 + - - MIN ( DISTINCT 70 ) * 68 * + 32 AS col2, + MAX ( 42 )
----
152388
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT - CAST( - - 18 AS SIGNED ) * 22 * 36 * + COUNT( 85 ) col0
----
-14256

skipif mysql # not compatible
query I rowsort label-4020
SELECT - CAST ( - - 18 AS INTEGER ) * 22 * 36 * + COUNT ( 85 ) col0
----
-14256

query I rowsort
SELECT ALL + 81 * - 14 - + 62
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + 85 + 71 + + MAX( + + ( + 88 ) ) + - + COUNT( * ) AS col1
----
243

skipif mysql # not compatible
query I rowsort label-4022
SELECT + 85 + 71 + + MAX ( + + ( + 88 ) ) + - + COUNT ( * ) AS col1
----
243

query I rowsort
SELECT DISTINCT + 87 * + 17
----
1479

query II rowsort
SELECT DISTINCT 38, 72 AS col2
----
38
72

query I rowsort
SELECT 5 + 83
----
88

query I rowsort
SELECT 14 + 87
----
101

query I rowsort
SELECT ALL - 33 - 76
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT - 33 DIV 9
----
-3

skipif mysql # not compatible
query I rowsort label-4028
SELECT - 33 / 9
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4029
SELECT ALL - ( - 98 ) DIV MAX( DISTINCT + 46 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL - ( - 98 ) / MAX ( DISTINCT + 46 ) AS col2
----
2

query I rowsort
SELECT NULLIF ( 34, - 10 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT - 25 * + COUNT( 89 ) * - 29 AS col2
----
725

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT - 25 * + COUNT ( 89 ) * - 29 AS col2
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + ( + NULLIF ( 23, 84 - + COALESCE ( - 38, ( - + 84 ), SUM( ALL - 87 ) ) ) ) * + 93 + - NULLIF ( - 82, + 33 * + ( + - COUNT( * ) ) + + COUNT( * ) + + - 56 ) * 45 AS col1
----
5829

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + ( + NULLIF ( 23, 84 - + COALESCE ( - 38, ( - + 84 ), SUM ( ALL - 87 ) ) ) ) * + 93 + - NULLIF ( - 82, + 33 * + ( + - COUNT ( * ) ) + + COUNT ( * ) + + - 56 ) * 45 AS col1
----
5829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4033
SELECT 70 DIV - MIN( 37 ) + 50 - MIN( ALL - + 0 ) * + 65
----
49

skipif mysql # not compatible
query I rowsort label-4033
SELECT 70 / - MIN ( 37 ) + 50 - MIN ( ALL - + 0 ) * + 65
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT - 67 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-4034
SELECT - 67 / - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT - COUNT( * ) + + + 18 + + 11 * - 62 * - 64 + 94 + - 49 + ( - 85 ) * 56 * + - 84 * - COUNT( DISTINCT + ( 30 ) )
----
-356130

skipif mysql # not compatible
query I rowsort label-4035
SELECT - COUNT ( * ) + + + 18 + + 11 * - 62 * - 64 + 94 + - 49 + ( - 85 ) * 56 * + - 84 * - COUNT ( DISTINCT + ( 30 ) )
----
-356130

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL + MAX( ALL 42 ) * COUNT( * ) + - 15 + 71
----
98

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + MAX ( ALL 42 ) * COUNT ( * ) + - 15 + 71
----
98

query I rowsort
SELECT COALESCE ( - - 61, - + 92 * + + 7 * 57, 45 )
----
61

query I rowsort
SELECT + COALESCE ( + ( 56 ), - ( 19 ) ) * 77
----
4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4039
SELECT DISTINCT + NULLIF ( + 31, COUNT( * ) ) * 62 DIV 75 * - 42 AS col2
----
-1050

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + NULLIF ( + 31, COUNT ( * ) ) * 62 / 75 * - 42 AS col2
----
-1050

query I rowsort
SELECT ALL + + ( + 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + + 48 * ( 8 ) + + - 59 + COALESCE ( - COUNT( DISTINCT - - 50 ), - 7, + 51 ) + + - COUNT( * ) * + - 96 col2
----
420

skipif mysql # not compatible
query I rowsort label-4041
SELECT + + 48 * ( 8 ) + + - 59 + COALESCE ( - COUNT ( DISTINCT - - 50 ), - 7, + 51 ) + + - COUNT ( * ) * + - 96 col2
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - COALESCE ( - SUM( ALL + 19 ), - - 53 ) + + - 96 * 30
----
-2861

skipif mysql # not compatible
query I rowsort label-4042
SELECT - COALESCE ( - SUM ( ALL + 19 ), - - 53 ) + + - 96 * 30
----
-2861

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + + 24 * 35 + - 66 + MIN( ALL - 67 ) AS col0
----
707

skipif mysql # not compatible
query I rowsort label-4043
SELECT + + 24 * 35 + - 66 + MIN ( ALL - 67 ) AS col0
----
707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4044
SELECT ALL CASE + 71 WHEN - - 37 THEN NULL WHEN + 20 * - COALESCE ( - + 63, - 99 DIV + - 49 DIV - 49, - - COUNT( * ) * - - 84 ) - + + MIN( 36 ) THEN NULL ELSE + 54 END * + 88 * CASE - 12 WHEN + 52 THEN - 52 WHEN + - 33 DIV + + 41 THEN NULL WHEN - - 9 THEN NULL ELSE + - CAST( - 92 AS SIGNED ) DIV COUNT( * ) + + 65 + - 31 END + + 26 * + - 59 * - - 98 * - - 2 + + ( - - 88 )
----
298176

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL CASE + 71 WHEN - - 37 THEN NULL WHEN + 20 * - COALESCE ( - + 63, - 99 / + - 49 / - 49, - - COUNT ( * ) * - - 84 ) - + + MIN ( 36 ) THEN NULL ELSE + 54 END * + 88 * CASE - 12 WHEN + 52 THEN - 52 WHEN + - 33 / + + 41 THEN NULL WHEN - - 9 THEN NULL ELSE + - CAST ( - 92 AS INTEGER ) / COUNT ( * ) + + 65 + - 31 END + + 26 * + - 59 * - - 98 * - - 2 + + ( - - 88 )
----
298176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4045
SELECT ALL + 23 * 66 + + - 10 + 13 DIV + - 41 * - SUM( DISTINCT - 31 ) + + 96 AS col0, 22 - - + CAST( NULL AS SIGNED ) AS col2
----
1604
NULL

skipif mysql # not compatible
query II rowsort label-4045
SELECT ALL + 23 * 66 + + - 10 + 13 / + - 41 * - SUM ( DISTINCT - 31 ) + + 96 AS col0, 22 - - + CAST ( NULL AS INTEGER ) AS col2
----
1604
NULL

query II rowsort
SELECT DISTINCT 81 * + 58 + 67 AS col2, - 23 AS col2
----
4765
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT DISTINCT - 32 DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT - 32 / 69 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT + 74 + - + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT + 74 + - + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL + COALESCE ( + MAX( 9 ), + 18 )
----
9

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + COALESCE ( + MAX ( 9 ), + 18 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT - - CAST( + 86 AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4050
SELECT - - CAST ( + 86 AS INTEGER ) AS col0
----
86

query I rowsort
SELECT ALL - 41 - 66 AS col2
----
-107

query I rowsort
SELECT DISTINCT 48 * + 34
----
1632

query I rowsort
SELECT ALL + 61 - + 61 AS col1
----
0

query I rowsort
SELECT + ( - - 15 ) * - 93 * - 8 + + 53 * 91 * - - 55 - 92 AS col0
----
276333

query I rowsort
SELECT + 28 - + 76
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT DISTINCT 92 DIV + + 38
----
2

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT 92 / + + 38
----
2

query II rowsort
SELECT ALL 90 AS col1, COALESCE ( - 81, - 28, - - 75 + - ( - 61 ) ) AS col1
----
90
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL SUM( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL SUM ( 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4059
SELECT ALL SUM( ALL CAST( NULL AS SIGNED ) ) AS col0, 31 DIV + COALESCE ( - - 15, - + 86 ) + - 62 AS col2
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-4059
SELECT ALL SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0, 31 / + COALESCE ( - - 15, - + 86 ) + - 62 AS col2
----
NULL
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT - MIN( - - 3 ) * 68
----
-204

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - MIN ( - - 3 ) * 68
----
-204

onlyif mysql # DIV for integer division: 
query II rowsort label-4061
SELECT DISTINCT 59 AS col1, - 14 DIV + - ( 26 )
----
59
0

skipif mysql # not compatible
query II rowsort label-4061
SELECT DISTINCT 59 AS col1, - 14 / + - ( 26 )
----
59
0

query I rowsort
SELECT ALL - ( + 66 ) * - 16
----
1056

query I rowsort
SELECT - 79 - - 91
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4064
SELECT DISTINCT 85 * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT 85 * + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + 50 + + 86 + + 65 * 60 * + + 88
----
343336

query I rowsort
SELECT - 32 * + 96 * + COALESCE ( + 11, 59 )
----
-33792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4067
SELECT CAST( COALESCE ( MIN( + 3 ), 98 * + 9 + + 41 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4067
SELECT CAST ( COALESCE ( MIN ( + 3 ), 98 * + 9 + + 41 ) AS INTEGER )
----
3

query I rowsort
SELECT + 19 + + + 51 AS col0
----
70

query I rowsort
SELECT DISTINCT + NULLIF ( - + 80, - 62 ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL 74 / + 1 + CASE - + 31 WHEN CASE + 1 WHEN - - 68 THEN - 12 END THEN + - 58 WHEN - COALESCE ( - NULLIF ( - + 65, + + 99 * 30 + + + CAST( NULL AS SIGNED ) - + COUNT( * ) + - - 50 ), + 58 * SUM( ALL - 87 ) ) + 9 - + 76 THEN 97 + + + 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL 74 / + 1 + CASE - + 31 WHEN CASE + 1 WHEN - - 68 THEN - 12 END THEN + - 58 WHEN - COALESCE ( - NULLIF ( - + 65, + + 99 * 30 + + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + - - 50 ), + 58 * SUM ( ALL - 87 ) ) + 9 - + 76 THEN 97 + + + 3 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4071
SELECT ALL - - 75 / - COUNT( * ) * ( CAST( NULL AS DECIMAL ) ) + 92 + + NULLIF ( + 99, + + 78 * 19 ) - + 1 + ( + 16 ) - 2 * 76 * - CAST( NULL AS SIGNED ) * 71 * + 13 + - 52 * - 99 / + CAST( + COALESCE ( - + 54, - 36 * + + 39 * 42 ) AS DECIMAL ) * + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL - - 75 / - COUNT ( * ) * ( CAST ( NULL AS REAL ) ) + 92 + + NULLIF ( + 99, + + 78 * 19 ) - + 1 + ( + 16 ) - 2 * 76 * - CAST ( NULL AS INTEGER ) * 71 * + 13 + - 52 * - 99 / + CAST ( + COALESCE ( - + 54, - 36 * + + 39 * 42 ) AS REAL ) * + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4072
SELECT ALL NULLIF ( 75, 96 + - - 82 + - 5 ) DIV - - ( + 56 ) + + ( COALESCE ( + NULLIF ( + - 32, COALESCE ( - - 11, COUNT( * ) ) * + + 37 ), + COUNT( * ), - 92, - 46 * + 30 ) ) + + 11 + + 44 * 66 col2
----
2884

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL NULLIF ( 75, 96 + - - 82 + - 5 ) / - - ( + 56 ) + + ( COALESCE ( + NULLIF ( + - 32, COALESCE ( - - 11, COUNT ( * ) ) * + + 37 ), + COUNT ( * ), - 92, - 46 * + 30 ) ) + + 11 + + 44 * 66 col2
----
2884

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - SUM( - 59 ) * 21 AS col0
----
1239

skipif mysql # not compatible
query I rowsort label-4073
SELECT - SUM ( - 59 ) * 21 AS col0
----
1239

onlyif mysql # DIV for integer division: 
query I rowsort label-4074
SELECT ALL - + 29 DIV - - 42 * 8 * - 86 + - - 89
----
89

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - + 29 / - - 42 * 8 * - 86 + - - 89
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4075
SELECT ALL 67 DIV + - 90 + + 47 * 17 + - 48 * - COALESCE ( COUNT( DISTINCT 78 ), 23 ), + 6 + - 89 AS col0
----
847
-83

skipif mysql # not compatible
query II rowsort label-4075
SELECT ALL 67 / + - 90 + + 47 * 17 + - 48 * - COALESCE ( COUNT ( DISTINCT 78 ), 23 ), + 6 + - 89 AS col0
----
847
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + + COALESCE ( - - COUNT( * ), 25 + COUNT( * ) ) * + - 55 + - + 18 * ( - 90 ) AS col1
----
1565

skipif mysql # not compatible
query I rowsort label-4076
SELECT + + COALESCE ( - - COUNT ( * ), 25 + COUNT ( * ) ) * + - 55 + - + 18 * ( - 90 ) AS col1
----
1565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT - ( 85 ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT - ( 85 ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4078
SELECT + 63 * 42 + - + CAST( NULL AS SIGNED ) * COUNT( * ) + + - 86 + + COALESCE ( + 71, - - 68, - 57 ) AS col0, ( 2 )
----
NULL
2

skipif mysql # not compatible
query II rowsort label-4078
SELECT + 63 * 42 + - + CAST ( NULL AS INTEGER ) * COUNT ( * ) + + - 86 + + COALESCE ( + 71, - - 68, - 57 ) AS col0, ( 2 )
----
NULL
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT DISTINCT - COALESCE ( + - 39, 97, - 67 ) * COUNT( DISTINCT 71 ), + 81 * + 90 * + 95 col0
----
39
692550

skipif mysql # not compatible
query II rowsort label-4079
SELECT DISTINCT - COALESCE ( + - 39, 97, - 67 ) * COUNT ( DISTINCT 71 ), + 81 * + 90 * + 95 col0
----
39
692550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT - - CAST( NULL AS SIGNED ) + - - 95 * + + 86 * - 96 * + 4 / - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT - - CAST ( NULL AS INTEGER ) + - - 95 * + + 86 * - 96 * + 4 / - 57 AS col2
----
NULL

query I rowsort
SELECT - + 25 + + 63
----
38

query I rowsort
SELECT ALL - + 41 * - 21 AS col1
----
861

query I rowsort
SELECT ALL + + ( - 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT + 71 * - 33 + 91 * - + COUNT( * ) AS col0, 45
----
-2434
45

skipif mysql # not compatible
query II rowsort label-4084
SELECT + 71 * - 33 + 91 * - + COUNT ( * ) AS col0, 45
----
-2434
45

query I rowsort
SELECT DISTINCT + + 88 col1
----
88

query II rowsort
SELECT + 35, 79 AS col1
----
35
79

query III rowsort
SELECT - + 73 + + - 2, 87 + + 41 col2, - ( + + 90 ) AS col0
----
-75
128
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT COUNT( * ) * + COUNT( + - 68 ) - - 38 + - COUNT( * ) + - - 45 * + COUNT( * ) + - + ( + + COUNT( * ) ) + - + 9 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT COUNT ( * ) * + COUNT ( + - 68 ) - - 38 + - COUNT ( * ) + - - 45 * + COUNT ( * ) + - + ( + + COUNT ( * ) ) + - + 9 AS col2
----
73

query I rowsort
SELECT 79 * ( + 73 ) AS col0
----
5767

query I rowsort
SELECT ALL NULLIF ( - 69, + ( - 52 ) * - 50 ) - + 25 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT MAX( ALL + 44 ) + 25
----
69

skipif mysql # not compatible
query I rowsort label-4091
SELECT MAX ( ALL + 44 ) + 25
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT ALL - 70 DIV + 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - 70 / + 54 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4093
SELECT COUNT( * ) + CAST( + 27 AS SIGNED ) * - - NULLIF ( - COUNT( * ), 61 * MAX( ALL + 11 ) ) + + - SUM( DISTINCT 97 ) AS col1, 10 * ( - - 80 )
----
-123
800

skipif mysql # not compatible
query II rowsort label-4093
SELECT COUNT ( * ) + CAST ( + 27 AS INTEGER ) * - - NULLIF ( - COUNT ( * ), 61 * MAX ( ALL + 11 ) ) + + - SUM ( DISTINCT 97 ) AS col1, 10 * ( - - 80 )
----
-123
800

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL 44 * - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL 44 * - - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT NULLIF ( - 30, - - ( + 35 ) * + 99 ) + COUNT( 32 ) + - COUNT( * ) - - 99 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT NULLIF ( - 30, - - ( + 35 ) * + 99 ) + COUNT ( 32 ) + - COUNT ( * ) - - 99 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT NULLIF ( + 80, ( + ( - 68 ) ) ) + - + COUNT( * ) * - 30 + COUNT( * ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-4096
SELECT NULLIF ( + 80, ( + ( - 68 ) ) ) + - + COUNT ( * ) * - 30 + COUNT ( * ) AS col2
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT ALL NULLIF ( + + 97, ( + + ( - 90 ) ) ) + 34 DIV + 99 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL NULLIF ( + + 97, ( + + ( - 90 ) ) ) + 34 / + 99 AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT 58 + - 40 col1, 67 - - + 81 * + 37 + 67 + 43 + + - 76 + + COUNT( * ) col1
----
18
3099

skipif mysql # not compatible
query II rowsort label-4098
SELECT 58 + - 40 col1, 67 - - + 81 * + 37 + 67 + 43 + + - 76 + + COUNT ( * ) col1
----
18
3099

query I rowsort
SELECT ALL 90 + + NULLIF ( 87, 67 * + - ( + 82 ) ) AS col0
----
177

query II rowsort
SELECT 48 * + - 50 AS col1, 41 AS col2
----
-2400
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL - - MIN( DISTINCT + 99 ) + + + MAX( DISTINCT - - CASE + 45 WHEN - 15 THEN - - CAST( NULL AS SIGNED ) WHEN - + 83 THEN NULL WHEN - 19 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - - MIN ( DISTINCT + 99 ) + + + MAX ( DISTINCT - - CASE + 45 WHEN - 15 THEN - - CAST ( NULL AS INTEGER ) WHEN - + 83 THEN NULL WHEN - 19 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4102
SELECT ( + - COUNT( * ) ) * 15 DIV - - 58 * - - 78 AS col0, 51
----
0
51

skipif mysql # not compatible
query II rowsort label-4102
SELECT ( + - COUNT ( * ) ) * 15 / - - 58 * - - 78 AS col0, 51
----
0
51

query I rowsort
SELECT ALL + 10 * + 52
----
520

query I rowsort
SELECT ALL - 35 + - - 32 AS col1
----
-3

query II rowsort
SELECT + - ( + 83 ), 53 AS col1
----
-83
53

query I rowsort
SELECT 42 * + 42 * + + 26 AS col2
----
45864

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT DISTINCT + + 77 - + 68 col0, + 55 * - 29 * + - COUNT( DISTINCT - 29 ) + + 37 + 24 * - + 9 AS col0
----
9
1416

skipif mysql # not compatible
query II rowsort label-4107
SELECT DISTINCT + + 77 - + 68 col0, + 55 * - 29 * + - COUNT ( DISTINCT - 29 ) + + 37 + 24 * - + 9 AS col0
----
9
1416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4108
SELECT ALL + 94 - - 32 + + 71 * - 46 DIV + + COUNT( - 64 ) AS col0
----
-3140

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + 94 - - 32 + + 71 * - 46 / + + COUNT ( - 64 ) AS col0
----
-3140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT 65 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT 65 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT ALL + 83 DIV 91 * - 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + 83 / 91 * - 72 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT ( + ( + - 45 ) ) * - CAST( 20 AS SIGNED ) + - - 91 + - 22 AS col0
----
969

skipif mysql # not compatible
query I rowsort label-4111
SELECT ( + ( + - 45 ) ) * - CAST ( 20 AS INTEGER ) + - - 91 + - 22 AS col0
----
969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4112
SELECT DISTINCT + 50 DIV + 79 + 60 + ( - 94 ) * + + COUNT( * ) * + + COUNT( * ) * - ( - COUNT( * ) ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + 50 / + 79 + 60 + ( - 94 ) * + + COUNT ( * ) * + + COUNT ( * ) * - ( - COUNT ( * ) ) AS col0
----
-34

query I rowsort
SELECT ( - 7 ) * + ( - + 87 ) AS col0
----
609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4114
SELECT - + 85 * - 27 - - COUNT( ALL 46 ) - ( 76 ) + + ( - 67 ) * + - 3 * - 89 + 30 - + + CAST( NULL AS SIGNED ) + COUNT( * ) DIV + COUNT( * ) * 86 col0, 32 DIV + + 66
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4114
SELECT - + 85 * - 27 - - COUNT ( ALL 46 ) - ( 76 ) + + ( - 67 ) * + - 3 * - 89 + 30 - + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + COUNT ( * ) * 86 col0, 32 / + + 66
----
NULL
0

query I rowsort
SELECT 91 * - 40 AS col0
----
-3640

query I rowsort
SELECT 24 * 78 AS col1
----
1872

query I rowsort
SELECT ALL - 74 * 94 AS col2
----
-6956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4118
SELECT + CAST( NULL AS SIGNED ) * - 0 - + 18 * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT + CAST ( NULL AS INTEGER ) * - 0 - + 18 * - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 8 + - 9
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4120
SELECT ALL COUNT( DISTINCT + + ( 68 ) ) AS col2, + 82 * - 94
----
1
-7708

skipif mysql # not compatible
query II rowsort label-4120
SELECT ALL COUNT ( DISTINCT + + ( 68 ) ) AS col2, + 82 * - 94
----
1
-7708

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4121
SELECT 34 AS col1, + CAST( NULL AS SIGNED ) * + + 38 col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4121
SELECT 34 AS col1, + CAST ( NULL AS INTEGER ) * + + 38 col0
----
34
NULL

query I rowsort
SELECT DISTINCT - 56 + 46
----
-10

query I rowsort
SELECT 4 * - 60
----
-240

query I rowsort
SELECT 39 * + 49 AS col0
----
1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT + NULLIF ( + 50, + 76 ) + - 34 DIV + - COALESCE ( + 52, + COUNT( + 81 ) ) + - NULLIF ( - 74, - CAST( NULL AS SIGNED ) ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT + NULLIF ( + 50, + 76 ) + - 34 / + - COALESCE ( + 52, + COUNT ( + 81 ) ) + - NULLIF ( - 74, - CAST ( NULL AS INTEGER ) ) AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4126
SELECT ALL + CAST( NULL AS DECIMAL ) / + COUNT( DISTINCT 19 ) * 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL + CAST ( NULL AS REAL ) / + COUNT ( DISTINCT 19 ) * 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4127
SELECT DISTINCT COUNT( * ) AS col1, - 84 AS col0
----
1
-84

skipif mysql # not compatible
query II rowsort label-4127
SELECT DISTINCT COUNT ( * ) AS col1, - 84 AS col0
----
1
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL + 12 + - - 76 + - + COUNT( 7 ) - - 23
----
110

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL + 12 + - - 76 + - + COUNT ( 7 ) - - 23
----
110

query I rowsort
SELECT 29 * + 30
----
870

query I rowsort
SELECT DISTINCT + 39 + - - 19
----
58

query I rowsort
SELECT ALL 90 + - 7 AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT DISTINCT 49 + - NULLIF ( + 87, 29 ) DIV + 60 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT 49 + - NULLIF ( + 87, 29 ) / + 60 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL 84 + + 24 + - 4 + - 52 - + + ( + 38 ) * - 55 + - - ( + COUNT( * ) ) AS col1
----
2143

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL 84 + + 24 + - 4 + - 52 - + + ( + 38 ) * - 55 + - - ( + COUNT ( * ) ) AS col1
----
2143

onlyif mysql # aggregate syntax: 
query II rowsort label-4134
SELECT ALL - COALESCE ( - + 84, + + NULLIF ( + COUNT( * ), + COUNT( * ) ) ) * + - 69, - 32 * + ( 48 ) + + 94 col0
----
-5796
-1442

skipif mysql # not compatible
query II rowsort label-4134
SELECT ALL - COALESCE ( - + 84, + + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) ) * + - 69, - 32 * + ( 48 ) + + 94 col0
----
-5796
-1442

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4135
SELECT DISTINCT + - ( + 3 ) + + NULLIF ( COALESCE ( + 29, - 14 ), + COALESCE ( 27, + 85 ) ) DIV + 81 + + - 59 AS col1, COUNT( * ) * - 7
----
-62
-7

skipif mysql # not compatible
query II rowsort label-4135
SELECT DISTINCT + - ( + 3 ) + + NULLIF ( COALESCE ( + 29, - 14 ), + COALESCE ( 27, + 85 ) ) / + 81 + + - 59 AS col1, COUNT ( * ) * - 7
----
-62
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT 0 * + 27 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4136
SELECT 0 * + 27 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT 88 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT 88 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT COUNT( * ) DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-4138
SELECT COUNT ( * ) / 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL COUNT( * ) + + 71 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL COUNT ( * ) + + 71 AS col2
----
72

query I rowsort
SELECT - 86 * + 38 * 19
----
-62092

query I rowsort
SELECT 80 * - + 61
----
-4880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4142
SELECT + CAST( COUNT( * ) AS SIGNED ) * - + ( - + MIN( DISTINCT + - 16 ) ) + + CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * - + ( - + MIN ( DISTINCT + - 16 ) ) + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL - - SUM( ALL - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL - - SUM ( ALL - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL 83 * + 73 * + + 92 + + COALESCE ( - + 58, - 68 + - - 91, + 43 * - - 61 ) - - CASE + + COUNT( * ) WHEN + 26 THEN - 34 END - + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL 83 * + 73 * + + 92 + + COALESCE ( - + 58, - 68 + - - 91, + 43 * - - 61 ) - - CASE + + COUNT ( * ) WHEN + 26 THEN - 34 END - + + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL - 98 * + SUM( DISTINCT + - 6 ) AS col2
----
588

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL - 98 * + SUM ( DISTINCT + - 6 ) AS col2
----
588

query I rowsort
SELECT ALL - 54 * 82
----
-4428

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + CASE + - AVG ( 81 ) WHEN + ( - 44 ) THEN - COUNT( * ) END * NULLIF ( + 12, + + 61 + COUNT( + 49 ) ) * + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT + CASE + - AVG ( 81 ) WHEN + ( - 44 ) THEN - COUNT ( * ) END * NULLIF ( + 12, + + 61 + COUNT ( + 49 ) ) * + - 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - NULLIF ( - + 51, - 83 * - - 73 ) * - 69 + + SUM( DISTINCT - - 22 ) + ( - + CASE 40 WHEN 52 THEN - ( - + COALESCE ( 25, - AVG ( DISTINCT - 90 ) + COUNT( * ) - - 70 ) ) ELSE NULL END ) * + + 54 / 53 - + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT - NULLIF ( - + 51, - 83 * - - 73 ) * - 69 + + SUM ( DISTINCT - - 22 ) + ( - + CASE 40 WHEN 52 THEN - ( - + COALESCE ( 25, - AVG ( DISTINCT - 90 ) + COUNT ( * ) - - 70 ) ) ELSE NULL END ) * + + 54 / 53 - + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT - COUNT( * ) * 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - COUNT ( * ) * 46 AS col2
----
-46

query I rowsort
SELECT - + 96 * - - 24 * - ( + - 61 ) + + 46 AS col2
----
-140498

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4151
SELECT + COUNT( * ) DIV + 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4151
SELECT + COUNT ( * ) / + 20 AS col0
----
0

query I rowsort
SELECT - 85 * + 38
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL + COALESCE ( - COUNT( * ), 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + COALESCE ( - COUNT ( * ), 17 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT - SUM( DISTINCT + + 54 ) * NULLIF ( + 24, - 81 ) AS col1
----
-1296

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - SUM ( DISTINCT + + 54 ) * NULLIF ( + 24, - 81 ) AS col1
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT MAX( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-4155
SELECT MAX ( 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4156
SELECT + CASE 17 WHEN 64 * - AVG ( + + 21 ) + + - COUNT( * ) THEN NULL WHEN - - 37 THEN - 49 WHEN + ( + 87 ) THEN NULL ELSE NULL END, CASE - + ( 63 ) WHEN + COALESCE ( + 33, + 55 ) THEN NULL WHEN 71 THEN NULL ELSE 28 END + + 84 + - CASE + 91 WHEN - + 58 THEN NULL WHEN - COALESCE ( + + 36, COUNT( * ) * 69, + 41 / - 95 ) * 75 * + - 55 - + 17 THEN - + 10 ELSE - CAST( NULL AS SIGNED ) + 21 END + 71 * + CASE - + 87 WHEN + 0 * - 46 + + CASE + 34 WHEN - 68 * - + 76 - - + 11 THEN NULL WHEN 59 * - + 19 THEN NULL WHEN 82 + 52 THEN - COUNT( * ) END - - 56 THEN + NULLIF ( 4, - 60 * 81 ) * + SUM( - 78 * 53 + + 20 ) WHEN - COUNT( * ) * 94 THEN + COUNT( DISTINCT + 14 ) ELSE NULL END * + 86
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4156
SELECT + CASE 17 WHEN 64 * - AVG ( + + 21 ) + + - COUNT ( * ) THEN NULL WHEN - - 37 THEN - 49 WHEN + ( + 87 ) THEN NULL ELSE NULL END, CASE - + ( 63 ) WHEN + COALESCE ( + 33, + 55 ) THEN NULL WHEN 71 THEN NULL ELSE 28 END + + 84 + - CASE + 91 WHEN - + 58 THEN NULL WHEN - COALESCE ( + + 36, COUNT ( * ) * 69, + 41 / - 95 ) * 75 * + - 55 - + 17 THEN - + 10 ELSE - CAST ( NULL AS INTEGER ) + 21 END + 71 * + CASE - + 87 WHEN + 0 * - 46 + + CASE + 34 WHEN - 68 * - + 76 - - + 11 THEN NULL WHEN 59 * - + 19 THEN NULL WHEN 82 + 52 THEN - COUNT ( * ) END - - 56 THEN + NULLIF ( 4, - 60 * 81 ) * + SUM ( - 78 * 53 + + 20 ) WHEN - COUNT ( * ) * 94 THEN + COUNT ( DISTINCT + 14 ) ELSE NULL END * + 86
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT + 97 * - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + 97 * - COUNT ( * )
----
-97

query I rowsort
SELECT + 50 + + 51
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - MIN( + NULLIF ( + 86, - ( - 62 ) ) ) * 95 AS col0
----
-8170

skipif mysql # not compatible
query I rowsort label-4159
SELECT - MIN ( + NULLIF ( + 86, - ( - 62 ) ) ) * 95 AS col0
----
-8170

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL SUM( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL SUM ( - 5 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4161
SELECT - CASE - 23 WHEN - - 27 THEN COUNT( * ) WHEN - 44 * COUNT( * ) * - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + 21 ELSE + NULLIF ( - 42, SUM( DISTINCT - + 41 ) + - 95 ) DIV + ( + 36 ) END col0
----
1

skipif mysql # not compatible
query I rowsort label-4161
SELECT - CASE - 23 WHEN - - 27 THEN COUNT ( * ) WHEN - 44 * COUNT ( * ) * - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 21 ELSE + NULLIF ( - 42, SUM ( DISTINCT - + 41 ) + - 95 ) / + ( + 36 ) END col0
----
1

query I rowsort
SELECT - 32 * - 61
----
1952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4163
SELECT NULLIF ( - COUNT( * ), - 95 - + CASE + CAST( NULL AS SIGNED ) WHEN - 44 + - + 95 THEN NULL ELSE 44 END ) * CAST( + COUNT( * ) AS SIGNED ) + + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4163
SELECT NULLIF ( - COUNT ( * ), - 95 - + CASE + CAST ( NULL AS INTEGER ) WHEN - 44 + - + 95 THEN NULL ELSE 44 END ) * CAST ( + COUNT ( * ) AS INTEGER ) + + + 6 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT + COALESCE ( - 23, 58 ) * + 17 - + COUNT( DISTINCT 95 )
----
-392

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT + COALESCE ( - 23, 58 ) * + 17 - + COUNT ( DISTINCT 95 )
----
-392

query I rowsort
SELECT - 97 + - - 43 * - 75
----
-3322

query I rowsort
SELECT ALL NULLIF ( 30, + + 55 )
----
30

query I rowsort
SELECT DISTINCT ( - 66 ) AS col0
----
-66

query I rowsort
SELECT - 43 + - 70
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT DISTINCT - COUNT( DISTINCT + 42 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - COUNT ( DISTINCT + 42 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + - 10 * 73 - - + 23
----
-707

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT ALL + 27 * COUNT( * ) DIV + 63 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + 27 * COUNT ( * ) / + 63 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 16 * 3
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4173
SELECT ALL - + CAST( - COALESCE ( + CASE - 61 WHEN - SUM( + 41 ) THEN - CAST( NULL AS SIGNED ) * - 13 + 99 * + ( - - MAX( + 49 ) ) * + 54 + NULLIF ( 13, + CASE 25 WHEN - - 26 THEN NULL WHEN 90 * - + 81 * 37 - - - COUNT( * ) * + COUNT( DISTINCT - 38 ) THEN - 96 - - - 16 - 22 + + + 3 * - - 5 * + + 16 END ) - COUNT( * ) * - COALESCE ( + 29, + + 91 * + 24 - + 64 + COUNT( * ), 85 * + 40 * - 29 * + 61 ) WHEN + ( + - 42 ) THEN NULL END, + 58, + + 84 * + - 34 * - 60 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS SIGNED ) * 39
----
2262

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL - + CAST ( - COALESCE ( + CASE - 61 WHEN - SUM ( + 41 ) THEN - CAST ( NULL AS INTEGER ) * - 13 + 99 * + ( - - MAX ( + 49 ) ) * + 54 + NULLIF ( 13, + CASE 25 WHEN - - 26 THEN NULL WHEN 90 * - + 81 * 37 - - - COUNT ( * ) * + COUNT ( DISTINCT - 38 ) THEN - 96 - - - 16 - 22 + + + 3 * - - 5 * + + 16 END ) - COUNT ( * ) * - COALESCE ( + 29, + + 91 * + 24 - + 64 + COUNT ( * ), 85 * + 40 * - 29 * + 61 ) WHEN + ( + - 42 ) THEN NULL END, + 58, + + 84 * + - 34 * - 60 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS INTEGER ) * 39
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT + + 5 * - COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT + + 5 * - COUNT ( * ) AS col2
----
-5

query I rowsort
SELECT ALL - 66 * NULLIF ( - + 3, - 62 ) + + + 38
----
236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4176
SELECT - ( + 69 ) * ( + 24 ) + + NULLIF ( - + COALESCE ( - 8, + 12 * - 16 * + COUNT( ALL + 32 ) * NULLIF ( ( ( - 56 ) ), + 5 ) DIV + 4 DIV - + 31 ), - + 86 * + 57 )
----
-1648

skipif mysql # not compatible
query I rowsort label-4176
SELECT - ( + 69 ) * ( + 24 ) + + NULLIF ( - + COALESCE ( - 8, + 12 * - 16 * + COUNT ( ALL + 32 ) * NULLIF ( ( ( - 56 ) ), + 5 ) / + 4 / - + 31 ), - + 86 * + 57 )
----
-1648

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + 60 * - 24 * - + COUNT( * ) * 85
----
122400

skipif mysql # not compatible
query I rowsort label-4177
SELECT + 60 * - 24 * - + COUNT ( * ) * 85
----
122400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT + NULLIF ( + CAST( + + ( 9 ) AS SIGNED ), + 14 )
----
9

skipif mysql # not compatible
query I rowsort label-4178
SELECT + NULLIF ( + CAST ( + + ( 9 ) AS INTEGER ), + 14 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT MAX( 95 ), 20 AS col0
----
95
20

skipif mysql # not compatible
query II rowsort label-4179
SELECT MAX ( 95 ), 20 AS col0
----
95
20

query I rowsort
SELECT ALL + + 66 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT - 65 * + NULLIF ( + + 94, + COUNT( * ) * - 37 + - ( 88 ) ) + - 3 AS col1
----
-6113

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - 65 * + NULLIF ( + + 94, + COUNT ( * ) * - 37 + - ( 88 ) ) + - 3 AS col1
----
-6113

query I rowsort
SELECT ALL + CASE 25 WHEN - 68 THEN + - 8 ELSE NULL END * - 16 / - - CASE 7 WHEN + - ( 21 ) THEN 76 * - 64 ELSE NULL END + - 15 * + ( + 99 ) - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT CASE - COUNT( * ) WHEN + + 76 * + - 59 + - ( + 75 ) THEN NULL ELSE - 15 END AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4183
SELECT CASE - COUNT ( * ) WHEN + + 76 * + - 59 + - ( + 75 ) THEN NULL ELSE - 15 END AS col2
----
-15

query I rowsort
SELECT + 9 + - 5 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT + COUNT( * ) * - - 36
----
36

skipif mysql # not compatible
query I rowsort label-4185
SELECT + COUNT ( * ) * - - 36
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT ALL CAST( NULL AS SIGNED ) * - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL CAST ( NULL AS INTEGER ) * - 6 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT CASE + 77 WHEN 25 * + 4 THEN + + NULLIF ( + 39, - + NULLIF ( + 98, - ( - 27 ) ) ) * + - ( + 96 ) - 33 * 69 * - - 95 + - 76 * 17 - + 80 * - MAX( ALL + - CAST( + + 17 AS SIGNED ) ) + + COUNT( * ) + 59 WHEN + - 73 THEN - COALESCE ( + 3, - 85 + + - 1 ) ELSE + 99 END AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4187
SELECT CASE + 77 WHEN 25 * + 4 THEN + + NULLIF ( + 39, - + NULLIF ( + 98, - ( - 27 ) ) ) * + - ( + 96 ) - 33 * 69 * - - 95 + - 76 * 17 - + 80 * - MAX ( ALL + - CAST ( + + 17 AS INTEGER ) ) + + COUNT ( * ) + 59 WHEN + - 73 THEN - COALESCE ( + 3, - 85 + + - 1 ) ELSE + 99 END AS col1
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-4188
SELECT + NULLIF ( - 49, + ( 91 ) * COALESCE ( + 2, 35 + - - 98 DIV ( 90 ), + 9 * + 82 + + 47, - 49 ) ) DIV 63 AS col0, + 30 * + 51 AS col0
----
0
1530

skipif mysql # not compatible
query II rowsort label-4188
SELECT + NULLIF ( - 49, + ( 91 ) * COALESCE ( + 2, 35 + - - 98 / ( 90 ), + 9 * + 82 + + 47, - 49 ) ) / 63 AS col0, + 30 * + 51 AS col0
----
0
1530

query I rowsort
SELECT COALESCE ( + 84, 74 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL 85 * + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL 85 * + COUNT ( * ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL CASE - + 20 WHEN + 8 THEN NULL WHEN - 59 THEN NULL WHEN + COUNT( * ) THEN - ( - 57 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL CASE - + 20 WHEN + 8 THEN NULL WHEN - 59 THEN NULL WHEN + COUNT ( * ) THEN - ( - 57 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT DISTINCT - 67 DIV - 7
----
9

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - 67 / - 7
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4193
SELECT ALL - CAST( NULL AS SIGNED ) * - 2 - - - 90 * - + 98 + + 9, + 33 AS col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-4193
SELECT ALL - CAST ( NULL AS INTEGER ) * - 2 - - - 90 * - + 98 + + 9, + 33 AS col1
----
NULL
33

query I rowsort
SELECT ALL - 49 * + 88
----
-4312

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT - 67 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-4195
SELECT - 67 / + 92
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT DISTINCT 73 DIV + COUNT( * ) * + NULLIF ( NULLIF ( + + COUNT( * ), - 18 * - 95 ), - 76 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT 73 / + COUNT ( * ) * + NULLIF ( NULLIF ( + + COUNT ( * ), - 18 * - 95 ), - 76 ) AS col0
----
73

query I rowsort
SELECT - 2 + + + 79
----
77

query I rowsort
SELECT ALL 7 * - 64
----
-448

query I rowsort
SELECT + 13 * 59
----
767

query I rowsort
SELECT + 31 - 48
----
-17

query I rowsort
SELECT ALL + 86 * + 47
----
4042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT + COALESCE ( + 33, 17 ) - - CAST( 12 AS SIGNED ) col2
----
45

skipif mysql # not compatible
query I rowsort label-4202
SELECT + COALESCE ( + 33, 17 ) - - CAST ( 12 AS INTEGER ) col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT + 77 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT + 77 * COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT 30 * 22
----
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT ALL 65 * - CAST( ( - 95 ) AS SIGNED ) col1
----
6175

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL 65 * - CAST ( ( - 95 ) AS INTEGER ) col1
----
6175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4206
SELECT DISTINCT NULLIF ( - CASE - 20 WHEN COALESCE ( COUNT( * ), 47 ) THEN NULL WHEN 49 + + 67 THEN + ( CAST( - 70 AS SIGNED ) ) / 51 + - COUNT( * ) END, ( - NULLIF ( - COALESCE ( - 99, - 75 ), 19 + 46 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT NULLIF ( - CASE - 20 WHEN COALESCE ( COUNT ( * ), 47 ) THEN NULL WHEN 49 + + 67 THEN + ( CAST ( - 70 AS INTEGER ) ) / 51 + - COUNT ( * ) END, ( - NULLIF ( - COALESCE ( - 99, - 75 ), 19 + 46 ) ) ) AS col2
----
NULL

query I rowsort
SELECT 99 - 17
----
82

query I rowsort
SELECT 2 * 75
----
150

query I rowsort
SELECT 73 + 61
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT 82 + MIN( - 75 )
----
7

skipif mysql # not compatible
query I rowsort label-4210
SELECT 82 + MIN ( - 75 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL - CASE 27 WHEN COUNT( * ) * + 23 + + 22 THEN - 31 WHEN - COUNT( * ) THEN - 59 WHEN + 0 * 46 THEN NULL WHEN SUM( DISTINCT 0 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL - CASE 27 WHEN COUNT ( * ) * + 23 + + 22 THEN - 31 WHEN - COUNT ( * ) THEN - 59 WHEN + 0 * 46 THEN NULL WHEN SUM ( DISTINCT 0 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT 89 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT 89 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT 92 DIV + COALESCE ( 99, 38 * 76, 85 + 27 )
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT 92 / + COALESCE ( 99, 38 * 76, 85 + 27 )
----
0

query I rowsort
SELECT 27 * + 55 AS col2
----
1485

query I rowsort
SELECT ALL - COALESCE ( 65, + 82 ) + + 56
----
-9

query I rowsort
SELECT ALL - 15 * 37 AS col1
----
-555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4217
SELECT ALL - CAST( + 59 AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - CAST ( + 59 AS INTEGER ) AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT ALL 40 + - 93 DIV 98 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL 40 + - 93 / 98 AS col2
----
40

query I rowsort
SELECT 17 + 24
----
41

query I rowsort
SELECT ALL - 24 + + 94 col0
----
70

query I rowsort
SELECT DISTINCT 75 + + 27 * 64
----
1803

query I rowsort
SELECT DISTINCT - ( + 78 ) + + 73
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT 7 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-4223
SELECT 7 / 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL CAST( + 87 AS SIGNED ) + MAX( ALL + 3 )
----
90

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL CAST ( + 87 AS INTEGER ) + MAX ( ALL + 3 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4225
SELECT ALL CASE - 14 WHEN CASE + CAST( 49 AS SIGNED ) WHEN 3 THEN + 56 WHEN 24 - + MAX( DISTINCT 94 ) THEN + 0 END THEN 75 ELSE + 23 END + + 81
----
104

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL CASE - 14 WHEN CASE + CAST ( 49 AS INTEGER ) WHEN 3 THEN + 56 WHEN 24 - + MAX ( DISTINCT 94 ) THEN + 0 END THEN 75 ELSE + 23 END + + 81
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT 33 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT 33 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 80 + 31
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT 85 - + 78 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT 85 - + 78 * + COUNT ( * )
----
7

query I rowsort
SELECT 29 + - 12
----
17

query I rowsort
SELECT 32 * 63 AS col2
----
2016

query I rowsort
SELECT 68 * 74
----
5032

query I rowsort
SELECT ALL 32 * + NULLIF ( - 30, - 16 / + 21 )
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT 74 + - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4233
SELECT 74 + - COUNT ( * ) AS col2
----
73

query I rowsort
SELECT DISTINCT 67 * - 64
----
-4288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT 58 * - CAST( 39 AS SIGNED )
----
-2262

skipif mysql # not compatible
query I rowsort label-4235
SELECT 58 * - CAST ( 39 AS INTEGER )
----
-2262

query I rowsort
SELECT 93 * + 29
----
2697

query I rowsort
SELECT 64 + 52 AS col1
----
116

query I rowsort
SELECT DISTINCT + 49 * 87
----
4263

query I rowsort
SELECT - 79 * 52
----
-4108

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT ALL - + 68 DIV 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - + 68 / 54 AS col0
----
-1

query I rowsort
SELECT 86 + - 70
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT + COALESCE ( - MAX( DISTINCT + 54 ), COUNT( * ) - 29, - 17, - 93 * - 21 ) * 16 AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-4242
SELECT + COALESCE ( - MAX ( DISTINCT + 54 ), COUNT ( * ) - 29, - 17, - 93 * - 21 ) * 16 AS col1
----
-864

query I rowsort
SELECT 34 * + 34 AS col0
----
1156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL - 75 + - 94 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - 75 + - 94 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 17 * 6 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ( 99 ) + - 38 * ( SUM( - 87 ) + COUNT( * ) * 91 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4246
SELECT ( 99 ) + - 38 * ( SUM ( - 87 ) + COUNT ( * ) * 91 ) AS col1
----
-53

query I rowsort
SELECT - 82 * + 76 AS col0
----
-6232

query I rowsort
SELECT ALL - 25 + 52 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT COUNT( + - ( 93 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4249
SELECT COUNT ( + - ( 93 ) )
----
1

query I rowsort
SELECT DISTINCT - ( 14 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL - SUM( DISTINCT + - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - SUM ( DISTINCT + - 67 )
----
67

query I rowsort
SELECT ALL - 66 * 73
----
-4818

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT 42 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-4253
SELECT 42 / - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL - CASE + 44 WHEN + COUNT( ALL - ( - 46 ) ) THEN - 61 WHEN - 44 * 63 + + ( + 15 ) THEN NULL END - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - CASE + 44 WHEN + COUNT ( ALL - ( - 46 ) ) THEN - 61 WHEN - 44 * 63 + + ( + 15 ) THEN NULL END - + 46
----
NULL

query I rowsort
SELECT 49 * - 23
----
-1127

query I rowsort
SELECT DISTINCT + 48 * + - ( + ( + 74 ) ) AS col1
----
-3552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL 44 - + - CAST( COUNT( * ) AS SIGNED ) * - 88 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL 44 - + - CAST ( COUNT ( * ) AS INTEGER ) * - 88 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT 32 + - SUM( ALL 78 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4258
SELECT 32 + - SUM ( ALL 78 ) AS col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4259
SELECT 68 DIV + COUNT( * ) col0
----
68

skipif mysql # not compatible
query I rowsort label-4259
SELECT 68 / + COUNT ( * ) col0
----
68

query I rowsort
SELECT ALL + 58 * - 23 col0
----
-1334

query I rowsort
SELECT 39 * 74
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + COUNT( * ) * - + ( ( 58 ) ) + + 92 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4262
SELECT + COUNT ( * ) * - + ( ( 58 ) ) + + 92 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT - NULLIF ( - + COUNT( * ), + 23 - - 42 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), + 23 - - 42 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT 58 DIV + 6 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4264
SELECT 58 / + 6 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT - COALESCE ( - 19, - COALESCE ( 38, 18 ) DIV COUNT( * ), ( MIN( DISTINCT + 29 ) ) * 78 - 10 * + 99 ) * MIN( + 91 )
----
1729

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - COALESCE ( - 19, - COALESCE ( 38, 18 ) / COUNT ( * ), ( MIN ( DISTINCT + 29 ) ) * 78 - 10 * + 99 ) * MIN ( + 91 )
----
1729

query I rowsort
SELECT 67 + + 9
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + SUM( DISTINCT - - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4267
SELECT + SUM ( DISTINCT - - 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT + - 76 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT + - 76 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + 84, + 19 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT - + 65 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT - + 65 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4271
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT - COALESCE ( NULLIF ( - 23, 9 ), + 51 - ( + 70 - 69 * - 31 ), + 33 + 64 ) AS col0
----
23

query I rowsort
SELECT ALL 69 + 37
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + COUNT( * ) * 88 + ( 56 ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-4274
SELECT + COUNT ( * ) * 88 + ( 56 ) AS col1
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4275
SELECT ALL CAST( + 87 AS SIGNED ) + + ( - MAX( + 31 ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL CAST ( + 87 AS INTEGER ) + + ( - MAX ( + 31 ) ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT + COUNT( - CAST( + 63 AS SIGNED ) ) - 13 * 13
----
-168

skipif mysql # not compatible
query I rowsort label-4276
SELECT + COUNT ( - CAST ( + 63 AS INTEGER ) ) - 13 * 13
----
-168

query I rowsort
SELECT DISTINCT - 87 * + 99 * + 22
----
-189486

query I rowsort
SELECT DISTINCT + 76 + - 13 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT DISTINCT SUM( + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT SUM ( + 27 ) AS col2
----
27

query I rowsort
SELECT + 79 * + 8
----
632

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - COUNT( * ) + + 31 + - COUNT( * ) * 36 * - 85
----
3090

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - COUNT ( * ) + + 31 + - COUNT ( * ) * 36 * - 85
----
3090

query I rowsort
SELECT ALL + 63 + - 19
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT CASE - - 46 WHEN - 7 + 33 THEN MAX( - ( + 16 ) ) + COUNT( * ) * 32 WHEN 77 THEN + 85 WHEN - 64 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT CASE - - 46 WHEN - 7 + 33 THEN MAX ( - ( + 16 ) ) + COUNT ( * ) * 32 WHEN 77 THEN + 85 WHEN - 64 THEN NULL END
----
NULL

query I rowsort
SELECT + - 88 + 1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT + + COUNT( * ) + + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4285
SELECT + + COUNT ( * ) + + 31 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT + CAST( NULL AS SIGNED ) - + ( 19 ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT + CAST ( NULL AS INTEGER ) - + ( 19 ) * + 47
----
NULL

query I rowsort
SELECT ALL ( 54 ) - + 4 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + 4 + - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4288
SELECT + 4 + - - COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 37 AS col2
----
NULL

query I rowsort
SELECT ALL - 89 * - 98
----
8722

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL + COALESCE ( - - 6, 45 + COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL + COALESCE ( - - 6, 45 + COUNT ( * ) )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4292
SELECT - COALESCE ( - - 72, + 38 ) DIV 55 + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4292
SELECT - COALESCE ( - - 72, + 38 ) / 55 + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL + SUM( DISTINCT - + 3 ) * - ( - 98 ) - - 79
----
-215

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL + SUM ( DISTINCT - + 3 ) * - ( - 98 ) - - 79
----
-215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT DISTINCT COUNT( * ) * 48 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT COUNT ( * ) * 48 / - 38
----
-1

query I rowsort
SELECT + 33 + 8
----
41

query I rowsort
SELECT - 50 * + 25 AS col1
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT + NULLIF ( - + MIN( 58 ), 95 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4297
SELECT + NULLIF ( - + MIN ( 58 ), 95 ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT CASE - 58 WHEN + ( + 28 ) THEN 63 * - 67 WHEN 64 + - 31 THEN ( 65 ) + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT CASE - 58 WHEN + ( + 28 ) THEN 63 * - 67 WHEN 64 + - 31 THEN ( 65 ) + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT + 2 * 69 + + + 35 + + COUNT( * ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-4299
SELECT + 2 * 69 + + + 35 + + COUNT ( * ) AS col0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT + 14 * 29 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT + 14 * 29 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - COALESCE ( + + 44, ( + COUNT( * ) ) * 62 ) * - ( COUNT( - 22 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4301
SELECT - COALESCE ( + + 44, ( + COUNT ( * ) ) * 62 ) * - ( COUNT ( - 22 ) ) AS col1
----
44

query II rowsort
SELECT ALL + 22 AS col2, - ( + + 55 ) AS col0
----
22
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT - 8 + - CASE WHEN NOT ( NULL ) BETWEEN NULL AND ( ( ( COUNT( * ) ) ) ) THEN + 77 * + COUNT( * ) + - 89 * 1 END * 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT - 8 + - CASE WHEN NOT ( NULL ) BETWEEN NULL AND ( ( ( COUNT ( * ) ) ) ) THEN + 77 * + COUNT ( * ) + - 89 * 1 END * 42 col1
----
NULL

query II rowsort
SELECT + 66 col1, 51 AS col1
----
66
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL + COUNT( * ) * + - 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + COUNT ( * ) * + - 40 AS col1
----
-40

query I rowsort
SELECT DISTINCT + NULLIF ( ( + 19 ), 4 * + 33 ) * 99
----
1881

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT DISTINCT + 45 DIV + 10
----
4

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT + 45 / + 10
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL + 65 * - COUNT( * ) + - 67 col1
----
-132

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + 65 * - COUNT ( * ) + - 67 col1
----
-132

query I rowsort
SELECT ALL + 0 * + - 45
----
0

query I rowsort
SELECT ALL + 99 * - 79 + 60
----
-7761

query I rowsort
SELECT + 1 + + + 36 AS col2
----
37

query I rowsort
SELECT + ( ( 92 ) ) * ( 51 ) + - 46
----
4646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4313
SELECT DISTINCT - COUNT( * ) * 4 + - + ( + CAST( NULL AS SIGNED ) ) * + ( 85 ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT - COUNT ( * ) * 4 + - + ( + CAST ( NULL AS INTEGER ) ) * + ( 85 ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL 96 * + SUM( - + 33 ) + + 87 + + CASE - 94 WHEN 88 * 47 THEN 90 * 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL 96 * + SUM ( - + 33 ) + + 87 + + CASE - 94 WHEN 88 * 47 THEN 90 * 59 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4315
SELECT ALL - 28 AS col1, NULLIF ( 0, 98 ) DIV + 95 - 83 DIV + 26 AS col1
----
-28
-3

skipif mysql # not compatible
query II rowsort label-4315
SELECT ALL - 28 AS col1, NULLIF ( 0, 98 ) / + 95 - 83 / + 26 AS col1
----
-28
-3

query II rowsort
SELECT - 16 AS col0, + 39
----
-16
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4317
SELECT + 97 DIV 79 * - - COALESCE ( + ( + 51 ), COUNT( * ) * 58, - 23 * 90 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4317
SELECT + 97 / 79 * - - COALESCE ( + ( + 51 ), COUNT ( * ) * 58, - 23 * 90 ) AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT DISTINCT CAST( 5 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT CAST ( 5 AS INTEGER ) AS col1
----
5

query I rowsort
SELECT ALL - - COALESCE ( 79, - 1 ) + + ( 93 )
----
172

query I rowsort
SELECT - - 53 + 18
----
71

query I rowsort
SELECT ALL - 47 + + 83 AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT ALL - CASE - + 83 WHEN + + 64 + + 35 THEN - ( - 20 ) WHEN 86 THEN - ( 94 ) WHEN 72 DIV - ( 94 ) THEN NULL ELSE 68 END DIV - ( + 32 )
----
2

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL - CASE - + 83 WHEN + + 64 + + 35 THEN - ( - 20 ) WHEN 86 THEN - ( 94 ) WHEN 72 / - ( 94 ) THEN NULL ELSE 68 END / - ( + 32 )
----
2

query I rowsort
SELECT ALL ( - + 26 ) + - 95 col1
----
-121

query II rowsort
SELECT DISTINCT + 69, 41 AS col1
----
69
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL 17 + - COUNT( * ) - - - ( 17 ) + 87 * 69 * 51
----
306152

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL 17 + - COUNT ( * ) - - - ( 17 ) + 87 * 69 * 51
----
306152

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT + 86 + MAX( - - 25 ) col1
----
111

skipif mysql # not compatible
query I rowsort label-4326
SELECT + 86 + MAX ( - - 25 ) col1
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT 88 col0, COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-4327
SELECT 88 col0, COUNT ( * )
----
88
1

query I rowsort
SELECT + 13 + + 3
----
16

query I rowsort
SELECT - + 26 * ( + 10 ) - ( 49 )
----
-309

query I rowsort
SELECT DISTINCT 1 * + 69
----
69

query II rowsort
SELECT ALL + 99, 54 AS col0
----
99
54

query I rowsort
SELECT DISTINCT + 75 * - - 98 * - 55 * + 5 * 74 col1
----
-149572500

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT ALL 45 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL 45 / 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - 21 - MIN( 36 ) + - 98
----
-155

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 21 - MIN ( 36 ) + - 98
----
-155

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4335
SELECT ALL 9 DIV + 78 AS col1, - CAST( - - CASE ( + 90 ) WHEN - 99 * 43 THEN ( 18 ) ELSE NULL END AS SIGNED ) + - 52
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4335
SELECT ALL 9 / + 78 AS col1, - CAST ( - - CASE ( + 90 ) WHEN - 99 * 43 THEN ( 18 ) ELSE NULL END AS INTEGER ) + - 52
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT + 15 DIV + - 56 * + 70
----
0

skipif mysql # not compatible
query I rowsort label-4336
SELECT + 15 / + - 56 * + 70
----
0

query II rowsort
SELECT + 20 * + 13 AS col0, + 18
----
260
18

query I rowsort
SELECT + 67 - + 9 * 36 + - + 43 AS col1
----
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4339
SELECT ALL 73 DIV - 42 * - + COALESCE ( - COUNT( * ), - 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL 73 / - 42 * - + COALESCE ( - COUNT ( * ), - 93 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT CAST( + + CAST( - 97 AS SIGNED ) AS SIGNED ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4340
SELECT CAST ( + + CAST ( - 97 AS INTEGER ) AS INTEGER ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT DISTINCT 1 + CAST( 44 AS SIGNED ) * COUNT( * ) * NULLIF ( + 44 * 93, 42 * + CAST( NULL AS SIGNED ) + 31 )
----
180049

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT 1 + CAST ( 44 AS INTEGER ) * COUNT ( * ) * NULLIF ( + 44 * 93, 42 * + CAST ( NULL AS INTEGER ) + 31 )
----
180049

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT CASE - - 78 WHEN - - SUM( ALL 39 ) * + 33 THEN NULL WHEN - 22 * 86 + 95 THEN + 31 * + 51 - + CASE - 77 WHEN + 49 THEN 14 WHEN 59 + 93 * - 58 THEN NULL ELSE - 13 END * 18 ELSE 19 END + - 27
----
-8

skipif mysql # not compatible
query I rowsort label-4342
SELECT CASE - - 78 WHEN - - SUM ( ALL 39 ) * + 33 THEN NULL WHEN - 22 * 86 + 95 THEN + 31 * + 51 - + CASE - 77 WHEN + 49 THEN 14 WHEN 59 + 93 * - 58 THEN NULL ELSE - 13 END * 18 ELSE 19 END + - 27
----
-8

query I rowsort
SELECT - COALESCE ( + 76, 92 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT - SUM( DISTINCT - ( 34 ) ) * + 13 + + CASE SUM( DISTINCT 53 ) + 2 WHEN - 1 THEN NULL ELSE - 73 * - CASE MAX( ALL - 60 ) * - 91 WHEN + 49 / - 72 THEN + 12 * 96 ELSE NULL END END * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT - SUM ( DISTINCT - ( 34 ) ) * + 13 + + CASE SUM ( DISTINCT 53 ) + 2 WHEN - 1 THEN NULL ELSE - 73 * - CASE MAX ( ALL - 60 ) * - 91 WHEN + 49 / - 72 THEN + 12 * 96 ELSE NULL END END * - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4345
SELECT DISTINCT - COUNT( * ) + - 91 col0, 13
----
-92
13

skipif mysql # not compatible
query II rowsort label-4345
SELECT DISTINCT - COUNT ( * ) + - 91 col0, 13
----
-92
13

query I rowsort
SELECT ALL - - ( 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4347
SELECT ALL - + COUNT( ALL + 46 ), - 91 * COUNT( ALL + 15 ) AS col0
----
-1
-91

skipif mysql # not compatible
query II rowsort label-4347
SELECT ALL - + COUNT ( ALL + 46 ), - 91 * COUNT ( ALL + 15 ) AS col0
----
-1
-91

query I rowsort
SELECT + 34 * + 53 + + + 90 - 73 * 60 AS col2
----
-2488

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT COUNT( * ) + + 83 * + SUM( - + 1 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT COUNT ( * ) + + 83 * + SUM ( - + 1 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT + MAX( ALL + + 57 ) + - 32 + + 91 + 1 / 42 * CASE COUNT( * ) - MAX( ALL 77 ) WHEN 1 THEN COUNT( * ) * - 45 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + MAX ( ALL + + 57 ) + - 32 + + 91 + 1 / 42 * CASE COUNT ( * ) - MAX ( ALL 77 ) WHEN 1 THEN COUNT ( * ) * - 45 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4351
SELECT ALL COUNT( * ) DIV - ( + CAST( - NULLIF ( 13, COUNT( * ) ) AS SIGNED ) ) - CASE WHEN NOT NULL IS NOT NULL THEN 53 ELSE NULL END AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL COUNT ( * ) / - ( + CAST ( - NULLIF ( 13, COUNT ( * ) ) AS INTEGER ) ) - CASE WHEN NOT NULL IS NOT NULL THEN 53 ELSE NULL END AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT - 14 + + ( - + 26 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT - 14 + + ( - + 26 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 77 - - - 73
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT CASE 80 WHEN - COALESCE ( + - 66, 4 * - 89 ) * 36 + ( + 39 ) * 61 THEN NULL WHEN 73 THEN NULL ELSE + SUM( + 46 ) * + 90 END * 4 AS col2
----
16560

skipif mysql # not compatible
query I rowsort label-4354
SELECT CASE 80 WHEN - COALESCE ( + - 66, 4 * - 89 ) * 36 + ( + 39 ) * 61 THEN NULL WHEN 73 THEN NULL ELSE + SUM ( + 46 ) * + 90 END * 4 AS col2
----
16560

query I rowsort
SELECT + 64 + ( + 50 ) AS col2
----
114

query I rowsort
SELECT 58 + + 18 AS col0
----
76

query I rowsort
SELECT ALL 69 - - 80
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT 42 + + 40 + 65 DIV 92
----
82

skipif mysql # not compatible
query I rowsort label-4358
SELECT 42 + + 40 + 65 / 92
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT 77 - - CAST( + - 50 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-4359
SELECT 77 - - CAST ( + - 50 AS INTEGER )
----
27

query I rowsort
SELECT DISTINCT + 44 * - 75 AS col0
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ( - - ( + - 55 ) ) * - + COUNT( + ( CASE 10 WHEN 15 * - 68 THEN - 49 * 53 + 56 WHEN 30 THEN + ( 88 ) * 44 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT ( - - ( + - 55 ) ) * - + COUNT ( + ( CASE 10 WHEN 15 * - 68 THEN - 49 * 53 + 56 WHEN 30 THEN + ( 88 ) * 44 END ) )
----
0

query I rowsort
SELECT ALL 61 + + 42 * 63 * ( - 39 ) * + 17
----
-1754237

query I rowsort
SELECT ALL - 27 + + 15 * - 15 AS col2
----
-252

query I rowsort
SELECT ALL + 73 + + 43 - + - 94 AS col1
----
210

query I rowsort
SELECT 64 + - - 52
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT 67 * + SUM( ALL + 51 )
----
3417

skipif mysql # not compatible
query I rowsort label-4366
SELECT 67 * + SUM ( ALL + 51 )
----
3417

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT 9 DIV + 13
----
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT 9 / + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL MAX( ALL 65 ) + - 26 * 75 AS col2
----
-1885

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL MAX ( ALL 65 ) + - 26 * 75 AS col2
----
-1885

query I rowsort
SELECT ALL COALESCE ( + 37, - 84 ) + + 90 + 26
----
153

query I rowsort
SELECT DISTINCT + + ( - 62 ) + 30 AS col0
----
-32

query I rowsort
SELECT ALL 49 * 37
----
1813

query II rowsort
SELECT 86 + - 95 - - 77 AS col0, 99 AS col0
----
68
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT CAST( NULL AS SIGNED ) / + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT CAST ( NULL AS INTEGER ) / + - 98
----
NULL

query I rowsort
SELECT 78 * ( - - 2 ) + - 64
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT ALL 20 - - + 58 DIV - - 84 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL 20 - - + 58 / - - 84 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - COUNT( ALL + CASE - 30 WHEN 84 THEN + 33 * - 92 ELSE - 72 END ) - + 97 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4376
SELECT - COUNT ( ALL + CASE - 30 WHEN 84 THEN + 33 * - 92 ELSE - 72 END ) - + 97 AS col1
----
-98

query II rowsort
SELECT 42 AS col2, - 62
----
42
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4378
SELECT + NULLIF ( - 76, - 70 ) * - CASE - - CAST( NULL AS SIGNED ) WHEN + 43 THEN 31 WHEN + 4 THEN - COUNT( * ) ELSE + 83 END * + 70 + - COUNT( ALL 99 + - 98 ) * 25 AS col0
----
441535

skipif mysql # not compatible
query I rowsort label-4378
SELECT + NULLIF ( - 76, - 70 ) * - CASE - - CAST ( NULL AS INTEGER ) WHEN + 43 THEN 31 WHEN + 4 THEN - COUNT ( * ) ELSE + 83 END * + 70 + - COUNT ( ALL 99 + - 98 ) * 25 AS col0
----
441535

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT DISTINCT - MAX( - 4 ) - + 54 col2, 9 * + 52 * SUM( ALL 28 * 72 ) + + COUNT( * ) AS col0
----
-50
943489

skipif mysql # not compatible
query II rowsort label-4379
SELECT DISTINCT - MAX ( - 4 ) - + 54 col2, 9 * + 52 * SUM ( ALL 28 * 72 ) + + COUNT ( * ) AS col0
----
-50
943489

query I rowsort
SELECT + 82 + 91 * + 36 - + 52 AS col2
----
3306

query I rowsort
SELECT ALL + CASE + - 7 WHEN 91 / + - 29 - - - 1 THEN NULL ELSE 37 END AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ( - + MIN( - + 38 ) ) * COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4382
SELECT ( - + MIN ( - + 38 ) ) * COUNT ( * ) AS col1
----
38

query I rowsort
SELECT 9 * + 48 + - + 74
----
358

query I rowsort
SELECT CASE - 39 WHEN + - 98 THEN NULL WHEN - 86 * + 13 THEN 15 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 26 + 51 + 17 * 81 * + + 25
----
34502

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL - 49 * - COUNT( * ) * - 76
----
-3724

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL - 49 * - COUNT ( * ) * - 76
----
-3724

query I rowsort
SELECT DISTINCT - - 37 * + - 16 + + 25 + - 87 AS col0
----
-654

query I rowsort
SELECT DISTINCT 98 * 70
----
6860

query I rowsort
SELECT 62 * - 49 col0
----
-3038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4390
SELECT 68 + + + CAST( - + MIN( 13 ) AS SIGNED ) + - 32 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4390
SELECT 68 + + + CAST ( - + MIN ( 13 ) AS INTEGER ) + - 32 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT ALL - 30 * + CAST( NULL AS SIGNED ) * + + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - 30 * + CAST ( NULL AS INTEGER ) * + + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - MIN( ALL - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-4392
SELECT - MIN ( ALL - 9 )
----
9

query I rowsort
SELECT 77 + - - 41 col1
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT 51 DIV + 95 * + - ( - 70 ) DIV + COALESCE ( - - 45, - 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT 51 / + 95 * + - ( - 70 ) / + COALESCE ( - - 45, - 59 ) AS col0
----
0

query I rowsort
SELECT 87 + + - 93
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL MAX( + - 92 ) * ( + 2 ) * + 12 + + NULLIF ( + 48, + 95 ) * - COUNT( * ) AS col2
----
-2256

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL MAX ( + - 92 ) * ( + 2 ) * + 12 + + NULLIF ( + 48, + 95 ) * - COUNT ( * ) AS col2
----
-2256

query I rowsort
SELECT ALL + 40 + 47 AS col0
----
87

query I rowsort
SELECT DISTINCT - 86 + 97 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL MAX( ALL - + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL MAX ( ALL - + 0 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT DISTINCT - 59 + - 64 * + + 17 + - COUNT( DISTINCT + - 49 ) + - 48 + - CAST( + 19 AS SIGNED ) * - 18 AS col0
----
-854

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - 59 + - 64 * + + 17 + - COUNT ( DISTINCT + - 49 ) + - 48 + - CAST ( + 19 AS INTEGER ) * - 18 AS col0
----
-854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4401
SELECT ALL + 68 + + 10 * + - COUNT( * ) DIV 83 * - 44 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL + 68 + + 10 * + - COUNT ( * ) / 83 * - 44 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT COALESCE ( - 20, - + COUNT( * ) - 15 + 96 )
----
-20

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT COALESCE ( - 20, - + COUNT ( * ) - 15 + 96 )
----
-20

query I rowsort
SELECT - 20 * - 18
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL - 41 + + COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - 41 + + COUNT ( * ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4405
SELECT - 32 - COUNT( * ) AS col2, 54
----
-33
54

skipif mysql # not compatible
query II rowsort label-4405
SELECT - 32 - COUNT ( * ) AS col2, 54
----
-33
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + 65 * + COALESCE ( - MIN( ALL + + 98 ), + COALESCE ( + 27, - 16 + - 16, + 24 * 85 ) + 53 ) + 34 AS col0
----
-6336

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 65 * + COALESCE ( - MIN ( ALL + + 98 ), + COALESCE ( + 27, - 16 + - 16, + 24 * 85 ) + 53 ) + 34 AS col0
----
-6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4407
SELECT COALESCE ( COALESCE ( CAST( AVG ( - 57 ) AS SIGNED ), + 25, - 82 ), + 11, COUNT( * ) - ( + 6 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4407
SELECT COALESCE ( COALESCE ( CAST ( AVG ( - 57 ) AS INTEGER ), + 25, - 82 ), + 11, COUNT ( * ) - ( + 6 ) ) AS col1
----
-57

query I rowsort
SELECT + 90 * 2 * - ( + 36 ) AS col2
----
-6480

onlyif mysql # aggregate syntax: 
query II rowsort label-4409
SELECT + 20 AS col0, + COUNT( * )
----
20
1

skipif mysql # not compatible
query II rowsort label-4409
SELECT + 20 AS col0, + COUNT ( * )
----
20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT CASE - + 30 WHEN + 61 THEN NULL WHEN CASE + 30 WHEN + 9 * + 43 THEN NULL WHEN 93 THEN NULL ELSE 95 * 39 + - 94 END THEN NULL ELSE COUNT( ALL 1 ) * 21 END AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4410
SELECT CASE - + 30 WHEN + 61 THEN NULL WHEN CASE + 30 WHEN + 9 * + 43 THEN NULL WHEN 93 THEN NULL ELSE 95 * 39 + - 94 END THEN NULL ELSE COUNT ( ALL 1 ) * 21 END AS col2
----
21

query I rowsort
SELECT DISTINCT - 96 * - 22 AS col1
----
2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4412
SELECT + 14 DIV COUNT( * ) - 85 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4412
SELECT + 14 / COUNT ( * ) - 85 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT ALL 38 * - + COUNT( * ) + - COUNT( ALL - - COALESCE ( - 54, - + 83, 27 * + 53 ) ) DIV - 71 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 38 * - + COUNT ( * ) + - COUNT ( ALL - - COALESCE ( - 54, - + 83, 27 * + 53 ) ) / - 71 AS col1
----
-38

query I rowsort
SELECT - ( - + ( 11 ) ) - - 79 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL - COUNT( ALL - + 97 ) * - + 81 * - 41 AS col2
----
-3321

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - COUNT ( ALL - + 97 ) * - + 81 * - 41 AS col2
----
-3321

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT SUM( - + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4416
SELECT SUM ( - + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - - COUNT( * ) + + 91 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4417
SELECT - - COUNT ( * ) + + 91 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - 43 * + 54 - + 90 * + - COUNT( * ) * + 61
----
3168

skipif mysql # not compatible
query I rowsort label-4418
SELECT - 43 * + 54 - + 90 * + - COUNT ( * ) * + 61
----
3168

query II rowsort
SELECT 1 AS col0, 69 AS col0
----
1
69

query II rowsort
SELECT + 2 AS col0, 0
----
2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + - ( + COUNT( * ) ) - + - 61
----
60

skipif mysql # not compatible
query I rowsort label-4421
SELECT + - ( + COUNT ( * ) ) - + - 61
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - COUNT( * ) * - + ( + + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4422
SELECT - COUNT ( * ) * - + ( + + 6 )
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4423
SELECT + 80 * - - CAST( NULL AS DECIMAL ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT + 80 * - - CAST ( NULL AS REAL ) * - 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4424
SELECT ALL COUNT( * ) DIV 11 * + + ( 32 )
----
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL COUNT ( * ) / 11 * + + ( 32 )
----
0

query I rowsort
SELECT ALL + - ( + 57 ) AS col1
----
-57

query II rowsort
SELECT + 24 * + 80, - 15 col2
----
1920
-15

query II rowsort
SELECT ALL + 62 AS col0, - 95 * + - 59 AS col1
----
62
5605

query II rowsort
SELECT + 37 + - + 88 AS col1, 10 + + - ( - 57 )
----
-51
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL COUNT( - - 48 ) * - - 88 - - COUNT( + 71 ) col1
----
89

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL COUNT ( - - 48 ) * - - 88 - - COUNT ( + 71 ) col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL + 83 * + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + 83 * + COUNT ( * )
----
83

query I rowsort
SELECT + - 14 * + - 9 AS col0
----
126

query II rowsort
SELECT 56 AS col1, - 43
----
56
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT - COUNT( ALL + + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-4433
SELECT - COUNT ( ALL + + 35 )
----
-1

query I rowsort
SELECT - - 75 * + 85 + - 79
----
6296

onlyif mysql # aggregate syntax: 
query II rowsort label-4435
SELECT - ( + 42 ), COUNT( ALL 86 ) AS col0
----
-42
1

skipif mysql # not compatible
query II rowsort label-4435
SELECT - ( + 42 ), COUNT ( ALL 86 ) AS col0
----
-42
1

query II rowsort
SELECT + 98 + + 43 AS col0, - 84 * + 72 + + 19
----
141
-6029

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + 4 * - 44 * SUM( - - 38 )
----
-6688

skipif mysql # not compatible
query I rowsort label-4437
SELECT + 4 * - 44 * SUM ( - - 38 )
----
-6688

query I rowsort
SELECT ALL 86 + CASE - 10 WHEN - ( 40 ) + + - 28 - + 13 * - 0 THEN - 7 / + 72 WHEN ( ( 29 ) ) THEN NULL ELSE NULL END + 82 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4439
SELECT + CASE - 83 WHEN 30 THEN NULL WHEN - 14 / + NULLIF ( - + MIN( DISTINCT + - 80 ), CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) THEN - 15 + CAST( NULL AS SIGNED ) END - - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT + CASE - 83 WHEN 30 THEN NULL WHEN - 14 / + NULLIF ( - + MIN ( DISTINCT + - 80 ), CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) THEN - 15 + CAST ( NULL AS INTEGER ) END - - 79 AS col2
----
NULL

query I rowsort
SELECT - ( + ( NULLIF ( 86, - - 28 ) ) )
----
-86

query I rowsort
SELECT + 68 + + + 65 + - - 92 * - - 41 + + 44 * 5
----
4125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4442
SELECT + CAST( NULL AS SIGNED ) + - - 48 + + CASE + - 97 WHEN - + 87 THEN + - 95 ELSE NULL END - - COUNT( * ) * - 89 * 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT + CAST ( NULL AS INTEGER ) + - - 48 + + CASE + - 97 WHEN - + 87 THEN + - 95 ELSE NULL END - - COUNT ( * ) * - 89 * 1 AS col2
----
NULL

query I rowsort
SELECT ALL 50 + + 66 * 98
----
6518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT - CAST( + 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-4444
SELECT - CAST ( + 53 AS INTEGER )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4445
SELECT DISTINCT - COUNT( * ) + - 75 col2, 34 AS col2
----
-76
34

skipif mysql # not compatible
query II rowsort label-4445
SELECT DISTINCT - COUNT ( * ) + - 75 col2, 34 AS col2
----
-76
34

query I rowsort
SELECT ALL 44 * 79 AS col2
----
3476

query I rowsort
SELECT + 8 + + 9
----
17

query I rowsort
SELECT - 14 - - - 2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4449
SELECT - ( - - 24 ) AS col1, + ( + + COUNT( * ) )
----
-24
1

skipif mysql # not compatible
query II rowsort label-4449
SELECT - ( - - 24 ) AS col1, + ( + + COUNT ( * ) )
----
-24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + NULLIF ( + - 21, - 11 + + + 49 ) * - 15 + + + SUM( - 63 )
----
252

skipif mysql # not compatible
query I rowsort label-4450
SELECT + NULLIF ( + - 21, - 11 + + + 49 ) * - 15 + + + SUM ( - 63 )
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - COUNT( * ) - + 12 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - COUNT ( * ) - + 12 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - 78 + + 4 - - MIN( ALL + - 96 ) AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 78 + + 4 - - MIN ( ALL + - 96 ) AS col2
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT DISTINCT 43 * - ( - + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT 43 * - ( - + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT - 47 DIV + 68 + - 45 - 96 + - 59 * 93
----
-5628

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 47 / + 68 + - 45 - 96 + - 59 * 93
----
-5628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4455
SELECT ALL + COALESCE ( - 56, - COUNT( * ) ) DIV 8 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL + COALESCE ( - 56, - COUNT ( * ) ) / 8 AS col1
----
-7

query I rowsort
SELECT - + 36 + + + 3 AS col1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4457
SELECT ALL 95 DIV + 54 - + 54
----
-53

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL 95 / + 54 - + 54
----
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4458
SELECT + + 50 DIV - 26 + + CAST( ( 27 ) AS SIGNED ) + 59 + - 31 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4458
SELECT + + 50 / - 26 + + CAST ( ( 27 ) AS INTEGER ) + 59 + - 31 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT 70 * 89 * - 51 + + - MAX( DISTINCT 62 ) AS col1, - 95
----
-317792
-95

skipif mysql # not compatible
query II rowsort label-4459
SELECT 70 * 89 * - 51 + + - MAX ( DISTINCT 62 ) AS col1, - 95
----
-317792
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL - 15 * COUNT( + + 80 )
----
-15

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL - 15 * COUNT ( + + 80 )
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4461
SELECT - + 93 + - + 79 * + 85 - 25 - - 9 - CAST( NULL AS DECIMAL ) / + 90 * 43 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT - + 93 + - + 79 * + 85 - 25 - - 9 - CAST ( NULL AS REAL ) / + 90 * 43 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT 18 * + ( - 23 ) * + - 22 + - CAST( - 14 AS SIGNED )
----
9122

skipif mysql # not compatible
query I rowsort label-4462
SELECT 18 * + ( - 23 ) * + - 22 + - CAST ( - 14 AS INTEGER )
----
9122

query II rowsort
SELECT - 83 * - 15 * + 24 AS col0, - ( - 37 ) * + 45 + - 46 + 73
----
29880
1692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4464
SELECT ALL + - COALESCE ( + + COUNT( * ), + - 62 DIV - NULLIF ( + ( + 49 ), 50 + 58 ) + ( + 62 + 8 ) - + MAX( DISTINCT 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + - COALESCE ( + + COUNT ( * ), + - 62 / - NULLIF ( + ( + 49 ), 50 + 58 ) + ( + 62 + 8 ) - + MAX ( DISTINCT 2 ) )
----
-1

query I rowsort
SELECT + ( - ( - - 25 ) ) + 16
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT - 10 DIV - MAX( ALL + 97 ) * + - 70
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT - 10 / - MAX ( ALL + 97 ) * + - 70
----
0

query III rowsort
SELECT + 80 + + + 83 AS col1, 45, + 54 AS col1
----
163
45
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT ALL + 99 * + - CAST( COALESCE ( + COALESCE ( - - COUNT( * ), + 23 * - - 65 + 42 - - COUNT( * ), 45 + 81 / - 45 ), 31 * + 67 - 74 ) AS SIGNED ) * + 82 + 22
----
-8096

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL + 99 * + - CAST ( COALESCE ( + COALESCE ( - - COUNT ( * ), + 23 * - - 65 + 42 - - COUNT ( * ), 45 + 81 / - 45 ), 31 * + 67 - 74 ) AS INTEGER ) * + 82 + 22
----
-8096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - 67 * - + COUNT( * ) + - 30 - 68 * CAST( + 6 AS SIGNED ) * 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - 67 * - + COUNT ( * ) + - 30 - 68 * CAST ( + 6 AS INTEGER ) * 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT COALESCE ( + COUNT( * ), 17 * + COUNT( * ) * + 0 ) * 89 * 78 * + MIN( 29 ) + 11
----
201329

skipif mysql # not compatible
query I rowsort label-4470
SELECT COALESCE ( + COUNT ( * ), 17 * + COUNT ( * ) * + 0 ) * 89 * 78 * + MIN ( 29 ) + 11
----
201329

query I rowsort
SELECT 77 * 71 * 66 AS col0
----
360822

query I rowsort
SELECT ALL - 40 + 6 AS col1
----
-34

query II rowsort
SELECT DISTINCT 44 col1, - 26 AS col0
----
44
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT MAX( - 59 ) DIV + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-4474
SELECT MAX ( - 59 ) / + COUNT ( * )
----
-59

query I rowsort
SELECT ALL 44 * - 45
----
-1980

query II rowsort
SELECT - 4 AS col0, 49 * 0 + + + 54 AS col0
----
-4
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL 96 - + 77 - - COUNT( * ) * 52 + 38
----
109

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 96 - + 77 - - COUNT ( * ) * 52 + 38
----
109

query II rowsort
SELECT ALL + 51 * - + 57 * 78 AS col2, ( + 89 ) * + 39 * - 46 AS col1
----
-226746
-159666

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ( + 69 ) * + + ( + COUNT( * ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4479
SELECT ( + 69 ) * + + ( + COUNT ( * ) ) AS col0
----
69

query I rowsort
SELECT - 72 * + - 66 + - ( + 27 )
----
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT - 77 * NULLIF ( + - MIN( DISTINCT - + 93 ), + 3 )
----
-7161

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT - 77 * NULLIF ( + - MIN ( DISTINCT - + 93 ), + 3 )
----
-7161

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT + - COUNT( * ) AS col2, - 70 AS col1
----
-1
-70

skipif mysql # not compatible
query II rowsort label-4482
SELECT + - COUNT ( * ) AS col2, - 70 AS col1
----
-1
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT - + 74 / COUNT( * ) - COALESCE ( + 25, - - 36 ) - + 2 + - CASE + 95 WHEN + 29 / 99 + 57 THEN + 21 * COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT - + 74 / COUNT ( * ) - COALESCE ( + 25, - - 36 ) - + 2 + - CASE + 95 WHEN + 29 / 99 + 57 THEN + 21 * COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT DISTINCT 66 * - AVG ( ALL - 79 ) * - 6 / - 30 + + 62 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT 66 * - AVG ( ALL - 79 ) * - 6 / - 30 + + 62 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 71 * 41
----
2911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL - CAST( + 22 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL - CAST ( + 22 AS INTEGER ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT 32 * + COUNT( DISTINCT - 26 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4487
SELECT 32 * + COUNT ( DISTINCT - 26 ) AS col1
----
32

query I rowsort
SELECT 81 + - 15 col0
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4489
SELECT 12 * + - 20 / + + CAST( NULL AS DECIMAL ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT 12 * + - 20 / + + CAST ( NULL AS REAL ) + - 86
----
NULL

query I rowsort
SELECT 71 - + + 45
----
26

query I rowsort
SELECT ALL - - 63 + - - 27 * - 1 - + 31
----
5

query I rowsort
SELECT ALL + + 0 * 34
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT DISTINCT + 99 * + COUNT( * ), COUNT( * ) AS col1
----
99
1

skipif mysql # not compatible
query II rowsort label-4493
SELECT DISTINCT + 99 * + COUNT ( * ), COUNT ( * ) AS col1
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL - 72 + - MAX( - 13 )
----
-59

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL - 72 + - MAX ( - 13 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL SUM( - 88 ) + - 27 AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL SUM ( - 88 ) + - 27 AS col2
----
-115

query I rowsort
SELECT DISTINCT + 0 * + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT 57 + - SUM( DISTINCT - 44 )
----
101

skipif mysql # not compatible
query I rowsort label-4497
SELECT 57 + - SUM ( DISTINCT - 44 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT CASE COUNT( * ) WHEN - MIN( 20 ) THEN - + NULLIF ( - - 65, - 38 ) WHEN - 20 THEN 78 * 18 + - 17 END * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT CASE COUNT ( * ) WHEN - MIN ( 20 ) THEN - + NULLIF ( - - 65, - 38 ) WHEN - 20 THEN 78 * 18 + - 17 END * - 77
----
NULL

query I rowsort
SELECT + 47 * - COALESCE ( - + 62, - 29 * 32 ) + 38 AS col0
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL + COALESCE ( - ( - 85 ), 12, + COUNT( * ) ) - 1 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL + COALESCE ( - ( - 85 ), 12, + COUNT ( * ) ) - 1 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT 83 - + - MAX( ALL + 76 )
----
159

skipif mysql # not compatible
query I rowsort label-4501
SELECT 83 - + - MAX ( ALL + 76 )
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4502
SELECT 86 * - 28 * COALESCE ( - 89, - + 32 * 7 + + + 75 * + 99 + + - COUNT( * ) + CAST( + 46 + + 56 DIV - 66 AS SIGNED ) DIV 53 - - 98 )
----
214312

skipif mysql # not compatible
query I rowsort label-4502
SELECT 86 * - 28 * COALESCE ( - 89, - + 32 * 7 + + + 75 * + 99 + + - COUNT ( * ) + CAST ( + 46 + + 56 / - 66 AS INTEGER ) / 53 - - 98 )
----
214312

query I rowsort
SELECT 92 + - - 21
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT 90 * MAX( ALL + + 92 ) AS col2
----
8280

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT 90 * MAX ( ALL + + 92 ) AS col2
----
8280

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT - 64 DIV - NULLIF ( - + 44, - 30 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - 64 / - NULLIF ( - + 44, - 30 ) AS col1
----
-1

query I rowsort
SELECT 11 + 9 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT 92 + - 46 + + 23 * ( + 59 ) * + SUM( + 7 ) + + 8 * - - 34 + 12
----
9829

skipif mysql # not compatible
query I rowsort label-4507
SELECT 92 + - 46 + + 23 * ( + 59 ) * + SUM ( + 7 ) + + 8 * - - 34 + 12
----
9829

query I rowsort
SELECT - 40 + + 46 + - - 22 * + 65 AS col2
----
1436

query II rowsort
SELECT 45 + ( 98 ) + + 52 * - 85, 95 * + 27 - 35 AS col1
----
-4277
2530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT + CAST( NULL AS SIGNED ) + + 8 + + - 90 * - 61 - - + 9 * + + SUM( + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT + CAST ( NULL AS INTEGER ) + + 8 + + - 90 * - 61 - - + 9 * + + SUM ( + 42 )
----
NULL

query II rowsort
SELECT ALL - 79 + - 70, 20 AS col0
----
-149
20

query III rowsort
SELECT COALESCE ( - + 12, + 54 ) + 17 AS col1, + 69 AS col0, - + 28 * + NULLIF ( - 65, 1 ) + + 73 * - 64 - + 88 * 51 AS col2
----
5
69
-7340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT ALL 53 * + + 33 + - 1 + + + 10 + - CAST( NULL AS SIGNED ) / + COUNT( - COALESCE ( + 95, 98 ) ) + - 70 * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL 53 * + + 33 + - 1 + + + 10 + - CAST ( NULL AS INTEGER ) / + COUNT ( - COALESCE ( + 95, 98 ) ) + - 70 * 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT - + COUNT( * ) DIV + 6 * COUNT( * ) + - - 17 + - 19 - - - 7 + + 9 * - 42 + + 99 + - 45 AS col2
----
-333

skipif mysql # not compatible
query I rowsort label-4514
SELECT - + COUNT ( * ) / + 6 * COUNT ( * ) + - - 17 + - 19 - - - 7 + + 9 * - 42 + + 99 + - 45 AS col2
----
-333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4515
SELECT - 99 * - 32 * + + COUNT( * ) * - - CASE - + 71 WHEN - - COUNT( + - CAST( NULL AS SIGNED ) ) THEN CAST( 56 AS SIGNED ) WHEN 6 * MIN( - COALESCE ( 88, - CAST( NULL AS SIGNED ) ) ) THEN NULL ELSE 52 END AS col0
----
164736

skipif mysql # not compatible
query I rowsort label-4515
SELECT - 99 * - 32 * + + COUNT ( * ) * - - CASE - + 71 WHEN - - COUNT ( + - CAST ( NULL AS INTEGER ) ) THEN CAST ( 56 AS INTEGER ) WHEN 6 * MIN ( - COALESCE ( 88, - CAST ( NULL AS INTEGER ) ) ) THEN NULL ELSE 52 END AS col0
----
164736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT DISTINCT - CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT ALL - + 28 * 56 + - - ( 86 ) + 77 + - 53 DIV - + 62
----
-1405

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - + 28 * 56 + - - ( 86 ) + 77 + - 53 / - + 62
----
-1405

query I rowsort
SELECT 34 + 85 * + - 69 + + 15 AS col2
----
-5816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4519
SELECT + 28 * ( + 59 ) DIV - + 81 + + 51 AS col2, + 96 * ( 83 ) * - MIN( DISTINCT - 3 )
----
31
23904

skipif mysql # not compatible
query II rowsort label-4519
SELECT + 28 * ( + 59 ) / - + 81 + + 51 AS col2, + 96 * ( 83 ) * - MIN ( DISTINCT - 3 )
----
31
23904

query I rowsort
SELECT ( 53 ) * 52 * - - 29 AS col1
----
79924

query II rowsort
SELECT ALL 61 * - + 44 + - ( 12 ), 88 * - 95 AS col0
----
-2696
-8360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4522
SELECT DISTINCT - - 43 * + COUNT( * ) * + 32 * + CAST( - 99 AS SIGNED ) * - ( 8 ) + - COUNT( * ) + + + 9 + + 18 AS col2
----
1089818

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - - 43 * + COUNT ( * ) * + 32 * + CAST ( - 99 AS INTEGER ) * - ( 8 ) + - COUNT ( * ) + + + 9 + + 18 AS col2
----
1089818

query II rowsort
SELECT + 15 + + 71 AS col1, ( + 3 ) + 10
----
86
13

query I rowsort
SELECT ALL 33 * - - 58
----
1914

query I rowsort
SELECT ALL - 40 - + + 64
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4526
SELECT ALL + ( + + CASE 51 WHEN + 60 + - - NULLIF ( 96, + 14 ) + 66 + CAST( NULL AS SIGNED ) THEN - 90 / + COUNT( * ) WHEN 29 * 97 + 85 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + ( + + CASE 51 WHEN + 60 + - - NULLIF ( 96, + 14 ) + 66 + CAST ( NULL AS INTEGER ) THEN - 90 / + COUNT ( * ) WHEN 29 * 97 + 85 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT - 15 + - - 16 DIV + 83
----
-15

skipif mysql # not compatible
query I rowsort label-4527
SELECT - 15 + - - 16 / + 83
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4529
SELECT 8, 77 * + 72 + - CAST( NULL AS SIGNED ) AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4529
SELECT 8, 77 * + 72 + - CAST ( NULL AS INTEGER ) AS col2
----
8
NULL

query I rowsort
SELECT - 38 * ( - 79 ) AS col1
----
3002

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL MIN( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL MIN ( 48 )
----
48

query I rowsort
SELECT + 2 * - 24
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4533
SELECT 11 AS col1, CASE + 18 WHEN - 9 THEN - 86 * + 67 * + ( + ( - COUNT( * ) ) ) ELSE - + 82 * ( + 16 ) END + CAST( NULL AS SIGNED ) AS col2
----
11
NULL

skipif mysql # not compatible
query II rowsort label-4533
SELECT 11 AS col1, CASE + 18 WHEN - 9 THEN - 86 * + 67 * + ( + ( - COUNT ( * ) ) ) ELSE - + 82 * ( + 16 ) END + CAST ( NULL AS INTEGER ) AS col2
----
11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - 1 + - 90 + + 15 - - COALESCE ( + COALESCE ( + 33, 35 ), - 74, - CASE - ( - 28 ) WHEN MIN( ALL 77 ) * COUNT( * ) THEN NULL WHEN 30 THEN 24 ELSE NULL END * + 51 ) - 86 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-4534
SELECT - 1 + - 90 + + 15 - - COALESCE ( + COALESCE ( + 33, 35 ), - 74, - CASE - ( - 28 ) WHEN MIN ( ALL 77 ) * COUNT ( * ) THEN NULL WHEN 30 THEN 24 ELSE NULL END * + 51 ) - 86 AS col0
----
-129

query I rowsort
SELECT ALL CASE + 21 WHEN 92 * - 25 - 57 / - + 12 THEN NULL WHEN - + 47 THEN 60 ELSE + - 40 END AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT - 72 * + MIN( - ( + - 95 ) ) * - - 32
----
-218880

skipif mysql # not compatible
query I rowsort label-4536
SELECT - 72 * + MIN ( - ( + - 95 ) ) * - - 32
----
-218880

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + - 83 * + SUM( DISTINCT - 98 ) AS col2
----
8134

skipif mysql # not compatible
query I rowsort label-4537
SELECT + - 83 * + SUM ( DISTINCT - 98 ) AS col2
----
8134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4538
SELECT DISTINCT - - CASE + - ( - NULLIF ( + NULLIF ( + CASE - 22 WHEN 54 THEN NULL ELSE 83 END, - - CASE + 95 WHEN - 53 THEN NULL WHEN 76 * + CAST( NULL AS SIGNED ) + - NULLIF ( 60, COUNT( * ) DIV - 83 - + COUNT( * ) ) THEN - 50 DIV 13 - COALESCE ( 74, - COALESCE ( 87, - COUNT( * ) * COALESCE ( - 87, + 47 ) ) ) WHEN + CAST( 29 AS SIGNED ) * 68 THEN 13 ELSE NULL END + 70 ), 77 * COUNT( * ) ) ) WHEN 96 THEN NULL WHEN - 72 THEN ( + COUNT( * ) ) * 47 - 41 WHEN + COUNT( * ) + 9 THEN 98 ELSE 18 END DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - - CASE + - ( - NULLIF ( + NULLIF ( + CASE - 22 WHEN 54 THEN NULL ELSE 83 END, - - CASE + 95 WHEN - 53 THEN NULL WHEN 76 * + CAST ( NULL AS INTEGER ) + - NULLIF ( 60, COUNT ( * ) / - 83 - + COUNT ( * ) ) THEN - 50 / 13 - COALESCE ( 74, - COALESCE ( 87, - COUNT ( * ) * COALESCE ( - 87, + 47 ) ) ) WHEN + CAST ( 29 AS INTEGER ) * 68 THEN 13 ELSE NULL END + 70 ), 77 * COUNT ( * ) ) ) WHEN 96 THEN NULL WHEN - 72 THEN ( + COUNT ( * ) ) * 47 - 41 WHEN + COUNT ( * ) + 9 THEN 98 ELSE 18 END / 67
----
0

query I rowsort
SELECT - - 93 col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL NULLIF ( - + COUNT( * ), + 44 * + + ( - 52 ) ) + 74 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL NULLIF ( - + COUNT ( * ), + 44 * + + ( - 52 ) ) + 74 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT - 74 * - ( + - 61 ) * - COUNT( * ) AS col0
----
4514

skipif mysql # not compatible
query I rowsort label-4541
SELECT - 74 * - ( + - 61 ) * - COUNT ( * ) AS col0
----
4514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4542
SELECT ALL - + 96 + + COUNT( ALL - 91 ) - - - COALESCE ( + COALESCE ( - 33, - 65, - - 88, - 90 * - 23 * 54 - 96 * CAST( + 79 * + 34 AS SIGNED ) ), - ( + 77 ) DIV 60 )
----
-62

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - + 96 + + COUNT ( ALL - 91 ) - - - COALESCE ( + COALESCE ( - 33, - 65, - - 88, - 90 * - 23 * 54 - 96 * CAST ( + 79 * + 34 AS INTEGER ) ), - ( + 77 ) / 60 )
----
-62

query I rowsort
SELECT ALL - 36 + + 45 AS col1
----
9

query I rowsort
SELECT - ( + - 2 ) AS col0
----
2

query I rowsort
SELECT ALL - + COALESCE ( + + 34, + 30 ) + 30
----
-4

query I rowsort
SELECT - + 61 + + + 48 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT + + 56 * 33 + - COUNT( * ) - + + 87
----
1760

skipif mysql # not compatible
query I rowsort label-4547
SELECT + + 56 * 33 + - COUNT ( * ) - + + 87
----
1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT MAX( 92 ) * - 48 + - 44 * + ( - 49 ) + - COUNT( * ) + + CAST( + - 58 AS SIGNED ) * - 97 col0
----
3365

skipif mysql # not compatible
query I rowsort label-4548
SELECT MAX ( 92 ) * - 48 + - 44 * + ( - 49 ) + - COUNT ( * ) + + CAST ( + - 58 AS INTEGER ) * - 97 col0
----
3365

query I rowsort
SELECT ALL + CASE - NULLIF ( + 53, + 18 * - 5 ) WHEN + 17 * 40 THEN - 88 WHEN 2 THEN 68 ELSE NULL END * 1 AS col2
----
NULL

query II rowsort
SELECT ALL + 28, 38 AS col2
----
28
38

query I rowsort
SELECT + 4 + 7
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT ALL + 72 * 29 + 59 + ( + ( - NULLIF ( + - 18, 93 ) ) ) DIV + - 34 * - SUM( + 78 ) - + 54 * - COUNT( * )
----
2201

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + 72 * 29 + 59 + ( + ( - NULLIF ( + - 18, 93 ) ) ) / + - 34 * - SUM ( + 78 ) - + 54 * - COUNT ( * )
----
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL + MAX( 12 ) * 14 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL + MAX ( 12 ) * 14 AS col2
----
168

query I rowsort
SELECT + 21 * - 10 AS col1
----
-210

onlyif mysql # aggregate syntax: 
query II rowsort label-4555
SELECT + COUNT( * ) AS col2, COUNT( * ) * - 41 AS col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-4555
SELECT + COUNT ( * ) AS col2, COUNT ( * ) * - 41 AS col2
----
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + CASE WHEN NOT + 96 BETWEEN + - 50 / + 39 + - 41 AND - 79 * - - 82 THEN + ( + 76 ) WHEN ( - 73 ) <= NULL THEN ( + COUNT( * ) ) ELSE NULL END + 21 * 68
----
1504

skipif mysql # not compatible
query I rowsort label-4556
SELECT + CASE WHEN NOT + 96 BETWEEN + - 50 / + 39 + - 41 AND - 79 * - - 82 THEN + ( + 76 ) WHEN ( - 73 ) <= NULL THEN ( + COUNT ( * ) ) ELSE NULL END + 21 * 68
----
1504

query I rowsort
SELECT + ( + 19 ) col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT + CAST( - 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-4558
SELECT + CAST ( - 57 AS INTEGER )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT + 74 - - + 75 DIV - 97 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4559
SELECT + 74 - - + 75 / - 97 AS col2
----
74

query II rowsort
SELECT ALL 80 * + 85 AS col2, 67
----
6800
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4561
SELECT + 86 * COALESCE ( - + NULLIF ( 28, + - ( 68 ) + COUNT( * ) ), 78 * 74 * + - MIN( ALL + 19 ) + 95 ) DIV MAX( 88 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4561
SELECT + 86 * COALESCE ( - + NULLIF ( 28, + - ( 68 ) + COUNT ( * ) ), 78 * 74 * + - MIN ( ALL + 19 ) + 95 ) / MAX ( 88 ) AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4562
SELECT + CAST( NULL AS SIGNED ) AS col1, 9 * + 5 DIV - 55
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4562
SELECT + CAST ( NULL AS INTEGER ) AS col1, 9 * + 5 / - 55
----
NULL
0

query I rowsort
SELECT + ( - + 45 ) col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL + SUM( ALL + 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + SUM ( ALL + 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT + ( MAX( - 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4565
SELECT + ( MAX ( - 98 ) ) AS col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4566
SELECT + COUNT( * ) DIV - - ( + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4566
SELECT + COUNT ( * ) / - - ( + - 1 )
----
-1

query I rowsort
SELECT + 55 * + 63 AS col2
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ALL COUNT( * ) * - - 10
----
10

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL COUNT ( * ) * - - 10
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT + COALESCE ( + + ( - 86 ), + ( + 68 ) * + - 75 - - COUNT( * ) ) DIV - 74
----
1

skipif mysql # not compatible
query I rowsort label-4569
SELECT + COALESCE ( + + ( - 86 ), + ( + 68 ) * + - 75 - - COUNT ( * ) ) / - 74
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT - 8 / + + CASE + - 4 WHEN + + 98 - 93 THEN + COUNT( DISTINCT - - 79 ) * ( + + 63 ) WHEN + 58 THEN + 18 * 9 ELSE NULL END * - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT - 8 / + + CASE + - 4 WHEN + + 98 - 93 THEN + COUNT ( DISTINCT - - 79 ) * ( + + 63 ) WHEN + 58 THEN + 18 * 9 ELSE NULL END * - 46 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( + 61, 38 + - - 39 ) + 14
----
75

query I rowsort
SELECT + 96 + - 38
----
58

query I rowsort
SELECT ALL COALESCE ( 70, + 36 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4574
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4574
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT + 89 + 76 AS col1
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL - NULLIF ( - - 96, + CASE - COALESCE ( 70, COUNT( * ) ) WHEN - + 43 * - 60 * - 27 + 4 + 29 THEN CAST( NULL AS SIGNED ) WHEN AVG ( 23 ) + 32 THEN NULLIF ( 8, COUNT( * ) * 46 ) * + 86 - 15 END * + 20 )
----
-96

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - NULLIF ( - - 96, + CASE - COALESCE ( 70, COUNT ( * ) ) WHEN - + 43 * - 60 * - 27 + 4 + 29 THEN CAST ( NULL AS INTEGER ) WHEN AVG ( 23 ) + 32 THEN NULLIF ( 8, COUNT ( * ) * 46 ) * + 86 - 15 END * + 20 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT - - 51 + - COUNT( ALL + - 98 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4577
SELECT - - 51 + - COUNT ( ALL + - 98 ) AS col2
----
50

query I rowsort
SELECT - - COALESCE ( - 73, - 71 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT - COALESCE ( - MAX( - 54 ), - 83 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-4579
SELECT - COALESCE ( - MAX ( - 54 ), - 83 ) col0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT - - 2 + 58 DIV + 76 * - 72 col2
----
2

skipif mysql # not compatible
query I rowsort label-4580
SELECT - - 2 + 58 / + 76 * - 72 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL + 96 + + 16 + - NULLIF ( - 46, COUNT( * ) * 63 * + - MAX( 88 ) ) AS col0
----
158

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + 96 + + 16 + - NULLIF ( - 46, COUNT ( * ) * 63 * + - MAX ( 88 ) ) AS col0
----
158

query I rowsort
SELECT + - 91 + - + 78 * 58
----
-4615

query I rowsort
SELECT - 94 + 43 * - CASE 98 WHEN + + 67 THEN - 17 / - ( + + COALESCE ( + 32, - 67 ) ) END - + 68 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4584
SELECT - + 16 * + CASE + 8 WHEN + 33 - + - CASE - COUNT( * ) WHEN 43 * 94 + - CASE + + 54 WHEN MIN( 69 ) THEN - COUNT( + 95 ) * + 62 END THEN - 18 WHEN - 93 / - 65 THEN + 19 ELSE ( - ( - COUNT( 58 ) ) ) * - CAST( NULL AS DECIMAL ) END + MIN( 81 ) / 46 THEN AVG ( 32 ) WHEN + 14 THEN NULL WHEN ( + 86 ) THEN NULL END - + COALESCE ( + 74, - 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT - + 16 * + CASE + 8 WHEN + 33 - + - CASE - COUNT ( * ) WHEN 43 * 94 + - CASE + + 54 WHEN MIN ( 69 ) THEN - COUNT ( + 95 ) * + 62 END THEN - 18 WHEN - 93 / - 65 THEN + 19 ELSE ( - ( - COUNT ( 58 ) ) ) * - CAST ( NULL AS REAL ) END + MIN ( 81 ) / 46 THEN AVG ( 32 ) WHEN + 14 THEN NULL WHEN ( + 86 ) THEN NULL END - + COALESCE ( + 74, - 82 ) AS col2
----
NULL

query I rowsort
SELECT - 8 + - 51 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4586
SELECT - - 64, + COUNT( * ) * - 23 + 41 AS col2
----
64
18

skipif mysql # not compatible
query II rowsort label-4586
SELECT - - 64, + COUNT ( * ) * - 23 + 41 AS col2
----
64
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4587
SELECT NULLIF ( + + NULLIF ( + CAST( NULL AS SIGNED ), - 7 ), + SUM( ALL - 5 ) * - 36 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT NULLIF ( + + NULLIF ( + CAST ( NULL AS INTEGER ), - 7 ), + SUM ( ALL - 5 ) * - 36 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT - 22 + 56 + + CAST( + COALESCE ( - + ( 38 ), - - 85 ) AS SIGNED ) + + 35 + - - COALESCE ( + - 33, + 64 + - 1, - 45 ) * - 82 * - 80 col0
----
-216449

skipif mysql # not compatible
query I rowsort label-4588
SELECT - 22 + 56 + + CAST ( + COALESCE ( - + ( 38 ), - - 85 ) AS INTEGER ) + + 35 + - - COALESCE ( + - 33, + 64 + - 1, - 45 ) * - 82 * - 80 col0
----
-216449

query I rowsort
SELECT DISTINCT + - 27 + + 23 + - 12
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT 56 + + 76 * + 55 - ( - COUNT( * ) ) AS col1
----
4237

skipif mysql # not compatible
query I rowsort label-4590
SELECT 56 + + 76 * + 55 - ( - COUNT ( * ) ) AS col1
----
4237

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT - ( + 42 ) DIV + 88 + - 17 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4591
SELECT - ( + 42 ) / + 88 + - 17 AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT DISTINCT + COUNT( * ) DIV ( + - 84 ) * + MAX( ALL 0 ) + - 48 DIV 82 - - 58
----
58

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT + COUNT ( * ) / ( + - 84 ) * + MAX ( ALL 0 ) + - 48 / 82 - - 58
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT 50 * 23 * + 24 * + COUNT( * ) * ( + 72 ) + + - COUNT( * ) + - 44 DIV + 8 + 49 DIV - 57 + + - 0 AS col2
----
1987194

skipif mysql # not compatible
query I rowsort label-4593
SELECT 50 * 23 * + 24 * + COUNT ( * ) * ( + 72 ) + + - COUNT ( * ) + - 44 / + 8 + 49 / - 57 + + - 0 AS col2
----
1987194

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - COALESCE ( 72, 17 * NULLIF ( ( 70 ), + + SUM( - 17 ) * - COUNT( * ) ) ) * - - 13 + - 17 AS col1
----
-953

skipif mysql # not compatible
query I rowsort label-4594
SELECT - COALESCE ( 72, 17 * NULLIF ( ( 70 ), + + SUM ( - 17 ) * - COUNT ( * ) ) ) * - - 13 + - 17 AS col1
----
-953

query I rowsort
SELECT 77 * + - 76 * + 72 * 45 AS col2
----
-18960480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4596
SELECT 96 DIV COUNT( * ) + + 14 AS col2, - 4 + - - CAST( NULL AS SIGNED ), + 21 AS col0
----
110
NULL
21

skipif mysql # not compatible
query III rowsort label-4596
SELECT 96 / COUNT ( * ) + + 14 AS col2, - 4 + - - CAST ( NULL AS INTEGER ), + 21 AS col0
----
110
NULL
21

query I rowsort
SELECT DISTINCT - ( - 79 ) AS col2
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-4598
SELECT 92 + + 92 + + + 77 DIV 68 + + 36, - 37 + 12 AS col0
----
221
-25

skipif mysql # not compatible
query II rowsort label-4598
SELECT 92 + + 92 + + + 77 / 68 + + 36, - 37 + 12 AS col0
----
221
-25

query I rowsort
SELECT DISTINCT - 78 * + 20
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT COALESCE ( + + COUNT( * ), + 59 ) + + 85 * 17 AS col1
----
1446

skipif mysql # not compatible
query I rowsort label-4600
SELECT COALESCE ( + + COUNT ( * ), + 59 ) + + 85 * 17 AS col1
----
1446

query I rowsort
SELECT 87 * + + 35 + + ( - 63 )
----
2982

query I rowsort
SELECT ALL - NULLIF ( + 63, + - 31 ) col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4603
SELECT DISTINCT MAX( ALL + 76 ) + + 25 + CAST( 29 AS SIGNED ) + + - CAST( NULL AS SIGNED ) + - - NULLIF ( COUNT( * ), + 36 ) / 11 * - - ( - - 60 ) / + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT MAX ( ALL + 76 ) + + 25 + CAST ( 29 AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + - - NULLIF ( COUNT ( * ), + 36 ) / 11 * - - ( - - 60 ) / + 58 AS col1
----
NULL

query II rowsort
SELECT 1 * + 68 AS col0, ( 56 )
----
68
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT NULLIF ( COUNT( * ), - + 82 + + COUNT( ALL 3 ) ) + + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4605
SELECT NULLIF ( COUNT ( * ), - + 82 + + COUNT ( ALL 3 ) ) + + 29 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT ALL ( + COUNT( * ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT COALESCE ( - COUNT( 25 ), - 74 + + 63, COUNT( DISTINCT + 29 ) ) * + 8
----
-8

skipif mysql # not compatible
query I rowsort label-4607
SELECT COALESCE ( - COUNT ( 25 ), - 74 + + 63, COUNT ( DISTINCT + 29 ) ) * + 8
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4608
SELECT ALL 26 + - + 88 + + - COUNT( * ) + CASE 37 WHEN 40 THEN 42 ELSE NULL END + + MIN( + 20 ) + + COUNT( 31 ) * + - ( - CAST( - 62 AS DECIMAL ) ) + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 26 + - + 88 + + - COUNT ( * ) + CASE 37 WHEN 40 THEN 42 ELSE NULL END + + MIN ( + 20 ) + + COUNT ( 31 ) * + - ( - CAST ( - 62 AS REAL ) ) + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT 53 * + COUNT( 16 )
----
53

skipif mysql # not compatible
query I rowsort label-4609
SELECT 53 * + COUNT ( 16 )
----
53

query II rowsort
SELECT - 9 * - 50 AS col0, - 97 AS col0
----
450
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4611
SELECT - 92 DIV + 50 col2
----
-1

skipif mysql # not compatible
query I rowsort label-4611
SELECT - 92 / + 50 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT NULLIF ( COALESCE ( - MAX( DISTINCT 71 ), + 86 * + 53 ), - + 85 ) * 64 + - - 43
----
-4501

skipif mysql # not compatible
query I rowsort label-4612
SELECT NULLIF ( COALESCE ( - MAX ( DISTINCT 71 ), + 86 * + 53 ), - + 85 ) * 64 + - - 43
----
-4501

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT DISTINCT - 17 DIV + 6
----
-2

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT - 17 / + 6
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT 10 - - MAX( - 49 )
----
-39

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT 10 - - MAX ( - 49 )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT DISTINCT + + 91 - + + COUNT( * ) AS col1, 18
----
90
18

skipif mysql # not compatible
query II rowsort label-4615
SELECT DISTINCT + + 91 - + + COUNT ( * ) AS col1, 18
----
90
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT DISTINCT COALESCE ( - 57, - CAST( NULL AS SIGNED ) + - 43 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT COALESCE ( - 57, - CAST ( NULL AS INTEGER ) + - 43 ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4617
SELECT ALL + + 41 * - CASE - + CAST( + ( + + 53 ) AS SIGNED ) WHEN + 86 * 50 + - 84 + - NULLIF ( + 19, - 44 * 98 ) - + CAST( + 50 + 66 AS DECIMAL ) * 63 THEN + 12 + 60 WHEN 7 THEN NULL END * 69 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + + 41 * - CASE - + CAST ( + ( + + 53 ) AS INTEGER ) WHEN + 86 * 50 + - 84 + - NULLIF ( + 19, - 44 * 98 ) - + CAST ( + 50 + 66 AS REAL ) * 63 THEN + 12 + 60 WHEN 7 THEN NULL END * 69 - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 1 * + + ( 44 ) * 21 * - - 66 AS col2
----
60984

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT COUNT( 78 ) * - + 26
----
-26

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT COUNT ( 78 ) * - + 26
----
-26

query I rowsort
SELECT - 25 + + 56
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT CASE - NULLIF ( ( - - 33 ), CAST( NULL AS SIGNED ) * - - ( + + 79 ) ) WHEN - 97 THEN 88 * - 39 * + + 56 ELSE + 71 * - 51 + - 90 END * + COUNT( * ) AS col0
----
-3711

skipif mysql # not compatible
query I rowsort label-4621
SELECT CASE - NULLIF ( ( - - 33 ), CAST ( NULL AS INTEGER ) * - - ( + + 79 ) ) WHEN - 97 THEN 88 * - 39 * + + 56 ELSE + 71 * - 51 + - 90 END * + COUNT ( * ) AS col0
----
-3711

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT - 33 DIV - ( - - 24 ) + 43 + 7 - - - 62
----
-11

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 33 / - ( - - 24 ) + 43 + 7 - - - 62
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT COUNT( * ), - 5 AS col2
----
1
-5

skipif mysql # not compatible
query II rowsort label-4623
SELECT COUNT ( * ), - 5 AS col2
----
1
-5

query I rowsort
SELECT 93 * + - 16 AS col1
----
-1488

query I rowsort
SELECT 96 + - - 83
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT - NULLIF ( 48, + MAX( + - 6 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - NULLIF ( 48, + MAX ( + - 6 ) )
----
-48

query I rowsort
SELECT 5 + + - 36
----
-31

query I rowsort
SELECT ALL + 92 * + 21
----
1932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT COUNT( * ) DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT COUNT ( * ) / 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL + 19 + + COUNT( ALL - 21 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + 19 + + COUNT ( ALL - 21 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4631
SELECT + COUNT( * ) * NULLIF ( + 89, + + 27 + - 62 ) - 34, - 9 AS col1
----
55
-9

skipif mysql # not compatible
query II rowsort label-4631
SELECT + COUNT ( * ) * NULLIF ( + 89, + + 27 + - 62 ) - 34, - 9 AS col1
----
55
-9

query I rowsort
SELECT 95 + - ( 48 ) + + 81 * + 49 * - 71
----
-281752

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL + ( + 59 ) * - COUNT( * ) + + - 39 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL + ( + 59 ) * - COUNT ( * ) + + - 39 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT COUNT( * ) - 50 + 78 * COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4634
SELECT COUNT ( * ) - 50 + 78 * COUNT ( * ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-4635
SELECT 27 AS col2, + 44 * 45 + 80 - - 39 DIV - 9 AS col1
----
27
2056

skipif mysql # not compatible
query II rowsort label-4635
SELECT 27 AS col2, + 44 * 45 + 80 - - 39 / - 9 AS col1
----
27
2056

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT COUNT( * ) * + COUNT( + 94 ) * - 87 + + 67
----
-20

skipif mysql # not compatible
query I rowsort label-4636
SELECT COUNT ( * ) * + COUNT ( + 94 ) * - 87 + + 67
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4637
SELECT 17 - - - 92 + - - 81 DIV - COUNT( * )
----
-156

skipif mysql # not compatible
query I rowsort label-4637
SELECT 17 - - - 92 + - - 81 / - COUNT ( * )
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT DISTINCT + NULLIF ( - - 72, - 12 ) * - COALESCE ( + 79, + COUNT( * ) + + 31 + + 68 - 52 * + ( + - NULLIF ( - 30, - + 8 * 24 ) ) DIV 58 )
----
-5688

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT + NULLIF ( - - 72, - 12 ) * - COALESCE ( + 79, + COUNT ( * ) + + 31 + + 68 - 52 * + ( + - NULLIF ( - 30, - + 8 * 24 ) ) / 58 )
----
-5688

query II rowsort
SELECT DISTINCT - 98 AS col0, - 36 + 50 * 50 AS col1
----
-98
2464

query II rowsort
SELECT DISTINCT - 69 AS col0, + 88 AS col2
----
-69
88

query II rowsort
SELECT DISTINCT - 14 col2, 71 AS col2
----
-14
71

query I rowsort
SELECT - NULLIF ( - 49, - 0 )
----
49

query II rowsort
SELECT - - 37 AS col2, - 25
----
37
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - CASE + + 52 WHEN + + 44 - 25 THEN - AVG ( ALL 60 ) * - + CASE - + CASE - + 36 WHEN + 31 THEN + 52 * + + 94 - - 21 + - NULLIF ( 64, - 42 ) END WHEN 95 THEN NULL ELSE 22 + - ( 13 + + 66 * + 39 ) END WHEN + COUNT( * ) THEN 61 + + 88 / 6 END * 48 + ( - CASE + 12 WHEN + 68 * + 46 THEN - ( ( + 61 ) ) ELSE NULL END + - 68 * - 50 ) * NULLIF ( + COALESCE ( 71, + 97 * - 70 ), 21 - + 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT - CASE + + 52 WHEN + + 44 - 25 THEN - AVG ( ALL 60 ) * - + CASE - + CASE - + 36 WHEN + 31 THEN + 52 * + + 94 - - 21 + - NULLIF ( 64, - 42 ) END WHEN 95 THEN NULL ELSE 22 + - ( 13 + + 66 * + 39 ) END WHEN + COUNT ( * ) THEN 61 + + 88 / 6 END * 48 + ( - CASE + 12 WHEN + 68 * + 46 THEN - ( ( + 61 ) ) ELSE NULL END + - 68 * - 50 ) * NULLIF ( + COALESCE ( 71, + 97 * - 70 ), 21 - + 0 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT SUM( 72 ) - - 75 - + 77 + + 87 * + 53 + + 68
----
4749

skipif mysql # not compatible
query I rowsort label-4645
SELECT SUM ( 72 ) - - 75 - + 77 + + 87 * + 53 + + 68
----
4749

query II rowsort
SELECT - + 83 AS col2, - ( 27 ) col2
----
-83
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + 7 + - COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4647
SELECT + 7 + - COUNT ( * ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT COUNT( * ) + 45
----
46

skipif mysql # not compatible
query I rowsort label-4648
SELECT COUNT ( * ) + 45
----
46

query II rowsort
SELECT ALL + 88 - + 91 + - 29 col2, - 22
----
-32
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT - CASE + 63 WHEN + + MAX( DISTINCT + 81 ) THEN + 34 * - 64 + + 42 ELSE + COUNT( * ) + + 24 END - + ( + 71 )
----
-96

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT - CASE + 63 WHEN + + MAX ( DISTINCT + 81 ) THEN + 34 * - 64 + + 42 ELSE + COUNT ( * ) + + 24 END - + ( + 71 )
----
-96

query II rowsort
SELECT ALL + 80 col1, 34 + - 31
----
80
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT DISTINCT - CASE - - 1 WHEN 0 THEN + SUM( DISTINCT + 36 ) WHEN + - 23 * 58 THEN 55 ELSE NULL END col0, + 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-4652
SELECT DISTINCT - CASE - - 1 WHEN 0 THEN + SUM ( DISTINCT + 36 ) WHEN + - 23 * 58 THEN 55 ELSE NULL END col0, + 52
----
NULL
52

query I rowsort
SELECT ALL 26 * 97 AS col0
----
2522

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + 65 * 68 - - MAX( ALL - 12 ) + - ( + ( + - ( + 21 ) ) )
----
4429

skipif mysql # not compatible
query I rowsort label-4654
SELECT + 65 * 68 - - MAX ( ALL - 12 ) + - ( + ( + - ( + 21 ) ) )
----
4429

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + MIN( + NULLIF ( + 87, + 81 * - + 69 * + - 25 * - + 23 + - 6 ) ) + 80 + + 89 AS col0
----
256

skipif mysql # not compatible
query I rowsort label-4655
SELECT + MIN ( + NULLIF ( + 87, + 81 * - + 69 * + - 25 * - + 23 + - 6 ) ) + 80 + + 89 AS col0
----
256

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT - 63 AS col0, - CASE + 67 WHEN - COUNT( * ) THEN NULL WHEN - - 98 THEN NULL WHEN + 29 + - 42 - 78 THEN NULL WHEN + - COALESCE ( - + 64, + 11 * - 51 - + - 68 ) + 17 THEN 89 END / - COUNT( * )
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-4656
SELECT - 63 AS col0, - CASE + 67 WHEN - COUNT ( * ) THEN NULL WHEN - - 98 THEN NULL WHEN + 29 + - 42 - 78 THEN NULL WHEN + - COALESCE ( - + 64, + 11 * - 51 - + - 68 ) + 17 THEN 89 END / - COUNT ( * )
----
-63
NULL

query I rowsort
SELECT + - 56 * 29 + + 7 AS col0
----
-1617

query I rowsort
SELECT - + 92 + + - 86 AS col1
----
-178

query I rowsort
SELECT - 15 * - - 97 AS col1
----
-1455

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT + ( + SUM( ALL - 98 ) ), ( + 65 ) col1
----
-98
65

skipif mysql # not compatible
query II rowsort label-4660
SELECT + ( + SUM ( ALL - 98 ) ), ( + 65 ) col1
----
-98
65

query I rowsort
SELECT + 56 * - 98 col2
----
-5488

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT MIN( DISTINCT + 56 ) * - 2 + 29 + + 81
----
-2

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT MIN ( DISTINCT + 56 ) * - 2 + 29 + + 81
----
-2

query II rowsort
SELECT ( - - 93 ), 25 + 97 + + + 86 AS col2
----
93
208

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4664
SELECT + CAST( NULL AS DECIMAL ) + + 35 * + COUNT( * ) - 94 - - 53, + COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4664
SELECT + CAST ( NULL AS REAL ) + + 35 * + COUNT ( * ) - 94 - - 53, + COUNT ( * ) col1
----
NULL
1

query I rowsort
SELECT NULLIF ( - 0, - 31 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4666
SELECT - 63 * 97 + 71 + + 47 + + - 66 * - COUNT( * ) DIV + 78 col2, 43 * + ( + 88 )
----
-5993
3784

skipif mysql # not compatible
query II rowsort label-4666
SELECT - 63 * 97 + 71 + + 47 + + - 66 * - COUNT ( * ) / + 78 col2, 43 * + ( + 88 )
----
-5993
3784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4667
SELECT + ( + 99 ), - 46 * + + CAST( - 47 AS SIGNED ) + - 18 AS col0
----
99
2144

skipif mysql # not compatible
query II rowsort label-4667
SELECT + ( + 99 ), - 46 * + + CAST ( - 47 AS INTEGER ) + - 18 AS col0
----
99
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + 77 * - - 5 + + ( - COALESCE ( + + ( + 78 ), - 1 * - ( - 95 ), - + 35 ) ) - + COUNT( * ) + + 41 + + - 17 * - 88
----
1843

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + 77 * - - 5 + + ( - COALESCE ( + + ( + 78 ), - 1 * - ( - 95 ), - + 35 ) ) - + COUNT ( * ) + + 41 + + - 17 * - 88
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL - 94 * - - 92 + + COUNT( * ) AS col0
----
-8647

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - 94 * - - 92 + + COUNT ( * ) AS col0
----
-8647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4670
SELECT COALESCE ( 52, 8 * - - NULLIF ( - 62, + 97 + + 18 + + 48 * - + SUM( DISTINCT + - ( + 74 ) ) + + - 32 + + NULLIF ( CASE - 55 WHEN + AVG ( ALL + 51 ) + - NULLIF ( 61, + CASE 85 WHEN + ( 72 ) THEN - 10 WHEN + ( 36 ) + CAST( - 47 - - 5 AS DECIMAL ) THEN + ( 51 ) + COUNT( * ) ELSE AVG ( DISTINCT - 78 ) END + 8 DIV COUNT( * ) ) * + 4 THEN 92 WHEN ( 85 ) THEN NULL END, AVG ( DISTINCT CASE 47 WHEN 89 + - CAST( NULL AS SIGNED ) THEN NULL ELSE - 57 * - 37 END ) * - 23 + 57 ) * + 91 ) DIV - 66, NULLIF ( 8, + 96 + + 51 ) DIV + CAST( NULL AS SIGNED ) )
----
52

skipif mysql # not compatible
query I rowsort label-4670
SELECT COALESCE ( 52, 8 * - - NULLIF ( - 62, + 97 + + 18 + + 48 * - + SUM ( DISTINCT + - ( + 74 ) ) + + - 32 + + NULLIF ( CASE - 55 WHEN + AVG ( ALL + 51 ) + - NULLIF ( 61, + CASE 85 WHEN + ( 72 ) THEN - 10 WHEN + ( 36 ) + CAST ( - 47 - - 5 AS REAL ) THEN + ( 51 ) + COUNT ( * ) ELSE AVG ( DISTINCT - 78 ) END + 8 / COUNT ( * ) ) * + 4 THEN 92 WHEN ( 85 ) THEN NULL END, AVG ( DISTINCT CASE 47 WHEN 89 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 57 * - 37 END ) * - 23 + 57 ) * + 91 ) / - 66, NULLIF ( 8, + 96 + + 51 ) / + CAST ( NULL AS INTEGER ) )
----
52

query I rowsort
SELECT DISTINCT - 33 * + 41 + - 54
----
-1407

query I rowsort
SELECT - 25 * + 56
----
-1400

query I rowsort
SELECT - 43 + - + 46
----
-89

query I rowsort
SELECT DISTINCT - 43 * 96 AS col2
----
-4128

query I rowsort
SELECT + 89 * + ( 88 ) * 87 AS col1
----
681384

query I rowsort
SELECT - 95 * + + 95 * + 73
----
-658825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT NULLIF ( + 17, + 11 / - CAST( NULL AS SIGNED ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4677
SELECT NULLIF ( + 17, + 11 / - CAST ( NULL AS INTEGER ) ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT 72 * 73 * + MAX( ALL + - 89 ) + + 70 + + + 8 + + 59 + 35 AS col0
----
-467612

skipif mysql # not compatible
query I rowsort label-4678
SELECT 72 * 73 * + MAX ( ALL + - 89 ) + + 70 + + + 8 + + 59 + 35 AS col0
----
-467612

onlyif mysql # aggregate syntax: 
query II rowsort label-4679
SELECT ALL + + NULLIF ( - SUM( + 6 ), + 14 ) col1, 27 - 0 + - - 31 + - + 30 + - + 83 AS col2
----
-6
-55

skipif mysql # not compatible
query II rowsort label-4679
SELECT ALL + + NULLIF ( - SUM ( + 6 ), + 14 ) col1, 27 - 0 + - - 31 + - + 30 + - + 83 AS col2
----
-6
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4680
SELECT + + COALESCE ( ( + + 20 ), 99 DIV + COUNT( * ), 43 )
----
20

skipif mysql # not compatible
query I rowsort label-4680
SELECT + + COALESCE ( ( + + 20 ), 99 / + COUNT ( * ), 43 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4681
SELECT - + CASE 40 WHEN 88 * - COUNT( - + 49 ) * + - CAST( NULL AS SIGNED ) THEN NULL WHEN 26 + CASE 19 WHEN + - 60 THEN + 63 END THEN + - COUNT( * ) ELSE CAST( - 60 AS SIGNED ) END + 43 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-4681
SELECT - + CASE 40 WHEN 88 * - COUNT ( - + 49 ) * + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 26 + CASE 19 WHEN + - 60 THEN + 63 END THEN + - COUNT ( * ) ELSE CAST ( - 60 AS INTEGER ) END + 43 AS col1
----
103

query I rowsort
SELECT - - 28 * + - 54
----
-1512

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT - 14 DIV 11
----
-1

skipif mysql # not compatible
query I rowsort label-4683
SELECT - 14 / 11
----
-1

query I rowsort
SELECT ALL - + 45 * - 94
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT COUNT( DISTINCT 87 )
----
1

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT COUNT ( DISTINCT 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - MIN( DISTINCT + - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-4686
SELECT - MIN ( DISTINCT + - 10 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT - - SUM( ALL + CAST( NULL AS SIGNED ) ) - - COALESCE ( COUNT( * ), - 77, 89 * + NULLIF ( MAX( - 75 ), + 76 * - 30 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) - - COALESCE ( COUNT ( * ), - 77, 89 * + NULLIF ( MAX ( - 75 ), + 76 * - 30 ) )
----
NULL

query I rowsort
SELECT - - ( 94 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT + 99 * CAST( - 9 AS SIGNED )
----
-891

skipif mysql # not compatible
query I rowsort label-4689
SELECT + 99 * CAST ( - 9 AS INTEGER )
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - 43 - + COUNT( * ) + 19 * + 27 col2
----
469

skipif mysql # not compatible
query I rowsort label-4690
SELECT - 43 - + COUNT ( * ) + 19 * + 27 col2
----
469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL - 72 + - CAST( NULL AS SIGNED ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - 72 + - CAST ( NULL AS INTEGER ) + - 6
----
NULL

query I rowsort
SELECT DISTINCT + 13 + - 88 + + + 13 + + 73 * - + 5 * - 82 AS col2
----
29868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT + 57 DIV + - COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4693
SELECT + 57 / + - COUNT ( * ) AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4694
SELECT DISTINCT - 19 + COUNT( * ) + + COUNT( * ) - - - 63 DIV + 81 * - 20
----
-17

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - 19 + COUNT ( * ) + + COUNT ( * ) - - - 63 / + 81 * - 20
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT 80 * COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT 80 * COUNT ( * )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4696
SELECT + 92 DIV + 94 * + COUNT( DISTINCT - + 32 ) * + + 71 AS col2, 79
----
0
79

skipif mysql # not compatible
query II rowsort label-4696
SELECT + 92 / + 94 * + COUNT ( DISTINCT - + 32 ) * + + 71 AS col2, 79
----
0
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT - 3 + CAST( NULL AS SIGNED ) * + 94 * + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 3 + CAST ( NULL AS INTEGER ) * + 94 * + - 86
----
NULL

query I rowsort
SELECT - ( + + 7 )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4699
SELECT - COUNT( * ) DIV - + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT - COUNT ( * ) / - + 77 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT + CAST( - 84 AS SIGNED ) + - + 92
----
-176

skipif mysql # not compatible
query I rowsort label-4700
SELECT + CAST ( - 84 AS INTEGER ) + - + 92
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4701
SELECT + 85 - - COUNT( * ) * COALESCE ( 28, CAST( NULL AS SIGNED ) ) DIV + NULLIF ( 7, MIN( - ( + CASE - 66 WHEN 39 - + 38 THEN + + CAST( NULL AS SIGNED ) WHEN - 59 THEN NULL ELSE CAST( 30 AS SIGNED ) END ) ) + + COUNT( + 69 ) * + 15 ) col0
----
89

skipif mysql # not compatible
query I rowsort label-4701
SELECT + 85 - - COUNT ( * ) * COALESCE ( 28, CAST ( NULL AS INTEGER ) ) / + NULLIF ( 7, MIN ( - ( + CASE - 66 WHEN 39 - + 38 THEN + + CAST ( NULL AS INTEGER ) WHEN - 59 THEN NULL ELSE CAST ( 30 AS INTEGER ) END ) ) + + COUNT ( + 69 ) * + 15 ) col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT DISTINCT - 83 DIV 3 * + 17 + + 30
----
-429

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - 83 / 3 * + 17 + + 30
----
-429

query I rowsort
SELECT + ( - 2 ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT CAST( - 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-4704
SELECT CAST ( - 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT ALL - 73 DIV COUNT( * ) * + 54 - + - 36
----
-3906

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL - 73 / COUNT ( * ) * + 54 - + - 36
----
-3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT CAST( - COUNT( ALL 72 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4706
SELECT CAST ( - COUNT ( ALL 72 ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT 42 * - - 28 * + + 84
----
98784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4708
SELECT + 98 - + 79 - - + COALESCE ( - 24, + 50, + 93 + + 31 + - - 63 DIV + COUNT( DISTINCT 98 ) ) + + + 62 * - COUNT( * ) * 8 * COUNT( * ) + + - 84
----
-585

skipif mysql # not compatible
query I rowsort label-4708
SELECT + 98 - + 79 - - + COALESCE ( - 24, + 50, + 93 + + 31 + - - 63 / + COUNT ( DISTINCT 98 ) ) + + + 62 * - COUNT ( * ) * 8 * COUNT ( * ) + + - 84
----
-585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL - + CASE + 33 WHEN + COUNT( * ) THEN + + 74 WHEN + COUNT( * ) THEN COALESCE ( - 36, - 48 - + 77 + - 77 * + 53 * - ( - + 53 ) * - 22 + + + 37, 72 * CAST( + 90 AS SIGNED ) ) - 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL - + CASE + 33 WHEN + COUNT ( * ) THEN + + 74 WHEN + COUNT ( * ) THEN COALESCE ( - 36, - 48 - + 77 + - 77 * + 53 * - ( - + 53 ) * - 22 + + + 37, 72 * CAST ( + 90 AS INTEGER ) ) - 25 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT - COUNT( * ) * + + 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - COUNT ( * ) * + + 52 AS col2
----
-52

query II rowsort
SELECT DISTINCT - 35 AS col1, 34 * 91 AS col0
----
-35
3094

query I rowsort
SELECT + 78 + + 62
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT DISTINCT - + 18 DIV + 73 * 62 * + + ( - 6 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT - + 18 / + 73 * 62 * + + ( - 6 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT + + 29 * - COUNT( * ) + + 36 * - 76 * 74 AS col2
----
-202493

skipif mysql # not compatible
query I rowsort label-4714
SELECT + + 29 * - COUNT ( * ) + + 36 * - 76 * 74 AS col2
----
-202493

query I rowsort
SELECT - 5 + 57 - - 94 * - 90
----
-8408

query I rowsort
SELECT 46 * + - 12 + ( + - 89 ) AS col2
----
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL + + 43 * 67 * COUNT( * ) * + 55
----
158455

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL + + 43 * 67 * COUNT ( * ) * + 55
----
158455

query I rowsort
SELECT 48 * + 60 * + 38 + 89
----
109529

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL SUM( DISTINCT 78 ) + + 4
----
82

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL SUM ( DISTINCT 78 ) + + 4
----
82

query I rowsort
SELECT DISTINCT - ( + + 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL + 84 + + MIN( - 52 ) * 0 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + 84 + + MIN ( - 52 ) * 0 AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT ALL - 20 + - 32 DIV - 75
----
-20

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - 20 + - 32 / - 75
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4723
SELECT + CASE 86 WHEN CASE + + 21 WHEN - CAST( NULL AS DECIMAL ) + + - 94 THEN NULL WHEN - 81 THEN MIN( - 13 ) ELSE + - 78 END THEN - 32 ELSE + 53 END + - 2 * - - 25 * + ( + COUNT( * ) ) * + 70 col2
----
-3447

skipif mysql # not compatible
query I rowsort label-4723
SELECT + CASE 86 WHEN CASE + + 21 WHEN - CAST ( NULL AS REAL ) + + - 94 THEN NULL WHEN - 81 THEN MIN ( - 13 ) ELSE + - 78 END THEN - 32 ELSE + 53 END + - 2 * - - 25 * + ( + COUNT ( * ) ) * + 70 col2
----
-3447

query I rowsort
SELECT ALL - - 63 + 0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT COUNT( * ) + - 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4725
SELECT COUNT ( * ) + - 17 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT 31 + + COALESCE ( - CASE - 50 WHEN + + 39 * + 17 + - 46 + + - 19 THEN + - 85 + + 18 ELSE + 92 END, + + 92 + - 38 DIV + NULLIF ( 18, + ( 41 ) * + 98 ) * 56 - - 86 * MAX( DISTINCT 23 ) ) - ( 99 ) AS col1
----
-160

skipif mysql # not compatible
query I rowsort label-4726
SELECT 31 + + COALESCE ( - CASE - 50 WHEN + + 39 * + 17 + - 46 + + - 19 THEN + - 85 + + 18 ELSE + 92 END, + + 92 + - 38 / + NULLIF ( 18, + ( 41 ) * + 98 ) * 56 - - 86 * MAX ( DISTINCT 23 ) ) - ( 99 ) AS col1
----
-160

query I rowsort
SELECT DISTINCT - 88 + + 89 AS col2
----
1

query I rowsort
SELECT ALL ( + 47 ) + - 7 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL - 6 + - + CAST( NULL AS SIGNED ) - 94 * 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - 6 + - + CAST ( NULL AS INTEGER ) - 94 * 92 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT 21 * - 23 * - 94 * 88 DIV - 11 AS col0
----
-363216

skipif mysql # not compatible
query I rowsort label-4730
SELECT 21 * - 23 * - 94 * 88 / - 11 AS col0
----
-363216

query I rowsort
SELECT 27 + + 13 AS col2
----
40

query II rowsort
SELECT + 97, 73 + 50 * + 59 AS col1
----
97
3023

query I rowsort
SELECT DISTINCT 55 - 59
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT COUNT( * ) * - 84 * - 25
----
2100

skipif mysql # not compatible
query I rowsort label-4734
SELECT COUNT ( * ) * - 84 * - 25
----
2100

query I rowsort
SELECT ALL + 61 * + 14 AS col2
----
854

onlyif mysql # aggregate syntax: 
query II rowsort label-4736
SELECT 17 + 65 + + + 59 * + + ( + 24 ) - COUNT( * ), + ( - MAX( ALL - 17 ) ) col2
----
1497
17

skipif mysql # not compatible
query II rowsort label-4736
SELECT 17 + 65 + + + 59 * + + ( + 24 ) - COUNT ( * ), + ( - MAX ( ALL - 17 ) ) col2
----
1497
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT 62 * - 29 + 29 + MIN( ALL + 87 ) AS col1
----
-1682

skipif mysql # not compatible
query I rowsort label-4737
SELECT 62 * - 29 + 29 + MIN ( ALL + 87 ) AS col1
----
-1682

query I rowsort
SELECT 62 + - 59
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT COUNT( * ) * + - 70 * + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-4739
SELECT COUNT ( * ) * + - 70 * + COUNT ( * )
----
-70

query I rowsort
SELECT DISTINCT - ( - 46 ) AS col1
----
46

query II rowsort
SELECT ALL - 42 col1, 47
----
-42
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4742
SELECT ALL - - 82 * + + 68 AS col2, - 12 + CAST( + COUNT( * ) AS SIGNED )
----
5576
-11

skipif mysql # not compatible
query II rowsort label-4742
SELECT ALL - - 82 * + + 68 AS col2, - 12 + CAST ( + COUNT ( * ) AS INTEGER )
----
5576
-11

query II rowsort
SELECT DISTINCT - - 88 col1, - 6 * + 80
----
88
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4744
SELECT - 31 AS col2, + SUM( + 38 ) * NULLIF ( - COUNT( * ), - 91 + + CAST( NULL AS SIGNED ) ) AS col0
----
-31
-38

skipif mysql # not compatible
query II rowsort label-4744
SELECT - 31 AS col2, + SUM ( + 38 ) * NULLIF ( - COUNT ( * ), - 91 + + CAST ( NULL AS INTEGER ) ) AS col0
----
-31
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4745
SELECT - 76 * - + ( + 45 ) * + CAST( NULL AS DECIMAL ) + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT - 76 * - + ( + 45 ) * + CAST ( NULL AS REAL ) + - 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT - ( - 78 ) + - COUNT( + 33 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4746
SELECT - ( - 78 ) + - COUNT ( + 33 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT 14 + + + 65 * + 16 * - 23 + + + 4 * + CASE 4 WHEN + 62 THEN NULL WHEN - ( - COALESCE ( - 32, + + 61 ) ) * + 95 + - 25 + + - 25 THEN + 89 * - 60 ELSE MAX( ALL 34 ) END * 54 + COUNT( * )
----
-16561

skipif mysql # not compatible
query I rowsort label-4747
SELECT 14 + + + 65 * + 16 * - 23 + + + 4 * + CASE 4 WHEN + 62 THEN NULL WHEN - ( - COALESCE ( - 32, + + 61 ) ) * + 95 + - 25 + + - 25 THEN + 89 * - 60 ELSE MAX ( ALL 34 ) END * 54 + COUNT ( * )
----
-16561

query II rowsort
SELECT ALL + 74 + 32, 11 + 77 AS col1
----
106
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT DISTINCT - + SUM( ALL - - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT - + SUM ( ALL - - 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT DISTINCT 77 + + + 37 - + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT 77 + + + 37 - + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) * - 24
----
NULL

query II rowsort
SELECT - 32 AS col1, 31
----
-32
31

query I rowsort
SELECT ALL - + 28 + - 3 + 80 - + + 76 col2
----
-27

query II rowsort
SELECT - 66 AS col0, + 12 * - 18 * - + 88 AS col1
----
-66
19008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT ALL + COUNT( * ) + 64 - + 30 + NULLIF ( + COUNT( * ), - 34 / - COUNT( * ) + - COUNT( * ) - - CAST( NULL AS SIGNED ) )
----
36

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + COUNT ( * ) + 64 - + 30 + NULLIF ( + COUNT ( * ), - 34 / - COUNT ( * ) + - COUNT ( * ) - - CAST ( NULL AS INTEGER ) )
----
36

query II rowsort
SELECT ALL 94 col1, ( + 19 ) col2
----
94
19

query I rowsort
SELECT 40 * 77
----
3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4757
SELECT ALL + 33 + MIN( DISTINCT - 93 ) + - 17 AS col2, ( - - 5 ) DIV - + COUNT( * ) + + - 64 * + - 15 * + NULLIF ( COUNT( * ), - + ( 87 ) * - 13 * - 83 * + ( 57 ) ) AS col2
----
-77
955

skipif mysql # not compatible
query II rowsort label-4757
SELECT ALL + 33 + MIN ( DISTINCT - 93 ) + - 17 AS col2, ( - - 5 ) / - + COUNT ( * ) + + - 64 * + - 15 * + NULLIF ( COUNT ( * ), - + ( 87 ) * - 13 * - 83 * + ( 57 ) ) AS col2
----
-77
955

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - + ( - MAX( + 79 ) )
----
79

skipif mysql # not compatible
query I rowsort label-4758
SELECT - + ( - MAX ( + 79 ) )
----
79

query I rowsort
SELECT ALL 22 + 93
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT 73 - 46 + - 25 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT 73 - 46 + - 25 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 0, CASE - - 71 WHEN 11 THEN - - 19 END col2
----
0
NULL

query I rowsort
SELECT ALL + CASE - 47 WHEN - 81 THEN - + 27 WHEN + 94 THEN 28 ELSE NULL END * - 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL - COALESCE ( 41, + COUNT( * ) * - + 2 - + 14 * 52 * - 55 * 44, + + 4 ) + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - COALESCE ( 41, + COUNT ( * ) * - + 2 - + 14 * 52 * - 55 * 44, + + 4 ) + COUNT ( * )
----
-40

query II rowsort
SELECT DISTINCT + 47 * + 93 AS col2, + 72 AS col0
----
4371
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT ALL COUNT( * ) * + + 53 AS col0, 0 * + COALESCE ( COUNT( * ), - - COUNT( 46 ), 87 + COUNT( * ) ) AS col2
----
53
0

skipif mysql # not compatible
query II rowsort label-4765
SELECT ALL COUNT ( * ) * + + 53 AS col0, 0 * + COALESCE ( COUNT ( * ), - - COUNT ( 46 ), 87 + COUNT ( * ) ) AS col2
----
53
0

query I rowsort
SELECT DISTINCT 97 - + 10
----
87

query II rowsort
SELECT ALL - 2 * - + 13, + 10 col0
----
26
10

query I rowsort
SELECT DISTINCT NULLIF ( 59, + - ( + 5 ) ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL COUNT( NULLIF ( - 98, - - COALESCE ( + 35, + - 97 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL COUNT ( NULLIF ( - 98, - - COALESCE ( + 35, + - 97 ) ) ) AS col2
----
1

query I rowsort
SELECT 20 + - 49 + + 75 * - - 31 * + 37 + + 92
----
86088

onlyif mysql # aggregate syntax: 
query II rowsort label-4771
SELECT 56 * - + COUNT( * ) AS col1, NULLIF ( CASE - + 91 WHEN 92 THEN NULL WHEN + 6 + ( - + 31 ) THEN NULL ELSE 42 END, ( + + 4 ) / + 19 ) * + 76 AS col0
----
-56
3192

skipif mysql # not compatible
query II rowsort label-4771
SELECT 56 * - + COUNT ( * ) AS col1, NULLIF ( CASE - + 91 WHEN 92 THEN NULL WHEN + 6 + ( - + 31 ) THEN NULL ELSE 42 END, ( + + 4 ) / + 19 ) * + 76 AS col0
----
-56
3192

query I rowsort
SELECT 30 + - 99 * - 94
----
9336

query I rowsort
SELECT 65 - + 45 AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT ( - - 47 ) DIV + 22 + - ( 73 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4774
SELECT ( - - 47 ) / + 22 + - ( 73 ) AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL + 39 * + - COALESCE ( + + CAST( 20 AS SIGNED ), 39 )
----
-780

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + 39 * + - COALESCE ( + + CAST ( 20 AS INTEGER ), 39 )
----
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT - 60 * 90 * 5 DIV + 28
----
-964

skipif mysql # not compatible
query I rowsort label-4776
SELECT - 60 * 90 * 5 / + 28
----
-964

onlyif mysql # aggregate syntax: 
query II rowsort label-4777
SELECT ALL + SUM( DISTINCT - 44 ) AS col0, - ( - 56 ) AS col1
----
-44
56

skipif mysql # not compatible
query II rowsort label-4777
SELECT ALL + SUM ( DISTINCT - 44 ) AS col0, - ( - 56 ) AS col1
----
-44
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT 7 * + MAX( + + 73 )
----
511

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT 7 * + MAX ( + + 73 )
----
511

query I rowsort
SELECT DISTINCT + + 26 * 62
----
1612

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT + + ( + + 46 ) DIV + - 63 + + 79 col1
----
79

skipif mysql # not compatible
query I rowsort label-4780
SELECT + + ( + + 46 ) / + - 63 + + 79 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + - 83 * + 72 + + CASE + 62 WHEN + 16 THEN + COUNT( * ) * 63 WHEN + 80 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT + - 83 * + 72 + + CASE + 62 WHEN + 16 THEN + COUNT ( * ) * 63 WHEN + 80 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4782
SELECT + + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT + + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL SUM( 35 ) * + COUNT( * ) + - 65 + - + COALESCE ( 9, + 9 ) / - 16 * 39 / - ( ( + - ( - 43 ) ) ) + COUNT( * ) + + COALESCE ( 27, + + ( - 78 ) * 19 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL SUM ( 35 ) * + COUNT ( * ) + - 65 + - + COALESCE ( 9, + 9 ) / - 16 * 39 / - ( ( + - ( - 43 ) ) ) + COUNT ( * ) + + COALESCE ( 27, + + ( - 78 ) * 19 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT ALL + 84 DIV 30 * + 97 AS col1
----
194

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + 84 / 30 * + 97 AS col1
----
194

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4785
SELECT ALL - + 35 * - ( COUNT( * ) ) + + 59 + - 11 DIV - 65 * - + 45 + - 8 + CASE + 37 WHEN ( 4 ) THEN NULL WHEN - + 91 + CAST( NULL AS DECIMAL ) THEN NULL ELSE - - SUM( DISTINCT - 33 ) * + + SUM( ALL 83 ) DIV COUNT( * ) + + 11 * 20 END AS col1
----
-2433

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - + 35 * - ( COUNT ( * ) ) + + 59 + - 11 / - 65 * - + 45 + - 8 + CASE + 37 WHEN ( 4 ) THEN NULL WHEN - + 91 + CAST ( NULL AS REAL ) THEN NULL ELSE - - SUM ( DISTINCT - 33 ) * + + SUM ( ALL 83 ) / COUNT ( * ) + + 11 * 20 END AS col1
----
-2433

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + NULLIF ( COUNT( DISTINCT - + 74 ), + - 64 + - 82 * + COUNT( * ) * + 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4786
SELECT + NULLIF ( COUNT ( DISTINCT - + 74 ), + - 64 + - 82 * + COUNT ( * ) * + 43 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + 2 col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT + 76 + + 72 DIV 2
----
112

skipif mysql # not compatible
query I rowsort label-4788
SELECT + 76 + + 72 / 2
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4789
SELECT + + SUM( - 43 ) - MAX( - 16 ) + + CAST( 36 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4789
SELECT + + SUM ( - 43 ) - MAX ( - 16 ) + + CAST ( 36 AS INTEGER ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT + 0 * - + COUNT( * ) + + 45 col2
----
45

skipif mysql # not compatible
query I rowsort label-4790
SELECT + 0 * - + COUNT ( * ) + + 45 col2
----
45

query I rowsort
SELECT + - 7 - + 96 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL COUNT( * ) * COUNT( * ) * - NULLIF ( 66, - 25 )
----
-66

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL COUNT ( * ) * COUNT ( * ) * - NULLIF ( 66, - 25 )
----
-66

query I rowsort
SELECT + - 38 + NULLIF ( 30, - 36 )
----
-8

query I rowsort
SELECT + 74 * 5 AS col2
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT COUNT( + + 44 ) - 0 + + + 42
----
43

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT COUNT ( + + 44 ) - 0 + + + 42
----
43

query I rowsort
SELECT + 26 + + ( - 73 ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4797
SELECT ALL CAST( - 62 AS SIGNED ) DIV - 44 AS col2, - 16 + - - 88
----
1
72

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL CAST ( - 62 AS INTEGER ) / - 44 AS col2, - 16 + - - 88
----
1
72

query I rowsort
SELECT - CASE 76 WHEN + + 59 * 65 + + NULLIF ( - - 26, 87 + 67 ) * - + 71 THEN NULL WHEN + - COALESCE ( - + ( - 28 ), + - ( - 95 ) * - 12 * + + 51 ) * + 63 - - 83 + 53 * 21 THEN 10 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT + 8 + COUNT( * ) - - 27 + - 72 / - CASE 33 WHEN + + ( - 63 ) THEN NULL WHEN 50 / 66 - - - 65 THEN + + CASE + 66 WHEN 54 + + 75 + COALESCE ( - CAST( - 73 AS SIGNED ), - 42 / + 96, 84 ) THEN + 1 END END - + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT + 8 + COUNT ( * ) - - 27 + - 72 / - CASE 33 WHEN + + ( - 63 ) THEN NULL WHEN 50 / 66 - - - 65 THEN + + CASE + 66 WHEN 54 + + 75 + COALESCE ( - CAST ( - 73 AS INTEGER ), - 42 / + 96, 84 ) THEN + 1 END END - + 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT - 16 * COUNT( * ) * + 62
----
-992

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - 16 * COUNT ( * ) * + 62
----
-992

query I rowsort
SELECT - 49 + + 28 AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT + 60 DIV + COALESCE ( - 50, 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-4802
SELECT + 60 / + COALESCE ( - 50, 98 )
----
-1

query I rowsort
SELECT ALL - 98 * 57
----
-5586

query I rowsort
SELECT DISTINCT 84 * COALESCE ( 58, + 86 )
----
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL COUNT( - + 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL COUNT ( - + 99 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4806
SELECT - COUNT( - 32 ) + - 25 AS col0, 98
----
-26
98

skipif mysql # not compatible
query II rowsort label-4806
SELECT - COUNT ( - 32 ) + - 25 AS col0, 98
----
-26
98

query I rowsort
SELECT DISTINCT ( - 84 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT DISTINCT + 53 * + + CAST( + 7 AS SIGNED ) AS col0
----
371

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT + 53 * + + CAST ( + 7 AS INTEGER ) AS col0
----
371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4809
SELECT ALL COUNT( 80 ) DIV - 43 + + 2 + + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL COUNT ( 80 ) / - 43 + + 2 + + COUNT ( * ) col1
----
3

query I rowsort
SELECT - - 4 * - 18 AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT ALL + 32 / CAST( NULL AS SIGNED ) / - + 32 + - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + 32 / CAST ( NULL AS INTEGER ) / - + 32 + - + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + - 93 + + 38 + + - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4812
SELECT + - 93 + + 38 + + - COUNT ( * ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + SUM( - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4813
SELECT + SUM ( - + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - - 13 + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4814
SELECT - - 13 + - COUNT ( * )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT DISTINCT + - 98 * + CAST( - SUM( DISTINCT - - 89 ) AS SIGNED ) AS col0
----
8722

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + - 98 * + CAST ( - SUM ( DISTINCT - - 89 ) AS INTEGER ) AS col0
----
8722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4816
SELECT ( 21 ) DIV COUNT( * ) + SUM( 85 )
----
106

skipif mysql # not compatible
query I rowsort label-4816
SELECT ( 21 ) / COUNT ( * ) + SUM ( 85 )
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT - 66 * 23 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT - 66 * 23 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 55 * ( - 66 ) AS col1
----
-3630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT ALL CAST( NULL AS SIGNED ) * - 56 + 4 + - 86 + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL CAST ( NULL AS INTEGER ) * - 56 + 4 + - 86 + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT - CASE + 62 WHEN - - 24 * + 23 / - 97 + 42 * + 83 * - 13 THEN NULL ELSE + 41 END * + 77 - - COUNT( * ) AS col1
----
-3156

skipif mysql # not compatible
query I rowsort label-4820
SELECT - CASE + 62 WHEN - - 24 * + 23 / - 97 + 42 * + 83 * - 13 THEN NULL ELSE + 41 END * + 77 - - COUNT ( * ) AS col1
----
-3156

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT - - 17 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-4821
SELECT - - 17 / 25
----
0

query I rowsort
SELECT 11 * - 24 + + 76 - + 72 + + 81
----
-179

query I rowsort
SELECT DISTINCT - 5 * 61 AS col0
----
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + + 36 + + - SUM( 50 ) * ( + 73 ) col1
----
-3614

skipif mysql # not compatible
query I rowsort label-4824
SELECT + + 36 + + - SUM ( 50 ) * ( + 73 ) col1
----
-3614

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL + 23 * COUNT( * ) + - - 90 - + + 75 * + SUM( DISTINCT 54 )
----
-3937

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + 23 * COUNT ( * ) + - - 90 - + + 75 * + SUM ( DISTINCT 54 )
----
-3937

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT + 57 + COUNT( * ) * + 41
----
98

skipif mysql # not compatible
query I rowsort label-4826
SELECT + 57 + COUNT ( * ) * + 41
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT + 37 * - ( + + 92 ) - COUNT( * ) + - + 59 AS col0
----
-3464

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT + 37 * - ( + + 92 ) - COUNT ( * ) + - + 59 AS col0
----
-3464

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT DISTINCT + 39 DIV + 64 * 81 * - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + 39 / + 64 * 81 * - 97 AS col0
----
0

query I rowsort
SELECT + 50 * + 45 AS col0
----
2250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4830
SELECT ALL CAST( 67 AS SIGNED ), + 99 * - 63 * - + 74 * + ( - 84 ) AS col2
----
67
-38769192

skipif mysql # not compatible
query II rowsort label-4830
SELECT ALL CAST ( 67 AS INTEGER ), + 99 * - 63 * - + 74 * + ( - 84 ) AS col2
----
67
-38769192

query I rowsort
SELECT ALL 38 * + 83
----
3154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4832
SELECT - 68 * 25 - - 66 + - MAX( + 84 ) - - 1 + ( - - CAST( + 19 AS SIGNED ) ) + + 6 + - 3 * + - 93 * + COALESCE ( - MIN( - 48 ), + - 46 * 58 * + 28 * - + 70 DIV - ( - 36 ) - COUNT( * ) * + COUNT( * ) ) * - 33 * MAX( ALL 96 ) * - 0 col0
----
-1692

skipif mysql # not compatible
query I rowsort label-4832
SELECT - 68 * 25 - - 66 + - MAX ( + 84 ) - - 1 + ( - - CAST ( + 19 AS INTEGER ) ) + + 6 + - 3 * + - 93 * + COALESCE ( - MIN ( - 48 ), + - 46 * 58 * + 28 * - + 70 / - ( - 36 ) - COUNT ( * ) * + COUNT ( * ) ) * - 33 * MAX ( ALL 96 ) * - 0 col0
----
-1692

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT + COUNT( * ) * MIN( DISTINCT + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4833
SELECT + COUNT ( * ) * MIN ( DISTINCT + 85 )
----
85

query I rowsort
SELECT + 67 + 95 AS col2
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT ALL 79 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL 79 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT COALESCE ( + 48, + 47 * - 37 + CASE + - 79 WHEN - 80 THEN COUNT( * ) ELSE + - 16 * - - 7 END ) * + + 45
----
2160

skipif mysql # not compatible
query I rowsort label-4836
SELECT COALESCE ( + 48, + 47 * - 37 + CASE + - 79 WHEN - 80 THEN COUNT ( * ) ELSE + - 16 * - - 7 END ) * + + 45
----
2160

query I rowsort
SELECT DISTINCT 96 * 46 * - + 78
----
-344448

query I rowsort
SELECT DISTINCT + 57 * + 6 AS col0
----
342

query I rowsort
SELECT 55 - - 56 col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT COALESCE ( 59, 76 * - - 31, COUNT( * ) ) + - 92
----
-33

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT COALESCE ( 59, 76 * - - 31, COUNT ( * ) ) + - 92
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4841
SELECT CASE 96 WHEN - - 64 * 22 * - COUNT( * ) THEN + 52 WHEN - 20 * - COUNT( * ) + + + COUNT( * ) THEN NULL ELSE + COUNT( * ) END - + COUNT( + + 28 ) col1, + 30 - 0 AS col0
----
0
30

skipif mysql # not compatible
query II rowsort label-4841
SELECT CASE 96 WHEN - - 64 * 22 * - COUNT ( * ) THEN + 52 WHEN - 20 * - COUNT ( * ) + + + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END - + COUNT ( + + 28 ) col1, + 30 - 0 AS col0
----
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL 36 + + COUNT( * ) * + SUM( ALL 8 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL 36 + + COUNT ( * ) * + SUM ( ALL 8 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL - MIN( DISTINCT 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - MIN ( DISTINCT 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT ( - + CAST( NULL AS SIGNED ) ) - - NULLIF ( - 23, 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT ( - + CAST ( NULL AS INTEGER ) ) - - NULLIF ( - 23, 38 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4845
SELECT 20 DIV - MIN( 64 ) + - 1 * - - 7
----
-7

skipif mysql # not compatible
query I rowsort label-4845
SELECT 20 / - MIN ( 64 ) + - 1 * - - 7
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4846
SELECT DISTINCT - 50 DIV + 18 DIV + - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + 20, - CAST( NULL AS SIGNED ) DIV 3, + - 97 DIV + - 87 + - 70 + - 35 * - + COUNT( * ) * - 0 AS col2
----
NULL
NULL
-69

skipif mysql # not compatible
query III rowsort label-4846
SELECT DISTINCT - 50 / + 18 / + - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 20, - CAST ( NULL AS INTEGER ) / 3, + - 97 / + - 87 + - 70 + - 35 * - + COUNT ( * ) * - 0 AS col2
----
NULL
NULL
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT ALL + - CAST( + 26 AS SIGNED ) + + 33 col1
----
7

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + - CAST ( + 26 AS INTEGER ) + + 33 col1
----
7

query I rowsort
SELECT ALL 39 * 92
----
3588

onlyif mysql # DIV for integer division: 
query I rowsort label-4849
SELECT 99 DIV - 41 col2
----
-2

skipif mysql # not compatible
query I rowsort label-4849
SELECT 99 / - 41 col2
----
-2

query I rowsort
SELECT - 83 + - ( - 24 ) col1
----
-59

query I rowsort
SELECT DISTINCT - - ( 2 ) AS col0
----
2

query I rowsort
SELECT ALL + NULLIF ( 42, 1 ) * NULLIF ( - 71, - + 42 * + 32 ) AS col0
----
-2982

query I rowsort
SELECT + 31 - + + 94
----
-63

query I rowsort
SELECT + 8 * + NULLIF ( 22, 10 ) + - 6 AS col0
----
170

query I rowsort
SELECT + ( + 87 ) * + COALESCE ( + 85, 46 ) AS col2
----
7395

query I rowsort
SELECT COALESCE ( - COALESCE ( 1, - + 45, - 72 ), 80, + + 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + 81 - - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 81 - - COUNT ( * ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT 17 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT 17 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL - 10 * COUNT( * ) + - 23
----
-33

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - 10 * COUNT ( * ) + - 23
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT 48 - + 91 + 89 + - 88 + 92 + + 41 * COUNT( * ) * SUM( ALL 8 ) AS col2
----
378

skipif mysql # not compatible
query I rowsort label-4860
SELECT 48 - + 91 + 89 + - 88 + 92 + + 41 * COUNT ( * ) * SUM ( ALL 8 ) AS col2
----
378

query I rowsort
SELECT DISTINCT - - 73 col0
----
73

query I rowsort
SELECT ALL - ( - - 71 ) col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4863
SELECT ALL 97 * COUNT( * ) * + 18 col1, + ( + + CAST( NULL AS SIGNED ) )
----
1746
NULL

skipif mysql # not compatible
query II rowsort label-4863
SELECT ALL 97 * COUNT ( * ) * + 18 col1, + ( + + CAST ( NULL AS INTEGER ) )
----
1746
NULL

query I rowsort
SELECT 40 + - + 74
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL - 43 * + SUM( ALL 73 ) AS col1
----
-3139

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - 43 * + SUM ( ALL 73 ) AS col1
----
-3139

query I rowsort
SELECT 11 + + - 75
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4867
SELECT 46 DIV 33 * - ( - - 69 ) * - - COUNT( * ) + + + ( + COALESCE ( + 73, COALESCE ( + 97, - 17 * - COALESCE ( + 48, + - ( + - 79 ) + - 48 ), + - 6 ), + 25 ) ) + - + 39
----
-35

skipif mysql # not compatible
query I rowsort label-4867
SELECT 46 / 33 * - ( - - 69 ) * - - COUNT ( * ) + + + ( + COALESCE ( + 73, COALESCE ( + 97, - 17 * - COALESCE ( + 48, + - ( + - 79 ) + - 48 ), + - 6 ), + 25 ) ) + - + 39
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT 44 AS col0, COUNT( * ) + + 90 * - 63 AS col0
----
44
-5669

skipif mysql # not compatible
query II rowsort label-4868
SELECT 44 AS col0, COUNT ( * ) + + 90 * - 63 AS col0
----
44
-5669

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT - COUNT( * ) * - 28 + - ( - 66 )
----
94

skipif mysql # not compatible
query I rowsort label-4869
SELECT - COUNT ( * ) * - 28 + - ( - 66 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT COUNT( 60 ) - + 58 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4870
SELECT COUNT ( 60 ) - + 58 AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4871
SELECT 30 + + NULLIF ( - 46, - - CAST( NULL AS DECIMAL ) * - - 41 ) - + ( - + 27 ) * - COUNT( * ) * - ( - COALESCE ( + - ( COUNT( * ) ), - - 75, COUNT( * ) DIV - 57 DIV - 47, - 29 ) ) * 24 AS col0
----
632

skipif mysql # not compatible
query I rowsort label-4871
SELECT 30 + + NULLIF ( - 46, - - CAST ( NULL AS REAL ) * - - 41 ) - + ( - + 27 ) * - COUNT ( * ) * - ( - COALESCE ( + - ( COUNT ( * ) ), - - 75, COUNT ( * ) / - 57 / - 47, - 29 ) ) * 24 AS col0
----
632

query I rowsort
SELECT 39 + - 71
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + COUNT( * ) * - 33 + - 41 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-4873
SELECT + COUNT ( * ) * - 33 + - 41 AS col1
----
-74

query I rowsort
SELECT ALL 31 + - NULLIF ( 3, - 63 ) * 18 + + 30 + - 58 * + 47 AS col2
----
-2719

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT 55 + + - MAX( 45 )
----
10

skipif mysql # not compatible
query I rowsort label-4875
SELECT 55 + + - MAX ( 45 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT + 53 + - SUM( ALL 38 ) + - + 55 - - 10 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT + 53 + - SUM ( ALL 38 ) + - + 55 - - 10 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT 84 + + + 91 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT 84 + + + 91 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT COUNT( + + 13 ) + - - 30
----
31

skipif mysql # not compatible
query I rowsort label-4878
SELECT COUNT ( + + 13 ) + - - 30
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT ALL + 81 + - - 43 + - 33 DIV 6
----
119

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + 81 + - - 43 + - 33 / 6
----
119

query I rowsort
SELECT ALL 89 * + 64
----
5696

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT DISTINCT + 91 + + COUNT( * ) - + + 40
----
52

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT + 91 + + COUNT ( * ) - + + 40
----
52

query I rowsort
SELECT ALL - 21 * + + 71 col2
----
-1491

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL MIN( DISTINCT 43 ) + + ( - 92 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL MIN ( DISTINCT 43 ) + + ( - 92 ) AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT DISTINCT CAST( NULL AS SIGNED ) * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 3 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 32 - 97
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4886
SELECT + CAST( - 64 AS SIGNED ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4886
SELECT + CAST ( - 64 AS INTEGER ) AS col2
----
-64

query I rowsort
SELECT - 29 + - + 52 * + 34 AS col0
----
-1797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT 17 * - 80 - + CASE - - 66 WHEN - 53 * + + CAST( + 36 AS SIGNED ) * + - 59 * - SUM( DISTINCT ( 60 ) ) - 93 THEN + CAST( - COUNT( * ) AS SIGNED ) ELSE ( + + 63 ) END * 0 AS col1
----
-1360

skipif mysql # not compatible
query I rowsort label-4888
SELECT 17 * - 80 - + CASE - - 66 WHEN - 53 * + + CAST ( + 36 AS INTEGER ) * + - 59 * - SUM ( DISTINCT ( 60 ) ) - 93 THEN + CAST ( - COUNT ( * ) AS INTEGER ) ELSE ( + + 63 ) END * 0 AS col1
----
-1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT - 3 * 28 * + COUNT( * ) + CAST( NULL AS SIGNED ) / + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT - 3 * 28 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) / + - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT 20 * + + 33 + ( 79 ) + 64 AS col1, 39 - + COUNT( * ) AS col2
----
803
38

skipif mysql # not compatible
query II rowsort label-4890
SELECT 20 * + + 33 + ( 79 ) + 64 AS col1, 39 - + COUNT ( * ) AS col2
----
803
38

query I rowsort
SELECT ALL 0 * - + 99
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4892
SELECT ALL + 45 DIV + + 20 + - 43 AS col0, 50 - + 90 col1
----
-41
-40

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL + 45 / + + 20 + - 43 AS col0, 50 - + 90 col1
----
-41
-40

query I rowsort
SELECT + 78 + 16 AS col0
----
94

query I rowsort
SELECT 32 * + - 16
----
-512

query I rowsort
SELECT ALL 62 * + 29 + + - 97 col1
----
1701

query II rowsort
SELECT ALL - 52 col2, 38
----
-52
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4897
SELECT + AVG ( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT + AVG ( + - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 14 * - 89
----
-1246

query I rowsort
SELECT 50 * + 78
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT CASE + COUNT( * ) WHEN - 47 THEN 85 + + 52 END * + 49 + 47 + 54 - + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT CASE + COUNT ( * ) WHEN - 47 THEN 85 + + 52 END * + 49 + 47 + 54 - + - 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT + CASE + 55 WHEN - COUNT( * ) THEN - 24 WHEN + + 6 THEN 17 WHEN - + CAST( + 91 AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT + CASE + 55 WHEN - COUNT ( * ) THEN - 24 WHEN + + 6 THEN 17 WHEN - + CAST ( + 91 AS INTEGER ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT - 44 * - + 29 * - CAST( 61 AS SIGNED ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT - 44 * - + 29 * - CAST ( 61 AS INTEGER ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL - 12 + 17 * - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - 12 + 17 * - COUNT ( * ) AS col0
----
-29

query III rowsort
SELECT + 35, + 42 + + ( + 95 ) + 32 * + 90 * 21 + - 78 * + - 0 AS col2, + 13 AS col0
----
35
60617
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4905
SELECT ALL CAST( NULL AS DECIMAL ) + + + COUNT( * ) AS col2, + 41 * + SUM( - 15 ) * - ( + - 45 ) + MIN( 25 ) AS col1
----
NULL
-27650

skipif mysql # not compatible
query II rowsort label-4905
SELECT ALL CAST ( NULL AS REAL ) + + + COUNT ( * ) AS col2, + 41 * + SUM ( - 15 ) * - ( + - 45 ) + MIN ( 25 ) AS col1
----
NULL
-27650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4906
SELECT 13 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
13
NULL

skipif mysql # not compatible
query II rowsort label-4906
SELECT 13 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
13
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4907
SELECT ALL CASE + 12 WHEN - 13 THEN - NULLIF ( 87, + 49 ) + + - 0 + - 77 + - - CAST( NULL AS SIGNED ) + + 57 / + COUNT( * ) WHEN - 10 + 82 * COUNT( * ) THEN 53 * COUNT( * ) ELSE - - 84 END col2
----
84

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL CASE + 12 WHEN - 13 THEN - NULLIF ( 87, + 49 ) + + - 0 + - 77 + - - CAST ( NULL AS INTEGER ) + + 57 / + COUNT ( * ) WHEN - 10 + 82 * COUNT ( * ) THEN 53 * COUNT ( * ) ELSE - - 84 END col2
----
84

query I rowsort
SELECT ALL - 12 + - 76 - 83
----
-171

query I rowsort
SELECT ALL + 49 + 95 AS col1
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT 13 * 96 DIV + + 1 - - 45
----
1293

skipif mysql # not compatible
query I rowsort label-4910
SELECT 13 * 96 / + + 1 - - 45
----
1293

query II rowsort
SELECT 13 col1, 15
----
13
15

query I rowsort
SELECT - 54 + + 1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4913
SELECT 21, CAST( NULL AS SIGNED ) col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-4913
SELECT 21, CAST ( NULL AS INTEGER ) col0
----
21
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT + 77 + - - NULLIF ( - CASE + 87 WHEN 67 THEN - 67 + + - 29 * - ( - 11 ) / + COUNT( * ) * - ( - + 69 ) * - COALESCE ( + - 4, CAST( 54 AS SIGNED ) + + - 15 + + COUNT( * ), + 79 ) ELSE NULL END, + 56 * - 67 + - 9 ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT + 77 + - - NULLIF ( - CASE + 87 WHEN 67 THEN - 67 + + - 29 * - ( - 11 ) / + COUNT ( * ) * - ( - + 69 ) * - COALESCE ( + - 4, CAST ( 54 AS INTEGER ) + + - 15 + + COUNT ( * ), + 79 ) ELSE NULL END, + 56 * - 67 + - 9 ) * - 28
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - 33, - 93 ) AS col0
----
33

query I rowsort
SELECT ALL + 50 + + 60 + 54
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT - NULLIF ( + 92, + SUM( - 14 ) + 91 ) * + - 54
----
4968

skipif mysql # not compatible
query I rowsort label-4917
SELECT - NULLIF ( + 92, + SUM ( - 14 ) + 91 ) * + - 54
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT - - 81 - - NULLIF ( COALESCE ( - 47, + 23 * - COUNT( * ) * + 73, - COUNT( * ) ), + ( + + 4 ) ) * + 94 AS col0
----
-4337

skipif mysql # not compatible
query I rowsort label-4918
SELECT - - 81 - - NULLIF ( COALESCE ( - 47, + 23 * - COUNT ( * ) * + 73, - COUNT ( * ) ), + ( + + 4 ) ) * + 94 AS col0
----
-4337

query II rowsort
SELECT ALL 34 col0, ( + 1 ) AS col1
----
34
1

query II rowsort
SELECT - 45, 59 AS col2
----
-45
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT - + 6 - + + COUNT( + 98 ) * - 43 AS col2, 77 * 80 - - 42 * - - 89 AS col2
----
37
9898

skipif mysql # not compatible
query II rowsort label-4921
SELECT - + 6 - + + COUNT ( + 98 ) * - 43 AS col2, 77 * 80 - - 42 * - - 89 AS col2
----
37
9898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT + CAST( + COUNT( * ) AS SIGNED ) * + + 62 + - 53 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4922
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + + 62 + - 53 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + - ( - + 19 ) + - MAX( 71 )
----
-52

skipif mysql # not compatible
query I rowsort label-4923
SELECT + - ( - + 19 ) + - MAX ( 71 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL - 26 - + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - 26 - + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - COUNT( * ) * MAX( DISTINCT 36 ) * + 51 * 8
----
-14688

skipif mysql # not compatible
query I rowsort label-4925
SELECT - COUNT ( * ) * MAX ( DISTINCT 36 ) * + 51 * 8
----
-14688

query I rowsort
SELECT - 18 + 5 + 51
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT - + COUNT( - - 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-4927
SELECT - + COUNT ( - - 95 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4928
SELECT + 1 - CAST( + COUNT( - - 86 ) AS SIGNED ) * - + 64 * - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-4928
SELECT + 1 - CAST ( + COUNT ( - - 86 ) AS INTEGER ) * - + 64 * - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT - + 54 * + COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4929
SELECT - + 54 * + COUNT ( * ) AS col0
----
-54

query I rowsort
SELECT DISTINCT + 16 * + - 54 AS col2
----
-864

query II rowsort
SELECT 82 AS col0, 42 * NULLIF ( 66, - 22 + 51 ) AS col2
----
82
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT + 76 * + 79 - - 65 + 81 + + - COALESCE ( - CASE + COALESCE ( - 70, 27 * MAX( - NULLIF ( + 43, + 15 ) ) / + AVG ( 39 ) + + CAST( NULL AS SIGNED ) - + 33 + + COALESCE ( - + COUNT( DISTINCT - 25 ), 44 * 6 + + COUNT( * ) ), 60 - NULLIF ( 66, 8 ) * - SUM( 36 ) ) WHEN + 47 - - MAX( 70 + + 35 ) * 74 THEN NULL WHEN + 91 THEN 81 END, + 36 ) * MIN( DISTINCT - 10 * + 76 ) * + CAST( 37 AS SIGNED ) col1
----
1018470

skipif mysql # not compatible
query I rowsort label-4932
SELECT + 76 * + 79 - - 65 + 81 + + - COALESCE ( - CASE + COALESCE ( - 70, 27 * MAX ( - NULLIF ( + 43, + 15 ) ) / + AVG ( 39 ) + + CAST ( NULL AS INTEGER ) - + 33 + + COALESCE ( - + COUNT ( DISTINCT - 25 ), 44 * 6 + + COUNT ( * ) ), 60 - NULLIF ( 66, 8 ) * - SUM ( 36 ) ) WHEN + 47 - - MAX ( 70 + + 35 ) * 74 THEN NULL WHEN + 91 THEN 81 END, + 36 ) * MIN ( DISTINCT - 10 * + 76 ) * + CAST ( 37 AS INTEGER ) col1
----
1018470

query II rowsort
SELECT ALL + - 50, + 77 + + ( - 85 ) AS col1
----
-50
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT 25 col0, + COUNT( * ) * + 29 AS col1
----
25
29

skipif mysql # not compatible
query II rowsort label-4934
SELECT 25 col0, + COUNT ( * ) * + 29 AS col1
----
25
29

query I rowsort
SELECT ( - + 34 )
----
-34

query I rowsort
SELECT + ( + 85 ) AS col0
----
85

query I rowsort
SELECT + 68 + + - ( - - 91 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL COUNT( - 44 ) * + 6 + 57 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL COUNT ( - 44 ) * + 6 + 57 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4939
SELECT + COUNT( * ) DIV + - 93 * NULLIF ( + + 51, + - CAST( NULL AS SIGNED ) * 83 )
----
0

skipif mysql # not compatible
query I rowsort label-4939
SELECT + COUNT ( * ) / + - 93 * NULLIF ( + + 51, + - CAST ( NULL AS INTEGER ) * 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT + MIN( - 35 ) - 61
----
-96

skipif mysql # not compatible
query I rowsort label-4940
SELECT + MIN ( - 35 ) - 61
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4941
SELECT DISTINCT ( COUNT( * ) ) DIV 19 + - - 45 + + 38 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT ( COUNT ( * ) ) / 19 + - - 45 + + 38 AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT DISTINCT + NULLIF ( + 72, + 10 - - - 58 + + 77 ) * - 72 + - COUNT( * ) AS col2, + COUNT( * ) + 40 * - + 12
----
-5185
-479

skipif mysql # not compatible
query II rowsort label-4942
SELECT DISTINCT + NULLIF ( + 72, + 10 - - - 58 + + 77 ) * - 72 + - COUNT ( * ) AS col2, + COUNT ( * ) + 40 * - + 12
----
-5185
-479

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT DISTINCT - 8 * - 87 AS col1, ( NULLIF ( + 8, + COALESCE ( 37, 87 ) * - - COUNT( * ) + 90 * - - 90 ) ) AS col0
----
696
8

skipif mysql # not compatible
query II rowsort label-4943
SELECT DISTINCT - 8 * - 87 AS col1, ( NULLIF ( + 8, + COALESCE ( 37, 87 ) * - - COUNT ( * ) + 90 * - - 90 ) ) AS col0
----
696
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL 5 * CASE 93 WHEN 61 / + + 34 * + 45 THEN 75 * - SUM( 46 ) + + 34 WHEN + COALESCE ( 84, 17 * - 99 + + - 85 ) THEN NULL WHEN - NULLIF ( 99, - + COUNT( * ) ) THEN NULL END + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL 5 * CASE 93 WHEN 61 / + + 34 * + 45 THEN 75 * - SUM ( 46 ) + + 34 WHEN + COALESCE ( 84, 17 * - 99 + + - 85 ) THEN NULL WHEN - NULLIF ( 99, - + COUNT ( * ) ) THEN NULL END + + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT + 18 * - 19 * - 60 + COUNT( * ) + + 8 col2, 38
----
20529
38

skipif mysql # not compatible
query II rowsort label-4945
SELECT + 18 * - 19 * - 60 + COUNT ( * ) + + 8 col2, 38
----
20529
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL 30 * + COUNT( * ) / + CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL 30 * + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 2 + - + 7 * + - 18
----
128

query I rowsort
SELECT DISTINCT 13 * 18 * 91 AS col0
----
21294

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL MAX( - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL MAX ( - 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT + MIN( ALL 18 ) + - 57 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4950
SELECT + MIN ( ALL 18 ) + - 57 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4951
SELECT - CAST( + - 21 AS SIGNED ) AS col0, - 92 + - ( COUNT( * ) )
----
21
-93

skipif mysql # not compatible
query II rowsort label-4951
SELECT - CAST ( + - 21 AS INTEGER ) AS col0, - 92 + - ( COUNT ( * ) )
----
21
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4952
SELECT ALL 92 * - 58 - - 16 - 49 * - 39 AS col0, COUNT( * ) DIV - 30 * + - 86
----
-3409
0

skipif mysql # not compatible
query II rowsort label-4952
SELECT ALL 92 * - 58 - - 16 - 49 * - 39 AS col0, COUNT ( * ) / - 30 * + - 86
----
-3409
0

query I rowsort
SELECT DISTINCT ( 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4954
SELECT ALL + 45 * - 24 * - 85 AS col2, COUNT( * ) DIV + ( + - COUNT( * ) ) AS col0
----
91800
-1

skipif mysql # not compatible
query II rowsort label-4954
SELECT ALL + 45 * - 24 * - 85 AS col2, COUNT ( * ) / + ( + - COUNT ( * ) ) AS col0
----
91800
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4955
SELECT DISTINCT NULLIF ( - + 5, + 49 / 58 * - CASE CAST( + MAX( DISTINCT - CASE 58 WHEN 56 + + - 44 THEN 31 + 80 + 33 - + 24 END ) AS SIGNED ) WHEN 52 * - 79 THEN + 84 ELSE NULL END - + AVG ( + 46 ) * 59 ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT NULLIF ( - + 5, + 49 / 58 * - CASE CAST ( + MAX ( DISTINCT - CASE 58 WHEN 56 + + - 44 THEN 31 + 80 + 33 - + 24 END ) AS INTEGER ) WHEN 52 * - 79 THEN + 84 ELSE NULL END - + AVG ( + 46 ) * 59 ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT - COALESCE ( 64, + + 34 + - 53 ) + + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-4956
SELECT - COALESCE ( 64, + + 34 + - 53 ) + + COUNT ( * )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT + - CAST( NULL AS SIGNED ) + - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT + - CAST ( NULL AS INTEGER ) + - 24 AS col1
----
NULL

query I rowsort
SELECT - + 58 + - 88 - 43 AS col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - CASE - 76 WHEN - + 23 THEN + + COUNT( * ) ELSE + 89 * 98 - + 30 - + 94 END
----
-8598

skipif mysql # not compatible
query I rowsort label-4959
SELECT - CASE - 76 WHEN - + 23 THEN + + COUNT ( * ) ELSE + 89 * 98 - + 30 - + 94 END
----
-8598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT - - CAST( 67 AS SIGNED ) + + 5 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4960
SELECT - - CAST ( 67 AS INTEGER ) + + 5 AS col1
----
72

query I rowsort
SELECT - - 83 * 94 * - 67 col0
----
-522734

onlyif mysql # aggregate s