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 syntax: 
query II rowsort label-4962
SELECT ALL + 78 * 32 col2, 1 * COUNT( * ) - ( - 77 ) + - 63 + - 64
----
2496
-49

skipif mysql # not compatible
query II rowsort label-4962
SELECT ALL + 78 * 32 col2, 1 * COUNT ( * ) - ( - 77 ) + - 63 + - 64
----
2496
-49

query I rowsort
SELECT - 47 + - COALESCE ( + + 14, - + 30 + 84 ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT ALL 91 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL 91 / 71
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT + 6 * - - 93 - + MIN( 67 )
----
491

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT + 6 * - - 93 - + MIN ( 67 )
----
491

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL + + 12 / CASE 11 WHEN + + 98 THEN NULL WHEN + COUNT( * ) THEN + + ( - COALESCE ( + SUM( ALL + 35 ), ( - ( + 97 ) ) / - 93 ) ) END + - 1 + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + + 12 / CASE 11 WHEN + + 98 THEN NULL WHEN + COUNT ( * ) THEN + + ( - COALESCE ( + SUM ( ALL + 35 ), ( - ( + 97 ) ) / - 93 ) ) END + - 1 + - 13 AS col1
----
NULL

query II rowsort
SELECT - + 57 * 35 AS col2, 35 AS col0
----
-1995
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4968
SELECT - NULLIF ( + + 65, + + NULLIF ( + - MAX( ALL - ( + 5 ) ), 92 ) ) DIV + COUNT( * ) - CAST( - 93 AS SIGNED ) + ( + 85 )
----
113

skipif mysql # not compatible
query I rowsort label-4968
SELECT - NULLIF ( + + 65, + + NULLIF ( + - MAX ( ALL - ( + 5 ) ), 92 ) ) / + COUNT ( * ) - CAST ( - 93 AS INTEGER ) + ( + 85 )
----
113

query I rowsort
SELECT + 40 * - + 78
----
-3120

query I rowsort
SELECT ALL 80 + - 73 + + 22 + - NULLIF ( + - 80, + 20 * - 70 * 28 ) + + 33 AS col0
----
142

query II rowsort
SELECT ALL - 4, 41 AS col0
----
-4
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4972
SELECT COUNT( * ) DIV - 39 * + - 71 + 19, - 9 - - - 6 col2
----
19
-15

skipif mysql # not compatible
query II rowsort label-4972
SELECT COUNT ( * ) / - 39 * + - 71 + 19, - 9 - - - 6 col2
----
19
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL + 21 * - CAST( - 41 AS SIGNED ) AS col2
----
861

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + 21 * - CAST ( - 41 AS INTEGER ) AS col2
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT MAX( - 26 ) + - 82
----
-108

skipif mysql # not compatible
query I rowsort label-4974
SELECT MAX ( - 26 ) + - 82
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) * + 58 + 55 + + ( - ( + 20 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 58 + 55 + + ( - ( + 20 ) )
----
NULL

query I rowsort
SELECT DISTINCT 67 + 68 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL 26 + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL 26 + + COUNT ( * )
----
27

query I rowsort
SELECT ( - 46 ) * 80 + - 17 + - ( 78 ) * 70
----
-9157

query II rowsort
SELECT 76, + 73 AS col2
----
76
73

query II rowsort
SELECT 46, + 59 * - 21 * - - 23 AS col1
----
46
-28497

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

skipif mysql # not compatible
query I rowsort label-4981
SELECT CAST ( NULL AS INTEGER ) * 55 + + 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4982
SELECT CAST( 12 AS SIGNED ) * - 55 + - MIN( + 98 ) * + CAST( 97 AS DECIMAL ) * + 71 * + + 80 + + 20 * CAST( NULL AS SIGNED ) * - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT CAST ( 12 AS INTEGER ) * - 55 + - MIN ( + 98 ) * + CAST ( 97 AS REAL ) * + 71 * + + 80 + + 20 * CAST ( NULL AS INTEGER ) * - + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL MIN( + 24 ) - + + 63 + COUNT( * ) + 10
----
-28

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL MIN ( + 24 ) - + + 63 + COUNT ( * ) + 10
----
-28

query I rowsort
SELECT ( + - 79 ) * + - 83
----
6557

query II rowsort
SELECT DISTINCT - 6 AS col1, 76
----
-6
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4986
SELECT + 54 AS col0, ( + 77 ) * CAST( - 20 AS SIGNED ) * + 83 * - 13 + + COUNT( * ) AS col1
----
54
1661661

skipif mysql # not compatible
query II rowsort label-4986
SELECT + 54 AS col0, ( + 77 ) * CAST ( - 20 AS INTEGER ) * + 83 * - 13 + + COUNT ( * ) AS col1
----
54
1661661

query I rowsort
SELECT ALL 19 * 35
----
665

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT 90 DIV 74
----
1

skipif mysql # not compatible
query I rowsort label-4988
SELECT 90 / 74
----
1

query I rowsort
SELECT ALL 30 * + - 9
----
-270

query II rowsort
SELECT DISTINCT 13 AS col0, 21
----
13
21

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

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

query I rowsort
SELECT DISTINCT - ( + + 85 ) * + 54
----
-4590

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

skipif mysql # not compatible
query I rowsort label-4993
SELECT + COUNT ( * ) / + - 24 - - 81
----
81

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT + 0 + + COUNT( ALL + 99 ), ( + 21 ) * + SUM( - 36 ) AS col2
----
1
-756

skipif mysql # not compatible
query II rowsort label-4995
SELECT + 0 + + COUNT ( ALL + 99 ), ( + 21 ) * + SUM ( - 36 ) AS col2
----
1
-756

onlyif mysql # aggregate syntax: 
query II rowsort label-4996
SELECT 99 AS col0, COUNT( * ) AS col1
----
99
1

skipif mysql # not compatible
query II rowsort label-4996
SELECT 99 AS col0, COUNT ( * ) AS col1
----
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4997
SELECT COUNT( * ) AS col0, 87 * - + 13 AS col0
----
1
-1131

skipif mysql # not compatible
query II rowsort label-4997
SELECT COUNT ( * ) AS col0, 87 * - + 13 AS col0
----
1
-1131

onlyif mysql # DIV for integer division: 
query II rowsort label-4998
SELECT ALL 9, - 75 DIV + - 70 AS col1
----
9
1

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL 9, - 75 / + - 70 AS col1
----
9
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4999
SELECT - 31 AS col2, + 96 + 19 * - NULLIF ( 13, - 19 * + 48 ) * + - COUNT( ALL + 46 ) col2
----
-31
343

skipif mysql # not compatible
query II rowsort label-4999
SELECT - 31 AS col2, + 96 + 19 * - NULLIF ( 13, - 19 * + 48 ) * + - COUNT ( ALL + 46 ) col2
----
-31
343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT DISTINCT SUM( - - 8 ) + + + 2 + 0 DIV - 86 * + 24
----
10

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT SUM ( - - 8 ) + + + 2 + 0 / - 86 * + 24
----
10

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

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

query I rowsort
SELECT ALL CASE - - 92 WHEN - 9 + 12 * + 34 + - - 3 / + + 81 + 22 THEN - + 88 END AS col1
----
NULL

query I rowsort
SELECT - 49 - - ( 1 ) AS col1
----
-48

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

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

query I rowsort
SELECT + 58 * + + 50
----
2900

query I rowsort
SELECT ALL + 66 + COALESCE ( - 8, - 10 )
----
58

query I rowsort
SELECT ALL + 91 + - 4 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5008
SELECT - - 48, + ( - 67 ) + + 84 + NULLIF ( + CASE COUNT( * ) WHEN - 73 * + + 84 * + 10 + - 22 + + 50 * 78 THEN + 76 WHEN ( COALESCE ( + 53, + + 4 + - - CASE - 80 WHEN + - 23 + + CASE - + 67 WHEN 45 THEN NULL WHEN CAST( 9 AS DECIMAL ) THEN 60 / 43 END * 49 THEN COUNT( * ) + 74 ELSE NULL END ) ) * 19 + 39 * COUNT( + 86 ) THEN NULL END, 0 + COUNT( ALL 21 ) * + 82 ) - 77 / - COALESCE ( - 32, 70 + 37 ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-5008
SELECT - - 48, + ( - 67 ) + + 84 + NULLIF ( + CASE COUNT ( * ) WHEN - 73 * + + 84 * + 10 + - 22 + + 50 * 78 THEN + 76 WHEN ( COALESCE ( + 53, + + 4 + - - CASE - 80 WHEN + - 23 + + CASE - + 67 WHEN 45 THEN NULL WHEN CAST ( 9 AS REAL ) THEN 60 / 43 END * 49 THEN COUNT ( * ) + 74 ELSE NULL END ) ) * 19 + 39 * COUNT ( + 86 ) THEN NULL END, 0 + COUNT ( ALL 21 ) * + 82 ) - 77 / - COALESCE ( - 32, 70 + 37 ) AS col1
----
48
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT + COUNT( * ) + + 56 + + 91 DIV - 95 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5009
SELECT + COUNT ( * ) + + 56 + + 91 / - 95 AS col0
----
57

query I rowsort
SELECT - - ( 98 ) col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT COUNT( * ) * - + 89 DIV - + 43 - - 41 + 0 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5011
SELECT COUNT ( * ) * - + 89 / - + 43 - - 41 + 0 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL COUNT( * ) + - - 21 + - - 75 + - + SUM( - 8 ) * - + 89 AS col2
----
-615

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL COUNT ( * ) + - - 21 + - - 75 + - + SUM ( - 8 ) * - + 89 AS col2
----
-615

query I rowsort
SELECT DISTINCT ( + + 9 ) + + 51 + - + 2 + 28 AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5014
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 58 AS col0, 21 * + 25 AS col0
----
NULL
525

skipif mysql # not compatible
query II rowsort label-5014
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 58 AS col0, 21 * + 25 AS col0
----
NULL
525

query I rowsort
SELECT DISTINCT + 98 + + 77 + 66
----
241

query I rowsort
SELECT DISTINCT - 35 + 1 col1
----
-34

query I rowsort
SELECT 39 * - 8
----
-312

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT ALL - 53 DIV - + 4 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - 53 / - + 4 AS col0
----
13

query I rowsort
SELECT 17 * 39 + + 37
----
700

query I rowsort
SELECT 81 - + 69
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT 64 + + 98 * - + 81 - + + 58 * + MIN( 92 ) AS col2
----
-13210

skipif mysql # not compatible
query I rowsort label-5022
SELECT 64 + + 98 * - + 81 - + + 58 * + MIN ( 92 ) AS col2
----
-13210

query II rowsort
SELECT ALL - 18 - + + 12 AS col0, 37
----
-30
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ALL + 63 * + COUNT( * ) * + + ( + 82 )
----
5166

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL + 63 * + COUNT ( * ) * + + ( + 82 )
----
5166

query II rowsort
SELECT DISTINCT - 73 * + 5 col1, + 14 * - + 46 * 32
----
-365
-20608

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5026
SELECT ALL + 18 - - CAST( + ( - + ( + 26 ) ) AS SIGNED ) DIV + 85 + + + ( 23 )
----
41

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + 18 - - CAST ( + ( - + ( + 26 ) ) AS INTEGER ) / + 85 + + + ( 23 )
----
41

query I rowsort
SELECT ALL - 64 * - 95 col0
----
6080

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT 91 * - + 16 * - 36 + - + COUNT( * ), 59 AS col0
----
52415
59

skipif mysql # not compatible
query II rowsort label-5028
SELECT 91 * - + 16 * - 36 + - + COUNT ( * ), 59 AS col0
----
52415
59

query I rowsort
SELECT 80 + + - 25 * + 95
----
-2295

query I rowsort
SELECT 18 * + ( 18 ) AS col0
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT - NULLIF ( - - CASE WHEN 94 NOT BETWEEN + - 74 AND NULL THEN + NULLIF ( - 90, - 37 / COUNT( DISTINCT - ( - - 23 ) ) ) ELSE NULL END, - COALESCE ( + - 87, - 47 * + + AVG ( + - 2 ) ) ) - + 81 + - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT - NULLIF ( - - CASE WHEN 94 NOT BETWEEN + - 74 AND NULL THEN + NULLIF ( - 90, - 37 / COUNT ( DISTINCT - ( - - 23 ) ) ) ELSE NULL END, - COALESCE ( + - 87, - 47 * + + AVG ( + - 2 ) ) ) - + 81 + - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT - ( - ( 96 ) ) * + - 46 * - COUNT( * ) AS col2
----
4416

skipif mysql # not compatible
query I rowsort label-5032
SELECT - ( - ( 96 ) ) * + - 46 * - COUNT ( * ) AS col2
----
4416

query I rowsort
SELECT - 97 * + - 7 AS col0
----
679

query I rowsort
SELECT ALL - 56 * NULLIF ( + 45, + 36 ) + + 88
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + 20 + 98 * SUM( DISTINCT + - 1 ) * + - COUNT( * ) + + COUNT( * ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-5035
SELECT + 20 + 98 * SUM ( DISTINCT + - 1 ) * + - COUNT ( * ) + + COUNT ( * ) AS col0
----
119

query I rowsort
SELECT ( - 4 ) + + NULLIF ( 70, + + 72 ) AS col0
----
66

query I rowsort
SELECT CASE + 8 WHEN AVG ( ALL + 53 ) THEN - + 66 WHEN - 17 * - 50 - - - 41 THEN NULL WHEN - 57 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 12 + - + 82 * + + 16 AS col2
----
-1300

query I rowsort
SELECT + 95 + - + 96
----
-1

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

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

query I rowsort
SELECT - 83 + 95 * + + 71
----
6662

query I rowsort
SELECT ALL - ( - - 79 ) + 97
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT COUNT( * ) + MAX( - 67 ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT COUNT ( * ) + MAX ( - 67 ) col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + + MIN( ALL - 32 ) + + + 24 * 85
----
2008

skipif mysql # not compatible
query I rowsort label-5044
SELECT + + MIN ( ALL - 32 ) + + + 24 * 85
----
2008

query II rowsort
SELECT + 15 + - ( + 46 ) col1, 98
----
-31
98

query I rowsort
SELECT DISTINCT - 49 - 41 - - 52
----
-38

query II rowsort
SELECT 71 AS col2, 29
----
71
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT DISTINCT AVG ( + - COALESCE ( + 36, NULLIF ( - - 18, + 31 ) ) ) * 39 / + - CAST( NULL AS SIGNED ) * + - 36 - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT AVG ( + - COALESCE ( + 36, NULLIF ( - - 18, + 31 ) ) ) * 39 / + - CAST ( NULL AS INTEGER ) * + - 36 - - 80
----
NULL

query I rowsort
SELECT + 61 * - 19
----
-1159

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - 67 * - CASE - - 80 WHEN 94 THEN + - 46 END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT - 67 * - CASE - - 80 WHEN 94 THEN + - 46 END * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5051
SELECT CASE 87 WHEN + CAST( CAST( - 77 AS SIGNED ) AS SIGNED ) * + 20 THEN 95 * 25 END AS col0, - 18
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-5051
SELECT CASE 87 WHEN + CAST ( CAST ( - 77 AS INTEGER ) AS INTEGER ) * + 20 THEN 95 * 25 END AS col0, - 18
----
NULL
-18

query I rowsort
SELECT ALL + NULLIF ( + 47, + + 49 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT + CASE + 65 WHEN COUNT( * ) / + COUNT( * ) THEN + 69 / - - 84 * - + 13 / + AVG ( + 64 ) + - 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT + CASE + 65 WHEN COUNT ( * ) / + COUNT ( * ) THEN + 69 / - - 84 * - + 13 / + AVG ( + 64 ) + - 19 END AS col1
----
NULL

query I rowsort
SELECT - 61 + + 13
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - COUNT( * ) * - 65 * 55 AS col0
----
3575

skipif mysql # not compatible
query I rowsort label-5055
SELECT - COUNT ( * ) * - 65 * 55 AS col0
----
3575

query I rowsort
SELECT DISTINCT 55 * + - ( - + 26 )
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT COALESCE ( + 93, + COUNT( + 38 ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5057
SELECT COALESCE ( + 93, + COUNT ( + 38 ) ) AS col0
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT + 23 * COUNT( * ) - + 48 * - + 49 + - 14 + - - CASE 56 WHEN + ( + 73 ) THEN - 74 * AVG ( DISTINCT + 76 ) + - COUNT( * ) WHEN - - 3 * - 61 THEN NULL END * - COUNT( * ) + + 24 + - - AVG ( + + 65 ) * + - COALESCE ( 25, - - 95, 25 ) * + AVG ( DISTINCT 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT + 23 * COUNT ( * ) - + 48 * - + 49 + - 14 + - - CASE 56 WHEN + ( + 73 ) THEN - 74 * AVG ( DISTINCT + 76 ) + - COUNT ( * ) WHEN - - 3 * - 61 THEN NULL END * - COUNT ( * ) + + 24 + - - AVG ( + + 65 ) * + - COALESCE ( 25, - - 95, 25 ) * + AVG ( DISTINCT 53 )
----
NULL

query I rowsort
SELECT CASE - 10 WHEN - 56 * + 87 THEN NULL WHEN + 10 THEN - 67 * + + 3 / 34 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT NULLIF ( - + 83, 70 * COUNT( * ) * - - 86 - COUNT( + 31 ) * COUNT( * ) + + 98 + + - MIN( - + 62 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-5061
SELECT NULLIF ( - + 83, 70 * COUNT ( * ) * - - 86 - COUNT ( + 31 ) * COUNT ( * ) + + 98 + + - MIN ( - + 62 ) )
----
-83

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5063
SELECT - CASE COUNT( * ) WHEN + 76 * ( + CAST( - - 38 AS SIGNED ) ) * 84 THEN NULL ELSE 83 + + 40 END * 83, - 83 AS col1
----
-10209
-83

skipif mysql # not compatible
query II rowsort label-5063
SELECT - CASE COUNT ( * ) WHEN + 76 * ( + CAST ( - - 38 AS INTEGER ) ) * 84 THEN NULL ELSE 83 + + 40 END * 83, - 83 AS col1
----
-10209
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5064
SELECT + MAX( ALL + ( + 79 ) ) AS col1, 4 * 67
----
79
268

skipif mysql # not compatible
query II rowsort label-5064
SELECT + MAX ( ALL + ( + 79 ) ) AS col1, 4 * 67
----
79
268

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5067
SELECT + 43, - CAST( - 14 AS SIGNED ) AS col0
----
43
14

skipif mysql # not compatible
query II rowsort label-5067
SELECT + 43, - CAST ( - 14 AS INTEGER ) AS col0
----
43
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL + + COUNT( DISTINCT - 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL + + COUNT ( DISTINCT - 49 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL - 93 * + MAX( ALL - - ( 86 ) ) + + 93 + + 37 * + - 95 + - COUNT( * ) AS col2
----
-11421

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - 93 * + MAX ( ALL - - ( 86 ) ) + + 93 + + 37 * + - 95 + - COUNT ( * ) AS col2
----
-11421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5070
SELECT DISTINCT + CASE + NULLIF ( - 99, + 35 / + 1 + - - 6 + - AVG ( ALL 16 ) ) WHEN CASE + 86 WHEN 55 THEN - CAST( + + 68 AS SIGNED ) WHEN + 46 THEN 52 END THEN COUNT( * ) WHEN + 18 THEN NULL WHEN + + COUNT( * ) * COUNT( * ) THEN NULL END * + + ( 7 ) * 10 + - 62 col2, 74
----
NULL
74

skipif mysql # not compatible
query II rowsort label-5070
SELECT DISTINCT + CASE + NULLIF ( - 99, + 35 / + 1 + - - 6 + - AVG ( ALL 16 ) ) WHEN CASE + 86 WHEN 55 THEN - CAST ( + + 68 AS INTEGER ) WHEN + 46 THEN 52 END THEN COUNT ( * ) WHEN + 18 THEN NULL WHEN + + COUNT ( * ) * COUNT ( * ) THEN NULL END * + + ( 7 ) * 10 + - 62 col2, 74
----
NULL
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT DISTINCT - + 78 * - + 88 + - 15 - + NULLIF ( CAST( ( 2 ) AS SIGNED ), - 4 + - 1 ) - - + 33 * + - 33 + + 24 * + - 15 + - COALESCE ( + 76, 52, 98 )
----
5322

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - + 78 * - + 88 + - 15 - + NULLIF ( CAST ( ( 2 ) AS INTEGER ), - 4 + - 1 ) - - + 33 * + - 33 + + 24 * + - 15 + - COALESCE ( + 76, 52, 98 )
----
5322

onlyif mysql # aggregate syntax: 
query II rowsort label-5072
SELECT DISTINCT + + 98 + - + 63 + + COUNT( * ), + 44 * + ( - 93 ) AS col0
----
36
-4092

skipif mysql # not compatible
query II rowsort label-5072
SELECT DISTINCT + + 98 + - + 63 + + COUNT ( * ), + 44 * + ( - 93 ) AS col0
----
36
-4092

query I rowsort
SELECT + - ( - - 14 ) * + 29 AS col2
----
-406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT ALL COALESCE ( + - NULLIF ( 13, + ( - + 77 ) + + COUNT( * ) ), - SUM( DISTINCT - 68 ), + - 94 + 66 + - 81 * 13 + + ( 87 ) * + + 36 + - 79 + + 65 + 36 + 86 + - 7 * + - 26 + 98 * - CAST( NULL AS SIGNED ), 99 * 85 ) * - 87 AS col2
----
1131

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL COALESCE ( + - NULLIF ( 13, + ( - + 77 ) + + COUNT ( * ) ), - SUM ( DISTINCT - 68 ), + - 94 + 66 + - 81 * 13 + + ( 87 ) * + + 36 + - 79 + + 65 + 36 + 86 + - 7 * + - 26 + 98 * - CAST ( NULL AS INTEGER ), 99 * 85 ) * - 87 AS col2
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - NULLIF ( + 7, SUM( + 96 ) + 22 / - 25 * - 38 )
----
-7

skipif mysql # not compatible
query I rowsort label-5075
SELECT - NULLIF ( + 7, SUM ( + 96 ) + 22 / - 25 * - 38 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5076
SELECT ALL - 50 - + CAST( NULL AS SIGNED ) * CASE 73 WHEN + COUNT( * ) THEN - - 6 ELSE - - 6 END * 42 + - - 67 + + + 27 + - - CAST( - 6 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - 50 - + CAST ( NULL AS INTEGER ) * CASE 73 WHEN + COUNT ( * ) THEN - - 6 ELSE - - 6 END * 42 + - - 67 + + + 27 + - - CAST ( - 6 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5077
SELECT + - 70 + - + CAST( NULL AS SIGNED ) * - + 80 + + ( - 43 ) col1, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5077
SELECT + - 70 + - + CAST ( NULL AS INTEGER ) * - + 80 + + ( - 43 ) col1, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT - COUNT( * ), + 9 col0
----
-1
9

skipif mysql # not compatible
query II rowsort label-5078
SELECT - COUNT ( * ), + 9 col0
----
-1
9

query II rowsort
SELECT 76, 61 AS col0
----
76
61

query I rowsort
SELECT ALL 97 * - 29 AS col1
----
-2813

query I rowsort
SELECT ALL 56 * + 30 AS col0
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5082
SELECT - COUNT( + 21 ) + CASE + - SUM( CAST( + - 86 AS SIGNED ) ) WHEN - + 51 THEN NULL ELSE - COUNT( * ) * + 27 + + + 1 + + - COUNT( * ) END DIV - - 56 + - 25
----
-26

skipif mysql # not compatible
query I rowsort label-5082
SELECT - COUNT ( + 21 ) + CASE + - SUM ( CAST ( + - 86 AS INTEGER ) ) WHEN - + 51 THEN NULL ELSE - COUNT ( * ) * + 27 + + + 1 + + - COUNT ( * ) END / - - 56 + - 25
----
-26

query I rowsort
SELECT + ( + 70 ) * - 83 AS col1
----
-5810

query I rowsort
SELECT + 38 + + 14
----
52

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

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

query II rowsort
SELECT ALL 26, 64 + - 18 - + 21 * + 46 AS col1
----
26
-920

query III rowsort
SELECT 62, 4 AS col2, - + 4 - + + 8 - 84 AS col1
----
62
4
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT + 13 * 65 - + 99 + NULLIF ( - COUNT( ALL - + 87 ), ( + + SUM( + - 42 ) ) ) - MAX( + + 51 ) * + 48 * 13 + + 79 + - COUNT( * ) AS col2
----
-31001

skipif mysql # not compatible
query I rowsort label-5089
SELECT + 13 * 65 - + 99 + NULLIF ( - COUNT ( ALL - + 87 ), ( + + SUM ( + - 42 ) ) ) - MAX ( + + 51 ) * + 48 * 13 + + 79 + - COUNT ( * ) AS col2
----
-31001

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5091
SELECT ALL + 19, CAST( NULL AS SIGNED ) AS col0, 17 * - 40 * - COUNT( * ) + + 59 - + NULLIF ( 14, - + SUM( 32 ) / - - CAST( NULL AS DECIMAL ) - - 12 * 85 ) + 7 + + 12 * + - 25 + + + ( + 36 ) + + NULLIF ( + ( + COUNT( * ) ), - 13 ) AS col0
----
19
NULL
469

skipif mysql # not compatible
query III rowsort label-5091
SELECT ALL + 19, CAST ( NULL AS INTEGER ) AS col0, 17 * - 40 * - COUNT ( * ) + + 59 - + NULLIF ( 14, - + SUM ( 32 ) / - - CAST ( NULL AS REAL ) - - 12 * 85 ) + 7 + + 12 * + - 25 + + + ( + 36 ) + + NULLIF ( + ( + COUNT ( * ) ), - 13 ) AS col0
----
19
NULL
469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT + CAST( + - 22 AS SIGNED ) + + 91 - + 63 / - ( + + 56 ) - 90 + - CAST( NULL AS SIGNED ) + 88 * + 14 / - - ( - - 69 ) + - 82 * - 74 * - 30 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT + CAST ( + - 22 AS INTEGER ) + + 91 - + 63 / - ( + + 56 ) - 90 + - CAST ( NULL AS INTEGER ) + 88 * + 14 / - - ( - - 69 ) + - 82 * - 74 * - 30 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5093
SELECT ALL + 35, + CASE ( 95 ) WHEN - COUNT( DISTINCT + 53 ) THEN NULL WHEN + 51 THEN NULL ELSE - 71 * + 53 END AS col2
----
35
-3763

skipif mysql # not compatible
query II rowsort label-5093
SELECT ALL + 35, + CASE ( 95 ) WHEN - COUNT ( DISTINCT + 53 ) THEN NULL WHEN + 51 THEN NULL ELSE - 71 * + 53 END AS col2
----
35
-3763

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + ( + MAX( ALL + + 91 ) ) + - ( SUM( DISTINCT - 30 ) ) + + + 56 * 70
----
4041

skipif mysql # not compatible
query I rowsort label-5094
SELECT + ( + MAX ( ALL + + 91 ) ) + - ( SUM ( DISTINCT - 30 ) ) + + + 56 * 70
----
4041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5095
SELECT ALL 84 * CAST( COUNT( ALL - 28 ) AS SIGNED ) * - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL 84 * CAST ( COUNT ( ALL - 28 ) AS INTEGER ) * - COUNT ( * )
----
-84

query I rowsort
SELECT - 95 - + 65 * + 63
----
-4190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5097
SELECT + 5, CAST( - ( + ( + 51 ) ) AS SIGNED ) * + - ( - - NULLIF ( ( ( 48 ) ), + CASE - MAX( + 13 ) WHEN - 55 THEN - - ( - - COALESCE ( + + 33, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) ELSE NULL END ) ) AS col0
----
5
2448

skipif mysql # not compatible
query II rowsort label-5097
SELECT + 5, CAST ( - ( + ( + 51 ) ) AS INTEGER ) * + - ( - - NULLIF ( ( ( 48 ) ), + CASE - MAX ( + 13 ) WHEN - 55 THEN - - ( - - COALESCE ( + + 33, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) ELSE NULL END ) ) AS col0
----
5
2448

query II rowsort
SELECT ALL + 60 AS col2, - 86 col1
----
60
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5099
SELECT ALL + 1 * - CAST( NULL AS SIGNED ), 94 * + + 60 AS col0
----
NULL
5640

skipif mysql # not compatible
query II rowsort label-5099
SELECT ALL + 1 * - CAST ( NULL AS INTEGER ), 94 * + + 60 AS col0
----
NULL
5640

query I rowsort
SELECT - 48 * 64
----
-3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5101
SELECT DISTINCT + 71 DIV 36 + + ( 0 ) DIV - ( - 75 ) AS col0, 56 * - 38 * + COUNT( * ) + + 96 AS col1
----
1
-2032

skipif mysql # not compatible
query II rowsort label-5101
SELECT DISTINCT + 71 / 36 + + ( 0 ) / - ( - 75 ) AS col0, 56 * - 38 * + COUNT ( * ) + + 96 AS col1
----
1
-2032

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL - ( - 78 ) * COALESCE ( NULLIF ( - 17, - - 75 / - - 24 ), - SUM( + 83 ), + - 68 ) + + - 13 + - ( 89 )
----
-1428

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - ( - 78 ) * COALESCE ( NULLIF ( - 17, - - 75 / - - 24 ), - SUM ( + 83 ), + - 68 ) + + - 13 + - ( 89 )
----
-1428

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT ALL + - 63 DIV - 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + - 63 / - 70 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL + 32 * - - MAX( DISTINCT - ( - 67 ) ) + - ( 74 ) + 23 + 63 + 14 * + COUNT( * ) * - NULLIF ( - 58, - + CASE + ( - CASE - 96 WHEN + - ( + 21 ) / 27 * - 25 THEN + MIN( + + 47 ) + - + CASE + 69 WHEN + 50 + 40 THEN CASE - 52 WHEN + 49 THEN NULL WHEN 43 THEN 82 ELSE NULL END * - 41 + 34 * + COALESCE ( 34 / COUNT( * ), - 48 + 35 ) END + 14 WHEN - NULLIF ( 51, - ( CASE 43 WHEN 77 THEN ( 85 ) WHEN + COALESCE ( 0, 31, 38 ) * 29 THEN AVG ( 46 ) ELSE 9 END ) * 16 ) + - 63 THEN NULL ELSE + 57 END ) WHEN - 63 + + 45 THEN + CAST( NULL AS SIGNED ) / + CASE - 44 WHEN COUNT( * ) / - 56 - 53 THEN NULL WHEN 72 * - 51 - 40 THEN NULL WHEN 54 THEN - ( 88 ) + - NULLIF ( COUNT( * ) + COUNT( * ), 57 / + 24 ) ELSE NULL END WHEN + 32 + + ( 94 + MIN( 21 ) * - 59 ) THEN AVG ( ALL 16 ) END - - 10 ) + 79 AS col0
----
3047

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + 32 * - - MAX ( DISTINCT - ( - 67 ) ) + - ( 74 ) + 23 + 63 + 14 * + COUNT ( * ) * - NULLIF ( - 58, - + CASE + ( - CASE - 96 WHEN + - ( + 21 ) / 27 * - 25 THEN + MIN ( + + 47 ) + - + CASE + 69 WHEN + 50 + 40 THEN CASE - 52 WHEN + 49 THEN NULL WHEN 43 THEN 82 ELSE NULL END * - 41 + 34 * + COALESCE ( 34 / COUNT ( * ), - 48 + 35 ) END + 14 WHEN - NULLIF ( 51, - ( CASE 43 WHEN 77 THEN ( 85 ) WHEN + COALESCE ( 0, 31, 38 ) * 29 THEN AVG ( 46 ) ELSE 9 END ) * 16 ) + - 63 THEN NULL ELSE + 57 END ) WHEN - 63 + + 45 THEN + CAST ( NULL AS INTEGER ) / + CASE - 44 WHEN COUNT ( * ) / - 56 - 53 THEN NULL WHEN 72 * - 51 - 40 THEN NULL WHEN 54 THEN - ( 88 ) + - NULLIF ( COUNT ( * ) + COUNT ( * ), 57 / + 24 ) ELSE NULL END WHEN + 32 + + ( 94 + MIN ( 21 ) * - 59 ) THEN AVG ( ALL 16 ) END - - 10 ) + 79 AS col0
----
3047

query I rowsort
SELECT ALL + + 35 * COALESCE ( - 50, - 58 * 31 * 67 + + + NULLIF ( + 56, 89 ) ) + + 96 + + 93 * + 21 AS col0
----
299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5107
SELECT ALL + - CAST( 0 AS SIGNED ) / + COUNT( * ) * CASE - COUNT( * ) WHEN - AVG ( DISTINCT + 10 ) THEN CASE + 59 WHEN SUM( + 49 ) THEN NULL WHEN + ( + 0 ) THEN - 3 ELSE NULL END END * + 85 * - - 83 AS col1, - 32 AS col1
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-5107
SELECT ALL + - CAST ( 0 AS INTEGER ) / + COUNT ( * ) * CASE - COUNT ( * ) WHEN - AVG ( DISTINCT + 10 ) THEN CASE + 59 WHEN SUM ( + 49 ) THEN NULL WHEN + ( + 0 ) THEN - 3 ELSE NULL END END * + 85 * - - 83 AS col1, - 32 AS col1
----
NULL
-32

query I rowsort
SELECT 13 + + 85
----
98

query II rowsort
SELECT ALL - + 8, 14 AS col0
----
-8
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5110
SELECT DISTINCT - + 58 + ( - COALESCE ( - + COALESCE ( - 69, + 2 DIV COUNT( * ) + + 53, - 65 * + CAST( MIN( DISTINCT + 88 ) AS SIGNED ) ), + 75 ) ) * - COALESCE ( - + 88, + 79 + - + 33 DIV - 43, 58 * - 90 - + 47 ) * - COUNT( * ) + + 87 AS col1
----
6101

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT - + 58 + ( - COALESCE ( - + COALESCE ( - 69, + 2 / COUNT ( * ) + + 53, - 65 * + CAST ( MIN ( DISTINCT + 88 ) AS INTEGER ) ), + 75 ) ) * - COALESCE ( - + 88, + 79 + - + 33 / - 43, 58 * - 90 - + 47 ) * - COUNT ( * ) + + 87 AS col1
----
6101

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT DISTINCT - 74 AS col1, - 16 + - + 93 - 44 + + NULLIF ( COUNT( * ), - 5 * - COUNT( * ) * 43 ) * - 34 AS col1
----
-74
-187

skipif mysql # not compatible
query II rowsort label-5111
SELECT DISTINCT - 74 AS col1, - 16 + - + 93 - 44 + + NULLIF ( COUNT ( * ), - 5 * - COUNT ( * ) * 43 ) * - 34 AS col1
----
-74
-187

query I rowsort
SELECT ALL - 54 - + 9 + 53 * 63 * + - ( 68 )
----
-227115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5113
SELECT 92 * ( 71 ) * - + CAST( NULL AS SIGNED ) * + + ( + 47 ), COUNT( ALL + - 61 ) + - 85 + - + 24 AS col2
----
NULL
-108

skipif mysql # not compatible
query II rowsort label-5113
SELECT 92 * ( 71 ) * - + CAST ( NULL AS INTEGER ) * + + ( + 47 ), COUNT ( ALL + - 61 ) + - 85 + - + 24 AS col2
----
NULL
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-5114
SELECT ALL 68, 93 * - COUNT( * ) - + 56 AS col1
----
68
-149

skipif mysql # not compatible
query II rowsort label-5114
SELECT ALL 68, 93 * - COUNT ( * ) - + 56 AS col1
----
68
-149

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5116
SELECT ALL COUNT( * ), - 63 DIV - - NULLIF ( 97, + 35 ) + + COUNT( * ) + 34 AS col0
----
1
35

skipif mysql # not compatible
query II rowsort label-5116
SELECT ALL COUNT ( * ), - 63 / - - NULLIF ( 97, + 35 ) + + COUNT ( * ) + 34 AS col0
----
1
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT ALL + - 16 - + 7 / - 41 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + - 16 - + 7 / - 41 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT SUM( ALL - 60 ) * + 75 AS col1
----
-4500

skipif mysql # not compatible
query I rowsort label-5119
SELECT SUM ( ALL - 60 ) * + 75 AS col1
----
-4500

query II rowsort
SELECT - + 18 AS col0, - 76
----
-18
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT MIN( DISTINCT + + 80 ) + + 47 + + SUM( + 58 ) + - 92 + - CAST( + COUNT( * ) AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-5121
SELECT MIN ( DISTINCT + + 80 ) + + 47 + + SUM ( + 58 ) + - 92 + - CAST ( + COUNT ( * ) AS INTEGER )
----
92

query I rowsort
SELECT 65 * + 46 AS col2
----
2990

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

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL COUNT ( * ) * - NULLIF ( + COUNT ( * ), 27 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT 0 + + - CAST( + + 80 AS SIGNED ) + - 30 + ( + - 56 ) AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-5124
SELECT 0 + + - CAST ( + + 80 AS INTEGER ) + - 30 + ( + - 56 ) AS col1
----
-166

query I rowsort
SELECT ALL + 5 * 65 AS col0
----
325

onlyif mysql # aggregate syntax: 
query II rowsort label-5126
SELECT COUNT( DISTINCT + 50 ) * + NULLIF ( - - 89, + 75 * + 25 ) * COUNT( * ) + 58 AS col1, 10 AS col0
----
147
10

skipif mysql # not compatible
query II rowsort label-5126
SELECT COUNT ( DISTINCT + 50 ) * + NULLIF ( - - 89, + 75 * + 25 ) * COUNT ( * ) + 58 AS col1, 10 AS col0
----
147
10

query I rowsort
SELECT ALL 60 + - 34 + 46 + 97 AS col0
----
169

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT 99 DIV 42 * 85 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-5129
SELECT 99 / 42 * 85 AS col2
----
170

query I rowsort
SELECT ALL 54 + + + 63 AS col2
----
117

query I rowsort
SELECT 5 * - 65
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL COALESCE ( - 39, + - 1 * 6 * + 79 ) + + - MAX( - + 19 ) + + - 62 * + - 47 AS col0
----
2894

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL COALESCE ( - 39, + - 1 * 6 * + 79 ) + + - MAX ( - + 19 ) + + - 62 * + - 47 AS col0
----
2894

query I rowsort
SELECT DISTINCT + 32 + 93
----
125

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

skipif mysql # not compatible
query I rowsort label-5134
SELECT COUNT ( - 79 ) * + 2 * + COUNT ( * ) * - 76 AS col1
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT ALL + CAST( + 4 AS SIGNED ) * + + 8
----
32

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + CAST ( + 4 AS INTEGER ) * + + 8
----
32

query I rowsort
SELECT ( 53 ) * - 70
----
-3710

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL - + 56 - COUNT( ALL + - 21 ) + - 2 + + 98 * NULLIF ( + 12, 8 ) * + MIN( 25 )
----
29341

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - + 56 - COUNT ( ALL + - 21 ) + - 2 + + 98 * NULLIF ( + 12, 8 ) * + MIN ( 25 )
----
29341

onlyif mysql # aggregate syntax: 
query II rowsort label-5139
SELECT ALL - MIN( - + 40 ) AS col0, + 68 AS col1
----
40
68

skipif mysql # not compatible
query II rowsort label-5139
SELECT ALL - MIN ( - + 40 ) AS col0, + 68 AS col1
----
40
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT - + NULLIF ( 97, COUNT( + - 36 ) * 66 ) * + + 53 - SUM( DISTINCT - 44 ) AS col0
----
-5097

skipif mysql # not compatible
query I rowsort label-5140
SELECT - + NULLIF ( 97, COUNT ( + - 36 ) * 66 ) * + + 53 - SUM ( DISTINCT - 44 ) AS col0
----
-5097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT DISTINCT + 56 * 14 + - + CASE 69 WHEN + 66 * 98 + - + 46 * + - 11 THEN - + 93 * COUNT( * ) ELSE - COUNT( * ) - + 67 END * + CAST( - COUNT( * ) AS SIGNED )
----
716

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + 56 * 14 + - + CASE 69 WHEN + 66 * 98 + - + 46 * + - 11 THEN - + 93 * COUNT ( * ) ELSE - COUNT ( * ) - + 67 END * + CAST ( - COUNT ( * ) AS INTEGER )
----
716

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT ALL + 34 DIV - 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL + 34 / - 28 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT + 55 DIV 15 + - - 91 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5143
SELECT + 55 / 15 + - - 91 AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5144
SELECT - - MAX( DISTINCT - 59 ) AS col1, 70
----
-59
70

skipif mysql # not compatible
query II rowsort label-5144
SELECT - - MAX ( DISTINCT - 59 ) AS col1, 70
----
-59
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT + 82 + + + 75 * COALESCE ( 31, + - 19 * - + 59 * - COUNT( * ) + + - CAST( NULL AS SIGNED ) ) AS col1
----
2407

skipif mysql # not compatible
query I rowsort label-5145
SELECT + 82 + + + 75 * COALESCE ( 31, + - 19 * - + 59 * - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) ) AS col1
----
2407

query I rowsort
SELECT 0 + - 1
----
-1

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

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

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

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

query I rowsort
SELECT 74 * ( 12 )
----
888

query I rowsort
SELECT 93 + + 76 * - 17 AS col2
----
-1199

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL SUM( ALL + - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL SUM ( ALL + - 47 ) AS col1
----
-47

query I rowsort
SELECT 0 * 97
----
0

query I rowsort
SELECT DISTINCT + 18 * ( - 83 )
----
-1494

query I rowsort
SELECT 90 * + + 17
----
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT ALL - COUNT( * ) + - 80 + - + ( - - 30 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - COUNT ( * ) + - 80 + - + ( - - 30 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT ALL + 73 DIV 57 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL + 73 / 57 AS col0
----
1

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

query I rowsort
SELECT DISTINCT - - 79 * - 93 AS col0
----
-7347

query I rowsort
SELECT - - 45 * + + 1 + + 46 + + 96 * ( 11 ) * - - 98 AS col2
----
103579

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5161
SELECT + - 84 * 18 + - + 53 * + - 24 * + 43 + - - 25 + + 74 - 57 + NULLIF ( + 56, - + 92 / - CAST( NULL AS SIGNED ) ) * + - 72 AS col0, + 46 * 98 + NULLIF ( 72, + + 55 ) - 71 * 13 * 40 + - 70
----
49194
-32410

skipif mysql # not compatible
query II rowsort label-5161
SELECT + - 84 * 18 + - + 53 * + - 24 * + 43 + - - 25 + + 74 - 57 + NULLIF ( + 56, - + 92 / - CAST ( NULL AS INTEGER ) ) * + - 72 AS col0, + 46 * 98 + NULLIF ( 72, + + 55 ) - 71 * 13 * 40 + - 70
----
49194
-32410

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT 68 * CASE 41 WHEN 64 THEN - 39 ELSE + 15 END + + - 96 - + + COALESCE ( - - COUNT( * ), - 13 )
----
923

skipif mysql # not compatible
query I rowsort label-5162
SELECT 68 * CASE 41 WHEN 64 THEN - 39 ELSE + 15 END + + - 96 - + + COALESCE ( - - COUNT ( * ), - 13 )
----
923

query I rowsort
SELECT DISTINCT + 76 * - 36
----
-2736

onlyif mysql # aggregate syntax: 
query II rowsort label-5164
SELECT DISTINCT + 4 col0, COUNT( * ) * + 68 + + COUNT( * )
----
4
69

skipif mysql # not compatible
query II rowsort label-5164
SELECT DISTINCT + 4 col0, COUNT ( * ) * + 68 + + COUNT ( * )
----
4
69

query I rowsort
SELECT ALL - - 31 * + 22 * + 13 - + + 27 + 77
----
8916

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT CASE 8 WHEN 46 + + COALESCE ( + COUNT( * ), AVG ( DISTINCT - 11 ) ) THEN + 58 * MIN( - ( 49 ) ) * 97 + ( COUNT( * ) ) / + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT CASE 8 WHEN 46 + + COALESCE ( + COUNT ( * ), AVG ( DISTINCT - 11 ) ) THEN + 58 * MIN ( - ( 49 ) ) * 97 + ( COUNT ( * ) ) / + 27 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5167
SELECT ( CASE + 82 WHEN - ( + COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) * - CAST( NULL AS DECIMAL ) - - 18 + - + 9 * + - 93 * + 14 ) ) * + 87 * + 1 THEN NULLIF ( NULLIF ( - 67, - - 50 - + 25 ), - + 44 * + COUNT( * ) + + - 61 ) WHEN - SUM( + 9 ) THEN + 75 WHEN - + 51 * 2 - 88 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT ( CASE + 82 WHEN - ( + COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) * - CAST ( NULL AS REAL ) - - 18 + - + 9 * + - 93 * + 14 ) ) * + 87 * + 1 THEN NULLIF ( NULLIF ( - 67, - - 50 - + 25 ), - + 44 * + COUNT ( * ) + + - 61 ) WHEN - SUM ( + 9 ) THEN + 75 WHEN - + 51 * 2 - 88 THEN NULL END )
----
NULL

query I rowsort
SELECT + - 83 + - 71
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5169
SELECT + COALESCE ( - AVG ( + + 27 ), - CAST( NULL AS SIGNED ) ) * + ( - NULLIF ( + COUNT( * ), 1 ) ) AS col1, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-5169
SELECT + COALESCE ( - AVG ( + + 27 ), - CAST ( NULL AS INTEGER ) ) * + ( - NULLIF ( + COUNT ( * ), 1 ) ) AS col1, 70
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL + - CASE + 10 WHEN - 48 * - - CASE + + 36 WHEN - 41 * 57 - AVG ( - + CAST( NULL AS SIGNED ) ) + - ( + ( - + 22 ) ) * 57 * AVG ( DISTINCT 1 ) / - 94 THEN - 30 * + 65 + - - 51 * + 89 WHEN - + 41 * + - 20 * - 69 + COUNT( * ) THEN - 36 END * ( + - 84 ) + - 34 * ( 39 * 96 ) THEN 97 WHEN + 58 * 88 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL + - CASE + 10 WHEN - 48 * - - CASE + + 36 WHEN - 41 * 57 - AVG ( - + CAST ( NULL AS INTEGER ) ) + - ( + ( - + 22 ) ) * 57 * AVG ( DISTINCT 1 ) / - 94 THEN - 30 * + 65 + - - 51 * + 89 WHEN - + 41 * + - 20 * - 69 + COUNT ( * ) THEN - 36 END * ( + - 84 ) + - 34 * ( 39 * 96 ) THEN 97 WHEN + 58 * 88 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT - 36 + + CASE - - 7 WHEN + COUNT( * ) THEN 72 END * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT - 36 + + CASE - - 7 WHEN + COUNT ( * ) THEN 72 END * 49 AS col2
----
NULL

query II rowsort
SELECT + - 32 AS col1, + 81 * - 31 AS col1
----
-32
-2511

query I rowsort
SELECT + 80 * + 16
----
1280

query I rowsort
SELECT ALL 19 * COALESCE ( + ( - - 53 ), NULLIF ( - 55, - 51 + 30 ), + NULLIF ( - 2, + AVG ( DISTINCT + + 98 ) ) ) + - 97 + 57 - - 37 AS col2
----
1004

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - SUM( ALL + + NULLIF ( + 19, + 90 + - 0 ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5175
SELECT - SUM ( ALL + + NULLIF ( + 19, + 90 + - 0 ) ) AS col2
----
-19

query II rowsort
SELECT ALL 38 * 81, 64 + 40 - + 13 col0
----
3078
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5177
SELECT ALL MIN( - 90 ) AS col1, - 1 + + COUNT( * ) + - + 37 + + 99
----
-90
62

skipif mysql # not compatible
query II rowsort label-5177
SELECT ALL MIN ( - 90 ) AS col1, - 1 + + COUNT ( * ) + - + 37 + + 99
----
-90
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL - CASE 27 WHEN - 50 - + 16 + - + AVG ( DISTINCT - 20 ) THEN NULL ELSE - 13 - - 6 END + + + COUNT( * ) - - 45
----
53

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - CASE 27 WHEN - 50 - + 16 + - + AVG ( DISTINCT - 20 ) THEN NULL ELSE - 13 - - 6 END + + + COUNT ( * ) - - 45
----
53

query I rowsort
SELECT + 85 * + 51
----
4335

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT - 2 DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5180
SELECT - 2 / 62 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT + MAX( + 3 ) + 40 + + 78 - 55 * - - 57
----
-3014

skipif mysql # not compatible
query I rowsort label-5182
SELECT + MAX ( + 3 ) + 40 + + 78 - 55 * - - 57
----
-3014

query I rowsort
SELECT - 72 + + + NULLIF ( - 35, 7 ) * 35
----
-1297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5184
SELECT DISTINCT - CASE 73 WHEN + + 35 THEN + 13 + 63 + CASE - 50 WHEN + + 98 * - + 44 + - 25 + 23 * - + NULLIF ( 7, + - 67 ) + COUNT( * ) + - + 33 THEN NULL ELSE CAST( NULL AS SIGNED ) END END + - - 15 + + - COUNT( DISTINCT + CAST( + 63 AS SIGNED ) ) * 91 - - CASE COALESCE ( - 28, + SUM( ALL 3 ) + - CAST( NULL AS SIGNED ) + MAX( ALL 86 ) ) WHEN 80 * - 39 THEN 80 WHEN 46 - + ( COUNT( * ) - 74 ) THEN 23 WHEN ( + 10 ) THEN COUNT( * ) ELSE - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - CASE 73 WHEN + + 35 THEN + 13 + 63 + CASE - 50 WHEN + + 98 * - + 44 + - 25 + 23 * - + NULLIF ( 7, + - 67 ) + COUNT ( * ) + - + 33 THEN NULL ELSE CAST ( NULL AS INTEGER ) END END + - - 15 + + - COUNT ( DISTINCT + CAST ( + 63 AS INTEGER ) ) * 91 - - CASE COALESCE ( - 28, + SUM ( ALL 3 ) + - CAST ( NULL AS INTEGER ) + MAX ( ALL 86 ) ) WHEN 80 * - 39 THEN 80 WHEN 46 - + ( COUNT ( * ) - 74 ) THEN 23 WHEN ( + 10 ) THEN COUNT ( * ) ELSE - COUNT ( * ) END
----
NULL

query II rowsort
SELECT - ( - 42 ) AS col2, - 21
----
42
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL + SUM( - 0 ) + + + 34
----
34

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + SUM ( - 0 ) + + + 34
----
34

query I rowsort
SELECT ALL - 42 * + 78 col1
----
-3276

query I rowsort
SELECT DISTINCT CASE - 81 WHEN 52 THEN - - 26 END + - + 8 + + 47
----
NULL

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

query I rowsort
SELECT ALL - 69 * - - 48
----
-3312

query I rowsort
SELECT - 13 + 84
----
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5193
SELECT - CAST( + 96 AS SIGNED ) col1, 29 AS col0
----
-96
29

skipif mysql # not compatible
query II rowsort label-5193
SELECT - CAST ( + 96 AS INTEGER ) col1, 29 AS col0
----
-96
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5194
SELECT DISTINCT CASE - 50 WHEN - + 50 + + ( - + 2 ) THEN NULL WHEN COUNT( * ) THEN ( - - 77 ) * + + AVG ( ALL + 96 ) * CASE + 40 WHEN + + NULLIF ( 65, + 13 ) THEN NULL WHEN 68 THEN + NULLIF ( - + 98, + - ( + 1 ) * + COUNT( * ) + + 44 ) ELSE + 80 END ELSE - 4 DIV - 38 * - - COALESCE ( + - 31, ( + - 63 ) * 79, + 50 ) + CASE - 44 WHEN - 95 THEN MIN( ALL 74 ) WHEN - COUNT( * ) THEN NULL ELSE CAST( ( MAX( ALL + 73 ) ) AS SIGNED ) END END
----
73

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT CASE - 50 WHEN - + 50 + + ( - + 2 ) THEN NULL WHEN COUNT ( * ) THEN ( - - 77 ) * + + AVG ( ALL + 96 ) * CASE + 40 WHEN + + NULLIF ( 65, + 13 ) THEN NULL WHEN 68 THEN + NULLIF ( - + 98, + - ( + 1 ) * + COUNT ( * ) + + 44 ) ELSE + 80 END ELSE - 4 / - 38 * - - COALESCE ( + - 31, ( + - 63 ) * 79, + 50 ) + CASE - 44 WHEN - 95 THEN MIN ( ALL 74 ) WHEN - COUNT ( * ) THEN NULL ELSE CAST ( ( MAX ( ALL + 73 ) ) AS INTEGER ) END END
----
73

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

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

query I rowsort
SELECT - - 97 + - + 22 AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5197
SELECT ALL + COALESCE ( + 53, NULLIF ( + NULLIF ( - 65, NULLIF ( + - 43, + 73 * COUNT( * ) ) + - - COUNT( * ) ), - 95 * 29 ) - - COUNT( * ), - 83 ) AS col0, - 75 AS col0
----
53
-75

skipif mysql # not compatible
query II rowsort label-5197
SELECT ALL + COALESCE ( + 53, NULLIF ( + NULLIF ( - 65, NULLIF ( + - 43, + 73 * COUNT ( * ) ) + - - COUNT ( * ) ), - 95 * 29 ) - - COUNT ( * ), - 83 ) AS col0, - 75 AS col0
----
53
-75

query I rowsort
SELECT ALL + 67 * 91 * + + 56 * - - 81 + + - 84
----
27655908

query I rowsort
SELECT + ( + COALESCE ( - 21, + - 88, 52 ) )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5200
SELECT - - ( 77 ) DIV - 1 - - MIN( DISTINCT - + 27 ) + - 97 * + - 49 + + 10 + + 70
----
4729

skipif mysql # not compatible
query I rowsort label-5200
SELECT - - ( 77 ) / - 1 - - MIN ( DISTINCT - + 27 ) + - 97 * + - 49 + + 10 + + 70
----
4729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5201
SELECT DISTINCT + + CASE + 0 WHEN - 1 * - + 10 + - COALESCE ( - 27, + + COALESCE ( COUNT( DISTINCT - - 69 ), + NULLIF ( COALESCE ( 27, - - CAST( - 27 AS SIGNED ), + ( - NULLIF ( + + 44, - 75 ) ) ), - + 25 * - - 38 + COUNT( * ) * + + 32 ), - 76 ), - AVG ( + - 58 ) ) THEN 71 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + + CASE + 0 WHEN - 1 * - + 10 + - COALESCE ( - 27, + + COALESCE ( COUNT ( DISTINCT - - 69 ), + NULLIF ( COALESCE ( 27, - - CAST ( - 27 AS INTEGER ), + ( - NULLIF ( + + 44, - 75 ) ) ), - + 25 * - - 38 + COUNT ( * ) * + + 32 ), - 76 ), - AVG ( + - 58 ) ) THEN 71 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL - + 10 * - CASE + 61 WHEN + 30 - 89 * - COALESCE ( + 51, - CAST( NULL AS SIGNED ) ) - 57 THEN + 88 WHEN - 69 * - COALESCE ( - + 40, - 74 ) + - - COUNT( * ) THEN NULL END * - 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL - + 10 * - CASE + 61 WHEN + 30 - 89 * - COALESCE ( + 51, - CAST ( NULL AS INTEGER ) ) - 57 THEN + 88 WHEN - 69 * - COALESCE ( - + 40, - 74 ) + - - COUNT ( * ) THEN NULL END * - 54 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - + 9 * + - 0 AS col0
----
0

query I rowsort
SELECT - 64 * - + NULLIF ( + + 45, 12 / - 16 ) col0
----
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5206
SELECT DISTINCT 68 * 54 DIV + 10 + + - MIN( - 29 ) + - - 38 + + 9 * + COUNT( - - 61 ) + + + ( - 44 )
----
399

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT 68 * 54 / + 10 + + - MIN ( - 29 ) + - - 38 + + 9 * + COUNT ( - - 61 ) + + + ( - 44 )
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL + COUNT( * ) * - + MIN( DISTINCT + 86 ) + - 57
----
-143

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + COUNT ( * ) * - + MIN ( DISTINCT + 86 ) + - 57
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL ( + 16 ) * + ( - + COUNT( * ) ) + - COUNT( * ) + - 23 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL ( + 16 ) * + ( - + COUNT ( * ) ) + - COUNT ( * ) + - 23 AS col2
----
-40

query II rowsort
SELECT DISTINCT + 32 AS col1, 12
----
32
12

query I rowsort
SELECT + 61 * 18
----
1098

query I rowsort
SELECT ALL 22 * - 90 + + + 53 - - 21
----
-1906

query I rowsort
SELECT + ( - ( - 17 ) ) + + - 48 + - + 28
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + COUNT( * ) + - 18 + + 18 - ( + + 19 ) * 80 AS col1
----
-1519

skipif mysql # not compatible
query I rowsort label-5213
SELECT + COUNT ( * ) + - 18 + + 18 - ( + + 19 ) * 80 AS col1
----
-1519

query I rowsort
SELECT + 31 - + 44
----
-13

query I rowsort
SELECT ALL 37 * + 10 AS col2
----
370

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

skipif mysql # not compatible
query I rowsort label-5216
SELECT MAX ( ALL 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT ALL ( ( - MIN( DISTINCT - - 33 ) ) ) + COUNT( * ) * - - 0 / - - 44 * + 77 + + 47 + COUNT( * ) * + COUNT( ALL 44 ) * - 5 + ( + - 26 ) + 81 * - - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + 91 ) / CAST( NULL AS SIGNED ) / 5 * + ( + ( - NULLIF ( 86, + MAX( 93 ) * - AVG ( + 92 ) * - + 28 - - 29 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL ( ( - MIN ( DISTINCT - - 33 ) ) ) + COUNT ( * ) * - - 0 / - - 44 * + 77 + + 47 + COUNT ( * ) * + COUNT ( ALL 44 ) * - 5 + ( + - 26 ) + 81 * - - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + 91 ) / CAST ( NULL AS INTEGER ) / 5 * + ( + ( - NULLIF ( 86, + MAX ( 93 ) * - AVG ( + 92 ) * - + 28 - - 29 ) ) ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL COALESCE ( + 60, + 81 * 13 ) AS col0
----
60

query I rowsort
SELECT DISTINCT + ( 47 ) - + - 50
----
97

query I rowsort
SELECT + 72 + + 71 * - - ( ( - - 30 ) ) AS col1
----
2202

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT COUNT( * ) * - 14 * + - 77 AS col1
----
1078

skipif mysql # not compatible
query I rowsort label-5222
SELECT COUNT ( * ) * - 14 * + - 77 AS col1
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT COUNT( * ) + + 35 - 97 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5223
SELECT COUNT ( * ) + + 35 - 97 AS col1
----
-61

query II rowsort
SELECT - 11 AS col2, 37
----
-11
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT - - 25 - + - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT - - 25 - + - COUNT ( * ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT ALL + - SUM( + CAST( NULL AS SIGNED ) ) / - 93 col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL - - NULLIF ( - - 51, + ( 66 ) ) * 28 + - 93 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - - NULLIF ( - - 51, + ( 66 ) ) * 28 + - 93 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL 11 - + CASE + 91 WHEN - + COUNT( * ) / ( - ( - 24 ) ) * 0 THEN NULL WHEN - 37 * - - 88 THEN NULL ELSE + 37 - 2 END AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL 11 - + CASE + 91 WHEN - + COUNT ( * ) / ( - ( - 24 ) ) * 0 THEN NULL WHEN - 37 * - - 88 THEN NULL ELSE + 37 - 2 END AS col2
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5229
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT - CAST ( NULL AS REAL ) * 4
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5231
SELECT 5 * - 48 / 69 + + MAX( DISTINCT ( 68 ) ) - - ( + COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT 5 * - 48 / 69 + + MAX ( DISTINCT ( 68 ) ) - - ( + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - - 7 * + + 19 + - MAX( + - 92 ) + + 27 + - 60
----
192

skipif mysql # not compatible
query I rowsort label-5232
SELECT - - 7 * + + 19 + - MAX ( + - 92 ) + + 27 + - 60
----
192

query I rowsort
SELECT COALESCE ( + - 32, 60 ) - - 45
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5234
SELECT COUNT( DISTINCT 50 ) * 40, 44 AS col1
----
40
44

skipif mysql # not compatible
query II rowsort label-5234
SELECT COUNT ( DISTINCT 50 ) * 40, 44 AS col1
----
40
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT 50 * - NULLIF ( - + 60, 25 * + 26 * + 44 + - + COUNT( * ) * + + 45 + - - 72 ) + 34 + - ( - 1 ) - + 90 AS col0
----
2945

skipif mysql # not compatible
query I rowsort label-5235
SELECT 50 * - NULLIF ( - + 60, 25 * + 26 * + 44 + - + COUNT ( * ) * + + 45 + - - 72 ) + 34 + - ( - 1 ) - + 90 AS col0
----
2945

query I rowsort
SELECT DISTINCT 14 * - 69 AS col1
----
-966

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT 30 DIV - 11 - - ( 36 ) * ( 70 )
----
2518

skipif mysql # not compatible
query I rowsort label-5238
SELECT 30 / - 11 - - ( 36 ) * ( 70 )
----
2518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT ALL + 94 + - CAST( - 53 AS SIGNED ) * 94 AS col1
----
5076

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL + 94 + - CAST ( - 53 AS INTEGER ) * 94 AS col1
----
5076

query I rowsort
SELECT + + ( + 77 ) * + 61 * + ( 17 ) + 62 AS col0
----
79911

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - 32 + + - MAX( ALL + ( + + 4 ) ) + + + COUNT( * ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - 32 + + - MAX ( ALL + ( + + 4 ) ) + + + COUNT ( * ) col2
----
-35

query I rowsort
SELECT 74 * - ( - + 76 ) AS col1
----
5624

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

skipif mysql # not compatible
query II rowsort label-5243
SELECT 46 AS col0, COUNT ( * ) AS col0
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT 12 + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5244
SELECT 12 + COUNT ( * ) AS col2
----
13

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

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL - 14 + + CAST ( - 70 AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 81 * + 47 + 2
----
-3805

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

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

query I rowsort
SELECT ALL + 69 * - 34
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL - 14 + CASE WHEN NOT + 15 < - 91 - + - 44 THEN 52 * MIN( - 74 ) + 78 * + 45 + - 1 + - + 83 * - 10 * - 27 * COALESCE ( 86, ( - ( - COUNT( * ) ) ) * - 77 - + 92 * - ( 70 ) ) + 59 END + + - 74 AS col0
----
-1927628

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL - 14 + CASE WHEN NOT + 15 < - 91 - + - 44 THEN 52 * MIN ( - 74 ) + 78 * + 45 + - 1 + - + 83 * - 10 * - 27 * COALESCE ( 86, ( - ( - COUNT ( * ) ) ) * - 77 - + 92 * - ( 70 ) ) + 59 END + + - 74 AS col0
----
-1927628

query II rowsort
SELECT DISTINCT 82 AS col2, + 28
----
82
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5251
SELECT ALL 33 AS col1, + 8 + 76 + - - 5 DIV COUNT( * ) * - 9 AS col0
----
33
39

skipif mysql # not compatible
query II rowsort label-5251
SELECT ALL 33 AS col1, + 8 + 76 + - - 5 / COUNT ( * ) * - 9 AS col0
----
33
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT NULLIF ( + - 13, - + COUNT( ALL - 16 ) + MAX( - 11 ) / + ( 85 ) + - 68 ) + 44 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5252
SELECT NULLIF ( + - 13, - + COUNT ( ALL - 16 ) + MAX ( - 11 ) / + ( 85 ) + - 68 ) + 44 AS col1
----
31

query I rowsort
SELECT 28 * - 92 AS col0
----
-2576

query II rowsort
SELECT ALL 44 col2, - 44 + - - ( - 20 )
----
44
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT MIN( DISTINCT + 24 ) * + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5255
SELECT MIN ( DISTINCT + 24 ) * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT CASE - COALESCE ( - ( - ( - COUNT( * ) ) ), + 57 * - - MIN( DISTINCT + 30 ) ) WHEN COUNT( * ) * - 63 + - 10 THEN CAST( 4 AS SIGNED ) WHEN - 40 THEN NULL END + - - 13 + + - CAST( NULL AS SIGNED ) * 87 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT CASE - COALESCE ( - ( - ( - COUNT ( * ) ) ), + 57 * - - MIN ( DISTINCT + 30 ) ) WHEN COUNT ( * ) * - 63 + - 10 THEN CAST ( 4 AS INTEGER ) WHEN - 40 THEN NULL END + - - 13 + + - CAST ( NULL AS INTEGER ) * 87 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT DISTINCT + ( - 68 ) * 87 * 69 * - 14 + - 55 + - COUNT( * ) * 78 AS col2
----
5714723

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT + ( - 68 ) * 87 * 69 * - 14 + - 55 + - COUNT ( * ) * 78 AS col2
----
5714723

query I rowsort
SELECT - 17 * - 5 col1
----
85

query I rowsort
SELECT - 26 + - + 55 AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT CASE + + COUNT( DISTINCT - 21 ) WHEN - - 73 / COUNT( * ) + - + 87 THEN + 12 WHEN + + 87 THEN NULL ELSE NULL END + - CAST( 11 AS SIGNED ) + - 43 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT CASE + + COUNT ( DISTINCT - 21 ) WHEN - - 73 / COUNT ( * ) + - + 87 THEN + 12 WHEN + + 87 THEN NULL ELSE NULL END + - CAST ( 11 AS INTEGER ) + - 43 col2
----
NULL

query II rowsort
SELECT DISTINCT 9 AS col2, + 39 * + 34
----
9
1326

query I rowsort
SELECT 27 + NULLIF ( 32, + + 81 ) col1
----
59

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

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - MAX ( - 36 )
----
36

query I rowsort
SELECT DISTINCT 41 + - + 67 AS col0
----
-26

query I rowsort
SELECT ( + 95 ) * 27 AS col1
----
2565

onlyif mysql # DIV for integer division: 
query I rowsort label-5266
SELECT 50 + - 52 DIV - 62
----
50

skipif mysql # not compatible
query I rowsort label-5266
SELECT 50 + - 52 / - 62
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT 76 * - 10 + - 66 DIV SUM( ALL 65 ) * - 16 DIV - 32 + + 32 - + 66 AS col0
----
-794

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT 76 * - 10 + - 66 / SUM ( ALL 65 ) * - 16 / - 32 + + 32 - + 66 AS col0
----
-794

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL + 16 * - COUNT( * ) + + 94
----
78

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + 16 * - COUNT ( * ) + + 94
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5270
SELECT COALESCE ( - 23, - + 41 DIV 75 + ( - 89 ), 89 ) * 92 + 36
----
-2080

skipif mysql # not compatible
query I rowsort label-5270
SELECT COALESCE ( - 23, - + 41 / 75 + ( - 89 ), 89 ) * 92 + 36
----
-2080

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT ALL - 13 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL - 13 / 64
----
0

query II rowsort
SELECT ALL - 89, + 71 AS col2
----
-89
71

query I rowsort
SELECT DISTINCT NULLIF ( + 18, + 59 + 81 * + 11 * + 15 ) * - - 2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL + MIN( ALL - 77 ) * - COALESCE ( + - COUNT( DISTINCT + + 49 ), + 38, + COUNT( * ) * + - 79, + MIN( ALL - 15 ) ) + - 87 + - 82 * - 25 AS col0
----
1886

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL + MIN ( ALL - 77 ) * - COALESCE ( + - COUNT ( DISTINCT + + 49 ), + 38, + COUNT ( * ) * + - 79, + MIN ( ALL - 15 ) ) + - 87 + - 82 * - 25 AS col0
----
1886

query III rowsort
SELECT 19 * - - 96, - 85 AS col1, + + 18 AS col1
----
1824
-85
18

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

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - SUM ( ALL 47 )
----
-47

query I rowsort
SELECT + COALESCE ( 76, NULLIF ( 68, + 97 - - 95 + + 0 / - - 25 * - 16 * - 11 * - 94 ) * + 40 - 47 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT DISTINCT - CASE WHEN NULL IS NULL THEN CAST( + 45 AS SIGNED ) END
----
-45

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - CASE WHEN NULL IS NULL THEN CAST ( + 45 AS INTEGER ) END
----
-45

query I rowsort
SELECT ALL 8 * - + 19
----
-152

query II rowsort
SELECT DISTINCT 67 - - - 3, 34 AS col2
----
64
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT 18 - + 32 + + 63 + 42 - - ( + - COUNT( * ) ) + 35 * - NULLIF ( + 80, + - 54 + CASE - - COUNT( * ) WHEN - 55 THEN - + 44 - 70 END - - 20 * + 46 * + 63 ) * 51 * - 21 + 45 * - + 26 * 23 + + 4 AS col1
----
2971984

skipif mysql # not compatible
query I rowsort label-5282
SELECT 18 - + 32 + + 63 + 42 - - ( + - COUNT ( * ) ) + 35 * - NULLIF ( + 80, + - 54 + CASE - - COUNT ( * ) WHEN - 55 THEN - + 44 - 70 END - - 20 * + 46 * + 63 ) * 51 * - 21 + 45 * - + 26 * 23 + + 4 AS col1
----
2971984

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5284
SELECT - SUM( ALL - + CAST( NULL AS SIGNED ) ) * + - MAX( - NULLIF ( + + 50, + ( - + 0 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) * + - MAX ( - NULLIF ( + + 50, + ( - + 0 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5285
SELECT ALL + ( - 88 ) DIV NULLIF ( - - 33, + COUNT( 91 ) + - 8 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + ( - 88 ) / NULLIF ( - - 33, + COUNT ( 91 ) + - 8 ) AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5286
SELECT - 36 + - + 74 - 6 DIV MIN( - 97 )
----
-110

skipif mysql # not compatible
query I rowsort label-5286
SELECT - 36 + - + 74 - 6 / MIN ( - 97 )
----
-110

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5287
SELECT - NULLIF ( - 46, + 60 - + 93 + CAST( 83 AS DECIMAL ) ) DIV + - 10, - 34 + - - 40 AS col2
----
-4
6

skipif mysql # not compatible
query II rowsort label-5287
SELECT - NULLIF ( - 46, + 60 - + 93 + CAST ( 83 AS REAL ) ) / + - 10, - 34 + - - 40 AS col2
----
-4
6

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

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) * + + 44
----
NULL

query I rowsort
SELECT + ( - 53 ) + + 66
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT NULLIF ( 42, - 4 * COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT NULLIF ( 42, - 4 * COUNT ( * ) )
----
42

query I rowsort
SELECT - 24 * 32
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT - 15 + COUNT( * ) * - MIN( ALL 90 ) AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-5292
SELECT - 15 + COUNT ( * ) * - MIN ( ALL 90 ) AS col1
----
-105

query I rowsort
SELECT ALL + CASE + 73 WHEN + 58 * - 43 THEN - 6 ELSE NULL END * + + 49 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL - 68 + 74 * 52 * - + COUNT( * ) AS col2
----
-3916

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - 68 + 74 * 52 * - + COUNT ( * ) AS col2
----
-3916

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT - 76 - + 82 * - COUNT( * ) col0
----
6

skipif mysql # not compatible
query I rowsort label-5296
SELECT - 76 - + 82 * - COUNT ( * ) col0
----
6

query I rowsort
SELECT - ( - - 52 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT - 90 + - ( + 28 ) + 38 DIV 17 * 76 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5298
SELECT - 90 + - ( + 28 ) + 38 / 17 * 76 AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5299
SELECT ALL + 27 + + COUNT( * ) * - 81 DIV - NULLIF ( + ( - 53 ), - + 49 * - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + 27 + + COUNT ( * ) * - 81 / - NULLIF ( + ( - 53 ), - + 49 * - 26 )
----
26

onlyif mysql # aggregate syntax: 
query III rowsort label-5300
SELECT + + 22 - + - 68 AS col2, - COUNT( * ) * + - 72 * + - 6 AS col2, + 48
----
90
-432
48

skipif mysql # not compatible
query III rowsort label-5300
SELECT + + 22 - + - 68 AS col2, - COUNT ( * ) * + - 72 * + - 6 AS col2, + 48
----
90
-432
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT + - COUNT( * ) - + - SUM( DISTINCT 64 ) + 67
----
130

skipif mysql # not compatible
query I rowsort label-5301
SELECT + - COUNT ( * ) - + - SUM ( DISTINCT 64 ) + 67
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT - 76 * NULLIF ( 24, + 46 + 0 * - - 7 ) + 91 * + ( + COUNT( * ) )
----
-1733

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT - 76 * NULLIF ( 24, + 46 + 0 * - - 7 ) + 91 * + ( + COUNT ( * ) )
----
-1733

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL COUNT( * ) * + 37 * - 2 + - 24 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL COUNT ( * ) * + 37 * - 2 + - 24 AS col2
----
-98

query I rowsort
SELECT + - 76 * - 70 * 17 + + 2 AS col0
----
90442

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT 12 DIV + 33 * + 8 + + 63 + - 87
----
-24

skipif mysql # not compatible
query I rowsort label-5306
SELECT 12 / + 33 * + 8 + + 63 + - 87
----
-24

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

skipif mysql # not compatible
query I rowsort label-5307
SELECT 87 * COUNT ( * ) + - 5 AS col1
----
82

query I rowsort
SELECT ALL - 46 * 5 - + 43
----
-273

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5310
SELECT ALL 26 DIV 24 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL 26 / 24 AS col1
----
1

query I rowsort
SELECT - 72 * - 59 + - - 48 * 84 AS col1
----
8280

query I rowsort
SELECT ALL + 42 * - - 60 AS col2
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT 51 * + 47 * COUNT( * ) + + + 24
----
2421

skipif mysql # not compatible
query I rowsort label-5313
SELECT 51 * + 47 * COUNT ( * ) + + + 24
----
2421

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT CASE - 93 WHEN + COUNT( * ) * - 63 / + MIN( DISTINCT - - 9 ) THEN NULL WHEN 53 * 16 THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT CASE - 93 WHEN + COUNT ( * ) * - 63 / + MIN ( DISTINCT - - 9 ) THEN NULL WHEN 53 * 16 THEN COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5315
SELECT - COUNT( * ) + - 4 DIV - 47 + - 82 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-5315
SELECT - COUNT ( * ) + - 4 / - 47 + - 82 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL ( - + 46 ) * - + CASE - 24 WHEN 96 / - 42 * + - 70 + - 81 / SUM( ALL - + ( - 77 ) ) THEN NULL ELSE - MIN( - - 51 ) END
----
-2346

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL ( - + 46 ) * - + CASE - 24 WHEN 96 / - 42 * + - 70 + - 81 / SUM ( ALL - + ( - 77 ) ) THEN NULL ELSE - MIN ( - - 51 ) END
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT CASE + 53 WHEN + COUNT( * ) THEN - 60 * - ( - - 47 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT CASE + 53 WHEN + COUNT ( * ) THEN - 60 * - ( - - 47 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - SUM( - + 20 ) * 75
----
1500

skipif mysql # not compatible
query I rowsort label-5318
SELECT - SUM ( - + 20 ) * 75
----
1500

query I rowsort
SELECT + ( - NULLIF ( + 85, + 25 - + 94 ) )
----
-85

query I rowsort
SELECT NULLIF ( - 78, - 61 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT 43 * - + NULLIF ( - COUNT( * ), + - 66 ) + - - 6 * 73
----
481

skipif mysql # not compatible
query I rowsort label-5321
SELECT 43 * - + NULLIF ( - COUNT ( * ), + - 66 ) + - - 6 * 73
----
481

query I rowsort
SELECT ALL ( ( - 45 ) ) * + 96 AS col2
----
-4320

query I rowsort
SELECT ALL NULLIF ( 88, - 30 * - - 57 )
----
88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5325
SELECT - 5 AS col2, COUNT( * ) DIV 46
----
-5
0

skipif mysql # not compatible
query II rowsort label-5325
SELECT - 5 AS col2, COUNT ( * ) / 46
----
-5
0

query I rowsort
SELECT ALL - 80 * + ( + 91 ) * - 24 * 27 col0
----
4717440

query I rowsort
SELECT - 0 + - + 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL - - SUM( DISTINCT 60 ) + - 59 * 18 * - 13 col1
----
13866

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - - SUM ( DISTINCT 60 ) + - 59 * 18 * - 13 col1
----
13866

query I rowsort
SELECT - 74 + - 3 AS col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT - 79 - 92 * - 90 - - - ( - - CAST( + + 6 AS SIGNED ) )
----
8195

skipif mysql # not compatible
query I rowsort label-5330
SELECT - 79 - 92 * - 90 - - - ( - - CAST ( + + 6 AS INTEGER ) )
----
8195

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT ALL - MIN( - 85 ) + CAST( + + 10 AS SIGNED ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - MIN ( - 85 ) + CAST ( + + 10 AS INTEGER ) AS col0
----
95

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

skipif mysql # not compatible
query I rowsort label-5333
SELECT + MAX ( - + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - 24 + COUNT( ALL 59 ) + 39 * COALESCE ( ( + - 59 ), - + 51 * COUNT( DISTINCT - + 37 ) ) * + 72 + - 86 * + ( - MAX( ALL 36 ) ) + - - 52 + - 15 + - 50 + - 71 + - 14
----
-162697

skipif mysql # not compatible
query I rowsort label-5334
SELECT - 24 + COUNT ( ALL 59 ) + 39 * COALESCE ( ( + - 59 ), - + 51 * COUNT ( DISTINCT - + 37 ) ) * + 72 + - 86 * + ( - MAX ( ALL 36 ) ) + - - 52 + - 15 + - 50 + - 71 + - 14
----
-162697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5335
SELECT - - 18 * - 83 / COUNT( DISTINCT 15 ) * + + 36 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT - - 18 * - 83 / COUNT ( DISTINCT 15 ) * + + 36 * - - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5336
SELECT - 37 + - CASE - COUNT ( * ) WHEN 4 * + COUNT ( * ) + 93 THEN NULL WHEN + + MAX ( ALL - 57 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 77 * + + 10 col1
----
-770

query I rowsort
SELECT + 78 * - + 94
----
-7332

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT - + 50 * - 58 + + + 92 + + + 85 + - 22 + - 75 + - + 30 * 65 DIV + 87 AS col2
----
2958

skipif mysql # not compatible
query I rowsort label-5340
SELECT - + 50 * - 58 + + + 92 + + + 85 + - 22 + - 75 + - + 30 * 65 / + 87 AS col2
----
2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT + CASE + NULLIF ( - COALESCE ( - + 80, + 36, + - 85 * + 12 * ( + 25 ) * + - 62 ), - + 55 * + + 83 ) WHEN + 22 THEN NULL WHEN - 66 * 56 THEN NULL ELSE + + MAX( + 69 ) * - + 16 * - CAST( NULL AS SIGNED ) * - 15 * + - 47 / ( 98 ) + - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT + CASE + NULLIF ( - COALESCE ( - + 80, + 36, + - 85 * + 12 * ( + 25 ) * + - 62 ), - + 55 * + + 83 ) WHEN + 22 THEN NULL WHEN - 66 * 56 THEN NULL ELSE + + MAX ( + 69 ) * - + 16 * - CAST ( NULL AS INTEGER ) * - 15 * + - 47 / ( 98 ) + - 10 END
----
NULL

query I rowsort
SELECT DISTINCT - 37 * + 66 AS col2
----
-2442

query I rowsort
SELECT 2 * 63 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT COUNT( * ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( * ) - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 27 * 77
----
2079

onlyif mysql # DIV for integer division: 
query I rowsort label-5346
SELECT 34 DIV + 9 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5346
SELECT 34 / + 9 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT COUNT( + 28 ) - + 13 * + ( + - 68 )
----
885

skipif mysql # not compatible
query I rowsort label-5347
SELECT COUNT ( + 28 ) - + 13 * + ( + - 68 )
----
885

query I rowsort
SELECT ALL + 48 * ( - COALESCE ( 15, 30 ) )
----
-720

query I rowsort
SELECT ALL 65 + - 32
----
33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5351
SELECT - CAST( 84 AS SIGNED ) + - + COUNT( * ) + 79 * - 74
----
-5931

skipif mysql # not compatible
query I rowsort label-5351
SELECT - CAST ( 84 AS INTEGER ) + - + COUNT ( * ) + 79 * - 74
----
-5931

query I rowsort
SELECT DISTINCT 7 + 80 AS col0
----
87

query I rowsort
SELECT DISTINCT - - 98 + + 25
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT ( - 42 ) * + 82 + + COUNT( * )
----
-3443

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT ( - 42 ) * + 82 + + COUNT ( * )
----
-3443

query I rowsort
SELECT ALL - 27 + - - 75 AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5356
SELECT 84 * + 14 AS col1, CASE - + 16 WHEN + 81 THEN - + 12 END * - COUNT( * )
----
1176
NULL

skipif mysql # not compatible
query II rowsort label-5356
SELECT 84 * + 14 AS col1, CASE - + 16 WHEN + 81 THEN - + 12 END * - COUNT ( * )
----
1176
NULL

query I rowsort
SELECT COALESCE ( 6, + 29 * 49 - - 69 - 74 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT COALESCE ( + 42, + 84, COUNT( * ) ) + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-5358
SELECT COALESCE ( + 42, + 84, COUNT ( * ) ) + - COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + 88 + - + 6 + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5359
SELECT + 88 + - + 6 + COUNT ( * ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT + 62 * SUM( - 86 ) + 94 + - COUNT( * ) + + + 27 * 39 col1
----
-4186

skipif mysql # not compatible
query I rowsort label-5360
SELECT + 62 * SUM ( - 86 ) + 94 + - COUNT ( * ) + + + 27 * 39 col1
----
-4186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5361
SELECT ALL + MAX( - - CAST( NULL AS SIGNED ) ) - - SUM( ALL + 94 ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5362
SELECT 84 - 79 + 77 DIV 80 + COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-5362
SELECT 84 - 79 + 77 / 80 + COUNT ( * ) col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5363
SELECT + 29 DIV 27 AS col1, 60 - + MAX( - 65 ) AS col2
----
1
125

skipif mysql # not compatible
query II rowsort label-5363
SELECT + 29 / 27 AS col1, 60 - + MAX ( - 65 ) AS col2
----
1
125

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

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL + - COUNT ( - 49 ) * - - 83 AS col1
----
-83

query I rowsort
SELECT DISTINCT - 69 * - 71
----
4899

query I rowsort
SELECT 28 + + - 60 * 99
----
-5912

onlyif mysql # DIV for integer division: 
query I rowsort label-5367
SELECT 2 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT 2 / + 95
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5369
SELECT 88 DIV + 45 * COUNT( * ) + + - 97 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5369
SELECT 88 / + 45 * COUNT ( * ) + + - 97 AS col2
----
-96

query I rowsort
SELECT 27 + - 37 AS col2
----
-10

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

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

query I rowsort
SELECT 43 + - 12
----
31

query I rowsort
SELECT DISTINCT - 7 + 19 * CASE ( + 26 ) WHEN + + 51 THEN - 90 * - + NULLIF ( 5, + 96 ) WHEN + - 32 THEN NULL END * + + ( - - 40 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT 27 * + - MIN( - 95 ) AS col0
----
2565

skipif mysql # not compatible
query I rowsort label-5374
SELECT 27 * + - MIN ( - 95 ) AS col0
----
2565

query I rowsort
SELECT ALL - ( + ( - 84 ) ) + 68 * + 96 AS col1
----
6612

query I rowsort
SELECT 72 + 45 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5377
SELECT ALL - 14 AS col0, + 8 * ( CAST( 49 AS SIGNED ) ) - - + 49 * - SUM( DISTINCT NULLIF ( - 5, 19 ) )
----
-14
637

skipif mysql # not compatible
query II rowsort label-5377
SELECT ALL - 14 AS col0, + 8 * ( CAST ( 49 AS INTEGER ) ) - - + 49 * - SUM ( DISTINCT NULLIF ( - 5, 19 ) )
----
-14
637

onlyif mysql # aggregate syntax: 
query II rowsort label-5378
SELECT 49 + + 5 * 55 AS col0, SUM( 14 ) * + 64
----
324
896

skipif mysql # not compatible
query II rowsort label-5378
SELECT 49 + + 5 * 55 AS col0, SUM ( 14 ) * + 64
----
324
896

query I rowsort
SELECT CASE - - 86 WHEN 6 + 59 THEN + 37 WHEN + 66 THEN NULL ELSE - 21 END + - 81
----
-102

query III rowsort
SELECT ALL - - 0, + 48 + + 66 AS col0, - + 31 col1
----
0
114
-31

query I rowsort
SELECT - ( + - 91 ) * - 59 AS col1
----
-5369

query I rowsort
SELECT ALL 23 * 52 AS col1
----
1196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT + 92 + + 34 + + 39 * - + 11 + - 8 + 14 * + ( - - 39 ) + 92 + + 92 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT + 92 + + 34 + + 39 * - + 11 + - 8 + 14 * + ( - - 39 ) + 92 + + 92 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL 80 - + 91 + MIN( + + 41 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 80 - + 91 + MIN ( + + 41 ) AS col0
----
30

query I rowsort
SELECT + 20 + + 41
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5386
SELECT + SUM( ALL CAST( - - 68 AS DECIMAL ) ) + - - ( + + 20 ) + - CASE + 60 WHEN - COUNT( * ) THEN + + 39 WHEN 36 * + + COUNT( * ) - COALESCE ( 36, - 53 ) * - - 33 * - 61 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT + SUM ( ALL CAST ( - - 68 AS REAL ) ) + - - ( + + 20 ) + - CASE + 60 WHEN - COUNT ( * ) THEN + + 39 WHEN 36 * + + COUNT ( * ) - COALESCE ( 36, - 53 ) * - - 33 * - 61 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT SUM( ( - 73 ) ) * 88 AS col0
----
-6424

skipif mysql # not compatible
query I rowsort label-5387
SELECT SUM ( ( - 73 ) ) * 88 AS col0
----
-6424

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT SUM( 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5388
SELECT SUM ( 35 ) AS col1
----
35

query I rowsort
SELECT ALL + 5 * - 92 * 81
----
-37260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5390
SELECT + 90, - MIN( - + CAST( NULL AS SIGNED ) ) AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-5390
SELECT + 90, - MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
90
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT - 42 + + 19 DIV - 57 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5391
SELECT - 42 + + 19 / - 57 AS col0
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - 99 * - 59 + - + NULLIF ( + COUNT( * ), - 43 ) * + - 25 * 79 * - + 92 AS col1
----
-175859

skipif mysql # not compatible
query I rowsort label-5393
SELECT - 99 * - 59 + - + NULLIF ( + COUNT ( * ), - 43 ) * + - 25 * 79 * - + 92 AS col1
----
-175859

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

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

query I rowsort
SELECT ALL CASE + + 69 WHEN + 53 THEN 41 + 9 - + 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5396
SELECT + 66 * - - SUM( ALL - 1 ) DIV - ( - + COUNT( * ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-5396
SELECT + 66 * - - SUM ( ALL - 1 ) / - ( - + COUNT ( * ) ) AS col2
----
-66

query I rowsort
SELECT - - 83 + 79
----
162

query I rowsort
SELECT ALL + 92 + - 48 AS col0
----
44

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

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

query I rowsort
SELECT DISTINCT + 93 * + + 84 + - - 81
----
7893

query II rowsort
SELECT + 27, + 80 AS col1
----
27
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT ALL + 60 * + - 30 + - COUNT( DISTINCT 9 ) AS col0
----
-1801

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL + 60 * + - 30 + - COUNT ( DISTINCT 9 ) AS col0
----
-1801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 48 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT + 54 DIV COUNT( * ) DIV 21
----
2

skipif mysql # not compatible
query I rowsort label-5404
SELECT + 54 / COUNT ( * ) / 21
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT - 48 - - CAST( NULL AS SIGNED ) * + + 85 / + + COUNT( * ) * 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT - 48 - - CAST ( NULL AS INTEGER ) * + + 85 / + + COUNT ( * ) * 81 AS col1
----
NULL

query II rowsort
SELECT ALL + 17, ( - 22 ) col1
----
17
-22

query I rowsort
SELECT NULLIF ( - 21, 29 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT NULLIF ( - + 41, + 90 - + MAX( DISTINCT - 58 ) + - 80 + - - 8 + 54 - + 65 ) col0, + 86
----
-41
86

skipif mysql # not compatible
query II rowsort label-5408
SELECT NULLIF ( - + 41, + 90 - + MAX ( DISTINCT - 58 ) + - 80 + - - 8 + 54 - + 65 ) col0, + 86
----
-41
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5409
SELECT + 2 * + ( 9 ) + 46 DIV COUNT( * ) * - 34, + 10 + - - COUNT( - - 76 ) + - + 57 AS col0
----
-1546
-46

skipif mysql # not compatible
query II rowsort label-5409
SELECT + 2 * + ( 9 ) + 46 / COUNT ( * ) * - 34, + 10 + - - COUNT ( - - 76 ) + - + 57 AS col0
----
-1546
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5410
SELECT DISTINCT 27 * CAST( NULL AS DECIMAL ) * - 66 * - COUNT( * ) * - + COUNT( * ) - - 68 * - 78 + + CASE COUNT( * ) WHEN - + 12 THEN + 72 WHEN 64 + CAST( + 61 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT 27 * CAST ( NULL AS REAL ) * - 66 * - COUNT ( * ) * - + COUNT ( * ) - - 68 * - 78 + + CASE COUNT ( * ) WHEN - + 12 THEN + 72 WHEN 64 + CAST ( + 61 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 0 * + 42 + - 42
----
-42

query I rowsort
SELECT - - 94 * - + ( + 67 )
----
-6298

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5413
SELECT + CAST( NULL AS SIGNED ) AS col2, + 57 - - ( 91 ) AS col1
----
NULL
148

skipif mysql # not compatible
query II rowsort label-5413
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 57 - - ( 91 ) AS col1
----
NULL
148

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

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

query I rowsort
SELECT + + NULLIF ( + - 41, - 20 + + 50 )
----
-41

query II rowsort
SELECT 95 AS col0, - NULLIF ( - 56, + 83 )
----
95
56

query I rowsort
SELECT - + 70 + - - 54 + - 9
----
-25

query II rowsort
SELECT 7 AS col1, 58 + - - 35
----
7
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5419
SELECT ALL COUNT( * ) AS col1, 48 * + 69 * 85 * - 47 + + 21
----
1
-13231419

skipif mysql # not compatible
query II rowsort label-5419
SELECT ALL COUNT ( * ) AS col1, 48 * + 69 * 85 * - 47 + + 21
----
1
-13231419

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

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL 14 / + - 39 - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5421
SELECT DISTINCT + 50 AS col1, CAST( - + 77 AS SIGNED )
----
50
-77

skipif mysql # not compatible
query II rowsort label-5421
SELECT DISTINCT + 50 AS col1, CAST ( - + 77 AS INTEGER )
----
50
-77

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

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + 24 / + - COUNT ( * ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - + COUNT( * ) + 2 + + 43 + - 4 + 38 * - + 69 + 77 - + - COUNT( * ) AS col2
----
-2504

skipif mysql # not compatible
query I rowsort label-5423
SELECT - + COUNT ( * ) + 2 + + 43 + - 4 + 38 * - + 69 + 77 - + - COUNT ( * ) AS col2
----
-2504

query II rowsort
SELECT + + 12 * + CASE 96 WHEN - 52 + 34 THEN NULL ELSE + 22 END AS col2, 10 + 33 + + 74
----
264
117

query I rowsort
SELECT - 59 + 13 AS col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT + - 38 * - - CAST( 37 AS SIGNED ) * 88
----
-123728

skipif mysql # not compatible
query I rowsort label-5426
SELECT + - 38 * - - CAST ( 37 AS INTEGER ) * 88
----
-123728

query I rowsort
SELECT ALL 3 + - + NULLIF ( 63, - 25 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5428
SELECT + 38 + - 44 - 93 * + 77 + - 21 + + COUNT( * ) - CAST( NULL AS DECIMAL ) * + ( + 32 ) / - 76 * + + NULLIF ( - ( 38 ), + COUNT( * ) + 81 ) * CASE - 47 WHEN - ( 84 ) THEN - 78 - - - 91 WHEN 53 * - 7 THEN - COALESCE ( 1, + 69 + COALESCE ( - + 74, 55 ) + - + 48 * 30 ) END * + COUNT( - 63 ) + - + MIN( ALL 5 ) + - - AVG ( DISTINCT 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT + 38 + - 44 - 93 * + 77 + - 21 + + COUNT ( * ) - CAST ( NULL AS REAL ) * + ( + 32 ) / - 76 * + + NULLIF ( - ( 38 ), + COUNT ( * ) + 81 ) * CASE - 47 WHEN - ( 84 ) THEN - 78 - - - 91 WHEN 53 * - 7 THEN - COALESCE ( 1, + 69 + COALESCE ( - + 74, 55 ) + - + 48 * 30 ) END * + COUNT ( - 63 ) + - + MIN ( ALL 5 ) + - - AVG ( DISTINCT 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL NULLIF ( + 83, 39 - + COUNT( * ) * + - 27 ) + 13 + + 12 * + ( - ( + - 16 ) )
----
288

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL NULLIF ( + 83, 39 - + COUNT ( * ) * + - 27 ) + 13 + + 12 * + ( - ( + - 16 ) )
----
288

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT ALL + 61 + 72 * + COUNT( DISTINCT + 5 ) DIV - - 84 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL + 61 + 72 * + COUNT ( DISTINCT + 5 ) / - - 84 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + + 31
----
32

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + + 31
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5433
SELECT CAST( + 40 AS SIGNED ), + 26 + + 97 AS col1
----
40
123

skipif mysql # not compatible
query II rowsort label-5433
SELECT CAST ( + 40 AS INTEGER ), + 26 + + 97 AS col1
----
40
123

query I rowsort
SELECT + 60 + + 57 * + + 90 * - 51
----
-261570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5435
SELECT + ( - - 67 ) AS col1, - CAST( NULL AS SIGNED ) / COUNT( ALL + 24 )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-5435
SELECT + ( - - 67 ) AS col1, - CAST ( NULL AS INTEGER ) / COUNT ( ALL + 24 )
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5436
SELECT + COUNT( DISTINCT - 13 ) * - - 10 + - - CAST( + 99 AS SIGNED ) * + CAST( + COALESCE ( - 43, + 61, 83 * + 52 * - 39 + COUNT( DISTINCT - - 73 ) + COUNT( * ) ) AS SIGNED ) AS col1, - COALESCE ( + COUNT( * ), - COALESCE ( - 68, - 8 ) + + - 20 ) * 55 + 95 col1
----
-4247
40

skipif mysql # not compatible
query II rowsort label-5436
SELECT + COUNT ( DISTINCT - 13 ) * - - 10 + - - CAST ( + 99 AS INTEGER ) * + CAST ( + COALESCE ( - 43, + 61, 83 * + 52 * - 39 + COUNT ( DISTINCT - - 73 ) + COUNT ( * ) ) AS INTEGER ) AS col1, - COALESCE ( + COUNT ( * ), - COALESCE ( - 68, - 8 ) + + - 20 ) * 55 + 95 col1
----
-4247
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT - 17 * 9 + + 77 * 61 * + COUNT( * ) col0
----
4544

skipif mysql # not compatible
query I rowsort label-5437
SELECT - 17 * 9 + + 77 * 61 * + COUNT ( * ) col0
----
4544

query I rowsort
SELECT 26 * - 85 * + 49 * - 76 - - 3 AS col1
----
8230043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5439
SELECT + ( CAST( - CASE + - 16 WHEN + - 8 THEN 44 ELSE NULL END AS SIGNED ) ) + - COUNT( * ) * + NULLIF ( + 47, - + 48 + 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT + ( CAST ( - CASE + - 16 WHEN + - 8 THEN 44 ELSE NULL END AS INTEGER ) ) + - COUNT ( * ) * + NULLIF ( + 47, - + 48 + 38 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT ALL - 23 DIV + 60 - 60 + + 67 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - 23 / + 60 - 60 + + 67 AS col2
----
7

query II rowsort
SELECT + 18 * + 47 AS col1, - 40
----
846
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT DISTINCT 17 / - - 67 * - CAST( NULL AS SIGNED ) * CASE + 65 WHEN - 78 * + + 37 THEN + + 52 * - 0 + + 85 * - 60 / 32 WHEN SUM( 5 ) THEN NULL WHEN - + ( + NULLIF ( + + 33, 63 ) ) THEN NULL ELSE NULL END - - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT 17 / - - 67 * - CAST ( NULL AS INTEGER ) * CASE + 65 WHEN - 78 * + + 37 THEN + + 52 * - 0 + + 85 * - 60 / 32 WHEN SUM ( 5 ) THEN NULL WHEN - + ( + NULLIF ( + + 33, 63 ) ) THEN NULL ELSE NULL END - - 75 AS col1
----
NULL

query I rowsort
SELECT ALL + 29 * 77 AS col1
----
2233

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

skipif mysql # not compatible
query I rowsort label-5444
SELECT + COUNT ( * ) * 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT - ( - 74 ) * - 75 - 43 * - 89 * + COUNT( * )
----
-1723

skipif mysql # not compatible
query I rowsort label-5445
SELECT - ( - 74 ) * - 75 - 43 * - 89 * + COUNT ( * )
----
-1723

query I rowsort
SELECT - + 60 + 36 * - + 19
----
-744

query I rowsort
SELECT + 18 * + 78 AS col1
----
1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT - ( - + 30 ) / - CAST( NULL AS SIGNED ) * + 90 + + + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT - ( - + 30 ) / - CAST ( NULL AS INTEGER ) * + 90 + + + 23 AS col2
----
NULL

query I rowsort
SELECT - 15 + + + 94 * - 53
----
-4997

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

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

query I rowsort
SELECT DISTINCT 30 * + 54
----
1620

query I rowsort
SELECT DISTINCT + 94 * + ( - - 38 ) AS col1
----
3572

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

skipif mysql # not compatible
query I rowsort label-5453
SELECT 28 * - CAST ( NULL AS INTEGER ) + + 18
----
NULL

query I rowsort
SELECT - 57 * - + 84
----
4788

onlyif mysql # aggregate syntax: 
query II rowsort label-5455
SELECT SUM( DISTINCT + 55 ), 95 * + + 77 + - 53 AS col2
----
55
7262

skipif mysql # not compatible
query II rowsort label-5455
SELECT SUM ( DISTINCT + 55 ), 95 * + + 77 + - 53 AS col2
----
55
7262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5456
SELECT MIN( DISTINCT - 70 ) + + + CASE + CAST( NULL AS SIGNED ) WHEN 16 / 31 THEN + ( - - 74 ) END * - - 36 AS col1, 35 AS col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5456
SELECT MIN ( DISTINCT - 70 ) + + + CASE + CAST ( NULL AS INTEGER ) WHEN 16 / 31 THEN + ( - - 74 ) END * - - 36 AS col1, 35 AS col1
----
NULL
35

query II rowsort
SELECT ALL 10 AS col1, - 83 * - 47
----
10
3901

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

skipif mysql # not compatible
query I rowsort label-5458
SELECT 28 / - COUNT ( * ) AS col0
----
-28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT ALL 2 + 7 DIV - + 39 col0
----
2

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL 2 + 7 / - + 39 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT COUNT( * ) + ( + CAST( + 38 AS SIGNED ) ) - + 98
----
-59

skipif mysql # not compatible
query I rowsort label-5461
SELECT COUNT ( * ) + ( + CAST ( + 38 AS INTEGER ) ) - + 98
----
-59

query II rowsort
SELECT ALL 75 AS col2, 23 * - 41 * - + 84 - + ( - + 1 ) + + 58 * - 82 * + - 91 AS col1
----
75
512009

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5463
SELECT - 79, 23 * 0 + CAST( NULL AS DECIMAL ) AS col2
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-5463
SELECT - 79, 23 * 0 + CAST ( NULL AS REAL ) AS col2
----
-79
NULL

query I rowsort
SELECT 37 * + 15
----
555

query I rowsort
SELECT ALL 42 * + 48 col2
----
2016

query I rowsort
SELECT 78 + + + 98 AS col1
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT CAST( + 7 AS SIGNED ) + + + 56 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-5467
SELECT CAST ( + 7 AS INTEGER ) + + + 56 AS col1
----
63

query I rowsort
SELECT ALL 36 * + + 10 * 6 * + - 25 * + - 4 * - 30
----
-6480000

query II rowsort
SELECT DISTINCT + 76 - - - 96 * 40 AS col1, 44 AS col1
----
-3764
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT 78 * + MAX( + 98 )
----
7644

skipif mysql # not compatible
query I rowsort label-5470
SELECT 78 * + MAX ( + 98 )
----
7644

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL 0 * - + MIN( ALL + 36 )
----
0

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL 0 * - + MIN ( ALL + 36 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5472
SELECT 94 DIV + 4 + - 1 - + + 81 + + + 2 * + 52 * COUNT( * ) + + 78 * + - 50 + + - 13 * - + 45 + - 25
----
-3295

skipif mysql # not compatible
query I rowsort label-5472
SELECT 94 / + 4 + - 1 - + + 81 + + + 2 * + 52 * COUNT ( * ) + + 78 * + - 50 + + - 13 * - + 45 + - 25
----
-3295

query I rowsort
SELECT + 72 * + + 89
----
6408

query I rowsort
SELECT 5 - 91
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT + NULLIF ( 38, 65 + - ( + - 95 ) + + COUNT( * ) + - + 83 + - 77 )
----
38

skipif mysql # not compatible
query I rowsort label-5475
SELECT + NULLIF ( 38, 65 + - ( + - 95 ) + + COUNT ( * ) + - + 83 + - 77 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + 14 * NULLIF ( 88, + + 74 ) + - MAX( DISTINCT ( + - 74 ) )
----
1306

skipif mysql # not compatible
query I rowsort label-5476
SELECT + 14 * NULLIF ( 88, + + 74 ) + - MAX ( DISTINCT ( + - 74 ) )
----
1306

query I rowsort
SELECT ALL + 17 * + - 97
----
-1649

query I rowsort
SELECT + 39 * 38
----
1482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT ALL - 6 / + - 75 * - + 98 * 99 * + + SUM( - 87 ) + + CAST( NULL AS SIGNED ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL - 6 / + - 75 * - + 98 * 99 * + + SUM ( - 87 ) + + CAST ( NULL AS INTEGER ) * + 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5480
SELECT DISTINCT COUNT( * ) DIV + + 25
----
0

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT COUNT ( * ) / + + 25
----
0

query I rowsort
SELECT ALL + - 85 + 79 AS col0
----
-6

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

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

query I rowsort
SELECT - 79 - 50
----
-129

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5485
SELECT + 32 AS col0, - COUNT( * ) DIV - - 17 + + + 70
----
32
70

skipif mysql # not compatible
query II rowsort label-5485
SELECT + 32 AS col0, - COUNT ( * ) / - - 17 + + + 70
----
32
70

query I rowsort
SELECT NULLIF ( + 55, + 86 ) AS col1
----
55

query I rowsort
SELECT - 46 + + + NULLIF ( - + 9, + + 60 )
----
-55

query I rowsort
SELECT 74 * 61 AS col0
----
4514

query II rowsort
SELECT ALL 79 + - - 27, 92 * 23 AS col2
----
106
2116

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

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

query I rowsort
SELECT 44 * - 24
----
-1056

query I rowsort
SELECT DISTINCT - 88 + + 93 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT 56 + + MIN( DISTINCT + 0 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5493
SELECT 56 + + MIN ( DISTINCT + 0 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5494
SELECT ALL - ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) / MIN( DISTINCT - + 82 ) / - 8 * + CASE + COUNT( + 30 ) WHEN - 90 + + 67 * - 4 THEN NULL WHEN + 68 * - - 34 THEN - CASE + - MAX( + + 73 ) WHEN - - 5 THEN NULL WHEN + 81 THEN + + 29 - + 45 WHEN - ( + 66 ) THEN NULL END + + + 86 ELSE 62 END * - - COUNT( DISTINCT + 18 ) - + 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) / MIN ( DISTINCT - + 82 ) / - 8 * + CASE + COUNT ( + 30 ) WHEN - 90 + + 67 * - 4 THEN NULL WHEN + 68 * - - 34 THEN - CASE + - MAX ( + + 73 ) WHEN - - 5 THEN NULL WHEN + 81 THEN + + 29 - + 45 WHEN - ( + 66 ) THEN NULL END + + + 86 ELSE 62 END * - - COUNT ( DISTINCT + 18 ) - + 75 col2
----
NULL

query I rowsort
SELECT 33 + + - 47
----
-14

query I rowsort
SELECT 43 + - + 81 + + 60 AS col0
----
22

query I rowsort
SELECT 82 * 98
----
8036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT 53 + + - CAST( - 74 AS SIGNED ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-5498
SELECT 53 + + - CAST ( - 74 AS INTEGER ) AS col1
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-5499
SELECT DISTINCT - 44 - + + 88 * + 23 - 22, 99 * 55 * COUNT( * ) + + 61 AS col2
----
-2090
5506

skipif mysql # not compatible
query II rowsort label-5499
SELECT DISTINCT - 44 - + + 88 * + 23 - 22, 99 * 55 * COUNT ( * ) + + 61 AS col2
----
-2090
5506

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT 78 + - 84 * - 36 * - 49 AS col2, 60 + CASE + 11 WHEN - 0 THEN NULL WHEN + 44 + 3 THEN COUNT( * ) * - 45 + + - 37 * - + 14 * + CASE - - COUNT( + - 68 ) WHEN 53 + 63 THEN NULL ELSE + - 1 * - 64 END / 43 + - 5 END
----
-148098
NULL

skipif mysql # not compatible
query II rowsort label-5500
SELECT 78 + - 84 * - 36 * - 49 AS col2, 60 + CASE + 11 WHEN - 0 THEN NULL WHEN + 44 + 3 THEN COUNT ( * ) * - 45 + + - 37 * - + 14 * + CASE - - COUNT ( + - 68 ) WHEN 53 + 63 THEN NULL ELSE + - 1 * - 64 END / 43 + - 5 END
----
-148098
NULL

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

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

query I rowsort
SELECT 62 * - CASE + + 11 WHEN + 60 THEN 23 WHEN + 64 + - 24 * 16 THEN NULL END / + + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT + MAX( + + 47 ) * + 60 + ( - + 34 )
----
2786

skipif mysql # not compatible
query I rowsort label-5503
SELECT + MAX ( + + 47 ) * + 60 + ( - + 34 )
----
2786

query I rowsort
SELECT + 79 * + ( + 61 ) + - + 41 AS col1
----
4778

query I rowsort
SELECT + 62 * + - 15 + - + 97
----
-1027

query II rowsort
SELECT ALL - 21 * 59 AS col0, 33
----
-1239
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT 20 + + 22 + + + ( + COUNT( * ) ) * + - 93
----
-51

skipif mysql # not compatible
query I rowsort label-5507
SELECT 20 + + 22 + + + ( + COUNT ( * ) ) * + - 93
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5508
SELECT + COALESCE ( 38, ( 84 ) * - CASE 32 WHEN - 84 THEN - 28 DIV + ( - 72 ) - - + 53 WHEN + - 51 * - 75 + + ( - - 15 ) THEN + 74 WHEN 72 THEN NULL END ) * - 81 + - COALESCE ( - 84, CAST( NULL AS SIGNED ) ) * + 3 + - 73 * + - MAX( - 32 )
----
-5162

skipif mysql # not compatible
query I rowsort label-5508
SELECT + COALESCE ( 38, ( 84 ) * - CASE 32 WHEN - 84 THEN - 28 / + ( - 72 ) - - + 53 WHEN + - 51 * - 75 + + ( - - 15 ) THEN + 74 WHEN 72 THEN NULL END ) * - 81 + - COALESCE ( - 84, CAST ( NULL AS INTEGER ) ) * + 3 + - 73 * + - MAX ( - 32 )
----
-5162

query I rowsort
SELECT ALL - 61 * - COALESCE ( - + 55, 11 + - + 56 ) col1
----
-3355

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - CASE + 27 WHEN + - 33 THEN - + COUNT( * ) * - COUNT( * ) + 90 WHEN - 0 THEN NULL ELSE + COUNT( * ) + 35 END * - COUNT( * ) + + ( + 65 ) * 41
----
2701

skipif mysql # not compatible
query I rowsort label-5510
SELECT - CASE + 27 WHEN + - 33 THEN - + COUNT ( * ) * - COUNT ( * ) + 90 WHEN - 0 THEN NULL ELSE + COUNT ( * ) + 35 END * - COUNT ( * ) + + ( + 65 ) * 41
----
2701

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT - COUNT( * ) * - + 11 + - 64
----
-53

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT - COUNT ( * ) * - + 11 + - 64
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + COALESCE ( + - COUNT( * ), + + COUNT( * ) * - 58 + 20 ) * - + COUNT( * ) * + MIN( DISTINCT 12 ) + + + NULLIF ( - 93, 97 ) + + COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), + + COUNT ( * ) * - 58 + 20 ) * - + COUNT ( * ) * + MIN ( DISTINCT 12 ) + + + NULLIF ( - 93, 97 ) + + COUNT ( * ) AS col0
----
-80

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5516
SELECT ALL + COUNT( * ) DIV - 52 + + - 5 - + 88 + 97 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL + COUNT ( * ) / - 52 + + - 5 - + 88 + 97 AS col0
----
4

query II rowsort
SELECT DISTINCT - 12 * 55 col0, 12
----
-660
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL COUNT( * ) * + - 79 + - 6 - - 3 * + 34
----
17

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL COUNT ( * ) * + - 79 + - 6 - - 3 * + 34
----
17

query I rowsort
SELECT ALL - 20 + + + 32
----
12

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

skipif mysql # not compatible
query I rowsort label-5520
SELECT - NULLIF ( - + CAST ( NULL AS INTEGER ), 35 * COUNT ( * ) * + - 19 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5521
SELECT DISTINCT NULLIF ( 56, - + 9 ) * + COUNT( * ) * + - 62 * 71 * - 24 + - - CAST( NULL AS SIGNED ) + + 97 / + COUNT( * ) AS col2, 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-5521
SELECT DISTINCT NULLIF ( 56, - + 9 ) * + COUNT ( * ) * + - 62 * 71 * - 24 + - - CAST ( NULL AS INTEGER ) + + 97 / + COUNT ( * ) AS col2, 10 AS col0
----
NULL
10

query I rowsort
SELECT + 55 * 60 AS col2
----
3300

onlyif mysql # aggregate syntax: 
query II rowsort label-5523
SELECT - SUM( ALL 41 ) + + + 81 AS col1, COUNT( * ) * - COUNT( DISTINCT - 75 )
----
40
-1

skipif mysql # not compatible
query II rowsort label-5523
SELECT - SUM ( ALL 41 ) + + + 81 AS col1, COUNT ( * ) * - COUNT ( DISTINCT - 75 )
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL 26 - + - SUM( DISTINCT 78 ) * - 91
----
-7072

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL 26 - + - SUM ( DISTINCT 78 ) * - 91
----
-7072

query I rowsort
SELECT - 55 + + 3
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT ALL + 3 DIV - - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + 3 / - - 55 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT ALL NULLIF ( 12, + CASE + 59 WHEN + 40 / + 55 + + ( + COUNT( * ) ) THEN + ( + 68 ) WHEN + 14 THEN NULLIF ( - - 0, + 69 + + 45 + - + 52 + 24 + - 41 * 5 * + ( CAST( NULL AS SIGNED ) ) * 60 + + 30 ) WHEN + - 71 THEN 18 ELSE NULL END )
----
12

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL NULLIF ( 12, + CASE + 59 WHEN + 40 / + 55 + + ( + COUNT ( * ) ) THEN + ( + 68 ) WHEN + 14 THEN NULLIF ( - - 0, + 69 + + 45 + - + 52 + 24 + - 41 * 5 * + ( CAST ( NULL AS INTEGER ) ) * 60 + + 30 ) WHEN + - 71 THEN 18 ELSE NULL END )
----
12

query I rowsort
SELECT - 19 * - + 73 * - NULLIF ( - - 50, + 44 + ( - + 14 ) )
----
-69350

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

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

query I rowsort
SELECT + 83 * + - 71
----
-5893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT ALL CASE COUNT( * ) WHEN ( - 21 ) * + 75 / 65 - COALESCE ( + CAST( 52 AS SIGNED ), - ( 43 ) * + - 19 - COUNT( * ) ) THEN NULL WHEN + + 88 THEN + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL CASE COUNT ( * ) WHEN ( - 21 ) * + 75 / 65 - COALESCE ( + CAST ( 52 AS INTEGER ), - ( 43 ) * + - 19 - COUNT ( * ) ) THEN NULL WHEN + + 88 THEN + 23 END
----
NULL

query I rowsort
SELECT DISTINCT - 13 * - 22
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - COUNT( * ) * + 19 * + 82 col0
----
-1558

skipif mysql # not compatible
query I rowsort label-5533
SELECT - COUNT ( * ) * + 19 * + 82 col0
----
-1558

query I rowsort
SELECT - 24 * - 98 AS col2
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL + 95 * CASE - 20 WHEN + - 80 * MIN( - 81 ) - - COUNT( * ) + + 84 - + COUNT( * ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + 95 * CASE - 20 WHEN + - 80 * MIN ( - 81 ) - - COUNT ( * ) + + 84 - + COUNT ( * ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL - - 43 + - + 24 * - COUNT( * ) + + 15 + - - 17 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL - - 43 + - + 24 * - COUNT ( * ) + + 15 + - - 17 AS col1
----
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5538
SELECT COALESCE ( - COUNT( 23 ), - 61 * + + COUNT( * ) DIV - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-5538
SELECT COALESCE ( - COUNT ( 23 ), - 61 * + + COUNT ( * ) / - 81 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5539
SELECT ALL MAX( ALL - 6 ) DIV + 15 + + + 47 * 40 + + + 48 + + + 50
----
1978

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL MAX ( ALL - 6 ) / + 15 + + + 47 * 40 + + + 48 + + + 50
----
1978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT CASE + 4 WHEN CAST( + 16 AS SIGNED ) * + 9 THEN 74 + - 37 + + NULLIF ( - + 95, + 82 + - 71 / + 51 ) * + 26 * + - 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT CASE + 4 WHEN CAST ( + 16 AS INTEGER ) * + 9 THEN 74 + - 37 + + NULLIF ( - + 95, + 82 + - 71 / + 51 ) * + 26 * + - 13 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + + CASE - ( + 74 ) WHEN + + ( + 13 ) THEN ( - 22 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT CAST( - 55 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5542
SELECT CAST ( - 55 AS INTEGER ) AS col1
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + ( - SUM( ALL - 86 ) ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5544
SELECT + ( - SUM ( ALL - 86 ) ) AS col1
----
86

query I rowsort
SELECT ALL + - NULLIF ( + - 95, - + 16 * - - 47 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - + 85 + - ( SUM( ALL + NULLIF ( - 59, 40 ) ) ) * - 61 * + 91 * + MAX( ALL - + 91 )
----
29803234

skipif mysql # not compatible
query I rowsort label-5546
SELECT - + 85 + - ( SUM ( ALL + NULLIF ( - 59, 40 ) ) ) * - 61 * + 91 * + MAX ( ALL - + 91 )
----
29803234

query I rowsort
SELECT + 84 * - 57 AS col2
----
-4788

query I rowsort
SELECT ALL - 16 * - 22 * + + 21 * - 52
----
-384384

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL - - 23 * - COUNT( * ) - + + ( + - COUNT( - COALESCE ( - 15, 91, + 7 ) ) ) + + SUM( DISTINCT - 18 )
----
-40

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - - 23 * - COUNT ( * ) - + + ( + - COUNT ( - COALESCE ( - 15, 91, + 7 ) ) ) + + SUM ( DISTINCT - 18 )
----
-40

query I rowsort
SELECT DISTINCT + - 96 * + + 72
----
-6912

onlyif mysql # aggregate syntax: 
query II rowsort label-5551
SELECT DISTINCT + 65, - 91 * 99 + 99 * + MAX( - 56 ) AS col0
----
65
-14553

skipif mysql # not compatible
query II rowsort label-5551
SELECT DISTINCT + 65, - 91 * 99 + 99 * + MAX ( - 56 ) AS col0
----
65
-14553

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + - SUM( ALL 56 ) + NULLIF ( 53, + - 77 * - 82 ) - - 25 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5552
SELECT + - SUM ( ALL 56 ) + NULLIF ( 53, + - 77 * - 82 ) - - 25 AS col1
----
22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT CASE + 88 WHEN + COUNT( * ) * - 54 + + - 4 THEN NULL WHEN - COUNT( * ) THEN - 95 END AS col1, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-5554
SELECT CASE + 88 WHEN + COUNT ( * ) * - 54 + + - 4 THEN NULL WHEN - COUNT ( * ) THEN - 95 END AS col1, 45
----
NULL
45

query I rowsort
SELECT ALL 77 * - + 61 - + 83 AS col2
----
-4780

query I rowsort
SELECT - 32 * + COALESCE ( + 83, + 8 )
----
-2656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT + COALESCE ( + - 59, + 73 * - - ( - NULLIF ( + - 79, + + 10 ) ) - - ( 8 ), 37 ) * - - CAST( NULL AS SIGNED ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT + COALESCE ( + - 59, + 73 * - - ( - NULLIF ( + - 79, + + 10 ) ) - - ( 8 ), 37 ) * - - CAST ( NULL AS INTEGER ) * + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT + CASE + 98 WHEN + 73 + - - 31 THEN + 27 + + + 55 WHEN - 95 + - 16 THEN + 84 + + MIN( ( + + 43 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT + CASE + 98 WHEN + 73 + - - 31 THEN + 27 + + + 55 WHEN - 95 + - 16 THEN + 84 + + MIN ( ( + + 43 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + COALESCE ( + - SUM( DISTINCT - 99 ), - ( + 65 ) * - + COUNT( DISTINCT - 78 ) ) * + + 63 * + + MIN( - 58 )
----
-361746

skipif mysql # not compatible
query I rowsort label-5559
SELECT + COALESCE ( + - SUM ( DISTINCT - 99 ), - ( + 65 ) * - + COUNT ( DISTINCT - 78 ) ) * + + 63 * + + MIN ( - 58 )
----
-361746

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5561
SELECT - CAST( NULL AS DECIMAL ), - COUNT( * ) + + 55 * + CASE - 11 WHEN + + ( 95 ) * - 6 THEN 93 ELSE NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5561
SELECT - CAST ( NULL AS REAL ), - COUNT ( * ) + + 55 * + CASE - 11 WHEN + + ( 95 ) * - 6 THEN 93 ELSE NULL END AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT 42 * - COALESCE ( + + MAX( ALL 96 ), + ( - - 63 ) )
----
-4032

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT 42 * - COALESCE ( + + MAX ( ALL 96 ), + ( - - 63 ) )
----
-4032

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT + ( + 36 ) DIV + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT + ( + 36 ) / + 60 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT + CAST( + 82 AS SIGNED ) * + + 27 + + - ( + 24 )
----
2190

skipif mysql # not compatible
query I rowsort label-5564
SELECT + CAST ( + 82 AS INTEGER ) * + + 27 + + - ( + 24 )
----
2190

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL 77 * - 18 * COUNT( * ) AS col1
----
-1386

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL 77 * - 18 * COUNT ( * ) AS col1
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT - 24 DIV ( 56 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT - 24 / ( 56 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5567
SELECT + CAST( NULL AS SIGNED ) + + + 50 + - 76 * - CAST( - + 26 AS SIGNED ) * + 95 + + COUNT( * ) * - + AVG ( - CAST( + + 52 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT + CAST ( NULL AS INTEGER ) + + + 50 + - 76 * - CAST ( - + 26 AS INTEGER ) * + 95 + + COUNT ( * ) * - + AVG ( - CAST ( + + 52 AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT - 41 - + NULLIF ( + - 26, + CAST( - 1 AS SIGNED ) - - - 4 + + 87 / + - 95 + - + CAST( NULL AS SIGNED ) + + + SUM( + 85 ) + + + 54 / - 39 )
----
-15

skipif mysql # not compatible
query I rowsort label-5568
SELECT - 41 - + NULLIF ( + - 26, + CAST ( - 1 AS INTEGER ) - - - 4 + + 87 / + - 95 + - + CAST ( NULL AS INTEGER ) + + + SUM ( + 85 ) + + + 54 / - 39 )
----
-15

query I rowsort
SELECT ALL 6 + 88 AS col1
----
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5571
SELECT DISTINCT 3, - COUNT( * ) AS col0
----
3
-1

skipif mysql # not compatible
query II rowsort label-5571
SELECT DISTINCT 3, - COUNT ( * ) AS col0
----
3
-1

query I rowsort
SELECT DISTINCT 35 + - ( - + 89 ) + 59 col0
----
183

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

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - COUNT ( * ) + + - 35 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL + CAST( - - 34 AS SIGNED ) + + 1 col0
----
35

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + CAST ( - - 34 AS INTEGER ) + + 1 col0
----
35

query I rowsort
SELECT DISTINCT + + 78 * + 23 AS col1
----
1794

query I rowsort
SELECT DISTINCT 97 + 60 AS col0
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT ALL - 69 + - 5 DIV 70 * - + SUM( + 11 )
----
-69

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL - 69 + - 5 / 70 * - + SUM ( + 11 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5578
SELECT + 49, 94 + + + COUNT( * ) + - + COUNT( * ) * 50 AS col1
----
49
45

skipif mysql # not compatible
query II rowsort label-5578
SELECT + 49, 94 + + + COUNT ( * ) + - + COUNT ( * ) * 50 AS col1
----
49
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT CAST( - 5 AS SIGNED ) + 98 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5579
SELECT CAST ( - 5 AS INTEGER ) + 98 AS col2
----
93

query I rowsort
SELECT DISTINCT + 78 * - 15 * 4 * - 75
----
351000

query I rowsort
SELECT ALL - 20 + - - NULLIF ( 52, - 94 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + MAX( - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT + MAX ( - 0 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5583
SELECT 52 / + CAST( NULL AS SIGNED ) AS col2, 27 AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-5583
SELECT 52 / + CAST ( NULL AS INTEGER ) AS col2, 27 AS col1
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL 82 - - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL 82 - - COUNT ( * ) AS col2
----
83

query III rowsort
SELECT DISTINCT - 10 AS col0, + 6 * - + ( - 2 ) AS col0, 45 + - - ( + - 67 ) AS col1
----
-10
12
-22

query I rowsort
SELECT ALL - 17 * + 40 AS col1
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT COUNT( + + 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5587
SELECT COUNT ( + + 27 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT ALL - CAST( 48 AS SIGNED ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - CAST ( 48 AS INTEGER ) col0
----
-48

query II rowsort
SELECT ALL - 87, 77 + + 8 AS col2
----
-87
85

query I rowsort
SELECT DISTINCT - 26 - + 95 + + 93 + + ( + - 18 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT ALL SUM( 59 ) DIV 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL SUM ( 59 ) / 51 AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5592
SELECT + 68, 66 DIV - 54 - - 80 DIV + + 62 AS col1
----
68
0

skipif mysql # not compatible
query II rowsort label-5592
SELECT + 68, 66 / - 54 - - 80 / + + 62 AS col1
----
68
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5593
SELECT ALL + + COUNT( * ) - + - NULLIF ( - - 86, - 0 * - - CAST( + - 70 AS DECIMAL ) * + 31 * - 61 + + 62 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + + COUNT ( * ) - + - NULLIF ( - - 86, - 0 * - - CAST ( + - 70 AS REAL ) * + 31 * - 61 + + 62 ) AS col2
----
87

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

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

query I rowsort
SELECT - COALESCE ( - 67, - 40 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT 37 DIV 1
----
37

skipif mysql # not compatible
query I rowsort label-5596
SELECT 37 / 1
----
37

query I rowsort
SELECT + 60 * 46 + - 89
----
2671

query II rowsort
SELECT DISTINCT 37 * 53 AS col1, - 31 AS col1
----
1961
-31

query I rowsort
SELECT ALL - 3 * - + 14 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5600
SELECT COUNT( ALL - 67 ) + - CAST( + 93 AS SIGNED ) DIV - COUNT( + + 68 )
----
94

skipif mysql # not compatible
query I rowsort label-5600
SELECT COUNT ( ALL - 67 ) + - CAST ( + 93 AS INTEGER ) / - COUNT ( + + 68 )
----
94

query I rowsort
SELECT 88 + 47 AS col2
----
135

query I rowsort
SELECT 62 * 78 AS col2
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT CASE - 68 WHEN - + 12 * 88 THEN - - 62 * - + COUNT( * ) ELSE NULL END + 96 - NULLIF ( - - 77, - - 77 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT CASE - 68 WHEN - + 12 * 88 THEN - - 62 * - + COUNT ( * ) ELSE NULL END + 96 - NULLIF ( - - 77, - - 77 ) AS col2
----
NULL

query I rowsort
SELECT ALL 30 + - 26 AS col2
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5606
SELECT CASE + + CAST( + - 56 AS SIGNED ) WHEN AVG ( 55 ) * + 13 * + - 23 * 50 THEN NULL WHEN 24 THEN + COUNT( * ) END * - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT CASE + + CAST ( + - 56 AS INTEGER ) WHEN AVG ( 55 ) * + 13 * + - 23 * 50 THEN NULL WHEN 24 THEN + COUNT ( * ) END * - 72 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5607
SELECT ALL + COUNT( * ) + + 98 * - + 77 + SUM( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + COUNT ( * ) + + 98 * - + 77 + SUM ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 59 * + - 49 col1
----
-2891

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT ALL 70 DIV + 85 * - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL 70 / + 85 * - 25 AS col1
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( - 50, 70 ) + 10
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL SUM( - + 47 ) * - 63 * - - SUM( 80 )
----
236880

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL SUM ( - + 47 ) * - 63 * - - SUM ( 80 )
----
236880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT + NULLIF ( + + ( + - 70 ), + 13 ) * - 74 - + NULLIF ( + 92, COUNT( * ) / - 95 ) AS col2
----
5088

skipif mysql # not compatible
query I rowsort label-5613
SELECT + NULLIF ( + + ( + - 70 ), + 13 ) * - 74 - + NULLIF ( + 92, COUNT ( * ) / - 95 ) AS col2
----
5088

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

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL MAX ( - 68 )
----
-68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT - 8 DIV - 99 * + MAX( ALL + + 87 ) + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5616
SELECT - 8 / - 99 * + MAX ( ALL + + 87 ) + COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL + 11 * - CASE 38 WHEN - 4 / + - 24 THEN - + 94 WHEN ( + - 29 ) THEN NULL ELSE - 80 END - - - COALESCE ( 60, - 33, - - 87 * + CAST( + 1 AS SIGNED ) * 51 + - - 22 * + 84 ) AS col1
----
820

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + 11 * - CASE 38 WHEN - 4 / + - 24 THEN - + 94 WHEN ( + - 29 ) THEN NULL ELSE - 80 END - - - COALESCE ( 60, - 33, - - 87 * + CAST ( + 1 AS INTEGER ) * 51 + - - 22 * + 84 ) AS col1
----
820

query I rowsort
SELECT + 55 * 31 - 18 AS col2
----
1687

onlyif mysql # aggregate syntax: 
query II rowsort label-5619
SELECT DISTINCT + 5 * - - COUNT( * ) AS col0, 81 AS col0
----
5
81

skipif mysql # not compatible
query II rowsort label-5619
SELECT DISTINCT + 5 * - - COUNT ( * ) AS col0, 81 AS col0
----
5
81

query I rowsort
SELECT 23 + 44 * - 84
----
-3673

query I rowsort
SELECT + 56 * 32 + + + 12 AS col0
----
1804

query I rowsort
SELECT ALL - COALESCE ( - 6, + 74 ) col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5623
SELECT COUNT( * ) AS col0, 24 - + COUNT( * ) AS col1
----
1
23

skipif mysql # not compatible
query II rowsort label-5623
SELECT COUNT ( * ) AS col0, 24 - + COUNT ( * ) AS col1
----
1
23

query I rowsort
SELECT ALL 67 * 21 AS col1
----
1407

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL - MAX( + 62 ) + - 96 AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - MAX ( + 62 ) + - 96 AS col1
----
-158

query II rowsort
SELECT DISTINCT - 14, + 0 AS col2
----
-14
0

query II rowsort
SELECT + 73 col1, 78 - 38 col1
----
73
40

query I rowsort
SELECT 91 + 74 - + - 93 col1
----
258

query I rowsort
SELECT DISTINCT - COALESCE ( + 17, - 46 )
----
-17

query I rowsort
SELECT ALL + 9 + - 27 * - + 21 - + 79 - 99 col1
----
398

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT - MAX( - + 52 ) + - 65 col1
----
-13

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT - MAX ( - + 52 ) + - 65 col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT MIN( - 82 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT MIN ( - 82 ) col0
----
-82

query I rowsort
SELECT ALL - 36 + + + 36 + - + ( + + 99 ) * - ( + - 11 )
----
-1089

query I rowsort
SELECT DISTINCT - 55 + - 86
----
-141

onlyif mysql # DIV for integer division: 
query II rowsort label-5635
SELECT ALL + NULLIF ( - + 0, - 98 * AVG ( ALL + NULLIF ( 35, - 72 ) ) ) + - 30 + + 31 + - 33 DIV - 42 + 75 * - 23, 65 AS col0
----
-1724
65

skipif mysql # not compatible
query II rowsort label-5635
SELECT ALL + NULLIF ( - + 0, - 98 * AVG ( ALL + NULLIF ( 35, - 72 ) ) ) + - 30 + + 31 + - 33 / - 42 + 75 * - 23, 65 AS col0
----
-1724
65

query I rowsort
SELECT ALL - 82 * 51 AS col1
----
-4182

query I rowsort
SELECT - 53 + 14
----
-39

query I rowsort
SELECT + 1 * 6
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5639
SELECT - + 22 * CASE CASE + ( + CASE - 47 WHEN + + MAX( 57 ) - + 55 * - 94 * - 94 * + - 13 THEN + + 60 + + 83 ELSE NULL END ) WHEN + 24 * 82 - - 74 THEN NULL ELSE COALESCE ( - 3, 89 + 94 ) * - CASE + + 20 WHEN + COUNT( * ) / + ( - CASE + - ( + - CAST( NULL AS DECIMAL ) ) WHEN + + 63 THEN NULL WHEN 5 * 68 THEN + 64 ELSE NULL END ) THEN NULL ELSE ( + + 65 ) END * - 81 + + AVG ( DISTINCT + 92 ) / - + SUM( + 62 ) END WHEN - 99 THEN - 48 WHEN 51 + COUNT( 1 ) * - NULLIF ( - MAX( DISTINCT - 98 ) * - CAST( + 64 AS SIGNED ), 44 ) THEN 81 * - 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT - + 22 * CASE CASE + ( + CASE - 47 WHEN + + MAX ( 57 ) - + 55 * - 94 * - 94 * + - 13 THEN + + 60 + + 83 ELSE NULL END ) WHEN + 24 * 82 - - 74 THEN NULL ELSE COALESCE ( - 3, 89 + 94 ) * - CASE + + 20 WHEN + COUNT ( * ) / + ( - CASE + - ( + - CAST ( NULL AS REAL ) ) WHEN + + 63 THEN NULL WHEN 5 * 68 THEN + 64 ELSE NULL END ) THEN NULL ELSE ( + + 65 ) END * - 81 + + AVG ( DISTINCT + 92 ) / - + SUM ( + 62 ) END WHEN - 99 THEN - 48 WHEN 51 + COUNT ( 1 ) * - NULLIF ( - MAX ( DISTINCT - 98 ) * - CAST ( + 64 AS INTEGER ), 44 ) THEN 81 * - 81 END AS col2
----
NULL

query I rowsort
SELECT - - NULLIF ( - - 67, 9 * + - 11 ) + + 56 AS col0
----
123

query I rowsort
SELECT - 58 * + 77
----
-4466

query I rowsort
SELECT - COALESCE ( - + 12, + 43 - + 84 + 4, + ( + 96 ), 27 )
----
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5644
SELECT - + MAX( - + CAST( NULL AS SIGNED ) ) + ( + 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT - + MAX ( - + CAST ( NULL AS INTEGER ) ) + ( + 45 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - - NULLIF ( COUNT( * ), + - CASE + - 60 WHEN - 53 + - COUNT( * ) * 22 + + 31 THEN + 69 ELSE NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-5645
SELECT - - NULLIF ( COUNT ( * ), + - CASE + - 60 WHEN - 53 + - COUNT ( * ) * 22 + + 31 THEN + 69 ELSE NULL END )
----
1

query I rowsort
SELECT ALL 20 - + + ( + + 71 )
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - - MIN( NULLIF ( ( + 7 ), + 62 / + ( - - 37 ) * + - 69 ) )
----
7

skipif mysql # not compatible
query I rowsort label-5648
SELECT - - MIN ( NULLIF ( ( + 7 ), + 62 / + ( - - 37 ) * + - 69 ) )
----
7

query I rowsort
SELECT + COALESCE ( - - 31, + 32 ) + + + 62 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + - COUNT( * ) * + 43 * - - 91 AS col2
----
-3913

skipif mysql # not compatible
query I rowsort label-5650
SELECT + - COUNT ( * ) * + 43 * - - 91 AS col2
----
-3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT DISTINCT - 35 * + CAST( + 75 AS SIGNED ) AS col2
----
-2625

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT - 35 * + CAST ( + 75 AS INTEGER ) AS col2
----
-2625

onlyif mysql # aggregate syntax: 
query II rowsort label-5652
SELECT + 69 col1, - SUM( + ( + 45 ) ) * - 83
----
69
3735

skipif mysql # not compatible
query II rowsort label-5652
SELECT + 69 col1, - SUM ( + ( + 45 ) ) * - 83
----
69
3735

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT + + 65 * 64 * - + 14 * - COUNT( * ) AS col1
----
58240

skipif mysql # not compatible
query I rowsort label-5653
SELECT + + 65 * 64 * - + 14 * - COUNT ( * ) AS col1
----
58240

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5655
SELECT + 2 * - - 12, + CAST( + COUNT( * ) AS SIGNED ) col2
----
24
1

skipif mysql # not compatible
query II rowsort label-5655
SELECT + 2 * - - 12, + CAST ( + COUNT ( * ) AS INTEGER ) col2
----
24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT + MAX( ALL + - 98 ) * - 61 * + 89
----
532042

skipif mysql # not compatible
query I rowsort label-5656
SELECT + MAX ( ALL + - 98 ) * - 61 * + 89
----
532042

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL COUNT( * ) * + - 2 * + 42 + + 28 + + - 19 * 36
----
-740

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL COUNT ( * ) * + - 2 * + 42 + + 28 + + - 19 * 36
----
-740

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT + ( - 24 ) AS col2, - 95 * 55 * COUNT( * )
----
-24
-5225

skipif mysql # not compatible
query II rowsort label-5658
SELECT + ( - 24 ) AS col2, - 95 * 55 * COUNT ( * )
----
-24
-5225

query I rowsort
SELECT + 66 * + 25 * 32 AS col0
----
52800

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT CASE + 45 WHEN - COUNT( * ) + + 11 * - + 27 - - 39 THEN + 89 + - - 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT CASE + 45 WHEN - COUNT ( * ) + + 11 * - + 27 - - 39 THEN + 89 + - - 16 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 58 * 83 + - 28
----
4786

query I rowsort
SELECT NULLIF ( - 26, - - 10 * - 16 * + NULLIF ( NULLIF ( + + 19, - 72 + 51 * - 39 ), + 42 ) + + 68 )
----
-26

query I rowsort
SELECT + 36 + - - 48 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + ( + CASE - - 73 WHEN 26 * + - 76 + 65 THEN + + MIN( ALL + 6 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT + ( + CASE - - 73 WHEN 26 * + - 76 + 65 THEN + + MIN ( ALL + 6 ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5665
SELECT ALL 26 * 83 * 56 + - 26 + + 14 * - MIN( 26 ) AS col0, 85 AS col2
----
120458
85

skipif mysql # not compatible
query II rowsort label-5665
SELECT ALL 26 * 83 * 56 + - 26 + + 14 * - MIN ( 26 ) AS col0, 85 AS col2
----
120458
85

query I rowsort
SELECT NULLIF ( + 97, - 60 ) AS col1
----
97

query I rowsort
SELECT ALL - 83 * + - 20 + - 36
----
1624

query I rowsort
SELECT DISTINCT 12 * + - 94
----
-1128

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5670
SELECT - 82 + + COALESCE ( + 7, 19 ) + + + 73 AS col0, - COUNT( * ) - + + 23
----
-2
-24

skipif mysql # not compatible
query II rowsort label-5670
SELECT - 82 + + COALESCE ( + 7, 19 ) + + + 73 AS col0, - COUNT ( * ) - + + 23
----
-2
-24

query I rowsort
SELECT DISTINCT 75 * - 92 + - 15 AS col0
----
-6915

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

query I rowsort
SELECT 14 * - - 96 + - 56
----
1288

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT - + 12 * - ( + 68 ) * 2 + 75 + + CAST( NULL AS SIGNED ) + - 85 + + 10 * + 18 / - + 66 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT - + 12 * - ( + 68 ) * 2 + 75 + + CAST ( NULL AS INTEGER ) + - 85 + + 10 * + 18 / - + 66 * - 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT DISTINCT + 79 DIV - 38 + 59
----
57

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + 79 / - 38 + 59
----
57

query I rowsort
SELECT ALL + 57 * + 49 AS col2
----
2793

query I rowsort
SELECT - 78 * - - 78
----
-6084

query I rowsort
SELECT ALL + 46 * - 80 * + - 49
----
180320

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

skipif mysql # not compatible
query I rowsort label-5680
SELECT - + COUNT ( * ) / + 65 col1
----
0

query I rowsort
SELECT DISTINCT + + 87 * + 48 * + 16 * 79 - 18
----
5278446

query I rowsort
SELECT ALL - NULLIF ( - - 79, + 61 + - + 27 + + 77 ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5683
SELECT CASE - 73 WHEN + - 72 THEN 85 END, + CAST( NULL AS DECIMAL ) + + 17 * + + ( - + COUNT( * ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5683
SELECT CASE - 73 WHEN + - 72 THEN 85 END, + CAST ( NULL AS REAL ) + + 17 * + + ( - + COUNT ( * ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT DISTINCT - COALESCE ( + 80, + 60 * + 44 + + + COALESCE ( - + 55, + - 56, + - 22 * 30 ) ) * NULLIF ( + + 27, + COUNT( * ) ) AS col2, + 24 + - 57
----
-2160
-33

skipif mysql # not compatible
query II rowsort label-5684
SELECT DISTINCT - COALESCE ( + 80, + 60 * + 44 + + + COALESCE ( - + 55, + - 56, + - 22 * 30 ) ) * NULLIF ( + + 27, + COUNT ( * ) ) AS col2, + 24 + - 57
----
-2160
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5685
SELECT - - ( + + 76 ), CAST( NULL AS SIGNED ) - 97 * + 11 AS col0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-5685
SELECT - - ( + + 76 ), CAST ( NULL AS INTEGER ) - 97 * + 11 AS col0
----
76
NULL

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

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

query I rowsort
SELECT + - 11 * 44 + - 32
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT - - COUNT( * ) - + + 63
----
-62

skipif mysql # not compatible
query I rowsort label-5688
SELECT - - COUNT ( * ) - + + 63
----
-62

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

skipif mysql # not compatible
query I rowsort label-5689
SELECT + CAST ( - 19 AS INTEGER ) col2
----
-19

query I rowsort
SELECT DISTINCT + COALESCE ( - - 40, - + 19 ) + - 5 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5691
SELECT DISTINCT - 38 DIV - 25 + - + 57 - - 81 DIV - 39 * COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT - 38 / - 25 + - + 57 - - 81 / - 39 * COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL - 2 / - 85 + COUNT( * ) - 55 + - - COUNT( * ) + + CASE + 45 WHEN + + 44 * - 70 * - 25 THEN - 82 ELSE NULL END - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL - 2 / - 85 + COUNT ( * ) - 55 + - - COUNT ( * ) + + CASE + 45 WHEN + + 44 * - 70 * - 25 THEN - 82 ELSE NULL END - + 60
----
NULL

query II rowsort
SELECT ALL + 7 AS col0, - 22
----
7
-22

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

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL 48 / 97 * COUNT ( * ) + - + ( + - 16 ) AS col2
----
16

query I rowsort
SELECT ALL + 81 * + - 28
----
-2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT CAST( - AVG ( + + 60 ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-5696
SELECT CAST ( - AVG ( + + 60 ) AS INTEGER )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT - NULLIF ( 52, + 20 ) + - 79 DIV 97
----
-52

skipif mysql # not compatible
query I rowsort label-5697
SELECT - NULLIF ( 52, + 20 ) + - 79 / 97
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5698
SELECT + NULLIF ( 7, + NULLIF ( + 34, - 10 ) ) DIV - 60 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5698
SELECT + NULLIF ( 7, + NULLIF ( + 34, - 10 ) ) / - 60 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5699
SELECT 81 + 86 * 23 + + 81 + + 72 + + COUNT( * ) DIV + 22 * NULLIF ( + - COUNT( * ), + + 91 )
----
2212

skipif mysql # not compatible
query I rowsort label-5699
SELECT 81 + 86 * 23 + + 81 + + 72 + + COUNT ( * ) / + 22 * NULLIF ( + - COUNT ( * ), + + 91 )
----
2212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5700
SELECT ALL NULLIF ( ( 91 ), + 86 * + + CAST( COUNT( ( 91 ) ) AS SIGNED ) * + ( 86 ) + - 61 ) + 53 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL NULLIF ( ( 91 ), + 86 * + + CAST ( COUNT ( ( 91 ) ) AS INTEGER ) * + ( 86 ) + - 61 ) + 53 AS col1
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5701
SELECT ALL + MIN( 36 ) - COUNT( * ) + 40 DIV 13 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL + MIN ( 36 ) - COUNT ( * ) + 40 / 13 AS col2
----
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5703
SELECT ALL COALESCE ( + 58, - ( - 94 ) - 54 + - + COUNT( * ) + CAST( + 71 AS SIGNED ), 83 * - ( + 23 ) DIV - COUNT( * ) + - 2 * + CASE - 73 WHEN COALESCE ( - 65, - + 0, + MIN( ALL 67 ) ) THEN - 20 END ) - 16
----
42

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL COALESCE ( + 58, - ( - 94 ) - 54 + - + COUNT ( * ) + CAST ( + 71 AS INTEGER ), 83 * - ( + 23 ) / - COUNT ( * ) + - 2 * + CASE - 73 WHEN COALESCE ( - 65, - + 0, + MIN ( ALL 67 ) ) THEN - 20 END ) - 16
----
42

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

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

query I rowsort
SELECT DISTINCT 37 * - 89 * + + 60 AS col1
----
-197580

query I rowsort
SELECT + 76 * + 59 - + 4 + 6 * 42
----
4732

query I rowsort
SELECT COALESCE ( 99, - + 33 * + 59 * + - 31 ) - - + 91 col2
----
190

query II rowsort
SELECT 83 AS col0, - 34 * + 24 + 10 + + 11 + + 10 * 93
----
83
135

query I rowsort
SELECT 82 + + CASE + - 6 WHEN + 35 THEN 84 END + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT + NULLIF ( + CASE - 23 WHEN + + COUNT( * ) * - 51 THEN + 38 + - 33 ELSE NULL END, + COUNT( * ) ) / + + 11 / + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT + NULLIF ( + CASE - 23 WHEN + + COUNT ( * ) * - 51 THEN + 38 + - 33 ELSE NULL END, + COUNT ( * ) ) / + + 11 / + - 78
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5711
SELECT ALL + + MIN( - 81 ) DIV - + 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL + + MIN ( - 81 ) / - + 51 AS col2
----
1

query I rowsort
SELECT - 65 + - 76 * 9 * - - 28 AS col0
----
-19217

query I rowsort
SELECT ALL + + 9 * 88
----
792

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT COUNT( * ) + - - 63 * - 66 AS col0, 47 AS col0
----
-4157
47

skipif mysql # not compatible
query II rowsort label-5714
SELECT COUNT ( * ) + - - 63 * - 66 AS col0, 47 AS col0
----
-4157
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT ALL + COUNT( + - 87 ) + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL + COUNT ( + - 87 ) + 54 AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT - 15 col2, MIN( DISTINCT - 90 ) AS col1
----
-15
-90

skipif mysql # not compatible
query II rowsort label-5716
SELECT - 15 col2, MIN ( DISTINCT - 90 ) AS col1
----
-15
-90

query I rowsort
SELECT - 92 * + ( 1 ) AS col0
----
-92

query I rowsort
SELECT DISTINCT + 94 * - + 82 AS col2
----
-7708

query I rowsort
SELECT 55 * - 81 AS col1
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT 91 + + + COUNT( DISTINCT - 69 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5720
SELECT 91 + + + COUNT ( DISTINCT - 69 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT ALL + 85 + - ( + COUNT( * ) ) col2
----
84

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + 85 + - ( + COUNT ( * ) ) col2
----
84

query I rowsort
SELECT ALL - 22 + - 31 AS col2
----
-53

query I rowsort
SELECT DISTINCT - COALESCE ( + 92, - + 72 )
----
-92

query II rowsort
SELECT 81 * - 79 * + + 47 * 76 AS col1, - 93 + + - 57
----
-22857228
-150

query II rowsort
SELECT DISTINCT - 55 AS col0, 18 * - 32 + + 46
----
-55
-530

query II rowsort
SELECT 34, 9 AS col0
----
34
9

query I rowsort
SELECT ALL - 22 - + + 37 AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT DISTINCT - NULLIF ( + 94, - - 18 * - + 46 * + + 16 - + + 82 + + + 8 - - CAST( - 95 AS SIGNED ) * + 92 )
----
-94

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT - NULLIF ( + 94, - - 18 * - + 46 * + + 16 - + + 82 + + + 8 - - CAST ( - 95 AS INTEGER ) * + 92 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5729
SELECT DISTINCT - 74, 8 + + ( - CASE + + 56 WHEN - COUNT( * ) THEN COUNT( * ) / - + 75 * 69 ELSE NULL END ) / + 12 AS col1
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-5729
SELECT DISTINCT - 74, 8 + + ( - CASE + + 56 WHEN - COUNT ( * ) THEN COUNT ( * ) / - + 75 * 69 ELSE NULL END ) / + 12 AS col1
----
-74
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT DISTINCT - SUM( ALL 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT - SUM ( ALL 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT ALL + 23 - COUNT( * ), + COUNT( * ) * + - MIN( + + 4 ) AS col1
----
22
-4

skipif mysql # not compatible
query II rowsort label-5732
SELECT ALL + 23 - COUNT ( * ), + COUNT ( * ) * + - MIN ( + + 4 ) AS col1
----
22
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT MAX( ALL - 9 ) * 64 col1
----
-576

skipif mysql # not compatible
query I rowsort label-5733
SELECT MAX ( ALL - 9 ) * 64 col1
----
-576

query I rowsort
SELECT ( - 31 ) * - 80 * + + 84 * 4 col2
----
833280

query I rowsort
SELECT DISTINCT ( - 37 ) * + 90 col2
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT 12 + - + MAX( 65 )
----
-53

skipif mysql # not compatible
query I rowsort label-5736
SELECT 12 + - + MAX ( 65 )
----
-53

query I rowsort
SELECT ALL - 15 * + + 9 AS col0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL + 21 * + - MIN( - 63 ) + + 86 + + ( - 26 ) AS col0
----
1383

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL + 21 * + - MIN ( - 63 ) + + 86 + + ( - 26 ) AS col0
----
1383

query I rowsort
SELECT ALL - COALESCE ( + - 94, - 3 - - 2 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT - + 66 * COUNT( * ) * 70 * 43 + + COUNT( ALL 74 )
----
-198659

skipif mysql # not compatible
query I rowsort label-5740
SELECT - + 66 * COUNT ( * ) * 70 * 43 + + COUNT ( ALL 74 )
----
-198659

onlyif mysql # aggregate syntax: 
query II rowsort label-5741
SELECT ALL - + 30, + COALESCE ( - COUNT( + 98 ), - 81 - + - ( + 77 ) ) AS col1
----
-30
-1

skipif mysql # not compatible
query II rowsort label-5741
SELECT ALL - + 30, + COALESCE ( - COUNT ( + 98 ), - 81 - + - ( + 77 ) ) AS col1
----
-30
-1

query II rowsort
SELECT DISTINCT - 46, 7 col1
----
-46
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT + CASE - + 56 WHEN + + 49 THEN NULL ELSE 26 + - - 34 END * + NULLIF ( + 63, 29 ) * 36 + - + 77 - + + 52 DIV - 27 - - + 11 + 65
----
136080

skipif mysql # not compatible
query I rowsort label-5743
SELECT + CASE - + 56 WHEN + + 49 THEN NULL ELSE 26 + - - 34 END * + NULLIF ( + 63, 29 ) * 36 + - + 77 - + + 52 / - 27 - - + 11 + 65
----
136080

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT - + MAX( - - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5746
SELECT - + MAX ( - - 71 ) AS col0
----
-71

query I rowsort
SELECT + 6 + - + 74 + 7
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT COUNT( ALL - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT COUNT ( ALL - 26 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT + COUNT( * ) * - + 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5749
SELECT + COUNT ( * ) * - + 28 AS col1
----
-28

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

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT 98 + ( + - 94 ) + + COUNT ( * ) + - 99 AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL + 97 + - 93 + - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL + 97 + - 93 + - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
3

query II rowsort
SELECT DISTINCT 82 AS col0, 64 * - 21
----
82
-1344

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5753
SELECT ALL + 23 + CASE + + 19 WHEN + - 26 THEN NULL ELSE MIN( DISTINCT 27 ) END + - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL + 23 + CASE + + 19 WHEN + - 26 THEN NULL ELSE MIN ( DISTINCT 27 ) END + - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 66 * - + 30 col0
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT - COALESCE ( + 64, - - COUNT( DISTINCT - ( 48 ) ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5755
SELECT - COALESCE ( + 64, - - COUNT ( DISTINCT - ( 48 ) ) ) AS col0
----
-64

query I rowsort
SELECT DISTINCT + 95 + 28
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-5757
SELECT - + MAX( 96 ) AS col0, - 15 AS col1
----
-96
-15

skipif mysql # not compatible
query II rowsort label-5757
SELECT - + MAX ( 96 ) AS col0, - 15 AS col1
----
-96
-15

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

skipif mysql # not compatible
query I rowsort label-5758
SELECT - 13 / + + COUNT ( * ) col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT 46 * + + COUNT( * ) * + 56
----
2576

skipif mysql # not compatible
query I rowsort label-5759
SELECT 46 * + + COUNT ( * ) * + 56
----
2576

query I rowsort
SELECT - CASE 0 WHEN - + 99 THEN NULL WHEN + 33 THEN - - 33 * - + 5 * - 69 ELSE - 18 END
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT CASE - + 6 WHEN + COUNT( ALL + 3 ) THEN + - 7 WHEN + 93 * - ( + ( - COUNT( * ) ) ) THEN - 83 + - 39 ELSE + MAX( - 80 ) END - + 1 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-5761
SELECT CASE - + 6 WHEN + COUNT ( ALL + 3 ) THEN + - 7 WHEN + 93 * - ( + ( - COUNT ( * ) ) ) THEN - 83 + - 39 ELSE + MAX ( - 80 ) END - + 1 AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5762
SELECT ALL MIN( + 51 ), CAST( NULL AS SIGNED ) AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-5762
SELECT ALL MIN ( + 51 ), CAST ( NULL AS INTEGER ) AS col1
----
51
NULL

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

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - COUNT ( * ) / + 40 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT ALL 2 - - CAST( NULL AS SIGNED ) * + 3 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL 2 - - CAST ( NULL AS INTEGER ) * + 3 + - COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5765
SELECT - 66 / - - COUNT ( * ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT ALL - COUNT( * ) * - 61 AS col1, + 54 * + 91 AS col2
----
61
4914

skipif mysql # not compatible
query II rowsort label-5766
SELECT ALL - COUNT ( * ) * - 61 AS col1, + 54 * + 91 AS col2
----
61
4914

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( + 87, - 89 ) * - 94 + + - 70
----
-8248

query I rowsort
SELECT - 6 + - 32 * - ( - + 31 ) AS col1
----
-998

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

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

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

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

query I rowsort
SELECT COALESCE ( - 91, 7, - - 54 * + + 54 + ( + + 57 ) + - - 58 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT DISTINCT + 46 * - MAX( ALL 57 ) * - 30 + - - 18 * + 54 AS col1
----
79632

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT + 46 * - MAX ( ALL 57 ) * - 30 + - - 18 * + 54 AS col1
----
79632

query I rowsort
SELECT NULLIF ( - 65, - ( - AVG ( DISTINCT + 33 ) ) ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT DISTINCT + MAX( ALL - - 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT + MAX ( ALL - - 47 ) AS col1
----
47

query I rowsort
SELECT DISTINCT - 12 * + ( 37 ) + - 89 + - - 42 col2
----
-491

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT DISTINCT - 84 * - 11 * - SUM( + NULLIF ( + 66, - - ( 78 ) ) ) + + - 59 + + COUNT( ALL + 35 ) AS col1, 55
----
-61042
55

skipif mysql # not compatible
query II rowsort label-5777
SELECT DISTINCT - 84 * - 11 * - SUM ( + NULLIF ( + 66, - - ( 78 ) ) ) + + - 59 + + COUNT ( ALL + 35 ) AS col1, 55
----
-61042
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT DISTINCT + NULLIF ( COUNT( ALL - 66 ), + 7 + + NULLIF ( + 60, + 49 ) / + 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT + NULLIF ( COUNT ( ALL - 66 ), + 7 + + NULLIF ( + 60, + 49 ) / + 74 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5779
SELECT - 98 DIV - - ( - 33 ) + - - 5 * + 9 * - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5779
SELECT - 98 / - - ( - 33 ) + - - 5 * + 9 * - COUNT ( * ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-5780
SELECT - SUM( DISTINCT - 62 ) AS col1, 62
----
62
62

skipif mysql # not compatible
query II rowsort label-5780
SELECT - SUM ( DISTINCT - 62 ) AS col1, 62
----
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT - - CAST( 38 AS SIGNED ) * + 86 + 82 AS col1
----
3350

skipif mysql # not compatible
query I rowsort label-5781
SELECT - - CAST ( 38 AS INTEGER ) * + 86 + 82 AS col1
----
3350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5782
SELECT ALL + 26 * - 90 + COUNT( * ) + - 72 * + + 37 * + 13 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL + 26 * - 90 + COUNT ( * ) + - 72 * + + 37 * + 13 + CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT - - 12 + - 36, + 19 AS col2
----
-24
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL - 11 * COUNT( ( + 29 ) ) + 30 + + 97 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - 11 * COUNT ( ( + 29 ) ) + 30 + + 97 AS col1
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5785
SELECT - + 38 * 24, - 39 * + CAST( 44 AS SIGNED ) AS col2
----
-912
-1716

skipif mysql # not compatible
query II rowsort label-5785
SELECT - + 38 * 24, - 39 * + CAST ( 44 AS INTEGER ) AS col2
----
-912
-1716

query I rowsort
SELECT ALL 87 + ( - 13 ) AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5787
SELECT - + COALESCE ( + - 56, + COALESCE ( - 16, - 33 DIV - - 86 * - 85 * - 52 * + 99 ) * - COALESCE ( 54, CASE + 11 WHEN + + 34 THEN 53 END ) )
----
56

skipif mysql # not compatible
query I rowsort label-5787
SELECT - + COALESCE ( + - 56, + COALESCE ( - 16, - 33 / - - 86 * - 85 * - 52 * + 99 ) * - COALESCE ( 54, CASE + 11 WHEN + + 34 THEN 53 END ) )
----
56

query I rowsort
SELECT ALL - - 26 + + 69 * - 38 AS col0
----
-2596

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

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

query I rowsort
SELECT ALL 14 + - 21 AS col1
----
-7

query I rowsort
SELECT + 83 - - 6
----
89

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

skipif mysql # not compatible
query I rowsort label-5792
SELECT - COUNT ( - CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT + 97 + - 88
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT - - 86 + + - 32 - + ( MIN( ALL 4 ) ) + + 42
----
92

skipif mysql # not compatible
query I rowsort label-5794
SELECT - - 86 + + - 32 - + ( MIN ( ALL 4 ) ) + + 42
----
92

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

skipif mysql # not compatible
query II rowsort label-5795
SELECT DISTINCT 6, COUNT ( * ) * + CAST ( NULL AS INTEGER ) col1
----
6
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT + 73 + + COUNT( * ) DIV + 85 * - - 11
----
73

skipif mysql # not compatible
query I rowsort label-5796
SELECT + 73 + + COUNT ( * ) / + 85 * - - 11
----
73

query I rowsort
SELECT ALL 84 - - - 91 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5798
SELECT + 90 * - + 52 * 12 AS col2, + 0 + COUNT( * )
----
-56160
1

skipif mysql # not compatible
query II rowsort label-5798
SELECT + 90 * - + 52 * 12 AS col2, + 0 + COUNT ( * )
----
-56160
1

query I rowsort
SELECT DISTINCT 96 * - 36 AS col0
----
-3456

query I rowsort
SELECT + 66 + + 1
----
67

query I rowsort
SELECT + 60 * + 78 AS col2
----
4680

query I rowsort
SELECT - 19 + + 81 * 39 * - 19
----
-60040

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

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL SUM ( 6 )
----
6

query II rowsort
SELECT 72 AS col0, 97
----
72
97

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

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

query I rowsort
SELECT + ( 37 ) col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT - 12 DIV - ( - 66 ) * + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5807
SELECT - 12 / - ( - 66 ) * + 29 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT ALL - 87 DIV 53 col1
----
-1

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL - 87 / 53 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5809
SELECT 51 * 21 + + COUNT( * ) - + 18 - + COUNT( * ) DIV + 38 * + 99 AS col1
----
1054

skipif mysql # not compatible
query I rowsort label-5809
SELECT 51 * 21 + + COUNT ( * ) - + 18 - + COUNT ( * ) / + 38 * + 99 AS col1
----
1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5810
SELECT DISTINCT - MIN( DISTINCT + COALESCE ( - 77, - 22, - 69 ) ) DIV 30 - - + 15 + - ( + 72 ) * 38 DIV + 59
----
-29

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT - MIN ( DISTINCT + COALESCE ( - 77, - 22, - 69 ) ) / 30 - - + 15 + - ( + 72 ) * 38 / + 59
----
-29

query I rowsort
SELECT + 59 * + 26
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT ALL - ( + - 14 ) * - MIN( 20 ) AS col0
----
-280

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL - ( + - 14 ) * - MIN ( 20 ) AS col0
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT - 76 DIV + 28 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5813
SELECT - 76 / + 28 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT ALL - 70 DIV 94 * + + 33 + + + 3 + 22 + + 25 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - 70 / 94 * + + 33 + + + 3 + 22 + + 25 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT DISTINCT + 37 / - 7 / CAST( NULL AS SIGNED ) + + 47 - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT + 37 / - 7 / CAST ( NULL AS INTEGER ) + + 47 - 97
----
NULL

query I rowsort
SELECT ALL + - 78 * - 32
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + 61 * + 65 + + NULLIF ( - 69, - + MAX( - 52 ) ) - 2 + - 84 * + + COALESCE ( - 32, + 82 * + + 87 * + 63 )
----
6582

skipif mysql # not compatible
query I rowsort label-5817
SELECT + 61 * + 65 + + NULLIF ( - 69, - + MAX ( - 52 ) ) - 2 + - 84 * + + COALESCE ( - 32, + 82 * + + 87 * + 63 )
----
6582

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT ALL + 37, + 26 * + MAX( DISTINCT 54 ) AS col1
----
37
1404

skipif mysql # not compatible
query II rowsort label-5818
SELECT ALL + 37, + 26 * + MAX ( DISTINCT 54 ) AS col1
----
37
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT - - COUNT( * ) * + COUNT( * ) - - + 12 + - + 88
----
-75

skipif mysql # not compatible
query I rowsort label-5819
SELECT - - COUNT ( * ) * + COUNT ( * ) - - + 12 + - + 88
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT 83 * 65 DIV 34 - 14 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-5820
SELECT 83 * 65 / 34 - 14 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL - COUNT( - + 42 ) * ( - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL - COUNT ( - + 42 ) * ( - 53 )
----
53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5823
SELECT - + COUNT( * ) + 41 + + COUNT( * ) col1, + COUNT( 59 ) AS col2
----
41
1

skipif mysql # not compatible
query II rowsort label-5823
SELECT - + COUNT ( * ) + 41 + + COUNT ( * ) col1, + COUNT ( 59 ) AS col2
----
41
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT ALL - ( - COUNT( ALL - 83 ) ) * + 39 + - + 59 * - 83 + - - AVG ( DISTINCT - + NULLIF ( - 34, 68 ) ) + - CAST( NULL AS SIGNED ) * - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - ( - COUNT ( ALL - 83 ) ) * + 39 + - + 59 * - 83 + - - AVG ( DISTINCT - + NULLIF ( - 34, 68 ) ) + - CAST ( NULL AS INTEGER ) * - 34 AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-5825
SELECT - COUNT ( * ) AS col0, - 56 AS col0
----
-1
-56

query I rowsort
SELECT - + 57 * 21 AS col0
----
-1197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5827
SELECT ALL - + MIN( - - 95 ) * + NULLIF ( - 43, + MIN( - 2 ) ) - COALESCE ( + 32, - 38 * - SUM( - CAST( NULL AS SIGNED ) ) * + COUNT( DISTINCT + + 89 ) - CAST( + + 16 AS SIGNED ) )
----
4053

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - + MIN ( - - 95 ) * + NULLIF ( - 43, + MIN ( - 2 ) ) - COALESCE ( + 32, - 38 * - SUM ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( DISTINCT + + 89 ) - CAST ( + + 16 AS INTEGER ) )
----
4053

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

skipif mysql # not compatible
query I rowsort label-5828
SELECT CAST ( - - CAST ( + MIN ( + 6 ) AS INTEGER ) AS INTEGER )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT DISTINCT - COALESCE ( 73, - 15, + COUNT( * ) - - MIN( 3 ), + MAX( - 37 ) ) AS col1, + 2 - + COUNT( * )
----
-73
1

skipif mysql # not compatible
query II rowsort label-5829
SELECT DISTINCT - COALESCE ( 73, - 15, + COUNT ( * ) - - MIN ( 3 ), + MAX ( - 37 ) ) AS col1, + 2 - + COUNT ( * )
----
-73
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5830
SELECT DISTINCT COUNT( * ) DIV + + CASE - NULLIF ( - - 79, + 42 ) WHEN + 78 THEN NULL WHEN + + 69 THEN NULL ELSE - ( + + 64 ) END
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT COUNT ( * ) / + + CASE - NULLIF ( - - 79, + 42 ) WHEN + 78 THEN NULL WHEN + + 69 THEN NULL ELSE - ( + + 64 ) END
----
0

query I rowsort
SELECT 80 + - 67 AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5832
SELECT ALL + 91 DIV + 27 AS col2, CAST( NULL AS SIGNED ) AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5832
SELECT ALL + 91 / + 27 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
3
NULL

query I rowsort
SELECT 32 * 12 AS col0
----
384

query I rowsort
SELECT ALL 77 * - 33 AS col2
----
-2541

query I rowsort
SELECT 15 - + 10 * - 81
----
825

query I rowsort
SELECT ALL 95 * - 36 AS col1
----
-3420

query I rowsort
SELECT 22 * + 38
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT DISTINCT COUNT( * ) * - + MAX( ALL - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT COUNT ( * ) * - + MAX ( ALL - 37 ) AS col2
----
37

query I rowsort
SELECT DISTINCT 88 + - 71 AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT DISTINCT ( + 39 ) + - MAX( ALL 81 ), 97 * 92 * MIN( ALL - 31 ) AS col2
----
-42
-276644

skipif mysql # not compatible
query II rowsort label-5840
SELECT DISTINCT ( + 39 ) + - MAX ( ALL 81 ), 97 * 92 * MIN ( ALL - 31 ) AS col2
----
-42
-276644

query I rowsort
SELECT 12 * + - 23 * + + 73
----
-20148

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT - 55 DIV + - 55 + + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5842
SELECT - 55 / + - 55 + + 26 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5843
SELECT CAST( COALESCE ( - - 40, MAX( ALL - 10 ) * - + CAST( NULL AS SIGNED ) ) AS SIGNED ) - 48 AS col1, 75 * - ( + 25 )
----
-8
-1875

skipif mysql # not compatible
query II rowsort label-5843
SELECT CAST ( COALESCE ( - - 40, MAX ( ALL - 10 ) * - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) - 48 AS col1, 75 * - ( + 25 )
----
-8
-1875

onlyif mysql # DIV for integer division: 
query II rowsort label-5844
SELECT 2 * - 91 * - 68 - 51 DIV 77, 19 col1
----
12376
19

skipif mysql # not compatible
query II rowsort label-5844
SELECT 2 * - 91 * - 68 - 51 / 77, 19 col1
----
12376
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5845
SELECT - 93 + + CASE + + 62 WHEN 61 / 45 THEN - 35 END - - COUNT( * ) * - 38 / + ( + CASE CASE 41 WHEN + 15 THEN NULL ELSE COUNT( * ) END WHEN 22 + - - ( - SUM( DISTINCT + CASE - 86 WHEN - 72 THEN 64 * - + ( - CASE 77 WHEN - 44 * - 95 + + ( - 27 ) THEN 19 + + CAST( 66 AS SIGNED ) WHEN - + 26 THEN NULL ELSE NULL END ) + - CAST( - + 96 AS DECIMAL ) - + 50 * 83 * + ( - 61 ) + + 49 END ) ) THEN NULL WHEN 28 THEN - + ( + CAST( + + 62 AS SIGNED ) ) + - 47 + - 75 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT - 93 + + CASE + + 62 WHEN 61 / 45 THEN - 35 END - - COUNT ( * ) * - 38 / + ( + CASE CASE 41 WHEN + 15 THEN NULL ELSE COUNT ( * ) END WHEN 22 + - - ( - SUM ( DISTINCT + CASE - 86 WHEN - 72 THEN 64 * - + ( - CASE 77 WHEN - 44 * - 95 + + ( - 27 ) THEN 19 + + CAST ( 66 AS INTEGER ) WHEN - + 26 THEN NULL ELSE NULL END ) + - CAST ( - + 96 AS REAL ) - + 50 * 83 * + ( - 61 ) + + 49 END ) ) THEN NULL WHEN 28 THEN - + ( + CAST ( + + 62 AS INTEGER ) ) + - 47 + - 75 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5846
SELECT DISTINCT + 18 + - MAX( + 46 ) * + + 16 + 50 DIV + 79 * + - 21 * - 16
----
-718

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + 18 + - MAX ( + 46 ) * + + 16 + 50 / + 79 * + - 21 * - 16
----
-718

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT + - 25 * - 42 + + - 26 + 84 - MIN( ALL - + 46 ) + - 29 * - 63 AS col0
----
2981

skipif mysql # not compatible
query I rowsort label-5847
SELECT + - 25 * - 42 + + - 26 + 84 - MIN ( ALL - + 46 ) + - 29 * - 63 AS col0
----
2981

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL + + 51 * - MIN( ALL 24 ) AS col0
----
-1224

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + + 51 * - MIN ( ALL 24 ) AS col0
----
-1224

query I rowsort
SELECT ALL - - 38 * 21
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT DISTINCT 8 + - MIN( ALL - + 9 )
----
17

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT 8 + - MIN ( ALL - + 9 )
----
17

query I rowsort
SELECT + 82 + 1 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL COUNT( * ) - 59 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL COUNT ( * ) - 59 AS col0
----
-58

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

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + 66 * + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 66 - - 11 * + 57 col0
----
NULL

query I rowsort
SELECT 51 - + 69
----
-18

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

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

query I rowsort
SELECT - 32 + - 45 * - - 55 * + 58 * - + 55 * + + 4 col1
----
31580968

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT ALL - 83 - 64, MAX( + 79 ) - + 26 AS col0
----
-147
53

skipif mysql # not compatible
query II rowsort label-5857
SELECT ALL - 83 - 64, MAX ( + 79 ) - + 26 AS col0
----
-147
53

query I rowsort
SELECT ALL + NULLIF ( + + 85, 87 / 17 + + 32 + + 87 ) AS col2
----
85

query I rowsort
SELECT + 59 * 4 col1
----
236

query I rowsort
SELECT 6 - + 54 * - + NULLIF ( + 77, + ( + 34 ) + - 1 ) AS col0
----
4164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5861
SELECT 95 * + NULLIF ( - - 67, + 89 + + + 82 * + 59 - + COUNT( * ) ) * + 23 + + 21 + + 45 - COALESCE ( - CAST( 73 AS SIGNED ), 14 * - + 40, 31 + + - AVG ( - 15 ) ) DIV - 92 * + 19
----
146461

skipif mysql # not compatible
query I rowsort label-5861
SELECT 95 * + NULLIF ( - - 67, + 89 + + + 82 * + 59 - + COUNT ( * ) ) * + 23 + + 21 + + 45 - COALESCE ( - CAST ( 73 AS INTEGER ), 14 * - + 40, 31 + + - AVG ( - 15 ) ) / - 92 * + 19
----
146461

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT ALL + 5 DIV - 12
----
0

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + 5 / - 12
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT 96 + - ( + + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-5864
SELECT 96 + - ( + + COUNT ( * ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT DISTINCT + MIN( ALL 53 ) * + - MIN( DISTINCT - 44 ) AS col2
----
2332

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + MIN ( ALL 53 ) * + - MIN ( DISTINCT - 44 ) AS col2
----
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT 6 + - ( - + CASE 7 WHEN + COUNT( * ) + 32 + + - 95 THEN + 20 WHEN - COUNT( * ) THEN NULL ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT 6 + - ( - + CASE 7 WHEN + COUNT ( * ) + 32 + + - 95 THEN + 20 WHEN - COUNT ( * ) THEN NULL ELSE NULL END ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL COUNT( DISTINCT + - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL COUNT ( DISTINCT + - 85 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 87 + 63 + - NULLIF ( - 96, + 67 ) * 24
----
2454

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL - COUNT( * ) + + 9 col2
----
8

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL - COUNT ( * ) + + 9 col2
----
8

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

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

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

query I rowsort
SELECT ALL 47 + - - 45
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT COUNT( * ) + + 95 + + 22 * 50 + - 76 + - + 12 * - 54
----
1768

skipif mysql # not compatible
query I rowsort label-5874
SELECT COUNT ( * ) + + 95 + + 22 * 50 + - 76 + - + 12 * - 54
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL SUM( DISTINCT + + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL SUM ( DISTINCT + + 20 ) AS col2
----
20

query I rowsort
SELECT 15 * 64 AS col2
----
960

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5877
SELECT 50 + + ( - COUNT( * ) ) AS col2, 84 DIV + 29
----
49
2

skipif mysql # not compatible
query II rowsort label-5877
SELECT 50 + + ( - COUNT ( * ) ) AS col2, 84 / + 29
----
49
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT ALL - AVG ( DISTINCT + 2 ) + + CAST( NULL AS SIGNED ) * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - AVG ( DISTINCT + 2 ) + + CAST ( NULL AS INTEGER ) * - - 63
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT + CAST ( NULL AS REAL ) / + + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT 24 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT 24 / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ( - - 78 ) + + + 58 - 78 * COUNT( * ) * - COUNT( * ) + - - 4 + - 13 + + 32 - + + 29 + - 92
----
116

skipif mysql # not compatible
query I rowsort label-5881
SELECT ( - - 78 ) + + + 58 - 78 * COUNT ( * ) * - COUNT ( * ) + - - 4 + - 13 + + 32 - + + 29 + - 92
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT COUNT( - 48 ) + + 83 * 40 * + 64
----
212481

skipif mysql # not compatible
query I rowsort label-5882
SELECT COUNT ( - 48 ) + + 83 * 40 * + 64
----
212481

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL ( + SUM( + + 9 ) ) * + 57 + - 31 * + 17 * 80 col2
----
-41647

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL ( + SUM ( + + 9 ) ) * + 57 + - 31 * + 17 * 80 col2
----
-41647

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT 40 * - - 84 / + - CASE - - 75 WHEN + 60 * - + 78 THEN + - 34 + 5 * 11 * - MIN( COALESCE ( 55, 98 ) ) * 98 * 98 WHEN + - 49 * + + 29 * 79 THEN NULL WHEN + ( COUNT( * ) ) THEN 16 + - 70 + - 79 + + 21 ELSE NULL END * 15 + - - AVG ( ALL 33 ) * - - 59 / + - ( + - CASE - 35 WHEN - 21 * - 26 * + - ( - 32 ) + 44 + - + 69 - + 96 * COUNT( * ) * 77 THEN + - 16 * + 9 + - 92 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT 40 * - - 84 / + - CASE - - 75 WHEN + 60 * - + 78 THEN + - 34 + 5 * 11 * - MIN ( COALESCE ( 55, 98 ) ) * 98 * 98 WHEN + - 49 * + + 29 * 79 THEN NULL WHEN + ( COUNT ( * ) ) THEN 16 + - 70 + - 79 + + 21 ELSE NULL END * 15 + - - AVG ( ALL 33 ) * - - 59 / + - ( + - CASE - 35 WHEN - 21 * - 26 * + - ( - 32 ) + 44 + - + 69 - + 96 * COUNT ( * ) * 77 THEN + - 16 * + 9 + - 92 END )
----
NULL

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

query I rowsort
SELECT DISTINCT 40 * 35
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL + MAX( DISTINCT + 96 ) * 34 - 45 * - 45
----
5289

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL + MAX ( DISTINCT + 96 ) * 34 - 45 * - 45
----
5289

query I rowsort
SELECT ALL 75 * - NULLIF ( 61 * + 6, + 82 ) - + 55 col0
----
-27505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5889
SELECT NULLIF ( NULLIF ( COALESCE ( + 72, CASE 83 WHEN SUM( + 95 ) THEN 17 * + COALESCE ( 41 DIV 78, 29 ) + - NULLIF ( 63, - 50 + SUM( 23 ) * - COUNT( * ) ) * 52 END * - 97 + + 40, - 51 ), 63 * + 40 ), 94 * CAST( NULL AS SIGNED ) ) * + 76 + + 14
----
5486

skipif mysql # not compatible
query I rowsort label-5889
SELECT NULLIF ( NULLIF ( COALESCE ( + 72, CASE 83 WHEN SUM ( + 95 ) THEN 17 * + COALESCE ( 41 / 78, 29 ) + - NULLIF ( 63, - 50 + SUM ( 23 ) * - COUNT ( * ) ) * 52 END * - 97 + + 40, - 51 ), 63 * + 40 ), 94 * CAST ( NULL AS INTEGER ) ) * + 76 + + 14
----
5486

query I rowsort
SELECT ( 40 ) * - 95
----
-3800

query I rowsort
SELECT + 30 * 84 + + 15 AS col2
----
2535

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT MAX( ALL 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5892
SELECT MAX ( ALL 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT MAX( - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5893
SELECT MAX ( - 85 ) AS col2
----
-85

query I rowsort
SELECT + 21 + 98
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT + ( CASE - COUNT( * ) WHEN - 55 THEN - COUNT( * ) ELSE NULL END ) * CAST( NULL AS SIGNED ) - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT + ( CASE - COUNT ( * ) WHEN - 55 THEN - COUNT ( * ) ELSE NULL END ) * CAST ( NULL AS INTEGER ) - 22 col0
----
NULL

query I rowsort
SELECT + COALESCE ( 69, + COALESCE ( + 67, 87 ) + 27, + 92 * 9 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT DISTINCT 38 DIV 17
----
2

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT 38 / 17
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT + 50 DIV NULLIF ( 62, 65 - 61 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5898
SELECT + 50 / NULLIF ( 62, 65 - 61 ) AS col0
----
0

query I rowsort
SELECT + 67 + 57
----
124

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

skipif mysql # not compatible
query I rowsort label-5900
SELECT + 14 / 84
----
0

query I rowsort
SELECT - 20 * 27 AS col2
----
-540

query I rowsort
SELECT ALL 25 * - 49
----
-1225

query I rowsort
SELECT - 96 * 74 AS col2
----
-7104

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

query I rowsort
SELECT - 73 * - 35 + 24 AS col1
----
2579

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT DISTINCT SUM( 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT SUM ( 93 ) AS col2
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL CASE + 94 WHEN 61 + - 38 THEN NULL WHEN - 18 THEN 75 * SUM( + 91 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL CASE + 94 WHEN 61 + - 38 THEN NULL WHEN - 18 THEN 75 * SUM ( + 91 ) END
----
NULL

query I rowsort
SELECT DISTINCT 24 + 8 AS col0
----
32

query I rowsort
SELECT DISTINCT + 56 + - 53 AS col2
----
3

query I rowsort
SELECT ALL - 1 + - COALESCE ( ( - ( 30 ) ), - 90 )
----
29

query I rowsort
SELECT DISTINCT + 47 + 30 * 0 AS col0
----
47

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

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

query I rowsort
SELECT + 24 + - 76
----
-52

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

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

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

query I rowsort
SELECT ALL - 2 + + 88 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - 18 - 31 * - COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5918
SELECT - 18 - 31 * - COUNT ( * ) AS col0
----
13

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

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

query I rowsort
SELECT ALL + 29 * + 34 AS col1
----
986

query I rowsort
SELECT DISTINCT + 57 * 40
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT - - CASE + COUNT( * ) WHEN 43 / 44 - - 66 THEN NULL WHEN 46 * - 18 - + 97 THEN COUNT( * ) ELSE NULL END + - 99 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT - - CASE + COUNT ( * ) WHEN 43 / 44 - - 66 THEN NULL WHEN 46 * - 18 - + 97 THEN COUNT ( * ) ELSE NULL END + - 99 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT DISTINCT + - 29 * CAST( - COUNT( DISTINCT + 48 ) AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT + - 29 * CAST ( - COUNT ( DISTINCT + 48 ) AS INTEGER ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL + MAX( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL + MAX ( DISTINCT + 79 )
----
79

query I rowsort
SELECT - 11 - 16
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - CASE 65 WHEN 64 * + 33 THEN 24 - 59 * COUNT( * ) END * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT - CASE 65 WHEN 64 * + 33 THEN 24 - 59 * COUNT ( * ) END * 70
----
NULL

query I rowsort
SELECT + - 13 * + 91
----
-1183

onlyif mysql # DIV for integer division: 
query I rowsort label-5928
SELECT ALL - 8 DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL - 8 / + 21
----
0

query I rowsort
SELECT - - 44 * - 46 col0
----
-2024

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT + - 86 * 57 + - COUNT( * ) * + 41 AS col1
----
-4943

skipif mysql # not compatible
query I rowsort label-5931
SELECT + - 86 * 57 + - COUNT ( * ) * + 41 AS col1
----
-4943

query I rowsort
SELECT + 14 * + 80
----
1120

query I rowsort
SELECT ALL 53 * + 15 AS col0
----
795

query I rowsort
SELECT DISTINCT + 56 * + 27 AS col0
----
1512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5935
SELECT ALL NULLIF ( - 83, + COUNT( * ) + CASE - 28 WHEN + 0 * 98 THEN NULL ELSE CAST( - COUNT( * ) AS DECIMAL ) + 23 * COUNT( ALL - 9 ) END ) * + 68
----
-5644

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL NULLIF ( - 83, + COUNT ( * ) + CASE - 28 WHEN + 0 * 98 THEN NULL ELSE CAST ( - COUNT ( * ) AS REAL ) + 23 * COUNT ( ALL - 9 ) END ) * + 68
----
-5644

query I rowsort
SELECT - 80 + + 65 AS col0
----
-15

query I rowsort
SELECT + 54 + + ( - 13 ) AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5938
SELECT ALL - 70 * - MIN( 60 ) * + CASE SUM( DISTINCT CAST( NULL AS SIGNED ) ) WHEN - 42 + - 50 * SUM( 39 ) THEN + 80 ELSE 14 END + + 33
----
58833

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - 70 * - MIN ( 60 ) * + CASE SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN - 42 + - 50 * SUM ( 39 ) THEN + 80 ELSE 14 END + + 33
----
58833

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT + 96 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-5939
SELECT + 96 / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT 32 * - 98 + COUNT( * )
----
-3135

skipif mysql # not compatible
query I rowsort label-5940
SELECT 32 * - 98 + COUNT ( * )
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT CASE - ( - 7 ) WHEN 12 THEN - ( 4 ) * - COUNT( * ) WHEN - 25 THEN + 35 * 55 WHEN 20 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT CASE - ( - 7 ) WHEN 12 THEN - ( 4 ) * - COUNT ( * ) WHEN - 25 THEN + 35 * 55 WHEN 20 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 71 * + 40 + 52
----
2892

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT + 84 + 1 * - COUNT( * ) AS col0
----
83

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5944
SELECT ALL 54 DIV COUNT( * ) * - 92 AS col2
----
-4968

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL 54 / COUNT ( * ) * - 92 AS col2
----
-4968

query I rowsort
SELECT + 60 + - 77 AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT ALL + 55 * 78 + 56 DIV + 37 AS col2
----
4291

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL + 55 * 78 + 56 / + 37 AS col2
----
4291

query I rowsort
SELECT + 78 - + + 75 * 72
----
-5322

onlyif mysql # DIV for integer division: 
query I rowsort label-5948
SELECT DISTINCT 83 DIV - + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT 83 / - + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL COUNT( * ) * - 30 + 20 * 56
----
1090

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL COUNT ( * ) * - 30 + 20 * 56
----
1090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT + MAX( CASE 98 WHEN + 78 + + 24 THEN 5 * CAST( NULL AS SIGNED ) + CASE - 44 WHEN 38 THEN + 76 * 50 END * 69 END ) + + CAST( COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT + MAX ( CASE 98 WHEN + 78 + + 24 THEN 5 * CAST ( NULL AS INTEGER ) + CASE - 44 WHEN 38 THEN + 76 * 50 END * 69 END ) + + CAST ( COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 18 * 31
----
558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5952
SELECT + 42 * + CAST( 63 AS SIGNED ) AS col2
----
2646

skipif mysql # not compatible
query I rowsort label-5952
SELECT + 42 * + CAST ( 63 AS INTEGER ) AS col2
----
2646

query I rowsort
SELECT - ( 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5954
SELECT - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) * - 87 ) + - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * - 87 ) + - 80 AS col0
----
NULL

query I rowsort
SELECT + 18 + + ( 23 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT + 94 + + ( COUNT( * ) ) * + 91
----
185

skipif mysql # not compatible
query I rowsort label-5956
SELECT + 94 + + ( COUNT ( * ) ) * + 91
----
185

query I rowsort
SELECT ALL NULLIF ( + 51, - 95 * 78 + 38 * + NULLIF ( 92, COALESCE ( + 1, 87 ) + - 43 ) ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT ALL CASE COUNT( * ) WHEN - COALESCE ( + 41, - COALESCE ( + 37, - CAST( NULL AS SIGNED ) ) ) * - 64 THEN 56 * CASE 67 * 38 WHEN 15 THEN NULL WHEN COUNT( * ) THEN NULLIF ( - 42, - NULLIF ( + 11, SUM( 61 ) - - 63 ) / 9 ) * + 44 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL CASE COUNT ( * ) WHEN - COALESCE ( + 41, - COALESCE ( + 37, - CAST ( NULL AS INTEGER ) ) ) * - 64 THEN 56 * CASE 67 * 38 WHEN 15 THEN NULL WHEN COUNT ( * ) THEN NULLIF ( - 42, - NULLIF ( + 11, SUM ( 61 ) - - 63 ) / 9 ) * + 44 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + CASE + - 43 WHEN - COUNT( * ) - + 14 THEN + 0 ELSE + 94 + 53 END + 11
----
158

skipif mysql # not compatible
query I rowsort label-5959
SELECT + CASE + - 43 WHEN - COUNT ( * ) - + 14 THEN + 0 ELSE + 94 + 53 END + 11
----
158

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

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

skipif mysql # not compatible
query I rowsort label-5961
SELECT + + COUNT ( * ) * - 75 AS col1
----
-75

query I rowsort
SELECT - 9 + 34 * 72 AS col0
----
2439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5963
SELECT - CAST( + NULLIF ( 67, + 44 / 53 - CAST( 65 AS SIGNED ) ) AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-5963
SELECT - CAST ( + NULLIF ( 67, + 44 / 53 - CAST ( 65 AS INTEGER ) ) AS INTEGER )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5964
SELECT MAX( DISTINCT CAST( + 10 AS SIGNED ) ) + + 67 * - 43
----
-2871

skipif mysql # not compatible
query I rowsort label-5964
SELECT MAX ( DISTINCT CAST ( + 10 AS INTEGER ) ) + + 67 * - 43
----
-2871

onlyif mysql # DIV for integer division: 
query I rowsort label-5965
SELECT + ( 54 ) DIV NULLIF ( 71 - 27, 64 - + 90 )
----
1

skipif mysql # not compatible
query I rowsort label-5965
SELECT + ( 54 ) / NULLIF ( 71 - 27, 64 - + 90 )
----
1

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

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

query I rowsort
SELECT DISTINCT - + 14 * + + 24 - + ( 24 ) AS col2
----
-360

query I rowsort
SELECT ALL 59 * + 12 + - 31
----
677

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT 96 * - + COUNT( * ) * - 41 + 85 AS col0
----
4021

skipif mysql # not compatible
query I rowsort label-5969
SELECT 96 * - + COUNT ( * ) * - 41 + 85 AS col0
----
4021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT DISTINCT - + COALESCE ( - - 84, ( 25 ) * COUNT( - CAST( 33 AS SIGNED ) + 54 ), 50 * - 52 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT - + COALESCE ( - - 84, ( 25 ) * COUNT ( - CAST ( 33 AS INTEGER ) + 54 ), 50 * - 52 ) AS col1
----
-84

query I rowsort
SELECT DISTINCT - + ( - - 51 ) * + 14
----
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT - 55 * + 10 + MIN( CAST( NULL AS SIGNED ) ) * COALESCE ( 65, CAST( ( 47 ) AS SIGNED ) ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT - 55 * + 10 + MIN ( CAST ( NULL AS INTEGER ) ) * COALESCE ( 65, CAST ( ( 47 ) AS INTEGER ) ) + 16
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT DISTINCT - + 47 + + 93 + + NULLIF ( 11 + - 91 DIV - 52, - SUM( + 73 ) * - 81 + 35 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT - + 47 + + 93 + + NULLIF ( 11 + - 91 / - 52, - SUM ( + 73 ) * - 81 + 35 ) AS col2
----
58

query I rowsort
SELECT - NULLIF ( 71, + 22 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5975
SELECT ALL - 2 + + - 8 + + 39 DIV 41 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - 2 + + - 8 + + 39 / 41 AS col1
----
-10

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

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

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

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

query II rowsort
SELECT + 58, 59 AS col1
----
58
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL ( - COALESCE ( + - SUM( + 47 ), + COUNT( * ), 28 * COUNT( * ) + - CASE - ( ( 45 ) ) WHEN - 70 THEN NULL WHEN 91 + - 67 THEN NULL ELSE 28 END, + 86 ) ) + + 55 * - 84
----
-4573

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL ( - COALESCE ( + - SUM ( + 47 ), + COUNT ( * ), 28 * COUNT ( * ) + - CASE - ( ( 45 ) ) WHEN - 70 THEN NULL WHEN 91 + - 67 THEN NULL ELSE 28 END, + 86 ) ) + + 55 * - 84
----
-4573

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL - MIN( DISTINCT + 69 ) * - - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - MIN ( DISTINCT + 69 ) * - - COUNT ( * )
----
-69

query I rowsort
SELECT 41 + + 97 + - 31
----
107

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5983
SELECT ALL ( + COUNT( * ) ) + - + 65 - 90 / CAST( NULL AS DECIMAL ) / - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL ( + COUNT ( * ) ) + - + 65 - 90 / CAST ( NULL AS REAL ) / - 97
----
NULL

query II rowsort
SELECT - 24 AS col2, 52 AS col1
----
-24
52

query I rowsort
SELECT 66 * + NULLIF ( - 70, 58 * 96 )
----
-4620

query II rowsort
SELECT - 35 col0, 20 AS col2
----
-35
20

query I rowsort
SELECT 56 * + ( 85 ) * 92
----
437920

query I rowsort
SELECT DISTINCT 17 * - 14 AS col0
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT MAX( + 22 ) * 84 AS col0
----
1848

skipif mysql # not compatible
query I rowsort label-5989
SELECT MAX ( + 22 ) * 84 AS col0
----
1848

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT ALL 29 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL 29 / - 49
----
0

query I rowsort
SELECT + 19 * + + 67
----
1273

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT CASE - 71 WHEN + + 52 * 69 + - COUNT( * ) THEN - 93 - CASE - 65 WHEN + 82 THEN 5 ELSE - 97 END ELSE NULL END + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT CASE - 71 WHEN + + 52 * 69 + - COUNT ( * ) THEN - 93 - CASE - 65 WHEN + 82 THEN 5 ELSE - 97 END ELSE NULL END + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - ( MIN( ALL 7 ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5993
SELECT - ( MIN ( ALL 7 ) ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL MIN( DISTINCT 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL MIN ( DISTINCT 45 ) AS col2
----
45

query I rowsort
SELECT 95 * 45
----
4275

query I rowsort
SELECT 10 * - 41 * + 34
----
-13940

query I rowsort
SELECT 41 - + 88 + - 39 - 15 AS col2
----
-101

query I rowsort
SELECT DISTINCT + 80 * + + 37
----
2960

query I rowsort
SELECT + 69 * 15
----
1035

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

skipif mysql # not compatible
query I rowsort label-6000
SELECT 80 + - COUNT ( * ) / 55
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT COUNT( * ) + - 28 * - 31
----
869

skipif mysql # not compatible
query I rowsort label-6001
SELECT COUNT ( * ) + - 28 * - 31
----
869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6002
SELECT + COALESCE ( - - 60, 82, SUM( 10 ) DIV - 26 ) - 11 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6002
SELECT + COALESCE ( - - 60, 82, SUM ( 10 ) / - 26 ) - 11 AS col0
----
49

query I rowsort
SELECT DISTINCT 88 + + - 13
----
75

query I rowsort
SELECT 33 * - 28 AS col1
----
-924

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6005
SELECT ( + AVG ( + - CASE - 45 WHEN CAST( NULL AS DECIMAL ) * + 36 THEN - ( 89 ) + 83 * 1 ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT ( + AVG ( + - CASE - 45 WHEN CAST ( NULL AS REAL ) * + 36 THEN - ( 89 ) + 83 * 1 ELSE NULL END ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6006
SELECT + COUNT( * ) AS col0, - 29 + 40 + CASE - COUNT( * ) WHEN 75 THEN 83 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6006
SELECT + COUNT ( * ) AS col0, - 29 + 40 + CASE - COUNT ( * ) WHEN 75 THEN 83 END AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT DISTINCT + 4 + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT + 4 + + COUNT ( * )
----
5

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

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT COUNT( * ) * + 63 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT COUNT ( * ) * + 63 AS col2
----
63

query I rowsort
SELECT ALL - ( 5 ) + 80 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6011
SELECT ALL + COUNT( * ) + + 46 * - MAX( DISTINCT 94 ) + 1 DIV - 47
----
-4323

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + COUNT ( * ) + + 46 * - MAX ( DISTINCT 94 ) + 1 / - 47
----
-4323

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL + COUNT( * ) * - + 41 * - - 63 AS col0
----
-2583

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL + COUNT ( * ) * - + 41 * - - 63 AS col0
----
-2583

query I rowsort
SELECT DISTINCT - 88 + - + 27
----
-115

query I rowsort
SELECT 15 + + 80 AS col2
----
95

query I rowsort
SELECT 25 * - 67
----
-1675

query I rowsort
SELECT - 35 * - 43 + - 31 AS col1
----
1474

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT DISTINCT + 97 DIV + - 44 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + 97 / + - 44 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT COUNT( * ) * + 41 + + 55 col2
----
96

skipif mysql # not compatible
query I rowsort label-6018
SELECT COUNT ( * ) * + 41 + + 55 col2
----
96

query II rowsort
SELECT ALL - 70 - 96 AS col0, + ( - 64 ) AS col2
----
-166
-64

query I rowsort
SELECT ALL + 70 - - 22 * - 41
----
-832

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

query I rowsort
SELECT ALL 59 * 72 * 70
----
297360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT 66 + + 23 + + 6 + + 11 - CASE 93 WHEN + 41 * 75 + - 93 THEN NULL ELSE 87 END * + COUNT( * ) * CAST( - 76 AS SIGNED ) * 79
----
522454

skipif mysql # not compatible
query I rowsort label-6023
SELECT 66 + + 23 + + 6 + + 11 - CASE 93 WHEN + 41 * 75 + - 93 THEN NULL ELSE 87 END * + COUNT ( * ) * CAST ( - 76 AS INTEGER ) * 79
----
522454

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT DISTINCT 76 * - + 60 * + ( - COUNT( * ) )
----
4560

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT 76 * - + 60 * + ( - COUNT ( * ) )
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT - 25 * COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - 25 * COUNT ( * )
----
-25

query I rowsort
SELECT - 11 * + - 42
----
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6027
SELECT + COUNT( * ) + + 31 + + + 9 + + 40 DIV COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-6027
SELECT + COUNT ( * ) + + 31 + + + 9 + + 40 / COUNT ( * )
----
81

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

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

query I rowsort
SELECT - 29 * - - 32
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT + 91 + + 25 + - + COUNT( * ) * 32
----
84

skipif mysql # not compatible
query I rowsort label-6030
SELECT + 91 + + 25 + - + COUNT ( * ) * 32
----
84

query I rowsort
SELECT - 31 + - 32
----
-63

query I rowsort
SELECT + 5 + 42
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT - + COALESCE ( ( - + 30 ), 29 DIV + 40 ) * + 83 AS col1
----
2490

skipif mysql # not compatible
query I rowsort label-6033
SELECT - + COALESCE ( ( - + 30 ), 29 / + 40 ) * + 83 AS col1
----
2490

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6034
SELECT DISTINCT MIN( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT MIN ( CAST ( NULL AS REAL ) )
----
NULL

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

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

query I rowsort
SELECT + COALESCE ( - + 1, 0 + + 15 + 68 ) * 36
----
-36

query I rowsort
SELECT + ( - 25 ) + 1 + 61
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL 77 + - ( - ( 14 ) ) + 82 * ( 46 * + 20 + COUNT( * ) )
----
75613

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL 77 + - ( - ( 14 ) ) + 82 * ( 46 * + 20 + COUNT ( * ) )
----
75613

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT - COUNT( * ) + + 3 + - - ( + + 50 ) * - NULLIF ( NULLIF ( ( 51 ), - COUNT( * ) + ( COUNT( - 77 ) ) ), - 10 )
----
-2548

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT - COUNT ( * ) + + 3 + - - ( + + 50 ) * - NULLIF ( NULLIF ( ( 51 ), - COUNT ( * ) + ( COUNT ( - 77 ) ) ), - 10 )
----
-2548

onlyif mysql # DIV for integer division: 
query I rowsort label-6040
SELECT - + ( + 96 ) DIV - 1 + + 34
----
130

skipif mysql # not compatible
query I rowsort label-6040
SELECT - + ( + 96 ) / - 1 + + 34
----
130

query I rowsort
SELECT + ( + 2 ) * - 58 * - 71
----
8236

query I rowsort
SELECT ALL + ( + ( - 1 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT ALL - CASE 55 WHEN - 89 THEN - COUNT( * ) + - 55 WHEN - 16 + + NULLIF ( - 53, COUNT( * ) + + MAX( ALL 70 ) ) THEN 79 / 75 ELSE 20 END * ( CAST( NULL AS SIGNED ) * ( - 72 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - CASE 55 WHEN - 89 THEN - COUNT ( * ) + - 55 WHEN - 16 + + NULLIF ( - 53, COUNT ( * ) + + MAX ( ALL 70 ) ) THEN 79 / 75 ELSE 20 END * ( CAST ( NULL AS INTEGER ) * ( - 72 ) )
----
NULL

query I rowsort
SELECT + 55 + - + 24
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT 11 DIV 89 + 15 * 2 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6045
SELECT 11 / 89 + 15 * 2 AS col1
----
30

query I rowsort
SELECT ALL + 11 * - + 97
----
-1067

query I rowsort
SELECT 20 * + 26 - + - 68 col2
----
588

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT ALL + 79 AS col2, + COUNT( * ) * + + 82
----
79
82

skipif mysql # not compatible
query II rowsort label-6048
SELECT ALL + 79 AS col2, + COUNT ( * ) * + + 82
----
79
82

query I rowsort
SELECT ALL + 84 * - + COALESCE ( - + 15, 99 )
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT - NULLIF ( 98, - 88 + + 61 + - + COUNT( * ) ) * + 20
----
-1960

skipif mysql # not compatible
query I rowsort label-6050
SELECT - NULLIF ( 98, - 88 + + 61 + - + COUNT ( * ) ) * + 20
----
-1960

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

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL CAST ( 20 AS INTEGER ) * - - COUNT ( * )
----
20

query I rowsort
SELECT NULLIF ( - CASE - 64 WHEN - 2 * + + 23 * 84 + + 37 THEN + 3 END, 64 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6053
SELECT NULLIF ( - CASE + - ( CASE - COUNT( * ) WHEN 24 + 89 * 48 THEN + 82 + + CAST( NULL AS SIGNED ) WHEN 42 THEN CASE ( 52 ) WHEN + 37 THEN + 26 WHEN MIN( + 31 ) / ( - 97 ) THEN NULL ELSE - 55 END * 84 ELSE NULL END ) WHEN CAST( 34 AS DECIMAL ) THEN - 47 ELSE NULL END, - 12 * COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6053
SELECT NULLIF ( - CASE + - ( CASE - COUNT ( * ) WHEN 24 + 89 * 48 THEN + 82 + + CAST ( NULL AS INTEGER ) WHEN 42 THEN CASE ( 52 ) WHEN + 37 THEN + 26 WHEN MIN ( + 31 ) / ( - 97 ) THEN NULL ELSE - 55 END * 84 ELSE NULL END ) WHEN CAST ( 34 AS REAL ) THEN - 47 ELSE NULL END, - 12 * COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( ( - 95 ), + - 81 ) * - 57
----
5415

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

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

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

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

query I rowsort
SELECT ALL + NULLIF ( ( 58 ), - 69 ) * - 2 + - 5 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT ALL + 68 AS col0, - 19 - + SUM( 12 ) - + 71
----
68
-102

skipif mysql # not compatible
query II rowsort label-6058
SELECT ALL + 68 AS col0, - 19 - + SUM ( 12 ) - + 71
----
68
-102

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

skipif mysql # not compatible
query I rowsort label-6059
SELECT - + COUNT ( * ) * + 70 * - 54 AS col1
----
3780

query I rowsort
SELECT ALL + + 45 * + - 84 col0
----
-3780

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT - - 1 AS col2, + 96 * COUNT( DISTINCT - ( 88 ) ) - COUNT( * )
----
1
95

skipif mysql # not compatible
query II rowsort label-6061
SELECT - - 1 AS col2, + 96 * COUNT ( DISTINCT - ( 88 ) ) - COUNT ( * )
----
1
95

query I rowsort
SELECT DISTINCT + 89 + + + ( 15 ) - + + 11 AS col2
----
93

query I rowsort
SELECT ALL - 31 + - 55 + + + 67 + ( 84 ) AS col0
----
65

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6065
SELECT - COALESCE ( + + 58, - - MIN( ALL + 41 ) * 24 + + 53 DIV 20 ) + 65 * 94
----
6052

skipif mysql # not compatible
query I rowsort label-6065
SELECT - COALESCE ( + + 58, - - MIN ( ALL + 41 ) * 24 + + 53 / 20 ) + 65 * 94
----
6052

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6067
SELECT ALL + 39 * - 10 + - + 52 DIV + - NULLIF ( COUNT( * ), 51 * - 49 ) AS col0
----
-338

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL + 39 * - 10 + - + 52 / + - NULLIF ( COUNT ( * ), 51 * - 49 ) AS col0
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT - COUNT( * ) + + 43 * - 76
----
-3269

skipif mysql # not compatible
query I rowsort label-6068
SELECT - COUNT ( * ) + + 43 * - 76
----
-3269

query I rowsort
SELECT + 5 * + - 30 * - 89 + + 43 + 12
----
13405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6070
SELECT - - SUM( DISTINCT 59 ) + + COALESCE ( 86, - 96 + - ( - 0 + 59 ), + ( 28 ) ) + 24 * NULLIF ( + CAST( 84 AS SIGNED ) * CASE + CAST( NULL AS SIGNED ) WHEN - 55 - - 71 THEN + 43 + + NULLIF ( + 65, - 20 ) END, + 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT - - SUM ( DISTINCT 59 ) + + COALESCE ( 86, - 96 + - ( - 0 + 59 ), + ( 28 ) ) + 24 * NULLIF ( + CAST ( 84 AS INTEGER ) * CASE + CAST ( NULL AS INTEGER ) WHEN - 55 - - 71 THEN + 43 + + NULLIF ( + 65, - 20 ) END, + 27 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL + ( + 86 ) + - COUNT( * ) * - 2 - + + CASE + 29 WHEN - 79 / - ( COALESCE ( 88, 47 ) ) - + 97 THEN NULL ELSE NULLIF ( 29, COALESCE ( + COUNT( * ), - 8, - COUNT( * ) ) / 12 + 78 * 69 ) END * - NULLIF ( + 49, 71 ) col0
----
1509

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL + ( + 86 ) + - COUNT ( * ) * - 2 - + + CASE + 29 WHEN - 79 / - ( COALESCE ( 88, 47 ) ) - + 97 THEN NULL ELSE NULLIF ( 29, COALESCE ( + COUNT ( * ), - 8, - COUNT ( * ) ) / 12 + 78 * 69 ) END * - NULLIF ( + 49, 71 ) col0
----
1509

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT - + 9 + - + MAX( ALL + 5 ) * + 24
----
-129

skipif mysql # not compatible
query I rowsort label-6072
SELECT - + 9 + - + MAX ( ALL + 5 ) * + 24
----
-129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6073
SELECT ALL - + 73 + - COUNT( * ) * + CAST( NULL AS DECIMAL ) * - + 68 / + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - + 73 + - COUNT ( * ) * + CAST ( NULL AS REAL ) * - + 68 / + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6074
SELECT - - COALESCE ( - 12, + 91 * + - 33, - + 39 ) + + 13 DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6074
SELECT - - COALESCE ( - 12, + 91 * + - 33, - + 39 ) + + 13 / COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT ALL - 23 DIV - 25 * + - 84 + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - 23 / - 25 * + - 84 + 11 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT ALL CAST( - - 24 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL CAST ( - - 24 AS INTEGER ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - 38 + - 19 + + - 88 * - MAX( DISTINCT - - 76 ) AS col2
----
6631

skipif mysql # not compatible
query I rowsort label-6077
SELECT - 38 + - 19 + + - 88 * - MAX ( DISTINCT - - 76 ) AS col2
----
6631

query I rowsort
SELECT + COALESCE ( + + 74, + + 78 ) - - 47 * - 5
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT ALL CAST( NULL AS SIGNED ) / - COUNT( * ) / 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL CAST ( NULL AS INTEGER ) / - COUNT ( * ) / 74 AS col2
----
NULL

query I rowsort
SELECT - 25 * - - 61 AS col1
----
-1525

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

skipif mysql # not compatible
query I rowsort label-6081
SELECT + CAST ( NULL AS INTEGER ) * + 52 + + + 63
----
NULL

query I rowsort
SELECT + 84 * ( - 82 ) AS col0
----
-6888

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT ALL + ( + - NULLIF ( + 51, - + CAST( NULL AS SIGNED ) / + 62 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL + ( + - NULLIF ( + 51, - + CAST ( NULL AS INTEGER ) / + 62 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT DISTINCT - 97 * COUNT( * ) * - + 49
----
4753

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT - 97 * COUNT ( * ) * - + 49
----
4753

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6086
SELECT DISTINCT + COUNT( * ), + 38 + + - CASE COALESCE ( - 70, + + 66 ) WHEN MAX( - 42 ) THEN NULL WHEN - CASE 70 WHEN - 90 THEN NULL WHEN CAST( ( - 4 ) AS DECIMAL ) + 65 THEN NULL ELSE - 22 END + - 74 * 10 THEN 91 END * 25 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6086
SELECT DISTINCT + COUNT ( * ), + 38 + + - CASE COALESCE ( - 70, + + 66 ) WHEN MAX ( - 42 ) THEN NULL WHEN - CASE 70 WHEN - 90 THEN NULL WHEN CAST ( ( - 4 ) AS REAL ) + 65 THEN NULL ELSE - 22 END + - 74 * 10 THEN 91 END * 25 AS col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT DISTINCT CAST( NULL AS SIGNED ) * 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 17 AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( + 95, NULLIF ( 59, + 65 * 67 + 48 ) ) * + 4
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT + COUNT( * ) + - CASE + SUM( DISTINCT - 26 ) WHEN - 81 THEN - - 58 END + + 66 / + COALESCE ( - 40 * 84, 30, 69 + 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT + COUNT ( * ) + - CASE + SUM ( DISTINCT - 26 ) WHEN - 81 THEN - - 58 END + + 66 / + COALESCE ( - 40 * 84, 30, 69 + 56 ) AS col0
----
NULL

query II rowsort
SELECT + 78 AS col1, + COALESCE ( 27, + ( - 78 ) ) * - 19 + - 58
----
78
-571

query I rowsort
SELECT 50 + 56
----
106

query I rowsort
SELECT 56 + + 13
----
69

query I rowsort
SELECT ( + 28 ) * - 22
----
-616

query I rowsort
SELECT 95 * - 38 * + - 12 col1
----
43320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT ALL 0 + + COUNT( * ) * + CAST( 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL 0 + + COUNT ( * ) * + CAST ( 9 AS INTEGER )
----
9

query II rowsort
SELECT 77, ( + 90 ) col1
----
77
90

query II rowsort
SELECT ALL - 46 AS col2, 87
----
-46
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT DISTINCT 91 + 25 DIV 4 * + + 81
----
577

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT 91 + 25 / 4 * + + 81
----
577

query I rowsort
SELECT - ( + 79 ) + - 4 + 43 col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6100
SELECT DISTINCT + 1 + - - COUNT( * ) + + - COUNT( * ) + - 97 AS col0, COUNT( * ) col2
----
-96
1

skipif mysql # not compatible
query II rowsort label-6100
SELECT DISTINCT + 1 + - - COUNT ( * ) + + - COUNT ( * ) + - 97 AS col0, COUNT ( * ) col2
----
-96
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT 19 DIV + + 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6101
SELECT 19 / + + 35 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL + 68 * MAX( ALL + 66 ) * 30 / CASE + + COUNT( * ) WHEN - ( - ( NULLIF ( 5, + 5 ) ) ) THEN NULL WHEN + MIN( ALL 81 ) THEN + 48 WHEN - 10 THEN 52 + + 16 ELSE NULL END * 4 + 3 - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL + 68 * MAX ( ALL + 66 ) * 30 / CASE + + COUNT ( * ) WHEN - ( - ( NULLIF ( 5, + 5 ) ) ) THEN NULL WHEN + MIN ( ALL 81 ) THEN + 48 WHEN - 10 THEN 52 + + 16 ELSE NULL END * 4 + 3 - 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6103
SELECT 8 + COUNT( ALL - 5 ) DIV - 56 AS col1, COUNT( * ) AS col1
----
8
1

skipif mysql # not compatible
query II rowsort label-6103
SELECT 8 + COUNT ( ALL - 5 ) / - 56 AS col1, COUNT ( * ) AS col1
----
8
1

query II rowsort
SELECT DISTINCT 50 AS col0, 10 AS col0
----
50
10

query I rowsort
SELECT ALL - + 38 + - + 68 * - - 12
----
-854

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

skipif mysql # not compatible
query I rowsort label-6106
SELECT 88 * COUNT ( * ) / - 93
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6108
SELECT - 29 col2, CAST( - + ( 5 ) AS SIGNED ) * - 35 + - - 87
----
-29
262

skipif mysql # not compatible
query II rowsort label-6108
SELECT - 29 col2, CAST ( - + ( 5 ) AS INTEGER ) * - 35 + - - 87
----
-29
262

query II rowsort
SELECT ALL 40, 1 AS col0
----
40
1

query II rowsort
SELECT - 85 AS col0, 56 + - 73 AS col0
----
-85
-17

query I rowsort
SELECT ALL NULLIF ( + ( - + 81 ), - ( + + 85 ) ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT + 5 + + 40 + - 56 + + COUNT( * ), - 30 AS col1
----
-10
-30

skipif mysql # not compatible
query II rowsort label-6112
SELECT + 5 + + 40 + - 56 + + COUNT ( * ), - 30 AS col1
----
-10
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6113
SELECT CASE - ( - COUNT( * ) ) WHEN 5 THEN NULL WHEN + 72 DIV 35 THEN + + 45 DIV + NULLIF ( + ( 44 ), CASE ( + CAST( NULL AS SIGNED ) ) WHEN - 19 THEN + 53 END * 44 ) ELSE 72 END * - 44 AS col2
----
-3168

skipif mysql # not compatible
query I rowsort label-6113
SELECT CASE - ( - COUNT ( * ) ) WHEN 5 THEN NULL WHEN + 72 / 35 THEN + + 45 / + NULLIF ( + ( 44 ), CASE ( + CAST ( NULL AS INTEGER ) ) WHEN - 19 THEN + 53 END * 44 ) ELSE 72 END * - 44 AS col2
----
-3168

onlyif mysql # aggregate syntax: 
query II rowsort label-6114
SELECT ALL + 11 * 14 AS col0, ( COALESCE ( SUM( DISTINCT 19 ), - + SUM( DISTINCT 18 ) ) )
----
154
19

skipif mysql # not compatible
query II rowsort label-6114
SELECT ALL + 11 * 14 AS col0, ( COALESCE ( SUM ( DISTINCT 19 ), - + SUM ( DISTINCT 18 ) ) )
----
154
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6115
SELECT 41 + 4 + - 39 + + 67 + + 7 DIV MIN( DISTINCT 43 ) * 25 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6115
SELECT 41 + 4 + - 39 + + 67 + + 7 / MIN ( DISTINCT 43 ) * 25 AS col1
----
73

query I rowsort
SELECT DISTINCT - NULLIF ( - 32, + 94 * 96 ) AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6117
SELECT DISTINCT 1 DIV + 26, + COUNT( * ) AS col1
----
0
1

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

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

query I rowsort
SELECT 40 * + 28 * - 57 AS col1
----
-63840

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT 95 DIV + ( + + 3 )
----
31

skipif mysql # not compatible
query I rowsort label-6122
SELECT 95 / + ( + + 3 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT DISTINCT SUM( - 90 ) * + 44 + + CASE + - COUNT( * ) WHEN + 83 THEN NULL WHEN + 99 * - 93 THEN - 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT SUM ( - 90 ) * + 44 + + CASE + - COUNT ( * ) WHEN + 83 THEN NULL WHEN + 99 * - 93 THEN - 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6124
SELECT 85 DIV + + COUNT( * ) AS col0, - 22
----
85
-22

skipif mysql # not compatible
query II rowsort label-6124
SELECT 85 / + + COUNT ( * ) AS col0, - 22
----
85
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT ALL - 83 + CAST( + - 81 AS SIGNED ) AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL - 83 + CAST ( + - 81 AS INTEGER ) AS col1
----
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-6126
SELECT DISTINCT + 72 * - 51, NULLIF ( + - 15, + MAX( DISTINCT + 91 ) ) AS col1
----
-3672
-15

skipif mysql # not compatible
query II rowsort label-6126
SELECT DISTINCT + 72 * - 51, NULLIF ( + - 15, + MAX ( DISTINCT + 91 ) ) AS col1
----
-3672
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6127
SELECT + COALESCE ( + - 83, 50, - CAST( + 87 AS SIGNED ) + + 98 * ( SUM( + 61 ) ) * 23 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6127
SELECT + COALESCE ( + - 83, 50, - CAST ( + 87 AS INTEGER ) + + 98 * ( SUM ( + 61 ) ) * 23 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT 64 * - - 76 + - MAX( ALL - 53 ) + - 80 * + 87 * - + 63
----
443397

skipif mysql # not compatible
query I rowsort label-6128
SELECT 64 * - - 76 + - MAX ( ALL - 53 ) + - 80 * + 87 * - + 63
----
443397

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT + COALESCE ( + 83, COALESCE ( - + COUNT( * ), 56 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6129
SELECT + COALESCE ( + 83, COALESCE ( - + COUNT ( * ), 56 ) ) AS col0
----
83

query I rowsort
SELECT ALL 66 * + 11 * - 80 AS col2
----
-58080

query I rowsort
SELECT + 35 * + + 25 * + 1 + - 16
----
859

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT - - NULLIF ( + 89, + + 41 * + 62 + + NULLIF ( 72, + - NULLIF ( COALESCE ( 81, 57 + - COUNT( * ) * 80, - 83 ), - 47 ) * 1 ) )
----
89

skipif mysql # not compatible
query I rowsort label-6132
SELECT - - NULLIF ( + 89, + + 41 * + 62 + + NULLIF ( 72, + - NULLIF ( COALESCE ( 81, 57 + - COUNT ( * ) * 80, - 83 ), - 47 ) * 1 ) )
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT + 63 - + CASE - - 56 WHEN - COUNT( * ) + + - 28 + + - 32 THEN + 27 + ( 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT + 63 - + CASE - - 56 WHEN - COUNT ( * ) + + - 28 + + - 32 THEN + 27 + ( 9 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT + 2 * + NULLIF ( + - COUNT( * ), - 61 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6135
SELECT + 2 * + NULLIF ( + - COUNT ( * ), - 61 ) AS col1
----
-2

query I rowsort
SELECT + 20 + + 42 col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6137
SELECT 2 * - + 7 AS col2, + 95 + COUNT( * )
----
-14
96

skipif mysql # not compatible
query II rowsort label-6137
SELECT 2 * - + 7 AS col2, + 95 + COUNT ( * )
----
-14
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT - 43 + - ( - 1 ) + + - COALESCE ( - + NULLIF ( COALESCE ( - 54, + ( + 74 ) * COUNT( * ) ), 77 ), 1 + - COALESCE ( 51, + COUNT( * ) * 34 ) ) * - 20 AS col2
----
1038

skipif mysql # not compatible
query I rowsort label-6139
SELECT - 43 + - ( - 1 ) + + - COALESCE ( - + NULLIF ( COALESCE ( - 54, + ( + 74 ) * COUNT ( * ) ), 77 ), 1 + - COALESCE ( 51, + COUNT ( * ) * 34 ) ) * - 20 AS col2
----
1038

query I rowsort
SELECT 44 + 65 AS col1
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT 50 DIV - 88 * - NULLIF ( - ( + 74 ), + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-6141
SELECT 50 / - 88 * - NULLIF ( - ( + 74 ), + 71 )
----
0

query I rowsort
SELECT 60 * - 28 AS col0
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6143
SELECT ALL - 80 + - 28 * + 27 + + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - 80 + - 28 * + 27 + + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL CASE 4 WHEN + 16 THEN - 22 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 62 AS col2, + 74 col1
----
-62
74

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

query I rowsort
SELECT - NULLIF ( 98, ( - 86 ) )
----
-98

query I rowsort
SELECT - 1 + 44
----
43

query I rowsort
SELECT - 12 * + 13
----
-156

query I rowsort
SELECT - 18 * 98 AS col1
----
-1764

onlyif mysql # DIV for integer division: 
query I rowsort label-6151
SELECT + 43 DIV 79 - - + 76 + + 14 + + 18 - 27 + 39 * - 83 AS col1
----
-3156

skipif mysql # not compatible
query I rowsort label-6151
SELECT + 43 / 79 - - + 76 + + 14 + + 18 - 27 + 39 * - 83 AS col1
----
-3156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6152
SELECT NULLIF ( 23, - 38 + 1 + + 15 + - 38 + CAST( NULL AS SIGNED ) - 12 )
----
23

skipif mysql # not compatible
query I rowsort label-6152
SELECT NULLIF ( 23, - 38 + 1 + + 15 + - 38 + CAST ( NULL AS INTEGER ) - 12 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6153
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) * - - ( - 29 ) * ( + 89 ) - + + 73 + - 0
----
2508

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) * - - ( - 29 ) * ( + 89 ) - + + 73 + - 0
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT COALESCE ( + COUNT( ALL 82 ), + - 43 * - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-6154
SELECT COALESCE ( + COUNT ( ALL 82 ), + - 43 * - 56 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT ALL 67 * + CAST( + 28 AS SIGNED ) + + 79 + CAST( - 34 AS SIGNED ) * - 42 * 17 AS col2
----
26231

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL 67 * + CAST ( + 28 AS INTEGER ) + + 79 + CAST ( - 34 AS INTEGER ) * - 42 * 17 AS col2
----
26231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6156
SELECT ALL 36 * - CAST( NULL AS SIGNED ) + + MIN( DISTINCT - 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL 36 * - CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT - 43 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - 42 * 93 - - - COUNT( * ) + ( + 54 ) + - NULLIF ( + 26, 99 + - COUNT( * ) ) - + 39 * 23 * - 94 AS col2
----
80439

skipif mysql # not compatible
query I rowsort label-6158
SELECT - 42 * 93 - - - COUNT ( * ) + ( + 54 ) + - NULLIF ( + 26, 99 + - COUNT ( * ) ) - + 39 * 23 * - 94 AS col2
----
80439

query II rowsort
SELECT + + 2 AS col2, 7 * + + 41 col2
----
2
287

query II rowsort
SELECT + - 48 col1, 46 col0
----
-48
46

query I rowsort
SELECT DISTINCT - 60 * - 71 AS col0
----
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT ALL + NULLIF ( + MAX( ALL - + 42 ), 83 ) * - + 25 - + - 92 AS col2
----
1142

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL + NULLIF ( + MAX ( ALL - + 42 ), 83 ) * - + 25 - + - 92 AS col2
----
1142

query I rowsort
SELECT + + 22 + - 85 + - 27 * - - 25
----
-738

query II rowsort
SELECT ALL - 16 * - - 16 * 98 AS col1, 52 + 78 * 27 AS col2
----
-25088
2158

query II rowsort
SELECT + - 47 * + + 95 * + 98, + 56 + + - 24 + + 26 AS col2
----
-437570
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT ALL + 36 DIV + 12
----
3

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL + 36 / + 12
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT + + 31 + - + 2 * - MAX( ALL + + 96 ) * ( - + ( + 31 ) ) + + ( + 63 )
----
-5858

skipif mysql # not compatible
query I rowsort label-6167
SELECT + + 31 + - + 2 * - MAX ( ALL + + 96 ) * ( - + ( + 31 ) ) + + ( + 63 )
----
-5858

query II rowsort
SELECT ALL 85 AS col1, + 81
----
85
81

query II rowsort
SELECT 91, 82 AS col2
----
91
82

query I rowsort
SELECT ( - + 58 ) * + 32 + + 26 AS col1
----
-1830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6171
SELECT - COUNT( * ) * - COUNT( * ) + + 67 + - 88 + - 68 - 97 + - 20 / + 64 * 75 - CASE 77 + ( 83 ) * 96 WHEN 31 * + CAST( 38 AS SIGNED ) + 7 * COUNT( * ) THEN 62 END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT - COUNT ( * ) * - COUNT ( * ) + + 67 + - 88 + - 68 - 97 + - 20 / + 64 * 75 - CASE 77 + ( 83 ) * 96 WHEN 31 * + CAST ( 38 AS INTEGER ) + 7 * COUNT ( * ) THEN 62 END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - - ( CASE + ( + COUNT( * ) ) WHEN 66 * - - 31 * + 0 * - 34 THEN COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT - - ( CASE + ( + COUNT ( * ) ) WHEN 66 * - - 31 * + 0 * - 34 THEN COUNT ( * ) ELSE NULL END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6173
SELECT + COUNT ( DISTINCT - 95 ) + 0 AS col2
----
1

query II rowsort
SELECT 34 AS col2, 0 * 9 AS col1
----
34
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT + 87 + - + COUNT( DISTINCT 67 ) AS col2, - ( + CASE + 5 WHEN + - COUNT( * ) THEN NULL WHEN + + 94 + + 17 * - COUNT( * ) THEN - COUNT( - 61 ) WHEN 11 * 93 + 26 THEN NULL WHEN - COALESCE ( 82, CASE 77 WHEN 16 THEN + 56 ELSE NULL END + 5, COUNT( * ) * + 40 - 77 ) * - ( 14 ) THEN NULL END ) / + 94 col1
----
86
NULL

skipif mysql # not compatible
query II rowsort label-6175
SELECT + 87 + - + COUNT ( DISTINCT 67 ) AS col2, - ( + CASE + 5 WHEN + - COUNT ( * ) THEN NULL WHEN + + 94 + + 17 * - COUNT ( * ) THEN - COUNT ( - 61 ) WHEN 11 * 93 + 26 THEN NULL WHEN - COALESCE ( 82, CASE 77 WHEN 16 THEN + 56 ELSE NULL END + 5, COUNT ( * ) * + 40 - 77 ) * - ( 14 ) THEN NULL END ) / + 94 col1
----
86
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT COALESCE ( - - 84, 64 * - COALESCE ( - 77, 24 * - + CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) - 76 )
----
84

skipif mysql # not compatible
query I rowsort label-6176
SELECT COALESCE ( - - 84, 64 * - COALESCE ( - 77, 24 * - + CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) - 76 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6177
SELECT - CASE + ( + AVG ( ALL + 20 ) ) WHEN + 88 * 81 + - + 40 * + 36 + + - 63 THEN SUM( DISTINCT 75 ) WHEN + 43 * - COALESCE ( CAST( + 67 AS SIGNED ), 28, CASE 72 WHEN + NULLIF ( 12, + 93 ) + - COUNT( * ) THEN + 2 ELSE NULL END ) THEN 64 * 74 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT - CASE + ( + AVG ( ALL + 20 ) ) WHEN + 88 * 81 + - + 40 * + 36 + + - 63 THEN SUM ( DISTINCT 75 ) WHEN + 43 * - COALESCE ( CAST ( + 67 AS INTEGER ), 28, CASE 72 WHEN + NULLIF ( 12, + 93 ) + - COUNT ( * ) THEN + 2 ELSE NULL END ) THEN 64 * 74 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( + + 65, + ( - 53 ) * + 59 - + NULLIF ( + 4, - - 59 + + 82 ) + + 98 ) + NULLIF ( - 89, - 68 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ALL - 93 + - - ( - COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL - 93 + - - ( - COUNT ( * ) )
----
-94

query I rowsort
SELECT + 95 * - 89
----
-8455

query I rowsort
SELECT + COALESCE ( 87, + 88 + 93 ) * - 32 col0
----
-2784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6182
SELECT - COALESCE ( + 37, + 90 * - 43 - 15, - COALESCE ( - - 32, + + 10 * + COUNT( * ) ) + - COUNT( * ) ) DIV - 10 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6182
SELECT - COALESCE ( + 37, + 90 * - 43 - 15, - COALESCE ( - - 32, + + 10 * + COUNT ( * ) ) + - COUNT ( * ) ) / - 10 AS col1
----
3

query I rowsort
SELECT DISTINCT 24 + 67 + - + 74
----
17

query I rowsort
SELECT + CASE - ( + 0 ) WHEN - 12 THEN - 50 + + + 25 + + 63 END - ( + 15 )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT + 3 / COUNT ( * )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6187
SELECT - CAST( NULL AS DECIMAL ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT - CAST ( NULL AS REAL ) * 25
----
NULL

query II rowsort
SELECT - 52 + - - 9 AS col0, 32 AS col1
----
-43
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT DISTINCT + COALESCE ( 79, - CAST( NULL AS SIGNED ) )
----
79

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT + COALESCE ( 79, - CAST ( NULL AS INTEGER ) )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6190
SELECT CAST( + + 96 AS SIGNED ), - COALESCE ( - 47, - + CAST( NULL AS SIGNED ), - + CAST( NULL AS SIGNED ) + - 28 + - 1 + - + ( + 74 ) ) - - 10 * 13 AS col2
----
96
177

skipif mysql # not compatible
query II rowsort label-6190
SELECT CAST ( + + 96 AS INTEGER ), - COALESCE ( - 47, - + CAST ( NULL AS INTEGER ), - + CAST ( NULL AS INTEGER ) + - 28 + - 1 + - + ( + 74 ) ) - - 10 * 13 AS col2
----
96
177

query I rowsort
SELECT - 72 * - 74 * 40 col1
----
213120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6192
SELECT CAST( - 29 AS SIGNED ) AS col0, - 91 col1
----
-29
-91

skipif mysql # not compatible
query II rowsort label-6192
SELECT CAST ( - 29 AS INTEGER ) AS col0, - 91 col1
----
-29
-91

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT ALL + MIN( + 19 ) * - + 21 * + 81 + - - 1 + NULLIF ( - - 97, + + MAX( ALL + 95 ) ) DIV 77
----
-32317

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + MIN ( + 19 ) * - + 21 * + 81 + - - 1 + NULLIF ( - - 97, + + MAX ( ALL + 95 ) ) / 77
----
-32317

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

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

query I rowsort
SELECT - - 1 * - - 8 + + 68
----
76

query I rowsort
SELECT - 75 * - - 57 + 3 - - - 72 + 39 col0
----
-4305

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT + CASE - 30 WHEN 70 * + 81 THEN NULL WHEN - 46 THEN NULL WHEN + - 70 + + + 6 / + ( + + 80 ) + - CAST( + ( + 96 ) AS SIGNED ) * - 80 THEN 41 END * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT + CASE - 30 WHEN 70 * + 81 THEN NULL WHEN - 46 THEN NULL WHEN + - 70 + + + 6 / + ( + + 80 ) + - CAST ( + ( + 96 ) AS INTEGER ) * - 80 THEN 41 END * - 75
----
NULL

query I rowsort
SELECT - - 24 - - 41
----
65

query I rowsort
SELECT ALL - 13 * ( + 54 ) - - 59
----
-643

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL MIN( + 46 ) * 92 + + 3 - + 51
----
4184

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL MIN ( + 46 ) * 92 + + 3 - + 51
----
4184

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT ALL - COALESCE ( 18, - COUNT( * ) + 15 + - - 4, 45 + + 52 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL - COALESCE ( 18, - COUNT ( * ) + 15 + - - 4, 45 + + 52 ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6206
SELECT DISTINCT + - CAST( COUNT( + 81 ) AS SIGNED ) * 75 * CASE - + 52 WHEN - 12 * + - 17 THEN NULL ELSE + - 51 + + 27 END col1
----
1800

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT + - CAST ( COUNT ( + 81 ) AS INTEGER ) * 75 * CASE - + 52 WHEN - 12 * + - 17 THEN NULL ELSE + - 51 + + 27 END col1
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT MAX( - 61 ) - + 52 + + 18 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6207
SELECT MAX ( - 61 ) - + 52 + + 18 AS col1
----
-95

query I rowsort
SELECT ALL - 34 + - 64 col1
----
-98

query I rowsort
SELECT 79 - - 24
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6210
SELECT 53 + + ( + CAST( NULL AS SIGNED ) ) + - - 92 * + 31 * ( 2 ) - CASE + + NULLIF ( - 72, 93 * COUNT( * ) ) WHEN + 34 * - 59 + + 51 THEN NULL ELSE 1 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT 53 + + ( + CAST ( NULL AS INTEGER ) ) + - - 92 * + 31 * ( 2 ) - CASE + + NULLIF ( - 72, 93 * COUNT ( * ) ) WHEN + 34 * - 59 + + 51 THEN NULL ELSE 1 END * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL 83 + - - COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL 83 + - - COUNT ( * ) AS col0
----
84

query II rowsort
SELECT ALL 16, - 30 AS col0
----
16
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL + 62 + COUNT( ALL - 12 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + 62 + COUNT ( ALL - 12 ) col2
----
63

query I rowsort
SELECT DISTINCT 82 * + 85 * - 50 * + - 78 col2
----
27183000

query I rowsort
SELECT ( 88 ) * - - 74 * + - 57 * + 13
----
-4825392

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT COUNT( * ) - + 23 + + 83
----
61

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT COUNT ( * ) - + 23 + + 83
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT ALL CASE + 24 WHEN - 19 * - CASE 11 WHEN - 2 THEN - - 55 WHEN 56 + + - COUNT( * ) * COUNT( * ) + 65 / MIN( + 77 ) THEN NULL ELSE + 98 * + COUNT( * ) - + COUNT( * ) END THEN 90 ELSE + 64 + + 97 END - - 76 AS col0
----
237

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL CASE + 24 WHEN - 19 * - CASE 11 WHEN - 2 THEN - - 55 WHEN 56 + + - COUNT ( * ) * COUNT ( * ) + 65 / MIN ( + 77 ) THEN NULL ELSE + 98 * + COUNT ( * ) - + COUNT ( * ) END THEN 90 ELSE + 64 + + 97 END - - 76 AS col0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ( + COUNT( * ) ) * - + 6 * + - 64 AS col1
----
384

skipif mysql # not compatible
query I rowsort label-6219
SELECT ( + COUNT ( * ) ) * - + 6 * + - 64 AS col1
----
384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6220
SELECT - 71 DIV + + ( + + COUNT( * ) ) + - 60
----
-131

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 71 / + + ( + + COUNT ( * ) ) + - 60
----
-131

query I rowsort
SELECT DISTINCT 35 - + 49
----
-14

query I rowsort
SELECT ( + - COALESCE ( 49, + ( + 86 ), - + 71, - 30 ) ) AS col1
----
-49

query I rowsort
SELECT ALL - ( - ( + - COALESCE ( - 86, - 80, - - 52 ) ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT - COALESCE ( + 26, + + 9 + - + 43, - MAX( - - 2 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT - COALESCE ( + 26, + + 9 + - + 43, - MAX ( - - 2 ) )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT 1 DIV 8 * - ( ( + 49 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6225
SELECT 1 / 8 * - ( ( + 49 ) )
----
0

query I rowsort
SELECT 88 + 44 col1
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT 14 DIV + + 50 - + 99
----
-99

skipif mysql # not compatible
query I rowsort label-6227
SELECT 14 / + + 50 - + 99
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6228
SELECT + 73 * 56 * MIN( 31 ) / CAST( NULL AS DECIMAL ) + - 17 AS col0, 71 * + + 56 * - 90
----
NULL
-357840

skipif mysql # not compatible
query II rowsort label-6228
SELECT + 73 * 56 * MIN ( 31 ) / CAST ( NULL AS REAL ) + - 17 AS col0, 71 * + + 56 * - 90
----
NULL
-357840

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT + 82 + - 62 - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-6229
SELECT + 82 + - 62 - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6230
SELECT + - 80 AS col0, 37 + - - 45 DIV COUNT( * ) * - 85 * + - 83 * - 84 AS col1
----
-80
-26667863

skipif mysql # not compatible
query II rowsort label-6230
SELECT + - 80 AS col0, 37 + - - 45 / COUNT ( * ) * - 85 * + - 83 * - 84 AS col1
----
-80
-26667863

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT ALL + - COUNT( * ) + ( + - 17 ), COUNT( * ) AS col0
----
-18
1

skipif mysql # not compatible
query II rowsort label-6231
SELECT ALL + - COUNT ( * ) + ( + - 17 ), COUNT ( * ) AS col0
----
-18
1

query I rowsort
SELECT 57 + - 4 AS col2
----
53

query I rowsort
SELECT ALL 78 + - 45 - - 69 * + 31 AS col0
----
2172

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL - + ( 47 ) + + COUNT( * ) + + + 54 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL - + ( 47 ) + + COUNT ( * ) + + + 54 AS col2
----
8

query I rowsort
SELECT 36 * - + 48
----
-1728

query I rowsort
SELECT 30 * + + 25 + - 17
----
733

query I rowsort
SELECT ALL - 93 + - - 86 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT 88 + + 25 * - COALESCE ( + + 39, - 30, - + 54 ) * 24 * + 11 + + - MIN( ALL + ( + 62 ) ) * - CAST( 96 + - 47 AS SIGNED )
----
-254274

skipif mysql # not compatible
query I rowsort label-6238
SELECT 88 + + 25 * - COALESCE ( + + 39, - 30, - + 54 ) * 24 * + 11 + + - MIN ( ALL + ( + 62 ) ) * - CAST ( 96 + - 47 AS INTEGER )
----
-254274

query I rowsort
SELECT 59 * + - 52 AS col2
----
-3068

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6240
SELECT 51, - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-6240
SELECT 51, - CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
51
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6241
SELECT ALL - 21 * 87, - CASE WHEN - CASE + 73 WHEN + + MIN( - 15 ) * + 68 / - 55 THEN NULL ELSE 97 / - MAX( ALL 36 / - 24 ) END >= ( 48 ) THEN 18 + 36 ELSE COUNT( * ) * + 59 END AS col1
----
-1827
-59

skipif mysql # not compatible
query II rowsort label-6241
SELECT ALL - 21 * 87, - CASE WHEN - CASE + 73 WHEN + + MIN ( - 15 ) * + 68 / - 55 THEN NULL ELSE 97 / - MAX ( ALL 36 / - 24 ) END >= ( 48 ) THEN 18 + 36 ELSE COUNT ( * ) * + 59 END AS col1
----
-1827
-59

query I rowsort
SELECT DISTINCT - 48 + 81 AS col2
----
33

query I rowsort
SELECT ALL - 3 * + + 84
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT 78 DIV 60 * 99
----
99

skipif mysql # not compatible
query I rowsort label-6244
SELECT 78 / 60 * 99
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6245
SELECT ALL - 31 - - + 61 + - ( - - COUNT( * ) ) * 97 - + - 36 DIV + - 98
----
-67

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - 31 - - + 61 + - ( - - COUNT ( * ) ) * 97 - + - 36 / + - 98
----
-67

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

skipif mysql # not compatible
query I rowsort label-6246
SELECT 85 * + COUNT ( * ) * + - 86 AS col0
----
-7310

query I rowsort
SELECT ALL + 58 * + - 39
----
-2262

query I rowsort
SELECT ALL - 4 * - 31 AS col0
----
124

query I rowsort
SELECT 68 - + 61 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT 4 DIV - 50 col0
----
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT 4 / - 50 col0
----
0

query I rowsort
SELECT 75 * 16
----
1200

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6253
SELECT DISTINCT COUNT( * ), 12 col0
----
1
12

skipif mysql # not compatible
query II rowsort label-6253
SELECT DISTINCT COUNT ( * ), 12 col0
----
1
12

query II rowsort
SELECT 32 AS col2, 24 AS col1
----
32
24

query II rowsort
SELECT 40, - 22 col1
----
40
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT DISTINCT MAX( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT MAX ( 63 )
----
63

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

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

query I rowsort
SELECT DISTINCT - 73 * + 25 AS col2
----
-1825

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

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

query I rowsort
SELECT 23 * - + 56
----
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL - COUNT( * ) * + + 82 - + 84
----
-166

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL - COUNT ( * ) * + + 82 - + 84
----
-166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6262
SELECT + 30 * CASE - - 76 WHEN + - 34 * - 69 THEN + CAST( NULL AS SIGNED ) WHEN - - ( - 39 ) THEN 19 END + - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6262
SELECT + 30 * CASE - - 76 WHEN + - 34 * - 69 THEN + CAST ( NULL AS INTEGER ) WHEN - - ( - 39 ) THEN 19 END + - 89 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6263
SELECT AVG ( + + ( 95 ) ) + + ( CAST( NULL AS DECIMAL ) ) * + 99 + 58 * - + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT AVG ( + + ( 95 ) ) + + ( CAST ( NULL AS REAL ) ) * + 99 + 58 * - + 23 AS col0
----
NULL

query II rowsort
SELECT + + 69, - 12 col0
----
69
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT 85 DIV + - 12 - 85
----
-92

skipif mysql # not compatible
query I rowsort label-6265
SELECT 85 / + - 12 - 85
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT ALL - CASE - COUNT( 43 ) WHEN - - COUNT( * ) THEN NULL WHEN - + 85 - 61 THEN - 77 WHEN - + 7 - - COALESCE ( 32, + - MIN( DISTINCT 35 ) + + 85 * 4 ) * 74 THEN NULL END * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL - CASE - COUNT ( 43 ) WHEN - - COUNT ( * ) THEN NULL WHEN - + 85 - 61 THEN - 77 WHEN - + 7 - - COALESCE ( 32, + - MIN ( DISTINCT 35 ) + + 85 * 4 ) * 74 THEN NULL END * 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT 3 DIV + - 64 * - 63 * + 65 * - + COALESCE ( - + 90, - 1 DIV + 92, - + MIN( - 63 ), + 0 ) + 65 * 9
----
585

skipif mysql # not compatible
query I rowsort label-6267
SELECT 3 / + - 64 * - 63 * + 65 * - + COALESCE ( - + 90, - 1 / + 92, - + MIN ( - 63 ), + 0 ) + 65 * 9
----
585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT 68 * - CAST( - 81 AS SIGNED ) + CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN 16 * + 31 THEN 27 * COUNT( * ) ELSE NULL END * + 11 + MAX( 13 ) / 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT 68 * - CAST ( - 81 AS INTEGER ) + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN 16 * + 31 THEN 27 * COUNT ( * ) ELSE NULL END * + 11 + MAX ( 13 ) / 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT NULLIF ( + - 76, 75 * - NULLIF ( - AVG ( DISTINCT + - 65 ), - SUM( ALL + 79 ) ) + + 32 + + 73 * COUNT( * ) - COUNT( * ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-6269
SELECT NULLIF ( + - 76, 75 * - NULLIF ( - AVG ( DISTINCT + - 65 ), - SUM ( ALL + 79 ) ) + + 32 + + 73 * COUNT ( * ) - COUNT ( * ) ) AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT ALL + NULLIF ( + 21, - + CAST( NULL AS SIGNED ) * 60 * 25 ) * - 11 + + 76 + - 82 * + - 86 col2
----
6897

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL + NULLIF ( + 21, - + CAST ( NULL AS INTEGER ) * 60 * 25 ) * - 11 + + 76 + - 82 * + - 86 col2
----
6897

query I rowsort
SELECT ALL 54 * + 41
----
2214

onlyif mysql # aggregate syntax: 
query II rowsort label-6272
SELECT ALL SUM( 82 ) * + 20 + - 5, 10 + - - 64 + - SUM( + 16 ) AS col2
----
1635
58

skipif mysql # not compatible
query II rowsort label-6272
SELECT ALL SUM ( 82 ) * + 20 + - 5, 10 + - - 64 + - SUM ( + 16 ) AS col2
----
1635
58

query II rowsort
SELECT DISTINCT - + 72 AS col0, 60 AS col0
----
-72
60

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

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

query I rowsort
SELECT - 84 * - 53 * + 16 + + + 83 * - 19
----
69655

query I rowsort
SELECT + + 42 * - ( + 87 ) col0
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL + 61 + + MAX( + + 51 ) * NULLIF ( + 51, - 39 ) AS col2
----
2662

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL + 61 + + MAX ( + + 51 ) * NULLIF ( + 51, - 39 ) AS col2
----
2662

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT DISTINCT + CASE + - COUNT( * ) WHEN + CASE 95 WHEN - + 91 THEN NULL ELSE + 10 * + COUNT( * ) END * - - 79 THEN NULL ELSE - ( 13 ) END
----
-13

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT + CASE + - COUNT ( * ) WHEN + CASE 95 WHEN - + 91 THEN NULL ELSE + 10 * + COUNT ( * ) END * - - 79 THEN NULL ELSE - ( 13 ) END
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT MIN( DISTINCT - - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-6279
SELECT MIN ( DISTINCT - - 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT + SUM( - ( + + 97 ) ) - - 89 - - COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6280
SELECT + SUM ( - ( + + 97 ) ) - - 89 - - COUNT ( * ) AS col0
----
-7

query I rowsort
SELECT ALL - 35 * 67
----
-2345

query I rowsort
SELECT + 66 - + 34 col1
----
32

query I rowsort
SELECT ALL 72 * - - 66
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT - NULLIF ( + COUNT( * ), 44 ) - - COUNT( * ) + - 42 col0
----
-42

skipif mysql # not compatible
query I rowsort label-6284
SELECT - NULLIF ( + COUNT ( * ), 44 ) - - COUNT ( * ) + - 42 col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6285
SELECT ALL MIN( DISTINCT - + 94 ) AS col1, + 53
----
-94
53

skipif mysql # not compatible
query II rowsort label-6285
SELECT ALL MIN ( DISTINCT - + 94 ) AS col1, + 53
----
-94
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT - 36 * + + MIN( - 49 ) AS col1
----
1764

skipif mysql # not compatible
query I rowsort label-6286
SELECT - 36 * + + MIN ( - 49 ) AS col1
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL MAX( - + COALESCE ( ( - ( + ( + 70 ) ) ), + 95 ) )
----
70

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL MAX ( - + COALESCE ( ( - ( + ( + 70 ) ) ), + 95 ) )
----
70

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

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

query I rowsort
SELECT + 82 + - 77 * - 31 col1
----
2469

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - 88 - + COUNT( * ) + + 33 * ( - 6 ) * 84
----
-16721

skipif mysql # not compatible
query I rowsort label-6290
SELECT - 88 - + COUNT ( * ) + + 33 * ( - 6 ) * 84
----
-16721

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT - 6 * + MIN( + ( 94 ) ) AS col0
----
-564

skipif mysql # not compatible
query I rowsort label-6291
SELECT - 6 * + MIN ( + ( 94 ) ) AS col0
----
-564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6292
SELECT ALL - 0 DIV MAX( DISTINCT 44 )
----
0

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL - 0 / MAX ( DISTINCT 44 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6293
SELECT ALL - 75 * COUNT( * ) DIV - 45 * - CASE + + 49 WHEN + - MAX( + 77 ) * - 43 * - - 19 * - - 31 + 22 THEN NULL ELSE COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL - 75 * COUNT ( * ) / - 45 * - CASE + + 49 WHEN + - MAX ( + 77 ) * - 43 * - - 19 * - - 31 + 22 THEN NULL ELSE COUNT ( * ) END AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6294
SELECT ALL - CASE - ( - - 43 ) WHEN + 62 + 10 * + - COUNT( * ) THEN 41 WHEN COUNT( - 31 ) + CAST( 78 AS SIGNED ) THEN NULL END * 60 + 45 / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL - CASE - ( - - 43 ) WHEN + 62 + 10 * + - COUNT ( * ) THEN 41 WHEN COUNT ( - 31 ) + CAST ( 78 AS INTEGER ) THEN NULL END * 60 + 45 / 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT - 28 * - COALESCE ( - - NULLIF ( MAX( 97 ), + 46 ), + COUNT( * ) + + + ( - 94 ) DIV + + 16 DIV + - COALESCE ( 66, 14 DIV - 91 ), 46 ) col0
----
2716

skipif mysql # not compatible
query I rowsort label-6295
SELECT - 28 * - COALESCE ( - - NULLIF ( MAX ( 97 ), + 46 ), + COUNT ( * ) + + + ( - 94 ) / + + 16 / + - COALESCE ( 66, 14 / - 91 ), 46 ) col0
----
2716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6296
SELECT + + 14 + + SUM( ALL - COALESCE ( - 11, 74 * - 40, - + CAST( 36 AS SIGNED ) - + 87 + 38 ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6296
SELECT + + 14 + + SUM ( ALL - COALESCE ( - 11, 74 * - 40, - + CAST ( 36 AS INTEGER ) - + 87 + 38 ) ) AS col0
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL + 89 / - 0 * + 85 * - 56 * + + CASE ( + - 29 ) WHEN - - 44 THEN - + 99 WHEN - 94 THEN MAX( DISTINCT - - 87 ) END + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL + 89 / - 0 * + 85 * - 56 * + + CASE ( + - 29 ) WHEN - - 44 THEN - + 99 WHEN - 94 THEN MAX ( DISTINCT - - 87 ) END + 14 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 90 + + - 59 + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 90 + + - 59 + 90 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6300
SELECT DISTINCT + + MAX( DISTINCT - 19 ) * - 76 * - CAST( NULL AS SIGNED ) * + AVG ( ALL - 21 ) - - 16 + - ( + - 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + + MAX ( DISTINCT - 19 ) * - 76 * - CAST ( NULL AS INTEGER ) * + AVG ( ALL - 21 ) - - 16 + - ( + - 52 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 39 * - 82
----
-3198

query I rowsort
SELECT + 36 * - 58 - - - 5 AS col1
----
-2093

query I rowsort
SELECT ALL + ( + 54 ) * + - NULLIF ( - 57, - - 50 ) AS col1
----
3078

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

skipif mysql # not compatible
query I rowsort label-6304
SELECT + 27 + + 75 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 66 * - 47 AS col2
----
3102

query II rowsort
SELECT DISTINCT + 74 * 84, - ( CASE 42 WHEN + NULLIF ( + + 10, - - 82 * + 68 ) / - 32 - - + 88 THEN 72 WHEN - 7 THEN NULL ELSE NULL END ) AS col0
----
6216
NULL

query I rowsort
SELECT ALL 61 * - NULLIF ( - 93, 16 ) - - - 67
----
5606

query I rowsort
SELECT + 42 + + 90
----
132

query II rowsort
SELECT ALL + 49 AS col0, - 87 * + - 31 AS col2
----
49
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT 67 * - ( + 19 ) * + + 37 + 14 * - 44 + + CASE + + 48 WHEN 67 + + - 7 THEN - COUNT( * ) + - 26 WHEN - 46 * - 53 THEN - 91 + + CASE - 72 WHEN 0 - - COALESCE ( COUNT( * ), + 18, 59 ) THEN NULL WHEN + 24 THEN NULL WHEN + COUNT( * ) THEN - COALESCE ( + 34, - 68 ) END * - COUNT( * ) END + + 27 * - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT 67 * - ( + 19 ) * + + 37 + 14 * - 44 + + CASE + + 48 WHEN 67 + + - 7 THEN - COUNT ( * ) + - 26 WHEN - 46 * - 53 THEN - 91 + + CASE - 72 WHEN 0 - - COALESCE ( COUNT ( * ), + 18, 59 ) THEN NULL WHEN + 24 THEN NULL WHEN + COUNT ( * ) THEN - COALESCE ( + 34, - 68 ) END * - COUNT ( * ) END + + 27 * - 19 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), + 48 * - - 28 ) AS col2
----
-1344

skipif mysql # not compatible
query I rowsort label-6311
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), + 48 * - - 28 ) AS col2
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT + CASE - 77 WHEN - - 1 * - 1 + 4 THEN NULL ELSE COUNT( * ) END * + 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6312
SELECT + CASE - 77 WHEN - - 1 * - 1 + 4 THEN NULL ELSE COUNT ( * ) END * + 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT - 10 * + - COUNT( * ) + - - 12 * + 98
----
1186

skipif mysql # not compatible
query I rowsort label-6313
SELECT - 10 * + - COUNT ( * ) + - - 12 * + 98
----
1186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT + ( - 8 ) DIV + 41 * 74 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT + ( - 8 ) / + 41 * 74 * COUNT ( * )
----
0

query I rowsort
SELECT - 82 * 65
----
-5330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6316
SELECT - CAST( + NULLIF ( - - MAX( ALL 55 ), + 83 ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-6316
SELECT - CAST ( + NULLIF ( - - MAX ( ALL 55 ), + 83 ) AS INTEGER )
----
-55

query I rowsort
SELECT - 46 * + 79 AS col1
----
-3634

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL 52 + + NULLIF ( - MIN( DISTINCT + 37 ), 30 )
----
15

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL 52 + + NULLIF ( - MIN ( DISTINCT + 37 ), 30 )
----
15

query I rowsort
SELECT DISTINCT 70 * - 49 AS col1
----
-3430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6320
SELECT - CAST( 63 AS SIGNED ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-6320
SELECT - CAST ( 63 AS INTEGER ) col2
----
-63

query II rowsort
SELECT + 93 - 46 * + - 53 AS col0, 66 AS col2
----
2531
66

query II rowsort
SELECT - - 6 AS col2, 57
----
6
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT DISTINCT NULLIF ( - + NULLIF ( - - ( - + CAST( NULL AS SIGNED ) ), + AVG ( ALL - - COALESCE ( + 10, + 7 - + 61 ) ) ), CASE WHEN NOT 54 IS NOT NULL THEN NULL ELSE - 37 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT NULLIF ( - + NULLIF ( - - ( - + CAST ( NULL AS INTEGER ) ), + AVG ( ALL - - COALESCE ( + 10, + 7 - + 61 ) ) ), CASE WHEN NOT 54 IS NOT NULL THEN NULL ELSE - 37 END )
----
NULL

query I rowsort
SELECT ALL - - 80 + - - 89 AS col2
----
169

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6326
SELECT - - 41 + - + 25 DIV + + 32, 59 DIV 50 * + - 83 - - 11 + - - 14 col1
----
41
-58

skipif mysql # not compatible
query II rowsort label-6326
SELECT - - 41 + - + 25 / + + 32, 59 / 50 * + - 83 - - 11 + - - 14 col1
----
41
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT - 53 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT - 53 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6328
SELECT DISTINCT - - 10, + COUNT( * ) - - COUNT( * ) col2
----
10
2

skipif mysql # not compatible
query II rowsort label-6328
SELECT DISTINCT - - 10, + COUNT ( * ) - - COUNT ( * ) col2
----
10
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT DISTINCT - + 38 + + MAX( - 25 ) + - - NULLIF ( + SUM( - 28 ), 92 ) * + 25
----
-763

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT - + 38 + + MAX ( - 25 ) + - - NULLIF ( + SUM ( - 28 ), 92 ) * + 25
----
-763

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT - + ( - - ( - 67 ) ) * + CASE 29 WHEN + 89 + + ( - 62 ) + - + COUNT( * ) THEN 48 WHEN + 29 + - - 21 - 8 + - 81 * + 16 THEN NULL ELSE NULL END + + MIN( DISTINCT 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - + ( - - ( - 67 ) ) * + CASE 29 WHEN + 89 + + ( - 62 ) + - + COUNT ( * ) THEN 48 WHEN + 29 + - - 21 - 8 + - 81 * + 16 THEN NULL ELSE NULL END + + MIN ( DISTINCT 75 ) AS col1
----
NULL

query I rowsort
SELECT + 64 * 45 * + ( - 80 )
----
-230400

query II rowsort
SELECT ALL - 70 AS col2, + 47 * - 33 * - 27
----
-70
41877

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6336
SELECT DISTINCT - COALESCE ( + - 9, + - 85 * + ( + + 44 ) DIV + 3 + + 48 * - + 60 - - 91 * + 75 + COUNT( * ) + + 93 ) col1
----
9

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT - COALESCE ( + - 9, + - 85 * + ( + + 44 ) / + 3 + + 48 * - + 60 - - 91 * + 75 + COUNT ( * ) + + 93 ) col1
----
9

query I rowsort
SELECT + 19 * - 99 + - 97 AS col2
----
-1978

query II rowsort
SELECT ALL + 99 * 73 AS col2, - 65 + + + 54 AS col2
----
7227
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT 75 * NULLIF ( - + 45, COUNT( * ) ) * + 22 AS col2
----
-74250

skipif mysql # not compatible
query I rowsort label-6339
SELECT 75 * NULLIF ( - + 45, COUNT ( * ) ) * + 22 AS col2
----
-74250

query I rowsort
SELECT 88 * - + 45
----
-3960

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT ALL SUM( DISTINCT 65 ) * + + 41 + 62 AS col2, - 39 + + + 51
----
2727
12

skipif mysql # not compatible
query II rowsort label-6341
SELECT ALL SUM ( DISTINCT 65 ) * + + 41 + 62 AS col2, - 39 + + + 51
----
2727
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6342
SELECT SUM( 46 ) - + - 44 * - 11 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT SUM ( 46 ) - + - 44 * - 11 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT 3 - SUM( ALL 33 ) * - CASE MAX( ALL - 17 ) WHEN + + 44 + 79 THEN - - 27 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT 3 - SUM ( ALL 33 ) * - CASE MAX ( ALL - 17 ) WHEN + + 44 + 79 THEN - - 27 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 82 * + 4
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT DISTINCT - COUNT( * ) + + ( + MAX( ALL - 23 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT - COUNT ( * ) + + ( + MAX ( ALL - 23 ) )
----
-24

query I rowsort
SELECT 0 * - 47 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6347
SELECT COALESCE ( + 13, 98, + CASE 23 WHEN - 18 + + - MIN( - - COALESCE ( 26, + 46 * + 19 + + NULLIF ( + 49, 84 ), + 60 ) ) THEN NULL WHEN 69 THEN + CASE - 17 WHEN 72 THEN + NULLIF ( + AVG ( + 21 ), + CAST( + 0 AS SIGNED ) ) * - 88 END ELSE 83 END ) + CAST( NULL AS DECIMAL ) * - 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT COALESCE ( + 13, 98, + CASE 23 WHEN - 18 + + - MIN ( - - COALESCE ( 26, + 46 * + 19 + + NULLIF ( + 49, 84 ), + 60 ) ) THEN NULL WHEN 69 THEN + CASE - 17 WHEN 72 THEN + NULLIF ( + AVG ( + 21 ), + CAST ( + 0 AS INTEGER ) ) * - 88 END ELSE 83 END ) + CAST ( NULL AS REAL ) * - 2 col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT ALL ( 32 ) DIV - + ( 34 ) * + 32
----
0

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL ( 32 ) / - + ( 34 ) * + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT COUNT( * ) - - COALESCE ( + 98, 15 * + - 43 * - + 5 - 32, - 72 )
----
99

skipif mysql # not compatible
query I rowsort label-6350
SELECT COUNT ( * ) - - COALESCE ( + 98, 15 * + - 43 * - + 5 - 32, - 72 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6351
SELECT CASE 41 WHEN - + ( 28 ) THEN NULL WHEN + 37 THEN NULL ELSE - 58 + + - ( CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT CASE 41 WHEN - + ( 28 ) THEN NULL WHEN + 37 THEN NULL ELSE - 58 + + - ( CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT ALL - CASE WHEN NOT ( NULL ) NOT BETWEEN ( + 60 ) AND NULL THEN 16 * - 54 END AS col1
----
NULL

query I rowsort
SELECT 1 + - 82 AS col2
----
-81

query I rowsort
SELECT ALL + ( 34 ) * + - 3
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6355
SELECT ALL COUNT( * ) + + + COUNT( * ) + + + 29 DIV - 81 * - + 89 * + - 14 DIV + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL COUNT ( * ) + + + COUNT ( * ) + + + 29 / - 81 * - + 89 * + - 14 / + - COUNT ( * )
----
2

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

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

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

query I rowsort
SELECT 11 + - - ( - 44 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT + MAX( ALL 30 ) * + + COALESCE ( - 73, 97 ) + 83 AS col1
----
-2107

skipif mysql # not compatible
query I rowsort label-6359
SELECT + MAX ( ALL 30 ) * + + COALESCE ( - 73, 97 ) + 83 AS col1
----
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT 57 + + MAX( ALL 97 ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-6360
SELECT 57 + + MAX ( ALL 97 ) AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL - COUNT( * ) - ( - CASE - 47 WHEN - 26 + - COUNT( * ) THEN 62 + + COUNT( * ) END ) * - 35 * - 11 * - + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - COUNT ( * ) - ( - CASE - 47 WHEN - 26 + - COUNT ( * ) THEN 62 + + COUNT ( * ) END ) * - 35 * - 11 * - + 55
----
NULL

query I rowsort
SELECT + 39 * + - 49
----
-1911

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

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

skipif mysql # not compatible
query I rowsort label-6364
SELECT SUM ( + + 50 ) / - + COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL 45 / COUNT( * ) + + CASE + 56 WHEN + COALESCE ( + COUNT( * ), - 36, - 78 ) * + + 89 * 36 + - 72 THEN NULL WHEN - SUM( DISTINCT + + 71 ) + + 96 * 45 THEN - 61 * + 87 END + + 87 * - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL 45 / COUNT ( * ) + + CASE + 56 WHEN + COALESCE ( + COUNT ( * ), - 36, - 78 ) * + + 89 * 36 + - 72 THEN NULL WHEN - SUM ( DISTINCT + + 71 ) + + 96 * 45 THEN - 61 * + 87 END + + 87 * - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT + SUM( 54 ) * + 63 AS col0
----
3402

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT + SUM ( 54 ) * + 63 AS col0
----
3402

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT MIN( ALL + + 24 ) * - 68 - 2
----
-1634

skipif mysql # not compatible
query I rowsort label-6368
SELECT MIN ( ALL + + 24 ) * - 68 - 2
----
-1634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6369
SELECT 98 DIV - - ( COUNT( DISTINCT 10 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6369
SELECT 98 / - - ( COUNT ( DISTINCT 10 ) ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6370
SELECT - 58 * + 14 * - 58 - - + CASE + CAST( NULL AS SIGNED ) WHEN 95 THEN + ( - 7 ) WHEN 15 + + 83 / + COUNT( * ) / + SUM( ALL - 26 ) THEN - 22 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT - 58 * + 14 * - 58 - - + CASE + CAST ( NULL AS INTEGER ) WHEN 95 THEN + ( - 7 ) WHEN 15 + + 83 / + COUNT ( * ) / + SUM ( ALL - 26 ) THEN - 22 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT 14 + - - MIN( - - 65 ) * - + 71 AS col0
----
-4601

skipif mysql # not compatible
query I rowsort label-6372
SELECT 14 + - - MIN ( - - 65 ) * - + 71 AS col0
----
-4601

onlyif mysql # aggregate syntax: 
query III rowsort label-6373
SELECT 9 AS col2, + 84 + COUNT( * ), - - 50 AS col2
----
9
85
50

skipif mysql # not compatible
query III rowsort label-6373
SELECT 9 AS col2, + 84 + COUNT ( * ), - - 50 AS col2
----
9
85
50

query I rowsort
SELECT 23 + 7 * 32 AS col1
----
247

query I rowsort
SELECT ALL + 13 * + - 60
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT DISTINCT - 59 + + + 80 + - 66 + + COUNT( * ) * 23 * + 16 * 40 * 48 AS col2
----
706515

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT - 59 + + + 80 + - 66 + + COUNT ( * ) * 23 * + 16 * 40 * 48 AS col2
----
706515

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

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

query I rowsort
SELECT 13 + 34 AS col0
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT COUNT( * ) * 38 * 55 AS col1
----
2090

skipif mysql # not compatible
query I rowsort label-6380
SELECT COUNT ( * ) * 38 * 55 AS col1
----
2090

query I rowsort
SELECT ALL - ( - 25 ) + 2 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT COUNT( * ) * + + 20 + - - 1 * - + 37 col0
----
-17

skipif mysql # not compatible
query I rowsort label-6382
SELECT COUNT ( * ) * + + 20 + - - 1 * - + 37 col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6383
SELECT DISTINCT + CASE 83 WHEN - 80 + + - 14 THEN NULL ELSE + 26 + - 65 * + 70 END * - + 32 + + 23 + + - CAST( NULL AS SIGNED ) * + 16 * + + 98 + - ( COUNT( * ) ) * SUM( DISTINCT ( 40 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT + CASE 83 WHEN - 80 + + - 14 THEN NULL ELSE + 26 + - 65 * + 70 END * - + 32 + + 23 + + - CAST ( NULL AS INTEGER ) * + 16 * + + 98 + - ( COUNT ( * ) ) * SUM ( DISTINCT ( 40 ) ) AS col1
----
NULL

query I rowsort
SELECT 12 * - 70 * - - 66 AS col2
----
-55440

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL + ( - + CASE 52 WHEN - 23 THEN NULL WHEN - 59 * + + 27 * - NULLIF ( + 78, - - COUNT( + 27 ) * + + 84 + 11 + - 44 ) + + 88 THEN - 35 / + 3 + ( + 62 ) ELSE NULL END ) + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL + ( - + CASE 52 WHEN - 23 THEN NULL WHEN - 59 * + + 27 * - NULLIF ( + 78, - - COUNT ( + 27 ) * + + 84 + 11 + - 44 ) + + 88 THEN - 35 / + 3 + ( + 62 ) ELSE NULL END ) + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT 57 + + + COALESCE ( MIN( - COALESCE ( + 85, 91 ) ), - 99 )
----
-28

skipif mysql # not compatible
query I rowsort label-6386
SELECT 57 + + + COALESCE ( MIN ( - COALESCE ( + 85, 91 ) ), - 99 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL SUM( DISTINCT - 19 ) + 50
----
31

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL SUM ( DISTINCT - 19 ) + 50
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT DISTINCT + ( + 20 ) * - 52 * + - 22 * + COUNT( * ) + + 63
----
22943

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + ( + 20 ) * - 52 * + - 22 * + COUNT ( * ) + + 63
----
22943

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

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT - + CAST ( 9 AS INTEGER ) + + - 46
----
-55

query I rowsort
SELECT + 30 + - - 53 AS col0
----
83

query I rowsort
SELECT DISTINCT - 19 * - 89
----
1691

query I rowsort
SELECT ALL + 60 - + 60 * - - ( + 2 ) * - + 33 - + 47 + + ( - 98 ) + 30 + 71 * 50
----
7455

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT + + CASE 71 WHEN 68 THEN NULL WHEN 76 THEN + SUM( - 30 ) END * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT + + CASE 71 WHEN 68 THEN NULL WHEN 76 THEN + SUM ( - 30 ) END * + 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT - COALESCE ( ( - + 54 ), 44 * - - 27, + 78 DIV + - ( + ( - 68 ) ) + + 10 + + 94 )
----
54

skipif mysql # not compatible
query I rowsort label-6394
SELECT - COALESCE ( ( - + 54 ), 44 * - - 27, + 78 / + - ( + ( - 68 ) ) + + 10 + + 94 )
----
54

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

query I rowsort
SELECT + - 0 * + + 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT - - NULLIF ( + MIN( 42 ), - 24 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-6397
SELECT - - NULLIF ( + MIN ( 42 ), - 24 ) col0
----
42

query I rowsort
SELECT + - 14 * - + 44 AS col0
----
616

query I rowsort
SELECT + - 8 + ( + - 96 )
----
-104

query I rowsort
SELECT + 33 + + - 63 AS col1
----
-30

query I rowsort
SELECT + + 39 * - - 27 AS col1
----
1053

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

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

query I rowsort
SELECT DISTINCT + ( - COALESCE ( - - NULLIF ( + 1, - 91 * + - 55 ), + 72, 50 * 67 + 98 ) ) * 99
----
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6405
SELECT + + 68 DIV + 54 + ( - - 17 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6405
SELECT + + 68 / + 54 + ( - - 17 ) AS col1
----
18

query I rowsort
SELECT DISTINCT - 51 * - 85 AS col1
----
4335

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

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

query I rowsort
SELECT - 13 + + 72 * 20 AS col2
----
1427

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT CASE - - 53 WHEN + + 9 + 9 - - 63 THEN 95 * COUNT( * ) + + COALESCE ( + 74, - + 78 ) ELSE + 5 END, COUNT( * ) AS col2
----
5
1

skipif mysql # not compatible
query II rowsort label-6409
SELECT CASE - - 53 WHEN + + 9 + 9 - - 63 THEN 95 * COUNT ( * ) + + COALESCE ( + 74, - + 78 ) ELSE + 5 END, COUNT ( * ) AS col2
----
5
1

query I rowsort
SELECT + 53 * 45
----
2385

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT DISTINCT 94 DIV - 81 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT 94 / - 81 AS col2
----
-1

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

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

query I rowsort
SELECT - 23 * + - 20 AS col0
----
460

query I rowsort
SELECT ALL - 37 * + + ( 22 ) * + 81
----
-65934

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT ALL + COUNT( DISTINCT - 36 ) col2, 15 + - 79 + 84
----
1
20

skipif mysql # not compatible
query II rowsort label-6415
SELECT ALL + COUNT ( DISTINCT - 36 ) col2, 15 + - 79 + 84
----
1
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6416
SELECT - CASE + 85 WHEN + - COUNT( * ) * + AVG ( 87 ) + - - 67 THEN + 26 WHEN + 38 THEN NULL ELSE + CAST( NULL AS DECIMAL ) END * - + AVG ( ALL - 34 ) / - 81 / 77 + + - AVG ( ALL - - 10 ) * - 45 + 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT - CASE + 85 WHEN + - COUNT ( * ) * + AVG ( 87 ) + - - 67 THEN + 26 WHEN + 38 THEN NULL ELSE + CAST ( NULL AS REAL ) END * - + AVG ( ALL - 34 ) / - 81 / 77 + + - AVG ( ALL - - 10 ) * - 45 + 66 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6417
SELECT COALESCE ( 23, - 96 DIV 67 ), - 22 AS col2
----
23
-22

skipif mysql # not compatible
query II rowsort label-6417
SELECT COALESCE ( 23, - 96 / 67 ), - 22 AS col2
----
23
-22

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6419
SELECT - 76 DIV 17, - COUNT( * ) + + 77 AS col0
----
-4
76

skipif mysql # not compatible
query II rowsort label-6419
SELECT - 76 / 17, - COUNT ( * ) + + 77 AS col0
----
-4
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6420
SELECT ALL + 0 * 38 * + - 14 + CAST( NULL AS DECIMAL ) + + 78 * - 53 + COUNT( * ) * + 17 * 47 + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + 0 * 38 * + - 14 + CAST ( NULL AS REAL ) + + 78 * - 53 + COUNT ( * ) * + 17 * 47 + + 8 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT COUNT( * ), + 81 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-6422
SELECT COUNT ( * ), + 81 AS col0
----
1
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6423
SELECT - 64 - + 22 + + + 92 + MAX( ALL 74 ) DIV - 85 + - - 24 + 7 + 47 * + 39 * + 28 AS col1, + 40 + - 13 AS col1
----
51361
27

skipif mysql # not compatible
query II rowsort label-6423
SELECT - 64 - + 22 + + + 92 + MAX ( ALL 74 ) / - 85 + - - 24 + 7 + 47 * + 39 * + 28 AS col1, + 40 + - 13 AS col1
----
51361
27

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

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

query I rowsort
SELECT - - 87 * + - 57 + + ( - 76 )
----
-5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6426
SELECT ALL - + 87 * + ( - 31 ) * - 16 - - 31 + CAST( + - COUNT( * ) AS SIGNED ) * + CASE - - 20 WHEN + + COUNT( * ) * 65 + - 78 + - 13 THEN NULL WHEN + 69 THEN NULL WHEN - - 26 THEN - 90 DIV CAST( - 52 AS SIGNED ) + + 29 ELSE - ( - 55 ) END * + 76
----
-47301

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL - + 87 * + ( - 31 ) * - 16 - - 31 + CAST ( + - COUNT ( * ) AS INTEGER ) * + CASE - - 20 WHEN + + COUNT ( * ) * 65 + - 78 + - 13 THEN NULL WHEN + 69 THEN NULL WHEN - - 26 THEN - 90 / CAST ( - 52 AS INTEGER ) + + 29 ELSE - ( - 55 ) END * + 76
----
-47301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6427
SELECT ALL COUNT( * ) col2, - CASE - 3 WHEN - ( + + 57 ) - - + ( + 57 ) / + + 82 * + 90 THEN NULL WHEN CASE - + NULLIF ( - - 67, - 70 ) WHEN + 55 / + CAST( - - 12 AS SIGNED ) THEN NULL ELSE 33 END THEN COUNT( * ) + - 16 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6427
SELECT ALL COUNT ( * ) col2, - CASE - 3 WHEN - ( + + 57 ) - - + ( + 57 ) / + + 82 * + 90 THEN NULL WHEN CASE - + NULLIF ( - - 67, - 70 ) WHEN + 55 / + CAST ( - - 12 AS INTEGER ) THEN NULL ELSE 33 END THEN COUNT ( * ) + - 16 END
----
1
NULL

query I rowsort
SELECT ALL ( + 29 ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6429
SELECT - + NULLIF ( - 54, CASE + 61 WHEN + COALESCE ( 95, CAST( NULL AS SIGNED ) ) + - 83 * + - 86 * + + COUNT( * ) - - 8 THEN 28 END * NULLIF ( + - 29, - 87 / 82 ) ) + + 75 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-6429
SELECT - + NULLIF ( - 54, CASE + 61 WHEN + COALESCE ( 95, CAST ( NULL AS INTEGER ) ) + - 83 * + - 86 * + + COUNT ( * ) - - 8 THEN 28 END * NULLIF ( + - 29, - 87 / 82 ) ) + + 75 AS col2
----
129

query I rowsort
SELECT - + 29 - + + 56
----
-85

query I rowsort
SELECT - 94 * + 97 - - - 35
----
-9153

query I rowsort
SELECT DISTINCT - 7 * + - 89 * + + 41
----
25543

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT - 21 DIV - 62 + 6
----
6

skipif mysql # not compatible
query I rowsort label-6433
SELECT - 21 / - 62 + 6
----
6

query I rowsort
SELECT DISTINCT - + 89 * - 2 col2
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-6435
SELECT DISTINCT - 50 col2, - MIN( ALL - 47 ) AS col0
----
-50
47

skipif mysql # not compatible
query II rowsort label-6435
SELECT DISTINCT - 50 col2, - MIN ( ALL - 47 ) AS col0
----
-50
47

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

query I rowsort
SELECT - 10 + + 35
----
25

query I rowsort
SELECT - ( + - 32 ) + + - 84
----
-52

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL - 99 / + 94 + + + COUNT ( * )
----
0

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

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

query I rowsort
SELECT + 30 + + + 30
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT DISTINCT 53 * - COUNT( * ) * - + COUNT( * ) * ( 78 )
----
4134

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT 53 * - COUNT ( * ) * - + COUNT ( * ) * ( 78 )
----
4134

onlyif mysql # DIV for integer division: 
query I rowsort label-6445
SELECT + 93 DIV 80 + 97
----
98

skipif mysql # not compatible
query I rowsort label-6445
SELECT + 93 / 80 + 97
----
98

query I rowsort
SELECT + 94 * 49
----
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT 78 * COUNT( * ) + - 56 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6447
SELECT 78 * COUNT ( * ) + - 56 AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6448
SELECT ALL - 5 DIV 27 + - MIN( + 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - 5 / 27 + - MIN ( + 18 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6449
SELECT ( 40 ), - 12 * - - 59 - + - COUNT( * ) AS col1
----
40
-707

skipif mysql # not compatible
query II rowsort label-6449
SELECT ( 40 ), - 12 * - - 59 - + - COUNT ( * ) AS col1
----
40
-707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL - CAST( NULL AS SIGNED ) / + MAX( ALL 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - CAST ( NULL AS INTEGER ) / + MAX ( ALL 93 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT CAST( NULL AS SIGNED ) + + - 56 * + + 62 / 79 - + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT CAST ( NULL AS INTEGER ) + + - 56 * + + 62 / 79 - + + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT COUNT( * ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-6452
SELECT COUNT ( * ) + - 97
----
-96

query I rowsort
SELECT ALL - 79 - - 27 * - + 16 col0
----
-511

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT ALL 82 DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL 82 / 97 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6455
SELECT ALL - + MIN( DISTINCT + - ( + - 55 ) ) col2, 58 + NULLIF ( + MIN( CAST( NULL AS SIGNED ) ), - 31 - 7 ) * ( - COALESCE ( + AVG ( - 18 ), 63 ) ) + 57 * + COUNT( * ) * + - COALESCE ( + 61, - 20, COUNT( * ) * + ( + 87 ) ) * 42
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-6455
SELECT ALL - + MIN ( DISTINCT + - ( + - 55 ) ) col2, 58 + NULLIF ( + MIN ( CAST ( NULL AS INTEGER ) ), - 31 - 7 ) * ( - COALESCE ( + AVG ( - 18 ), 63 ) ) + 57 * + COUNT ( * ) * + - COALESCE ( + 61, - 20, COUNT ( * ) * + ( + 87 ) ) * 42
----
-55
NULL

query I rowsort
SELECT - 46 * 63 * - 90 + + 7 - 58 + 16 * - + 96 + + - 53 + + - 83
----
259097

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT MIN( - + ( 93 ) ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6457
SELECT MIN ( - + ( 93 ) ) AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT + - COALESCE ( 50, - CAST( NULL AS SIGNED ) * 3 * + 32 + + 14 ) * + 28 + 45 * + + 77
----
2065

skipif mysql # not compatible
query I rowsort label-6458
SELECT + - COALESCE ( 50, - CAST ( NULL AS INTEGER ) * 3 * + 32 + + 14 ) * + 28 + 45 * + + 77
----
2065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6459
SELECT - 53 + - 50 - 31 DIV + COUNT( * ) + - + 11
----
-145

skipif mysql # not compatible
query I rowsort label-6459
SELECT - 53 + - 50 - 31 / + COUNT ( * ) + - + 11
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT ALL - MAX( DISTINCT - 38 ) AS col0, - 56 AS col2
----
38
-56

skipif mysql # not compatible
query II rowsort label-6460
SELECT ALL - MAX ( DISTINCT - 38 ) AS col0, - 56 AS col2
----
38
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT NULLIF ( - MAX( DISTINCT + 79 ), 54 ) + COUNT( * ) + - 81
----
-159

skipif mysql # not compatible
query I rowsort label-6461
SELECT NULLIF ( - MAX ( DISTINCT + 79 ), 54 ) + COUNT ( * ) + - 81
----
-159

query I rowsort
SELECT ALL - 67 + + + 42
----
-25

query I rowsort
SELECT 11 * - - 50 col2
----
550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT DISTINCT - COUNT( * ) + - CAST( ( - 31 ) AS SIGNED ) * NULLIF ( 16, + 87 )
----
495

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT - COUNT ( * ) + - CAST ( ( - 31 ) AS INTEGER ) * NULLIF ( 16, + 87 )
----
495

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

skipif mysql # not compatible
query I rowsort label-6465
SELECT 1 + 38 * COUNT ( * ) + + 60 AS col2
----
99

query I rowsort
SELECT - 82 * 34 col2
----
-2788

query I rowsort
SELECT 94 * - + 62 AS col1
----
-5828

query I rowsort
SELECT 7 - + - 3 + + 58 AS col0
----
68

query I rowsort
SELECT ALL - 54 * + 65
----
-3510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT ALL NULLIF ( + 58, - CAST( NULL AS SIGNED ) + + - 23 * - 75 + - 24 + + - AVG ( + - 53 ) + - - 24 + NULLIF ( + ( 21 ), + 24 * - 80 + - + 23 * + 10 ) * NULLIF ( + - COALESCE ( + 64, CASE 80 WHEN 99 THEN + 23 WHEN + COUNT( * ) * COALESCE ( 67, ( - 77 ) + - 52 ) THEN NULL WHEN COUNT( * ) - 11 * + COUNT( * ) THEN NULL ELSE NULL END ), COUNT( * ) / + COUNT( * ) - 97 ) * + 56 + + COALESCE ( 83 - + 51, - NULLIF ( - 65, + 85 ) + + 95, 48 + + 59 ) * + 49 ) + ( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL NULLIF ( + 58, - CAST ( NULL AS INTEGER ) + + - 23 * - 75 + - 24 + + - AVG ( + - 53 ) + - - 24 + NULLIF ( + ( 21 ), + 24 * - 80 + - + 23 * + 10 ) * NULLIF ( + - COALESCE ( + 64, CASE 80 WHEN 99 THEN + 23 WHEN + COUNT ( * ) * COALESCE ( 67, ( - 77 ) + - 52 ) THEN NULL WHEN COUNT ( * ) - 11 * + COUNT ( * ) THEN NULL ELSE NULL END ), COUNT ( * ) / + COUNT ( * ) - 97 ) * + 56 + + COALESCE ( 83 - + 51, - NULLIF ( - 65, + 85 ) + + 95, 48 + + 59 ) * + 49 ) + ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query II rowsort
SELECT + 60, + 28 AS col0
----
60
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6472
SELECT ALL + 10 + + CAST( - + 93 AS SIGNED ) + + - 75 + - ( + MIN( DISTINCT + 80 ) ) * + CAST( NULL AS SIGNED ) AS col0, + 53 + - - 38 + + 55 + 36 + + 86 + - 19 * - 48 * - + 89 + + + 59 + CAST( ( - 46 ) AS SIGNED ) * + 72
----
NULL
-84153

skipif mysql # not compatible
query II rowsort label-6472
SELECT ALL + 10 + + CAST ( - + 93 AS INTEGER ) + + - 75 + - ( + MIN ( DISTINCT + 80 ) ) * + CAST ( NULL AS INTEGER ) AS col0, + 53 + - - 38 + + 55 + 36 + + 86 + - 19 * - 48 * - + 89 + + + 59 + CAST ( ( - 46 ) AS INTEGER ) * + 72
----
NULL
-84153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6473
SELECT + 16, CASE + COUNT( * ) WHEN - + ( + COUNT( * ) ) * + ( + + 22 ) * - 63 THEN - 90 WHEN 54 * + - AVG ( + + 74 ) / + 24 + NULLIF ( - 12, 69 ) + - NULLIF ( + COUNT( * ), 11 + - AVG ( 12 ) ) * - 14 * - 31 + ( 71 ) THEN 6 / NULLIF ( - 31 * CAST( - COALESCE ( + 36, - 43 ) * COUNT( * ) AS SIGNED ), 90 * ( + 88 * + 78 ) ) END AS col1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6473
SELECT + 16, CASE + COUNT ( * ) WHEN - + ( + COUNT ( * ) ) * + ( + + 22 ) * - 63 THEN - 90 WHEN 54 * + - AVG ( + + 74 ) / + 24 + NULLIF ( - 12, 69 ) + - NULLIF ( + COUNT ( * ), 11 + - AVG ( 12 ) ) * - 14 * - 31 + ( 71 ) THEN 6 / NULLIF ( - 31 * CAST ( - COALESCE ( + 36, - 43 ) * COUNT ( * ) AS INTEGER ), 90 * ( + 88 * + 78 ) ) END AS col1
----
16
NULL

query I rowsort
SELECT ALL ( - - 38 ) * ( - + 57 )
----
-2166

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6476
SELECT ALL + COALESCE ( + CAST( 89 AS SIGNED ), - - 9, 33 DIV 9 - - 54 - 87 * 8, + 39 ) DIV - COUNT( * ) - COUNT( * ) - 15 * 39
----
-675

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + COALESCE ( + CAST ( 89 AS INTEGER ), - - 9, 33 / 9 - - 54 - 87 * 8, + 39 ) / - COUNT ( * ) - COUNT ( * ) - 15 * 39
----
-675

query I rowsort
SELECT ALL 35 * 54 col0
----
1890

query I rowsort
SELECT ALL 52 * 21 col2
----
1092

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL 28 - - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL 28 - - COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6481
SELECT 73, COUNT( * ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-6481
SELECT 73, COUNT ( * ) AS col0
----
73
1

query I rowsort
SELECT 28 + 68
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6483
SELECT - NULLIF ( ( + 29 ), - - CAST( NULL AS SIGNED ) - + - 80 ) * ( - 28 ) * - NULLIF ( - ( + - 8 ), - + 97 ) + + 82 + - + 57, + 9 col0
----
-6471
9

skipif mysql # not compatible
query II rowsort label-6483
SELECT - NULLIF ( ( + 29 ), - - CAST ( NULL AS INTEGER ) - + - 80 ) * ( - 28 ) * - NULLIF ( - ( + - 8 ), - + 97 ) + + 82 + - + 57, + 9 col0
----
-6471
9

query I rowsort
SELECT - 67 + + 94
----
27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT + 90 - + - 90 + - 70 + - + CASE + 4 WHEN 65 THEN - 82 ELSE + + 66 END + COUNT( * ) + 18 * 23 + 38 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT + 90 - + - 90 + - 70 + - + CASE + 4 WHEN 65 THEN - 82 ELSE + + 66 END + COUNT ( * ) + 18 * 23 + 38 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - SUM ( - - 22 )
----
-22

query I rowsort
SELECT ALL + 57 + - 51 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ( + 8 ) + COUNT( * ) * + 6 - - 27 - - MAX( + 86 ) + 90 + - + 38 * 46 + - 1 * - 75 * - 63 * - 85 + - - 12 - - - ( + 6 )
----
400100

skipif mysql # not compatible
query I rowsort label-6489
SELECT ( + 8 ) + COUNT ( * ) * + 6 - - 27 - - MAX ( + 86 ) + 90 + - + 38 * 46 + - 1 * - 75 * - 63 * - 85 + - - 12 - - - ( + 6 )
----
400100

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

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

query I rowsort
SELECT ALL + 41 * 61
----
2501

query I rowsort
SELECT 0 * 80 * + - 28
----
0

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

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

query I rowsort
SELECT DISTINCT + - 89 * - + 64 col2
----
5696

onlyif mysql # aggregate syntax: 
query II rowsort label-6495
SELECT + 15 AS col1, MIN( - 23 )
----
15
-23

skipif mysql # not compatible
query II rowsort label-6495
SELECT + 15 AS col1, MIN ( - 23 )
----
15
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6496
SELECT 80 DIV + - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6496
SELECT 80 / + - 81 AS col0
----
0

query I rowsort
SELECT 39 - + 98 + + + 81 + + - 44 AS col0
----
-22

query I rowsort
SELECT - - COALESCE ( + - 6, + 4, + - 80 + 36 ) col2
----
-6

query I rowsort
SELECT - 67 + + - 5 AS col2
----
-72

query I rowsort
SELECT ALL + + 47 + - 91 AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT - 15 DIV 14
----
-1

skipif mysql # not compatible
query I rowsort label-6501
SELECT - 15 / 14
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL + COALESCE ( - - COUNT( * ), - 49 * + - 34 ) * + - 29 - COALESCE ( + 70, COUNT( * ), - 96 )
----
-99

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + COALESCE ( - - COUNT ( * ), - 49 * + - 34 ) * + - 29 - COALESCE ( + 70, COUNT ( * ), - 96 )
----
-99

query I rowsort
SELECT 49 * 83 AS col0
----
4067

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL SUM( + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL SUM ( + 47 ) AS col1
----
47

query I rowsort
SELECT ALL NULLIF ( + COALESCE ( 68, + 48 ), - 45 ) + - + 51 AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6506
SELECT CASE - - 43 WHEN 37 - - 40 THEN + + 30 WHEN - 60 THEN - COUNT( * ) DIV 87 * COUNT( * ) ELSE + - 50 DIV CASE - 39 WHEN 23 * + 8 * - COUNT( * ) + - 90 - - - 34 THEN + COUNT( * ) * - + 78 ELSE 8 END END + + 82
----
76

skipif mysql # not compatible
query I rowsort label-6506
SELECT CASE - - 43 WHEN 37 - - 40 THEN + + 30 WHEN - 60 THEN - COUNT ( * ) / 87 * COUNT ( * ) ELSE + - 50 / CASE - 39 WHEN 23 * + 8 * - COUNT ( * ) + - 90 - - - 34 THEN + COUNT ( * ) * - + 78 ELSE 8 END END + + 82
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL + NULLIF ( - 24, - NULLIF ( 25, 88 + - + COUNT( * ) ) * 88 ) * + 4 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL + NULLIF ( - 24, - NULLIF ( 25, 88 + - + COUNT ( * ) ) * 88 ) * + 4 AS col0
----
-96

query I rowsort
SELECT 13 + + 3 * + 36
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT DISTINCT + 5 * 87 DIV 70
----
6

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT + 5 * 87 / 70
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6510
SELECT DISTINCT + 33 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT + 33 / 67
----
0

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

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

query I rowsort
SELECT - 41 + - + 69 + - 46 col1
----
-156

query I rowsort
SELECT DISTINCT + COALESCE ( + 69, - ( - + 8 ), + 8 ) * + - 24 * + 33 * + 29
----
-1584792

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT ALL + ( + + COALESCE ( + 14, - 26 * CAST( - - ( 52 ) AS SIGNED ), + 55 + - - CAST( NULL AS SIGNED ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL + ( + + COALESCE ( + 14, - 26 * CAST ( - - ( 52 ) AS INTEGER ), + 55 + - - CAST ( NULL AS INTEGER ) ) )
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT NULLIF ( - - MIN( 79 ), - 62 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6517
SELECT NULLIF ( - - MIN ( 79 ), - 62 ) AS col0
----
79

query I rowsort
SELECT - 98 * + - 98 AS col0
----
9604

query I rowsort
SELECT - - 47 * 30 + - 59
----
1351

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT + NULLIF ( + 59, 59 ) / COUNT( * ) * ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT + NULLIF ( + 59, 59 ) / COUNT ( * ) * ( + COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT DISTINCT 0 * + 55 DIV + 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT 0 * + 55 / + 19 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT ALL 12 * - + 34 + - 50 * + 31 / + + COUNT( * ) + 30 * CASE + 70 WHEN - - 23 * + ( + 55 ) * - 31 THEN - CAST( NULL AS SIGNED ) ELSE + COUNT( * ) / - CASE WHEN NOT - 3 NOT BETWEEN + AVG ( DISTINCT 46 ) AND NULL THEN NULL WHEN NOT NULL BETWEEN NULL AND NULL THEN - 30 * 10 + 40 * - 98 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL 12 * - + 34 + - 50 * + 31 / + + COUNT ( * ) + 30 * CASE + 70 WHEN - - 23 * + ( + 55 ) * - 31 THEN - CAST ( NULL AS INTEGER ) ELSE + COUNT ( * ) / - CASE WHEN NOT - 3 NOT BETWEEN + AVG ( DISTINCT 46 ) AND NULL THEN NULL WHEN NOT NULL BETWEEN NULL AND NULL THEN - 30 * 10 + 40 * - 98 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT + COUNT( * ) * + 25 * - COUNT( * ) + + 48 + - 83 + + - 77
----
-137

skipif mysql # not compatible
query I rowsort label-6524
SELECT + COUNT ( * ) * + 25 * - COUNT ( * ) + + 48 + - 83 + + - 77
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-6525
SELECT ALL - 92 DIV ( + 9 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL - 92 / ( + 9 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT + 88 + - MIN( + 8 )
----
80

skipif mysql # not compatible
query I rowsort label-6526
SELECT + 88 + - MIN ( + 8 )
----
80

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6528
SELECT + SUM( DISTINCT 66 ) AS col0, - ( + MIN( - - 48 ) ) - - + 42 * + 72 + - 47
----
66
2929

skipif mysql # not compatible
query II rowsort label-6528
SELECT + SUM ( DISTINCT 66 ) AS col0, - ( + MIN ( - - 48 ) ) - - + 42 * + 72 + - 47
----
66
2929

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT DISTINCT SUM( ALL + ( + + 41 ) ) * + 87 + - + 65
----
3502

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT SUM ( ALL + ( + + 41 ) ) * + 87 + - + 65
----
3502

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL + 30 * - 12 + - COUNT( * ) AS col2
----
-361

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL + 30 * - 12 + - COUNT ( * ) AS col2
----
-361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6531
SELECT ALL + ( - - COALESCE ( 99, - + CASE 18 WHEN NULLIF ( + 26, + - 60 ) THEN + CAST( - ( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) + 47 * ( + MAX( + 46 ) ) WHEN + 27 THEN 75 WHEN + - 99 THEN NULL END, 17 * + COUNT( * ) ) )
----
99

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL + ( - - COALESCE ( 99, - + CASE 18 WHEN NULLIF ( + 26, + - 60 ) THEN + CAST ( - ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + 47 * ( + MAX ( + 46 ) ) WHEN + 27 THEN 75 WHEN + - 99 THEN NULL END, 17 * + COUNT ( * ) ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT - - NULLIF ( + COUNT( + - 26 ), SUM( + + 52 ) ) * + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6532
SELECT - - NULLIF ( + COUNT ( + - 26 ), SUM ( + + 52 ) ) * + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( - - 17, 63 * - + 49 + + 70 + - - 69 + - + 92 ) + 24 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT + CASE 1 WHEN - MIN( - 58 ) THEN - + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT + CASE 1 WHEN - MIN ( - 58 ) THEN - + 62 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 85 + + 2 col0
----
-83

query I rowsort
SELECT + 13 + 2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT + 7 * + COUNT( * ) col1
----
7

skipif mysql # not compatible
query I rowsort label-6537
SELECT + 7 * + COUNT ( * ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - NULLIF ( - COUNT( 6 ), 61 )
----
1

skipif mysql # not compatible
query I rowsort label-6538
SELECT - NULLIF ( - COUNT ( 6 ), 61 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6539
SELECT - 1 + - - NULLIF ( 9, - NULLIF ( - 90, 29 * - MAX( ALL - 28 ) ) * - 66 * 52 ) DIV - - ( - COUNT( * ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6539
SELECT - 1 + - - NULLIF ( 9, - NULLIF ( - 90, 29 * - MAX ( ALL - 28 ) ) * - 66 * 52 ) / - - ( - COUNT ( * ) ) AS col0
----
-10

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

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

query I rowsort
SELECT ALL 65 * + - 92 AS col1
----
-5980

query I rowsort
SELECT ALL 83 * - COALESCE ( - 10, - 36 + 14, + - 11 + 52 ) AS col1
----
830

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

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

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

skipif mysql # not compatible
query I rowsort label-6544
SELECT + 24 / COUNT ( * ) col0
----
24

query I rowsort
SELECT ALL 29 * - + 22 AS col1
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT DISTINCT CASE - + 75 WHEN + 10 - + + ( ( - - MAX( ALL + 69 ) ) ) + + - ( + - 40 ) + + 47 * 91 THEN NULL WHEN - - 30 + - COUNT( * ) + - COUNT( * ) - COUNT( * ) THEN + 18 END * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT CASE - + 75 WHEN + 10 - + + ( ( - - MAX ( ALL + 69 ) ) ) + + - ( + - 40 ) + + 47 * 91 THEN NULL WHEN - - 30 + - COUNT ( * ) + - COUNT ( * ) - COUNT ( * ) THEN + 18 END * + 33
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 35, 17 - + 40 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6548
SELECT 12, + CAST( + 73 AS SIGNED ) AS col1
----
12
73

skipif mysql # not compatible
query II rowsort label-6548
SELECT 12, + CAST ( + 73 AS INTEGER ) AS col1
----
12
73

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6550
SELECT CAST( NULL AS SIGNED ), 6 * + 70 col1
----
NULL
420

skipif mysql # not compatible
query II rowsort label-6550
SELECT CAST ( NULL AS INTEGER ), 6 * + 70 col1
----
NULL
420

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - CASE + - 73 WHEN + COUNT( * ) * + 47 + - 13 THEN COUNT( * ) + - COUNT( * ) ELSE - 42 * - NULLIF ( + CASE 62 WHEN ( + ( + 16 ) ) THEN + NULLIF ( 79, - + 97 ) END, + 27 ) - - ( - + 67 ) + SUM( - 45 ) END * - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT - CASE + - 73 WHEN + COUNT ( * ) * + 47 + - 13 THEN COUNT ( * ) + - COUNT ( * ) ELSE - 42 * - NULLIF ( + CASE 62 WHEN ( + ( + 16 ) ) THEN + NULLIF ( 79, - + 97 ) END, + 27 ) - - ( - + 67 ) + SUM ( - 45 ) END * - 54 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6552
SELECT DISTINCT 42 / + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - 87 + + 80 * 5 AS col1, 54 AS col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-6552
SELECT DISTINCT 42 / + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 87 + + 80 * 5 AS col1, 54 AS col1
----
NULL
54

query II rowsort
SELECT ALL + 18 AS col2, 3 AS col1
----
18
3

query I rowsort
SELECT - 75 - - 6
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT - NULLIF ( - + NULLIF ( - COUNT( * ), CASE - 78 WHEN 44 THEN + MAX( - 25 ) WHEN - - 7 THEN NULL END ), - - COUNT( * ) * 67 + + 46 + - 50 * + COUNT( + - 0 ) ) * - 40 * + + 85
----
3400

skipif mysql # not compatible
query I rowsort label-6555
SELECT - NULLIF ( - + NULLIF ( - COUNT ( * ), CASE - 78 WHEN 44 THEN + MAX ( - 25 ) WHEN - - 7 THEN NULL END ), - - COUNT ( * ) * 67 + + 46 + - 50 * + COUNT ( + - 0 ) ) * - 40 * + + 85
----
3400

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT + COUNT( DISTINCT 62 ) * - + 46 * 83 + - - 94 + - + 78 * 62
----
-8560

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + COUNT ( DISTINCT 62 ) * - + 46 * 83 + - - 94 + - + 78 * 62
----
-8560

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

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

query I rowsort
SELECT - + 69 * + + ( - + 99 ) * - - 37
----
252747

query II rowsort
SELECT + + 63 AS col1, - 94 * + + 12 * - 22 - 53 AS col2
----
63
24763

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT NULLIF ( + COUNT( * ), 12 * - + 11 + - + 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6562
SELECT NULLIF ( + COUNT ( * ), 12 * - + 11 + - + 68 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 25 * - - 57 + 1 AS col1
----
-1424

query II rowsort
SELECT + - 9 col0, 40
----
-9
40

query I rowsort
SELECT ALL - 82 * - 12 * - - ( - - 58 ) * + - ( + 90 ) + + + 7 * + + 62 + - - 97 + 63 * 4 * - 19 col2
----
-5140737

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT - 88 + - 15 - + COUNT( * ) + ( + 39 ) + - 37 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-6566
SELECT - 88 + - 15 - + COUNT ( * ) + ( + 39 ) + - 37 AS col2
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-6567
SELECT DISTINCT - 86 DIV + - 47 + 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT - 86 / + - 47 + 33 AS col1
----
34

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

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

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

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

query I rowsort
SELECT DISTINCT + 95 * - 89
----
-8455

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT + MIN( DISTINCT - - 0 ) * + 90 * - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6571
SELECT + MIN ( DISTINCT - - 0 ) * + 90 * - 88 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT + 60 + + + 75 DIV - 42 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 60 + + + 75 / - 42 AS col2
----
59

query I rowsort
SELECT - NULLIF ( + 78, - 7 + + - 90 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6574
SELECT MIN( + CAST( NULL AS SIGNED ) ) AS col0, 15
----
NULL
15

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

query II rowsort
SELECT ALL 48 AS col1, 18 * - 92 * + 97 - 1 + + 45 * 82 AS col0
----
48
-156943

query II rowsort
SELECT + 48 * - 55 AS col1, 42 - - - 46
----
-2640
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6577
SELECT - 3, + COUNT( * ) DIV + 67 AS col2
----
-3
0

skipif mysql # not compatible
query II rowsort label-6577
SELECT - 3, + COUNT ( * ) / + 67 AS col2
----
-3
0

query II rowsort
SELECT 65 AS col2, + ( 21 )
----
65
21

query I rowsort
SELECT ALL 12 * + 97
----
1164

query I rowsort
SELECT 48 * 16
----
768

query II rowsort
SELECT ALL 13 AS col2, - NULLIF ( - 20, 57 )
----
13
20

query I rowsort
SELECT ALL 29 * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT DISTINCT 41 DIV - + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT 41 / - + 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT 89, 54 * + - COUNT( * ) AS col2
----
89
-54

skipif mysql # not compatible
query II rowsort label-6584
SELECT 89, 54 * + - COUNT ( * ) AS col2
----
89
-54

query II rowsort
SELECT ALL 76 * + 40 AS col2, - 96
----
3040
-96

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

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

query II rowsort
SELECT - 78, + 7 col0
----
-78
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6588
SELECT - 32 AS col0, + MAX( + 87 ) * + + 59 + - - 24
----
-32
5157

skipif mysql # not compatible
query II rowsort label-6588
SELECT - 32 AS col0, + MAX ( + 87 ) * + + 59 + - - 24
----
-32
5157

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ALL COUNT( * ) + - + NULLIF ( 49, - + 36 * - - COUNT( * ) + + 85 + - ( - 77 ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL COUNT ( * ) + - + NULLIF ( 49, - + 36 * - - COUNT ( * ) + + 85 + - ( - 77 ) ) AS col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6590
SELECT MIN( ALL 5 ) DIV + 1 + + 74 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6590
SELECT MIN ( ALL 5 ) / + 1 + + 74 AS col1
----
79

query I rowsort
SELECT ALL + 45 + + - 57 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT MIN( 62 ) + 93 AS col0
----
155

skipif mysql # not compatible
query I rowsort label-6592
SELECT MIN ( 62 ) + 93 AS col0
----
155

query I rowsort
SELECT ALL + 34 + + 68 AS col2
----
102

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL - - SUM( + CASE 70 WHEN + COALESCE ( - 83, - CAST( NULL AS SIGNED ) * 55 ) * + + 49 THEN + 7 + ( - 30 ) - ( - 19 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL - - SUM ( + CASE 70 WHEN + COALESCE ( - 83, - CAST ( NULL AS INTEGER ) * 55 ) * + + 49 THEN + 7 + ( - 30 ) - ( - 19 ) END )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL - - 53 + CAST ( + + 75 AS INTEGER )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT - 59 * 17 + + + COALESCE ( + 96, 89, + + COUNT( * ) )
----
-907

skipif mysql # not compatible
query I rowsort label-6598
SELECT - 59 * 17 + + + COALESCE ( + 96, 89, + + COUNT ( * ) )
----
-907

query I rowsort
SELECT ALL - - 78 * 49 AS col0
----
3822

query I rowsort
SELECT ALL - 57 - - 91
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT + 95 * 65 + + COUNT( * )
----
6176

skipif mysql # not compatible
query I rowsort label-6601
SELECT + 95 * 65 + + COUNT ( * )
----
6176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6602
SELECT 68 AS col2, ( + ( - - 18 ) ) * - + 58 + + CAST( NULL AS SIGNED ) * + 57 + + 52 + - 96 - COUNT( * ) AS col1
----
68
NULL

skipif mysql # not compatible
query II rowsort label-6602
SELECT 68 AS col2, ( + ( - - 18 ) ) * - + 58 + + CAST ( NULL AS INTEGER ) * + 57 + + 52 + - 96 - COUNT ( * ) AS col1
----
68
NULL

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

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL - + COUNT ( DISTINCT 18 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL + - MIN( ALL 99 ) - + 93
----
-192

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL + - MIN ( ALL 99 ) - + 93
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6605
SELECT 93 DIV 62 * + NULLIF ( 61, + - 30 + COALESCE ( + COUNT( * ), + COALESCE ( - - 79, + 66 ), + + ( + - CAST( - 53 AS SIGNED ) ) * + - 20 ) - + 61 * 62 ) * 96 - + - 23
----
5879

skipif mysql # not compatible
query I rowsort label-6605
SELECT 93 / 62 * + NULLIF ( 61, + - 30 + COALESCE ( + COUNT ( * ), + COALESCE ( - - 79, + 66 ), + + ( + - CAST ( - 53 AS INTEGER ) ) * + - 20 ) - + 61 * 62 ) * 96 - + - 23
----
5879

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6607
SELECT ALL - MAX( ALL + 9 ) DIV COALESCE ( CAST( NULL AS SIGNED ), + 57 ) AS col1, + MIN( DISTINCT - NULLIF ( 39, - 65 ) ) * + 76 * SUM( + 10 ) - + + 92
----
0
-29732

skipif mysql # not compatible
query II rowsort label-6607
SELECT ALL - MAX ( ALL + 9 ) / COALESCE ( CAST ( NULL AS INTEGER ), + 57 ) AS col1, + MIN ( DISTINCT - NULLIF ( 39, - 65 ) ) * + 76 * SUM ( + 10 ) - + + 92
----
0
-29732

onlyif mysql # DIV for integer division: 
query I rowsort label-6608
SELECT 22 DIV - 88 * - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6608
SELECT 22 / - 88 * - 21 AS col0
----
0

query I rowsort
SELECT 38 + - - 99
----
137

query I rowsort
SELECT 57 * - + 47
----
-2679

query I rowsort
SELECT 64 + 6 + + - 32
----
38

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

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + 20 + - + 70 - - COUNT ( * ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT 83 + + + 41 * + CASE + 39 WHEN 22 - 18 THEN NULL WHEN - + 50 THEN + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT 83 + + + 41 * + CASE + 39 WHEN 22 - 18 THEN NULL WHEN - + 50 THEN + - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 70 + 68 * + + 34 AS col1
----
2382

query I rowsort
SELECT ALL 28 + - 62 AS col1
----
-34

query I rowsort
SELECT 73 * ( - + 89 ) AS col0
----
-6497

query II rowsort
SELECT ALL - 57 + - 67 + 87, + ( + 97 ) AS col1
----
-37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT - COUNT( DISTINCT + + CASE + 3 WHEN - + 91 THEN NULL WHEN + - ( 67 ) * - 56 * 96 THEN - 32 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT - COUNT ( DISTINCT + + CASE + 3 WHEN - + 91 THEN NULL WHEN + - ( 67 ) * - 56 * 96 THEN - 32 END ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT ALL ( + 95 ) + - 49 + 9 * 28 DIV + - COALESCE ( - - 27, + 67 DIV + + 12 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL ( + 95 ) + - 49 + 9 * 28 / + - COALESCE ( - - 27, + 67 / + + 12 ) AS col1
----
37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6621
SELECT - 7 DIV - SUM( DISTINCT + + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT - 7 / - SUM ( DISTINCT + + 77 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6622
SELECT - 77 * 89 + - 62 + + - 62 + + - 51 + + SUM( 50 ) DIV 36 * 4
----
-7024

skipif mysql # not compatible
query I rowsort label-6622
SELECT - 77 * 89 + - 62 + + - 62 + + - 51 + + SUM ( 50 ) / 36 * 4
----
-7024

query I rowsort
SELECT DISTINCT + 80 * - - 16 AS col0
----
1280

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6625
SELECT + COUNT( * ) - + 11 AS col0, - 44 * - COUNT( DISTINCT + - 85 ) DIV + + 91
----
-10
0

skipif mysql # not compatible
query II rowsort label-6625
SELECT + COUNT ( * ) - + 11 AS col0, - 44 * - COUNT ( DISTINCT + - 85 ) / + + 91
----
-10
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT 22 * COUNT( * ) - - COUNT( * ) * - 5
----
17

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT 22 * COUNT ( * ) - - COUNT ( * ) * - 5
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL - 52 * CASE + + 47 WHEN ( - 11 ) THEN NULL ELSE COUNT( * ) END - + + COALESCE ( - 33, + - 9 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - 52 * CASE + + 47 WHEN ( - 11 ) THEN NULL ELSE COUNT ( * ) END - + + COALESCE ( - 33, + - 9 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT + COALESCE ( - 59, - 38 + + + CASE + 6 WHEN 18 * - COALESCE ( - 91, + 91 ) / + 7 THEN - COUNT( - + 28 ) ELSE NULL END ) * - 39 AS col1
----
2301

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT + COALESCE ( - 59, - 38 + + + CASE + 6 WHEN 18 * - COALESCE ( - 91, + 91 ) / + 7 THEN - COUNT ( - + 28 ) ELSE NULL END ) * - 39 AS col1
----
2301

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT - 23 + - 29 col0, + MIN( ALL 98 ) * - 74
----
-52
-7252

skipif mysql # not compatible
query II rowsort label-6630
SELECT - 23 + - 29 col0, + MIN ( ALL 98 ) * - 74
----
-52
-7252

query I rowsort
SELECT - 93 * + 72
----
-6696

query I rowsort
SELECT ALL - - CASE 44 WHEN - AVG ( - ( - 11 ) ) THEN + 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ( + + 64 ) * + MAX( + + 20 )
----
1280

skipif mysql # not compatible
query I rowsort label-6633
SELECT ( + + 64 ) * + MAX ( + + 20 )
----
1280

onlyif mysql # aggregate syntax: 
query II rowsort label-6634
SELECT + MIN( + 70 ) AS col0, + 31 * + 7 * + 78 + MAX( - 0 ) * MAX( - - 82 ) - + MIN( - 45 )
----
70
16971

skipif mysql # not compatible
query II rowsort label-6634
SELECT + MIN ( + 70 ) AS col0, + 31 * + 7 * + 78 + MAX ( - 0 ) * MAX ( - - 82 ) - + MIN ( - 45 )
----
70
16971

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

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

query I rowsort
SELECT ALL - 60 * CASE 39 WHEN 24 + + + 41 + + - 31 * - 41 * + + 78 * 43 + - + 11 THEN NULL WHEN 60 THEN NULL ELSE + 85 END
----
-5100

query I rowsort
SELECT - 42 * - 18 AS col2
----
756

query I rowsort
SELECT ALL + 61 * 93 AS col0
----
5673

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT + 6 * - COALESCE ( NULLIF ( + ( CASE - - 86 WHEN + - 86 THEN 67 + 21 - - 26 ELSE 2 END ), + 44 * ( - 14 ) + COUNT( * ) + + 65 + + - 18 ), 70 + + 21 + + + 84 * 25 ) * - 16 + 10
----
202

skipif mysql # not compatible
query I rowsort label-6639
SELECT + 6 * - COALESCE ( NULLIF ( + ( CASE - - 86 WHEN + - 86 THEN 67 + 21 - - 26 ELSE 2 END ), + 44 * ( - 14 ) + COUNT ( * ) + + 65 + + - 18 ), 70 + + 21 + + + 84 * 25 ) * - 16 + 10
----
202

query II rowsort
SELECT 28, + 9 AS col1
----
28
9

query I rowsort
SELECT DISTINCT + 43 + + 66 col0
----
109

query I rowsort
SELECT ALL - 70 + + - 35 * - + 38 * - + 40
----
-53270

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

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

query I rowsort
SELECT - 52 + - 67 AS col1
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT DISTINCT - ( - - 80 ) + - 86 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT - ( - - 80 ) + - 86 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 98 * - 85
----
-8330

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT DISTINCT + 16 DIV - + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT + 16 / - + 22 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6648
SELECT - CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) * - + CASE + 16 WHEN + COUNT( * ) THEN - 84 * - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6648
SELECT - CAST ( - CAST ( NULL AS REAL ) AS REAL ) * - + CASE + 16 WHEN + COUNT ( * ) THEN - 84 * - 54 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT - + 31 - - 71 + - COUNT( * ) * 29 + - COUNT( * ) + 70 * - + 26 + - 67 + + 44 AS col2
----
-1833

skipif mysql # not compatible
query I rowsort label-6650
SELECT - + 31 - - 71 + - COUNT ( * ) * 29 + - COUNT ( * ) + 70 * - + 26 + - 67 + + 44 AS col2
----
-1833

onlyif mysql # aggregate syntax: 
query II rowsort label-6651
SELECT COUNT( * ), 39 * + MAX( ALL 77 ) AS col2
----
1
3003

skipif mysql # not compatible
query II rowsort label-6651
SELECT COUNT ( * ), 39 * + MAX ( ALL 77 ) AS col2
----
1
3003

query I rowsort
SELECT ALL - - 61 - + + 93
----
-32

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT - 27 + CASE + 89 WHEN COALESCE ( 7, - + 23 ) THEN + 11 * + + 37 WHEN - 89 THEN NULL ELSE - CAST( NULL AS SIGNED ) + - 9 - - + 45 END * + + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT - 27 + CASE + 89 WHEN COALESCE ( 7, - + 23 ) THEN + 11 * + + 37 WHEN - 89 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + - 9 - - + 45 END * + + 54 AS col0
----
NULL

query I rowsort
SELECT - - 12 * - 93 AS col1
----
-1116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6656
SELECT + - CAST( + AVG ( + ( - NULLIF ( + - 61, - - 20 ) ) ) AS SIGNED ) DIV + COUNT( * ) + - 68 DIV - 23 + 3 + NULLIF ( - 76, 97 ) col1
----
-132

skipif mysql # not compatible
query I rowsort label-6656
SELECT + - CAST ( + AVG ( + ( - NULLIF ( + - 61, - - 20 ) ) ) AS INTEGER ) / + COUNT ( * ) + - 68 / - 23 + 3 + NULLIF ( - 76, 97 ) col1
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6657
SELECT ALL 69 DIV - 14 - COUNT( DISTINCT + + 52 )
----
-5

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL 69 / - 14 - COUNT ( DISTINCT + + 52 )
----
-5

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6660
SELECT DISTINCT 56 DIV + CAST( 19 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT 56 / + CAST ( 19 AS INTEGER ) AS col0
----
2

query I rowsort
SELECT + + ( - 1 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6662
SELECT + - 80 + ( CAST( NULL AS SIGNED ) ), - 60 AS col1
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-6662
SELECT + - 80 + ( CAST ( NULL AS INTEGER ) ), - 60 AS col1
----
NULL
-60

query I rowsort
SELECT ALL - 75 * - - 74 * 62
----
-344100

query I rowsort
SELECT + + 5 + + ( 20 )
----
25

query I rowsort
SELECT ALL ( + 95 ) * - - 47
----
4465

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

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

query I rowsort
SELECT ALL - ( + 73 ) * + + 39 + - 39 + 98 * 35 + - + 50 + + 95 AS col0
----
589

query I rowsort
SELECT - 83 * + - 24 + 41 AS col2
----
2033

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT - COUNT( + - 81 ) + 85 * + 79
----
6714

skipif mysql # not compatible
query I rowsort label-6670
SELECT - COUNT ( + - 81 ) + 85 * + 79
----
6714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6671
SELECT DISTINCT COALESCE ( 93, - 17 * + + 11 * 25 - - - 75 * - 2, CASE - - 36 WHEN - 99 THEN + + 77 WHEN - 16 * 66 + - 5 THEN 25 * 77 * - 85 + + + 6 + NULLIF ( + 51, - 14 ) * - - 27 * + - 43 + + ( MIN( DISTINCT + 2 ) ) END - - 70, 69 * + 43 ) * MIN( DISTINCT + 65 ) + + NULLIF ( + 1, 17 * CAST( NULL AS DECIMAL ) )
----
6046

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT COALESCE ( 93, - 17 * + + 11 * 25 - - - 75 * - 2, CASE - - 36 WHEN - 99 THEN + + 77 WHEN - 16 * 66 + - 5 THEN 25 * 77 * - 85 + + + 6 + NULLIF ( + 51, - 14 ) * - - 27 * + - 43 + + ( MIN ( DISTINCT + 2 ) ) END - - 70, 69 * + 43 ) * MIN ( DISTINCT + 65 ) + + NULLIF ( + 1, 17 * CAST ( NULL AS REAL ) )
----
6046

query I rowsort
SELECT ALL - ( 98 ) * - 35 + + - 47 + 82 - + 92
----
3373

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT + COUNT( 43 ) + - + 67
----
-66

skipif mysql # not compatible
query I rowsort label-6674
SELECT + COUNT ( 43 ) + - + 67
----
-66

query I rowsort
SELECT + 29 + 6
----
35

query I rowsort
SELECT ALL 11 * - 76 * - 20
----
16720

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT + COUNT( * ) * + 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6677
SELECT + COUNT ( * ) * + 95 AS col1
----
95

query I rowsort
SELECT - ( - COALESCE ( 42, + - 38 ) ) AS col0
----
42

query I rowsort
SELECT DISTINCT + 12 * - 2 AS col0
----
-24

query I rowsort
SELECT - 57 * 35 col0
----
-1995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT - CAST( 81 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6681
SELECT - CAST ( 81 AS INTEGER ) AS col1
----
-81

query I rowsort
SELECT - 59 + 52
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6683
SELECT ALL + 80 - - 29 - + + ( CASE 74 WHEN + 46 THEN - ( + CAST( NULL AS SIGNED ) ) * + 48 * + 11 + + MAX( 80 ) ELSE + COUNT( * ) END ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL + 80 - - 29 - + + ( CASE 74 WHEN + 46 THEN - ( + CAST ( NULL AS INTEGER ) ) * + 48 * + 11 + + MAX ( 80 ) ELSE + COUNT ( * ) END ) AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT - CASE - 14 WHEN + 76 - + 3 THEN + + 43 ELSE 99 END + - - 62 + + 16 + - COUNT( DISTINCT - 62 ) * - 38
----
17

skipif mysql # not compatible
query I rowsort label-6684
SELECT - CASE - 14 WHEN + 76 - + 3 THEN + + 43 ELSE 99 END + - - 62 + + 16 + - COUNT ( DISTINCT - 62 ) * - 38
----
17

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

skipif mysql # not compatible
query I rowsort label-6685
SELECT - ( CAST ( NULL AS INTEGER ) ) * + 98 * + 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT ALL + NULLIF ( - 73, - + 97 * + + 59 * - 96 * - 63 + + - 44 ) DIV 39 * + 31 * - 74
----
2294

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL + NULLIF ( - 73, - + 97 * + + 59 * - 96 * - 63 + + - 44 ) / 39 * + 31 * - 74
----
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL COALESCE ( - NULLIF ( - 25, 29 ), + + COUNT( * ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL COALESCE ( - NULLIF ( - 25, 29 ), + + COUNT ( * ) ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT - SUM( - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6688
SELECT - SUM ( - 12 ) AS col1
----
12

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6690
SELECT ALL - ( COUNT( + CAST( 46 AS SIGNED ) ) ) * MAX( DISTINCT 14 ) - - ( + CAST( + 62 AS SIGNED ) )
----
48

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - ( COUNT ( + CAST ( 46 AS INTEGER ) ) ) * MAX ( DISTINCT 14 ) - - ( + CAST ( + 62 AS INTEGER ) )
----
48

query I rowsort
SELECT - - 75 * + - 94 * - + NULLIF ( - 70, + 63 * 87 * + ( + + 83 ) + - + ( 64 ) * - 44 )
----
-493500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6692
SELECT - CAST( - 15 AS SIGNED ) AS col2, 37 col2
----
15
37

skipif mysql # not compatible
query II rowsort label-6692
SELECT - CAST ( - 15 AS INTEGER ) AS col2, 37 col2
----
15
37

onlyif mysql # DIV for integer division: 
query II rowsort label-6693
SELECT - + COALESCE ( + 84, 24 DIV - 28 * 40 + 91 + + COALESCE ( - 50, 74 ) ) * + NULLIF ( - 73, ( - 70 ) ) * + + 51 AS col1, COALESCE ( - - 5, 6 * + 56 )
----
312732
5

skipif mysql # not compatible
query II rowsort label-6693
SELECT - + COALESCE ( + 84, 24 / - 28 * 40 + 91 + + COALESCE ( - 50, 74 ) ) * + NULLIF ( - 73, ( - 70 ) ) * + + 51 AS col1, COALESCE ( - - 5, 6 * + 56 )
----
312732
5

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

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

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

query I rowsort
SELECT 78 - + + 2
----
76

query I rowsort
SELECT ALL ( + 75 ) + - 8
----
67

query I rowsort
SELECT - 70 * - 85 - 82 * 29 + - 14 AS col2
----
3558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6699
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN - - 13 * CASE - + AVG ( + 15 ) WHEN ( CAST( NULL AS SIGNED ) ) - + MIN( + 61 ) THEN 74 * ( + 6 ) + 62 WHEN - 67 * - 73 / + MAX( + 86 ) THEN NULL ELSE - 69 * + NULLIF ( + MAX( DISTINCT + ( - 63 ) ), - COUNT( * ) + - 88 ) END + ( - CAST( NULL AS SIGNED ) ) THEN + 43 ELSE 71 END
----
-71

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN - - 13 * CASE - + AVG ( + 15 ) WHEN ( CAST ( NULL AS INTEGER ) ) - + MIN ( + 61 ) THEN 74 * ( + 6 ) + 62 WHEN - 67 * - 73 / + MAX ( + 86 ) THEN NULL ELSE - 69 * + NULLIF ( + MAX ( DISTINCT + ( - 63 ) ), - COUNT ( * ) + - 88 ) END + ( - CAST ( NULL AS INTEGER ) ) THEN + 43 ELSE 71 END
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT 71 * + CAST( 45 AS SIGNED ) + - COALESCE ( - + 70, + - 43 )
----
3265

skipif mysql # not compatible
query I rowsort label-6700
SELECT 71 * + CAST ( 45 AS INTEGER ) + - COALESCE ( - + 70, + - 43 )
----
3265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6701
SELECT DISTINCT + 60 + - + 89 + COUNT( * ) DIV + 98
----
-29

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT + 60 + - + 89 + COUNT ( * ) / + 98
----
-29

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

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL - CAST ( NULL AS REAL ) + + COUNT ( + 57 )
----
NULL

query I rowsort
SELECT 22 + 12 * + 47
----
586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6704
SELECT ( - + 82 ) - - + 26 + CAST( - + ( - 12 ) AS SIGNED ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-6704
SELECT ( - + 82 ) - - + 26 + CAST ( - + ( - 12 ) AS INTEGER ) col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT ALL 77 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL 77 / 94 AS col0
----
0

query I rowsort
SELECT ALL 53 + - 66 - - NULLIF ( 45, - 34 ) AS col2
----
32

query I rowsort
SELECT DISTINCT 71 + - + 59
----
12

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

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT + CAST ( CAST ( + 58 AS INTEGER ) AS INTEGER ) + 43 AS col1
----
101

query II rowsort
SELECT ALL 6 + ( - 16 ) AS col2, - 27 * 0 AS col0
----
-10
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6711
SELECT 82 * CAST( + 38 AS SIGNED )
----
3116

skipif mysql # not compatible
query I rowsort label-6711
SELECT 82 * CAST ( + 38 AS INTEGER )
----
3116

query I rowsort
SELECT 62 * + 42 + - + 54 + + 47 * 75
----
6075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT COUNT( ALL 34 ) + CAST( NULL AS SIGNED ) / 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT COUNT ( ALL 34 ) + CAST ( NULL AS INTEGER ) / 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6714
SELECT 66 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6714
SELECT 66 / - 68 AS col0
----
0

query I rowsort
SELECT 1 + - + 83 col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT CAST( NULL AS SIGNED ) + - 71 / 43 - - AVG ( - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT CAST ( NULL AS INTEGER ) + - 71 / 43 - - AVG ( - 66 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6717
SELECT ( CAST( NULL AS DECIMAL ) ) * 95 + + - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT ( CAST ( NULL AS REAL ) ) * 95 + + - 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT + 96 - - - COUNT( * ) - + - ( + - 7 ) * + - COUNT( * ) * - + 1 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6718
SELECT + 96 - - - COUNT ( * ) - + - ( + - 7 ) * + - COUNT ( * ) * - + 1 AS col1
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6719
SELECT + CAST( NULL AS DECIMAL ) + + - 48 + - 51 + + 53 + 26 * AVG ( - 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT + CAST ( NULL AS REAL ) + + - 48 + - 51 + + 53 + 26 * AVG ( - 74 )
----
NULL

query I rowsort
SELECT COALESCE ( + 1, - 15 ) AS col0
----
1

query I rowsort
SELECT ALL - COALESCE ( + 20, - 53 ) AS col0
----
-20

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6723
SELECT 78 + - MAX( DISTINCT - 32 ) DIV COALESCE ( - 25, 13 + MIN( + 12 ) + - CAST( NULL AS SIGNED ) * + MAX( 8 ) * + AVG ( + + 43 ) ) * + 61 + ( + 36 ) + + ( 17 ) + - + 40 * + + 82
----
-3210

skipif mysql # not compatible
query I rowsort label-6723
SELECT 78 + - MAX ( DISTINCT - 32 ) / COALESCE ( - 25, 13 + MIN ( + 12 ) + - CAST ( NULL AS INTEGER ) * + MAX ( 8 ) * + AVG ( + + 43 ) ) * + 61 + ( + 36 ) + + ( 17 ) + - + 40 * + + 82
----
-3210

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

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

query I rowsort
SELECT 24 + + 62
----
86

query I rowsort
SELECT 68 - - 56 + 14
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT 14 + 85 + + COALESCE ( - 64, - - 5 - + - COALESCE ( 25, - 95 - + CAST( + - 20 AS SIGNED ) + 92 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6727
SELECT 14 + 85 + + COALESCE ( - 64, - - 5 - + - COALESCE ( 25, - 95 - + CAST ( + - 20 AS INTEGER ) + 92 ) ) AS col1
----
35

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

skipif mysql # not compatible
query I rowsort label-6728
SELECT 16 / COUNT ( * ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL - - COUNT( * ) + + 52 * - + 74 AS col1
----
-3847

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - - COUNT ( * ) + + 52 * - + 74 AS col1
----
-3847

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL + MAX( DISTINCT 47 ) + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + MAX ( DISTINCT 47 ) + - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT DISTINCT COALESCE ( - MIN( ALL + 8 ), + 79 ) + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT COALESCE ( - MIN ( ALL + 8 ), + 79 ) + - COUNT ( * )
----
-9

query I rowsort
SELECT ALL - 92 + 13 - + - 60
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6733
SELECT ALL + COUNT( * ) * + MAX( DISTINCT 34 ) DIV - + 2 - + 71 + + 48 + + 80 DIV + + 40, ( + 31 ) * + MIN( + 54 ) + + 69 + - - 31 * - 35 AS col1
----
-38
658

skipif mysql # not compatible
query II rowsort label-6733
SELECT ALL + COUNT ( * ) * + MAX ( DISTINCT 34 ) / - + 2 - + 71 + + 48 + + 80 / + + 40, ( + 31 ) * + MIN ( + 54 ) + + 69 + - - 31 * - 35 AS col1
----
-38
658

query I rowsort
SELECT ALL + 23 + 70 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT 32 DIV + COALESCE ( - 16, - 13 - - 69 * + - 80, - 57 * 28 + + 24 )
----
-2

skipif mysql # not compatible
query I rowsort label-6735
SELECT 32 / + COALESCE ( - 16, - 13 - - 69 * + - 80, - 57 * 28 + + 24 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6736
SELECT NULLIF ( 19, 85 * - 15 * + 57 * + ( + COALESCE ( ( - 38 ), COALESCE ( MIN( ALL + + 69 ), - + COALESCE ( + - 78, - 3 + + + SUM( DISTINCT + 33 ) * + - 64 + + 3 ) * + 66 + + COUNT( * ) ) ) ) - - + 84 - + + 52 * + + 23 * - 71 - - SUM( - 37 ) ) DIV + 67 + + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6736
SELECT NULLIF ( 19, 85 * - 15 * + 57 * + ( + COALESCE ( ( - 38 ), COALESCE ( MIN ( ALL + + 69 ), - + COALESCE ( + - 78, - 3 + + + SUM ( DISTINCT + 33 ) * + - 64 + + 3 ) * + 66 + + COUNT ( * ) ) ) ) - - + 84 - + + 52 * + + 23 * - 71 - - SUM ( - 37 ) ) / + 67 + + 54 AS col1
----
54

query I rowsort
SELECT ALL - 2 * 32
----
-64

query II rowsort
SELECT 14 AS col0, 1
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL - 75 + + - 9 + - COUNT( * ) * - 34 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - 75 + + - 9 + - COUNT ( * ) * - 34 AS col2
----
-50

query II rowsort
SELECT 38 col0, ( + 95 ) col2
----
38
95

query I rowsort
SELECT DISTINCT 58 * + - 37
----
-2146

query I rowsort
SELECT 92 * - 79
----
-7268

query II rowsort
SELECT + 18 col1, 25 + + + 39 + + 68 col1
----
18
132

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

query I rowsort
SELECT DISTINCT - 85 * - 68
----
5780

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

skipif mysql # not compatible
query II rowsort label-6746
SELECT ALL 57 * + + COUNT ( * ), - 83 * + CAST ( NULL AS INTEGER ) col1
----
57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6747
SELECT ALL 81 AS col1, ( CAST( NULL AS SIGNED ) )
----
81
NULL

skipif mysql # not compatible
query II rowsort label-6747
SELECT ALL 81 AS col1, ( CAST ( NULL AS INTEGER ) )
----
81
NULL

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

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

query I rowsort
SELECT ALL - + 62 * + 68 * + + 92
----
-387872

query I rowsort
SELECT 59 * - ( 57 )
----
-3363

query I rowsort
SELECT DISTINCT + COALESCE ( + 27, 12 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6752
SELECT CAST( ( - 77 ) AS SIGNED ) + + 27, COUNT( * ) * - + MIN( ALL - 92 ) * + 68 * 2 - + - 42 * 37 AS col0
----
-50
14066

skipif mysql # not compatible
query II rowsort label-6752
SELECT CAST ( ( - 77 ) AS INTEGER ) + + 27, COUNT ( * ) * - + MIN ( ALL - 92 ) * + 68 * 2 - + - 42 * 37 AS col0
----
-50
14066

query I rowsort
SELECT 93 * - + 50 * + + 20 + 89 + + 2 col1
----
-92909

query II rowsort
SELECT ALL + 95, 50 AS col1
----
95
50

query I rowsort
SELECT + 87 * + 42
----
3654

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT + + 7 * + - CASE 4 WHEN - - COUNT( * ) * - 15 * - - 55 + - + 42 THEN + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT + + 7 * + - CASE 4 WHEN - - COUNT ( * ) * - 15 * - - 55 + - + 42 THEN + 16 END
----
NULL

query I rowsort
SELECT DISTINCT 63 * + + 37 * - 11 AS col0
----
-25641

onlyif mysql # aggregate syntax: 
query II rowsort label-6759
SELECT ALL + 64 AS col0, - 99 * + COUNT( * ) * - COUNT( ALL - 72 ) + - 9 AS col2
----
64
90

skipif mysql # not compatible
query II rowsort label-6759
SELECT ALL + 64 AS col0, - 99 * + COUNT ( * ) * - COUNT ( ALL - 72 ) + - 9 AS col2
----
64
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL COUNT( * ) + - ( + + 6 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL COUNT ( * ) + - ( + + 6 ) col0
----
-5

query II rowsort
SELECT + 94 AS col0, 10 AS col2
----
94
10

query I rowsort
SELECT + 59 * - 76 - + 47 AS col0
----
-4531

query II rowsort
SELECT ALL - 35 * - + 61 AS col2, - 21
----
2135
-21

query I rowsort
SELECT + ( - + 36 ) + 83 AS col2
----
47

query I rowsort
SELECT + 60 * + + 16
----
960

query I rowsort
SELECT ALL 71 * + 77 - 57 AS col2
----
5410

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + NULLIF ( - COALESCE ( - CASE 92 WHEN + 74 + + COUNT( DISTINCT + 26 ) + 52 + 2 THEN + 37 END, + 74, 69 * - 52 ), + COUNT( * ) ) - - 53
----
-21

skipif mysql # not compatible
query I rowsort label-6767
SELECT + NULLIF ( - COALESCE ( - CASE 92 WHEN + 74 + + COUNT ( DISTINCT + 26 ) + 52 + 2 THEN + 37 END, + 74, 69 * - 52 ), + COUNT ( * ) ) - - 53
----
-21

query I rowsort
SELECT ALL + 71 * 25
----
1775

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL COUNT( * ) * - 83 - + 56
----
-139

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL COUNT ( * ) * - 83 - + 56
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT + MIN( + 12 ) + 39 * + 54
----
2118

skipif mysql # not compatible
query I rowsort label-6771
SELECT + MIN ( + 12 ) + 39 * + 54
----
2118

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL + 71 * + + NULLIF ( + 78, + 63 * + - COUNT( * ) + 94 ) AS col0
----
5538

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + 71 * + + NULLIF ( + 78, + 63 * + - COUNT ( * ) + 94 ) AS col0
----
5538

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT + MAX( ALL - 44 ) * + COUNT( * ) - + CASE + COUNT( * ) WHEN + + 41 THEN 90 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT + MAX ( ALL - 44 ) * + COUNT ( * ) - + CASE + COUNT ( * ) WHEN + + 41 THEN 90 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT MAX( - 79 ) * + - ( + - 40 ) + + 0 AS col0
----
-3160

skipif mysql # not compatible
query I rowsort label-6774
SELECT MAX ( - 79 ) * + - ( + - 40 ) + + 0 AS col0
----
-3160

query II rowsort
SELECT - 58 - 33 AS col1, 45 * + 16 AS col2
----
-91
720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT - 51 * + 41 - - - COUNT( DISTINCT 19 ) * - 51 AS col1
----
-2040

skipif mysql # not compatible
query I rowsort label-6777
SELECT - 51 * + 41 - - - COUNT ( DISTINCT 19 ) * - 51 AS col1
----
-2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6778
SELECT - 98 + + COUNT( * ) DIV - 13 + NULLIF ( - - 67, - - CASE COUNT( * ) WHEN + 17 + + + 54 + + 38 DIV - ( + 34 ) * 41 THEN + - 59 WHEN - - NULLIF ( + 83, - COUNT( ALL 2 ) * - 28 + - 11 * + + 60 + - - 49 + + - 96 + 57 DIV - COUNT( * ) * - - 13 * + + 10 ) * - 58 THEN + 35 * 31 ELSE NULL END ) + 78 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6778
SELECT - 98 + + COUNT ( * ) / - 13 + NULLIF ( - - 67, - - CASE COUNT ( * ) WHEN + 17 + + + 54 + + 38 / - ( + 34 ) * 41 THEN + - 59 WHEN - - NULLIF ( + 83, - COUNT ( ALL 2 ) * - 28 + - 11 * + + 60 + - - 49 + + - 96 + 57 / - COUNT ( * ) * - - 13 * + + 10 ) * - 58 THEN + 35 * 31 ELSE NULL END ) + 78 AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT 18 * + - 67 * 70 * + MIN( + 42 ) + + + COUNT( * ) * + - COUNT( * ) DIV + 35 AS col2
----
-3545640

skipif mysql # not compatible
query I rowsort label-6779
SELECT 18 * + - 67 * 70 * + MIN ( + 42 ) + + + COUNT ( * ) * + - COUNT ( * ) / + 35 AS col2
----
-3545640

onlyif mysql # aggregate syntax: 
query II rowsort label-6780
SELECT ALL + - SUM( ALL - 58 ), - 59 + - + 37 + - - 18 AS col1
----
58
-78

skipif mysql # not compatible
query II rowsort label-6780
SELECT ALL + - SUM ( ALL - 58 ), - 59 + - + 37 + - - 18 AS col1
----
58
-78

query I rowsort
SELECT - 5 * - 71
----
355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT 52 * - 61 / + CAST( NULL AS SIGNED ) + + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT 52 * - 61 / + CAST ( NULL AS INTEGER ) + + + 31
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 75, + 31 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT - + MAX( - 96 ) + + - 54
----
42

skipif mysql # not compatible
query I rowsort label-6784
SELECT - + MAX ( - 96 ) + + - 54
----
42

query I rowsort
SELECT - - ( - COALESCE ( 73, + 24 ) ) AS col1
----
-73

query I rowsort
SELECT + 32 + 60 + 25 AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT - - 2 DIV - - 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT - - 2 / - - 70 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6788
SELECT + - 97 * CASE - + 17 WHEN 50 * 71 + + - 99 + + CASE + 69 WHEN - + 76 * + 25 - + MIN( DISTINCT + 27 ) THEN NULL WHEN - - ( - 11 ) / - - 93 THEN - 25 ELSE NULL END THEN NULL WHEN - 27 + - + 40 + AVG ( - 98 ) THEN - AVG ( ALL - 69 ) WHEN 30 * + 9 / - 27 + + 55 * - + 0 THEN NULL ELSE + COUNT( * ) END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT + - 97 * CASE - + 17 WHEN 50 * 71 + + - 99 + + CASE + 69 WHEN - + 76 * + 25 - + MIN ( DISTINCT + 27 ) THEN NULL WHEN - - ( - 11 ) / - - 93 THEN - 25 ELSE NULL END THEN NULL WHEN - 27 + - + 40 + AVG ( - 98 ) THEN - AVG ( ALL - 69 ) WHEN 30 * + 9 / - 27 + + 55 * - + 0 THEN NULL ELSE + COUNT ( * ) END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL + 91 + - COUNT( DISTINCT + + 8 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL + 91 + - COUNT ( DISTINCT + + 8 ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6790
SELECT - CAST( - COUNT( * ) AS SIGNED ) + - - 93 - + 54 - COUNT( * ) + + 17 * - + 43 + - 87 AS col2
----
-779

skipif mysql # not compatible
query I rowsort label-6790
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + - - 93 - + 54 - COUNT ( * ) + + 17 * - + 43 + - 87 AS col2
----
-779

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT DISTINCT - CASE 60 WHEN + + 31 THEN NULL WHEN + COUNT( * ) * 32 THEN + 11 + + 23 ELSE NULL END + + COUNT( * ) * + + ( - 30 ) * + 15 - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT - CASE 60 WHEN + + 31 THEN NULL WHEN + COUNT ( * ) * 32 THEN + 11 + + 23 ELSE NULL END + + COUNT ( * ) * + + ( - 30 ) * + 15 - 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT + CAST( NULL AS SIGNED ) + + COALESCE ( + ( + + 73 ), - 26, 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT + CAST ( NULL AS INTEGER ) + + COALESCE ( + ( + + 73 ), - 26, 38 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 56 + + + 57 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT DISTINCT + COUNT( - ( - 23 ) ) + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT + COUNT ( - ( - 23 ) ) + - 7
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT - + 75 + - NULLIF ( + 58, COUNT( * ) ) * 68 + 29 AS col2
----
-3990

skipif mysql # not compatible
query I rowsort label-6796
SELECT - + 75 + - NULLIF ( + 58, COUNT ( * ) ) * 68 + 29 AS col2
----
-3990

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT + + 70 - - 41 AS col0, COUNT( * )
----
111
1

skipif mysql # not compatible
query II rowsort label-6797
SELECT + + 70 - - 41 AS col0, COUNT ( * )
----
111
1

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

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

query I rowsort
SELECT - COALESCE ( - 50, 54, 43 )
----
50

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

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

query I rowsort
SELECT ( + + 82 ) * + - 71 + - + 4 AS col0
----
-5826

query I rowsort
SELECT ALL 94 * + 39 AS col2
----
3666

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6804
SELECT + COALESCE ( 48, 81, + CAST( - + 7 AS SIGNED ) + - 23 + - ( + ( + 64 ) ) + SUM( DISTINCT 89 ) ), 91 AS col2
----
48
91

skipif mysql # not compatible
query II rowsort label-6804
SELECT + COALESCE ( 48, 81, + CAST ( - + 7 AS INTEGER ) + - 23 + - ( + ( + 64 ) ) + SUM ( DISTINCT 89 ) ), 91 AS col2
----
48
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6805
SELECT + CAST( NULL AS DECIMAL ) AS col1, CAST( + + COALESCE ( + 93, + + 12, - 22 * - 60 + + + 33 / 96 ) AS SIGNED )
----
NULL
93

skipif mysql # not compatible
query II rowsort label-6805
SELECT + CAST ( NULL AS REAL ) AS col1, CAST ( + + COALESCE ( + 93, + + 12, - 22 * - 60 + + + 33 / 96 ) AS INTEGER )
----
NULL
93

query II rowsort
SELECT ALL + 27 AS col1, 17 AS col0
----
27
17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6808
SELECT - 73 / + CAST( NULL AS SIGNED ) / - ( + + 23 ) + - 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT - 73 / + CAST ( NULL AS INTEGER ) / - ( + + 23 ) + - 7 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6809
SELECT DISTINCT + 43 AS col1, 54 + - COUNT( ALL - 32 ) + MIN( DISTINCT + 62 ) * + 66 AS col2
----
43
4145

skipif mysql # not compatible
query II rowsort label-6809
SELECT DISTINCT + 43 AS col1, 54 + - COUNT ( ALL - 32 ) + MIN ( DISTINCT + 62 ) * + 66 AS col2
----
43
4145

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT ALL + 40 DIV + 77 * - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + 40 / + 77 * - 76 AS col1
----
0

query I rowsort
SELECT - 75 * - 32
----
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6812
SELECT + 24 * - 78 + + COUNT( * ) - + CAST( NULL AS SIGNED ) / 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT + 24 * - 78 + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) / 87
----
NULL

query I rowsort
SELECT 74 + + 65
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT - 3 * - ( - ( + 9 ) ) + COUNT( * ) + + 87 col0
----
61

skipif mysql # not compatible
query I rowsort label-6814
SELECT - 3 * - ( - ( + 9 ) ) + COUNT ( * ) + + 87 col0
----
61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6816
SELECT ALL 32 AS col0, + CAST( COUNT( * ) AS SIGNED ) + - 81 * - 77 AS col1
----
32
6238

skipif mysql # not compatible
query II rowsort label-6816
SELECT ALL 32 AS col0, + CAST ( COUNT ( * ) AS INTEGER ) + - 81 * - 77 AS col1
----
32
6238

query I rowsort
SELECT 53 + + 84
----
137

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6818
SELECT DISTINCT - NULLIF ( + 54, 88 * + NULLIF ( 72, + CAST( + 4 AS DECIMAL ) / + 66 + - 64 + - 1 * - 82 + - + 69 + + 42 * - 17 * CAST( + 26 AS DECIMAL ) ) * + 6 / + - 23 ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - NULLIF ( + 54, 88 * + NULLIF ( 72, + CAST ( + 4 AS REAL ) / + 66 + - 64 + - 1 * - 82 + - + 69 + + 42 * - 17 * CAST ( + 26 AS REAL ) ) * + 6 / + - 23 ) col1
----
-54

query I rowsort
SELECT ALL - 60 + - 49 AS col2
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6820
SELECT ALL + - COUNT( * ) + - CAST( - + ( 55 ) AS SIGNED ) + + COUNT( * ) + 94 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + - COUNT ( * ) + - CAST ( - + ( 55 ) AS INTEGER ) + + COUNT ( * ) + 94 AS col1
----
149

query I rowsort
SELECT - + NULLIF ( - 69, - + 76 )
----
69

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

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

query I rowsort
SELECT + 32 * + 71
----
2272

query I rowsort
SELECT ALL - CASE + + 4 WHEN 65 THEN NULL WHEN + + 29 THEN + - 11 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT 68 + 29 + + - COUNT( * ) * - COUNT( * ) * + ( - - 37 ) * - CASE - 79 WHEN 78 THEN NULL WHEN COUNT( * ) THEN + 51 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT 68 + 29 + + - COUNT ( * ) * - COUNT ( * ) * + ( - - 37 ) * - CASE - 79 WHEN 78 THEN NULL WHEN COUNT ( * ) THEN + 51 END AS col2
----
NULL

query I rowsort
SELECT - 55 + + - 88 AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL + + 65 * - - MIN( ALL 61 ) * 27 + - 7 AS col2
----
107048

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + + 65 * - - MIN ( ALL 61 ) * 27 + - 7 AS col2
----
107048

query I rowsort
SELECT - 99 * + 9 * 79 * + 13 * - 3 * + 82
----
225104022

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT ALL 90 col1, 11 * SUM( ALL - - COALESCE ( 5, 29 + 96 * 55 + + + 51 ) ) + + - 58 - MIN( + 96 ) * - 9 + - - COUNT( * )
----
90
862

skipif mysql # not compatible
query II rowsort label-6830
SELECT ALL 90 col1, 11 * SUM ( ALL - - COALESCE ( 5, 29 + 96 * 55 + + + 51 ) ) + + - 58 - MIN ( + 96 ) * - 9 + - - COUNT ( * )
----
90
862

query I rowsort
SELECT DISTINCT - 52 * NULLIF ( + 76, + 2 + - 95 ) * + 59 AS col0
----
-233168

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT COUNT( - 73 ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-6832
SELECT COUNT ( - 73 ) * 75
----
75

query I rowsort
SELECT DISTINCT - 25 * - 78
----
1950

query I rowsort
SELECT 57 - + + 10 * - 72
----
777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT 66 + - + CAST( 41 AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6835
SELECT 66 + - + CAST ( 41 AS INTEGER ) AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT 72 DIV - 26 col2
----
-2

skipif mysql # not compatible
query I rowsort label-6836
SELECT 72 / - 26 col2
----
-2

query I rowsort
SELECT 91 - - 44
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6838
SELECT ALL CASE - + CAST( - 3 AS SIGNED ) WHEN + - 99 THEN - + 44 WHEN - 6 * 32 + - + 34 THEN + 0 END + - 89 + + MIN( + 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL CASE - + CAST ( - 3 AS INTEGER ) WHEN + - 99 THEN - + 44 WHEN - 6 * 32 + - + 34 THEN + 0 END + - 89 + + MIN ( + 49 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6839
SELECT NULLIF ( + + NULLIF ( + COUNT( * ), COUNT( * ) - + 48 * + 24 ), + + CAST( 78 AS SIGNED ) ) * + CASE 60 WHEN - 42 THEN NULL WHEN + - 50 + - 57 + + 19 * 57 * + 53 * - + AVG ( - 31 ) THEN 95 + + - 75 * + 26 END * + 22 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT NULLIF ( + + NULLIF ( + COUNT ( * ), COUNT ( * ) - + 48 * + 24 ), + + CAST ( 78 AS INTEGER ) ) * + CASE 60 WHEN - 42 THEN NULL WHEN + - 50 + - 57 + + 19 * 57 * + 53 * - + AVG ( - 31 ) THEN 95 + + - 75 * + 26 END * + 22 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6840
SELECT 54 DIV + 15 + + - 77
----
-74

skipif mysql # not compatible
query I rowsort label-6840
SELECT 54 / + 15 + + - 77
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6841
SELECT ALL 98 + + COUNT( * ), + 25 * + 80 AS col2
----
99
2000

skipif mysql # not compatible
query II rowsort label-6841
SELECT ALL 98 + + COUNT ( * ), + 25 * + 80 AS col2
----
99
2000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6842
SELECT 57 - - + CASE + 56 WHEN + - COALESCE ( + CAST( NULL AS SIGNED ), - 97 * - - 45 + + 47 * - 98 / + 71 + + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 20 / + + 64 THEN - 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT 57 - - + CASE + 56 WHEN + - COALESCE ( + CAST ( NULL AS INTEGER ), - 97 * - - 45 + + 47 * - 98 / + 71 + + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 20 / + + 64 THEN - 20 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT ALL COUNT( ALL + NULLIF ( - 1, + 73 ) ) + + NULLIF ( 63, + 83 + 67 )
----
64

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL COUNT ( ALL + NULLIF ( - 1, + 73 ) ) + + NULLIF ( 63, + 83 + 67 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6844
SELECT DISTINCT 28 + - + 41 AS col2, COUNT( * ) * + 25 * 59
----
-13
1475

skipif mysql # not compatible
query II rowsort label-6844
SELECT DISTINCT 28 + - + 41 AS col2, COUNT ( * ) * + 25 * 59
----
-13
1475

query I rowsort
SELECT 37 + + + 90 + + 21
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT DISTINCT + - 17 + + CASE - 24 WHEN - + MIN( - 91 ) * - 52 / CASE + + 44 WHEN - + 46 THEN + + 45 + - + 92 WHEN + + 77 * + 20 * 99 THEN 69 - - 17 ELSE NULL END THEN - 80 END + 94 - - + ( 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT + - 17 + + CASE - 24 WHEN - + MIN ( - 91 ) * - 52 / CASE + + 44 WHEN - + 46 THEN + + 45 + - + 92 WHEN + + 77 * + 20 * 99 THEN 69 - - 17 ELSE NULL END THEN - 80 END + 94 - - + ( 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - + 72 * + + 81 * + 67 + - 15 * + COUNT( * ) + + 18 AS col0
----
-390741

skipif mysql # not compatible
query I rowsort label-6847
SELECT - + 72 * + + 81 * + 67 + - 15 * + COUNT ( * ) + + 18 AS col0
----
-390741

query I rowsort
SELECT ALL - COALESCE ( + 50, + 77 )
----
-50

query I rowsort
SELECT DISTINCT - 8 - 45 + - + 77 + + 73 - + - 41 * - 58 - + + 79 * + 36
----
-5279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6850
SELECT 47 + + CASE WHEN NOT + 85 BETWEEN 10 AND ( 39 ) + COUNT( * ) THEN + ( - 98 ) ELSE - ( CASE 44 WHEN - 39 * - + 72 THEN + CASE 61 WHEN + ( + 48 ) + - 6 + 52 + + 84 THEN - 98 DIV 52 END - + 62 + + 66 WHEN + ( + + 51 ) THEN + 58 END ) END AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6850
SELECT 47 + + CASE WHEN NOT + 85 BETWEEN 10 AND ( 39 ) + COUNT ( * ) THEN + ( - 98 ) ELSE - ( CASE 44 WHEN - 39 * - + 72 THEN + CASE 61 WHEN + ( + 48 ) + - 6 + 52 + + 84 THEN - 98 / 52 END - + 62 + + 66 WHEN + ( + + 51 ) THEN + 58 END ) END AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT + 47 DIV - - ( + 55 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6851
SELECT + 47 / - - ( + 55 ) AS col0
----
0

query I rowsort
SELECT 6 * + 97 * 13 AS col0
----
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT 93 + 79 * + SUM( DISTINCT + + 17 ) * + COUNT( ALL + 38 )
----
1436

skipif mysql # not compatible
query I rowsort label-6853
SELECT 93 + 79 * + SUM ( DISTINCT + + 17 ) * + COUNT ( ALL + 38 )
----
1436

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

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

query I rowsort
SELECT - 97 * - 86 AS col1
----
8342

onlyif mysql # aggregate syntax: 
query II rowsort label-6856
SELECT ALL NULLIF ( - + ( - ( + ( 7 ) ) ), - COALESCE ( - + 53, 74 * + - SUM( + - 49 ) ) * - 18 + - 47 * + 8 - + - COUNT( * ) ), 20 col2
----
7
20

skipif mysql # not compatible
query II rowsort label-6856
SELECT ALL NULLIF ( - + ( - ( + ( 7 ) ) ), - COALESCE ( - + 53, 74 * + - SUM ( + - 49 ) ) * - 18 + - 47 * + 8 - + - COUNT ( * ) ), 20 col2
----
7
20

query I rowsort
SELECT 62 + 40 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT ALL - 12 * - - 86 - - CASE + 96 WHEN + 19 THEN NULL ELSE - COUNT( * ) END
----
-1033

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL - 12 * - - 86 - - CASE + 96 WHEN + 19 THEN NULL ELSE - COUNT ( * ) END
----
-1033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT 76 + 91 / + 21 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT 76 + 91 / + 21 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT COUNT( * ) + + 1 - 31 col0
----
-29

skipif mysql # not compatible
query I rowsort label-6860
SELECT COUNT ( * ) + + 1 - 31 col0
----
-29

query I rowsort
SELECT 86 * - - 33
----
2838

query I rowsort
SELECT 92 - - 37 + - 88 * 74
----
-6383

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT 66 + + + NULLIF ( + - 24, - COUNT( DISTINCT - 34 ) ) * - + COUNT( + - 53 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6863
SELECT 66 + + + NULLIF ( + - 24, - COUNT ( DISTINCT - 34 ) ) * - + COUNT ( + - 53 ) AS col0
----
90

query I rowsort
SELECT 76 * - 83 AS col0
----
-6308

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6865
SELECT - 53 AS col0, - COUNT( - - 69 ) DIV 69 * - 9 AS col1
----
-53
0

skipif mysql # not compatible
query II rowsort label-6865
SELECT - 53 AS col0, - COUNT ( - - 69 ) / 69 * - 9 AS col1
----
-53
0

query I rowsort
SELECT ALL + 22 + - 60 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT DISTINCT - 67 + + COUNT( * ) + - + NULLIF ( 70, - 37 ) * COUNT( * ) AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT - 67 + + COUNT ( * ) + - + NULLIF ( 70, - 37 ) * COUNT ( * ) AS col1
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6868
SELECT ALL - ( + COALESCE ( 48, - 60 + 6 + + 23 + - 9 DIV 60 DIV COALESCE ( + - COUNT( * ), CAST( + COUNT( * ) AS SIGNED ), - 77 * + 13 - - 9 ) * - 84 * 23 + - 97 - + - 93 ) ) + 30 + COUNT( * ) - - - 24 * 10
----
-257

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - ( + COALESCE ( 48, - 60 + 6 + + 23 + - 9 / 60 / COALESCE ( + - COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ), - 77 * + 13 - - 9 ) * - 84 * 23 + - 97 - + - 93 ) ) + 30 + COUNT ( * ) - - - 24 * 10
----
-257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6869
SELECT 1 + - - MAX( + 19 ) DIV + + 15 col1
----
2

skipif mysql # not compatible
query I rowsort label-6869
SELECT 1 + - - MAX ( + 19 ) / + + 15 col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6870
SELECT ALL 83 * - 57 + CASE - 30 WHEN 16 - - 47 - - 72 * 0 THEN NULL ELSE 35 DIV - COUNT( * ) END + + 91 AS col1
----
-4675

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL 83 * - 57 + CASE - 30 WHEN 16 - - 47 - - 72 * 0 THEN NULL ELSE 35 / - COUNT ( * ) END + + 91 AS col1
----
-4675

query I rowsort
SELECT DISTINCT - COALESCE ( + 72, 70 * 54 )
----
-72

query I rowsort
SELECT - 76 * - 40 * 54 + + 82
----
164242

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL + CASE 25 WHEN COUNT( * ) THEN + 19 + 85 + - 28 * + 15 * + 8 / 92 END * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + CASE 25 WHEN COUNT ( * ) THEN + 19 + 85 + - 28 * + 15 * + 8 / 92 END * 60 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6874
SELECT ALL + 88 * - + 2 * - 18 * + + COALESCE ( - + 41, + - 82 * + 3 * + COUNT( * ) ) + COUNT( DISTINCT CAST( + - 38 AS SIGNED ) ) AS col0
----
-129887

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL + 88 * - + 2 * - 18 * + + COALESCE ( - + 41, + - 82 * + 3 * + COUNT ( * ) ) + COUNT ( DISTINCT CAST ( + - 38 AS INTEGER ) ) AS col0
----
-129887

query I rowsort
SELECT 91 * + - 28 AS col1
----
-2548

query I rowsort
SELECT - 40 * 34
----
-1360

query I rowsort
SELECT COALESCE ( 17, - + 19 - 73 + 52 - - + 2 * + + NULLIF ( - 62, + - 26 ) * 17 )
----
17

query I rowsort
SELECT - - 15 * + 80 AS col2
----
1200

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

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

query I rowsort
SELECT - 18 * + - ( + 62 ) - + 46 AS col0
----
1070

query I rowsort
SELECT + 87 * + ( + 78 )
----
6786

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT + - 82 + ( - MIN( DISTINCT + - 14 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-6882
SELECT + - 82 + ( - MIN ( DISTINCT + - 14 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ALL 84 * - COUNT( * ) + - 4 * - COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL 84 * - COUNT ( * ) + - 4 * - COUNT ( * ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-6884
SELECT + 54 * COUNT( * ) * - 31, 35 AS col1
----
-1674
35

skipif mysql # not compatible
query II rowsort label-6884
SELECT + 54 * COUNT ( * ) * - 31, 35 AS col1
----
-1674
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6885
SELECT + 56 * - + 36 * + 5 / + CAST( NULL AS DECIMAL ) + + 70 * - ( + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT + 56 * - + 36 * + 5 / + CAST ( NULL AS REAL ) + + 70 * - ( + 92 )
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( + + 54, + 69 + 15 * - 34 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT 41 * - 92 * + MAX( - - 32 ) AS col0
----
-120704

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT 41 * - 92 * + MAX ( - - 32 ) AS col0
----
-120704

onlyif mysql # DIV for integer division: 
query I rowsort label-6888
SELECT + - 63 DIV + + 62
----
-1

skipif mysql # not compatible
query I rowsort label-6888
SELECT + - 63 / + + 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT + + 47 * - + COALESCE ( - - 11, + CASE + 91 WHEN 57 THEN + MIN( ALL - 70 ) END ) AS col2
----
-517

skipif mysql # not compatible
query I rowsort label-6889
SELECT + + 47 * - + COALESCE ( - - 11, + CASE + 91 WHEN 57 THEN + MIN ( ALL - 70 ) END ) AS col2
----
-517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6890
SELECT DISTINCT 29 DIV COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT 29 / COUNT ( * )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6891
SELECT - + 77, - CAST( NULL AS SIGNED ) * 17 AS col0
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-6891
SELECT - + 77, - CAST ( NULL AS INTEGER ) * 17 AS col0
----
-77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT + 17 DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT + 17 / + 36
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6893
SELECT - CASE - 55 WHEN - 21 THEN - MIN( 96 ) ELSE + CAST( 78 AS SIGNED ) END AS col2, 99 AS col1
----
-78
99

skipif mysql # not compatible
query II rowsort label-6893
SELECT - CASE - 55 WHEN - 21 THEN - MIN ( 96 ) ELSE + CAST ( 78 AS INTEGER ) END AS col2, 99 AS col1
----
-78
99

query I rowsort
SELECT - 59 + - - 75
----
16

query I rowsort
SELECT ALL 24 * 16 AS col0
----
384

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

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

query I rowsort
SELECT - 36 * + - 80 AS col1
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT DISTINCT 94 + 41 + 97 * - - COUNT( * ) AS col1
----
232

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT 94 + 41 + 97 * - - COUNT ( * ) AS col1
----
232

query II rowsort
SELECT 87 AS col0, - 5
----
87
-5

query I rowsort
SELECT ALL 29 + - - 7
----
36

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

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

query I rowsort
SELECT + 87 - 17 + - 78 * - 94 AS col0
----
7402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL + MAX( - CAST( - + 96 AS SIGNED ) ) + - ( + - 16 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + MAX ( - CAST ( - + 96 AS INTEGER ) ) + - ( + - 16 ) AS col1
----
112

query I rowsort
SELECT + 40 + - 66 * - 96
----
6376

query I rowsort
SELECT - 46 * + 77 AS col2
----
-3542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6906
SELECT ALL + 27 DIV COUNT( * ) + + + 91 col0
----
118

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + 27 / COUNT ( * ) + + + 91 col0
----
118

query I rowsort
SELECT - 16 + + - 40
----
-56

query I rowsort
SELECT - 10 - 98 * + - 27 * + 20 + + 49
----
52959

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6909
SELECT ALL - - 9 / + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - - 9 / + ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT - COALESCE ( 92, 96 * 16 * + - 17 + - + 24 ) * + + COUNT( * ) + - - 50
----
-42

skipif mysql # not compatible
query I rowsort label-6910
SELECT - COALESCE ( 92, 96 * 16 * + - 17 + - + 24 ) * + + COUNT ( * ) + - - 50
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT - 30 * + + 1 + NULLIF ( - 20, + - AVG ( DISTINCT - - 46 ) * - COUNT( * ) * + + ( + 86 ) - - + 14 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT - 30 * + + 1 + NULLIF ( - 20, + - AVG ( DISTINCT - - 46 ) * - COUNT ( * ) * + + ( + 86 ) - - + 14 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT - COUNT( * ) + - COALESCE ( + ( 49 ), + - COUNT( ALL + - 64 ) * - COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-6912
SELECT - COUNT ( * ) + - COALESCE ( + ( 49 ), + - COUNT ( ALL + - 64 ) * - COUNT ( * ) )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6913
SELECT ALL + 39 * - 0 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL + 39 * - 0 / + 28
----
0

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

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

query I rowsort
SELECT CASE + 45 WHEN + + 45 + 99 THEN + 16 ELSE + - 7 END
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT - 50 * 32 + COUNT( DISTINCT + 14 ) - - + 2 - + 2 * + 43 * + - 87 + + 25 * 89
----
8110

skipif mysql # not compatible
query I rowsort label-6916
SELECT - 50 * 32 + COUNT ( DISTINCT + 14 ) - - + 2 - + 2 * + 43 * + - 87 + + 25 * 89
----
8110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT - + COUNT( * ) * 32 + + - 62
----
-94

skipif mysql # not compatible
query I rowsort label-6918
SELECT - + COUNT ( * ) * 32 + + - 62
----
-94

query I rowsort
SELECT ALL - 78 * + 27 + + 19 col0
----
-2087

query I rowsort
SELECT DISTINCT + ( ( - + 66 ) ) col0
----
-66

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

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

query I rowsort
SELECT 90 * - 5 + 60 AS col1
----
-390

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT - - NULLIF ( 29, + + MIN( DISTINCT 42 ) + + 63 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-6924
SELECT - - NULLIF ( 29, + + MIN ( DISTINCT 42 ) + + 63 ) col0
----
29

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6926
SELECT - - 41 + ( CASE + COUNT( * ) WHEN - + ( + - 12 ) * - 95 THEN AVG ( + 78 ) - + 21 WHEN + 37 + - 73 THEN NULL WHEN + COUNT( ALL + 45 ) * - 99 THEN + - 19 ELSE - COUNT( * ) / + CAST( NULL AS SIGNED ) END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT - - 41 + ( CASE + COUNT ( * ) WHEN - + ( + - 12 ) * - 95 THEN AVG ( + 78 ) - + 21 WHEN + 37 + - 73 THEN NULL WHEN + COUNT ( ALL + 45 ) * - 99 THEN + - 19 ELSE - COUNT ( * ) / + CAST ( NULL AS INTEGER ) END ) col2
----
NULL

query I rowsort
SELECT + 60 * + 96 AS col2
----
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT + 18 + CASE - + MIN( + 3 ) WHEN - COUNT( * ) + + 72 THEN 59 WHEN + CASE 46 WHEN COUNT( * ) THEN - ( - + 43 ) END THEN NULL WHEN 62 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT + 18 + CASE - + MIN ( + 3 ) WHEN - COUNT ( * ) + + 72 THEN 59 WHEN + CASE 46 WHEN COUNT ( * ) THEN - ( - + 43 ) END THEN NULL WHEN 62 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 88 * - + 87 * - - 8 + 73
----
-61175

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT DISTINCT ( - 69 ) * + 64 + NULLIF ( - 84, - + NULLIF ( - COUNT( * ), - 64 / - 98 * - - 26 ) + - ( - 49 ) ) * 63
----
-9708

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT ( - 69 ) * + 64 + NULLIF ( - 84, - + NULLIF ( - COUNT ( * ), - 64 / - 98 * - - 26 ) + - ( - 49 ) ) * 63
----
-9708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT DISTINCT CAST( - AVG ( 53 ) AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT CAST ( - AVG ( 53 ) AS INTEGER )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT ALL - 26 * ( + 77 ) + + 58 * + CAST( + 65 AS SIGNED ) - - ( - + 21 ) + + 3
----
1750

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL - 26 * ( + 77 ) + + 58 * + CAST ( + 65 AS INTEGER ) - - ( - + 21 ) + + 3
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + COUNT( * ) + 10 + - 24 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6933
SELECT + COUNT ( * ) + 10 + - 24 AS col1
----
-13

query I rowsort
SELECT ALL - 49 + + 71 AS col2
----
22

query II rowsort
SELECT + 0 + + - 84 col2, 73 col0
----
-84
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6936
SELECT ALL COUNT( - 71 ) DIV + + MIN( - 29 ) * - MAX( ALL - CAST( ( 54 ) AS SIGNED ) ) - COUNT( * ) + + 68 + + 66 * + 50
----
3367

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL COUNT ( - 71 ) / + + MIN ( - 29 ) * - MAX ( ALL - CAST ( ( 54 ) AS INTEGER ) ) - COUNT ( * ) + + 68 + + 66 * + 50
----
3367

onlyif mysql # aggregate syntax: 
query II rowsort label-6937
SELECT ALL 82 + 20 - - 5 - + 84 * + CASE 63 WHEN - - 49 THEN 83 + COUNT( * ) * AVG ( + 58 ) * + - 8 + + - CASE + 12 WHEN - - 83 / 10 * + 94 THEN - COALESCE ( - + 78, - 83 + - 20 ) END + + 18 + - + 92 * - 69 + - 43 ELSE NULL END / + 13 / - 38 AS col0, 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6937
SELECT ALL 82 + 20 - - 5 - + 84 * + CASE 63 WHEN - - 49 THEN 83 + COUNT ( * ) * AVG ( + 58 ) * + - 8 + + - CASE + 12 WHEN - - 83 / 10 * + 94 THEN - COALESCE ( - + 78, - 83 + - 20 ) END + + 18 + - + 92 * - 69 + - 43 ELSE NULL END / + 13 / - 38 AS col0, 18
----
NULL
18

query I rowsort
SELECT + 94 * 66
----
6204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6939
SELECT 91 + - - COUNT( + 95 ) + 24 DIV - 40 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6939
SELECT 91 + - - COUNT ( + 95 ) + 24 / - 40 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6940
SELECT 27 + + COALESCE ( ( COUNT( * ) ), - CASE + ( - COUNT( * ) ) WHEN + 94 * + + 5 + CASE - COALESCE ( + 60, COALESCE ( - + 12, - 17 + + ( - ( + - COUNT( * ) ) ) * 33 ) * ( + 88 ), - NULLIF ( - + COUNT( * ), ( CASE + COUNT( * ) WHEN + 74 THEN + 42 WHEN - AVG ( - CAST( ( + 70 ) AS SIGNED ) ) * - 8 + 27 THEN NULL END ) * 90 ), - 57 * 91 ) WHEN - COALESCE ( 91, - 9 ) * 58 THEN - 61 * 66 END + 63 / COUNT( - 17 ) - - 2 / - 29 THEN - COUNT( ALL 4 ) + + 3 * - CASE 15 WHEN 84 - CAST( 10 AS DECIMAL ) THEN 58 * - COALESCE ( COUNT( * ), - NULLIF ( 96, 28 ) ) WHEN - COUNT( * ) - - 61 THEN ( - 51 ) END WHEN + 39 + 50 THEN NULL END * + 28 ) * COALESCE ( - 39, 47 + + 91 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6940
SELECT 27 + + COALESCE ( ( COUNT ( * ) ), - CASE + ( - COUNT ( * ) ) WHEN + 94 * + + 5 + CASE - COALESCE ( + 60, COALESCE ( - + 12, - 17 + + ( - ( + - COUNT ( * ) ) ) * 33 ) * ( + 88 ), - NULLIF ( - + COUNT ( * ), ( CASE + COUNT ( * ) WHEN + 74 THEN + 42 WHEN - AVG ( - CAST ( ( + 70 ) AS INTEGER ) ) * - 8 + 27 THEN NULL END ) * 90 ), - 57 * 91 ) WHEN - COALESCE ( 91, - 9 ) * 58 THEN - 61 * 66 END + 63 / COUNT ( - 17 ) - - 2 / - 29 THEN - COUNT ( ALL 4 ) + + 3 * - CASE 15 WHEN 84 - CAST ( 10 AS REAL ) THEN 58 * - COALESCE ( COUNT ( * ), - NULLIF ( 96, 28 ) ) WHEN - COUNT ( * ) - - 61 THEN ( - 51 ) END WHEN + 39 + 50 THEN NULL END * + 28 ) * COALESCE ( - 39, 47 + + 91 ) AS col1
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT COALESCE ( 97, - - 85 + + 73 + - 47 * SUM( DISTINCT 28 ) * + 41, COALESCE ( - ( + - 8 ), - 20 - - + 5 * + COALESCE ( COUNT( DISTINCT - 55 ), - 60 + 96, - 33 ) ) ) * + 97 * - 60 col2
----
-564540

skipif mysql # not compatible
query I rowsort label-6942
SELECT COALESCE ( 97, - - 85 + + 73 + - 47 * SUM ( DISTINCT 28 ) * + 41, COALESCE ( - ( + - 8 ), - 20 - - + 5 * + COALESCE ( COUNT ( DISTINCT - 55 ), - 60 + 96, - 33 ) ) ) * + 97 * - 60 col2
----
-564540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6943
SELECT ( CAST( NULL AS SIGNED ) ) + - + 36 * - 59 + - 98 + 21 + - - 76 + - + 71 + - + 22 - MIN( 39 ) / - 78 + 65 * + + SUM( + 14 ) * - + COUNT( * ) * 64 / + CASE ( + 41 ) WHEN - + 56 THEN + COUNT( * ) * - 86 + + - 15 WHEN - 91 THEN NULL ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT ( CAST ( NULL AS INTEGER ) ) + - + 36 * - 59 + - 98 + 21 + - - 76 + - + 71 + - + 22 - MIN ( 39 ) / - 78 + 65 * + + SUM ( + 14 ) * - + COUNT ( * ) * 64 / + CASE ( + 41 ) WHEN - + 56 THEN + COUNT ( * ) * - 86 + + - 15 WHEN - 91 THEN NULL ELSE NULL END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6944
SELECT ALL COALESCE ( + 72, + - COALESCE ( ( + - 67 ), - 93 + + COUNT( * ) + 68 ) - - + 6 * - 0 + + 20 * - 29, + 74 + + 47 - - 20 + + - 63 DIV 33 + 31 * - 82 * + 4 ) * + + 37 AS col0
----
2664

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL COALESCE ( + 72, + - COALESCE ( ( + - 67 ), - 93 + + COUNT ( * ) + 68 ) - - + 6 * - 0 + + 20 * - 29, + 74 + + 47 - - 20 + + - 63 / 33 + 31 * - 82 * + 4 ) * + + 37 AS col0
----
2664

query I rowsort
SELECT ALL 75 * 72 AS col0
----
5400

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT + 1 * + 92 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT + 1 * + 92 / - 52
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6947
SELECT ALL - + COALESCE ( - COUNT( * ), MAX( DISTINCT - - 59 ) - - 91 DIV COUNT( * ) * - - 35 * 27 + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL - + COALESCE ( - COUNT ( * ), MAX ( DISTINCT - - 59 ) - - 91 / COUNT ( * ) * - - 35 * 27 + 17 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6948
SELECT + 9 * - 84 * + - 16 * - 95 DIV + 5 AS col2, 85 + - 12
----
-229824
73

skipif mysql # not compatible
query II rowsort label-6948
SELECT + 9 * - 84 * + - 16 * - 95 / + 5 AS col2, 85 + - 12
----
-229824
73

query II rowsort
SELECT + 83 + 52 AS col0, + 23
----
135
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6950
SELECT DISTINCT + 58 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT + 58 / + 93
----
0

query I rowsort
SELECT ALL + 36 * 85 + + + 73 AS col0
----
3133

query I rowsort
SELECT ALL + 25 + + 75 * + + 84 * - 96 AS col2
----
-604775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6953
SELECT ALL - + COUNT( * ) + + COUNT( * ) AS col1, CASE CAST( NULL AS SIGNED ) WHEN - CASE + 65 WHEN COUNT( * ) THEN SUM( ALL - 38 ) * - 22 + + 79 + - 79 * - + 0 + + - 73 WHEN + 25 THEN + MIN( DISTINCT - + NULLIF ( - 34, - 58 * - + 13 ) ) WHEN 30 + - 41 THEN NULL END + - CAST( NULL AS SIGNED ) * + 63 + - 96 THEN - 83 + 95 END + + 80 AS col0, 81
----
0
NULL
81

skipif mysql # not compatible
query III rowsort label-6953
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) AS col1, CASE CAST ( NULL AS INTEGER ) WHEN - CASE + 65 WHEN COUNT ( * ) THEN SUM ( ALL - 38 ) * - 22 + + 79 + - 79 * - + 0 + + - 73 WHEN + 25 THEN + MIN ( DISTINCT - + NULLIF ( - 34, - 58 * - + 13 ) ) WHEN 30 + - 41 THEN NULL END + - CAST ( NULL AS INTEGER ) * + 63 + - 96 THEN - 83 + 95 END + + 80 AS col0, 81
----
0
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6954
SELECT + 29 - + CASE - SUM( - 64 ) WHEN + COUNT( * ) * 86 + + 31 THEN - - AVG ( - 39 ) WHEN + 39 THEN - 30 * CAST( 76 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT + 29 - + CASE - SUM ( - 64 ) WHEN + COUNT ( * ) * 86 + + 31 THEN - - AVG ( - 39 ) WHEN + 39 THEN - 30 * CAST ( 76 AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 18, + - 97 + + 75 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6956
SELECT ALL - SUM( ALL + 40 ) AS col0, 67 + - - COALESCE ( - - 80, + 72 ) * - 44
----
-40
-3453

skipif mysql # not compatible
query II rowsort label-6956
SELECT ALL - SUM ( ALL + 40 ) AS col0, 67 + - - COALESCE ( - - 80, + 72 ) * - 44
----
-40
-3453

query I rowsort
SELECT - 8 + + + 86 * 59
----
5066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT ALL - 53 + + 36 - AVG ( DISTINCT 98 ) + + 97 + CAST( NULL AS SIGNED ) * 18 / + + AVG ( 38 ) * 27 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL - 53 + + 36 - AVG ( DISTINCT 98 ) + + 97 + CAST ( NULL AS INTEGER ) * 18 / + + AVG ( 38 ) * 27 + + 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT 92 DIV - 20
----
-4

skipif mysql # not compatible
query I rowsort label-6959
SELECT 92 / - 20
----
-4

query II rowsort
SELECT ALL 40, - 5 + NULLIF ( + - 23, - - 2 * - CASE - 19 WHEN 20 THEN + 76 ELSE NULL END ) AS col0
----
40
-28

query I rowsort
SELECT 1 * - 21
----
-21

query II rowsort
SELECT ALL 95 AS col1, 89 AS col0
----
95
89

query II rowsort
SELECT 47 AS col0, 22
----
47
22

query I rowsort
SELECT DISTINCT - 36 + + + 89 + - - 47
----
100

query I rowsort
SELECT 91 * + - 63
----
-5733

query II rowsort
SELECT - 8, + 24 AS col0
----
-8
24

query I rowsort
SELECT ALL COALESCE ( + 24, - + 86 ) * + 55 * + - 34 + 33 + - 20
----
-44867

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT COUNT( * ) * - 71 col1
----
-71

skipif mysql # not compatible
query I rowsort label-6968
SELECT COUNT ( * ) * - 71 col1
----
-71

query I rowsort
SELECT ALL + 18 * - 12 AS col1
----
-216

query I rowsort
SELECT DISTINCT ( 56 ) - + + 23 + - 93 * - 73
----
6822

query II rowsort
SELECT ALL 21 AS col2, 24 AS col0
----
21
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6972
SELECT DISTINCT COUNT( * ) AS col2, - CASE + 72 WHEN 59 THEN - ( - - 45 ) ELSE + 10 END AS col1
----
1
-10

skipif mysql # not compatible
query II rowsort label-6972
SELECT DISTINCT COUNT ( * ) AS col2, - CASE + 72 WHEN 59 THEN - ( - - 45 ) ELSE + 10 END AS col1
----
1
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT ALL 23 DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL 23 / - + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT 68 * + + MAX( - 1 )
----
-68

skipif mysql # not compatible
query I rowsort label-6974
SELECT 68 * + + MAX ( - 1 )
----
-68

query I rowsort
SELECT + ( - 60 ) + + - 98 + 36 - 54 AS col1
----
-176

query I rowsort
SELECT - 7 * - 44
----
308

query I rowsort
SELECT 29 + - 95
----
-66

query I rowsort
SELECT + 70 * + 67 + + + 22 AS col1
----
4712

query I rowsort
SELECT DISTINCT - 4 * - + 92 + 33
----
401

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

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

query I rowsort
SELECT 98 + - NULLIF ( - 87, 26 - + NULLIF ( - ( + ( 85 ) ), - - ( + - 43 ) - + 43 ) ) col2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL SUM( + - CAST( - 10 AS SIGNED ) ) * + 83 + NULLIF ( + 3, - 77 )
----
833

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL SUM ( + - CAST ( - 10 AS INTEGER ) ) * + 83 + NULLIF ( + 3, - 77 )
----
833

query I rowsort
SELECT 85 + - 81
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT + + COUNT( * ) col1, + COALESCE ( - 94, MAX( ALL 91 ), + + 84 )
----
1
-94

skipif mysql # not compatible
query II rowsort label-6984
SELECT + + COUNT ( * ) col1, + COALESCE ( - 94, MAX ( ALL 91 ), + + 84 )
----
1
-94

query II rowsort
SELECT ALL - - 53, 63 AS col0
----
53
63

query I rowsort
SELECT DISTINCT - 46 + 83 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - MAX( DISTINCT + 15 ) * ( 81 ) - - 12 * + 16 AS col0
----
-1023

skipif mysql # not compatible
query I rowsort label-6987
SELECT - MAX ( DISTINCT + 15 ) * ( 81 ) - - 12 * + 16 AS col0
----
-1023

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6988
SELECT DISTINCT 24 + - 5 + + CAST( NULL AS DECIMAL ) + + 92 + - + 68 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT 24 + - 5 + + CAST ( NULL AS REAL ) + + 92 + - + 68 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL + ( + + 49 ) * + - COUNT( ALL 53 )
----
-49

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + ( + + 49 ) * + - COUNT ( ALL 53 )
----
-49

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT - 70 DIV + 9
----
-7

skipif mysql # not compatible
query I rowsort label-6993
SELECT - 70 / + 9
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT ALL SUM( - 16 ), + 37 * - 86 AS col2
----
-16
-3182

skipif mysql # not compatible
query II rowsort label-6994
SELECT ALL SUM ( - 16 ), + 37 * - 86 AS col2
----
-16
-3182

query I rowsort
SELECT DISTINCT 64 * + + 18
----
1152

query I rowsort
SELECT - 34 + - + ( 55 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL MIN( ALL COALESCE ( 43, + - 58 ) )
----
43

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL MIN ( ALL COALESCE ( 43, + - 58 ) )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6998
SELECT - 72 * + COUNT( * ) * - + NULLIF ( - 0, + + 16 ) + - - COUNT( * ) + - COUNT( * ) + 63 - + COUNT( * ) + - - 26 * + + 12 * + - CAST( 9 AS SIGNED ) col0
----
-2746

skipif mysql # not compatible
query I rowsort label-6998
SELECT - 72 * + COUNT ( * ) * - + NULLIF ( - 0, + + 16 ) + - - COUNT ( * ) + - COUNT ( * ) + 63 - + COUNT ( * ) + - - 26 * + + 12 * + - CAST ( 9 AS INTEGER ) col0
----
-2746

query I rowsort
SELECT ALL - 32 * - - 85
----
-2720

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

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

query I rowsort
SELECT - 57 * + 95 AS col0
----
-5415

query I rowsort
SELECT DISTINCT COALESCE ( - + ( + 97 ), 49 + 12 - + 9 ) AS col2
----
-97

query I rowsort
SELECT + 57 + - + 95 AS col2
----
-38

query II rowsort
SELECT - 82 * - 20, 84 AS col2
----
1640
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7005
SELECT + MIN( - - 48 ) + + - ( + CAST( COUNT( * ) AS SIGNED ) ) * - + COALESCE ( + - 54, - ( - - 12 ) + COALESCE ( - 88, - COUNT( * ), - + 33 ) + + - 32 ) AS col0, - 83 AS col2
----
-6
-83

skipif mysql # not compatible
query II rowsort label-7005
SELECT + MIN ( - - 48 ) + + - ( + CAST ( COUNT ( * ) AS INTEGER ) ) * - + COALESCE ( + - 54, - ( - - 12 ) + COALESCE ( - 88, - COUNT ( * ), - + 33 ) + + - 32 ) AS col0, - 83 AS col2
----
-6
-83

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

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

query I rowsort
SELECT ALL + ( + 32 ) + - 62
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7008
SELECT DISTINCT - - 85 + + + 20 AS col0, + MAX( - COALESCE ( + 77, + ( - 55 ) ) ) - - 31 AS col2
----
105
-46

skipif mysql # not compatible
query II rowsort label-7008
SELECT DISTINCT - - 85 + + + 20 AS col0, + MAX ( - COALESCE ( + 77, + ( - 55 ) ) ) - - 31 AS col2
----
105
-46

query I rowsort
SELECT ALL - COALESCE ( + + 53, 65 ) + 15 - - 87
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + + COUNT( * ) * + 63 * - + 90 AS col2
----
-5670

skipif mysql # not compatible
query I rowsort label-7010
SELECT + + COUNT ( * ) * + 63 * - + 90 AS col2
----
-5670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT + 43 DIV - - 40 + 37 * 24 * + 47 DIV - COUNT( * ) AS col0
----
-41735

skipif mysql # not compatible
query I rowsort label-7011
SELECT + 43 / - - 40 + 37 * 24 * + 47 / - COUNT ( * ) AS col0
----
-41735

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT 42 DIV + + 32 + - CAST( + 6 AS SIGNED ) - + 95 * - 62 col1
----
5885

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT 42 / + + 32 + - CAST ( + 6 AS INTEGER ) - + 95 * - 62 col1
----
5885

onlyif mysql # DIV for integer division: 
query I rowsort label-7013
SELECT ALL - 48 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL - 48 / - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL - + 9 * COUNT( * ) + + 65
----
56

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL - + 9 * COUNT ( * ) + + 65
----
56

query I rowsort
SELECT + ( + 41 ) col0
----
41

query I rowsort
SELECT ALL + + COALESCE ( 86, + - 44 * - 15 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), + 77 * + ( - 7 ), + - 63 ) * 79 * 71 + + - 82 AS col0
----
3023169

skipif mysql # not compatible
query I rowsort label-7017
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), + 77 * + ( - 7 ), + - 63 ) * 79 * 71 + + - 82 AS col0
----
3023169

query I rowsort
SELECT ALL 88 * + - 27 * + - 3 - + 99 AS col1
----
7029

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT CASE - 89 WHEN - 29 THEN + + COUNT( * ) WHEN + + 12 / - + ( - 69 ) THEN + AVG ( ALL - 84 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT CASE - 89 WHEN - 29 THEN + + COUNT ( * ) WHEN + + 12 / - + ( - 69 ) THEN + AVG ( ALL - 84 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT + COALESCE ( 46, - SUM( - 26 ) )
----
46

skipif mysql # not compatible
query I rowsort label-7022
SELECT + COALESCE ( 46, - SUM ( - 26 ) )
----
46

query I rowsort
SELECT - 29 * + 28 * - 11
----
8932

query I rowsort
SELECT CASE 21 WHEN - 26 / - + 84 - + 90 + 66 / - - 78 THEN - 57 * - ( - 63 ) + 35 ELSE + + 9 END AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL + MIN( DISTINCT 26 ) col2
----
26

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL + MIN ( DISTINCT 26 ) col2
----
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7026
SELECT CASE + + NULLIF ( + + 21, + 65 ) WHEN - 24 THEN + - CAST( - + ( - 71 ) AS DECIMAL ) - - - CAST( 69 AS SIGNED ) WHEN - 34 * - + 42 * + - 68 + + CAST( NULL AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7026
SELECT CASE + + NULLIF ( + + 21, + 65 ) WHEN - 24 THEN + - CAST ( - + ( - 71 ) AS REAL ) - - - CAST ( 69 AS INTEGER ) WHEN - 34 * - + 42 * + - 68 + + CAST ( NULL AS INTEGER ) THEN NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7027
SELECT MIN ( + + 2 )
----
2

query I rowsort
SELECT + 93 * 50
----
4650

query II rowsort
SELECT ALL 7 AS col0, 46 + - 69 + - + 7 + - ( 12 )
----
7
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7030
SELECT - 61, COUNT( * ) - - - NULLIF ( + + CAST( NULL AS SIGNED ), + + CASE - 68 WHEN - 26 - - 25 THEN + 64 + + 24 WHEN + 83 THEN NULL WHEN + + COUNT( * ) THEN NULL WHEN + 35 * - 32 * 6 * + 73 THEN NULL END * + - 0 ) - + 68 * + 45 + + - CAST( NULL AS SIGNED ) / 87 AS col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-7030
SELECT - 61, COUNT ( * ) - - - NULLIF ( + + CAST ( NULL AS INTEGER ), + + CASE - 68 WHEN - 26 - - 25 THEN + 64 + + 24 WHEN + 83 THEN NULL WHEN + + COUNT ( * ) THEN NULL WHEN + 35 * - 32 * 6 * + 73 THEN NULL END * + - 0 ) - + 68 * + 45 + + - CAST ( NULL AS INTEGER ) / 87 AS col0
----
-61
NULL

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

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

query I rowsort
SELECT ALL 52 * + 6 AS col1
----
312

query I rowsort
SELECT - ( - ( - + CASE WHEN ( NULL ) IS NOT NULL THEN ( - 72 ) END ) ) AS col2
----
NULL

query I rowsort
SELECT + 27 * + 84 AS col2
----
2268

query I rowsort
SELECT - + COALESCE ( + 76, 10 * + 60 + + + 23 + + 67 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL - ( - 44 ) + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL - ( - 44 ) + - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL + - 12 + COUNT( * ) * - + 54 * 69 + + 5 * + 42
----
-3528

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL + - 12 + COUNT ( * ) * - + 54 * 69 + + 5 * + 42
----
-3528

query I rowsort
SELECT - ( + 99 ) * 16
----
-1584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7039
SELECT ALL + - 95 + 8 * - NULLIF ( - 41, + + CAST( - - 97 AS DECIMAL ) ) AS col0
----
233

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL + - 95 + 8 * - NULLIF ( - 41, + + CAST ( - - 97 AS REAL ) ) AS col0
----
233

query III rowsort
SELECT DISTINCT 99, - 69 + - 57 AS col1, - 74 + + 78 col0
----
99
-126
4

query I rowsort
SELECT - 69 + + 2 * + 89 AS col2
----
109

query I rowsort
SELECT ALL - - 20 + + CASE 57 WHEN - - 85 / 85 * + 52 THEN 10 END
----
NULL

query I rowsort
SELECT - ( - 89 ) + 51
----
140

query I rowsort
SELECT - - 68 * 73 AS col2
----
4964

query I rowsort
SELECT - 96 + + - 24 col0
----
-120

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

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

query I rowsort
SELECT ALL - 19 * 38
----
-722

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

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

query I rowsort
SELECT DISTINCT + + 76 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT - MIN( + - 72 ) * + - CAST( NULL AS SIGNED ) + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT - MIN ( + - 72 ) * + - CAST ( NULL AS INTEGER ) + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL - + NULLIF ( - 50, - 55 * - COUNT( * ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - + NULLIF ( - 50, - 55 * - COUNT ( * ) ) AS col1
----
50

query I rowsort
SELECT 85 + 96
----
181

query II rowsort
SELECT 34 col2, - 79 * + 48
----
34
-3792

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT 40 * 0 + - 64 + 24 - + + 35 DIV 36
----
-40

skipif mysql # not compatible
query I rowsort label-7054
SELECT 40 * 0 + - 64 + 24 - + + 35 / 36
----
-40

query I rowsort
SELECT 30 - + ( - 19 )
----
49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7057
SELECT DISTINCT MIN( - 2 ) DIV - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT MIN ( - 2 ) / - 25 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7058
SELECT DISTINCT - SUM( DISTINCT + - 87 ) DIV + 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT - SUM ( DISTINCT + - 87 ) / + 70 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7059
SELECT 20 DIV - + 37 * MAX( ALL + 68 ) AS col1, + 95 * + + 30
----
0
2850

skipif mysql # not compatible
query II rowsort label-7059
SELECT 20 / - + 37 * MAX ( ALL + 68 ) AS col1, + 95 * + + 30
----
0
2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7060
SELECT ALL NULLIF ( 97, CAST( NULL AS SIGNED ) * + COUNT( * ) * - 75 + + 45 * + CAST( NULL AS SIGNED ) ) * - 20
----
-1940

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL NULLIF ( 97, CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 75 + + 45 * + CAST ( NULL AS INTEGER ) ) * - 20
----
-1940

query I rowsort
SELECT DISTINCT + 59 * 80 AS col2
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL MIN( 11 ) * - 77
----
-847

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL MIN ( 11 ) * - 77
----
-847

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT 10 DIV - + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7063
SELECT 10 / - + 52 AS col1
----
0

query II rowsort
SELECT + 59, - 44 col2
----
59
-44

query II rowsort
SELECT ALL - 81 AS col0, + 65 * + + 62
----
-81
4030

query I rowsort
SELECT 55 * + 95 * - 95 AS col2
----
-496375

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT 26 + + - SUM( ALL - 78 )
----
104

skipif mysql # not compatible
query I rowsort label-7067
SELECT 26 + + - SUM ( ALL - 78 )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT COUNT( 55 ) * + COUNT( * ) - - + 83 + ( + 68 )
----
152

skipif mysql # not compatible
query I rowsort label-7068
SELECT COUNT ( 55 ) * + COUNT ( * ) - - + 83 + ( + 68 )
----
152

query II rowsort
SELECT 1 AS col1, + 17 + - 44 * 31
----
1
-1347

query II rowsort
SELECT ALL 23, + 72 - + 82 AS col0
----
23
-10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7072
SELECT 82 AS col1, + 49 + - COUNT( * )
----
82
48

skipif mysql # not compatible
query II rowsort label-7072
SELECT 82 AS col1, + 49 + - COUNT ( * )
----
82
48

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

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

query I rowsort
SELECT 12 + + 19 * + 54 AS col2
----
1038

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL CASE - COUNT( * ) WHEN - 12 THEN NULL ELSE + 80 END + - 94
----
-14

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL CASE - COUNT ( * ) WHEN - 12 THEN NULL ELSE + 80 END + - 94
----
-14

query I rowsort
SELECT - 0 + + 25 * + 10
----
250

query I rowsort
SELECT + 39 * - 26 + - 40
----
-1054

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT DISTINCT + 41 * CAST( CAST( + 42 AS SIGNED ) AS SIGNED )
----
1722

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT + 41 * CAST ( CAST ( + 42 AS INTEGER ) AS INTEGER )
----
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL + SUM( DISTINCT - + 36 ) + + 15 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL + SUM ( DISTINCT - + 36 ) + + 15 AS col0
----
-21

query II rowsort
SELECT - - ( - 45 ), + 11 AS col0
----
-45
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT + 22 + + + 91 * - NULLIF ( - - CAST( NULL AS SIGNED ), + - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT + 22 + + + 91 * - NULLIF ( - - CAST ( NULL AS INTEGER ), + - 98 )
----
NULL

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

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

query II rowsort
SELECT + 83 col1, 40
----
83
40

query I rowsort
SELECT ALL - 17 - + 10 + + 40 AS col2
----
13

query II rowsort
SELECT ALL 45 AS col1, 35 AS col0
----
45
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), - ( + COUNT( + COALESCE ( 46, + + 25 ) ) ) ) * - - 73 * COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), - ( + COUNT ( + COALESCE ( 46, + + 25 ) ) ) ) * - - 73 * COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-7087
SELECT DISTINCT + ( SUM( DISTINCT 39 ) ) - + 87, 73 AS col2
----
-48
73

skipif mysql # not compatible
query II rowsort label-7087
SELECT DISTINCT + ( SUM ( DISTINCT 39 ) ) - + 87, 73 AS col2
----
-48
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT ALL + 26 DIV - - 81
----
0

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + 26 / - - 81
----
0

query II rowsort
SELECT ALL - 63, 93 * 9 AS col1
----
-63
837

query I rowsort
SELECT - 16 * + - 64 AS col0
----
1024

query II rowsort
SELECT DISTINCT 62 col0, - 9 AS col1
----
62
-9

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

skipif mysql # not compatible
query II rowsort label-7092
SELECT 30 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) / + 30 AS col2
----
30
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT 40 DIV + 20
----
2

skipif mysql # not compatible
query I rowsort label-7093
SELECT 40 / + 20
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7094
SELECT - CAST( + 84 AS SIGNED ) DIV - 35 + CASE + - COUNT( * ) WHEN - 73 DIV + 20 THEN NULL ELSE - 28 END + - 5 + 53 + - 99 * + + 45 AS col2
----
-4433

skipif mysql # not compatible
query I rowsort label-7094
SELECT - CAST ( + 84 AS INTEGER ) / - 35 + CASE + - COUNT ( * ) WHEN - 73 / + 20 THEN NULL ELSE - 28 END + - 5 + 53 + - 99 * + + 45 AS col2
----
-4433

query II rowsort
SELECT ALL - 72 * + - 87 AS col0, 56
----
6264
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT 10 * COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7096
SELECT 10 * COUNT ( * ) AS col2
----
10

query I rowsort
SELECT ALL - COALESCE ( - ( - 6 ), 62 )
----
-6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7099
SELECT - 60 * + 99 + - 12 + 47 + - 78 / + CAST( NULL AS SIGNED ) * 46 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT - 60 * + 99 + - 12 + 47 + - 78 / + CAST ( NULL AS INTEGER ) * 46 * COUNT ( * )
----
NULL

query I rowsort
SELECT 26 * - 44
----
-1144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7101
SELECT MIN( ALL - - 20 ) + + SUM( ALL + 39 ) * - CASE - - 62 WHEN + COUNT( * ) THEN NULL WHEN - CASE + ( 76 ) WHEN - + 69 DIV + 88 * 27 * COUNT( * ) THEN NULL ELSE - - 81 + - MAX( DISTINCT + 20 ) END * - 49 + AVG ( - 44 ) - + + CAST( - + 80 AS SIGNED ) + 46 + 47 + - 69 + 39 + - 80 DIV - 93 DIV 88 * - 1 * - 89 * + ( 83 ) * - 69 THEN NULL ELSE - + 63 DIV 82 END * 73 + 56 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7101
SELECT MIN ( ALL - - 20 ) + + SUM ( ALL + 39 ) * - CASE - - 62 WHEN + COUNT ( * ) THEN NULL WHEN - CASE + ( 76 ) WHEN - + 69 / + 88 * 27 * COUNT ( * ) THEN NULL ELSE - - 81 + - MAX ( DISTINCT + 20 ) END * - 49 + AVG ( - 44 ) - + + CAST ( - + 80 AS INTEGER ) + 46 + 47 + - 69 + 39 + - 80 / - 93 / 88 * - 1 * - 89 * + ( 83 ) * - 69 THEN NULL ELSE - + 63 / 82 END * 73 + 56 AS col2
----
76

query II rowsort
SELECT 1 * 8 + - - 71 col0, 21
----
79
21

query I rowsort
SELECT ALL + 38 + 6
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT DISTINCT 51 + CASE - 71 WHEN - - MIN( DISTINCT 96 ) / 89 THEN - + CASE - 91 WHEN - - 72 * - 22 + 23 * - + 34 THEN NULL ELSE + 10 + + COUNT( * ) + - 7 END WHEN - 74 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT 51 + CASE - 71 WHEN - - MIN ( DISTINCT 96 ) / 89 THEN - + CASE - 91 WHEN - - 72 * - 22 + 23 * - + 34 THEN NULL ELSE + 10 + + COUNT ( * ) + - 7 END WHEN - 74 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( 98 ) * + 98 AS col0
----
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT + 24 - + + SUM( DISTINCT + 44 )
----
-20

skipif mysql # not compatible
query I rowsort label-7106
SELECT + 24 - + + SUM ( DISTINCT + 44 )
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-7107
SELECT DISTINCT 63 * + 31 + + 63 DIV - + 79 - 95 col1, 40 AS col0
----
1858
40

skipif mysql # not compatible
query II rowsort label-7107
SELECT DISTINCT 63 * + 31 + + 63 / - + 79 - 95 col1, 40 AS col0
----
1858
40

query II rowsort
SELECT ALL - 12 * - 18 AS col1, + 35 + + 68
----
216
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7109
SELECT ALL 90 + + + CAST( NULL AS SIGNED ), - 26 * - 71 * CASE 20 WHEN + 22 * 57 * COUNT( * ) + - + 58 - - 45 THEN - 83 ELSE NULL END * COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7109
SELECT ALL 90 + + + CAST ( NULL AS INTEGER ), - 26 * - 71 * CASE 20 WHEN + 22 * 57 * COUNT ( * ) + - + 58 - - 45 THEN - 83 ELSE NULL END * COUNT ( * ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7110
SELECT - CAST( + + 2 AS SIGNED ) * 92 * + + MIN( DISTINCT + 38 )
----
-6992

skipif mysql # not compatible
query I rowsort label-7110
SELECT - CAST ( + + 2 AS INTEGER ) * 92 * + + MIN ( DISTINCT + 38 )
----
-6992

query II rowsort
SELECT DISTINCT ( - + 77 ) AS col0, - ( - 55 )
----
-77
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT - COUNT( * ) - + 89 + - - 94 * SUM( - 29 ) - + 71 * - + 30
----
-686

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT - COUNT ( * ) - + 89 + - - 94 * SUM ( - 29 ) - + 71 * - + 30
----
-686

onlyif mysql # aggregate syntax: 
query II rowsort label-7113
SELECT ALL SUM( DISTINCT 94 ) AS col0, COUNT( * ) AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-7113
SELECT ALL SUM ( DISTINCT 94 ) AS col0, COUNT ( * ) AS col1
----
94
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7114
SELECT ALL 31 * + 44 + - CAST( NULL AS DECIMAL ) AS col0, CAST( NULL AS SIGNED ) * - 19 + - - 68 + - ( + 60 ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7114
SELECT ALL 31 * + 44 + - CAST ( NULL AS REAL ) AS col0, CAST ( NULL AS INTEGER ) * - 19 + - - 68 + - ( + 60 ) AS col0
----
NULL
NULL

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

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

query II rowsort
SELECT - + ( 67 ) AS col0, - 65 AS col1
----
-67
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL - 36 * - COUNT( * ) + - 11 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL - 36 * - COUNT ( * ) + - 11 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT + - COUNT( * ) + + 77 + - - COUNT( * ) + + 8 * + + 2 + 62 * - 2 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7118
SELECT + - COUNT ( * ) + + 77 + - - COUNT ( * ) + + 8 * + + 2 + 62 * - 2 AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT - 36 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT - 36 / 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7120
SELECT + + 56 + - 40 + + 67 + - CAST( NULL AS SIGNED ) + + - NULLIF ( - COUNT( + 71 ), 36 ) + - + CAST( - 33 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT + + 56 + - 40 + + 67 + - CAST ( NULL AS INTEGER ) + + - NULLIF ( - COUNT ( + 71 ), 36 ) + - + CAST ( - 33 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7121
SELECT - MIN( DISTINCT 84 ) - - + 45 AS col1, 69
----
-39
69

skipif mysql # not compatible
query II rowsort label-7121
SELECT - MIN ( DISTINCT 84 ) - - + 45 AS col1, 69
----
-39
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + 94 + + 92 * + 41 + + COUNT( * ) * + 54 * 79 AS col0
----
8132

skipif mysql # not compatible
query I rowsort label-7122
SELECT + 94 + + 92 * + 41 + + COUNT ( * ) * + 54 * 79 AS col0
----
8132

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL 63 * + - 96 * + COUNT( * ) + 91
----
-5957

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL 63 * + - 96 * + COUNT ( * ) + 91
----
-5957

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT + 18 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-7124
SELECT + 18 / + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT DISTINCT COALESCE ( - 39, COUNT( DISTINCT - + 88 ) ) * - 54 AS col0
----
2106

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT COALESCE ( - 39, COUNT ( DISTINCT - + 88 ) ) * - 54 AS col0
----
2106

onlyif mysql # aggregate syntax: 
query II rowsort label-7126
SELECT ALL 0 * 60 * + 72 col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-7126
SELECT ALL 0 * 60 * + 72 col0, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL + 36 * 95 + + COUNT( * ) AS col0
----
3421

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + 36 * 95 + + COUNT ( * ) AS col0
----
3421

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL + SUM( - + 35 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + SUM ( - + 35 ) col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7129
SELECT - SUM( DISTINCT + + 15 ) DIV + NULLIF ( + - 94, 51 * - 72 ) * - CAST( + - 70 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT - SUM ( DISTINCT + + 15 ) / + NULLIF ( + - 94, 51 * - 72 ) * - CAST ( + - 70 AS INTEGER ) col1
----
0

query I rowsort
SELECT CASE - - 24 WHEN - - 51 + 10 * - 59 * - + 58 THEN NULL ELSE + 19 END
----
19

query I rowsort
SELECT ALL + 42 * - 54 + + - 20 AS col1
----
-2288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7132
SELECT 32 DIV COUNT( * ) + - 72
----
-40

skipif mysql # not compatible
query I rowsort label-7132
SELECT 32 / COUNT ( * ) + - 72
----
-40

query I rowsort
SELECT CASE + 19 WHEN + 52 THEN + 88 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL + 42 * + NULLIF ( - + 73, + COUNT( - 77 ) ) * + 11 * + 88 + + 1 AS col2
----
-2967887

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL + 42 * + NULLIF ( - + 73, + COUNT ( - 77 ) ) * + 11 * + 88 + + 1 AS col2
----
-2967887

query I rowsort
SELECT ALL + 82 * + 90 * - 78 + - 3 AS col2
----
-575643

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT DISTINCT + 24 * - - SUM( ALL + 90 ) col2
----
2160

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT + 24 * - - SUM ( ALL + 90 ) col2
----
2160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT - SUM( DISTINCT 43 ) * + + 10 + - + ( 59 ) - + + 75 AS col1
----
-564

skipif mysql # not compatible
query I rowsort label-7138
SELECT - SUM ( DISTINCT 43 ) * + + 10 + - + ( 59 ) - + + 75 AS col1
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT COUNT( * ) * - 27 + + - 65 + + - ( NULLIF ( - 34, + COUNT( * ) ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-7139
SELECT COUNT ( * ) * - 27 + + - 65 + + - ( NULLIF ( - 34, + COUNT ( * ) ) ) AS col1
----
-58

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

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

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

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

query I rowsort
SELECT + 80 * - 79 + - 96
----
-6416

query I rowsort
SELECT - 84 * - + 77 - - 7 AS col0
----
6475

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL + COUNT( * ) * - + 85 - - 14 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL + COUNT ( * ) * - + 85 - - 14 AS col2
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-7145
SELECT ALL + ( + + 37 ) DIV + 41 AS col1, 15 + + 16
----
0
31

skipif mysql # not compatible
query II rowsort label-7145
SELECT ALL + ( + + 37 ) / + 41 AS col1, 15 + + 16
----
0
31

query I rowsort
SELECT - 48 + 99
----
51

query I rowsort
SELECT DISTINCT - 23 - 56
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT + SUM( - - 44 ) * - COUNT( * ) * - 31 + 24 AS col0
----
1388

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT + SUM ( - - 44 ) * - COUNT ( * ) * - 31 + 24 AS col0
----
1388

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT - + ( - - 44 ) + + ( COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-7149
SELECT - + ( - - 44 ) + + ( COUNT ( * ) )
----
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7150
SELECT ALL + 31 DIV - CAST( + 45 AS SIGNED ) * - - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + 31 / - CAST ( + 45 AS INTEGER ) * - - 72 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7151
SELECT + - COUNT( * ) + + - 0 + 19 AS col1, + 86 + - 69 * + 94 * + 56 * + COALESCE ( - 94, + COUNT( * ) ) + + 97 + 2 - + 81 DIV - - 77
----
18
34142488

skipif mysql # not compatible
query II rowsort label-7151
SELECT + - COUNT ( * ) + + - 0 + 19 AS col1, + 86 + - 69 * + 94 * + 56 * + COALESCE ( - 94, + COUNT ( * ) ) + + 97 + 2 - + 81 / - - 77
----
18
34142488

query I rowsort
SELECT + - 71 + + 23
----
-48

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

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

query I rowsort
SELECT + + 96 * 97 AS col0
----
9312

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

skipif mysql # not compatible
query II rowsort label-7155
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT + + 68 * 89
----
6052

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT DISTINCT + + 66 * + MIN( ALL - 36 )
----
-2376

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT + + 66 * + MIN ( ALL - 36 )
----
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7158
SELECT ALL - 24 + + 88 + + - 41, CASE + - 7 WHEN + 88 + + 84 + ( + COUNT( * ) ) * + 10 / + COALESCE ( + ( 7 ), - 8, - 83 * - 81 - CASE + 35 WHEN + 74 THEN CAST( NULL AS SIGNED ) WHEN - 17 THEN NULL ELSE - AVG ( + 30 ) END ) * - 19 THEN 28 * COUNT( * ) * - 66 + 3 WHEN 65 * - 99 + - 70 THEN NULL END / - + 85 * - 22 + MIN( ALL - 45 ) + + 4 AS col1
----
23
NULL

skipif mysql # not compatible
query II rowsort label-7158
SELECT ALL - 24 + + 88 + + - 41, CASE + - 7 WHEN + 88 + + 84 + ( + COUNT ( * ) ) * + 10 / + COALESCE ( + ( 7 ), - 8, - 83 * - 81 - CASE + 35 WHEN + 74 THEN CAST ( NULL AS INTEGER ) WHEN - 17 THEN NULL ELSE - AVG ( + 30 ) END ) * - 19 THEN 28 * COUNT ( * ) * - 66 + 3 WHEN 65 * - 99 + - 70 THEN NULL END / - + 85 * - 22 + MIN ( ALL - 45 ) + + 4 AS col1
----
23
NULL

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

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

query II rowsort
SELECT - ( 95 ), 59 AS col0
----
-95
59

query I rowsort
SELECT DISTINCT 94 + + 1
----
95

query I rowsort
SELECT ALL ( + 92 ) + + + ( - + 74 ) AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT - CASE - + 14 WHEN - + 92 * 86 - + 69 + COALESCE ( 81, - 68 * + + 40 + - + COUNT( * ), CAST( 1 AS SIGNED ) ) * 88 * + ( 57 ) THEN NULL WHEN + 48 THEN 19 + - - CAST( NULL AS SIGNED ) ELSE + 51 * CAST( NULL AS SIGNED ) * + - 46 - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT - CASE - + 14 WHEN - + 92 * 86 - + 69 + COALESCE ( 81, - 68 * + + 40 + - + COUNT ( * ), CAST ( 1 AS INTEGER ) ) * 88 * + ( 57 ) THEN NULL WHEN + 48 THEN 19 + - - CAST ( NULL AS INTEGER ) ELSE + 51 * CAST ( NULL AS INTEGER ) * + - 46 - 15 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7164
SELECT ALL - 15 DIV - 9 + - MIN( ALL + 72 ), - COUNT( * ) AS col0
----
-71
-1

skipif mysql # not compatible
query II rowsort label-7164
SELECT ALL - 15 / - 9 + - MIN ( ALL + 72 ), - COUNT ( * ) AS col0
----
-71
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7165
SELECT 46 DIV COUNT( * ) DIV + 88 - - 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7165
SELECT 46 / COUNT ( * ) / + 88 - - 73 AS col0
----
73

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

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

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

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

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

query I rowsort
SELECT ALL 23 * - 30 AS col2
----
-690

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT ALL - 21 DIV + 89 + - + 23 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL - 21 / + 89 + - + 23 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7172
SELECT ALL ( - 94 ) DIV 40 * - 16 - + - 87 DIV + - 24 + - COUNT( * ) + - - 66 * + + 86 * COALESCE ( + 2, - 51 )
----
11380

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL ( - 94 ) / 40 * - 16 - + - 87 / + - 24 + - COUNT ( * ) + - - 66 * + + 86 * COALESCE ( + 2, - 51 )
----
11380

query I rowsort
SELECT + 81 * CASE + 50 WHEN - 64 THEN - 22 ELSE + 31 END col2
----
2511

query I rowsort
SELECT ALL 87 * 82 AS col1
----
7134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT CAST( - - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-7175
SELECT CAST ( - - 51 AS INTEGER )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL + COALESCE ( + SUM( DISTINCT - + 42 ), + 24, 20 + 31 - + - COALESCE ( - - 40, 0 ) * - 11 * - 32 * COUNT( * ) + - SUM( ALL + ( + 5 ) ) )
----
-42

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + COALESCE ( + SUM ( DISTINCT - + 42 ), + 24, 20 + 31 - + - COALESCE ( - - 40, 0 ) * - 11 * - 32 * COUNT ( * ) + - SUM ( ALL + ( + 5 ) ) )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7177
SELECT ALL MAX( + 75 ) DIV 47 * 24 - + CAST( - 75 AS SIGNED ) * 21
----
1599

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL MAX ( + 75 ) / 47 * 24 - + CAST ( - 75 AS INTEGER ) * 21
----
1599

query I rowsort
SELECT + 45 * + 70 * + 85 AS col2
----
267750

query I rowsort
SELECT - 51 * + ( + + 6 ) AS col1
----
-306

query I rowsort
SELECT DISTINCT 1 * + + 61 - + + 48
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7181
SELECT + 13 * - - 23 * CASE + 47 WHEN CAST( NULL AS SIGNED ) * - CAST( 10 AS SIGNED ) THEN + 75 END / ( + ( - ( 85 ) ) ) + + ( 96 ) + 7 * - + 34 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT + 13 * - - 23 * CASE + 47 WHEN CAST ( NULL AS INTEGER ) * - CAST ( 10 AS INTEGER ) THEN + 75 END / ( + ( - ( 85 ) ) ) + + ( 96 ) + 7 * - + 34 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7182
SELECT - - CAST( - 92 AS SIGNED ) + - 94 * + + 20
----
-1972

skipif mysql # not compatible
query I rowsort label-7182
SELECT - - CAST ( - 92 AS INTEGER ) + - 94 * + + 20
----
-1972

query I rowsort
SELECT 26 * + - 9 - - 70 AS col1
----
-164

query I rowsort
SELECT ALL + 30 * - - 32 col0
----
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT 58 * + - 82 + + - CAST( + 11 AS SIGNED ) + + + 67 * - 24 AS col2
----
-6375

skipif mysql # not compatible
query I rowsort label-7185
SELECT 58 * + - 82 + + - CAST ( + 11 AS INTEGER ) + + + 67 * - 24 AS col2
----
-6375

query I rowsort
SELECT 46 - + 77 col2
----
-31

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7189
SELECT 69 DIV + 25 + - 20 * + COUNT( DISTINCT - ( 89 ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7189
SELECT 69 / + 25 + - 20 * + COUNT ( DISTINCT - ( 89 ) ) AS col1
----
-18

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7191
SELECT + 76 DIV - 29 col0, 90 DIV + - 74 + 89 AS col2
----
-2
88

skipif mysql # not compatible
query II rowsort label-7191
SELECT + 76 / - 29 col0, 90 / + - 74 + 89 AS col2
----
-2
88

query I rowsort
SELECT ALL + 53 + + - 19 + + 66
----
100

query I rowsort
SELECT + 85 - + 56 * - 44
----
2549

query I rowsort
SELECT DISTINCT - - 52 + - ( - - 7 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL 83 * 56 * + COUNT( * )
----
4648

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL 83 * 56 * + COUNT ( * )
----
4648

onlyif mysql # DIV for integer division: 
query I rowsort label-7196
SELECT 4 DIV 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7196
SELECT 4 / 98 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT 39 DIV 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7197
SELECT 39 / 41 AS col1
----
0

query II rowsort
SELECT 65 AS col2, 95 AS col1
----
65
95

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

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL CAST ( NULL AS INTEGER ) * 86
----
NULL

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

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

query I rowsort
SELECT 29 + 74
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7202
SELECT ALL + ( - SUM( COALESCE ( - 34, 78, - CAST( - + 39 AS SIGNED ) ) ) ) + + 94 * - + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL + ( - SUM ( COALESCE ( - 34, 78, - CAST ( - + 39 AS INTEGER ) ) ) ) + + 94 * - + COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT ALL 99 + - 14
----
85

query I rowsort
SELECT ALL - 42 * + 17
----
-714

query I rowsort
SELECT ALL 75 + 79 * + + COALESCE ( 7, - 4 * 53 ) + + 63
----
691

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7206
SELECT COUNT( - ( 24 ) ) + CASE WHEN NOT 48 NOT BETWEEN NULL AND NULL THEN - + 34 + - CAST( + + 78 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT COUNT ( - ( 24 ) ) + CASE WHEN NOT 48 NOT BETWEEN NULL AND NULL THEN - + 34 + - CAST ( + + 78 AS REAL ) END
----
NULL

query I rowsort
SELECT ALL 69 * - - 37 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT SUM( + 20 ) + + 76 * - 17 - 69 AS col1, - 49
----
-1341
-49

skipif mysql # not compatible
query II rowsort label-7208
SELECT SUM ( + 20 ) + + 76 * - 17 - 69 AS col1, - 49
----
-1341
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT 54 * - MAX( ALL + 8 )
----
-432

skipif mysql # not compatible
query I rowsort label-7209
SELECT 54 * - MAX ( ALL + 8 )
----
-432

query I rowsort
SELECT 89 * - 86 AS col1
----
-7654

query I rowsort
SELECT + 59 * 3 + + 5 col0
----
182

query I rowsort
SELECT DISTINCT + 81 * - + 27 AS col1
----
-2187

query I rowsort
SELECT ( - + 95 ) * 64 + + 29
----
-6051

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT ALL COUNT( * ) * - 92 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL COUNT ( * ) * - 92 AS col0
----
-92

query I rowsort
SELECT 53 * 29 - - - ( + - 88 )
----
1625

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

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

query I rowsort
SELECT 81 + 34 * - 50 + + 80 + 95
----
-1444

query I rowsort
SELECT - 67 * 2 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT - 10 * + 72 * + 70 + - 11 * COUNT( DISTINCT - 4 ) AS col2
----
-50411

skipif mysql # not compatible
query I rowsort label-7219
SELECT - 10 * + 72 * + 70 + - 11 * COUNT ( DISTINCT - 4 ) AS col2
----
-50411

query I rowsort
SELECT 73 * - + 76 AS col2
----
-5548

query I rowsort
SELECT ( 70 ) + - + 67
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7222
SELECT ALL - COUNT( * ) DIV - - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - COUNT ( * ) / - - 67 AS col1
----
0

query I rowsort
SELECT + 33 + - 84 + - - 11
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT - - 31 * - ( COUNT( * ) ) + - 93 - - + 0
----
-124

skipif mysql # not compatible
query I rowsort label-7224
SELECT - - 31 * - ( COUNT ( * ) ) + - 93 - - + 0
----
-124

query II rowsort
SELECT ( 35 ) * - 55, - 75 AS col2
----
-1925
-75

query I rowsort
SELECT 83 + + 97 col2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL 30 + - 66 * + COALESCE ( + + 31, - - 33 * - 93 ) * + + COUNT( * ) AS col2
----
-2016

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL 30 + - 66 * + COALESCE ( + + 31, - - 33 * - 93 ) * + + COUNT ( * ) AS col2
----
-2016

query I rowsort
SELECT DISTINCT - 55 + + 24
----
-31

query I rowsort
SELECT 22 + + ( COALESCE ( 22, + + 28 ) )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7230
SELECT ALL + + 62 + - + COUNT( * ) + - CASE CAST( 17 AS SIGNED ) WHEN - - 13 * - ( + 59 ) - + 36 * 69 THEN NULL ELSE - 15 * COALESCE ( + COUNT( * ), - - CASE WHEN NOT NULL IS NOT NULL THEN 53 ELSE NULL END + + MAX( 7 ) ) + - 29 + 53 END col2
----
52

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + + 62 + - + COUNT ( * ) + - CASE CAST ( 17 AS INTEGER ) WHEN - - 13 * - ( + 59 ) - + 36 * 69 THEN NULL ELSE - 15 * COALESCE ( + COUNT ( * ), - - CASE WHEN NOT NULL IS NOT NULL THEN 53 ELSE NULL END + + MAX ( 7 ) ) + - 29 + 53 END col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-7231
SELECT 26 AS col0, MIN( + 97 ) AS col0
----
26
97

skipif mysql # not compatible
query II rowsort label-7231
SELECT 26 AS col0, MIN ( + 97 ) AS col0
----
26
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7232
SELECT ALL 84 AS col1, 28 DIV + - 98 * 40
----
84
0

skipif mysql # not compatible
query II rowsort label-7232
SELECT ALL 84 AS col1, 28 / + - 98 * 40
----
84
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7233
SELECT 7 AS col0, + CASE + 40 WHEN - CAST( CASE - + COUNT( * ) WHEN 46 THEN - 2 + - - 35 END AS SIGNED ) * + - 81 + + - AVG ( - - 35 ) THEN NULL WHEN - 4 * NULLIF ( - 9, + - NULLIF ( + COUNT( * ), + + 46 ) * 64 ) - - 24 + 22 THEN + 19 + + 32 WHEN - 26 * + CAST( NULL AS SIGNED ) THEN - + MAX( ALL + - 60 ) / - 84 END + - 76 AS col2
----
7
NULL

skipif mysql # not compatible
query II rowsort label-7233
SELECT 7 AS col0, + CASE + 40 WHEN - CAST ( CASE - + COUNT ( * ) WHEN 46 THEN - 2 + - - 35 END AS INTEGER ) * + - 81 + + - AVG ( - - 35 ) THEN NULL WHEN - 4 * NULLIF ( - 9, + - NULLIF ( + COUNT ( * ), + + 46 ) * 64 ) - - 24 + 22 THEN + 19 + + 32 WHEN - 26 * + CAST ( NULL AS INTEGER ) THEN - + MAX ( ALL + - 60 ) / - 84 END + - 76 AS col2
----
7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7234
SELECT ALL - 83 - COALESCE ( - 4, CAST( NULL AS SIGNED ), + MAX( ALL - - 40 ) + - COUNT( * ) + - 91 * + + 67 * - - 95 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - 83 - COALESCE ( - 4, CAST ( NULL AS INTEGER ), + MAX ( ALL - - 40 ) + - COUNT ( * ) + - 91 * + + 67 * - - 95 ) AS col2
----
-79

query I rowsort
SELECT 45 * + 77 * 29 AS col2
----
100485

query I rowsort
SELECT DISTINCT - 65 * - + 20
----
1300

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

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

query I rowsort
SELECT ALL + ( - 2 ) - - - 20 + 84 AS col2
----
62

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

skipif mysql # not compatible
query I rowsort label-7239
SELECT 35 * - COUNT ( * )
----
-35

query I rowsort
SELECT 70 * - ( - 69 )
----
4830

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT 44 * - COUNT( * ), 67 AS col0
----
-44
67

skipif mysql # not compatible
query II rowsort label-7241
SELECT 44 * - COUNT ( * ), 67 AS col0
----
-44
67

query II rowsort
SELECT 50, + 23 AS col0
----
50
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL - 11 * + SUM( DISTINCT + 88 ) AS col2
----
-968

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - 11 * + SUM ( DISTINCT + 88 ) AS col2
----
-968

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

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

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + + 94 )
----
1

query II rowsort
SELECT ALL - 41, + 29 AS col0
----
-41
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7247
SELECT DISTINCT - 3 * - COUNT( ALL + - CAST( NULL AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT - 3 * - COUNT ( ALL + - CAST ( NULL AS REAL ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7248
SELECT - 10 DIV - COUNT( * ) - 53 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7248
SELECT - 10 / - COUNT ( * ) - 53 AS col1
----
-43

query I rowsort
SELECT 8 * + 21 + - 80
----
88

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7252
SELECT ALL + - COALESCE ( + COALESCE ( + 7, + + NULLIF ( - - 94, - 78 ) DIV 70, + + 60, COUNT( * ) ), - + 68 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + - COALESCE ( + COALESCE ( + 7, + + NULLIF ( - - 94, - 78 ) / 70, + + 60, COUNT ( * ) ), - + 68 ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT + - 58 * - 37 / - AVG ( + 40 ) + - 75 / - + CASE - 35 WHEN ( + - 38 ) / - 1 * 8 THEN - 61 * + + MAX( DISTINCT - - 94 ) WHEN + - CASE - 67 WHEN - 48 + - 52 * - 79 - + 37 THEN NULL ELSE + + ( + 66 ) + + 50 END THEN - COUNT( * ) / MIN( 8 ) WHEN - 72 THEN NULL END + - CAST( NULL AS SIGNED ) - - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT + - 58 * - 37 / - AVG ( + 40 ) + - 75 / - + CASE - 35 WHEN ( + - 38 ) / - 1 * 8 THEN - 61 * + + MAX ( DISTINCT - - 94 ) WHEN + - CASE - 67 WHEN - 48 + - 52 * - 79 - + 37 THEN NULL ELSE + + ( + 66 ) + + 50 END THEN - COUNT ( * ) / MIN ( 8 ) WHEN - 72 THEN NULL END + - CAST ( NULL AS INTEGER ) - - 19 AS col0
----
NULL

query I rowsort
SELECT ALL - 98 * 15 * - 69 + + 15 AS col0
----
101445

onlyif mysql # aggregate syntax: 
query II rowsort label-7255
SELECT - - 47 * - 40 * 84 * - - COUNT( * ) AS col1, 20 col2
----
-157920
20

skipif mysql # not compatible
query II rowsort label-7255
SELECT - - 47 * - 40 * 84 * - - COUNT ( * ) AS col1, 20 col2
----
-157920
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7256
SELECT + MIN( DISTINCT + 73 ) + + CAST( NULL AS SIGNED ) - + CAST( - 67 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT + MIN ( DISTINCT + 73 ) + + CAST ( NULL AS INTEGER ) - + CAST ( - 67 AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 19 * 67 + + 15
----
-1258

query I rowsort
SELECT DISTINCT - 59 + - 52 col0
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7259
SELECT + + 13 AS col0, + 48 * - COALESCE ( + + NULLIF ( 7, 97 ), - 48 * - COALESCE ( + - CAST( + 81 AS SIGNED ), 38, - + 81, + - 13 DIV NULLIF ( + + 37, + - COUNT( + - ( + - 48 ) ) - + CAST( NULL AS SIGNED ) + + - 74 ) ), - COUNT( * ) + - COUNT( * ) )
----
13
-336

skipif mysql # not compatible
query II rowsort label-7259
SELECT + + 13 AS col0, + 48 * - COALESCE ( + + NULLIF ( 7, 97 ), - 48 * - COALESCE ( + - CAST ( + 81 AS INTEGER ), 38, - + 81, + - 13 / NULLIF ( + + 37, + - COUNT ( + - ( + - 48 ) ) - + CAST ( NULL AS INTEGER ) + + - 74 ) ), - COUNT ( * ) + - COUNT ( * ) )
----
13
-336

query I rowsort
SELECT ALL 97 + - - 80 AS col1
----
177

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

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

query II rowsort
SELECT ALL 99, ( + 1 ) AS col1
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT + - 45 - - COUNT( ALL - 97 )
----
-44

skipif mysql # not compatible
query I rowsort label-7263
SELECT + - 45 - - COUNT ( ALL - 97 )
----
-44

query II rowsort
SELECT - + 21 AS col1, 91 AS col0
----
-21
91

query I rowsort
SELECT + + 71 - - 63 col1
----
134

query II rowsort
SELECT - 3 * - - 20 + + + 23 * + 96 * ( 89 ) AS col0, - 54
----
196452
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL 24 + + + COUNT( * ) - + + 41
----
-16

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL 24 + + + COUNT ( * ) - + + 41
----
-16

query I rowsort
SELECT - NULLIF ( + + 67, + 46 )
----
-67

query II rowsort
SELECT DISTINCT - 97 * - 33 AS col1, 2 + + 50 + + - 97
----
3201
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7270
SELECT ALL - 79 * - COUNT( * ) AS col2, 29 col1
----
79
29

skipif mysql # not compatible
query II rowsort label-7270
SELECT ALL - 79 * - COUNT ( * ) AS col2, 29 col1
----
79
29

query I rowsort
SELECT - ( + 63 ) - - 42 + + - 27
----
-48

query II rowsort
SELECT ALL + 79 * 80 * - - 63, 31 AS col2
----
398160
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT - MAX( - + 93 ) + - - 64 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-7273
SELECT - MAX ( - + 93 ) + - - 64 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT - ( + COUNT( * ) ) - + 20 col0
----
-21

skipif mysql # not compatible
query I rowsort label-7274
SELECT - ( + COUNT ( * ) ) - + 20 col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - NULLIF ( + COUNT( DISTINCT 81 ), + - 95 ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7275
SELECT - NULLIF ( + COUNT ( DISTINCT 81 ), + - 95 ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT DISTINCT + 35 DIV 31 col2
----
1

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + 35 / 31 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7277
SELECT ALL + COALESCE ( + COALESCE ( + 69, + 58 DIV - 79 * - + 48 * - 94 * 53 + - - 46 DIV + 2 ), COUNT( DISTINCT + 27 ) * + COUNT( * ), - - CAST( NULL AS SIGNED ) + + ( + 15 ) ) * + - 61
----
-4209

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL + COALESCE ( + COALESCE ( + 69, + 58 / - 79 * - + 48 * - 94 * 53 + - - 46 / + 2 ), COUNT ( DISTINCT + 27 ) * + COUNT ( * ), - - CAST ( NULL AS INTEGER ) + + ( + 15 ) ) * + - 61
----
-4209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7278
SELECT - CAST( 58 AS SIGNED ) * + MIN( DISTINCT + 15 ) AS col2
----
-870

skipif mysql # not compatible
query I rowsort label-7278
SELECT - CAST ( 58 AS INTEGER ) * + MIN ( DISTINCT + 15 ) AS col2
----
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7279
SELECT ALL - COALESCE ( - + 4, + ( - + NULLIF ( - - 27, + CASE + COALESCE ( - 14, - ( - 44 ) + + 3, CAST( + 0 AS SIGNED ) ) WHEN - - COUNT( DISTINCT 93 ) THEN + 39 WHEN 97 THEN NULL END + 29 ) ) * + 24 * 12 + + CAST( NULL AS SIGNED ) - 67 * - 95, 90 * 46 + - 32 ) DIV - - 33 * + - 26 + 30
----
30

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL - COALESCE ( - + 4, + ( - + NULLIF ( - - 27, + CASE + COALESCE ( - 14, - ( - 44 ) + + 3, CAST ( + 0 AS INTEGER ) ) WHEN - - COUNT ( DISTINCT 93 ) THEN + 39 WHEN 97 THEN NULL END + 29 ) ) * + 24 * 12 + + CAST ( NULL AS INTEGER ) - 67 * - 95, 90 * 46 + - 32 ) / - - 33 * + - 26 + 30
----
30

query I rowsort
SELECT DISTINCT - - ( + ( - 48 ) ) * - 10
----
480

query I rowsort
SELECT ALL 70 * + 90 + - 3
----
6297

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT ALL + - COUNT( * ) * + 27 + - - 47
----
20

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + - COUNT ( * ) * + 27 + - - 47
----
20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7284
SELECT + - 60 + - 87 DIV + ( + 4 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7284
SELECT + - 60 + - 87 / + ( + 4 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-7285
SELECT ALL + COUNT( * ) * + 28 + - + NULLIF ( + - 19, + 76 ), - 87 AS col1
----
47
-87

skipif mysql # not compatible
query II rowsort label-7285
SELECT ALL + COUNT ( * ) * + 28 + - + NULLIF ( + - 19, + 76 ), - 87 AS col1
----
47
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7286
SELECT + CAST( - 20 AS SIGNED ) AS col0, - 89 * - 1
----
-20
89

skipif mysql # not compatible
query II rowsort label-7286
SELECT + CAST ( - 20 AS INTEGER ) AS col0, - 89 * - 1
----
-20
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT + CASE + 51 WHEN 73 + + + COUNT( * ) + + 2 * - + ( - - 83 ) * + 98 + + 53 * + - 63 * - + CAST( 35 AS SIGNED ) - NULLIF ( 18, + COUNT( - COALESCE ( + - COALESCE ( + 83, + + 79 ), - 3 ) ) * - COUNT( DISTINCT 41 ) * - + 99 ) THEN + 74 / + 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT + CASE + 51 WHEN 73 + + + COUNT ( * ) + + 2 * - + ( - - 83 ) * + 98 + + 53 * + - 63 * - + CAST ( 35 AS INTEGER ) - NULLIF ( 18, + COUNT ( - COALESCE ( + - COALESCE ( + 83, + + 79 ), - 3 ) ) * - COUNT ( DISTINCT 41 ) * - + 99 ) THEN + 74 / + 74 END AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( + 83, - 33 ) + + 64
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT + MAX( - + 50 ) * - 37 AS col1
----
1850

skipif mysql # not compatible
query I rowsort label-7289
SELECT + MAX ( - + 50 ) * - 37 AS col1
----
1850

query I rowsort
SELECT - 31 + - - 4
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7291
SELECT + 1 + - + 61, + 3 * - COUNT( * ) * + + 30 * 26 * + 13 * + CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
-60
30420

skipif mysql # not compatible
query II rowsort label-7291
SELECT + 1 + - + 61, + 3 * - COUNT ( * ) * + + 30 * 26 * + 13 * + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
-60
30420

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT + MAX( 1 ) * + 52 * + + 31 AS col1
----
1612

skipif mysql # not compatible
query I rowsort label-7293
SELECT + MAX ( 1 ) * + 52 * + + 31 AS col1
----
1612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT ALL + ( - - 30 ) * + - 1 - CAST( NULL AS SIGNED ) * 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL + ( - - 30 ) * + - 1 - CAST ( NULL AS INTEGER ) * 82 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT + 80 * COUNT( * ) * + 53 / - 23 + - CAST( NULL AS SIGNED ) + - NULLIF ( + COUNT( * ), - COUNT( DISTINCT + + 29 ) ) * 0 * + 69 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT + 80 * COUNT ( * ) * + 53 / - 23 + - CAST ( NULL AS INTEGER ) + - NULLIF ( + COUNT ( * ), - COUNT ( DISTINCT + + 29 ) ) * 0 * + 69 * 66 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7296
SELECT + 58 + + 21 * COALESCE ( + 47, CASE - 44 WHEN + 4 * 85 * + NULLIF ( + ( - 13 ), + + 62 DIV 51 * - 87 + 87 ) DIV - + CAST( + 78 AS SIGNED ) + + - 79 THEN NULL WHEN - - 7 THEN NULL WHEN - + 3 THEN NULL ELSE + COALESCE ( - - 22, 75 * + 7 ) * - MAX( DISTINCT + 5 ) + + + 45 + + 48 * 35 END DIV - - COUNT( * ) * - - 75 + - - 65 ) DIV - NULLIF ( - 60, 79 * + 55 ) + + + 68 + - CAST( - + 60 AS SIGNED ) AS col2
----
202

skipif mysql # not compatible
query I rowsort label-7296
SELECT + 58 + + 21 * COALESCE ( + 47, CASE - 44 WHEN + 4 * 85 * + NULLIF ( + ( - 13 ), + + 62 / 51 * - 87 + 87 ) / - + CAST ( + 78 AS INTEGER ) + + - 79 THEN NULL WHEN - - 7 THEN NULL WHEN - + 3 THEN NULL ELSE + COALESCE ( - - 22, 75 * + 7 ) * - MAX ( DISTINCT + 5 ) + + + 45 + + 48 * 35 END / - - COUNT ( * ) * - - 75 + - - 65 ) / - NULLIF ( - 60, 79 * + 55 ) + + + 68 + - CAST ( - + 60 AS INTEGER ) AS col2
----
202

query I rowsort
SELECT - NULLIF ( + 69, 74 ) AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7298
SELECT + ( - ( + 63 ) ) + - 60, + COUNT( * ) DIV 97 - + 75 AS col1
----
-123
-75

skipif mysql # not compatible
query II rowsort label-7298
SELECT + ( - ( + 63 ) ) + - 60, + COUNT ( * ) / 97 - + 75 AS col1
----
-123
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7299
SELECT + CAST( + + COALESCE ( + 20, + - 88 ) AS SIGNED ) / 79 + CAST( - CASE 40 WHEN + - COUNT( * ) THEN 62 * + 30 * - 22 - 83 ELSE NULL END AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) - COUNT( * ) * + + CASE ( - - COUNT( * ) ) WHEN CASE + - 35 WHEN + COUNT( * ) THEN + 17 ELSE NULL END THEN - 89 WHEN 86 + - - CASE - - COUNT( * ) WHEN + 10 THEN + 58 + CAST( NULL AS DECIMAL ) * + 53 WHEN - 74 THEN NULL ELSE NULL END THEN 80 WHEN + COUNT( * ) + + + 67 * + ( - 97 ) THEN NULL END * - 93
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7299
SELECT + CAST ( + + COALESCE ( + 20, + - 88 ) AS INTEGER ) / 79 + CAST ( - CASE 40 WHEN + - COUNT ( * ) THEN 62 * + 30 * - 22 - 83 ELSE NULL END AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) - COUNT ( * ) * + + CASE ( - - COUNT ( * ) ) WHEN CASE + - 35 WHEN + COUNT ( * ) THEN + 17 ELSE NULL END THEN - 89 WHEN 86 + - - CASE - - COUNT ( * ) WHEN + 10 THEN + 58 + CAST ( NULL AS REAL ) * + 53 WHEN - 74 THEN NULL ELSE NULL END THEN 80 WHEN + COUNT ( * ) + + + 67 * + ( - 97 ) THEN NULL END * - 93
----
NULL
NULL

query I rowsort
SELECT + 99 * - 69
----
-6831

query I rowsort
SELECT - 5 + + - ( + - ( - - NULLIF ( + 10, - ( 43 ) * 95 ) ) ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT ALL 10 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL 10 / 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7303
SELECT + 16 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-7303
SELECT + 16 / + 72
----
0

query II rowsort
SELECT ALL 59, + 40 AS col2
----
59
40

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

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

query I rowsort
SELECT ALL + 48 * + 80
----
3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7307
SELECT ALL - SUM( ALL 54 ) + - - CAST( - - ( + COUNT( * ) ) AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL - SUM ( ALL 54 ) + - - CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) AS col1
----
-53

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

skipif mysql # not compatible
query II rowsort label-7308
SELECT - 16 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-16
NULL

query I rowsort
SELECT 95 + - + ( + - 57 ) * - - 52 col1
----
3059

query II rowsort
SELECT 99 AS col2, + 2
----
99
2

query I rowsort
SELECT ALL 51 * + 50
----
2550

query I rowsort
SELECT 5 * + - 85 AS col2
----
-425

query I rowsort
SELECT - 63 - - 20
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT ALL 3 + + + COUNT( * ) + 82 * - 26 * 90
----
-191876

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL 3 + + + COUNT ( * ) + 82 * - 26 * 90
----
-191876

onlyif mysql # aggregate syntax: 
query II rowsort label-7315
SELECT ALL + - 60 + + - ( - - 80 ) + 48, 81 * - - 76 * + COUNT( * ) AS col1
----
-92
6156

skipif mysql # not compatible
query II rowsort label-7315
SELECT ALL + - 60 + + - ( - - 80 ) + 48, 81 * - - 76 * + COUNT ( * ) AS col1
----
-92
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT - CASE COUNT( DISTINCT - 90 ) WHEN + 85 * - 72 THEN + - 20 + - 67 WHEN + - 67 THEN NULL ELSE NULL END - 45 / 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT - CASE COUNT ( DISTINCT - 90 ) WHEN + 85 * - 72 THEN + - 20 + - 67 WHEN + - 67 THEN NULL ELSE NULL END - 45 / 40 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT + 86 DIV 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 86 / 44 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - + 69 * + NULLIF ( + 3, + 31 ) * ( + 13 ) * + 20 + + 10 + 67 * - COUNT( * ) * - - COUNT( * )
----
-53877

skipif mysql # not compatible
query I rowsort label-7318
SELECT - + 69 * + NULLIF ( + 3, + 31 ) * ( + 13 ) * + 20 + + 10 + 67 * - COUNT ( * ) * - - COUNT ( * )
----
-53877

query II rowsort
SELECT ALL - + 30 AS col2, 50 + - - 20 + + + 98 AS col1
----
-30
168

query II rowsort
SELECT 65, 70 AS col1
----
65
70

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

query I rowsort
SELECT - 79 * 83 + 40 - - + 41
----
-6476

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

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

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

skipif mysql # not compatible
query I rowsort label-7324
SELECT - 88 / 6
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7325
SELECT + 72, 61 + + 22 + 78 + 5 DIV MIN( ALL - 54 ) * + 55 col2
----
72
161

skipif mysql # not compatible
query II rowsort label-7325
SELECT + 72, 61 + + 22 + 78 + 5 / MIN ( ALL - 54 ) * + 55 col2
----
72
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT + COALESCE ( + + 35, - SUM( + + 11 ) * + 21 - - NULLIF ( + 83, + 49 ), + - 9 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7326
SELECT + COALESCE ( + + 35, - SUM ( + + 11 ) * + 21 - - NULLIF ( + 83, + 49 ), + - 9 ) AS col2
----
35

query I rowsort
SELECT + 71 + + 81 AS col2
----
152

query I rowsort
SELECT DISTINCT + 18 * 28
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + MAX( + 35 ) * + 21 + + 35
----
770

skipif mysql # not compatible
query I rowsort label-7329
SELECT + MAX ( + 35 ) * + 21 + + 35
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - COUNT( * ) * - - 16 * + 17 AS col2
----
-272

skipif mysql # not compatible
query I rowsort label-7330
SELECT - COUNT ( * ) * - - 16 * + 17 AS col2
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT + + MIN( - - 71 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-7331
SELECT + + MIN ( - - 71 ) col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7332
SELECT DISTINCT + 6 * + + COALESCE ( - - 43, + - 15 + - CASE - 8 WHEN 39 THEN + COUNT( * ) * + COUNT( * ) + + 67 ELSE NULL END + - 33, - - 14 + + 39 * 55 ) AS col1, - 81 + 29
----
258
-52

skipif mysql # not compatible
query II rowsort label-7332
SELECT DISTINCT + 6 * + + COALESCE ( - - 43, + - 15 + - CASE - 8 WHEN 39 THEN + COUNT ( * ) * + COUNT ( * ) + + 67 ELSE NULL END + - 33, - - 14 + + 39 * 55 ) AS col1, - 81 + 29
----
258
-52

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL 34 * + + NULLIF ( - CAST( 82 AS SIGNED ), - - 70 ) AS col2
----
-2788

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL 34 * + + NULLIF ( - CAST ( 82 AS INTEGER ), - - 70 ) AS col2
----
-2788

query I rowsort
SELECT DISTINCT 69 * 1 AS col0
----
69

query I rowsort
SELECT 73 * + 90 AS col2
----
6570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7337
SELECT SUM( + 8 ) - - + CAST( 52 AS SIGNED ) - - 76
----
136

skipif mysql # not compatible
query I rowsort label-7337
SELECT SUM ( + 8 ) - - + CAST ( 52 AS INTEGER ) - - 76
----
136

query I rowsort
SELECT DISTINCT - 35 * + + 48
----
-1680

query I rowsort
SELECT ALL 3 + + + 46 * + 39 AS col1
----
1797

query I rowsort
SELECT - 61 + - 38 AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT 94 - + NULLIF ( CAST( + + 12 AS SIGNED ), + COUNT( * ) - - - MAX( DISTINCT + 52 ) + + + CAST( + 36 AS SIGNED ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7341
SELECT 94 - + NULLIF ( CAST ( + + 12 AS INTEGER ), + COUNT ( * ) - - - MAX ( DISTINCT + 52 ) + + + CAST ( + 36 AS INTEGER ) ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT ALL - 65 DIV - 93 * - 97 * + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - 65 / - 93 * - 97 * + 57 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT ( + 6 ) DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-7343
SELECT ( + 6 ) / + 71
----
0

query I rowsort
SELECT DISTINCT 18 * - 18 + + 84
----
-240

query I rowsort
SELECT ALL 23 + 70 * - + 21 * + 98 - - 97 AS col2
----
-143940

query I rowsort
SELECT ALL - - COALESCE ( - + 57, + 8 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT - SUM( + 84 ) * + 68 * - ( + - SUM( - 68 ) ) AS col0
----
388416

skipif mysql # not compatible
query I rowsort label-7347
SELECT - SUM ( + 84 ) * + 68 * - ( + - SUM ( - 68 ) ) AS col0
----
388416

query I rowsort
SELECT 42 * 86 * + - 37
----
-133644

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

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

query I rowsort
SELECT - NULLIF ( + + 13, - 32 + - - 82 - + - 65 / + - 2 ) + - 0
----
-13

query I rowsort
SELECT 20 * - 69 + - - 6 AS col0
----
-1374

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT DISTINCT - 47 DIV - NULLIF ( + 15, - 17 + - 32 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT - 47 / - NULLIF ( + 15, - 17 + - 32 ) AS col1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7353
SELECT ALL - NULLIF ( - + 61, - + 32 * - 9 * - ( - CAST( NULL AS DECIMAL ) ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - NULLIF ( - + 61, - + 32 * - 9 * - ( - CAST ( NULL AS REAL ) ) ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7354
SELECT 80 - + + CAST( - MIN( DISTINCT - - 74 ) AS SIGNED ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-7354
SELECT 80 - + + CAST ( - MIN ( DISTINCT - - 74 ) AS INTEGER ) AS col2
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-7355
SELECT ALL - 20 * + 27 * - + 12, - COUNT( * ) AS col2
----
6480
-1

skipif mysql # not compatible
query II rowsort label-7355
SELECT ALL - 20 * + 27 * - + 12, - COUNT ( * ) AS col2
----
6480
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7356
SELECT ALL + 66 * + - CASE - 55 WHEN 32 + + 87 * + - 14 THEN 87 * + COUNT( * ) + 69 * + - 24 + - 70 DIV + AVG ( ALL 24 ) ELSE - - 15 END
----
-990

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL + 66 * + - CASE - 55 WHEN 32 + + 87 * + - 14 THEN 87 * + COUNT ( * ) + 69 * + - 24 + - 70 / + AVG ( ALL 24 ) ELSE - - 15 END
----
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-7357
SELECT 73 DIV + 13
----
5

skipif mysql # not compatible
query I rowsort label-7357
SELECT 73 / + 13
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7358
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) + - COALESCE ( - 43, - + 31 ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) + - COALESCE ( - 43, - + 31 ) + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT - MIN( 19 ) + + 52 * - 92 AS col2
----
-4803

skipif mysql # not compatible
query I rowsort label-7359
SELECT - MIN ( 19 ) + + 52 * - 92 AS col2
----
-4803

query I rowsort
SELECT ALL - 57 + - 72 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT DISTINCT - COUNT( * ) + 55 * - 32
----
-1761

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - COUNT ( * ) + 55 * - 32
----
-1761

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT 43 AS col0, COUNT( - 86 ) AS col2
----
43
1

skipif mysql # not compatible
query II rowsort label-7362
SELECT 43 AS col0, COUNT ( - 86 ) AS col2
----
43
1

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

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

query I rowsort
SELECT ALL - 31 + - 94 + + - 43 - - + 2 + + + 41 - - 88 AS col0
----
-37

query I rowsort
SELECT - 33 * + + NULLIF ( 93, + 41 ) AS col1
----
-3069

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7366
SELECT 24 AS col0, + CAST( + 24 AS SIGNED ) * + 73 * - + 53 col0
----
24
-92856

skipif mysql # not compatible
query II rowsort label-7366
SELECT 24 AS col0, + CAST ( + 24 AS INTEGER ) * + 73 * - + 53 col0
----
24
-92856

query I rowsort
SELECT - 86 * + + CASE - 88 WHEN + 4 THEN + 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL - COUNT( * ) + 70 * - 68
----
-4761

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL - COUNT ( * ) + 70 * - 68
----
-4761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT DISTINCT - CASE - + COALESCE ( - - 58, - 70 ) WHEN - ( + - 64 ) THEN - CAST( - + 13 AS SIGNED ) * + 24 / - 92 + 8 + ( + + 24 ) * + ( - CASE - 27 WHEN - 65 * + ( 94 ) - + - 39 THEN + 0 WHEN - NULLIF ( - 43, COUNT( DISTINCT + 15 ) / 37 ) * - - 28 - 57 - + 13 + - COUNT( * ) / - 66 / - + CASE - + 25 WHEN - 75 THEN NULLIF ( - - 45, + 91 + - + ( + 74 ) ) END THEN NULL END ) WHEN - - 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT - CASE - + COALESCE ( - - 58, - 70 ) WHEN - ( + - 64 ) THEN - CAST ( - + 13 AS INTEGER ) * + 24 / - 92 + 8 + ( + + 24 ) * + ( - CASE - 27 WHEN - 65 * + ( 94 ) - + - 39 THEN + 0 WHEN - NULLIF ( - 43, COUNT ( DISTINCT + 15 ) / 37 ) * - - 28 - 57 - + 13 + - COUNT ( * ) / - 66 / - + CASE - + 25 WHEN - 75 THEN NULLIF ( - - 45, + 91 + - + ( + 74 ) ) END THEN NULL END ) WHEN - - 52 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( - 19 ) * + 26 col1
----
-494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7371
SELECT ALL 12 - - 82 * + 35 * 76 * ( - + COUNT( * ) ) * ( - + 82 ) + - COUNT( ALL + 52 ) col0, 87 + + 34 / + CAST( NULL AS SIGNED )
----
17885851
NULL

skipif mysql # not compatible
query II rowsort label-7371
SELECT ALL 12 - - 82 * + 35 * 76 * ( - + COUNT ( * ) ) * ( - + 82 ) + - COUNT ( ALL + 52 ) col0, 87 + + 34 / + CAST ( NULL AS INTEGER )
----
17885851
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7372
SELECT ALL 25 - + MAX( DISTINCT 49 ) * COALESCE ( - + 43, - 68, ( - + COUNT( * ) ) ) * + 36 + - 92, - 72 DIV + 28 col2
----
75785
-2

skipif mysql # not compatible
query II rowsort label-7372
SELECT ALL 25 - + MAX ( DISTINCT 49 ) * COALESCE ( - + 43, - 68, ( - + COUNT ( * ) ) ) * + 36 + - 92, - 72 / + 28 col2
----
75785
-2

query I rowsort
SELECT ALL + CASE 4 WHEN 38 + - 54 * - 48 THEN + 59 WHEN - ( + 89 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7374
SELECT DISTINCT - COALESCE ( 14, - + 91 + 42 + MAX( ALL + - ( + 19 ) ) / 86, + 33 - + + 55 + + + ( + NULLIF ( + 78, + - 12 ) ) ) * + CAST( NULL AS SIGNED ) AS col0, 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-7374
SELECT DISTINCT - COALESCE ( 14, - + 91 + 42 + MAX ( ALL + - ( + 19 ) ) / 86, + 33 - + + 55 + + + ( + NULLIF ( + 78, + - 12 ) ) ) * + CAST ( NULL AS INTEGER ) AS col0, 51
----
NULL
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7375
SELECT MIN( ALL - CAST( - 12 AS SIGNED ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7375
SELECT MIN ( ALL - CAST ( - 12 AS INTEGER ) ) AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7376
SELECT ALL - COALESCE ( + - CASE 28 WHEN + 83 THEN + 19 DIV + 69 + + - CAST( NULL AS SIGNED ) END, - COALESCE ( + ( + ( 55 ) ), + + 50 ) - 22 ) AS col0, 47
----
77
47

skipif mysql # not compatible
query II rowsort label-7376
SELECT ALL - COALESCE ( + - CASE 28 WHEN + 83 THEN + 19 / + 69 + + - CAST ( NULL AS INTEGER ) END, - COALESCE ( + ( + ( 55 ) ), + + 50 ) - 22 ) AS col0, 47
----
77
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT - + COUNT( * ) - - 31 * 96
----
2975

skipif mysql # not compatible
query I rowsort label-7377
SELECT - + COUNT ( * ) - - 31 * 96
----
2975

query I rowsort
SELECT + + 98 * - - 96 AS col0
----
9408

query II rowsort
SELECT + 18 col2, 40 * 45 AS col2
----
18
1800

query I rowsort
SELECT - - 29 - + 36 col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7381
SELECT + 97 DIV - 32 - MAX( 92 ) + - + 9 - ( - + 69 ) * 70
----
4726

skipif mysql # not compatible
query I rowsort label-7381
SELECT + 97 / - 32 - MAX ( 92 ) + - + 9 - ( - + 69 ) * 70
----
4726

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL COUNT( * ) * + COUNT( * ) + 76 + - - 54
----
131

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL COUNT ( * ) * + COUNT ( * ) + 76 + - - 54
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT + 11 * - - 98 * CAST( - - 41 AS SIGNED ) + + + 62
----
44260

skipif mysql # not compatible
query I rowsort label-7383
SELECT + 11 * - - 98 * CAST ( - - 41 AS INTEGER ) + + + 62
----
44260

query I rowsort
SELECT ALL + - ( 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7385
SELECT DISTINCT + 39 AS col0, COUNT( * ) + + - 9 - - 38 DIV + + 42 * + 88 + + 8
----
39
0

skipif mysql # not compatible
query II rowsort label-7385
SELECT DISTINCT + 39 AS col0, COUNT ( * ) + + - 9 - - 38 / + + 42 * + 88 + + 8
----
39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL + + SUM( 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL + + SUM ( 91 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT ALL + CASE COUNT( * ) WHEN 33 + + + 55 + - ( + 73 ) + - + ( 28 ) - 82 THEN NULL ELSE + 85 END AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL + CASE COUNT ( * ) WHEN 33 + + + 55 + - ( + 73 ) + - + ( 28 ) - 82 THEN NULL ELSE + 85 END AS col1
----
85

query I rowsort
SELECT + + 2 * 50 * - 59 * - 10
----
59000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT + 36 * + + CAST( - - 74 AS SIGNED ) * - NULLIF ( - + ( + - MIN( - 36 ) ), + - 35 ) col2
----
95904

skipif mysql # not compatible
query I rowsort label-7389
SELECT + 36 * + + CAST ( - - 74 AS INTEGER ) * - NULLIF ( - + ( + - MIN ( - 36 ) ), + - 35 ) col2
----
95904

query I rowsort
SELECT ALL 41 * + - 15 AS col1
----
-615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT + CASE MIN( DISTINCT - 30 ) WHEN CAST( NULL AS SIGNED ) + COUNT( * ) + + CAST( 89 AS SIGNED ) / + 64 THEN NULL WHEN + 84 + - + 88 + + 72 + + 57 + 91 + - AVG ( 34 ) THEN NULL WHEN + COUNT( * ) THEN + + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT + CASE MIN ( DISTINCT - 30 ) WHEN CAST ( NULL AS INTEGER ) + COUNT ( * ) + + CAST ( 89 AS INTEGER ) / + 64 THEN NULL WHEN + 84 + - + 88 + + 72 + + 57 + 91 + - AVG ( 34 ) THEN NULL WHEN + COUNT ( * ) THEN + + 64 END
----
NULL

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

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

query III rowsort
SELECT ALL + 28 AS col0, + 13 AS col0, - 20
----
28
13
-20

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

query I rowsort
SELECT ALL - 37 * + - 47 + + - 40
----
1699

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT DISTINCT + 2 AS col1, + 92 * 27 + + COALESCE ( + COUNT( * ), + 13 + COUNT( * ) * 52 * 28 * 99, + + 20, 79 ) + COUNT( * ) - - + 95 * MAX( + 82 ) + 93
----
2
10369

skipif mysql # not compatible
query II rowsort label-7396
SELECT DISTINCT + 2 AS col1, + 92 * 27 + + COALESCE ( + COUNT ( * ), + 13 + COUNT ( * ) * 52 * 28 * 99, + + 20, 79 ) + COUNT ( * ) - - + 95 * MAX ( + 82 ) + 93
----
2
10369

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL COALESCE ( COUNT( * ), + 23 ) * - - ( - COALESCE ( - 63, COUNT( * ) ) ) + 73
----
136

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL COALESCE ( COUNT ( * ), + 23 ) * - - ( - COALESCE ( - 63, COUNT ( * ) ) ) + 73
----
136

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

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

query II rowsort
SELECT + 40 + + 54 AS col1, 92 + + - 59
----
94
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL MAX( ALL + + 17 ) * + COALESCE ( - - 87, MIN( 6 ) ) + + 7
----
1486

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL MAX ( ALL + + 17 ) * + COALESCE ( - - 87, MIN ( 6 ) ) + + 7
----
1486

query I rowsort
SELECT + 57 - + 56 AS col0
----
1

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

skipif mysql # not compatible
query II rowsort label-7402
SELECT COUNT ( * ) AS col1, 24
----
1
24

query I rowsort
SELECT ALL 85 * + + 85 + - 6 AS col2
----
7219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7404
SELECT + 10 + CASE + 26 WHEN + - NULLIF ( + 95, + SUM( - + 53 ) ) + - AVG ( DISTINCT - 31 ) THEN + + 94 WHEN + 87 * CAST( NULL AS SIGNED ) * - 31 * + CAST( NULL AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT + 10 + CASE + 26 WHEN + - NULLIF ( + 95, + SUM ( - + 53 ) ) + - AVG ( DISTINCT - 31 ) THEN + + 94 WHEN + 87 * CAST ( NULL AS INTEGER ) * - 31 * + CAST ( NULL AS INTEGER ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 26 * 96 AS col2
----
-2496

query I rowsort
SELECT - ( + 4 ) + + 89
----
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL - ( - + 9 ) - - SUM( ALL + 20 ) col2
----
29

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - ( - + 9 ) - - SUM ( ALL + 20 ) col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7409
SELECT - + 68 - + 93 + ( 87 ) + - COUNT( * ) + - - COUNT( * ) DIV + 45
----
-75

skipif mysql # not compatible
query I rowsort label-7409
SELECT - + 68 - + 93 + ( 87 ) + - COUNT ( * ) + - - COUNT ( * ) / + 45
----
-75

query I rowsort
SELECT ALL - + 24 * - + 88
----
2112

query II rowsort
SELECT ALL 95 AS col1, ( + 8 ) * 83 + - - 9 + 8 * - 71 AS col2
----
95
105

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

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

query I rowsort
SELECT ALL - - 48 - + 19 * 17 * + 65 AS col2
----
-20947

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

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

query I rowsort
SELECT - 2 * ( + 49 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - - 44 + + + COUNT( DISTINCT - 47 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-7416
SELECT - - 44 + + + COUNT ( DISTINCT - 47 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7417
SELECT ALL COUNT( * ) AS col1, 85 col0
----
1
85

skipif mysql # not compatible
query II rowsort label-7417
SELECT ALL COUNT ( * ) AS col1, 85 col0
----
1
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7418
SELECT - - 33 + - 64 col2, 5 * - COUNT( * ) AS col2
----
-31
-5

skipif mysql # not compatible
query II rowsort label-7418
SELECT - - 33 + - 64 col2, 5 * - COUNT ( * ) AS col2
----
-31
-5

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

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

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

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

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

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

query I rowsort
SELECT ALL 26 * + - 97 * - + 83 * 55
----
11512930

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL + MIN( DISTINCT + 51 ) * + - 73 + - 35 * - + 11 * + + 30 - + ( 85 ) + 71 * + + 97 AS col2
----
14629

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL + MIN ( DISTINCT + 51 ) * + - 73 + - 35 * - + 11 * + + 30 - + ( 85 ) + 71 * + + 97 AS col2
----
14629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT + 77 * + 32 + - 81 * + CAST( + + 45 AS SIGNED ) - - 33 * 41
----
172

skipif mysql # not compatible
query I rowsort label-7424
SELECT + 77 * + 32 + - 81 * + CAST ( + + 45 AS INTEGER ) - - 33 * 41
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-7425
SELECT ALL + + COUNT( * ), - 82 col0
----
1
-82

skipif mysql # not compatible
query II rowsort label-7425
SELECT ALL + + COUNT ( * ), - 82 col0
----
1
-82

onlyif mysql # aggregate syntax: 
query III rowsort label-7426
SELECT + 8 AS col1, ( 10 ) * - 43, COUNT( * ) AS col2
----
8
-430
1

skipif mysql # not compatible
query III rowsort label-7426
SELECT + 8 AS col1, ( 10 ) * - 43, COUNT ( * ) AS col2
----
8
-430
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7427
SELECT ALL CAST( NULL AS DECIMAL ) / + ( - MIN( ALL + ( - + NULLIF ( - 16, + 81 * - ( - + 45 ) * - - 31 / - + 53 ) ) ) ) + COUNT( * ) AS col0, 56 * - CAST( - 99 AS SIGNED )
----
NULL
5544

skipif mysql # not compatible
query II rowsort label-7427
SELECT ALL CAST ( NULL AS REAL ) / + ( - MIN ( ALL + ( - + NULLIF ( - 16, + 81 * - ( - + 45 ) * - - 31 / - + 53 ) ) ) ) + COUNT ( * ) AS col0, 56 * - CAST ( - 99 AS INTEGER )
----
NULL
5544

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7429
SELECT 89, + NULLIF ( - COUNT( * ), + - 31 ) DIV - 27 - + 56 AS col1
----
89
-56

skipif mysql # not compatible
query II rowsort label-7429
SELECT 89, + NULLIF ( - COUNT ( * ), + - 31 ) / - 27 - + 56 AS col1
----
89
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7430
SELECT + 31 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-7430
SELECT + 31 / + 51
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7431
SELECT 95 AS col1, CASE + + 61 WHEN - 70 + 39 + + COUNT( * ) THEN 36 + 76 * + 57 ELSE + 16 END AS col1
----
95
16

skipif mysql # not compatible
query II rowsort label-7431
SELECT 95 AS col1, CASE + + 61 WHEN - 70 + 39 + + COUNT ( * ) THEN 36 + 76 * + 57 ELSE + 16 END AS col1
----
95
16

query I rowsort
SELECT - 24 + - 20 + + + 90 * - 1 col0
----
-134

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

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL 94 / + COUNT ( * ) AS col1
----
94

query I rowsort
SELECT + 38 * - + 7 + + 8 + - 88 * - 81
----
6870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7435
SELECT ALL 63 DIV - 99 + + 55 + SUM( + - 44 )
----
11

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL 63 / - 99 + + 55 + SUM ( + - 44 )
----
11

query I rowsort
SELECT ALL 88 + - + 72 + + 56 * - 9 AS col0
----
-488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT CAST( - - 43 AS SIGNED ) * + + COUNT( * ) - + COUNT( * ) * - CAST( NULL AS SIGNED ) * - 25 - + - 69 + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT CAST ( - - 43 AS INTEGER ) * + + COUNT ( * ) - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 25 - + - 69 + + 75
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + 3 / + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT DISTINCT 17 + - 11 + + + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT 17 + - 11 + + + COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT DISTINCT - COUNT( ALL - 96 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT - COUNT ( ALL - 96 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT MIN( DISTINCT 62 ) + - 13 + - 28
----
21

skipif mysql # not compatible
query I rowsort label-7441
SELECT MIN ( DISTINCT 62 ) + - 13 + - 28
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT ALL 52 + - CASE + 21 WHEN 31 * 25 THEN 44 * - 89 + CAST( 89 AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL 52 + - CASE + 21 WHEN 31 * 25 THEN 44 * - 89 + CAST ( 89 AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT 70 * + - 58 * + 10 AS col1
----
-40600

query I rowsort
SELECT - 0 * 87 * - - 20 + + 55
----
55

query I rowsort
SELECT 30 * + 97 + + ( + 71 )
----
2981

query I rowsort
SELECT 94 * - 27 + + + 86
----
-2452

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL COUNT( * ) * - 72 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL COUNT ( * ) * - 72 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT - 43 * 45 * - 61 + - + MAX( - - 36 ) - - - COUNT( * ) AS col0
----
117998

skipif mysql # not compatible
query I rowsort label-7448
SELECT - 43 * 45 * - 61 + - + MAX ( - - 36 ) - - - COUNT ( * ) AS col0
----
117998

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - 80 * COUNT( * ) / + CASE - 24 WHEN - 70 * + - 77 * - 55 - + - 8 / - + 14 - 38 THEN - 71 + + 58 END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7449
SELECT - 80 * COUNT ( * ) / + CASE - 24 WHEN - 70 * + - 77 * - 55 - + - 8 / - + 14 - 38 THEN - 71 + + 58 END + 41
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7451
SELECT DISTINCT - COALESCE ( + + CAST( NULL AS SIGNED ), - COUNT( * ) ) - + COUNT( * ) - 12 - - 80 * + COUNT( * ) * + CAST( - 83 AS SIGNED ) * + 34 col2
----
-225772

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - COALESCE ( + + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) - + COUNT ( * ) - 12 - - 80 * + COUNT ( * ) * + CAST ( - 83 AS INTEGER ) * + 34 col2
----
-225772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT ALL COALESCE ( + 36, - CAST( + - AVG ( ALL + - 77 ) AS SIGNED ), - 55 + 26 + - 15 * 77 )
----
36

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL COALESCE ( + 36, - CAST ( + - AVG ( ALL + - 77 ) AS INTEGER ), - 55 + 26 + - 15 * 77 )
----
36

query I rowsort
SELECT ALL + 93 * + 81 AS col2
----
7533

query I rowsort
SELECT - COALESCE ( + - 17, - 75, - - 38 ) + - - 50
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7455
SELECT + ( + 32 ) DIV + COUNT( * ) + + - 42 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-7455
SELECT + ( + 32 ) / + COUNT ( * ) + + - 42 AS col0
----
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7457
SELECT ALL - CAST( NULL AS SIGNED ) * 12 * - ( - COUNT( * ) ) * + 44 + - 82 + + MAX( ALL 20 ) * - COUNT( * ) * - - 51 + - + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL - CAST ( NULL AS INTEGER ) * 12 * - ( - COUNT ( * ) ) * + 44 + - 82 + + MAX ( ALL 20 ) * - COUNT ( * ) * - - 51 + - + 29 AS col2
----
NULL

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

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

query I rowsort
SELECT 7 * 64 col1
----
448

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT - COUNT( * ) + + 22 AS col2, 95
----
21
95

skipif mysql # not compatible
query II rowsort label-7460
SELECT - COUNT ( * ) + + 22 AS col2, 95
----
21
95

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

skipif mysql # not compatible
query I rowsort label-7461
SELECT - SUM ( + - CAST ( + 16 AS INTEGER ) )
----
16

query I rowsort
SELECT 99 - 3 * - 68 * - + COALESCE ( + 50, - 56 - - + 76 ) + 32 AS col1
----
-10069

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-7464
SELECT 24 col2, - ( + COUNT( ALL + - ( + 69 ) ) ) * + 7 AS col2, - COUNT( * ) AS col1
----
24
-7
-1

skipif mysql # not compatible
query III rowsort label-7464
SELECT 24 col2, - ( + COUNT ( ALL + - ( + 69 ) ) ) * + 7 AS col2, - COUNT ( * ) AS col1
----
24
-7
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT ALL - COALESCE ( 22, - - 21 + + - 46, + MIN( ALL + + 1 ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL - COALESCE ( 22, - - 21 + + - 46, + MIN ( ALL + + 1 ) ) AS col2
----
-22

query I rowsort
SELECT 80 * + 49 AS col0
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL - 62 + COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL - 62 + COUNT ( * ) AS col0
----
-61

query I rowsort
SELECT 70 * + 29
----
2030

query II rowsort
SELECT + 52, + 70 + - 16 AS col0
----
52
54

query II rowsort
SELECT 40 col2, 22
----
40
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL COUNT( ALL - 36 ) - + ( + ( 89 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL COUNT ( ALL - 36 ) - + ( + ( 89 ) )
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-7472
SELECT ALL 57 DIV - 71 * - 20 AS col2, + 29 AS col0
----
0
29

skipif mysql # not compatible
query II rowsort label-7472
SELECT ALL 57 / - 71 * - 20 AS col2, + 29 AS col0
----
0
29

query I rowsort
SELECT 8 * - 33
----
-264

onlyif mysql # DIV for integer division: 
query II rowsort label-7474
SELECT ALL - 43 col1, COALESCE ( + 82, - 2 ) DIV - COALESCE ( - 38, + 25 + - 17 + 60 DIV + - 8 ) AS col1
----
-43
2

skipif mysql # not compatible
query II rowsort label-7474
SELECT ALL - 43 col1, COALESCE ( + 82, - 2 ) / - COALESCE ( - 38, + 25 + - 17 + 60 / + - 8 ) AS col1
----
-43
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7475
SELECT 14 DIV + 1
----
14

skipif mysql # not compatible
query I rowsort label-7475
SELECT 14 / + 1
----
14

query I rowsort
SELECT DISTINCT 92 * 79 col0
----
7268

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

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

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

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

query I rowsort
SELECT 4 + - ( 52 )
----
-48

query I rowsort
SELECT 73 + - - 46 + 89 AS col1
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL + MIN( DISTINCT 99 ) * 53
----
5247

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL + MIN ( DISTINCT 99 ) * 53
----
5247

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL - MIN( - - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - MIN ( - - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT 16 * + 3 * - 52 + - + 4 * + + 49 + - COUNT( * ) AS col1
----
-2693

skipif mysql # not compatible
query I rowsort label-7483
SELECT 16 * + 3 * - 52 + - + 4 * + + 49 + - COUNT ( * ) AS col1
----
-2693

query I rowsort
SELECT DISTINCT + 52 * 19
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL COUNT( * ) * MAX( DISTINCT 31 ) + 59 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL COUNT ( * ) * MAX ( DISTINCT 31 ) + 59 AS col2
----
90

query I rowsort
SELECT ALL - 61 + + + 15
----
-46

query I rowsort
SELECT 42 - - - 32 + 86 col0
----
96

query I rowsort
SELECT ALL + - 6 + 78 * - 46
----
-3594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT - CAST( - 70 AS SIGNED ) + + - 96
----
-26

skipif mysql # not compatible
query I rowsort label-7489
SELECT - CAST ( - 70 AS INTEGER ) + + - 96
----
-26

query I rowsort
SELECT 35 + + 36 + + 11
----
82

query II rowsort
SELECT 43 AS col2, + 22
----
43
22

query I rowsort
SELECT ALL + 78 + + 1 * 96
----
174

query I rowsort
SELECT - 44 + - + 56
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT COUNT( * ) + 60
----
61

skipif mysql # not compatible
query I rowsort label-7494
SELECT COUNT ( * ) + 60
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7495
SELECT DISTINCT + 12 + - 4 * - + 27 * - CASE 95 WHEN - 50 THEN NULL WHEN 39 THEN CAST( NULL AS SIGNED ) DIV - 69 ELSE - + CASE 37 WHEN 18 THEN + 23 + - 8 * - 77 ELSE + 11 END END AS col2
----
1200

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT + 12 + - 4 * - + 27 * - CASE 95 WHEN - 50 THEN NULL WHEN 39 THEN CAST ( NULL AS INTEGER ) / - 69 ELSE - + CASE 37 WHEN 18 THEN + 23 + - 8 * - 77 ELSE + 11 END END AS col2
----
1200

query I rowsort
SELECT COALESCE ( - - 89, 85 ) AS col0
----
89

query I rowsort
SELECT DISTINCT 55 * 27 * 93 * - 72 + 33
----
-9943527

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

skipif mysql # not compatible
query I rowsort label-7498
SELECT NULLIF ( + 40, + CAST ( NULL AS INTEGER ) ) AS col1
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT + ( + - 36 ) + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-7500
SELECT + ( + - 36 ) + - COUNT ( * )
----
-37

query I rowsort
SELECT NULLIF ( + 89, - - 79 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - COUNT( * ) + + 17 - - 63 + + 31
----
110

skipif mysql # not compatible
query I rowsort label-7502
SELECT - COUNT ( * ) + + 17 - - 63 + + 31
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7503
SELECT DISTINCT - 23 * - 33 - - 43 * - COUNT( + - 24 ) * - COUNT( * ) + 9 * - - 57 DIV - COUNT( * ) + + ( - COUNT( * ) ) AS col2
----
288

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT - 23 * - 33 - - 43 * - COUNT ( + - 24 ) * - COUNT ( * ) + 9 * - - 57 / - COUNT ( * ) + + ( - COUNT ( * ) ) AS col2
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL + MIN( + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + MIN ( + 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT DISTINCT - 58 * - - COUNT( * ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT - 58 * - - COUNT ( * ) col2
----
-58

query I rowsort
SELECT ALL - NULLIF ( - 32, - + 22 + 83 * + 0 * + - 87 ) * + + 19 AS col2
----
608

query I rowsort
SELECT - 57 + + 28
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL - MIN( ALL - 91 ) * - COUNT( * ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL - MIN ( ALL - 91 ) * - COUNT ( * ) col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7509
SELECT - 33 + - 81 AS col2, 70 * + + COALESCE ( - COUNT( ALL 85 ), 0, - 33 * COUNT( * ) + - 24 + + NULLIF ( MIN( ALL - 62 ), - 85 / + 77 ) + - 65 + 44 - + SUM( CAST( NULL AS SIGNED ) ) + - 6 + + 5 * MAX( DISTINCT CASE - 6 WHEN - 70 THEN 31 END ) * - - 69 ) + 59
----
-114
-11

skipif mysql # not compatible
query II rowsort label-7509
SELECT - 33 + - 81 AS col2, 70 * + + COALESCE ( - COUNT ( ALL 85 ), 0, - 33 * COUNT ( * ) + - 24 + + NULLIF ( MIN ( ALL - 62 ), - 85 / + 77 ) + - 65 + 44 - + SUM ( CAST ( NULL AS INTEGER ) ) + - 6 + + 5 * MAX ( DISTINCT CASE - 6 WHEN - 70 THEN 31 END ) * - - 69 ) + 59
----
-114
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-7510
SELECT - 3 DIV 38 AS col0, 68 + - + COALESCE ( - 73, ( - 57 ) DIV - - 73 )
----
0
141

skipif mysql # not compatible
query II rowsort label-7510
SELECT - 3 / 38 AS col0, 68 + - + COALESCE ( - 73, ( - 57 ) / - - 73 )
----
0
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT 77 * + - 33 + + NULLIF ( COUNT( * ), + 14 ) + - 40 * + 59 AS col1
----
-4900

skipif mysql # not compatible
query I rowsort label-7511
SELECT 77 * + - 33 + + NULLIF ( COUNT ( * ), + 14 ) + - 40 * + 59 AS col1
----
-4900

query I rowsort
SELECT 68 * - + 35 + + 62 AS col0
----
-2318

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT + COUNT( * ) * + 20 + - 5 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7513
SELECT + COUNT ( * ) * + 20 + - 5 AS col0
----
15

query I rowsort
SELECT ALL + - ( + - ( - - 45 ) ) col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT - 21 * CASE 71 WHEN - 24 * + 1 - - 97 / - 28 * - NULLIF ( - 90, + 89 ) + - + ( - 69 ) + - 90 + - COUNT( * ) THEN + COALESCE ( ( + - 65 ), + COUNT( * ) ) ELSE NULL END * - 29 * 98 AS col0, 30
----
NULL
30

skipif mysql # not compatible
query II rowsort label-7515
SELECT - 21 * CASE 71 WHEN - 24 * + 1 - - 97 / - 28 * - NULLIF ( - 90, + 89 ) + - + ( - 69 ) + - 90 + - COUNT ( * ) THEN + COALESCE ( ( + - 65 ), + COUNT ( * ) ) ELSE NULL END * - 29 * 98 AS col0, 30
----
NULL
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT DISTINCT NULLIF ( + 25, + CASE + - COUNT( * ) WHEN 17 + - 74 THEN 75 ELSE + MAX( DISTINCT - - 22 ) / + 50 END ) AS col1, 74 + - 19
----
25
55

skipif mysql # not compatible
query II rowsort label-7516
SELECT DISTINCT NULLIF ( + 25, + CASE + - COUNT ( * ) WHEN 17 + - 74 THEN 75 ELSE + MAX ( DISTINCT - - 22 ) / + 50 END ) AS col1, 74 + - 19
----
25
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - + SUM( 67 ) * + 18 * 14 * + 61
----
-1029924

skipif mysql # not compatible
query I rowsort label-7517
SELECT - + SUM ( 67 ) * + 18 * 14 * + 61
----
-1029924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7518
SELECT ALL + - 62 + + - NULLIF ( 17, - 63 ) + - 26 DIV + - MAX( - 13 ) * + - COUNT( * ) * + + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL + - 62 + + - NULLIF ( 17, - 63 ) + - 26 / + - MAX ( - 13 ) * + - COUNT ( * ) * + + COUNT ( * )
----
-77

query I rowsort
SELECT DISTINCT - - 0 + 79
----
79

query I rowsort
SELECT ALL 92 + 92 AS col0
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL - - COUNT( * ) + 98 * 68 - - - 81
----
6584

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - - COUNT ( * ) + 98 * 68 - - - 81
----
6584

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT SUM( 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7522
SELECT SUM ( 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + 75 * 1 * 8 * - - COUNT( * )
----
600

skipif mysql # not compatible
query I rowsort label-7523
SELECT + 75 * 1 * 8 * - - COUNT ( * )
----
600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7524
SELECT - - 19 - - CASE - COUNT( * ) WHEN + + 93 THEN - - ( + - 16 ) WHEN COUNT( - 38 ) * CAST( 47 AS DECIMAL ) - 31 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT - - 19 - - CASE - COUNT ( * ) WHEN + + 93 THEN - - ( + - 16 ) WHEN COUNT ( - 38 ) * CAST ( 47 AS REAL ) - 31 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT - ( - - ( + - ( - 57 ) ) ) AS col1, + 41 AS col2
----
-57
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL - COUNT( * ) * 60 * + 83 AS col0
----
-4980

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - COUNT ( * ) * 60 * + 83 AS col0
----
-4980

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL + COALESCE ( + 28, - 79 ) + + SUM( - + 24 ) - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + COALESCE ( + 28, - 79 ) + + SUM ( - + 24 ) - - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT - - SUM( + - 18 ) * - 86
----
1548

skipif mysql # not compatible
query I rowsort label-7528
SELECT - - SUM ( + - 18 ) * - 86
----
1548

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL 81 * + 26 + - COUNT( * ) AS col2
----
2105

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL 81 * + 26 + - COUNT ( * ) AS col2
----
2105

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

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL - + 45 * - + COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL 94 + - - 28 * - 0 + COUNT( * ) + - 33 * 57
----
-1786

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL 94 + - - 28 * - 0 + COUNT ( * ) + - 33 * 57
----
-1786

query I rowsort
SELECT ALL 38 * 11 + + 85
----
503

query I rowsort
SELECT DISTINCT - 56 + + 88 + + 86 col1
----
118

query II rowsort
SELECT DISTINCT 25, CASE - 69 WHEN + + 33 THEN 14 ELSE NULL END AS col1
----
25
NULL

query I rowsort
SELECT + 17 * - NULLIF ( - 73, - - 50 ) * + 79
----
98039

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT + 23 * MAX( + - 70 )
----
-1610

skipif mysql # not compatible
query I rowsort label-7536
SELECT + 23 * MAX ( + - 70 )
----
-1610

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT ALL 29 DIV + + 38
----
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL 29 / + + 38
----
0

query I rowsort
SELECT - COALESCE ( - - 67, 92 ) col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT + ( + + 94 ) - - COUNT( * ) + - 78 * COUNT( * ) + + - 75
----
-58

skipif mysql # not compatible
query I rowsort label-7539
SELECT + ( + + 94 ) - - COUNT ( * ) + - 78 * COUNT ( * ) + + - 75
----
-58

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

skipif mysql # not compatible
query I rowsort label-7540
SELECT - ( + + SUM ( - - CAST ( 14 AS INTEGER ) ) )
----
-14

query I rowsort
SELECT ALL 81 * + ( 54 ) AS col1
----
4374

onlyif mysql # DIV for integer division: 
query II rowsort label-7542
SELECT ALL 93 DIV - - 11 * + + 1, + 70 + + 11 - + 20 - + 49 * - 84 AS col0
----
8
4177

skipif mysql # not compatible
query II rowsort label-7542
SELECT ALL 93 / - - 11 * + + 1, + 70 + + 11 - + 20 - + 49 * - 84 AS col0
----
8
4177

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT CAST( + 79 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7544
SELECT CAST ( + 79 AS INTEGER ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7545
SELECT + 40 DIV - CAST( + - MIN( ALL 16 ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-7545
SELECT + 40 / - CAST ( + - MIN ( ALL 16 ) AS INTEGER )
----
2

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL 22 * + + 34 * 45 * + COUNT( * )
----
33660

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL 22 * + + 34 * 45 * + COUNT ( * )
----
33660

query I rowsort
SELECT + 27 * 59
----
1593

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

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

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

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

query I rowsort
SELECT - 86 * + - NULLIF ( + + 81, - 76 + - - 54 - 57 * + ( - 28 ) ) * 72
----
501552

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + 97 * - 90 * + 62 * 62 * + ( + + SUM( ALL - 14 ) )
----
469813680

skipif mysql # not compatible
query I rowsort label-7553
SELECT + 97 * - 90 * + 62 * 62 * + ( + + SUM ( ALL - 14 ) )
----
469813680

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

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

query I rowsort
SELECT DISTINCT - 19 * 54
----
-1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT DISTINCT 80 * 72 + - 9 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT 80 * 72 + - 9 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL 49 * 14 + COUNT( - 68 )
----
687

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL 49 * 14 + COUNT ( - 68 )
----
687

query I rowsort
SELECT DISTINCT - 19 * 20 AS col0
----
-380

query I rowsort
SELECT + 14 + + 11 * - 45
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT - 20 * MIN( ALL 93 ) AS col0
----
-1860

skipif mysql # not compatible
query I rowsort label-7560
SELECT - 20 * MIN ( ALL 93 ) AS col0
----
-1860

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT - 31 + - 79 DIV - 18 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-7561
SELECT - 31 + - 79 / - 18 AS col0
----
-27

query I rowsort
SELECT COALESCE ( ( + 73 ), + 11 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL 92 * 78 + - COUNT( * ) AS col0
----
7175

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL 92 * 78 + - COUNT ( * ) AS col0
----
7175

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

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

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

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

query I rowsort
SELECT ALL - 48 + 43 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT DISTINCT 30 DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT 30 / - 83 AS col2
----
0

query I rowsort
SELECT DISTINCT - 30 - 92 AS col2
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT ALL + 75 DIV - 26
----
-2

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL + 75 / - 26
----
-2

query I rowsort
SELECT 92 + + 57 AS col0
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7571
SELECT DISTINCT + MIN( DISTINCT - 2 ) DIV + 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT + MIN ( DISTINCT - 2 ) / + 5 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT COUNT( * ) + - ( + 76 + 32 ) AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-7572
SELECT COUNT ( * ) + - ( + 76 + 32 ) AS col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL - COUNT( DISTINCT - ( 91 ) ) * + 5
----
-5

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL - COUNT ( DISTINCT - ( 91 ) ) * + 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT 82 + MAX( 94 + 47 ) * 6
----
928

skipif mysql # not compatible
query I rowsort label-7574
SELECT 82 + MAX ( 94 + 47 ) * 6
----
928

query I rowsort
SELECT 18 * 90
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT SUM( ALL 39 ) + 12 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-7576
SELECT SUM ( ALL 39 ) + 12 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT DISTINCT 40 * - MIN( DISTINCT - 30 * 81 ) col0
----
97200

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT 40 * - MIN ( DISTINCT - 30 * 81 ) col0
----
97200

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

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

query I rowsort
SELECT 8 * - 23 AS col1
----
-184

query I rowsort
SELECT 86 * - 81 + ( COALESCE ( 65, + 10 + - 41, - 84 + 14 ) )
----
-6901

query I rowsort
SELECT 98 * 36
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL COUNT( * ) + + CASE + COUNT( * ) WHEN + ( + 90 ) THEN + 11 * 46 + + 13 / - AVG ( DISTINCT 61 - 18 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL COUNT ( * ) + + CASE + COUNT ( * ) WHEN + ( + 90 ) THEN + 11 * 46 + + 13 / - AVG ( DISTINCT 61 - 18 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7583
SELECT - 27 DIV - COUNT( * ) + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7583
SELECT - 27 / - COUNT ( * ) + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT 14 + 67 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7585
SELECT 5 * 37 - + AVG ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT 5 * 37 - + AVG ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7586
SELECT - CAST ( NULL AS INTEGER ) * - 51 + + 75
----
NULL

query I rowsort
SELECT DISTINCT 27 + 76
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT NULLIF ( 86, COUNT( DISTINCT 16 ) / + 71 ) + 41
----
127

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT NULLIF ( 86, COUNT ( DISTINCT 16 ) / + 71 ) + 41
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT ( - MIN( + ( 22 ) ) ) * 65
----
-1430

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT ( - MIN ( + ( 22 ) ) ) * 65
----
-1430

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT - 66 DIV 67 + 25
----
25

skipif mysql # not compatible
query I rowsort label-7591
SELECT - 66 / 67 + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL - 74 * + MIN( ALL + 67 ) AS col1
----
-4958

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - 74 * + MIN ( ALL + 67 ) AS col1
----
-4958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7593
SELECT + COALESCE ( + NULLIF ( + 98, 4 ), + NULLIF ( CAST( NULL AS SIGNED ), - ( COALESCE ( 49, + 16 + ( ( - 8 ) + - 27 ) * - AVG ( ALL + CAST( NULL AS SIGNED ) ), + ( 12 ) ) ) * + 60 ) * + COUNT( * ) - 68 * 5, ( 58 ) * + COUNT( * ) ) + - 45 * + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7593
SELECT + COALESCE ( + NULLIF ( + 98, 4 ), + NULLIF ( CAST ( NULL AS INTEGER ), - ( COALESCE ( 49, + 16 + ( ( - 8 ) + - 27 ) * - AVG ( ALL + CAST ( NULL AS INTEGER ) ), + ( 12 ) ) ) * + 60 ) * + COUNT ( * ) - 68 * 5, ( 58 ) * + COUNT ( * ) ) + - 45 * + COUNT ( * ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT + CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN COUNT( * ) ELSE 7 END AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7594
SELECT + CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN COUNT ( * ) ELSE 7 END AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7595
SELECT ALL 13 + + 51 DIV - CAST( 24 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL 13 + + 51 / - CAST ( 24 AS INTEGER )
----
11

query I rowsort
SELECT 28 * + 1 AS col2
----
28

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

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

query I rowsort
SELECT + 3 * 22 + - COALESCE ( + ( 12 ), 26 ) col0
----
54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7600
SELECT - ( - CASE 25 WHEN ( - 61 ) THEN NULL ELSE - COUNT( * ) DIV COUNT( * ) + ( 42 ) DIV 33 END ) * COALESCE ( - 48, 19 ) + - 13 col0
----
-13

skipif mysql # not compatible
query I rowsort label-7600
SELECT - ( - CASE 25 WHEN ( - 61 ) THEN NULL ELSE - COUNT ( * ) / COUNT ( * ) + ( 42 ) / 33 END ) * COALESCE ( - 48, 19 ) + - 13 col0
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL - COALESCE ( + ( 40 ), COUNT( ALL + 1 ), - 45 * ( 21 * - 34 ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL - COALESCE ( + ( 40 ), COUNT ( ALL + 1 ), - 45 * ( 21 * - 34 ) ) AS col2
----
-40

query I rowsort
SELECT DISTINCT 98 - 69 * + 64
----
-4318

query I rowsort
SELECT DISTINCT + ( 77 ) * 57
----
4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7605
SELECT - + NULLIF ( 89, - 11 * CAST( NULL AS SIGNED ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7605
SELECT - + NULLIF ( 89, - 11 * CAST ( NULL AS INTEGER ) ) AS col0
----
-89

query I rowsort
SELECT DISTINCT + 97 * 52 AS col0
----
5044

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

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

query I rowsort
SELECT DISTINCT + + 78 * - 72 AS col1
----
-5616

query I rowsort
SELECT - 13 - + 24
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7610
SELECT 18 DIV - 44 col2
----
0

skipif mysql # not compatible
query I rowsort label-7610
SELECT 18 / - 44 col2
----
0

query I rowsort
SELECT DISTINCT 17 * + + 65 AS col0
----
1105

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7613
SELECT ALL + ( + COALESCE ( 52, CAST( 60 AS SIGNED ) + + 27 ) ) DIV + 9 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + ( + COALESCE ( 52, CAST ( 60 AS INTEGER ) + + 27 ) ) / + 9 AS col2
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT DISTINCT + 27 DIV - - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT + 27 / - - 87 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7617
SELECT NULLIF ( - + 47, - 93 ) DIV + COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7617
SELECT NULLIF ( - + 47, - 93 ) / + COUNT ( * ) AS col0
----
-47

query I rowsort
SELECT 17 + + - ( 38 ) * 20
----
-743

query I rowsort
SELECT ALL - 9 + + 15 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT DISTINCT 28 * - ( - 73 ) / - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT 28 * - ( - 73 ) / - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL COUNT( * ) * + 2 + + 29 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL COUNT ( * ) * + 2 + + 29 AS col1
----
31

query I rowsort
SELECT 63 * + 95 + 66 col1
----
6051

query I rowsort
SELECT - 54 * - + 53
----
2862

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL + 22 * 20 + COUNT( * ) + 18 AS col1
----
459

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL + 22 * 20 + COUNT ( * ) + 18 AS col1
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT CASE + 47 WHEN COUNT( * ) THEN 61 WHEN NULLIF ( 6, + 68 + ( - COALESCE ( - COUNT( * ), - 61 ) ) * ( COUNT( * ) ) ) THEN NULL WHEN + 78 + 58 THEN + COALESCE ( - 37, 13 - + 90 ) / 58 + 17 * 61 WHEN 72 + - 91 THEN NULL ELSE NULL END - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT CASE + 47 WHEN COUNT ( * ) THEN 61 WHEN NULLIF ( 6, + 68 + ( - COALESCE ( - COUNT ( * ), - 61 ) ) * ( COUNT ( * ) ) ) THEN NULL WHEN + 78 + 58 THEN + COALESCE ( - 37, 13 - + 90 ) / 58 + 17 * 61 WHEN 72 + - 91 THEN NULL ELSE NULL END - - 62
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT + - NULLIF ( - 68, + 38 ) * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7628
SELECT + - NULLIF ( - 68, + 38 ) * + COUNT ( * )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT ALL + 20 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + 20 / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL + + NULLIF ( - CASE COUNT( * ) WHEN 98 THEN - 51 WHEN 39 THEN NULL WHEN - COUNT( ALL + 59 ) * 35 THEN 64 * 98 ELSE NULL END, AVG ( 81 ) ) * 80 - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + + NULLIF ( - CASE COUNT ( * ) WHEN 98 THEN - 51 WHEN 39 THEN NULL WHEN - COUNT ( ALL + 59 ) * 35 THEN 64 * 98 ELSE NULL END, AVG ( 81 ) ) * 80 - 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL MAX( 9 ) * + 56 - 35
----
469

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL MAX ( 9 ) * + 56 - 35
----
469

query I rowsort
SELECT + COALESCE ( + - 87, - 73 ) - 19
----
-106

query I rowsort
SELECT ALL 86 * - - 91 AS col0
----
7826

query I rowsort
SELECT + 30 - - ( - 74 ) * - 9 AS col2
----
696

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

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

query I rowsort
SELECT + 74 + + ( + 39 ) AS col0
----
113

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT - + 24 * + 67 + + 34 DIV - 11
----
-1611

skipif mysql # not compatible
query I rowsort label-7638
SELECT - + 24 * + 67 + + 34 / - 11
----
-1611

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

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

query I rowsort
SELECT + + 55 + - - 78 AS col2
----
133

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

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

query I rowsort
SELECT + ( 41 ) * + 7 * - 12
----
-3444

query I rowsort
SELECT + 47 + 32 * + - 49 AS col1
----
-1521

query I rowsort
SELECT - 40 + - 38 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL + NULLIF ( 29, + COUNT( * ) ) * - NULLIF ( 94, 81 )
----
-2726

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + NULLIF ( 29, + COUNT ( * ) ) * - NULLIF ( 94, 81 )
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT - MIN( 32 ) + - 89 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-7646
SELECT - MIN ( 32 ) + - 89 AS col2
----
-121

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT + 22 + - 70 DIV 90 - - 55
----
77

skipif mysql # not compatible
query I rowsort label-7649
SELECT + 22 + - 70 / 90 - - 55
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL COALESCE ( + + 10, + + 57 + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL COALESCE ( + + 10, + + 57 + COUNT ( * ) )
----
10

query I rowsort
SELECT ALL 63 + 12 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL - 78 + - - 96 + - ( SUM( + 93 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - 78 + - - 96 + - ( SUM ( + 93 ) )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT ALL + 23 + 25 DIV + - 13 + + ( 6 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + 23 + 25 / + - 13 + + ( 6 ) AS col1
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT - SUM( - 96 ) - - COUNT( * ) * + 22
----
118

skipif mysql # not compatible
query I rowsort label-7656
SELECT - SUM ( - 96 ) - - COUNT ( * ) * + 22
----
118

query I rowsort
SELECT - 27 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7658
SELECT - + COUNT( * ) DIV - 21 + - 27 * - 14 AS col2
----
378

skipif mysql # not compatible
query I rowsort label-7658
SELECT - + COUNT ( * ) / - 21 + - 27 * - 14 AS col2
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7659
SELECT - CASE - COALESCE ( + 35, 87 ) WHEN + 82 THEN NULL ELSE + COALESCE ( COUNT( * ), + 74 * + MAX( DISTINCT - 13 ) ) END * NULLIF ( 26 DIV ( COUNT( * ) ), 78 + + 60 * 88 )
----
-26

skipif mysql # not compatible
query I rowsort label-7659
SELECT - CASE - COALESCE ( + 35, 87 ) WHEN + 82 THEN NULL ELSE + COALESCE ( COUNT ( * ), + 74 * + MAX ( DISTINCT - 13 ) ) END * NULLIF ( 26 / ( COUNT ( * ) ), 78 + + 60 * 88 )
----
-26

query I rowsort
SELECT - + 71 * + 47
----
-3337

query I rowsort
SELECT - + 60 + - 28
----
-88

query I rowsort
SELECT ALL + 91 * 96 AS col0
----
8736

query I rowsort
SELECT + + 96 * 96 + 42
----
9258

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT - - 72 * + 99 - - - COUNT( * ) - 14
----
7113

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT - - 72 * + 99 - - - COUNT ( * ) - 14
----
7113

query I rowsort
SELECT 94 * - 53 + + 12
----
-4970

query I rowsort
SELECT - 6 * 47 + 38
----
-244

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT + - 10 DIV 17 + + 1 + ( - 95 )
----
-94

skipif mysql # not compatible
query I rowsort label-7668
SELECT + - 10 / 17 + + 1 + ( - 95 )
----
-94

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

query I rowsort
SELECT + 28 + + 99
----
127

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

skipif mysql # not compatible
query I rowsort label-7671
SELECT + ( + MAX ( 54 ) )
----
54

query II rowsort
SELECT + 96 AS col0, + 39
----
96
39

query I rowsort
SELECT + - 18 col2
----
-18

query I rowsort
SELECT + NULLIF ( - 4, - - 55 + + 92 ) AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7675
SELECT - NULLIF ( - - 15, + NULLIF ( + COUNT( * ), 76 ) ) * - 69 + 7 * - ( 51 * 50 - - 84 DIV + 95 )
----
-16815

skipif mysql # not compatible
query I rowsort label-7675
SELECT - NULLIF ( - - 15, + NULLIF ( + COUNT ( * ), 76 ) ) * - 69 + 7 * - ( 51 * 50 - - 84 / + 95 )
----
-16815

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT ALL + 15 DIV - + ( + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL + 15 / - + ( + 41 )
----
0

query I rowsort
SELECT + + 9 * + 14
----
126

query II rowsort
SELECT DISTINCT + + 82, 50 AS col0
----
82
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL 15 * - 37 * - COALESCE ( + 39, + 78 + 29 ) * + CASE + 27 WHEN 65 + - 36 THEN 52 + 11 * + 77 WHEN + 38 + - COUNT( * ) * AVG ( DISTINCT + 39 ) THEN NULL END + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL 15 * - 37 * - COALESCE ( + 39, + 78 + 29 ) * + CASE + 27 WHEN 65 + - 36 THEN 52 + 11 * + 77 WHEN + 38 + - COUNT ( * ) * AVG ( DISTINCT + 39 ) THEN NULL END + - 99
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7681
SELECT SUM ( + + 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT ALL - SUM( + 25 ) * + 72 + - + 55 + COUNT( * ) / COUNT( 43 ) * - 77 + CAST( NULL AS SIGNED ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - SUM ( + 25 ) * + 72 + - + 55 + COUNT ( * ) / COUNT ( 43 ) * - 77 + CAST ( NULL AS INTEGER ) * 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT - CASE - + COUNT( * ) WHEN - 89 * - - COUNT( * ) * 98 THEN - 35 / + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT - CASE - + COUNT ( * ) WHEN - 89 * - - COUNT ( * ) * 98 THEN - 35 / + 57 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT + 5 - 22 + - - 86 * + + 88 * COUNT( * ) AS col1
----
7551

skipif mysql # not compatible
query I rowsort label-7685
SELECT + 5 - 22 + - - 86 * + + 88 * COUNT ( * ) AS col1
----
7551

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT DISTINCT CASE - + 74 WHEN + 40 * + 12 - + 43 THEN 11 + MIN( + 6 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT CASE - + 74 WHEN + 40 * + 12 - + 43 THEN 11 + MIN ( + 6 ) END AS col1
----
NULL

query I rowsort
SELECT + 68 + + + 14 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + COUNT( * ) - + 90 + COUNT( * ) - COALESCE ( 92, + 61 * - 15 ) - 30 * + 97 * COUNT( * ) * CASE 84 - - 16 WHEN - COUNT( * ) * 93 + MAX( ALL 92 - + 2 ) * + 56 THEN 14 WHEN - COUNT( * ) * 28 THEN + 67 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT + COUNT ( * ) - + 90 + COUNT ( * ) - COALESCE ( 92, + 61 * - 15 ) - 30 * + 97 * COUNT ( * ) * CASE 84 - - 16 WHEN - COUNT ( * ) * 93 + MAX ( ALL 92 - + 2 ) * + 56 THEN 14 WHEN - COUNT ( * ) * 28 THEN + 67 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT - COUNT( * ) + + - NULLIF ( - + NULLIF ( - 5, ( 34 ) * + 25 ), - 64 ) + 56 * 77
----
4306

skipif mysql # not compatible
query I rowsort label-7690
SELECT - COUNT ( * ) + + - NULLIF ( - + NULLIF ( - 5, ( 34 ) * + 25 ), - 64 ) + 56 * 77
----
4306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT ALL CASE COALESCE ( 17, + CAST( 14 AS SIGNED ), 30 * - AVG ( ALL 78 ) ) WHEN + 49 THEN + 37 END - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL CASE COALESCE ( 17, + CAST ( 14 AS INTEGER ), 30 * - AVG ( ALL 78 ) ) WHEN + 49 THEN + 37 END - - 8
----
NULL

query I rowsort
SELECT + 15 * + - 78
----
-1170

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

skipif mysql # not compatible
query I rowsort label-7693
SELECT + 32 / + COUNT ( * ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT - CAST( 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-7694
SELECT - CAST ( 65 AS INTEGER )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT 23 + + - 76 + - - 94 DIV + 27 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7695
SELECT 23 + + - 76 + - - 94 / + 27 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT + COUNT( * ) * 19 + + 31 + - ( + ( CAST( NULL AS SIGNED ) ) ) + COUNT( * ) * 36 * - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT + COUNT ( * ) * 19 + + 31 + - ( + ( CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) * 36 * - 35 AS col2
----
NULL

query I rowsort
SELECT ALL 37 - + 25 - + 21 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT DISTINCT - 93 * - ( COALESCE ( + - 53, + 13 + + 16 DIV - 9, - 76 + 39 * 56, - CASE 67 WHEN 91 THEN 46 WHEN 70 THEN NULL ELSE NULL END + - 21 ) ) * + 71 AS col0
----
-349959

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT - 93 * - ( COALESCE ( + - 53, + 13 + + 16 / - 9, - 76 + 39 * 56, - CASE 67 WHEN 91 THEN 46 WHEN 70 THEN NULL ELSE NULL END + - 21 ) ) * + 71 AS col0
----
-349959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7699
SELECT - 90 * - CAST( NULL AS SIGNED ) AS col1, - COALESCE ( - 51, - 27, COUNT( * ) )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-7699
SELECT - 90 * - CAST ( NULL AS INTEGER ) AS col1, - COALESCE ( - 51, - 27, COUNT ( * ) )
----
NULL
51

query I rowsort
SELECT ALL - - 60 col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT 64 * CAST( + 47 AS SIGNED )
----
3008

skipif mysql # not compatible
query I rowsort label-7701
SELECT 64 * CAST ( + 47 AS INTEGER )
----
3008

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

skipif mysql # not compatible
query I rowsort label-7702
SELECT - MIN ( + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7703
SELECT ALL - + SUM( DISTINCT 4 ) AS col2, + 33 + - - 25 AS col1
----
-4
58

skipif mysql # not compatible
query II rowsort label-7703
SELECT ALL - + SUM ( DISTINCT 4 ) AS col2, + 33 + - - 25 AS col1
----
-4
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT + 56 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT + 56 / 57
----
0

query II rowsort
SELECT + 26 * - 30 AS col0, 52
----
-780
52

query I rowsort
SELECT COALESCE ( 6, 80 ) * - 92 + + 56 AS col0
----
-496

query I rowsort
SELECT + ( 71 ) * + 58
----
4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT ( ( + + 64 ) ) * - NULLIF ( 95, 25 + + 3 ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT ( ( + + 64 ) ) * - NULLIF ( 95, 25 + + 3 ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 58 + + ( - 55 ) + 3
----
-110

query I rowsort
SELECT DISTINCT - ( - 19 ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT + COUNT( * ) - + ( - 29 ) - - + 29
----
59

skipif mysql # not compatible
query I rowsort label-7711
SELECT + COUNT ( * ) - + ( - 29 ) - - + 29
----
59

query I rowsort
SELECT DISTINCT - + 66 + ( 33 ) - 58 * 21
----
-1251

query I rowsort
SELECT 92 + - 31 + 68 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT 27 * 82 * COALESCE ( + COUNT( * ), + 7 * 42 + + 18 ) AS col2
----
2214

skipif mysql # not compatible
query I rowsort label-7714
SELECT 27 * 82 * COALESCE ( + COUNT ( * ), + 7 * 42 + + 18 ) AS col2
----
2214

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7717
SELECT ALL 76 + - 47 DIV COUNT( * ) * 35 AS col2
----
-1569

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL 76 + - 47 / COUNT ( * ) * 35 AS col2
----
-1569

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT 59 * ( + 29 ) + - NULLIF ( 18, + ( - 37 ) * MAX( + 32 * + 45 ) ) + 74 AS col2
----
1767

skipif mysql # not compatible
query I rowsort label-7718
SELECT 59 * ( + 29 ) + - NULLIF ( 18, + ( - 37 ) * MAX ( + 32 * + 45 ) ) + 74 AS col2
----
1767

query I rowsort
SELECT 52 - 92
----
-40

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

skipif mysql # not compatible
query I rowsort label-7720
SELECT COUNT ( * ) + - COUNT ( * ) * - SUM ( 85 ) AS col1
----
86

query II rowsort
SELECT ALL 92 AS col2, + 91 AS col0
----
92
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT 42 * - 38 * CAST( - 21 AS SIGNED )
----
33516

skipif mysql # not compatible
query I rowsort label-7722
SELECT 42 * - 38 * CAST ( - 21 AS INTEGER )
----
33516

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL 63 * + ( - - COUNT( * ) ) * 57 * 36 AS col0
----
129276

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL 63 * + ( - - COUNT ( * ) ) * 57 * 36 AS col0
----
129276

query I rowsort
SELECT DISTINCT - ( - 28 ) - 73 AS col0
----
-45

query I rowsort
SELECT ALL COALESCE ( 38, - - 28 ) - - 5
----
43

query I rowsort
SELECT DISTINCT 68 * + ( + + 7 )
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT 42 * + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7727
SELECT 42 * + COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT DISTINCT - CASE 81 WHEN - + 6 * + + 68 THEN - ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT - CASE 81 WHEN - + 6 * + + 68 THEN - ( COUNT ( * ) ) END
----
NULL

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT 20 * - COUNT( + 25 ) * + 0 * + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT 20 * - COUNT ( + 25 ) * + 0 * + 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT - 97 + + + ( + MIN( ALL - - 14 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-7734
SELECT - 97 + + + ( + MIN ( ALL - - 14 ) )
----
-83

query I rowsort
SELECT - ( 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7736
SELECT + + 73 DIV + 13 + 77 + 74 * - - 43 + + COUNT( * ) * - 14 col1
----
3250

skipif mysql # not compatible
query I rowsort label-7736
SELECT + + 73 / + 13 + 77 + 74 * - - 43 + + COUNT ( * ) * - 14 col1
----
3250

query I rowsort
SELECT - 39 * - 7 - - 95 * 69
----
6828

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT - 24 * + - 91 * - 88 + - + COUNT( + 83 )
----
-192193

skipif mysql # not compatible
query I rowsort label-7738
SELECT - 24 * + - 91 * - 88 + - + COUNT ( + 83 )
----
-192193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT ALL CASE - COUNT( * ) WHEN + COUNT( * ) * - + 83 + + 38 / + ( - CAST( + CASE + 98 WHEN ( - COUNT( * ) ) THEN ( + CASE WHEN + 99 IS NOT NULL THEN 91 END ) + 36 WHEN 73 THEN - 22 END AS SIGNED ) / - 39 ) THEN NULL WHEN + 73 THEN 74 WHEN + CAST( COUNT( - 19 ) AS SIGNED ) THEN NULL END + - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL CASE - COUNT ( * ) WHEN + COUNT ( * ) * - + 83 + + 38 / + ( - CAST ( + CASE + 98 WHEN ( - COUNT ( * ) ) THEN ( + CASE WHEN + 99 IS NOT NULL THEN 91 END ) + 36 WHEN 73 THEN - 22 END AS INTEGER ) / - 39 ) THEN NULL WHEN + 73 THEN 74 WHEN + CAST ( COUNT ( - 19 ) AS INTEGER ) THEN NULL END + - 15 AS col1
----
NULL

query I rowsort
SELECT - 63 + - 5
----
-68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7741
SELECT + 52 / CAST( NULL AS DECIMAL ) - + CAST( - - 90 AS SIGNED ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7741
SELECT + 52 / CAST ( NULL AS REAL ) - + CAST ( - - 90 AS INTEGER ) * - 72
----
NULL

query I rowsort
SELECT DISTINCT - 20 + 45
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7743
SELECT ALL - - COALESCE ( + - 98, - - AVG ( ALL + ( - - 82 ) ) DIV ( + CAST( 96 AS SIGNED ) ), 60 + 12 * SUM( 84 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - - COALESCE ( + - 98, - - AVG ( ALL + ( - - 82 ) ) / ( + CAST ( 96 AS INTEGER ) ), 60 + 12 * SUM ( 84 ) )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT + 90 / + - NULLIF ( - 22, - 47 - 87 / + 90 ) * CAST( + CAST( NULL AS SIGNED ) + 31 * COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT + 90 / + - NULLIF ( - 22, - 47 - 87 / + 90 ) * CAST ( + CAST ( NULL AS INTEGER ) + 31 * COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT DISTINCT + 65 / - 17 + + 21 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT + 65 / - 17 + + 21 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT DISTINCT 78 + + ( + COUNT( * ) ), - 25 AS col2
----
79
-25

skipif mysql # not compatible
query II rowsort label-7746
SELECT DISTINCT 78 + + ( + COUNT ( * ) ), - 25 AS col2
----
79
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7747
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) ) + + - 24 DIV + 15 + + 76 * 30
----
2279

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + - 24 / + 15 + + 76 * 30
----
2279

query II rowsort
SELECT + 65 AS col1, 59
----
65
59

query I rowsort
SELECT + CASE - 13 WHEN - 57 THEN NULL ELSE - - 4 * + 47 END
----
188

query I rowsort
SELECT 58 + + + 91
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT ( + 78 ) * CASE + 34 WHEN + + 25 THEN - 54 - + 64 WHEN + 97 THEN NULLIF ( CASE 38 WHEN + 1 THEN NULL ELSE COALESCE ( + 93, + COALESCE ( + 18, CAST( NULL AS SIGNED ) * 28 ) ) END, ( COUNT( * ) ) ) * 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT ( + 78 ) * CASE + 34 WHEN + + 25 THEN - 54 - + 64 WHEN + 97 THEN NULLIF ( CASE 38 WHEN + 1 THEN NULL ELSE COALESCE ( + 93, + COALESCE ( + 18, CAST ( NULL AS INTEGER ) * 28 ) ) END, ( COUNT ( * ) ) ) * 42 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7752
SELECT DISTINCT + MIN( - 44 ) DIV + + COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + MIN ( - 44 ) / + + COUNT ( * ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7753
SELECT 17 DIV - 68 * 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7753
SELECT 17 / - 68 * 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL - ( + - SUM( ALL - 86 ) ) - 59 - - 55 * - - 1
----
-90

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL - ( + - SUM ( ALL - 86 ) ) - 59 - - 55 * - - 1
----
-90

query II rowsort
SELECT 19, + 43 col0
----
19
43

query II rowsort
SELECT ALL - 68 AS col0, - 77 + - 58 AS col1
----
-68
-135

query I rowsort
SELECT ALL - CASE 49 WHEN - 68 * 40 THEN NULL WHEN - 12 * + 38 + - NULLIF ( ( + 7 ), + 26 ) * - 95 THEN NULL WHEN - ( 61 ) THEN NULL ELSE 17 END AS col0
----
-17

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

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

query I rowsort
SELECT 23 * - 47 AS col1
----
-1081

query I rowsort
SELECT 19 * + 4 + - 49 + - 77 + - 79 AS col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - 31 * COUNT( * ) - + + 28 + - - MAX( + 5 )
----
-54

skipif mysql # not compatible
query I rowsort label-7761
SELECT - 31 * COUNT ( * ) - + + 28 + - - MAX ( + 5 )
----
-54

query I rowsort
SELECT + CASE - + 17 WHEN ( 84 ) THEN + - 62 * 32 END * - 37
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 34, - + 89 * - + 70 * + 31 ) AS col1
----
-34

query I rowsort
SELECT - 68 - - + 78
----
10

query I rowsort
SELECT ALL - ( - 70 ) - + 24 + + 3 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT COUNT( + 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT COUNT ( + 98 ) AS col1
----
1

query I rowsort
SELECT + + 48 - 68 + + 97
----
77

query I rowsort
SELECT ALL + - 29 * - 76 * 74 * 81 AS col0
----
13210776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7769
SELECT - CAST( NULL AS SIGNED ) / + COALESCE ( 38, 58 ) AS col0, COUNT( * ) * + + 31 * - COUNT( ALL 50 ) AS col0
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-7769
SELECT - CAST ( NULL AS INTEGER ) / + COALESCE ( 38, 58 ) AS col0, COUNT ( * ) * + + 31 * - COUNT ( ALL 50 ) AS col0
----
NULL
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7770
SELECT ALL 64 + + + CAST( - MAX( - - CASE CAST( NULL AS SIGNED ) WHEN + 33 THEN NULL ELSE 43 END ) AS SIGNED ) + 63
----
84

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL 64 + + + CAST ( - MAX ( - - CASE CAST ( NULL AS INTEGER ) WHEN + 33 THEN NULL ELSE 43 END ) AS INTEGER ) + 63
----
84

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

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

query I rowsort
SELECT + - 71 * - 7
----
497

query I rowsort
SELECT + - 66 + + 11 AS col0
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7774
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7774
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL - - 25 + - 78 AS col0
----
-53

query II rowsort
SELECT ALL + + 5, 46 + + + 53 * - CASE 59 WHEN - 47 - 29 THEN NULL ELSE 10 END * + 59 col2
----
5
-31224

query II rowsort
SELECT DISTINCT - ( 67 ) * 88 + - + 75, 82 AS col0
----
-5971
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7778
SELECT ALL - 75 * + - CASE 74 WHEN + 36 THEN NULL ELSE - + COUNT( * ) * 45 + AVG ( ALL - 17 ) END + - COUNT( * ) / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL - 75 * + - CASE 74 WHEN + 36 THEN NULL ELSE - + COUNT ( * ) * 45 + AVG ( ALL - 17 ) END + - COUNT ( * ) / CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT + CAST( 69 AS SIGNED ) * - COUNT( * ) + + 24 * - 44
----
-1125

skipif mysql # not compatible
query I rowsort label-7779
SELECT + CAST ( 69 AS INTEGER ) * - COUNT ( * ) + + 24 * - 44
----
-1125

query I rowsort
SELECT ALL - - 28 * 69 + 92 + 50 * + + 59 + + 25 * 33 + 79
----
5878

query I rowsort
SELECT + + 44 - + NULLIF ( - + 87, - + 33 ) + + - 57
----
74

query II rowsort
SELECT + + 29 col1, 67 * 85
----
29
5695

query I rowsort
SELECT - - 64 * + 84 AS col2
----
5376

query I rowsort
SELECT 95 * + + 87 * - + 69 + + 6
----
-570279

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT ALL + 32 DIV 67 * 44 col2
----
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL + 32 / 67 * 44 col2
----
0

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

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

query I rowsort
SELECT + 40 * + 69 * - 38 AS col1
----
-104880

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT + 98 + + - 63 + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7789
SELECT + 98 + + - 63 + COUNT ( * )
----
36

query I rowsort
SELECT + 16 * + - 93 * 14 AS col0
----
-20832

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7792
SELECT ALL + 33 DIV - ( - 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL + 33 / - ( - 35 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7793
SELECT + COUNT( DISTINCT - CAST( - 72 AS DECIMAL ) ) + + + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7793
SELECT + COUNT ( DISTINCT - CAST ( - 72 AS REAL ) ) + + + 81 AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7794
SELECT - CAST( + - 12 AS SIGNED ) DIV + NULLIF ( + 36, - 24 + ( - 59 ) ) * + 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT - CAST ( + - 12 AS INTEGER ) / + NULLIF ( + 36, - 24 + ( - 59 ) ) * + 18 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL CASE - 19 WHEN - 98 THEN + + 19 / - + COUNT( * ) + COUNT( * ) WHEN - 65 THEN 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL CASE - 19 WHEN - 98 THEN + + 19 / - + COUNT ( * ) + COUNT ( * ) WHEN - 65 THEN 77 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL COUNT( DISTINCT - + NULLIF ( 12, - 34 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL COUNT ( DISTINCT - + NULLIF ( 12, - 34 ) )
----
1

query I rowsort
SELECT DISTINCT + 43 * - + NULLIF ( - + 98, + + ( - 89 ) ) AS col0
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT ALL ( - CASE - 71 WHEN + 55 THEN SUM( DISTINCT - 93 ) * + COALESCE ( + ( + 70 ), + 19 * + 45 - ( - 78 ), MAX( - 43 ) ) + 89 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL ( - CASE - 71 WHEN + 55 THEN SUM ( DISTINCT - 93 ) * + COALESCE ( + ( + 70 ), + 19 * + 45 - ( - 78 ), MAX ( - 43 ) ) + 89 ELSE NULL END )
----
NULL

query II rowsort
SELECT ALL + 61 * - 11, 3 + - - 91 AS col1
----
-671
94

query I rowsort
SELECT + CASE - + 39 WHEN - 42 THEN NULL ELSE - 16 END AS col1
----
-16

query I rowsort
SELECT DISTINCT + 14 * 98 + + + 70 * 79 * 44
----
244692

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT - 70 + - + CASE + 74 WHEN - 43 / + COALESCE ( + 34, - NULLIF ( ( 75 ), - 76 ) ) THEN NULL WHEN 5 * - 39 THEN COALESCE ( ( - 81 ), COUNT( * ) * + 91 ) ELSE + 77 END
----
-147

skipif mysql # not compatible
query I rowsort label-7802
SELECT - 70 + - + CASE + 74 WHEN - 43 / + COALESCE ( + 34, - NULLIF ( ( 75 ), - 76 ) ) THEN NULL WHEN 5 * - 39 THEN COALESCE ( ( - 81 ), COUNT ( * ) * + 91 ) ELSE + 77 END
----
-147

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT ALL + 20 + 5 DIV 94 * + 31 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + 20 + 5 / 94 * + 31 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7806
SELECT ALL - 62 + ( - 72 ) - - + MAX( DISTINCT - ( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) * - COALESCE ( + 88, - 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - 62 + ( - 72 ) - - + MAX ( DISTINCT - ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) * - COALESCE ( + 88, - 26 ) AS col1
----
NULL

query I rowsort
SELECT - 68 + + + CASE + 26 WHEN + - 97 THEN - + NULLIF ( + 31, - - 17 + 83 ) WHEN 41 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7808
SELECT ALL + 70 DIV - NULLIF ( - 96, ( + - 54 ) * + COUNT( * ) * SUM( DISTINCT 15 ) DIV 21 ) * 14 + - 53
----
-53

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + 70 / - NULLIF ( - 96, ( + - 54 ) * + COUNT ( * ) * SUM ( DISTINCT 15 ) / 21 ) * 14 + - 53
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7809
SELECT - CASE - - ( - - 37 ) WHEN + 65 THEN + CAST( NULL AS DECIMAL ) + - 36 + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT - CASE - - ( - - 37 ) WHEN + 65 THEN + CAST ( NULL AS REAL ) + - 36 + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT + - ( + 33 ) / - MAX( + 94 ) / - 66 * + CASE - 58 WHEN + 25 * 74 THEN + 79 WHEN - 86 + - 37 / 17 THEN COALESCE ( + 66, 24 + + 13 ) + 72 ELSE NULL END + 43 * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT + - ( + 33 ) / - MAX ( + 94 ) / - 66 * + CASE - 58 WHEN + 25 * 74 THEN + 79 WHEN - 86 + - 37 / 17 THEN COALESCE ( + 66, 24 + + 13 ) + 72 ELSE NULL END + 43 * 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT - NULLIF ( + COUNT( * ), CAST( + 98 AS SIGNED ) ) * 25 * CAST( + 5 AS SIGNED )
----
-125

skipif mysql # not compatible
query I rowsort label-7811
SELECT - NULLIF ( + COUNT ( * ), CAST ( + 98 AS INTEGER ) ) * 25 * CAST ( + 5 AS INTEGER )
----
-125

query I rowsort
SELECT ALL + ( 77 ) * 61
----
4697

query I rowsort
SELECT - + 99 + 86 + - 29
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7814
SELECT - - NULLIF ( - + MIN( ALL - 71 ), + - 20 * - 50 ) + - CAST( NULL AS SIGNED ) + - + CASE WHEN NOT COUNT( NULLIF ( 93, + 97 ) ) BETWEEN ( ( - ( - 81 ) ) ) AND ( NULL ) THEN + COUNT( * ) WHEN NULLIF ( SUM( ALL 42 ), 62 * - COUNT( * ) ) * - 18 IN ( CASE + 45 WHEN - ( + 69 ) * 88 THEN - CAST( 90 AS SIGNED ) * 97 END + - 66 ) THEN COUNT( 66 ) END * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT - - NULLIF ( - + MIN ( ALL - 71 ), + - 20 * - 50 ) + - CAST ( NULL AS INTEGER ) + - + CASE WHEN NOT COUNT ( NULLIF ( 93, + 97 ) ) BETWEEN ( ( - ( - 81 ) ) ) AND ( NULL ) THEN + COUNT ( * ) WHEN NULLIF ( SUM ( ALL 42 ), 62 * - COUNT ( * ) ) * - 18 IN ( CASE + 45 WHEN - ( + 69 ) * 88 THEN - CAST ( 90 AS INTEGER ) * 97 END + - 66 ) THEN COUNT ( 66 ) END * + 47
----
NULL

query I rowsort
SELECT DISTINCT + 18 * + 69
----
1242

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT DISTINCT - 6 DIV - 81 - ( - - 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - 6 / - 81 - ( - - 90 ) AS col1
----
-90

query I rowsort
SELECT + 28 + 94 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + NULLIF ( 12, - ( - ( 5 ) ) ) + 19 * - 4 * + - 85 * CASE 55 WHEN + 43 + + 64 / 73 THEN NULL WHEN 47 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT + NULLIF ( 12, - ( - ( 5 ) ) ) + 19 * - 4 * + - 85 * CASE 55 WHEN + 43 + + 64 / 73 THEN NULL WHEN 47 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT NULLIF ( - 49, + 84 ) * - 97 AS col1
----
4753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT CAST( + 31 AS SIGNED ) * + 87 * - 4 + - 52 AS col2
----
-10840

skipif mysql # not compatible
query I rowsort label-7820
SELECT CAST ( + 31 AS INTEGER ) * + 87 * - 4 + - 52 AS col2
----
-10840

query I rowsort
SELECT ( + 95 ) * - 62 + 20 + 36 col2
----
-5834

query II rowsort
SELECT + 41, 25 AS col0
----
41
25

onlyif mysql # DIV for integer division: 
query II rowsort label-7823
SELECT 68 AS col0, 14 DIV - + 26 AS col0
----
68
0

skipif mysql # not compatible
query II rowsort label-7823
SELECT 68 AS col0, 14 / - + 26 AS col0
----
68
0

query I rowsort
SELECT ALL 80 * 74 AS col0
----
5920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT CAST( 89 AS SIGNED ) * - ( 36 )
----
-3204

skipif mysql # not compatible
query I rowsort label-7825
SELECT CAST ( 89 AS INTEGER ) * - ( 36 )
----
-3204

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT 92 * - MAX( + 26 )
----
-2392

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT 92 * - MAX ( + 26 )
----
-2392

query II rowsort
SELECT ALL - 97 AS col1, - 65 AS col2
----
-97
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT DISTINCT + SUM( ALL - - 53 ) + - COALESCE ( - + COUNT( ALL - 71 ), + 24 )
----
54

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT + SUM ( ALL - - 53 ) + - COALESCE ( - + COUNT ( ALL - 71 ), + 24 )
----
54

query II rowsort
SELECT ALL 44 * + 37 * - 42 AS col2, 11 AS col1
----
-68376
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7830
SELECT 97 AS col0, COALESCE ( - COUNT( * ), - MIN( - 95 ) )
----
97
-1

skipif mysql # not compatible
query II rowsort label-7830
SELECT 97 AS col0, COALESCE ( - COUNT ( * ), - MIN ( - 95 ) )
----
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT 38 + ( + 38 ) * - + COUNT( + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT 38 + ( + 38 ) * - + COUNT ( + 55 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7832
SELECT - COALESCE ( - COUNT( * ), + - 6 ), + 53 AS col0
----
1
53

skipif mysql # not compatible
query II rowsort label-7832
SELECT - COALESCE ( - COUNT ( * ), + - 6 ), + 53 AS col0
----
1
53

query I rowsort
SELECT ALL + 52 + - + 69 + + 11 + - 33 + + NULLIF ( + 59, - ( 28 ) + 47 ) * 31 AS col1
----
1790

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT + 66 * - COUNT( * ) - + - 59 - - 33 + - 63 - + + COUNT( * ) * + 98 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-7834
SELECT + 66 * - COUNT ( * ) - + - 59 - - 33 + - 63 - + + COUNT ( * ) * + 98 AS col0
----
-135

query I rowsort
SELECT - 16 * + 72 AS col1
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT MAX( - 87 ) + - COALESCE ( + 92, - 26 ) * + COUNT( * )
----
-179

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT MAX ( - 87 ) + - COALESCE ( + 92, - 26 ) * + COUNT ( * )
----
-179

query I rowsort
SELECT DISTINCT + + 99 * - 36
----
-3564

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7838
SELECT ALL 4 + + - 27 DIV + COUNT( * ) + 58 AS col0, + 3 + + 51 AS col1, - + COUNT( ALL - 0 )
----
35
54
-1

skipif mysql # not compatible
query III rowsort label-7838
SELECT ALL 4 + + - 27 / + COUNT ( * ) + 58 AS col0, + 3 + + 51 AS col1, - + COUNT ( ALL - 0 )
----
35
54
-1

query II rowsort
SELECT ALL + 69 + 26 * + 20 AS col0, ( + 10 ) * - + 41 + 49 + 90 + - 62
----
589
-333

query I rowsort
SELECT ALL - - 87 + 85 col1
----
172

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7842
SELECT DISTINCT + 41 * MAX( DISTINCT 40 ) + - - 25 * - CAST( - 57 AS SIGNED ) * + 22 * + 95
----
2979890

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT + 41 * MAX ( DISTINCT 40 ) + - - 25 * - CAST ( - 57 AS INTEGER ) * + 22 * + 95
----
2979890

query I rowsort
SELECT 33 - + + 41
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT - CASE - 21 WHEN 17 - - + 51 THEN + 73 + + 55 DIV + 13 + + 85 + + 10 WHEN 8 THEN NULL ELSE - 10 + 39 * 32 END AS col1
----
-1238

skipif mysql # not compatible
query I rowsort label-7844
SELECT - CASE - 21 WHEN 17 - - + 51 THEN + 73 + + 55 / + 13 + + 85 + + 10 WHEN 8 THEN NULL ELSE - 10 + 39 * 32 END AS col1
----
-1238

onlyif mysql # aggregate syntax: 
query II rowsort label-7845
SELECT - - 66, + ( - - 28 ) * + COALESCE ( + - 5, - + 54 + + - MAX( 74 ), - ( - 43 ) ) * + 63 AS col0
----
66
-8820

skipif mysql # not compatible
query II rowsort label-7845
SELECT - - 66, + ( - - 28 ) * + COALESCE ( + - 5, - + 54 + + - MAX ( 74 ), - ( - 43 ) ) * + 63 AS col0
----
66
-8820

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

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

query II rowsort
SELECT - 34 AS col1, 12 AS col0
----
-34
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT COUNT( * ) * 4 - + + 28 + COUNT( * ) * ( 14 ) + ( 15 ) - - ( 84 + - 8 * - 23 ) * 46 col1
----
12333

skipif mysql # not compatible
query I rowsort label-7848
SELECT COUNT ( * ) * 4 - + + 28 + COUNT ( * ) * ( 14 ) + ( 15 ) - - ( 84 + - 8 * - 23 ) * 46 col1
----
12333

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7849
SELECT ALL - 46 col0, CAST( + 31 AS SIGNED )
----
-46
31

skipif mysql # not compatible
query II rowsort label-7849
SELECT ALL - 46 col0, CAST ( + 31 AS INTEGER )
----
-46
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7850
SELECT ALL - 33, 94 * + + 75 * - CASE 36 WHEN + 11 - + - COUNT( * ) THEN COUNT( * ) - - 75 ELSE CAST( NULL AS SIGNED ) * 22 END AS col2
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-7850
SELECT ALL - 33, 94 * + + 75 * - CASE 36 WHEN + 11 - + - COUNT ( * ) THEN COUNT ( * ) - - 75 ELSE CAST ( NULL AS INTEGER ) * 22 END AS col2
----
-33
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7851
SELECT DISTINCT - - 15 - + 32 + 17 + - 37 * - COUNT( * ) * 21 AS col1, - COUNT( * )
----
777
-1

skipif mysql # not compatible
query II rowsort label-7851
SELECT DISTINCT - - 15 - + 32 + 17 + - 37 * - COUNT ( * ) * 21 AS col1, - COUNT ( * )
----
777
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT DISTINCT - COUNT( - 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - COUNT ( - 15 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT 5 - ( - COUNT( * ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT 5 - ( - COUNT ( * ) ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7854
SELECT ALL - CASE - 89 WHEN - + 37 * 46 THEN + + 64 + - 91 * + + CAST( + COALESCE ( - 27, - 13 * NULLIF ( CASE 53 WHEN 31 THEN 94 WHEN + MIN( ALL CAST( NULL AS SIGNED ) ) * 30 THEN - 48 WHEN - 37 + 35 THEN NULL END, - 15 ) + 21 ) AS SIGNED ) WHEN - 78 * 93 THEN NULLIF ( ( - 29 ), - 96 / + AVG ( + 29 * + 90 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL - CASE - 89 WHEN - + 37 * 46 THEN + + 64 + - 91 * + + CAST ( + COALESCE ( - 27, - 13 * NULLIF ( CASE 53 WHEN 31 THEN 94 WHEN + MIN ( ALL CAST ( NULL AS INTEGER ) ) * 30 THEN - 48 WHEN - 37 + 35 THEN NULL END, - 15 ) + 21 ) AS INTEGER ) WHEN - 78 * 93 THEN NULLIF ( ( - 29 ), - 96 / + AVG ( + 29 * + 90 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT 17 + + SUM( ALL - - 30 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7855
SELECT 17 + + SUM ( ALL - - 30 ) AS col2
----
47

query I rowsort
SELECT 26 * - 49 AS col1
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT 62 * MAX( DISTINCT 6 ) AS col1
----
372

skipif mysql # not compatible
query I rowsort label-7857
SELECT 62 * MAX ( DISTINCT 6 ) AS col1
----
372

query I rowsort
SELECT ALL - 33 * - 0
----
0

query I rowsort
SELECT 33 - + 30
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT 68 DIV - 60 * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7860
SELECT 68 / - 60 * - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7861
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) * + - 99 * + - 28 - + - 17 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + - 99 * + - 28 - + - 17 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT 81 DIV - - 64
----
1

skipif mysql # not compatible
query I rowsort label-7862
SELECT 81 / - - 64
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT ALL - ( + 63 ) * - COALESCE ( 69, - + CAST( + 70 AS SIGNED ), - 25 * 86 )
----
4347

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - ( + 63 ) * - COALESCE ( 69, - + CAST ( + 70 AS INTEGER ), - 25 * 86 )
----
4347

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT 71 DIV 29
----
2

skipif mysql # not compatible
query I rowsort label-7864
SELECT 71 / 29
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL 33 + 40 * - COUNT( * ) * + 69 + - 16 + + CASE COUNT( * ) WHEN - ( 76 ) - 13 THEN NULL WHEN - 9 + COUNT( * ) THEN + 12 / ( + 51 ) WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL 33 + 40 * - COUNT ( * ) * + 69 + - 16 + + CASE COUNT ( * ) WHEN - ( 76 ) - 13 THEN NULL WHEN - 9 + COUNT ( * ) THEN + 12 / ( + 51 ) WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7866
SELECT MAX( 64 ) - + ( 4 ) + ( - 18 ) * - 76 * + - 4 * + + 84 + 5 DIV 74 AS col2
----
-459588

skipif mysql # not compatible
query I rowsort label-7866
SELECT MAX ( 64 ) - + ( 4 ) + ( - 18 ) * - 76 * + - 4 * + + 84 + 5 / 74 AS col2
----
-459588

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL - NULLIF ( - 83, - 33 * COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL - NULLIF ( - 83, - 33 * COUNT ( * ) )
----
83

query II rowsort
SELECT ALL - 43 + + NULLIF ( - + 19, - 65 ) + + - 68 AS col1, - 65
----
-130
-65

query I rowsort
SELECT 51 + - 15 + 73 AS col2
----
109

query I rowsort
SELECT 70 * - + 91 - 67 + + 79 * - 3 + - - ( + - 53 ) + 89 * + 7
----
-6104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT 38 + + CASE 46 WHEN + 91 + - 3 + 6 * + 13 THEN + CAST( - - 83 AS SIGNED ) WHEN 38 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT 38 + + CASE 46 WHEN + 91 + - 3 + 6 * + 13 THEN + CAST ( - - 83 AS INTEGER ) WHEN 38 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL 97 + + 21 * + COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL 97 + + 21 * + COUNT ( * )
----
118

query I rowsort
SELECT 6 * - 17 * - - 77
----
-7854

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL COALESCE ( + 93, 71 ) * - - COALESCE ( - 47, + 82 * 50 + - - 52, COUNT( * ) * + 72 + - 84 ) + - 11 AS col1
----
-4382

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL COALESCE ( + 93, 71 ) * - - COALESCE ( - 47, + 82 * 50 + - - 52, COUNT ( * ) * + 72 + - 84 ) + - 11 AS col1
----
-4382

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL + ( + - COUNT( * ) ) + 77 col2
----
76

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL + ( + - COUNT ( * ) ) + 77 col2
----
76

query II rowsort
SELECT ALL 88 + + 41 AS col2, - 19
----
129
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7877
SELECT ALL + NULLIF ( 31, + - 41 * + 62 / 20 * - COUNT( * ) ) * 22 AS col0, + 17 * + 53 * 64
----
682
57664

skipif mysql # not compatible
query II rowsort label-7877
SELECT ALL + NULLIF ( 31, + - 41 * + 62 / 20 * - COUNT ( * ) ) * 22 AS col0, + 17 * + 53 * 64
----
682
57664

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL - 40 - + 18 * - + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - 40 - + 18 * - + COUNT ( * )
----
-22

query I rowsort
SELECT DISTINCT + 27 col1
----
27

query II rowsort
SELECT DISTINCT 19 - + - 4 AS col1, 65 AS col0
----
23
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT 89 * - - SUM( 74 ) AS col2
----
6586

skipif mysql # not compatible
query I rowsort label-7881
SELECT 89 * - - SUM ( 74 ) AS col2
----
6586

query I rowsort
SELECT - ( 74 ) + - 43 + 30 * - 9 col2
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT - 90 * + 97 * - - SUM( - - 94 )
----
-820620

skipif mysql # not compatible
query I rowsort label-7883
SELECT - 90 * + 97 * - - SUM ( - - 94 )
----
-820620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT 12 + CASE + CASE + COUNT( * ) WHEN 13 * - 86 THEN - CAST( - 36 AS SIGNED ) * + - 82 WHEN - 72 THEN NULL ELSE NULL END WHEN 16 / ( 77 ) THEN ( + COUNT( * ) ) WHEN + COUNT( * ) * - 81 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT 12 + CASE + CASE + COUNT ( * ) WHEN 13 * - 86 THEN - CAST ( - 36 AS INTEGER ) * + - 82 WHEN - 72 THEN NULL ELSE NULL END WHEN 16 / ( 77 ) THEN ( + COUNT ( * ) ) WHEN + COUNT ( * ) * - 81 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL + COUNT ( ALL 19 ) AS col0
----
1

query I rowsort
SELECT CASE + - 42 WHEN - 37 THEN - - 44 / + 34 END + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL - MAX( DISTINCT 59 ) * - 96 AS col2
----
5664

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL - MAX ( DISTINCT 59 ) * - 96 AS col2
----
5664

onlyif mysql # aggregate syntax: 
query III rowsort label-7888
SELECT ( - 99 ) * + + 30 - - 13 AS col2, + COUNT( * ) * - ( - + 97 ), - + 69 + - 93 AS col0
----
-2957
97
-162

skipif mysql # not compatible
query III rowsort label-7888
SELECT ( - 99 ) * + + 30 - - 13 AS col2, + COUNT ( * ) * - ( - + 97 ), - + 69 + - 93 AS col0
----
-2957
97
-162

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

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

query I rowsort
SELECT 52 + 31 col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - MAX( DISTINCT + 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-7891
SELECT - MAX ( DISTINCT + 90 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT - NULLIF ( - + 52, COUNT( * ) - + 79 + + 81 - + 90 + + 17 * 33 ) + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7892
SELECT - NULLIF ( - + 52, COUNT ( * ) - + 79 + + 81 - + 90 + + 17 * 33 ) + COUNT ( * ) AS col1
----
53

query II rowsort
SELECT ALL 73 AS col0, - 92
----
73
-92

query I rowsort
SELECT + 17 + - 30 AS col2
----
-13

query I rowsort
SELECT + 76 * + CASE - 84 WHEN - + 96 THEN + 85 WHEN + 27 + 74 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 81 * - - 46 AS col1
----
-3726

query I rowsort
SELECT + 93 + - 83 col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7898
SELECT ALL + 9 * - 94 + + + COUNT( * ) * 81 + + - CAST( NULL AS DECIMAL ) * - - 20 * + 24 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL + 9 * - 94 + + + COUNT ( * ) * 81 + + - CAST ( NULL AS REAL ) * - - 20 * + 24 + COUNT ( * ) AS col2
----
NULL

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

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

query II rowsort
SELECT + 41 AS col2, + ( 38 )
----
41
38

query I rowsort
SELECT - 9 * + + 7 col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT - NULLIF ( + CAST( 41 AS SIGNED ), - + CASE - 43 WHEN 65 THEN + - 59 END + 11 * - - NULLIF ( + + NULLIF ( + 84, + COUNT( * ) ), - COUNT( * ) * + 72 ) ) + + COUNT( * ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-7902
SELECT - NULLIF ( + CAST ( 41 AS INTEGER ), - + CASE - 43 WHEN 65 THEN + - 59 END + 11 * - - NULLIF ( + + NULLIF ( + 84, + COUNT ( * ) ), - COUNT ( * ) * + 72 ) ) + + COUNT ( * ) col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7903
SELECT ALL COUNT( * ) * + SUM( DISTINCT - 51 ) DIV - 13 - + NULLIF ( + 65, - 44 ) + - 68 + + + 71 * - 20
----
-1550

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT - 51 ) / - 13 - + NULLIF ( + 65, - 44 ) + - 68 + + + 71 * - 20
----
-1550

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT DISTINCT 89 * 55 * + + 15 * + 95 + - 38 / + + 19 * CASE WHEN NOT ( + 76 ) BETWEEN COUNT( * ) - 0 AND NULL THEN 9 * + 53 END * - 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT 89 * 55 * + + 15 * + 95 + - 38 / + + 19 * CASE WHEN NOT ( + 76 ) BETWEEN COUNT ( * ) - 0 AND NULL THEN 9 * + 53 END * - 57 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT + 73 * 92 * + 41 + MIN( + 67 ) + + 96
----
275519

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT + 73 * 92 * + 41 + MIN ( + 67 ) + + 96
----
275519

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL - COUNT( * ) * + - COUNT( DISTINCT - + 15 ) - + 41 + 99 * + 90 * + + 24 AS col1
----
213800

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL - COUNT ( * ) * + - COUNT ( DISTINCT - + 15 ) - + 41 + 99 * + 90 * + + 24 AS col1
----
213800

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT - - 38 * + NULLIF ( - 52, COUNT( * ) )
----
-1976

skipif mysql # not compatible
query I rowsort label-7908
SELECT - - 38 * + NULLIF ( - 52, COUNT ( * ) )
----
-1976

query I rowsort
SELECT + + 63 * + 14
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7910
SELECT + 48 + + + CASE - - NULLIF ( - ( + ( MIN( DISTINCT 99 ) ) ), NULLIF ( NULLIF ( + COUNT( * ), + 21 ), 94 - 10 ) - COALESCE ( - 15, - 86 - SUM( - 29 ) * + 81 ) ) WHEN + CAST( 64 AS SIGNED ) THEN - CAST( NULL AS DECIMAL ) END * + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7910
SELECT + 48 + + + CASE - - NULLIF ( - ( + ( MIN ( DISTINCT 99 ) ) ), NULLIF ( NULLIF ( + COUNT ( * ), + 21 ), 94 - 10 ) - COALESCE ( - 15, - 86 - SUM ( - 29 ) * + 81 ) ) WHEN + CAST ( 64 AS INTEGER ) THEN - CAST ( NULL AS REAL ) END * + 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ALL 22 - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL 22 - COUNT ( * ) AS col1
----
21

query I rowsort
SELECT - 91 * + 64 * COALESCE ( - ( - - NULLIF ( 65, - 71 + + 1 * + 39 ) ), + 60 * + 44, 69 ) AS col2
----
378560

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - - SUM( 13 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-7913
SELECT - - SUM ( 13 ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT + 18 - 50 + 5 + + 19 * - ( + COUNT( DISTINCT + ( - 84 ) ) ) - + ( - - 23 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7914
SELECT + 18 - 50 + 5 + + 19 * - ( + COUNT ( DISTINCT + ( - 84 ) ) ) - + ( - - 23 ) AS col2
----
-69

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7917
SELECT ALL 67 * 35 * - COUNT( * ) + - CAST( - 5 AS SIGNED ) AS col0
----
-2340

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL 67 * 35 * - COUNT ( * ) + - CAST ( - 5 AS INTEGER ) AS col0
----
-2340

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

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT 6 * + CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 98 * - 84 AS col0
----
8232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + SUM( + 36 ) * + + 82 AS col2
----
2952

skipif mysql # not compatible
query I rowsort label-7921
SELECT + SUM ( + 36 ) * + + 82 AS col2
----
2952

query I rowsort
SELECT ALL 87 + + + CASE - 97 WHEN 60 THEN + 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT + SUM( ALL + 31 ) * - 99 * - + 27
----
82863

skipif mysql # not compatible
query I rowsort label-7923
SELECT + SUM ( ALL + 31 ) * - 99 * - + 27
----
82863

query I rowsort
SELECT - ( 84 ) + - 11 AS col1
----
-95

query II rowsort
SELECT - 25 AS col1, 51 AS col0
----
-25
51

query I rowsort
SELECT ALL 64 + + NULLIF ( + 71, - + 45 ) AS col0
----
135

query I rowsort
SELECT ALL 75 + 58 * 13
----
829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT ALL CAST( NULL AS SIGNED ) / - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL CAST ( NULL AS INTEGER ) / - - 50
----
NULL

query II rowsort
SELECT DISTINCT 31 col0, 97 AS col1
----
31
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT 69 DIV - 30 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT 69 / - 30 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7931
SELECT ALL 98 DIV - - COUNT( * ) + 7 + COUNT( * ) * - 18
----
87

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL 98 / - - COUNT ( * ) + 7 + COUNT ( * ) * - 18
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7932
SELECT ALL 42 DIV - 98 + - 34 * COALESCE ( + COUNT( * ), CAST( - - 2 AS SIGNED ) ) * - MAX( - NULLIF ( + 62, + - 63 - + 10 ) ) * CAST( 18 + + ( - 71 ) AS SIGNED ) + 35 col0
----
111759

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL 42 / - 98 + - 34 * COALESCE ( + COUNT ( * ), CAST ( - - 2 AS INTEGER ) ) * - MAX ( - NULLIF ( + 62, + - 63 - + 10 ) ) * CAST ( 18 + + ( - 71 ) AS INTEGER ) + 35 col0
----
111759

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT - CASE - COUNT( * ) WHEN - 63 / - 3 + + 92 + + 42 / - 54 * - 9 THEN NULL WHEN COUNT( - 71 ) THEN 27 + 25 WHEN - 17 - 75 THEN NULL ELSE 75 * 40 END * - 11
----
33000

skipif mysql # not compatible
query I rowsort label-7933
SELECT - CASE - COUNT ( * ) WHEN - 63 / - 3 + + 92 + + 42 / - 54 * - 9 THEN NULL WHEN COUNT ( - 71 ) THEN 27 + 25 WHEN - 17 - 75 THEN NULL ELSE 75 * 40 END * - 11
----
33000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7934
SELECT ALL MIN( DISTINCT CAST( + 39 AS SIGNED ) ) DIV + 92 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL MIN ( DISTINCT CAST ( + 39 AS INTEGER ) ) / + 92 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ( - 10 ) * + COUNT( * ) + - 67 + 25
----
-52

skipif mysql # not compatible
query I rowsort label-7935
SELECT ( - 10 ) * + COUNT ( * ) + - 67 + 25
----
-52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL + MIN( DISTINCT - + 4 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + MIN ( DISTINCT - + 4 ) col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT + 72 DIV 49 * + 32 * 97 + + - NULLIF ( 21, + - 24 ) + 18 + - - 70 DIV + 21
----
3104

skipif mysql # not compatible
query I rowsort label-7938
SELECT + 72 / 49 * + 32 * 97 + + - NULLIF ( 21, + - 24 ) + 18 + - - 70 / + 21
----
3104

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT ALL 85 DIV 73 - + 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL 85 / 73 - + 36 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7940
SELECT DISTINCT + 25, - 38 + - + 10 * + - 98 + - SUM( - 27 ) AS col1
----
25
969

skipif mysql # not compatible
query II rowsort label-7940
SELECT DISTINCT + 25, - 38 + - + 10 * + - 98 + - SUM ( - 27 ) AS col1
----
25
969

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - 32 + + COUNT( * ) - - 16 + - 45 * + 87
----
-3930

skipif mysql # not compatible
query I rowsort label-7941
SELECT - 32 + + COUNT ( * ) - - 16 + - 45 * + 87
----
-3930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7942
SELECT + CAST( - + COUNT( 24 ) AS SIGNED ) + NULLIF ( + 61, 63 * - 19 * - NULLIF ( + 11, + - AVG ( - COALESCE ( + 34, + ( - 44 ) ) ) * - 81 + 96 ) - NULLIF ( - 37, - 32 - + SUM( ALL 73 ) * - 88 ) ) - - 3 * + 32
----
156

skipif mysql # not compatible
query I rowsort label-7942
SELECT + CAST ( - + COUNT ( 24 ) AS INTEGER ) + NULLIF ( + 61, 63 * - 19 * - NULLIF ( + 11, + - AVG ( - COALESCE ( + 34, + ( - 44 ) ) ) * - 81 + 96 ) - NULLIF ( - 37, - 32 - + SUM ( ALL 73 ) * - 88 ) ) - - 3 * + 32
----
156

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7945
SELECT - COUNT( * ) + COUNT( * ) + 26 * - 43 * - - 67 - - + NULLIF ( + - 61, - 64 * + 92 ) + + 11 DIV - - 46 + 90
----
-74877

skipif mysql # not compatible
query I rowsort label-7945
SELECT - COUNT ( * ) + COUNT ( * ) + 26 * - 43 * - - 67 - - + NULLIF ( + - 61, - 64 * + 92 ) + + 11 / - - 46 + 90
----
-74877

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7946
SELECT - + COALESCE ( - + 50, COUNT( * ) ) DIV SUM( DISTINCT - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT - + COALESCE ( - + 50, COUNT ( * ) ) / SUM ( DISTINCT - 99 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7947
SELECT - + 26 * - COALESCE ( NULLIF ( + + 0, - 75 * - - 45 DIV + 13 - - 11 ), + - 41 ) * + 22 DIV + - MIN( ALL 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT - + 26 * - COALESCE ( NULLIF ( + + 0, - 75 * - - 45 / + 13 - - 11 ), + - 41 ) * + 22 / + - MIN ( ALL 89 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7948
SELECT ALL - 63 * - + ( CAST( + + COUNT( * ) AS SIGNED ) ) AS col1, - CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-7948
SELECT ALL - 63 * - + ( CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1, - CAST ( - CAST ( NULL AS REAL ) AS REAL ) AS col0
----
63
NULL

query II rowsort
SELECT - - 57 + ( + 46 ) * - - 19, 19 AS col2
----
931
19

query I rowsort
SELECT DISTINCT - - 21 * + - 77
----
-1617

query I rowsort
SELECT - 25 * + - 61 + - + 29 AS col1
----
1496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) * MIN( 86 ) * CAST( NULL AS SIGNED ) / + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) * MIN ( 86 ) * CAST ( NULL AS INTEGER ) / + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT DISTINCT + ( + + MAX( ( + 77 ) ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT + ( + + MAX ( ( + 77 ) ) ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT - 78 + - COUNT( ALL + + 81 )
----
-79

skipif mysql # not compatible
query I rowsort label-7954
SELECT - 78 + - COUNT ( ALL + + 81 )
----
-79

query II rowsort
SELECT ALL - 77, 17 * 56 * - 50 + + 10 + - + 16 AS col0
----
-77
-47606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7956
SELECT COUNT( * ) * - 72 + + 46 * ( - CAST( - - 30 AS SIGNED ) ), CASE + COUNT( * ) WHEN - 12 / + - 55 + - ( - 9 ) / - 33 THEN NULL WHEN + ( - 50 ) / + 81 + 34 THEN + CAST( NULL AS SIGNED ) + 44 ELSE NULL END * + 19 AS col1
----
-1452
NULL

skipif mysql # not compatible
query II rowsort label-7956
SELECT COUNT ( * ) * - 72 + + 46 * ( - CAST ( - - 30 AS INTEGER ) ), CASE + COUNT ( * ) WHEN - 12 / + - 55 + - ( - 9 ) / - 33 THEN NULL WHEN + ( - 50 ) / + 81 + 34 THEN + CAST ( NULL AS INTEGER ) + 44 ELSE NULL END * + 19 AS col1
----
-1452
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT 42 + - CAST( - 84 AS SIGNED ) * - 83 - 89
----
-7019

skipif mysql # not compatible
query I rowsort label-7958
SELECT 42 + - CAST ( - 84 AS INTEGER ) * - 83 - 89
----
-7019

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT SUM( ALL + - 72 ) + - 80
----
-152

skipif mysql # not compatible
query I rowsort label-7959
SELECT SUM ( ALL + - 72 ) + - 80
----
-152

query I rowsort
SELECT DISTINCT 81 + + 42 AS col2
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-7961
SELECT 68 + - 47 AS col2, + COUNT( DISTINCT + 76 ) AS col2
----
21
1

skipif mysql # not compatible
query II rowsort label-7961
SELECT 68 + - 47 AS col2, + COUNT ( DISTINCT + 76 ) AS col2
----
21
1

query I rowsort
SELECT ALL + 11 * 9 AS col0
----
99

query I rowsort
SELECT ALL 46 + - 48 col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT CAST( - 70 AS SIGNED ) + - ( - 82 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7964
SELECT CAST ( - 70 AS INTEGER ) + - ( - 82 ) AS col1
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT 48 / + + NULLIF ( 84, COALESCE ( + + 4, + - 98 * - 95 * - 30 + - COUNT( * ) * - ( + 8 ) + + 90, 60 ) * - 44 ) + 94 * + NULLIF ( - CASE + COUNT( * ) WHEN 78 THEN NULL WHEN 65 THEN 6 END, ( - 68 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT 48 / + + NULLIF ( 84, COALESCE ( + + 4, + - 98 * - 95 * - 30 + - COUNT ( * ) * - ( + 8 ) + + 90, 60 ) * - 44 ) + 94 * + NULLIF ( - CASE + COUNT ( * ) WHEN 78 THEN NULL WHEN 65 THEN 6 END, ( - 68 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7967
SELECT DISTINCT COALESCE ( + - 39, + 64 ) - + COUNT( * ) * + + ( 94 ) * + - 49 AS col0, - ( 4 ) AS col0
----
4567
-4

skipif mysql # not compatible
query II rowsort label-7967
SELECT DISTINCT COALESCE ( + - 39, + 64 ) - + COUNT ( * ) * + + ( 94 ) * + - 49 AS col0, - ( 4 ) AS col0
----
4567
-4

query I rowsort
SELECT 92 * - - 60 * - 44
----
-242880

onlyif mysql # DIV for integer division: 
query II rowsort label-7969
SELECT DISTINCT 79 DIV - - ( - 33 ), - 56 + 23 + + 22 AS col2
----
-2
-11

skipif mysql # not compatible
query II rowsort label-7969
SELECT DISTINCT 79 / - - ( - 33 ), - 56 + 23 + + 22 AS col2
----
-2
-11

query I rowsort
SELECT 5 * - 41
----
-205

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT ALL 14 DIV - 64 * + 28
----
0

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL 14 / - 64 * + 28
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7972
SELECT ALL - 16 * - COUNT( * ) AS col0, COUNT( * ) + + - COUNT( * ) - 69 * - + 73
----
16
5037

skipif mysql # not compatible
query II rowsort label-7972
SELECT ALL - 16 * - COUNT ( * ) AS col0, COUNT ( * ) + + - COUNT ( * ) - 69 * - + 73
----
16
5037

query I rowsort
SELECT 49 * + ( + - 63 ) * - ( + - 24 ) AS col0
----
-74088

onlyif mysql # aggregate syntax: 
query II rowsort label-7974
SELECT COUNT( * ) + 26 col2, 7 col1
----
27
7

skipif mysql # not compatible
query II rowsort label-7974
SELECT COUNT ( * ) + 26 col2, 7 col1
----
27
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT ALL + COUNT( * ) - + 42 AS col1, 72 + - - COUNT( * ) AS col2
----
-41
73

skipif mysql # not compatible
query II rowsort label-7975
SELECT ALL + COUNT ( * ) - + 42 AS col1, 72 + - - COUNT ( * ) AS col2
----
-41
73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT MAX( ALL + 21 ) AS col0, 2
----
21
2

skipif mysql # not compatible
query II rowsort label-7977
SELECT MAX ( ALL + 21 ) AS col0, 2
----
21
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL - NULLIF ( - COUNT( * ), - SUM( + 38 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL - NULLIF ( - COUNT ( * ), - SUM ( + 38 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7979
SELECT DISTINCT - - NULLIF ( - - COUNT( * ), - - CASE - 17 WHEN - - ( + + SUM( ALL - 14 ) ) THEN 32 WHEN + 16 - - 48 THEN - - COUNT( * ) * + CAST( NULL AS SIGNED ) * 14 ELSE 34 * - 82 END * 65 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT - - NULLIF ( - - COUNT ( * ), - - CASE - 17 WHEN - - ( + + SUM ( ALL - 14 ) ) THEN 32 WHEN + 16 - - 48 THEN - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 14 ELSE 34 * - 82 END * 65 ) AS col0
----
1

query I rowsort
SELECT 18 * + 34 col2
----
612

query I rowsort
SELECT - ( + + 20 ) * + 24 AS col1
----
-480

query I rowsort
SELECT DISTINCT - + 44 col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), - 98 + 95 + 89 + - - 54 + + 97 + - 13 * + 86 * + 56 ) + + - 22 + - COALESCE ( MIN( + 94 ), 42 * COALESCE ( MAX( ALL 56 ) * 51, 31 - + COUNT( * ), 5 + + MIN( 37 ) * - CAST( NULL AS SIGNED ) ), CAST( + 71 AS SIGNED ) * 1 ) * 79 / - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), - 98 + 95 + 89 + - - 54 + + 97 + - 13 * + 86 * + 56 ) + + - 22 + - COALESCE ( MIN ( + 94 ), 42 * COALESCE ( MAX ( ALL 56 ) * 51, 31 - + COUNT ( * ), 5 + + MIN ( 37 ) * - CAST ( NULL AS INTEGER ) ), CAST ( + 71 AS INTEGER ) * 1 ) * 79 / - 73
----
NULL

query I rowsort
SELECT DISTINCT - CASE WHEN - 44 IS NOT NULL THEN NULL ELSE - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT + 37 * + NULLIF ( COUNT( + - 98 ), - - 94 + - 25 + 56 / MIN( - 76 ) * 85 + + 83 + + - CASE WHEN - 74 IS NOT NULL THEN NULL ELSE - 52 + 54 END / - 56 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7985
SELECT + 37 * + NULLIF ( COUNT ( + - 98 ), - - 94 + - 25 + 56 / MIN ( - 76 ) * 85 + + 83 + + - CASE WHEN - 74 IS NOT NULL THEN NULL ELSE - 52 + 54 END / - 56 ) AS col0
----
37

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

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - 65 / + COUNT ( * ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7987
SELECT - ( - MAX( ALL 72 ) ) AS col2, 28 AS col0
----
72
28

skipif mysql # not compatible
query II rowsort label-7987
SELECT - ( - MAX ( ALL 72 ) ) AS col2, 28 AS col0
----
72
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7988
SELECT COUNT( * ) DIV - 47 col2, CAST( NULL AS SIGNED ) * - - 71 + + 62 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7988
SELECT COUNT ( * ) / - 47 col2, CAST ( NULL AS INTEGER ) * - - 71 + + 62 AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT - - ( - 29 ) col2, + SUM( ALL - 21 ) col1
----
-29
-21

skipif mysql # not compatible
query II rowsort label-7989
SELECT - - ( - 29 ) col2, + SUM ( ALL - 21 ) col1
----
-29
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL + 74 + MIN( - - 24 ) - SUM( + 19 ) * 6 col0
----
-16

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL + 74 + MIN ( - - 24 ) - SUM ( + 19 ) * 6 col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT - 15 + - 78 + - + ( COUNT( * ) ) * + - 52 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT - 15 + - 78 + - + ( COUNT ( * ) ) * + - 52 AS col1
----
-41

query I rowsort
SELECT + 3 - - 38
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT CASE + - 59 WHEN + COUNT( * ) * - - 41 * COUNT( * ) + - 43 THEN NULL WHEN - 33 THEN NULL ELSE - 20 END AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT CASE + - 59 WHEN + COUNT ( * ) * - - 41 * COUNT ( * ) + - 43 THEN NULL WHEN - 33 THEN NULL ELSE - 20 END AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7994
SELECT DISTINCT - 69 + - COUNT( * ) * + - 57 DIV 77
----
-69

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT - 69 + - COUNT ( * ) * + - 57 / 77
----
-69

query I rowsort
SELECT ALL + NULLIF ( + + 70, 82 * - 87 ) + + 15 col1
----
85

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7997
SELECT 77 DIV COUNT( * ) * - ( + 78 )
----
-6006

skipif mysql # not compatible
query I rowsort label-7997
SELECT 77 / COUNT ( * ) * - ( + 78 )
----
-6006

query I rowsort
SELECT DISTINCT - 70 + - + 33
----
-103

query II rowsort
SELECT - 80 AS col2, 68 AS col2
----
-80
68

query II rowsort
SELECT 60 AS col0, 80 AS col1
----
60
80

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

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

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

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

query I rowsort
SELECT ALL - 80 * - 39
----
3120

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

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + COUNT ( * ) - - 3 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8005
SELECT ALL - 76, + MIN( - 62 ) * - 55 + COUNT( * ) + + 32 - - + 23 * - 27 * 98 * + 2 AS col0
----
-76
-118273

skipif mysql # not compatible
query II rowsort label-8005
SELECT ALL - 76, + MIN ( - 62 ) * - 55 + COUNT ( * ) + + 32 - - + 23 * - 27 * 98 * + 2 AS col0
----
-76
-118273

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT MIN( + + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8006
SELECT MIN ( + + 74 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8007
SELECT ALL - NULLIF ( COALESCE ( 68, 0 ), - 98 * MIN( ALL CAST( NULL AS DECIMAL ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - NULLIF ( COALESCE ( 68, 0 ), - 98 * MIN ( ALL CAST ( NULL AS REAL ) ) )
----
-68

query I rowsort
SELECT 86 + + - 20
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT 63 DIV 93 + 78
----
78

skipif mysql # not compatible
query I rowsort label-8009
SELECT 63 / 93 + 78
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8010
SELECT + - 53 * 95 DIV - MIN( DISTINCT - COALESCE ( - + 81, - 57 ) ) + - 5 * + 11 AS col0, 34 + + 5 + + - 90
----
7
-51

skipif mysql # not compatible
query II rowsort label-8010
SELECT + - 53 * 95 / - MIN ( DISTINCT - COALESCE ( - + 81, - 57 ) ) + - 5 * + 11 AS col0, 34 + + 5 + + - 90
----
7
-51

query I rowsort
SELECT + 18 * 69
----
1242

onlyif mysql # aggregate syntax: 
query II rowsort label-8012
SELECT COUNT( * ) * 58 + 26 * COALESCE ( - + 93, + 30 - + + 16 * + 11 ) AS col2, + COUNT( * ) AS col2
----
-2360
1

skipif mysql # not compatible
query II rowsort label-8012
SELECT COUNT ( * ) * 58 + 26 * COALESCE ( - + 93, + 30 - + + 16 * + 11 ) AS col2, + COUNT ( * ) AS col2
----
-2360
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8013
SELECT ALL 97 DIV + COALESCE ( - 48, SUM( + - 35 ) ) + - 61 * 86 * - 28
----
146886

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL 97 / + COALESCE ( - 48, SUM ( + - 35 ) ) + - 61 * 86 * - 28
----
146886

query I rowsort
SELECT DISTINCT - NULLIF ( ( - 0 ), - + 97 )
----
0

query I rowsort
SELECT - 85 + - 17 AS col0
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8016
SELECT ALL - + 4 * 48 * + MIN( DISTINCT - 23 ) * + COUNT( * ) + - + COUNT( * ) * - - CAST( 26 AS SIGNED ) AS col2, + 3
----
4390
3

skipif mysql # not compatible
query II rowsort label-8016
SELECT ALL - + 4 * 48 * + MIN ( DISTINCT - 23 ) * + COUNT ( * ) + - + COUNT ( * ) * - - CAST ( 26 AS INTEGER ) AS col2, + 3
----
4390
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8017
SELECT DISTINCT - - 59, - 80 * + - 26 * - + COUNT( * ) - - COUNT( * ) AS col2
----
59
-2079

skipif mysql # not compatible
query II rowsort label-8017
SELECT DISTINCT - - 59, - 80 * + - 26 * - + COUNT ( * ) - - COUNT ( * ) AS col2
----
59
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL - 38 * + + 7 * + 71 + + COUNT( * ) * + 92
----
-18794

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL - 38 * + + 7 * + 71 + + COUNT ( * ) * + 92
----
-18794

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT + + 5 DIV 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8019
SELECT + + 5 / 24 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT + COUNT( * ) * + - 49 * 11
----
-539

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT + COUNT ( * ) * + - 49 * 11
----
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT ALL 0 + 71 DIV + 87 * - 77
----
0

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL 0 + 71 / + 87 * - 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT + + COUNT( ALL + 4 ) * + 22 + - + 49 + - 44 * COUNT( * ) AS col1, 70
----
-71
70

skipif mysql # not compatible
query II rowsort label-8022
SELECT + + COUNT ( ALL + 4 ) * + 22 + - + 49 + - 44 * COUNT ( * ) AS col1, 70
----
-71
70

query I rowsort
SELECT - + 44 * + 70 + + 35 * - 66
----
-5390

query II rowsort
SELECT ALL - 17 + 2 + + + 63, 91 * - 9 AS col0
----
48
-819

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

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

query II rowsort
SELECT DISTINCT 77 AS col1, 14 + 92
----
77
106

onlyif mysql # DIV for integer division: 
query II rowsort label-8027
SELECT ALL - 74 + - ( - - 83 ) DIV ( 23 ) AS col2, - 82 * + 42 * + 73 AS col2
----
-77
-251412

skipif mysql # not compatible
query II rowsort label-8027
SELECT ALL - 74 + - ( - - 83 ) / ( 23 ) AS col2, - 82 * + 42 * + 73 AS col2
----
-77
-251412

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL MIN( - + 22 ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL MIN ( - + 22 ) col1
----
-22

query I rowsort
SELECT + 93 * + - 78
----
-7254

query II rowsort
SELECT - ( - + 29 ) + - ( 84 ) col0, 62 * 53 col1
----
-55
3286

query I rowsort
SELECT DISTINCT - 66 * + - 24 * - 82 AS col1
----
-129888

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

skipif mysql # not compatible
query I rowsort label-8032
SELECT + COALESCE ( + 70, 21 ) + - COUNT ( * ) col2
----
69

query I rowsort
SELECT + 63 * 15
----
945

query II rowsort
SELECT - 69 * - 13 AS col1, 61 AS col1
----
897
61

query II rowsort
SELECT - 81 + + 12 AS col1, + 11 - - 95 * 46 * + 56 AS col0
----
-69
244731

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT DISTINCT - COALESCE ( - 37, - 56 * + + 8 + + 43 + - - 37, 78 ) * - COUNT( * ) + 25
----
-12

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT - COALESCE ( - 37, - 56 * + + 8 + + 43 + - - 37, 78 ) * - COUNT ( * ) + 25
----
-12

query I rowsort
SELECT ALL CASE - + 2 WHEN + 12 + - ( - + 48 ) THEN NULL WHEN - 83 * + 37 * - 4 + 43 * 49 - + - 66 THEN - 85 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT - CAST( 54 AS SIGNED ) + + - 92 + - + 34
----
-180

skipif mysql # not compatible
query I rowsort label-8038
SELECT - CAST ( 54 AS INTEGER ) + + - 92 + - + 34
----
-180

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

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

query I rowsort
SELECT ALL - 48 * - + 18 AS col1
----
864

query I rowsort
SELECT ALL COALESCE ( + - 4, ( + 37 ) ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT - 50 + + 88 DIV 59 - - - NULLIF ( - 27, + + 67 )
----
-22

skipif mysql # not compatible
query I rowsort label-8042
SELECT - 50 + + 88 / 59 - - - NULLIF ( - 27, + + 67 )
----
-22

query I rowsort
SELECT ALL ( ( + - 69 ) ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT - 27 + + NULLIF ( - 39, 80 ) + + COALESCE ( - ( + 27 ), COUNT( * ), - + 94 ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-8044
SELECT - 27 + + NULLIF ( - 39, 80 ) + + COALESCE ( - ( + 27 ), COUNT ( * ), - + 94 ) col2
----
-93

query I rowsort
SELECT ALL NULLIF ( 33, + 3 )
----
33

query II rowsort
SELECT - 3 + - + 46, - 95 AS col2
----
-49
-95

query I rowsort
SELECT - 79 + - 67 - 90
----
-236

query I rowsort
SELECT ALL - 75 * + - 11 * 71
----
58575

query I rowsort
SELECT CASE 58 WHEN 72 THEN + 39 * + AVG ( + - 53 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT DISTINCT + 27 * - + COALESCE ( COUNT( * ), - COUNT( * ) + + + 46 + + - 72 ) * - 2 + 65 + - 8 + - + 59 + + COALESCE ( + 2, 48 )
----
54

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT + 27 * - + COALESCE ( COUNT ( * ), - COUNT ( * ) + + + 46 + + - 72 ) * - 2 + 65 + - 8 + - + 59 + + COALESCE ( + 2, 48 )
----
54

query I rowsort
SELECT - + 9 * + - ( - + 95 ) AS col2
----
-855

query II rowsort
SELECT + ( - ( 52 ) ) * 17, 54 AS col0
----
-884
54

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

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - - ( + 17 ) * COUNT ( * ) - 35 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT - SUM( - 71 ) col1
----
71

skipif mysql # not compatible
query I rowsort label-8054
SELECT - SUM ( - 71 ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT - - CASE + 58 WHEN + - COUNT( * ) THEN - 65 + - COUNT( * ) ELSE NULL END * + + COUNT( * ) * 2 + - AVG ( DISTINCT + 18 ) * 89 + + - MIN( - 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - - CASE + 58 WHEN + - COUNT ( * ) THEN - 65 + - COUNT ( * ) ELSE NULL END * + + COUNT ( * ) * 2 + - AVG ( DISTINCT + 18 ) * 89 + + - MIN ( - 21 ) AS col0
----
NULL

query I rowsort
SELECT - ( + 9 ) * 94 AS col2
----
-846

query I rowsort
SELECT ALL + NULLIF ( + 90, - - 69 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + ( - SUM( + 61 ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8058
SELECT + ( - SUM ( + 61 ) ) AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8059
SELECT ALL - + 77 * - CASE + 31 WHEN + 84 + - + 54 + + + MAX( - 93 ) / + + ( 25 ) THEN 73 / - 35 + CAST( + + MAX( ALL - 98 ) AS DECIMAL ) * - 96 WHEN COUNT( + 2 ) THEN NULL WHEN - 26 THEN NULL ELSE NULL END + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - + 77 * - CASE + 31 WHEN + 84 + - + 54 + + + MAX ( - 93 ) / + + ( 25 ) THEN 73 / - 35 + CAST ( + + MAX ( ALL - 98 ) AS REAL ) * - 96 WHEN COUNT ( + 2 ) THEN NULL WHEN - 26 THEN NULL ELSE NULL END + + 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN + + 15 THEN NULL ELSE - COALESCE ( - + 60, - + 21 + - 69 ) END
----
60

skipif mysql # not compatible
query I rowsort label-8060
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN + + 15 THEN NULL ELSE - COALESCE ( - + 60, - + 21 + - 69 ) END
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT - MAX( ALL - - 73 ) + - 14 DIV - COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8061
SELECT - MAX ( ALL - - 73 ) + - 14 / - COUNT ( * ) AS col0
----
-59

query I rowsort
SELECT ALL 5 * - - 29
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT - COUNT( * ) * - 8 * + + 11
----
88

skipif mysql # not compatible
query I rowsort label-8063
SELECT - COUNT ( * ) * - 8 * + + 11
----
88

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

skipif mysql # not compatible
query I rowsort label-8064
SELECT + 39 * - CAST ( NULL AS INTEGER ) + + ( + 71 )
----
NULL

query I rowsort
SELECT DISTINCT 23 * COALESCE ( + + 0, + - 7, - 88 + - 39 ) AS col2
----
0

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

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

query I rowsort
SELECT ALL 99 * + + 4 col1
----
396

query I rowsort
SELECT ALL 26 * 99 - + - 54 AS col1
----
2628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT - CASE - MIN( - 10 ) WHEN + COUNT( * ) - + MIN( + + 56 ) + + ( + - CAST( 93 AS SIGNED ) ) * + COUNT( * ) THEN + + 25 + 4 + - + 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT - CASE - MIN ( - 10 ) WHEN + COUNT ( * ) - + MIN ( + + 56 ) + + ( + - CAST ( 93 AS INTEGER ) ) * + COUNT ( * ) THEN + + 25 + 4 + - + 49 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT MAX( DISTINCT - - 22 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-8071
SELECT MAX ( DISTINCT - - 22 ) col0
----
22

query I rowsort
SELECT ALL 63 * + + 65 * + 13 * + 66
----
3513510

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL CASE + 35 WHEN + + COUNT( * ) * + ( 68 ) * COUNT( * ) * 81 + + 22 * 65 THEN + + 44 * - 85 - - 90 WHEN 13 * - 98 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL CASE + 35 WHEN + + COUNT ( * ) * + ( 68 ) * COUNT ( * ) * 81 + + 22 * 65 THEN + + 44 * - 85 - - 90 WHEN 13 * - 98 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - ( + 2 ), + ( 27 ) - + 61 )
----
-2

query I rowsort
SELECT + 9 * + 37 AS col0
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL MIN( DISTINCT 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL MIN ( DISTINCT 82 ) AS col1
----
82

query I rowsort
SELECT + 15 - + 28
----
-13

query I rowsort
SELECT DISTINCT 14 + 16 AS col0
----
30

query I rowsort
SELECT ALL + + 41 * + 20 AS col0
----
820

onlyif mysql # aggregate syntax: 
query II rowsort label-8080
SELECT ALL - 93 + + CASE 60 WHEN + 33 THEN + + 71 + - + 12 WHEN MIN( + - 31 ) THEN - + 40 ELSE NULL END + 70, 44 AS col0
----
NULL
44

skipif mysql # not compatible
query II rowsort label-8080
SELECT ALL - 93 + + CASE 60 WHEN + 33 THEN + + 71 + - + 12 WHEN MIN ( + - 31 ) THEN - + 40 ELSE NULL END + 70, 44 AS col0
----
NULL
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL - + 29 + NULLIF ( + 73, + COUNT( * ) / 17 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL - + 29 + NULLIF ( + 73, + COUNT ( * ) / 17 ) AS col2
----
44

query I rowsort
SELECT ALL + 44 + + + 65 * - - 41 AS col1
----
2709

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8084
SELECT 62 * - CAST( + 72 AS SIGNED ) AS col2, 89 AS col0
----
-4464
89

skipif mysql # not compatible
query II rowsort label-8084
SELECT 62 * - CAST ( + 72 AS INTEGER ) AS col2, 89 AS col0
----
-4464
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - COUNT( * ) + 40 + - - 68 * 38 AS col2
----
2623

skipif mysql # not compatible
query I rowsort label-8085
SELECT - COUNT ( * ) + 40 + - - 68 * 38 AS col2
----
2623

onlyif mysql # aggregate syntax: 
query II rowsort label-8086
SELECT ALL - + COUNT( * ) + - ( 70 ), - 48 * + - 99 - 0 AS col0
----
-71
4752

skipif mysql # not compatible
query II rowsort label-8086
SELECT ALL - + COUNT ( * ) + - ( 70 ), - 48 * + - 99 - 0 AS col0
----
-71
4752

onlyif mysql # DIV for integer division: 
query II rowsort label-8087
SELECT + - 11, 10 DIV + 92 AS col1
----
-11
0

skipif mysql # not compatible
query II rowsort label-8087
SELECT + - 11, 10 / + 92 AS col1
----
-11
0

query I rowsort
SELECT ALL - ( + + 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT 21 + NULLIF ( + COUNT( * ), 26 * - + 44 )
----
22

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT 21 + NULLIF ( + COUNT ( * ), 26 * - + 44 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT + 69 + ( CASE + + COUNT( * ) WHEN + 78 + - 47 THEN NULL WHEN - + ( + + 36 ) THEN + - 39 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT + 69 + ( CASE + + COUNT ( * ) WHEN + 78 + - 47 THEN NULL WHEN - + ( + + 36 ) THEN + - 39 END )
----
NULL

query I rowsort
SELECT ALL + + 57 - 2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8092
SELECT DISTINCT - CASE + ( - 30 ) WHEN - 45 * 7 + + + COUNT( * ) THEN NULL WHEN - - CAST( NULL AS SIGNED ) * + CASE - - 59 WHEN - 36 THEN COUNT( * ) WHEN - 82 THEN NULL ELSE NULL END THEN NULLIF ( + 73, COALESCE ( - 77, - 64 + 67 ) + 86 * 45 ) ELSE + 44 END AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT - CASE + ( - 30 ) WHEN - 45 * 7 + + + COUNT ( * ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) * + CASE - - 59 WHEN - 36 THEN COUNT ( * ) WHEN - 82 THEN NULL ELSE NULL END THEN NULLIF ( + 73, COALESCE ( - 77, - 64 + 67 ) + 86 * 45 ) ELSE + 44 END AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8093
SELECT 80 + COUNT( * ) * + + 56 / + COALESCE ( + ( 42 ), + COUNT( * ) * ( + ( + - 90 ) ), + COUNT( ALL + 61 ), + + 63 ) * - - 77 - - 91 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT 80 + COUNT ( * ) * + + 56 / + COALESCE ( + ( 42 ), + COUNT ( * ) * ( + ( + - 90 ) ), + COUNT ( ALL + 61 ), + + 63 ) * - - 77 - - 91 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 22 - 65 - - 73, + 30 + - 65 AS col0
----
30
-35

query I rowsort
SELECT 10 * - - 64 * + NULLIF ( 13, - + 98 * - 5 * 1 )
----
8320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT + 65 * 28 + - COUNT( * ) + + MAX( DISTINCT CAST( + 0 AS SIGNED ) ) * - COALESCE ( + 70, 14 ) * - - 31 * + 42
----
1819

skipif mysql # not compatible
query I rowsort label-8096
SELECT + 65 * 28 + - COUNT ( * ) + + MAX ( DISTINCT CAST ( + 0 AS INTEGER ) ) * - COALESCE ( + 70, 14 ) * - - 31 * + 42
----
1819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT + ( - 8 ) * - 10 + - 80 + - CAST( - 40 AS SIGNED ) + + 64
----
104

skipif mysql # not compatible
query I rowsort label-8097
SELECT + ( - 8 ) * - 10 + - 80 + - CAST ( - 40 AS INTEGER ) + + 64
----
104

query II rowsort
SELECT 61 * - ( + + 25 ) * + 28 AS col2, 46 AS col2
----
-42700
46

onlyif mysql # DIV for integer division: 
query II rowsort label-8099
SELECT 33, - 10 DIV 15 * + 54 AS col2
----
33
0

skipif mysql # not compatible
query II rowsort label-8099
SELECT 33, - 10 / 15 * + 54 AS col2
----
33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT MIN( ALL + 19 ) * 65 col1
----
1235

skipif mysql # not compatible
query I rowsort label-8100
SELECT MIN ( ALL + 19 ) * 65 col1
----
1235

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

query II rowsort
SELECT ALL 33 AS col1, 79 AS col1
----
33
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL ( + COUNT( 63 ) ) * COUNT( + 17 ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL ( + COUNT ( 63 ) ) * COUNT ( + 17 ) * + - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT NULLIF ( + - 75, 57 + - 93 ) DIV + - 20
----
3

skipif mysql # not compatible
query I rowsort label-8104
SELECT NULLIF ( + - 75, 57 + - 93 ) / + - 20
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT MAX( ALL 33 ) + 46 + - CASE - ( - 89 ) WHEN - - 3 * + 21 * + - 79 THEN NULL WHEN - + 95 + + + ( 7 ) THEN + 18 / + 31 END - - + 24 * - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT MAX ( ALL 33 ) + 46 + - CASE - ( - 89 ) WHEN - - 3 * + 21 * + - 79 THEN NULL WHEN - + 95 + + + ( 7 ) THEN + 18 / + 31 END - - + 24 * - 15 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8106
SELECT ( - COALESCE ( + CAST( + 55 AS SIGNED ), - ( + NULLIF ( - 25, - 55 ) ) - + 2 * + + COALESCE ( - + COUNT( - + 31 ), + 70 ) * - - COUNT( * ) + - + 70 - 87 ) ) - 22
----
-77

skipif mysql # not compatible
query I rowsort label-8106
SELECT ( - COALESCE ( + CAST ( + 55 AS INTEGER ), - ( + NULLIF ( - 25, - 55 ) ) - + 2 * + + COALESCE ( - + COUNT ( - + 31 ), + 70 ) * - - COUNT ( * ) + - + 70 - 87 ) ) - 22
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT COUNT( * ) + - CASE + 14 WHEN - - MAX( + 60 ) THEN - + AVG ( - + ( - 60 ) ) - - - 59 + - + 76 * + CAST( + 19 AS SIGNED ) END - - 75 + + 1 * - 89 / - 91 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT COUNT ( * ) + - CASE + 14 WHEN - - MAX ( + 60 ) THEN - + AVG ( - + ( - 60 ) ) - - - 59 + - + 76 * + CAST ( + 19 AS INTEGER ) END - - 75 + + 1 * - 89 / - 91 + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 86 * - + 55
----
-4730

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL 9 + 68 + - + ( 41 ) * COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL 9 + 68 + - + ( 41 ) * COUNT ( * ) AS col1
----
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT CAST( NULL AS SIGNED ) / - 48 / - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT CAST ( NULL AS INTEGER ) / - 48 / - + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8112
SELECT COALESCE ( + + 81, + 7 * - 64 - - CAST( - SUM( + + 25 ) AS SIGNED ) + 41 * + + 75 ) + + + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8112
SELECT COALESCE ( + + 81, + 7 * - 64 - - CAST ( - SUM ( + + 25 ) AS INTEGER ) + 41 * + + 75 ) + + + COUNT ( * )
----
82

query II rowsort
SELECT 57 AS col2, + 18 AS col2
----
57
18

query II rowsort
SELECT 92 AS col1, 23
----
92
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL MAX( DISTINCT + 92 ) + + MIN( - 82 ) * CASE - - 34 WHEN - - 21 THEN ( 13 ) WHEN - 92 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL MAX ( DISTINCT + 92 ) + + MIN ( - 82 ) * CASE - - 34 WHEN - - 21 THEN ( 13 ) WHEN - 92 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL + COUNT( * ) + 16 - - - SUM( DISTINCT + 5 ) * 97
----
-468

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL + COUNT ( * ) + 16 - - - SUM ( DISTINCT + 5 ) * 97
----
-468

query I rowsort
SELECT ALL 55 + + - 41
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT ALL 77 + + CAST( 57 AS SIGNED ) * + - 60 - CASE 7 WHEN - - 40 THEN + MAX( - 6 ) ELSE - COALESCE ( - 38, + - 97 ) END
----
-3381

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL 77 + + CAST ( 57 AS INTEGER ) * + - 60 - CASE 7 WHEN - - 40 THEN + MAX ( - 6 ) ELSE - COALESCE ( - 38, + - 97 ) END
----
-3381

query I rowsort
SELECT + 47 + - 84 + - - 1 AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT ALL - 81 + COUNT( * ) + + - 68 / + 65 * - ( + COALESCE ( + - 87, + 0 ) ) - 65 * - - 56 * + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + + 73 * + + 51 * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - 81 + COUNT ( * ) + + - 68 / + 65 * - ( + COALESCE ( + - 87, + 0 ) ) - 65 * - - 56 * + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + + 73 * + + 51 * - 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT + 87 + 52 + + + 87 + - 26 - - 61 - CAST( NULL AS SIGNED ) * CAST( + - NULLIF ( - - 84, 35 * 68 ) AS SIGNED ) * + 60 * + CASE + COUNT( * ) WHEN - 31 THEN - ( 63 ) ELSE NULL END + 96 / - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT + 87 + 52 + + + 87 + - 26 - - 61 - CAST ( NULL AS INTEGER ) * CAST ( + - NULLIF ( - - 84, 35 * 68 ) AS INTEGER ) * + 60 * + CASE + COUNT ( * ) WHEN - 31 THEN - ( 63 ) ELSE NULL END + 96 / - COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8123
SELECT - CAST( NULL AS SIGNED ), 95 + + 8 + - - 27 + + 49 + - 55 * - 80 * + 17 AS col1
----
NULL
74979

skipif mysql # not compatible
query II rowsort label-8123
SELECT - CAST ( NULL AS INTEGER ), 95 + + 8 + - - 27 + + 49 + - 55 * - 80 * + 17 AS col1
----
NULL
74979

query I rowsort
SELECT ALL + 32 * - 61 AS col2
----
-1952

onlyif mysql # DIV for integer division: 
query I rowsort label-8125
SELECT 56 DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8125
SELECT 56 / 97 AS col2
----
0

query I rowsort
SELECT ALL 10 - + 64
----
-54

query II rowsort
SELECT + 6, - 61 AS col0
----
6
-61

query I rowsort
SELECT ALL 23 - 99
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8129
SELECT DISTINCT - MAX( 10 ) AS col2, + 39 col0
----
-10
39

skipif mysql # not compatible
query II rowsort label-8129
SELECT DISTINCT - MAX ( 10 ) AS col2, + 39 col0
----
-10
39

query I rowsort
SELECT ALL + - 22 - + - 44 + + ( - 4 )
----
18

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

skipif mysql # not compatible
query I rowsort label-8131
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) / + + 37
----
0

query I rowsort
SELECT ALL - 55 * + 74 * - 96 + 32 * 34 - + 87 * + 89 AS col0
----
384065

query II rowsort
SELECT - 40, 18 AS col1
----
-40
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8134
SELECT + SUM( + + 34 ) AS col0, + COUNT( * ) AS col1
----
34
1

skipif mysql # not compatible
query II rowsort label-8134
SELECT + SUM ( + + 34 ) AS col0, + COUNT ( * ) AS col1
----
34
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8135
SELECT + 93 DIV - + 74 - - 5 * + - 98 AS col1
----
-491

skipif mysql # not compatible
query I rowsort label-8135
SELECT + 93 / - + 74 - - 5 * + - 98 AS col1
----
-491

query I rowsort
SELECT 6 * + 73
----
438

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + 30 * - + 57 + - + COUNT( * ) * COUNT( * ) - - - 71 AS col2
----
-1782

skipif mysql # not compatible
query I rowsort label-8137
SELECT + 30 * - + 57 + - + COUNT ( * ) * COUNT ( * ) - - - 71 AS col2
----
-1782

query I rowsort
SELECT ALL + 25 * 23
----
575

onlyif mysql # aggregate syntax: 
query II rowsort label-8139
SELECT 96 * + 53 AS col0, - SUM( 38 ) * 53 + - + 72 + + + COUNT( ALL + 66 ) AS col1
----
5088
-2085

skipif mysql # not compatible
query II rowsort label-8139
SELECT 96 * + 53 AS col0, - SUM ( 38 ) * 53 + - + 72 + + + COUNT ( ALL + 66 ) AS col1
----
5088
-2085

query I rowsort
SELECT ALL - NULLIF ( - 79, - + 59 ) AS col0
----
79

query I rowsort
SELECT DISTINCT + NULLIF ( + 62, - 89 ) * - 2 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT DISTINCT + COUNT( * ) + + 33 col0, 72
----
34
72

skipif mysql # not compatible
query II rowsort label-8142
SELECT DISTINCT + COUNT ( * ) + + 33 col0, 72
----
34
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT 80 + + 94 DIV - + 24 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8143
SELECT 80 + + 94 / - + 24 AS col0
----
77

query I rowsort
SELECT 86 * + - 33
----
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - 92 * - 32 + - COUNT( * ) + - 18 AS col0
----
2925

skipif mysql # not compatible
query I rowsort label-8145
SELECT - 92 * - 32 + - COUNT ( * ) + - 18 AS col0
----
2925

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( 25, 75 * 25 ), - - 53 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8148
SELECT ALL MIN( + + 75 ), 97 + - 29 col0
----
75
68

skipif mysql # not compatible
query II rowsort label-8148
SELECT ALL MIN ( + + 75 ), 97 + - 29 col0
----
75
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8149
SELECT DISTINCT 97 + - 71 DIV + COUNT( * ) col0
----
26

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT 97 + - 71 / + COUNT ( * ) col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT ALL CASE 91 WHEN + ( + COUNT( * ) ) THEN + CAST( 83 AS SIGNED ) ELSE NULL END + + + ( - 66 ) * - - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL CASE 91 WHEN + ( + COUNT ( * ) ) THEN + CAST ( 83 AS INTEGER ) ELSE NULL END + + + ( - 66 ) * - - 57 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8151
SELECT ALL 14 DIV - 43 * - - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL 14 / - 43 * - - 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT + 38 * - CASE - 94 WHEN + ( + 46 ) THEN COUNT( - NULLIF ( - 10, 81 + + - 79 ) ) ELSE + + 9 END
----
-342

skipif mysql # not compatible
query I rowsort label-8152
SELECT + 38 * - CASE - 94 WHEN + ( + 46 ) THEN COUNT ( - NULLIF ( - 10, 81 + + - 79 ) ) ELSE + + 9 END
----
-342

query II rowsort
SELECT DISTINCT - 44 + 53 AS col1, 13 AS col1
----
9
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8154
SELECT ALL + 85 + - - 75 + NULLIF ( - + 47, - 36 * + + NULLIF ( - + 87, - COUNT( * ) + + 57 + - 53 ) + ( + 68 ) ) AS col1, 1 + 67 DIV 65
----
113
2

skipif mysql # not compatible
query II rowsort label-8154
SELECT ALL + 85 + - - 75 + NULLIF ( - + 47, - 36 * + + NULLIF ( - + 87, - COUNT ( * ) + + 57 + - 53 ) + ( + 68 ) ) AS col1, 1 + 67 / 65
----
113
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - 97 - 94 + + COUNT( * ) + SUM( + + 46 ) * 97
----
4272

skipif mysql # not compatible
query I rowsort label-8155
SELECT - 97 - 94 + + COUNT ( * ) + SUM ( + + 46 ) * 97
----
4272

query I rowsort
SELECT DISTINCT 37 * - - 78
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - NULLIF ( 51, + MIN( + 36 ) + - 84 ) - + 71 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-8157
SELECT - NULLIF ( 51, + MIN ( + 36 ) + - 84 ) - + 71 AS col1
----
-122

query I rowsort
SELECT + 81 * 30 + - - 90
----
2520

query I rowsort
SELECT DISTINCT - ( - + 63 ) - - 95 AS col0
----
158

query I rowsort
SELECT ALL + CASE + 99 WHEN + ( - + 36 ) + 80 THEN + 16 * - 25 WHEN + 4 * - - ( - 82 ) THEN + - 42 ELSE NULL END - - ( 71 ) + + 66
----
NULL

query I rowsort
SELECT + + 64 * - 49 col1
----
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT + - SUM( - 52 ) - 55
----
-3

skipif mysql # not compatible
query I rowsort label-8162
SELECT + - SUM ( - 52 ) - 55
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8163
SELECT ALL 78 * - COUNT( * ) - - - 12 + + SUM( DISTINCT - + 6 ) * + 41 * NULLIF ( - + 0, + 63 + + 18 + + 59 + 53 ) DIV - 39 + 17
----
-73

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL 78 * - COUNT ( * ) - - - 12 + + SUM ( DISTINCT - + 6 ) * + 41 * NULLIF ( - + 0, + 63 + + 18 + + 59 + 53 ) / - 39 + 17
----
-73

query I rowsort
SELECT + - 45 + 14
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL + - CASE + 54 WHEN + 54 + + 44 THEN - 12 WHEN - - 4 - - - 0 * - COALESCE ( + ( + 6 ), + - COUNT( * ) * + + 90 * 48 ) THEN NULL WHEN - 29 THEN NULL ELSE 2 - + + 81 * - 0 END
----
-2

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + - CASE + 54 WHEN + 54 + + 44 THEN - 12 WHEN - - 4 - - - 0 * - COALESCE ( + ( + 6 ), + - COUNT ( * ) * + + 90 * 48 ) THEN NULL WHEN - 29 THEN NULL ELSE 2 - + + 81 * - 0 END
----
-2

query I rowsort
SELECT - + 65 * 35 AS col1
----
-2275

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT - 10 DIV + COALESCE ( - 28, 40, 5 ) + - - 15
----
15

skipif mysql # not compatible
query I rowsort label-8167
SELECT - 10 / + COALESCE ( - 28, 40, 5 ) + - - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL 80 * - 22 - - 52 + + COUNT( * )
----
-1707

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL 80 * - 22 - - 52 + + COUNT ( * )
----
-1707

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8169
SELECT ALL + 16, COALESCE ( + + ( - 38 ), 98 + - - 55 ) * - 98 * - CASE + 16 WHEN 83 THEN NULL WHEN + + 47 THEN + CAST( NULL AS SIGNED ) + + + 35 END AS col1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-8169
SELECT ALL + 16, COALESCE ( + + ( - 38 ), 98 + - - 55 ) * - 98 * - CASE + 16 WHEN 83 THEN NULL WHEN + + 47 THEN + CAST ( NULL AS INTEGER ) + + + 35 END AS col1
----
16
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT DISTINCT 5 DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT 5 / 30
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8171
SELECT + 17 + + 72 + - 53 AS col0, NULLIF ( + 26, - CASE + COALESCE ( COUNT( * ), + 83, 15 + COUNT( + + ( + 86 ) ) ) WHEN + 90 THEN + COUNT( * ) END ) * MIN( DISTINCT - 0 )
----
36
0

skipif mysql # not compatible
query II rowsort label-8171
SELECT + 17 + + 72 + - 53 AS col0, NULLIF ( + 26, - CASE + COALESCE ( COUNT ( * ), + 83, 15 + COUNT ( + + ( + 86 ) ) ) WHEN + 90 THEN + COUNT ( * ) END ) * MIN ( DISTINCT - 0 )
----
36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT CASE + - SUM( ALL + 16 ) WHEN - 39 THEN NULL ELSE 90 END AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8172
SELECT CASE + - SUM ( ALL + 16 ) WHEN - 39 THEN NULL ELSE 90 END AS col1
----
90

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

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

query I rowsort
SELECT ALL ( - 99 ) * - - 67 + + + 30
----
-6603

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

skipif mysql # not compatible
query I rowsort label-8175
SELECT COALESCE ( + COUNT ( * ), 54 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT 30 * + ( + ( + COALESCE ( + + COUNT( * ), - COUNT( * ) * 56 + - 86, + + 8, + - COALESCE ( + 60, + 39 * - + CASE - + COUNT( * ) WHEN + 73 THEN + 68 END + 27, - - NULLIF ( - MIN( 21 ), 4 + 3 ), NULLIF ( 6, + COUNT( * ) + - 62 ) * COUNT( * ) ) + 68 ) ) ) + SUM( ( ( ( + 32 ) ) ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8176
SELECT 30 * + ( + ( + COALESCE ( + + COUNT ( * ), - COUNT ( * ) * 56 + - 86, + + 8, + - COALESCE ( + 60, + 39 * - + CASE - + COUNT ( * ) WHEN + 73 THEN + 68 END + 27, - - NULLIF ( - MIN ( 21 ), 4 + 3 ), NULLIF ( 6, + COUNT ( * ) + - 62 ) * COUNT ( * ) ) + 68 ) ) ) + SUM ( ( ( ( + 32 ) ) ) ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL + 15 * + MIN( ALL + 90 ) + - 71
----
1279

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL + 15 * + MIN ( ALL + 90 ) + - 71
----
1279

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT CASE WHEN COUNT( * ) IS NOT NULL THEN + 27 END
----
27

skipif mysql # not compatible
query I rowsort label-8178
SELECT CASE WHEN COUNT ( * ) IS NOT NULL THEN + 27 END
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8179
SELECT + 85, COUNT( * ) col2
----
85
1

skipif mysql # not compatible
query II rowsort label-8179
SELECT + 85, COUNT ( * ) col2
----
85
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8180
SELECT ALL + 48 * COUNT( * ) DIV + 54 + + 68 * - 57 + - + 19 - + - 77
----
-3818

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL + 48 * COUNT ( * ) / + 54 + + 68 * - 57 + - + 19 - + - 77
----
-3818

query I rowsort
SELECT + 51 * + 40 * - ( - 62 ) * 55 col1
----
6956400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8182
SELECT DISTINCT + COUNT( * ) * - - MIN( + 78 ) + + + AVG ( ALL + 53 ) + - MIN( DISTINCT + 88 ) + - + CASE 84 WHEN + 78 THEN NULL WHEN - - ( - COUNT( * ) ) THEN + 28 WHEN CAST( + - 97 AS SIGNED ) + + 97 THEN NULL WHEN + - 7 - + 62 THEN + 50 ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT + COUNT ( * ) * - - MIN ( + 78 ) + + + AVG ( ALL + 53 ) + - MIN ( DISTINCT + 88 ) + - + CASE 84 WHEN + 78 THEN NULL WHEN - - ( - COUNT ( * ) ) THEN + 28 WHEN CAST ( + - 97 AS INTEGER ) + + 97 THEN NULL WHEN + - 7 - + 62 THEN + 50 ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8183
SELECT DISTINCT + 38 * + + 28 * + CAST( NULL AS DECIMAL ) + - 44 + 63 * + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT + 38 * + + 28 * + CAST ( NULL AS REAL ) + - 44 + 63 * + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT + 8 + - - 96 * COUNT( * ) AS col2, 7 + 15 AS col0
----
104
22

skipif mysql # not compatible
query II rowsort label-8184
SELECT + 8 + - - 96 * COUNT ( * ) AS col2, 7 + 15 AS col0
----
104
22

query I rowsort
SELECT - 14 + + - 79 AS col0
----
-93

query I rowsort
SELECT DISTINCT - 86 + - 40 AS col0
----
-126

query I rowsort
SELECT - 82 + + - 28
----
-110

query II rowsort
SELECT - + 60 AS col2, - 61 AS col0
----
-60
-61

query I rowsort
SELECT - 95 + + 66
----
-29

query I rowsort
SELECT - + 85 + + + 1 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL + + COUNT( * ) - - - 75 * COUNT( * ) * + 8
----
-599

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL + + COUNT ( * ) - - - 75 * COUNT ( * ) * + 8
----
-599

query I rowsort
SELECT - - 10 + + + 88
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT ALL - 99 DIV 18
----
-5

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - 99 / 18
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-8194
SELECT - + 93 DIV 87 + - 25 AS col0, 26 DIV 4 AS col2
----
-26
6

skipif mysql # not compatible
query II rowsort label-8194
SELECT - + 93 / 87 + - 25 AS col0, 26 / 4 AS col2
----
-26
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8195
SELECT - 68 AS col1, + CASE - 62 WHEN - - COUNT( * ) * 77 + CAST( NULL AS DECIMAL ) THEN - 69 - 28 WHEN CASE - 53 WHEN + + COUNT( * ) THEN NULL ELSE + ( 80 ) END THEN NULL WHEN + + COUNT( * ) THEN CASE + - 52 WHEN - CAST( - 54 AS SIGNED ) * - 66 THEN 35 ELSE - 93 * 13 END * 56 END + - 71
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-8195
SELECT - 68 AS col1, + CASE - 62 WHEN - - COUNT ( * ) * 77 + CAST ( NULL AS REAL ) THEN - 69 - 28 WHEN CASE - 53 WHEN + + COUNT ( * ) THEN NULL ELSE + ( 80 ) END THEN NULL WHEN + + COUNT ( * ) THEN CASE + - 52 WHEN - CAST ( - 54 AS INTEGER ) * - 66 THEN 35 ELSE - 93 * 13 END * 56 END + - 71
----
-68
NULL

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 58, 7 + - + 35 )
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8198
SELECT - - 60 DIV + 60 - 15 AS col1, + 52 col0
----
-14
52

skipif mysql # not compatible
query II rowsort label-8198
SELECT - - 60 / + 60 - 15 AS col1, + 52 col0
----
-14
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT - - 49 * - - ( - MAX( - 78 ) )
----
3822

skipif mysql # not compatible
query I rowsort label-8199
SELECT - - 49 * - - ( - MAX ( - 78 ) )
----
3822

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT ALL - - 38 DIV + 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - - 38 / + 37 AS col1
----
1

query II rowsort
SELECT - - 65, + 81 col2
----
65
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT - COUNT( * ) * + 30 + - 11
----
-41

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT - COUNT ( * ) * + 30 + - 11
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT - 16 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-8203
SELECT - 16 / 37
----
0

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

skipif mysql # not compatible
query I rowsort label-8204
SELECT + MIN ( - + 87 )
----
-87

query I rowsort
SELECT ALL 69 * 45 col0
----
3105

query I rowsort
SELECT + 93 * + 82 * - 32
----
-244032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT ALL MAX( + 46 ) DIV + 93 + + 34
----
34

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL MAX ( + 46 ) / + 93 + + 34
----
34

query I rowsort
SELECT - 22 * - - ( 54 )
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT + COUNT( ALL - ( + 79 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8209
SELECT + COUNT ( ALL - ( + 79 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT CAST( - 36 AS SIGNED ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8210
SELECT CAST ( - 36 AS INTEGER ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8211
SELECT ALL - MAX( ALL + 33 ) DIV - - 98 + + ( + 89 ) + - 48 + + - 63 * - COUNT( * ) + 70 AS col2
----
174

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - MAX ( ALL + 33 ) / - - 98 + + ( + 89 ) + - 48 + + - 63 * - COUNT ( * ) + 70 AS col2
----
174

query I rowsort
SELECT + 27 * 38 * - - 52
----
53352

onlyif mysql # aggregate syntax: 
query II rowsort label-8213
SELECT ALL COUNT( * ) * + + 98 AS col0, - 66 col0
----
98
-66

skipif mysql # not compatible
query II rowsort label-8213
SELECT ALL COUNT ( * ) * + + 98 AS col0, - 66 col0
----
98
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT ALL 50 DIV - + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL 50 / - + 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL - CASE + CASE - ( - COUNT( * ) ) WHEN + 85 THEN 44 * + ( + - 76 ) WHEN - 38 THEN NULL END WHEN + + 71 THEN NULL WHEN - 95 THEN - 76 * + + ( + + 43 ) * COUNT( * ) / - + 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - CASE + CASE - ( - COUNT ( * ) ) WHEN + 85 THEN 44 * + ( + - 76 ) WHEN - 38 THEN NULL END WHEN + + 71 THEN NULL WHEN - 95 THEN - 76 * + + ( + + 43 ) * COUNT ( * ) / - + 64 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - NULLIF ( + 45, 29 - 16 ), - 71 AS col1
----
-45
-71

query I rowsort
SELECT DISTINCT ( - 82 ) + + + 89 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8218
SELECT DISTINCT COALESCE ( + 93, 40 DIV 75 + - NULLIF ( CASE - + 55 WHEN + COUNT( * ) THEN - 80 END, + + 85 ) ) - - 49
----
142

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT COALESCE ( + 93, 40 / 75 + - NULLIF ( CASE - + 55 WHEN + COUNT ( * ) THEN - 80 END, + + 85 ) ) - - 49
----
142

query I rowsort
SELECT + 40 * - 31 + 38 AS col2
----
-1202

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8220
SELECT ALL + + 90 DIV - - 32 - NULLIF ( - 69, + AVG ( ALL - CAST( NULL AS SIGNED ) ) DIV - 84 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + + 90 / - - 32 - NULLIF ( - 69, + AVG ( ALL - CAST ( NULL AS INTEGER ) ) / - 84 ) AS col1
----
71

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

skipif mysql # not compatible
query I rowsort label-8221
SELECT - + COALESCE ( - COUNT ( * ), - 92 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT COUNT( * ) + - CASE - COUNT( * ) WHEN - 11 / - 33 + - ( CASE - 74 WHEN NULLIF ( - 65, + + COUNT( * ) * + 79 * - + MAX( - - 21 ) ) - - + 50 + + COUNT( * ) THEN - 47 ELSE NULL END ) * + 24 THEN NULL WHEN - 39 THEN ( - 52 ) ELSE 59 END
----
-58

skipif mysql # not compatible
query I rowsort label-8222
SELECT COUNT ( * ) + - CASE - COUNT ( * ) WHEN - 11 / - 33 + - ( CASE - 74 WHEN NULLIF ( - 65, + + COUNT ( * ) * + 79 * - + MAX ( - - 21 ) ) - - + 50 + + COUNT ( * ) THEN - 47 ELSE NULL END ) * + 24 THEN NULL WHEN - 39 THEN ( - 52 ) ELSE 59 END
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8223
SELECT DISTINCT - 3 - + + SUM( ALL 13 ) + 51, - CAST( NULL AS DECIMAL ) + + MAX( - + 60 ) AS col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-8223
SELECT DISTINCT - 3 - + + SUM ( ALL 13 ) + 51, - CAST ( NULL AS REAL ) + + MAX ( - + 60 ) AS col1
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL - 70 * + SUM( + 91 )
----
-6370

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL - 70 * + SUM ( + 91 )
----
-6370

query I rowsort
SELECT 54 * + 66 AS col2
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT - COUNT( + 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8226
SELECT - COUNT ( + 90 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ALL COALESCE ( - 21, 26 * + 30 - COUNT( * ), + 69 )
----
-21

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL COALESCE ( - 21, 26 * + 30 - COUNT ( * ), + 69 )
----
-21

query I rowsort
SELECT 34 * - 34 AS col0
----
-1156

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8229
SELECT - CASE + 53 WHEN 74 * - - 25 + + 79 THEN 35 + 79 + - + SUM( ALL + CAST( + ( 57 ) AS DECIMAL ) ) ELSE NULL END * - 44 / - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT - CASE + 53 WHEN 74 * - - 25 + + 79 THEN 35 + 79 + - + SUM ( ALL + CAST ( + ( 57 ) AS REAL ) ) ELSE NULL END * - 44 / - 2 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 76 * + + 33 * - - 82 AS col2
----
-205656

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT ALL + 18 + - COUNT( * ) AS col0, + 2
----
17
2

skipif mysql # not compatible
query II rowsort label-8231
SELECT ALL + 18 + - COUNT ( * ) AS col0, + 2
----
17
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT ALL + SUM( 57 ) col2, + 97
----
57
97

skipif mysql # not compatible
query II rowsort label-8232
SELECT ALL + SUM ( 57 ) col2, + 97
----
57
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8233
SELECT + NULLIF ( - + 71, 38 + - ( + COUNT( * ) ) + 34 + 71 ) + + NULLIF ( 39, + 20 * + - 16 + - - CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) - 77 * + MIN( 61 ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT + NULLIF ( - + 71, 38 + - ( + COUNT ( * ) ) + 34 + 71 ) + + NULLIF ( 39, + 20 * + - 16 + - - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) - 77 * + MIN ( 61 ) * 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT + 15 + + 96 * - NULLIF ( MAX( DISTINCT + 51 ), + COUNT( * ) )
----
-4881

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + 15 + + 96 * - NULLIF ( MAX ( DISTINCT + 51 ), + COUNT ( * ) )
----
-4881

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT + - CAST( + 39 AS SIGNED ) DIV 28
----
-1

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT + - CAST ( + 39 AS INTEGER ) / 28
----
-1

query I rowsort
SELECT ALL 89 + - 81 + - 7 - - 36 AS col0
----
37

query I rowsort
SELECT 6 - 30
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8238
SELECT 80 + COALESCE ( - - 94, 18 * ( + ( 73 ) ) + + COUNT( * ) + - 52, - + 67, - - 70 ) + + 74 * - CASE + 1 WHEN + + 78 THEN NULL ELSE - 57 DIV 73 + + - 37 * - COUNT( + + 77 ) END
----
-2564

skipif mysql # not compatible
query I rowsort label-8238
SELECT 80 + COALESCE ( - - 94, 18 * ( + ( 73 ) ) + + COUNT ( * ) + - 52, - + 67, - - 70 ) + + 74 * - CASE + 1 WHEN + + 78 THEN NULL ELSE - 57 / 73 + + - 37 * - COUNT ( + + 77 ) END
----
-2564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT 67 DIV 39 DIV + COUNT( * ) - - 94 * + - 7 col1
----
-657

skipif mysql # not compatible
query I rowsort label-8239
SELECT 67 / 39 / + COUNT ( * ) - - 94 * + - 7 col1
----
-657

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT DISTINCT + 76 DIV - 38 col1
----
-2

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + 76 / - 38 col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8241
SELECT COUNT( * ) DIV - - MAX( + + 62 ) * + 8
----
0

skipif mysql # not compatible
query I rowsort label-8241
SELECT COUNT ( * ) / - - MAX ( + + 62 ) * + 8
----
0

query I rowsort
SELECT 96 * - 3 col1
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-8243
SELECT + 72, COUNT( - 86 ) AS col1
----
72
1

skipif mysql # not compatible
query II rowsort label-8243
SELECT + 72, COUNT ( - 86 ) AS col1
----
72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ALL - COUNT( * ) + 25 * - 60 * + 52 * 18 col0
----
-1404001

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL - COUNT ( * ) + 25 * - 60 * + 52 * 18 col0
----
-1404001

onlyif mysql # aggregate syntax: 
query II rowsort label-8245
SELECT DISTINCT + 76 * - ( COUNT( * ) ) * - ( - 54 ) AS col0, COUNT( DISTINCT + 90 ) * 14 * 74 AS col1
----
-4104
1036

skipif mysql # not compatible
query II rowsort label-8245
SELECT DISTINCT + 76 * - ( COUNT ( * ) ) * - ( - 54 ) AS col0, COUNT ( DISTINCT + 90 ) * 14 * 74 AS col1
----
-4104
1036

onlyif mysql # aggregate syntax: 
query II rowsort label-8246
SELECT DISTINCT - 89 col2, - MAX( ALL + 36 ) AS col0
----
-89
-36

skipif mysql # not compatible
query II rowsort label-8246
SELECT DISTINCT - 89 col2, - MAX ( ALL + 36 ) AS col0
----
-89
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT 24 + + - COUNT( 56 ) + 69 - + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8247
SELECT 24 + + - COUNT ( 56 ) + 69 - + COUNT ( * ) AS col0
----
91

query I rowsort
SELECT ALL - 4 - + 27 AS col2
----
-31

query I rowsort
SELECT ALL 92 - - - 62 AS col1
----
30

query I rowsort
SELECT ( + + 2 ) + 19 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT COUNT( * ) * + CAST( MAX( ALL - 14 ) AS SIGNED ) + - + 22 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8251
SELECT COUNT ( * ) * + CAST ( MAX ( ALL - 14 ) AS INTEGER ) + - + 22 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT 20 * - MAX( - ( + 25 ) ) AS col2
----
500

skipif mysql # not compatible
query I rowsort label-8252
SELECT 20 * - MAX ( - ( + 25 ) ) AS col2
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL - CASE + 97 WHEN + NULLIF ( + + COUNT( - 40 ), - 4 + COALESCE ( - 28, - 46, - + 76 ) + + 65 ) + + - 42 THEN CASE 95 WHEN - + 39 THEN NULL ELSE - - 57 * + + 85 - - - 32 END + 98 + + 30 * - 80 ELSE 71 END
----
-71

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - CASE + 97 WHEN + NULLIF ( + + COUNT ( - 40 ), - 4 + COALESCE ( - 28, - 46, - + 76 ) + + 65 ) + + - 42 THEN CASE 95 WHEN - + 39 THEN NULL ELSE - - 57 * + + 85 - - - 32 END + 98 + + 30 * - 80 ELSE 71 END
----
-71

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

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

query I rowsort
SELECT ALL + 4 * + + NULLIF ( 58, 86 ) col2
----
232

query I rowsort
SELECT - 4 * + - 16 AS col1
----
64

query I rowsort
SELECT ALL NULLIF ( - + 34, + ( + 55 ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8258
SELECT + - COUNT( + CAST( - ( 57 ) AS SIGNED ) ) * + 22 - - 45
----
23

skipif mysql # not compatible
query I rowsort label-8258
SELECT + - COUNT ( + CAST ( - ( 57 ) AS INTEGER ) ) * + 22 - - 45
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT DISTINCT - CAST( - + 76 AS SIGNED ) * - 60 - + 20 AS col1
----
-4580

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - CAST ( - + 76 AS INTEGER ) * - 60 - + 20 AS col1
----
-4580

query I rowsort
SELECT + 27 + + + 0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT + 71 DIV + ( + 1 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8261
SELECT + 71 / + ( + 1 ) AS col0
----
71

query I rowsort
SELECT 46 * - 64 * - 6 * 21 AS col1
----
370944

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8263
SELECT ALL - 22 + - + 90 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL - 22 + - + 90 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + ( - 13 ) * - 33 AS col0
----
429

query I rowsort
SELECT - ( + 30 ) + - + 44 + + 97 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT DISTINCT - COUNT( * ) + CASE + CAST( - 7 AS SIGNED ) WHEN - + 3 THEN - - COALESCE ( 33, - 40 + 36, - + 4 * 35 * - + 59 * + CAST( - 66 AS SIGNED ) ) * 47 END + - + 34 + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT - COUNT ( * ) + CASE + CAST ( - 7 AS INTEGER ) WHEN - + 3 THEN - - COALESCE ( 33, - 40 + 36, - + 4 * 35 * - + 59 * + CAST ( - 66 AS INTEGER ) ) * 47 END + - + 34 + 29
----
NULL

query I rowsort
SELECT ALL + - 71 + - 33
----
-104

query I rowsort
SELECT - ( 40 ) * 27 col1
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT ALL 90 + + - 20 DIV - NULLIF ( + 31, 70 ) - - + 44 col1
----
134

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL 90 + + - 20 / - NULLIF ( + 31, 70 ) - - + 44 col1
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT - COUNT( * ) + - 8 + + MAX( 37 )
----
28

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT - COUNT ( * ) + - 8 + + MAX ( 37 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8271
SELECT DISTINCT + ( - 88 ) * - CASE + + COUNT( * ) WHEN 68 THEN ( 77 ) WHEN 14 + + - ( - - 12 ) + 76 * + CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT + ( - 88 ) * - CASE + + COUNT ( * ) WHEN 68 THEN ( 77 ) WHEN 14 + + - ( - - 12 ) + 76 * + CAST ( NULL AS REAL ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL - - 95 + + 53 - COUNT( * ) + + 55 * + 52
----
3007

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - - 95 + + 53 - COUNT ( * ) + + 55 * + 52
----
3007

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + COUNT( * ) + COALESCE ( + + ( - - 60 ), + 99, - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-8273
SELECT + COUNT ( * ) + COALESCE ( + + ( - - 60 ), + 99, - 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL CASE - 60 WHEN + 7 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL CASE - 60 WHEN + 7 THEN + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 87 * - 30 AS col2
----
-2610

query I rowsort
SELECT 94 + - 12
----
82

query II rowsort
SELECT 87 col1, 32 col0
----
87
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT 25 + + CAST( NULL AS SIGNED ) + + - MIN( DISTINCT - + 79 ) * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT 25 + + CAST ( NULL AS INTEGER ) + + - MIN ( DISTINCT - + 79 ) * - - COUNT ( * ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL - COUNT ( * ) + NULLIF ( + - 59, + 1 ) / 32
----
-2

query I rowsort
SELECT - COALESCE ( - 47, + - ( - 34 ) )
----
47

query II rowsort
SELECT 30, + 78 AS col2
----
30
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL + COUNT( - 93 ) + + 3 * - 44 * + - 98
----
12937

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + COUNT ( - 93 ) + + 3 * - 44 * + - 98
----
12937

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT COUNT( DISTINCT - 78 ) * 38
----
38

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT COUNT ( DISTINCT - 78 ) * 38
----
38

query I rowsort
SELECT NULLIF ( - - 40, + 6 )
----
40

query II rowsort
SELECT - 21 * ( + - CASE - 64 WHEN - - 51 THEN NULL WHEN + 12 + + + 78 THEN - + 47 * + 69 END ) * - - 71 * 85 AS col2, 97 col1
----
NULL
97

query I rowsort
SELECT + 92 - - 7
----
99

query I rowsort
SELECT NULLIF ( - 9, + 36 ) AS col0
----
-9

query I rowsort
SELECT - 85 * 77
----
-6545

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL - 10 * + CASE COUNT( * ) WHEN - - 60 THEN + + 64 + - + COUNT( * ) - 92 WHEN + + CASE + 13 WHEN - AVG ( + NULLIF ( + + 24, 25 ) ) * 94 + + COUNT( + 76 ) + - MAX( 16 ) THEN - + COUNT( * ) - - + 4 * - - 40 END THEN NULL END * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - 10 * + CASE COUNT ( * ) WHEN - - 60 THEN + + 64 + - + COUNT ( * ) - 92 WHEN + + CASE + 13 WHEN - AVG ( + NULLIF ( + + 24, 25 ) ) * 94 + + COUNT ( + 76 ) + - MAX ( 16 ) THEN - + COUNT ( * ) - - + 4 * - - 40 END THEN NULL END * - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT - NULLIF ( - - COUNT( * ), - - 11 ) * + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), - - 11 ) * + - COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8295
SELECT ALL 26 * 58 AS col0, CASE - CAST( NULL AS SIGNED ) WHEN + ( + + 40 ) THEN NULL ELSE - - 65 * 30 END * + ( + - ( 1 ) ) + 30 * 85 + 26
----
1508
626

skipif mysql # not compatible
query II rowsort label-8295
SELECT ALL 26 * 58 AS col0, CASE - CAST ( NULL AS INTEGER ) WHEN + ( + + 40 ) THEN NULL ELSE - - 65 * 30 END * + ( + - ( 1 ) ) + 30 * 85 + 26
----
1508
626

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - COUNT( * ) * 71 * COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8296
SELECT - COUNT ( * ) * 71 * COUNT ( * ) AS col2
----
-71

query I rowsort
SELECT DISTINCT + 75 * + 43 AS col2
----
3225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8298
SELECT ALL + + NULLIF ( + + 0, + - ( CAST( 98 AS DECIMAL ) ) + + ( - - 72 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL + + NULLIF ( + + 0, + - ( CAST ( 98 AS REAL ) ) + + ( - - 72 ) ) AS col0
----
0

query I rowsort
SELECT - ( - - 58 ) + 7 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT + + NULLIF ( - 50, 40 / CASE - - ( + 87 ) WHEN + - ( - 25 ) THEN - 94 WHEN + 36 / - - 82 * COUNT( * ) THEN NULL END )
----
-50

skipif mysql # not compatible
query I rowsort label-8300
SELECT + + NULLIF ( - 50, 40 / CASE - - ( + 87 ) WHEN + - ( - 25 ) THEN - 94 WHEN + 36 / - - 82 * COUNT ( * ) THEN NULL END )
----
-50

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

query I rowsort
SELECT - - 37 * CASE + 47 WHEN - NULLIF ( 24, + 53 / + + 72 ) THEN 77 END AS col1
----
NULL

query I rowsort
SELECT + - 73 - + 14 * - 90 - 69 AS col0
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL CASE + + 96 WHEN - ( + - ( 54 ) ) THEN NULL ELSE + + 49 END + - + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL CASE + + 96 WHEN - ( + - ( 54 ) ) THEN NULL ELSE + + 49 END + - + COUNT ( * ) AS col0
----
48

query I rowsort
SELECT + 38 * + 58
----
2204

onlyif mysql # aggregate syntax: 
query II rowsort label-8306
SELECT ALL COUNT( * ) + 46 AS col0, 44 + + 28 * + COUNT( * )
----
47
72

skipif mysql # not compatible
query II rowsort label-8306
SELECT ALL COUNT ( * ) + 46 AS col0, 44 + + 28 * + COUNT ( * )
----
47
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL - 90 + - - NULLIF ( + 71, - - 5 * + 45 + - 24 ) - 20 + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL - 90 + - - NULLIF ( + 71, - - 5 * + 45 + - 24 ) - 20 + - COUNT ( * )
----
-40

query I rowsort
SELECT DISTINCT - 68 + + 52 AS col2
----
-16

query I rowsort
SELECT DISTINCT + 99 * 33 AS col1
----
3267

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

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

query I rowsort
SELECT + - 71 * + - 23 AS col2
----
1633

query I rowsort
SELECT ALL + 66 * - 44 + + 28
----
-2876

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + + 55 / + + 8 / COUNT( * ) + + + 4 + - ( - - CASE - 95 WHEN + 78 THEN + ( 92 ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT + + 55 / + + 8 / COUNT ( * ) + + + 4 + - ( - - CASE - 95 WHEN + 78 THEN + ( 92 ) ELSE NULL END ) AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT ALL 63 DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL 63 / + 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8316
SELECT ALL SUM( - 45 ) AS col2, - 63 AS col0
----
-45
-63

skipif mysql # not compatible
query II rowsort label-8316
SELECT ALL SUM ( - 45 ) AS col2, - 63 AS col0
----
-45
-63

query I rowsort
SELECT + 28 + + - 19
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT ALL COUNT( * ) - - 4 AS col0, COUNT( * )
----
5
1

skipif mysql # not compatible
query II rowsort label-8318
SELECT ALL COUNT ( * ) - - 4 AS col0, COUNT ( * )
----
5
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT - CAST( - 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8319
SELECT - CAST ( - 68 AS INTEGER ) AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT + 10 * + 12 DIV + + 52 DIV - 4
----
0

skipif mysql # not compatible
query I rowsort label-8320
SELECT + 10 * + 12 / + + 52 / - 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT + 68 + - MIN( 22 ) * 61 AS col0
----
-1274

skipif mysql # not compatible
query I rowsort label-8321
SELECT + 68 + - MIN ( 22 ) * 61 AS col0
----
-1274

query I rowsort
SELECT + 62 + 1
----
63

query II rowsort
SELECT ALL + ( 21 ), + 7 + + - 29 AS col0
----
21
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT - 33 DIV 71 + + 64
----
64

skipif mysql # not compatible
query I rowsort label-8324
SELECT - 33 / 71 + + 64
----
64

query I rowsort
SELECT ALL 20 * 92 AS col0
----
1840

query I rowsort
SELECT ALL + NULLIF ( - + 70, + NULLIF ( - 80, - 97 ) ) AS col0
----
-70

query II rowsort
SELECT + 12 + 5 * - 4, + 79 * - + 27 col2
----
-8
-2133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT + - 82 * + 41 - - + CAST( NULL AS SIGNED ) * 71 * + 5 * + 90 * 7 + - - COALESCE ( + 69, 59 + + MAX( ALL 62 ) * + ( + 48 ) ) * - 72 + + NULLIF ( + 97, - COALESCE ( - 91, - + 64 + - + 94 + - 57 / + 97, 21 * - MAX( 92 ) ) + 36 ) * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT + - 82 * + 41 - - + CAST ( NULL AS INTEGER ) * 71 * + 5 * + 90 * 7 + - - COALESCE ( + 69, 59 + + MAX ( ALL 62 ) * + ( + 48 ) ) * - 72 + + NULLIF ( + 97, - COALESCE ( - 91, - + 64 + - + 94 + - 57 / + 97, 21 * - MAX ( 92 ) ) + 36 ) * 23 AS col1
----
NULL

query I rowsort
SELECT + 96 * 37 + + 58 + 99
----
3709

query I rowsort
SELECT - 95 * + ( + 36 ) AS col1
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT + NULLIF ( - 11, + MIN( - + 30 ) * + + 34 ) * + 58 + - 4
----
-642

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT + NULLIF ( - 11, + MIN ( - + 30 ) * + + 34 ) * + 58 + - 4
----
-642

query I rowsort
SELECT - 9 * - + 47 col0
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL 29 * + SUM( ALL - 79 ) + - - 21 AS col0
----
-2270

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL 29 * + SUM ( ALL - 79 ) + - - 21 AS col0
----
-2270

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8334
SELECT DISTINCT 50 * 17 DIV 23 + + NULLIF ( - 30, - + ( - COUNT( * ) ) ), 41 AS col2
----
6
41

skipif mysql # not compatible
query II rowsort label-8334
SELECT DISTINCT 50 * 17 / 23 + + NULLIF ( - 30, - + ( - COUNT ( * ) ) ), 41 AS col2
----
6
41

query I rowsort
SELECT ALL + 30 * + ( + - 28 )
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT - - NULLIF ( 87, + 26 ) + MIN( ALL 31 ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-8336
SELECT - - NULLIF ( 87, + 26 ) + MIN ( ALL 31 ) AS col2
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8337
SELECT ALL 0 * - + COALESCE ( - 15, + - 24 ) DIV + - 19 + + - COUNT( * ) * + 21 * - - 46 AS col0
----
-966

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL 0 * - + COALESCE ( - 15, + - 24 ) / + - 19 + + - COUNT ( * ) * + 21 * - - 46 AS col0
----
-966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8338
SELECT ALL COUNT( * ) * - COALESCE ( 37, + 46, - 35 * NULLIF ( + 35, - ( + 93 ) ) DIV 83, - 4 ) + 58 + - MIN( 57 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL COUNT ( * ) * - COALESCE ( 37, + 46, - 35 * NULLIF ( + 35, - ( + 93 ) ) / 83, - 4 ) + 58 + - MIN ( 57 ) AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT ALL + + COALESCE ( + 96, + 42 * + + CAST( NULL AS SIGNED ), + 89 - - ( + COALESCE ( + 40, 58 * + + 25 ) ) ) * 66
----
6336

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL + + COALESCE ( + 96, + 42 * + + CAST ( NULL AS INTEGER ), + 89 - - ( + COALESCE ( + 40, 58 * + + 25 ) ) ) * 66
----
6336

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8341
SELECT - ( + 68 ) + + COALESCE ( COUNT( * ), - - 29 + + 43 + - COUNT( * ) + MIN( - - 56 ) DIV - 75, - 86, + 62 ) + + ( + - 39 ) col2
----
-106

skipif mysql # not compatible
query I rowsort label-8341
SELECT - ( + 68 ) + + COALESCE ( COUNT ( * ), - - 29 + + 43 + - COUNT ( * ) + MIN ( - - 56 ) / - 75, - 86, + 62 ) + + ( + - 39 ) col2
----
-106

query I rowsort
SELECT ( CASE + - ( 71 ) WHEN - - 40 THEN NULL WHEN - 77 * + 91 THEN NULL ELSE 43 END ) AS col2
----
43

query I rowsort
SELECT DISTINCT COALESCE ( 13, 54 + + - 86 ) AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8344
SELECT ALL + + 81 * - ( + 22 ) DIV COUNT( * ) * - - MIN( 78 ) + 68 AS col2
----
-138928

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL + + 81 * - ( + 22 ) / COUNT ( * ) * - - MIN ( 78 ) + 68 AS col2
----
-138928

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + ( + + MIN( ALL - 18 ) ) + - 18 + - 78 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-8345
SELECT + ( + + MIN ( ALL - 18 ) ) + - 18 + - 78 AS col1
----
-114

query I rowsort
SELECT DISTINCT + COALESCE ( 91, 62 - 81 ) AS col2
----
91

query II rowsort
SELECT DISTINCT 58 col2, + 49 AS col1
----
58
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8348
SELECT ALL 23 * - COALESCE ( 50, + + 85 + - 60 DIV - 14 * - CASE - ( + 65 ) WHEN 90 THEN 64 WHEN - 78 * - ( + NULLIF ( - COUNT( ALL - 13 ), - 96 * - 90 * + 12 + 74 + + 70 + + 51 + 56 DIV COUNT( * ) ) ) THEN NULL ELSE NULL END, - ( CAST( 98 AS SIGNED ) ) + - 9, CAST( 38 AS SIGNED ) * 34 - 6 )
----
-1150

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL 23 * - COALESCE ( 50, + + 85 + - 60 / - 14 * - CASE - ( + 65 ) WHEN 90 THEN 64 WHEN - 78 * - ( + NULLIF ( - COUNT ( ALL - 13 ), - 96 * - 90 * + 12 + 74 + + 70 + + 51 + 56 / COUNT ( * ) ) ) THEN NULL ELSE NULL END, - ( CAST ( 98 AS INTEGER ) ) + - 9, CAST ( 38 AS INTEGER ) * 34 - 6 )
----
-1150

query I rowsort
SELECT 15 + - + 7 col2
----
8

query I rowsort
SELECT DISTINCT 57 * 50 * - 51 * + 62 AS col0
----
-9011700

query II rowsort
SELECT ALL 67 AS col2, CASE + 34 WHEN + - 20 / - + 18 THEN - - 51 END
----
67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8352
SELECT DISTINCT 75 * MIN( - 54 ) AS col2, - 46 - 10
----
-4050
-56

skipif mysql # not compatible
query II rowsort label-8352
SELECT DISTINCT 75 * MIN ( - 54 ) AS col2, - 46 - 10
----
-4050
-56

query I rowsort
SELECT ALL 87 * + 90
----
7830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8354
SELECT 40 + - 14 + MIN( - + 44 ) DIV - MAX( ALL 85 )
----
26

skipif mysql # not compatible
query I rowsort label-8354
SELECT 40 + - 14 + MIN ( - + 44 ) / - MAX ( ALL 85 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8355
SELECT DISTINCT 22 * - CAST( + + MAX( 37 ) AS SIGNED ) AS col2
----
-814

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT 22 * - CAST ( + + MAX ( 37 ) AS INTEGER ) AS col2
----
-814

query I rowsort
SELECT 59 + + 31
----
90

query II rowsort
SELECT - 33, - ( - - 58 ) AS col0
----
-33
-58

query II rowsort
SELECT ALL + 82 * 71 * ( - - 8 ) AS col2, - 86 AS col1
----
46576
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT - ( 42 ) * + CASE - - COUNT( * ) WHEN 22 - - + 31 * 98 * - + 68 THEN 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - ( 42 ) * + CASE - - COUNT ( * ) WHEN 22 - - + 31 * 98 * - + 68 THEN 35 END AS col2
----
NULL

query I rowsort
SELECT ( + COALESCE ( + 8, + + 79 ) ) + - 14 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT COUNT( * ) * + 62 * - 90 AS col2
----
-5580

skipif mysql # not compatible
query I rowsort label-8361
SELECT COUNT ( * ) * + 62 * - 90 AS col2
----
-5580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8362
SELECT MAX( 35 ) DIV COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8362
SELECT MAX ( 35 ) / COUNT ( * ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8363
SELECT CAST( - 24 AS SIGNED ) * + 4 + + 58 DIV + 35
----
-95

skipif mysql # not compatible
query I rowsort label-8363
SELECT CAST ( - 24 AS INTEGER ) * + 4 + + 58 / + 35
----
-95

query I rowsort
SELECT DISTINCT - 84 + + + 27 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL MAX( ALL + 95 ) + - 42 + + 45
----
98

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL MAX ( ALL + 95 ) + - 42 + + 45
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8366
SELECT + 21 AS col2, - COALESCE ( - + 27, + 48 * - COUNT( * ) ) AS col2
----
21
27

skipif mysql # not compatible
query II rowsort label-8366
SELECT + 21 AS col2, - COALESCE ( - + 27, + 48 * - COUNT ( * ) ) AS col2
----
21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT MAX( ALL - - 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8367
SELECT MAX ( ALL - - 91 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8368
SELECT ALL - COUNT( * ) AS col1, 13 * - 60 + - 56
----
-1
-836

skipif mysql # not compatible
query II rowsort label-8368
SELECT ALL - COUNT ( * ) AS col1, 13 * - 60 + - 56
----
-1
-836

onlyif mysql # aggregate syntax: 
query II rowsort label-8369
SELECT DISTINCT + 23 + COUNT( * ) - 13 col1, - 54 AS col0
----
11
-54

skipif mysql # not compatible
query II rowsort label-8369
SELECT DISTINCT + 23 + COUNT ( * ) - 13 col1, - 54 AS col0
----
11
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT + 1 + + - SUM( ALL - 90 ) + + COUNT( * ) + + 7 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT + 1 + + - SUM ( ALL - 90 ) + + COUNT ( * ) + + 7 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL - COUNT( DISTINCT + 54 ) + + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - COUNT ( DISTINCT + 54 ) + + 84 AS col1
----
83

query I rowsort
SELECT ALL + + 64 + + + 78 + + + 54
----
196

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8374
SELECT ALL - NULLIF ( - - 89, - 87 ) DIV + + 72 AS col1, 41 AS col2
----
-1
41

skipif mysql # not compatible
query II rowsort label-8374
SELECT ALL - NULLIF ( - - 89, - 87 ) / + + 72 AS col1, 41 AS col2
----
-1
41

query I rowsort
SELECT 3 * - 47
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT COALESCE ( 85, 58 ) DIV + - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8376
SELECT COALESCE ( 85, 58 ) / + - 90 AS col2
----
0

query II rowsort
SELECT - 78, - 29 AS col2
----
-78
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT - - 80 AS col1, 31 * - ( - 10 ) + + ( - 68 ) * COUNT( * ) * 97 * + 34 AS col2
----
80
-223954

skipif mysql # not compatible
query II rowsort label-8378
SELECT - - 80 AS col1, 31 * - ( - 10 ) + + ( - 68 ) * COUNT ( * ) * 97 * + 34 AS col2
----
80
-223954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8379
SELECT ALL - 47 - 80 DIV COUNT( * ) * 46 AS col2
----
-3727

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL - 47 - 80 / COUNT ( * ) * 46 AS col2
----
-3727

query I rowsort
SELECT ALL + + 9 * - 82
----
-738

query I rowsort
SELECT DISTINCT - + 47 * - - 10 * - 14
----
6580

query I rowsort
SELECT ALL + - 84 - - 75 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT + COUNT( * ) * + 90 * + 64
----
5760

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT + COUNT ( * ) * + 90 * + 64
----
5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT 31 * CAST( + + 93 AS SIGNED ) AS col1
----
2883

skipif mysql # not compatible
query I rowsort label-8384
SELECT 31 * CAST ( + + 93 AS INTEGER ) AS col1
----
2883

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT 5 + - 17 DIV 26 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8385
SELECT 5 + - 17 / 26 AS col0
----
5

query I rowsort
SELECT 30 - - 81
----
111

query I rowsort
SELECT ALL 33 + - + 63
----
-30

query I rowsort
SELECT 40 + + 67 AS col0
----
107

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT COUNT( * ) + 96 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8391
SELECT COUNT ( * ) + 96 AS col2
----
97

query II rowsort
SELECT ( 34 ) - - ( + 84 ) AS col1, + 29
----
118
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT 49 + 86 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT 49 + 86 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8394
SELECT + 43 DIV 98 + - - 7 + 65 + + SUM( ALL 87 ) * 0 + - 50 * - 9 AS col0, COUNT( * )
----
522
1

skipif mysql # not compatible
query II rowsort label-8394
SELECT + 43 / 98 + - - 7 + 65 + + SUM ( ALL 87 ) * 0 + - 50 * - 9 AS col0, COUNT ( * )
----
522
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8395
SELECT ALL CASE NULLIF ( + 45, + 83 + + - 2 ) WHEN - ( + 39 ) THEN - 27 - + - 81 WHEN - COUNT( ALL + CAST( NULL AS SIGNED ) ) - - 47 THEN - 38 + - COUNT( * ) - - 8 - - COUNT( * ) - + - COUNT( * ) + 46 + + 6 * - + 29 - 61 * - COUNT( * ) / - + 32 / - 22 * 19 - CASE 21 + + ( 36 - 34 * 16 ) / - 57 WHEN SUM( 76 ) - 50 THEN 59 WHEN 82 + + CAST( 15 AS DECIMAL ) THEN NULL END * - 57 ELSE NULL END * 18 + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL CASE NULLIF ( + 45, + 83 + + - 2 ) WHEN - ( + 39 ) THEN - 27 - + - 81 WHEN - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) - - 47 THEN - 38 + - COUNT ( * ) - - 8 - - COUNT ( * ) - + - COUNT ( * ) + 46 + + 6 * - + 29 - 61 * - COUNT ( * ) / - + 32 / - 22 * 19 - CASE 21 + + ( 36 - 34 * 16 ) / - 57 WHEN SUM ( 76 ) - 50 THEN 59 WHEN 82 + + CAST ( 15 AS REAL ) THEN NULL END * - 57 ELSE NULL END * 18 + 49 AS col0
----
NULL

query I rowsort
SELECT 94 + - 83
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8397
SELECT ALL 62 * - 90 / - 97 + - NULLIF ( CASE 50 WHEN - CAST( NULL AS SIGNED ) * - - 68 THEN NULL WHEN - + 63 THEN + 80 * + 39 END, - 34 + - 75 + + + COUNT( * ) + 32 * - ( + - COUNT( * ) ) + + 31 ) * - CASE - - CAST( NULL AS DECIMAL ) WHEN + - 24 THEN + 27 WHEN MIN( + 97 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL 62 * - 90 / - 97 + - NULLIF ( CASE 50 WHEN - CAST ( NULL AS INTEGER ) * - - 68 THEN NULL WHEN - + 63 THEN + 80 * + 39 END, - 34 + - 75 + + + COUNT ( * ) + 32 * - ( + - COUNT ( * ) ) + + 31 ) * - CASE - - CAST ( NULL AS REAL ) WHEN + - 24 THEN + 27 WHEN MIN ( + 97 ) THEN NULL END
----
NULL

query I rowsort
SELECT + - 91 * - 0 + 12 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8399
SELECT DISTINCT - + CASE + - COALESCE ( CAST( NULL AS SIGNED ), + ( - + 87 ), + CAST( - + 81 AS SIGNED ) ) WHEN CASE + 49 WHEN - + 32 + + - 17 + + 60 + COUNT( * ) + - 60 / 57 * + 24 + 55 + 61 + + 95 + - 58 + - + COUNT( * ) * 29 THEN + - 2 + - 30 ELSE ( - 57 ) END / ( 31 * + COUNT( * ) ) + COUNT( * ) THEN + 70 WHEN - 44 - + 38 THEN - ( 89 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT - + CASE + - COALESCE ( CAST ( NULL AS INTEGER ), + ( - + 87 ), + CAST ( - + 81 AS INTEGER ) ) WHEN CASE + 49 WHEN - + 32 + + - 17 + + 60 + COUNT ( * ) + - 60 / 57 * + 24 + 55 + 61 + + 95 + - 58 + - + COUNT ( * ) * 29 THEN + - 2 + - 30 ELSE ( - 57 ) END / ( 31 * + COUNT ( * ) ) + COUNT ( * ) THEN + 70 WHEN - 44 - + 38 THEN - ( 89 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8400
SELECT + 48 + - COUNT( * ), 44 AS col1
----
47
44

skipif mysql # not compatible
query II rowsort label-8400
SELECT + 48 + - COUNT ( * ), 44 AS col1
----
47
44

query I rowsort
SELECT DISTINCT - + 22 col0
----
-22

query I rowsort
SELECT + - 90 * + 97 + - 21
----
-8751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8403
SELECT - 15 * + + 33 + CAST( NULL AS SIGNED ) + + MAX( DISTINCT 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT - 15 * + + 33 + CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT - + ( + + 2 ) * 30 + + 53 AS col2, - COUNT( * ) AS col0
----
-7
-1

skipif mysql # not compatible
query II rowsort label-8404
SELECT - + ( + + 2 ) * 30 + + 53 AS col2, - COUNT ( * ) AS col0
----
-7
-1

query I rowsort
SELECT 17 * + + 64 + - 63 + 29 AS col0
----
1054

query I rowsort
SELECT ALL + 87 * + + 90 * + + 15 AS col2
----
117450

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT - + 10 * + + 3 * + - 77 + 78 / + 34 * - ( - 83 ) - + ( + CAST( NULL AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT - + 10 * + + 3 * + - 77 + 78 / + 34 * - ( - 83 ) - + ( + CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 99 + - + 42 AS col0
----
-141

query I rowsort
SELECT + 69 * + 71 * - - NULLIF ( + - 93, - 7 )
----
-455607

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT - MIN( ALL + - 71 ) + + 92 AS col2, COUNT( * )
----
163
1

skipif mysql # not compatible
query II rowsort label-8411
SELECT - MIN ( ALL + - 71 ) + + 92 AS col2, COUNT ( * )
----
163
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT + 87 + + 63 + - ( 90 ) / - + 7 + + + 66 + + 33 / + - 19 + - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT + 87 + + 63 + - ( 90 ) / - + 7 + + + 66 + + 33 / + - 19 + - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 9 * - 13 * + - 53 + 93
----
6294

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

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

query I rowsort
SELECT ALL + 82 + - - 95
----
177

query I rowsort
SELECT - CASE + 5 WHEN 86 THEN 22 WHEN - + 93 THEN NULL END / NULLIF ( - + 51, 97 )
----
NULL

query I rowsort
SELECT + 79 * + + 33 * 89 AS col0
----
232023

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL - 10 * - 55 * + - SUM( - 83 ) col0
----
45650

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL - 10 * - 55 * + - SUM ( - 83 ) col0
----
45650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT - CAST( - + 34 AS SIGNED ) + - 68 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8419
SELECT - CAST ( - + 34 AS INTEGER ) + - 68 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT NULLIF ( 21, + + 9 + + + COUNT( * ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT NULLIF ( 21, + + 9 + + + COUNT ( * ) ) AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT NULLIF ( 12, - CAST( - - 50 AS SIGNED ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT NULLIF ( 12, - CAST ( - - 50 AS INTEGER ) ) AS col1
----
12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT ALL - 20 + + ( + 66 ) DIV - + 62 + - 14
----
-35

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - 20 + + ( + 66 ) / - + 62 + - 14
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT DISTINCT + - MIN( ALL 92 ) + CASE - MAX( - 20 ) WHEN - 95 + 89 * + - 10 THEN COUNT( DISTINCT - 57 ) WHEN 84 THEN 23 + - 8 * - MAX( DISTINCT + 22 ) ELSE - - 92 END + + + 46 * - 21 - - CASE + 11 WHEN - 83 THEN - 74 WHEN + - ( - 34 ) THEN NULL ELSE NULL END * - NULLIF ( + 21, 95 / 29 ) / COALESCE ( 52 + 16, - 99 / 44, - AVG ( + 12 ) * - 51 ) - + 52 * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT + - MIN ( ALL 92 ) + CASE - MAX ( - 20 ) WHEN - 95 + 89 * + - 10 THEN COUNT ( DISTINCT - 57 ) WHEN 84 THEN 23 + - 8 * - MAX ( DISTINCT + 22 ) ELSE - - 92 END + + + 46 * - 21 - - CASE + 11 WHEN - 83 THEN - 74 WHEN + - ( - 34 ) THEN NULL ELSE NULL END * - NULLIF ( + 21, 95 / 29 ) / COALESCE ( 52 + 16, - 99 / 44, - AVG ( + 12 ) * - 51 ) - + 52 * 40
----
NULL

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

skipif mysql # not compatible
query II rowsort label-8425
SELECT - COUNT ( * ) AS col2, 49
----
-1
49

query I rowsort
SELECT ALL + + NULLIF ( + - 77, - 38 / + 88 )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8427
SELECT + - 61 AS col1, COUNT( + 45 ) - - - 76 AS col1
----
-61
-75

skipif mysql # not compatible
query II rowsort label-8427
SELECT + - 61 AS col1, COUNT ( + 45 ) - - - 76 AS col1
----
-61
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + + COUNT( * ) * + 44 * 64 + + 80 * - ( + 3 ) AS col0
----
2576

skipif mysql # not compatible
query I rowsort label-8428
SELECT + + COUNT ( * ) * + 44 * 64 + + 80 * - ( + 3 ) AS col0
----
2576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT + + 88 DIV - NULLIF ( + COALESCE ( + 73, - MIN( - 98 ) ), 91 ) + + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8429
SELECT + + 88 / - NULLIF ( + COALESCE ( + 73, - MIN ( - 98 ) ), 91 ) + + - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT - + 77 * + 39
----
-3003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8431
SELECT - COALESCE ( 95, 1, COUNT( * ) - - COUNT( * ) + + 66 + 84 ) DIV 42 * + 48 + + 18 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8431
SELECT - COALESCE ( 95, 1, COUNT ( * ) - - COUNT ( * ) + + 66 + 84 ) / 42 * + 48 + + 18 AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT DISTINCT - 49 * - + 67 * - + 76 * + NULLIF ( - CAST( NULL AS SIGNED ), - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - 49 * - + 67 * - + 76 * + NULLIF ( - CAST ( NULL AS INTEGER ), - 64 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8433
SELECT ALL + - 61 AS col1, - COUNT( * ) DIV + 44 * - 86 AS col2
----
-61
0

skipif mysql # not compatible
query II rowsort label-8433
SELECT ALL + - 61 AS col1, - COUNT ( * ) / + 44 * - 86 AS col2
----
-61
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT - CAST( NULL AS SIGNED ) / - NULLIF ( - 92, - + 59 ) * + + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT - CAST ( NULL AS INTEGER ) / - NULLIF ( - 92, - + 59 ) * + + 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT + 49 - ( - + 26 ) + - 49 * - ( - 17 ) * + - COALESCE ( + 69, ( NULLIF ( + COUNT( * ), - 46 ) ) )
----
57552

skipif mysql # not compatible
query I rowsort label-8435
SELECT + 49 - ( - + 26 ) + - 49 * - ( - 17 ) * + - COALESCE ( + 69, ( NULLIF ( + COUNT ( * ), - 46 ) ) )
----
57552

query I rowsort
SELECT ALL - + 38 * - 67
----
2546

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT + - 61 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-8437
SELECT + - 61 / - 49
----
1

query I rowsort
SELECT + + CASE + 86 WHEN ( - 57 ) THEN NULL ELSE - + 50 END * 54 * + 17 AS col1
----
-45900

query I rowsort
SELECT + - 11 - 85
----
-96

query I rowsort
SELECT + 46 * + + 72
----
3312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8441
SELECT + MIN( + NULLIF ( - + 55, - + 97 / + 41 + - - CAST( + 26 AS DECIMAL ) * + 49 ) ) * + ( - 26 ) AS col1
----
1430

skipif mysql # not compatible
query I rowsort label-8441
SELECT + MIN ( + NULLIF ( - + 55, - + 97 / + 41 + - - CAST ( + 26 AS REAL ) * + 49 ) ) * + ( - 26 ) AS col1
----
1430

query I rowsort
SELECT ALL + 20 * 28 + - 5 AS col1
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT SUM( - - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8443
SELECT SUM ( - - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT - ( - - SUM( ALL - + 6 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8444
SELECT - ( - - SUM ( ALL - + 6 ) ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8445
SELECT ALL NULLIF ( - COUNT( * ), + NULLIF ( - ( - - CAST( COALESCE ( 27, + ( - 84 ) ) AS DECIMAL ) ), 67 + + ( - - 60 ) ) ) * + SUM( ALL + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL NULLIF ( - COUNT ( * ), + NULLIF ( - ( - - CAST ( COALESCE ( 27, + ( - 84 ) ) AS REAL ) ), 67 + + ( - - 60 ) ) ) * + SUM ( ALL + 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT + ( - + 73 ) * SUM( + 56 ) + 36 * - COUNT( * ) AS col2
----
-4124

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT + ( - + 73 ) * SUM ( + 56 ) + 36 * - COUNT ( * ) AS col2
----
-4124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), + 63 * + 3 * ( - - 9 ) + - + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), + 63 * + 3 * ( - - 9 ) + - + 76 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT DISTINCT CAST( 8 AS SIGNED ) + 25
----
33

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT CAST ( 8 AS INTEGER ) + 25
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT - ( MAX( ALL + 73 ) ) * ( + MAX( DISTINCT - - 46 ) ) AS col0, COUNT( * ) AS col2
----
-3358
1

skipif mysql # not compatible
query II rowsort label-8449
SELECT - ( MAX ( ALL + 73 ) ) * ( + MAX ( DISTINCT - - 46 ) ) AS col0, COUNT ( * ) AS col2
----
-3358
1

query I rowsort
SELECT ALL 91 + - 54 - + + ( - 3 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8451
SELECT 82, MAX( DISTINCT + - 15 ) AS col2
----
82
-15

skipif mysql # not compatible
query II rowsort label-8451
SELECT 82, MAX ( DISTINCT + - 15 ) AS col2
----
82
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT + ( - 99 ) + - 47 * CAST( + ( 80 ) AS SIGNED ) + + 89
----
-3770

skipif mysql # not compatible
query I rowsort label-8453
SELECT + ( - 99 ) + - 47 * CAST ( + ( 80 ) AS INTEGER ) + + 89
----
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT + COUNT( * ) + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-8454
SELECT + COUNT ( * ) + - 99
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8455
SELECT DISTINCT 90 DIV - - 56 DIV - - COALESCE ( + - COUNT( * ), + 71 * - 47, + - 40 * - + 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT 90 / - - 56 / - - COALESCE ( + - COUNT ( * ), + 71 * - 47, + - 40 * - + 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT - - 66 * - 46 * - + COUNT( * ) col1
----
3036

skipif mysql # not compatible
query I rowsort label-8456
SELECT - - 66 * - 46 * - + COUNT ( * ) col1
----
3036

query I rowsort
SELECT DISTINCT - + 28 - - 19 - - ( 28 ) + - 32 * - 95 * - 25
----
-75981

query II rowsort
SELECT - 95, - 87 col2
----
-95
-87

query I rowsort
SELECT + - 22 + 28 * + - 11
----
-330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8460
SELECT - - COUNT( * ) - + + 99 DIV 79 + 67
----
67

skipif mysql # not compatible
query I rowsort label-8460
SELECT - - COUNT ( * ) - + + 99 / 79 + 67
----
67

query I rowsort
SELECT DISTINCT + - 15 * - - 52 + 90
----
-690

query I rowsort
SELECT - 80 + - 64 AS col0
----
-144

query II rowsort
SELECT ALL + - 50 AS col0, - 31 + + 13 AS col0
----
-50
-18

query II rowsort
SELECT ALL + 98 AS col0, 75
----
98
75

query II rowsort
SELECT ALL - 88 col1, 97 - - 33 + + + 41
----
-88
171

query I rowsort
SELECT + 42 * + 72 + ( 14 )
----
3038

onlyif mysql # aggregate syntax: 
query II rowsort label-8467
SELECT + 80 col2, COUNT( * ) col0
----
80
1

skipif mysql # not compatible
query II rowsort label-8467
SELECT + 80 col2, COUNT ( * ) col0
----
80
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8468
SELECT ALL - 65 col1, 24 * + - MIN( 29 ) * - 29 * - - 19 AS col1
----
-65
383496

skipif mysql # not compatible
query II rowsort label-8468
SELECT ALL - 65 col1, 24 * + - MIN ( 29 ) * - 29 * - - 19 AS col1
----
-65
383496

query II rowsort
SELECT + + 80 AS col0, 49 * - - 39 AS col0
----
80
1911

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT - 90 * - - 34 - - COALESCE ( + 42, + 61 + - + ( - + 86 ) ) - + 74 * - 30 - - ( + 76 ) DIV - - 50 + + + 21 AS col0
----
-776

skipif mysql # not compatible
query I rowsort label-8470
SELECT - 90 * - - 34 - - COALESCE ( + 42, + 61 + - + ( - + 86 ) ) - + 74 * - 30 - - ( + 76 ) / - - 50 + + + 21 AS col0
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT 55 * + - 92 - COUNT( + 82 ) - 25
----
-5086

skipif mysql # not compatible
query I rowsort label-8471
SELECT 55 * + - 92 - COUNT ( + 82 ) - 25
----
-5086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8472
SELECT + COUNT( * ) * + 99 * + 29 + - NULLIF ( + 69, 94 ) AS col1, + CAST( - 83 AS SIGNED )
----
2802
-83

skipif mysql # not compatible
query II rowsort label-8472
SELECT + COUNT ( * ) * + 99 * + 29 + - NULLIF ( + 69, 94 ) AS col1, + CAST ( - 83 AS INTEGER )
----
2802
-83

query I rowsort
SELECT DISTINCT - 77 + - 74 AS col0
----
-151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8474
SELECT 66 * - 88 + + ( - - COUNT( * ) ) DIV + - CAST( - 7 AS SIGNED ) + + 42 col2
----
-5766

skipif mysql # not compatible
query I rowsort label-8474
SELECT 66 * - 88 + + ( - - COUNT ( * ) ) / + - CAST ( - 7 AS INTEGER ) + + 42 col2
----
-5766

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL 58 + - 50 * 20 + + - 37 * 82 + + COUNT( * )
----
-3975

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL 58 + - 50 * 20 + + - 37 * 82 + + COUNT ( * )
----
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT 30 + + - NULLIF ( - 95, + + 47 - 14 - + COUNT( * ) )
----
125

skipif mysql # not compatible
query I rowsort label-8476
SELECT 30 + + - NULLIF ( - 95, + + 47 - 14 - + COUNT ( * ) )
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT DISTINCT - COALESCE ( ( - 84 ), - 95 * + 51 DIV + 6 + + 32 ) + - 74 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT - COALESCE ( ( - 84 ), - 95 * + 51 / + 6 + + 32 ) + - 74 AS col1
----
10

query I rowsort
SELECT 40 + - - 35 + - 36 AS col1
----
39

query I rowsort
SELECT DISTINCT + NULLIF ( - 51, - + 4 ) * ( 0 ) - - 6 + 71 * - 63 * + 87 + - 14 + 79 + 63
----
-389017

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8480
SELECT DISTINCT 45 DIV + COUNT( * ) AS col0, 58 DIV 42 * ( - - 95 ) AS col0
----
45
95

skipif mysql # not compatible
query II rowsort label-8480
SELECT DISTINCT 45 / + COUNT ( * ) AS col0, 58 / 42 * ( - - 95 ) AS col0
----
45
95

query I rowsort
SELECT ALL 4 + + - ( - 3 ) AS col1
----
7

query I rowsort
SELECT 68 * + 19 AS col1
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT 39 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT 39 / - 97
----
0

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

skipif mysql # not compatible
query I rowsort label-8484
SELECT 75 + + COUNT ( * ) / - + 24
----
75

query I rowsort
SELECT ( - ( + + 32 ) ) + 37
----
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT DISTINCT 49 * - 4 * 50 * - - 40 * ( - CAST( 36 AS SIGNED ) ) col2
----
14112000

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT 49 * - 4 * 50 * - - 40 * ( - CAST ( 36 AS INTEGER ) ) col2
----
14112000

query I rowsort
SELECT DISTINCT - 74 - - 49 + - 96 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT - 81 * + 32 + - ( MAX( DISTINCT + 66 ) ) AS col1
----
-2658

skipif mysql # not compatible
query I rowsort label-8489
SELECT - 81 * + 32 + - ( MAX ( DISTINCT + 66 ) ) AS col1
----
-2658

query I rowsort
SELECT - 51 + - 50 * - ( + - ( - 55 ) )
----
2699

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

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

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

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT - COUNT ( * ) / 21
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT CAST( NULL AS SIGNED ) / 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT CAST ( NULL AS INTEGER ) / 49 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 38 + - 98 - - 74 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT + MIN( DISTINCT + - 47 ) + + 21 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8495
SELECT + MIN ( DISTINCT + - 47 ) + + 21 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL COUNT( * ) * 41 * + + 52 col1
----
2132

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL COUNT ( * ) * 41 * + + 52 col1
----
2132

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

skipif mysql # not compatible
query I rowsort label-8497
SELECT ( + MAX ( + 10 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT + NULLIF ( CASE 91 WHEN - COUNT( * ) + - + CASE - COALESCE ( - 9, + 77 + + + 62 + + 86 + - COUNT( * ) * - - 18 / 29 / - + 68 - + + 68 + - ( 24 ) / 25 ) WHEN + 73 THEN - - 54 END THEN - - 80 WHEN COUNT( * ) + + + 40 + - 6 + 58 THEN NULL ELSE - 53 + 5 END, COUNT( * ) + - COUNT( * ) / - 94 )
----
-48

skipif mysql # not compatible
query I rowsort label-8498
SELECT + NULLIF ( CASE 91 WHEN - COUNT ( * ) + - + CASE - COALESCE ( - 9, + 77 + + + 62 + + 86 + - COUNT ( * ) * - - 18 / 29 / - + 68 - + + 68 + - ( 24 ) / 25 ) WHEN + 73 THEN - - 54 END THEN - - 80 WHEN COUNT ( * ) + + + 40 + - 6 + 58 THEN NULL ELSE - 53 + 5 END, COUNT ( * ) + - COUNT ( * ) / - 94 )
----
-48

query I rowsort
SELECT + 33 - + 91
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8500
SELECT ALL + 3 * - COUNT( * ) * 45 AS col0, + ( - CASE CAST( COALESCE ( + + NULLIF ( - COUNT( * ), + COUNT( * ) ), + - 66 ) AS SIGNED ) WHEN 53 - - 75 / 59 THEN - ( 81 ) / - AVG ( 84 ) END ) col1
----
-135
NULL

skipif mysql # not compatible
query II rowsort label-8500
SELECT ALL + 3 * - COUNT ( * ) * 45 AS col0, + ( - CASE CAST ( COALESCE ( + + NULLIF ( - COUNT ( * ), + COUNT ( * ) ), + - 66 ) AS INTEGER ) WHEN 53 - - 75 / 59 THEN - ( 81 ) / - AVG ( 84 ) END ) col1
----
-135
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT SUM( + 3 ) + MIN( 39 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT SUM ( + 3 ) + MIN ( 39 ) AS col1
----
42

query I rowsort
SELECT ALL - NULLIF ( - 17, - 21 )
----
17

query II rowsort
SELECT 21 AS col2, 35 * - 91 AS col0
----
21
-3185

query I rowsort
SELECT ALL + 50 + 40
----
90

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

query I rowsort
SELECT 65 * - 8 col0
----
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT 78 - + 82 - 83 - - 98 + + COUNT( * ) * CASE - 64 WHEN - 70 THEN NULL ELSE - NULLIF ( + 15, - + 7 - - - 24 + + 88 ) + COUNT( * ) - 32 END
----
-35

skipif mysql # not compatible
query I rowsort label-8507
SELECT 78 - + 82 - 83 - - 98 + + COUNT ( * ) * CASE - 64 WHEN - 70 THEN NULL ELSE - NULLIF ( + 15, - + 7 - - - 24 + + 88 ) + COUNT ( * ) - 32 END
----
-35

query I rowsort
SELECT ALL - 51 - + 56 + - 99 AS col1
----
-206

query I rowsort
SELECT 55 - + + 99 AS col1
----
-44

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

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

query II rowsort
SELECT 58 AS col0, - 65
----
58
-65

query I rowsort
SELECT DISTINCT - 33 - + + 76 AS col0
----
-109

query I rowsort
SELECT 68 * - 23
----
-1564

query I rowsort
SELECT ALL - 61 * - - 3
----
-183

query II rowsort
SELECT ALL 91, 45 AS col0
----
91
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8516
SELECT DISTINCT 55 DIV + MIN( 26 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT 55 / + MIN ( 26 ) AS col1
----
2

query I rowsort
SELECT DISTINCT - 34 - 45 + - + 21 col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT COUNT( * ) - - SUM( ALL + 76 ) + - 89 * - + 50 + - 26 * + + 3
----
4449

skipif mysql # not compatible
query I rowsort label-8518
SELECT COUNT ( * ) - - SUM ( ALL + 76 ) + - 89 * - + 50 + - 26 * + + 3
----
4449

query I rowsort
SELECT ALL NULLIF ( + + 4, + - ( 89 ) * + 22 ) AS col1
----
4

query I rowsort
SELECT 74 + 70
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT COUNT( * ) * + - 5 * - 16 + 7 * - 98 col2
----
-606

skipif mysql # not compatible
query I rowsort label-8521
SELECT COUNT ( * ) * + - 5 * - 16 + 7 * - 98 col2
----
-606

query II rowsort
SELECT - 85 AS col0, 76
----
-85
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT + 49 * ( + MAX( DISTINCT 82 ) )
----
4018

skipif mysql # not compatible
query I rowsort label-8524
SELECT + 49 * ( + MAX ( DISTINCT 82 ) )
----
4018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT + + CAST( NULL AS SIGNED ) + - 99 + 97 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT + + CAST ( NULL AS INTEGER ) + - 99 + 97 * + 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT ALL - 70 * 45 DIV - + COUNT( * ) + + + COALESCE ( + + 36, + - 50 - + 74 ) - ( + - 99 ) * - CASE - - MIN( + 35 ) WHEN 38 DIV + COUNT( * ) * + 68 * + - 81 + - SUM( DISTINCT + 34 ) - 41 THEN - 51 WHEN + 89 * + - 45 THEN NULL ELSE - 48 * + + 97 + - 69 END + - CASE NULLIF ( + 8, 11 + 77 ) WHEN 63 * - 33 THEN 91 + + COUNT( * ) WHEN ( 83 ) THEN NULL ELSE 42 + 85 END + 12 * 23
----
471110

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL - 70 * 45 / - + COUNT ( * ) + + + COALESCE ( + + 36, + - 50 - + 74 ) - ( + - 99 ) * - CASE - - MIN ( + 35 ) WHEN 38 / + COUNT ( * ) * + 68 * + - 81 + - SUM ( DISTINCT + 34 ) - 41 THEN - 51 WHEN + 89 * + - 45 THEN NULL ELSE - 48 * + + 97 + - 69 END + - CASE NULLIF ( + 8, 11 + 77 ) WHEN 63 * - 33 THEN 91 + + COUNT ( * ) WHEN ( 83 ) THEN NULL ELSE 42 + 85 END + 12 * 23
----
471110

query I rowsort
SELECT + + 65 + 70 AS col0
----
135

query I rowsort
SELECT ALL 85 + - + 75 + - 86 col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT + ( + + COALESCE ( ( - - COUNT( * ) ), - 65 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT + ( + + COALESCE ( ( - - COUNT ( * ) ), - 65 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT + 28 + - COUNT( * ) * + 63 + 60
----
25

skipif mysql # not compatible
query I rowsort label-8530
SELECT + 28 + - COUNT ( * ) * + 63 + 60
----
25

query I rowsort
SELECT - 68 + - 23 AS col0
----
-91

query I rowsort
SELECT + 37 + - 8
----
29

query I rowsort
SELECT ALL 12 + - + 36
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8534
SELECT + - 82 / - 61 * COUNT( * ) + + + CAST( NULL AS SIGNED ), + 45 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-8534
SELECT + - 82 / - 61 * COUNT ( * ) + + + CAST ( NULL AS INTEGER ), + 45 AS col1
----
NULL
45

query I rowsort
SELECT DISTINCT - 77 + + 78 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL - 86 * - NULLIF ( + - 95, CAST( NULL AS SIGNED ) + + - 32 ) + + - 95 + - + 59
----
-8324

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - 86 * - NULLIF ( + - 95, CAST ( NULL AS INTEGER ) + + - 32 ) + + - 95 + - + 59
----
-8324

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

query II rowsort
SELECT 38 * + 3 + + 67, - 58 - + + 49 AS col2
----
181
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL 57 * - COUNT( DISTINCT + - 7 ) * 97 * - 86
----
475494

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL 57 * - COUNT ( DISTINCT + - 7 ) * 97 * - 86
----
475494

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT + 37 * - + CASE + + COUNT( * ) WHEN + 28 THEN + 18 * + 96 END / + - COUNT( ALL 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT + 37 * - + CASE + + COUNT ( * ) WHEN + 28 THEN + 18 * + 96 END / + - COUNT ( ALL 90 )
----
NULL

query I rowsort
SELECT + 4 + + 19 + 79 + 58 AS col2
----
160

query I rowsort
SELECT + NULLIF ( - 6, - - 64 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT NULLIF ( + + COUNT( * ), - - 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8543
SELECT NULLIF ( + + COUNT ( * ), - - 67 ) AS col1
----
1

query I rowsort
SELECT ALL 75 * - - 27 * - - 27 AS col2
----
54675

query I rowsort
SELECT ALL 61 * + 52 - - - 15 * + 33 * - 7 * + 47 + - + ( + 66 )
----
165961

query II rowsort
SELECT ALL + ( + 33 ), - ( + 68 ) AS col0
----
33
-68

query I rowsort
SELECT 93 * 60 * + 39 * - 32 + + 63
----
-6963777

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT COUNT( DISTINCT + 71 ), + 16 + 68 * - 58 AS col1
----
1
-3928

skipif mysql # not compatible
query II rowsort label-8549
SELECT COUNT ( DISTINCT + 71 ), + 16 + 68 * - 58 AS col1
----
1
-3928

query I rowsort
SELECT - 66 * 26 * 33 + 1 AS col0
----
-56627

query I rowsort
SELECT - 55 * - + 36 AS col0
----
1980

onlyif mysql # DIV for integer division: 
query I rowsort label-8552
SELECT ALL - 30 DIV - 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - 30 / - 66 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT - COUNT( DISTINCT - - 7 ) * - 97 * - 5
----
-485

skipif mysql # not compatible
query I rowsort label-8553
SELECT - COUNT ( DISTINCT - - 7 ) * - 97 * - 5
----
-485

query I rowsort
SELECT - 73 + 1 * + + 0 col2
----
-73

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8557
SELECT ALL - + 96 + + 87 - + CAST( NULL AS SIGNED ) * - - CASE + 60 WHEN 88 THEN - COUNT( * ) + 10 ELSE + + 11 + + - 90 END / + ( ( MAX( DISTINCT 73 ) ) ) + + + COALESCE ( - 74, + - 50, + 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - + 96 + + 87 - + CAST ( NULL AS INTEGER ) * - - CASE + 60 WHEN 88 THEN - COUNT ( * ) + 10 ELSE + + 11 + + - 90 END / + ( ( MAX ( DISTINCT 73 ) ) ) + + + COALESCE ( - 74, + - 50, + 0 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8558
SELECT - 99 * - - 1 + ( + COUNT( * ) ) col2, - 24
----
-98
-24

skipif mysql # not compatible
query II rowsort label-8558
SELECT - 99 * - - 1 + ( + COUNT ( * ) ) col2, - 24
----
-98
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8559
SELECT ALL 39 + - 32 - - 17 + + - 56 * + CAST( NULL AS DECIMAL ) / - 65 - + COALESCE ( + 53, + 79 ) AS col1, - 23 AS col0
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-8559
SELECT ALL 39 + - 32 - - 17 + + - 56 * + CAST ( NULL AS REAL ) / - 65 - + COALESCE ( + 53, + 79 ) AS col1, - 23 AS col0
----
NULL
-23

query II rowsort
SELECT DISTINCT ( - - 29 ), 44 col1
----
29
44

query I rowsort
SELECT + CASE - - CASE 77 WHEN ( - - NULLIF ( + 17, + 74 * + 36 * 91 + 82 * 83 ) ) * - + 59 + - 64 - - 19 THEN + 74 END WHEN 89 THEN - 97 END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT CAST( - - 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-8563
SELECT CAST ( - - 92 AS INTEGER )
----
92

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

skipif mysql # not compatible
query I rowsort label-8564
SELECT - - 33 / + 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - + ( 57 ) * - - 19 + - 67 + - 68 * + 27 + - ( - COUNT( * ) ) col0
----
-2985

skipif mysql # not compatible
query I rowsort label-8565
SELECT - + ( 57 ) * - - 19 + - 67 + - 68 * + 27 + - ( - COUNT ( * ) ) col0
----
-2985

query I rowsort
SELECT + + 53 * 8 + - + 76 * - 27 AS col2
----
2476

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

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL - 48 + + CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL ( - - MIN ( 33 ) )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8569
SELECT DISTINCT + 45 + + 0 + + + SUM( DISTINCT + 6 ) AS col1, COUNT( * ) * 83 AS col0
----
51
83

skipif mysql # not compatible
query II rowsort label-8569
SELECT DISTINCT + 45 + + 0 + + + SUM ( DISTINCT + 6 ) AS col1, COUNT ( * ) * 83 AS col0
----
51
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT DISTINCT - CASE + 83 WHEN + 39 THEN + COUNT( * ) ELSE + + 95 END
----
-95

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT - CASE + 83 WHEN + 39 THEN + COUNT ( * ) ELSE + + 95 END
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8571
SELECT DISTINCT + 65 - - - COALESCE ( + 11, + NULLIF ( + 99, + CAST( NULL AS SIGNED ) * - + MAX( DISTINCT + + 25 ) + COUNT( * ) / 29 ) ) * - 7
----
142

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT + 65 - - - COALESCE ( + 11, + NULLIF ( + 99, + CAST ( NULL AS INTEGER ) * - + MAX ( DISTINCT + + 25 ) + COUNT ( * ) / 29 ) ) * - 7
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8572
SELECT + COUNT( DISTINCT - - 54 ) * - CAST( + 19 AS SIGNED ) + 80 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8572
SELECT + COUNT ( DISTINCT - - 54 ) * - CAST ( + 19 AS INTEGER ) + 80 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8573
SELECT + CAST( NULL AS SIGNED ) / - + 17 + + MAX( - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT + CAST ( NULL AS INTEGER ) / - + 17 + + MAX ( - 96 )
----
NULL

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

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

query I rowsort
SELECT + 63 + + 4 AS col2
----
67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8577
SELECT ALL 88 DIV + - COUNT( * ) - 29
----
-117

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL 88 / + - COUNT ( * ) - 29
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-8578
SELECT + COUNT( * ) * - COUNT( ALL - 35 ) AS col0, 93 AS col0
----
-1
93

skipif mysql # not compatible
query II rowsort label-8578
SELECT + COUNT ( * ) * - COUNT ( ALL - 35 ) AS col0, 93 AS col0
----
-1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8579
SELECT DISTINCT + 97 AS col0, - 21 + - - COUNT( * ) AS col0, + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + 90 AS col0
----
97
-20
NULL

skipif mysql # not compatible
query III rowsort label-8579
SELECT DISTINCT + 97 AS col0, - 21 + - - COUNT ( * ) AS col0, + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 90 AS col0
----
97
-20
NULL

query II rowsort
SELECT DISTINCT + 0 AS col0, - 58
----
0
-58

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

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

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

query I rowsort
SELECT ALL + 88 * - 16 col0
----
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL - NULLIF ( COUNT( * ), + 52 ) * + 90
----
-90

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - NULLIF ( COUNT ( * ), + 52 ) * + 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ( + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8585
SELECT ( + - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8586
SELECT + 56 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-8586
SELECT + 56 / + 92
----
0

query I rowsort
SELECT + ( ( + 57 ) ) * - - 20 * 65 - + - 25 AS col1
----
74125

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL COUNT( 67 ) * + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL COUNT ( 67 ) * + 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT + COUNT( * ) * + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8589
SELECT + COUNT ( * ) * + 31 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8590
SELECT SUM( ALL + - CAST( NULL AS SIGNED ) ) - - 99 + MAX( DISTINCT + + 74 ) + + 15 / - 77 * + - 12 * COALESCE ( 98, - 52, 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT SUM ( ALL + - CAST ( NULL AS INTEGER ) ) - - 99 + MAX ( DISTINCT + + 74 ) + + 15 / - 77 * + - 12 * COALESCE ( 98, - 52, 16 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 61 AS col1, 58
----
-61
58

query I rowsort
SELECT - 70 * - 87
----
6090

query I rowsort
SELECT ALL - - 43 + + - 39
----
4

query I rowsort
SELECT DISTINCT + 54 * + + 38 AS col1
----
2052

query I rowsort
SELECT ALL + 43 + 1 * + ( 35 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + 36 + + NULLIF ( + 62, + COUNT( DISTINCT + 41 ) ) + 22
----
120

skipif mysql # not compatible
query I rowsort label-8596
SELECT + 36 + + NULLIF ( + 62, + COUNT ( DISTINCT + 41 ) ) + 22
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT CASE - 87 WHEN + + 98 + + 69 THEN NULL WHEN 44 + + 36 + + 67 + + 24 / + - 88 * + - COUNT( * ) - - - COALESCE ( - + 64, - 53 ) - + 37 * 1 * - + ( 57 ) THEN + + 58 ELSE NULL END - COUNT( * ) - - - 46 / COUNT( * ) / 58 * - 59 * + ( - 33 ) + + + 97 * 45 * + 11 * + + 14 * + ( 75 ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT CASE - 87 WHEN + + 98 + + 69 THEN NULL WHEN 44 + + 36 + + 67 + + 24 / + - 88 * + - COUNT ( * ) - - - COALESCE ( - + 64, - 53 ) - + 37 * 1 * - + ( 57 ) THEN + + 58 ELSE NULL END - COUNT ( * ) - - - 46 / COUNT ( * ) / 58 * - 59 * + ( - 33 ) + + + 97 * 45 * + 11 * + + 14 * + ( 75 ) + 97
----
NULL

query I rowsort
SELECT + 50 + - + 89 + + + 54 * 87 AS col2
----
4659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL - CAST( + - 56 AS SIGNED ) + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL - CAST ( + - 56 AS INTEGER ) + + COUNT ( * )
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8600
SELECT 78 + 13 * - 5 AS col2, 14 * + CASE + AVG ( ALL - 32 ) WHEN - CAST( - - 69 AS DECIMAL ) THEN - 75 * - + 85 - - 26 WHEN + 87 THEN NULL END AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-8600
SELECT 78 + 13 * - 5 AS col2, 14 * + CASE + AVG ( ALL - 32 ) WHEN - CAST ( - - 69 AS REAL ) THEN - 75 * - + 85 - - 26 WHEN + 87 THEN NULL END AS col2
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT - 49 + + - COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - 49 + + - COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT ALL + - 72 - - + 24 AS col2
----
-48

query I rowsort
SELECT DISTINCT - 58 * - 88 AS col0
----
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT DISTINCT + MIN( DISTINCT 62 ) * + 44 * 58 + + SUM( - - NULLIF ( - 78, + + 2 ) ) + - 84 AS col1
----
158062

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT + MIN ( DISTINCT 62 ) * + 44 * 58 + + SUM ( - - NULLIF ( - 78, + + 2 ) ) + - 84 AS col1
----
158062

query I rowsort
SELECT ALL + 36 - 85 * - ( 81 )
----
6921

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT DISTINCT 57 DIV - + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT 57 / - + 98 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT 49 / + 85 - - - CASE - AVG ( - + 72 ) WHEN 97 THEN + 23 * - 10 END + - COALESCE ( + COUNT( * ), 53, + CAST( - - 2 AS SIGNED ) + + 8 + 56 * - ( - 32 ) / 86 * - 92 - - 1 ) + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT 49 / + 85 - - - CASE - AVG ( - + 72 ) WHEN 97 THEN + 23 * - 10 END + - COALESCE ( + COUNT ( * ), 53, + CAST ( - - 2 AS INTEGER ) + + 8 + 56 * - ( - 32 ) / 86 * - 92 - - 1 ) + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + 36 + - MAX( DISTINCT + 39 ) * + COUNT( * ) * 39 + - 34 * - 48
----
147

skipif mysql # not compatible
query I rowsort label-8608
SELECT + 36 + - MAX ( DISTINCT + 39 ) * + COUNT ( * ) * 39 + - 34 * - 48
----
147

query I rowsort
SELECT - 75 * 72 * + 3
----
-16200

query II rowsort
SELECT 18 AS col1, 7 AS col2
----
18
7

query II rowsort
SELECT - 58 col1, 79
----
-58
79

query I rowsort
SELECT 88 + 18
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8613
SELECT ALL - 29, + 4 * + 48 + + 52 + 21 * ( + CASE + + 92 WHEN + 2 THEN 34 + - ( + ( - - 25 ) ) WHEN - 87 + + 84 THEN NULL ELSE + 80 END ) * + 85 + 42 + 49 * - - CAST( NULL AS DECIMAL ) / 36 AS col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-8613
SELECT ALL - 29, + 4 * + 48 + + 52 + 21 * ( + CASE + + 92 WHEN + 2 THEN 34 + - ( + ( - - 25 ) ) WHEN - 87 + + 84 THEN NULL ELSE + 80 END ) * + 85 + 42 + 49 * - - CAST ( NULL AS REAL ) / 36 AS col2
----
-29
NULL

query II rowsort
SELECT DISTINCT - 0 AS col2, - 49 AS col0
----
0
-49

query I rowsort
SELECT ALL - NULLIF ( 98, 32 ) col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT COUNT( * ) * + MAX( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT COUNT ( * ) * + MAX ( + 90 )
----
90

query I rowsort
SELECT DISTINCT + 47 * 29 AS col1
----
1363

query II rowsort
SELECT ALL - 19, + 32 * + 89 AS col0
----
-19
2848

query I rowsort
SELECT ALL + 29 * - 32 * - 82 AS col1
----
76096

query II rowsort
SELECT + 31 AS col2, + 60
----
31
60

query II rowsort
SELECT ALL - 45 AS col0, + 58 col1
----
-45
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8622
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) / CASE + - COUNT( * ) WHEN - 97 + - + 33 THEN 47 / 63 + + COALESCE ( - 11, 2, - + COUNT( * ) - 94 * 56 + - + 82 ) + ( + 31 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) / CASE + - COUNT ( * ) WHEN - 97 + - + 33 THEN 47 / 63 + + COALESCE ( - 11, 2, - + COUNT ( * ) - 94 * 56 + - + 82 ) + ( + 31 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL COUNT( * ) + 38 + - 83
----
-44

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL COUNT ( * ) + 38 + - 83
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8624
SELECT DISTINCT 33 DIV 45 + + 19
----
19

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT 33 / 45 + + 19
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT - 95 * + 57 / - + AVG ( + CAST( NULL AS SIGNED ) ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT - 95 * + 57 / - + AVG ( + CAST ( NULL AS INTEGER ) ) + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8626
SELECT ALL + MAX( - 77 ) * + 88 * + 39, ( - 32 ) + 80 AS col0
----
-264264
48

skipif mysql # not compatible
query II rowsort label-8626
SELECT ALL + MAX ( - 77 ) * + 88 * + 39, ( - 32 ) + 80 AS col0
----
-264264
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8627
SELECT 23 DIV NULLIF ( + 68, 55 DIV + 68 DIV + + 40 + ( + 16 ) ) * - - CAST( - 92 AS SIGNED ) - 80 * - 7
----
560

skipif mysql # not compatible
query I rowsort label-8627
SELECT 23 / NULLIF ( + 68, 55 / + 68 / + + 40 + ( + 16 ) ) * - - CAST ( - 92 AS INTEGER ) - 80 * - 7
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL ( + 2 ) * + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL ( + 2 ) * + - COUNT ( * )
----
-2

query I rowsort
SELECT - 17 + + 79 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT + COUNT( * ) * - 57
----
-57

skipif mysql # not compatible
query I rowsort label-8630
SELECT + COUNT ( * ) * - 57
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT DISTINCT - COALESCE ( - NULLIF ( 28, 30 ), + - 55, + 23 + - 91 * - - ( 71 ) + + 84 - + - 42 + 56 * - + 10 * - 62 * + - 83 DIV 91 )
----
28

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT - COALESCE ( - NULLIF ( 28, 30 ), + - 55, + 23 + - 91 * - - ( 71 ) + + 84 - + - 42 + 56 * - + 10 * - 62 * + - 83 / 91 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL MIN( + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL MIN ( + 13 ) AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8633
SELECT ALL + CAST( NULL AS SIGNED ), + 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-8633
SELECT ALL + CAST ( NULL AS INTEGER ), + 24 AS col1
----
NULL
24

query I rowsort
SELECT - 6 * - 52 * - NULLIF ( - 95, 62 ) AS col0
----
29640

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT COALESCE ( - COUNT( * ), - COUNT( * ) * - - 26 - + - 37 * - 13, + + 46 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8635
SELECT COALESCE ( - COUNT ( * ), - COUNT ( * ) * - - 26 - + - 37 * - 13, + + 46 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8636
SELECT COALESCE ( + 84, - CAST( NULL AS SIGNED ), - 73 DIV 20 * COALESCE ( + 68, - 22 ) - + 48 + - - 69 DIV - COALESCE ( + 46, + - 95 ) + + + CASE + 67 WHEN 70 THEN + 53 ELSE NULL END )
----
84

skipif mysql # not compatible
query I rowsort label-8636
SELECT COALESCE ( + 84, - CAST ( NULL AS INTEGER ), - 73 / 20 * COALESCE ( + 68, - 22 ) - + 48 + - - 69 / - COALESCE ( + 46, + - 95 ) + + + CASE + 67 WHEN 70 THEN + 53 ELSE NULL END )
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8637
SELECT + COUNT( - 3 ) * - 36 * ( 99 ) + + - 49 + - 10 * 18 + 37 - - 40 * + CAST( NULL AS DECIMAL ) / + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT + COUNT ( - 3 ) * - 36 * ( 99 ) + + - 49 + - 10 * 18 + 37 - - 40 * + CAST ( NULL AS REAL ) / + 53 AS col0
----
NULL

query I rowsort
SELECT + 42 * - 61 AS col0
----
-2562

query I rowsort
SELECT ALL - 6 * + 31
----
-186

query I rowsort
SELECT 68 - - 61
----
129

query I rowsort
SELECT 74 * 58 AS col0
----
4292

onlyif mysql # aggregate syntax: 
query II rowsort label-8642
SELECT ALL MIN( ALL - - 5 ), 82 AS col1
----
5
82

skipif mysql # not compatible
query II rowsort label-8642
SELECT ALL MIN ( ALL - - 5 ), 82 AS col1
----
5
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8643
SELECT ALL - 6 * + 13 DIV + - 99 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - 6 * + 13 / + - 99 * + COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8644
SELECT 64 * + CASE - - COALESCE ( + 42, + COUNT( * ), - 76 - + + ( + + COUNT( * ) ) ) WHEN + 59 THEN + 56 WHEN 40 THEN - 27 + 92 + + - CASE + + 53 WHEN + 86 THEN + COALESCE ( - 58, + CAST( - - ( + NULLIF ( - 98, + ( + + 29 ) * 6 ) ) AS SIGNED ) ) + 53 * + ( - 10 ) - + + NULLIF ( - CAST( - 75 AS SIGNED ), - - COUNT( * ) ) WHEN COUNT( * ) * 0 + + 42 THEN + 66 ELSE 27 END END / 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT 64 * + CASE - - COALESCE ( + 42, + COUNT ( * ), - 76 - + + ( + + COUNT ( * ) ) ) WHEN + 59 THEN + 56 WHEN 40 THEN - 27 + 92 + + - CASE + + 53 WHEN + 86 THEN + COALESCE ( - 58, + CAST ( - - ( + NULLIF ( - 98, + ( + + 29 ) * 6 ) ) AS INTEGER ) ) + 53 * + ( - 10 ) - + + NULLIF ( - CAST ( - 75 AS INTEGER ), - - COUNT ( * ) ) WHEN COUNT ( * ) * 0 + + 42 THEN + 66 ELSE 27 END END / 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT 68 + + CAST( - + CASE + 11 WHEN - + 13 * COUNT( * ) - - 74 + - CAST( - ( + - 54 ) AS SIGNED ) * 66 * - - 32 * + 55 THEN NULL WHEN + COUNT( * ) + 77 + MIN( - + 1 ) THEN NULL WHEN - + ( SUM( DISTINCT CAST( + - 42 AS SIGNED ) ) ) THEN NULL ELSE - 80 * + 55 END AS SIGNED )
----
4468

skipif mysql # not compatible
query I rowsort label-8645
SELECT 68 + + CAST ( - + CASE + 11 WHEN - + 13 * COUNT ( * ) - - 74 + - CAST ( - ( + - 54 ) AS INTEGER ) * 66 * - - 32 * + 55 THEN NULL WHEN + COUNT ( * ) + 77 + MIN ( - + 1 ) THEN NULL WHEN - + ( SUM ( DISTINCT CAST ( + - 42 AS INTEGER ) ) ) THEN NULL ELSE - 80 * + 55 END AS INTEGER )
----
4468

query I rowsort
SELECT 74 * + CASE + + 48 WHEN - COALESCE ( - + 43, - 9 ) THEN - 90 ELSE NULL END * + - 29 + + 27
----
NULL

query II rowsort
SELECT 12 * - 86 AS col2, 48
----
-1032
48

onlyif mysql # DIV for integer division: 
query II rowsort label-8648
SELECT ALL - 71 DIV + 23, + 0 * + 61 AS col2
----
-3
0

skipif mysql # not compatible
query II rowsort label-8648
SELECT ALL - 71 / + 23, + 0 * + 61 AS col2
----
-3
0

query II rowsort
SELECT DISTINCT + ( - 36 ) AS col1, - 30 AS col2
----
-36
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT 4 * - + 84 * - + 29 * COUNT( * ) * - 24 + - 54
----
-233910

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT 4 * - + 84 * - + 29 * COUNT ( * ) * - 24 + - 54
----
-233910

onlyif mysql # aggregate syntax: 
query II rowsort label-8651
SELECT ALL + 93 * ( - 12 ) * + - 82 + + + ( 70 ) + - + 26 col1, - COUNT( * ) AS col2
----
91556
-1

skipif mysql # not compatible
query II rowsort label-8651
SELECT ALL + 93 * ( - 12 ) * + - 82 + + + ( 70 ) + - + 26 col1, - COUNT ( * ) AS col2
----
91556
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT + - CAST( NULL AS SIGNED ) * 57 * - 56 / 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT + - CAST ( NULL AS INTEGER ) * 57 * - 56 / 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8653
SELECT + COUNT( 36 ), 30 + - NULLIF ( 12, + - 38 ) AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-8653
SELECT + COUNT ( 36 ), 30 + - NULLIF ( 12, + - 38 ) AS col1
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL - - 80 - + 65 * - - COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - - 80 - + 65 * - - COUNT ( * ) AS col1
----
15

query I rowsort
SELECT ALL - 11 * 47 + + - 63 AS col1
----
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL CASE - COALESCE ( + 4, - 89 * + AVG ( ALL + 6 ) * 74 - - 65 + - 82, 26 * - + NULLIF ( 74, - 8 * - - 20 ) * 96 ) WHEN - - 90 * - + 33 THEN + 0 * + + ( - 36 ) + + COALESCE ( - + 39, 15 * 60 * - 69 ) * + - 47 + + AVG ( DISTINCT - 69 ) * - + 91 * 0 * 53 - - COUNT( DISTINCT - ( ( - 76 ) ) ) + 53 WHEN + 31 / 82 THEN NULL ELSE NULL END / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL CASE - COALESCE ( + 4, - 89 * + AVG ( ALL + 6 ) * 74 - - 65 + - 82, 26 * - + NULLIF ( 74, - 8 * - - 20 ) * 96 ) WHEN - - 90 * - + 33 THEN + 0 * + + ( - 36 ) + + COALESCE ( - + 39, 15 * 60 * - 69 ) * + - 47 + + AVG ( DISTINCT - 69 ) * - + 91 * 0 * 53 - - COUNT ( DISTINCT - ( ( - 76 ) ) ) + 53 WHEN + 31 / 82 THEN NULL ELSE NULL END / + 20
----
NULL

query I rowsort
SELECT DISTINCT + 41 - + 48 * - + 58
----
2825

query I rowsort
SELECT - - 69 * - ( + 43 ) + + 59
----
-2908

query I rowsort
SELECT + 4 - + 33 + + 51 + + 47 + + 45 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + + COUNT( * ) / + NULLIF ( + - CASE - + SUM( 38 ) WHEN - 76 THEN + 64 + + + 64 * - 30 + - 95 - COUNT( * ) * - COUNT( * ) END, - + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT + + COUNT ( * ) / + NULLIF ( + - CASE - + SUM ( 38 ) WHEN - 76 THEN + 64 + + + 64 * - 30 + - 95 - COUNT ( * ) * - COUNT ( * ) END, - + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - - 35, - ( 96 ) ) AS col2
----
-35

query I rowsort
SELECT + - 53 + 5
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ALL ( + COUNT( + + ( + - 65 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL ( + COUNT ( + + ( + - 65 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT + COUNT( * ) + + - ( + 89 ) * 89 col2
----
-7920

skipif mysql # not compatible
query I rowsort label-8664
SELECT + COUNT ( * ) + + - ( + 89 ) * 89 col2
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT 75 * COUNT( DISTINCT + ( + 39 ) )
----
75

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT 75 * COUNT ( DISTINCT + ( + 39 ) )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8666
SELECT DISTINCT 34 + + 12 + + 18 * + COUNT( * ) + + 87 + - 82 + + - 16 DIV 72 + 19 * + 76 + 18 AS col1
----
1531

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT 34 + + 12 + + 18 * + COUNT ( * ) + + 87 + - 82 + + - 16 / 72 + 19 * + 76 + 18 AS col1
----
1531

query I rowsort
SELECT + 4 * - 20
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL 10 + + + COUNT( + 73 ) + 53 + - + ( - - CAST( + 70 AS SIGNED ) ) * + COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL 10 + + + COUNT ( + 73 ) + 53 + - + ( - - CAST ( + 70 AS INTEGER ) ) * + COUNT ( * ) AS col2
----
-6

query I rowsort
SELECT ALL 69 + + 34 - + 65 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8670
SELECT + CASE + 78 WHEN + ( + - CAST( - COALESCE ( - AVG ( 90 ), + COALESCE ( - + ( + 12 ), + 14 ) / + + 48 ) AS DECIMAL ) ) THEN + + 64 * + 70 + + - 17 WHEN - 32 + ( + - 49 ) * COUNT( * ) THEN + 12 ELSE NULL END + + + 62 + + COUNT( * ) - COUNT( * ) * - + 66 + - + 97 * 82 * ( + 70 ) * + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8670
SELECT + CASE + 78 WHEN + ( + - CAST ( - COALESCE ( - AVG ( 90 ), + COALESCE ( - + ( + 12 ), + 14 ) / + + 48 ) AS REAL ) ) THEN + + 64 * + 70 + + - 17 WHEN - 32 + ( + - 49 ) * COUNT ( * ) THEN + 12 ELSE NULL END + + + 62 + + COUNT ( * ) - COUNT ( * ) * - + 66 + - + 97 * 82 * ( + 70 ) * + + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8671
SELECT - COALESCE ( - + 22, - NULLIF ( - + CAST( + 47 AS SIGNED ), - - 74 * + - 14 ) + + COUNT( * ) + + + 77 DIV - CASE - 47 WHEN 89 * + 8 * 90 + 28 THEN COUNT( * ) END * + COUNT( * ) DIV + - 94 )
----
22

skipif mysql # not compatible
query I rowsort label-8671
SELECT - COALESCE ( - + 22, - NULLIF ( - + CAST ( + 47 AS INTEGER ), - - 74 * + - 14 ) + + COUNT ( * ) + + + 77 / - CASE - 47 WHEN 89 * + 8 * 90 + 28 THEN COUNT ( * ) END * + COUNT ( * ) / + - 94 )
----
22

query I rowsort
SELECT - 56 + - 76 AS col0
----
-132

query I rowsort
SELECT + 68 * + ( + + 82 )
----
5576

query I rowsort
SELECT - 74 * 75
----
-5550

query I rowsort
SELECT - 33 + 47 * - 88
----
-4169

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL + COUNT( * ) + - 91
----
-90

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + COUNT ( * ) + - 91
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT DISTINCT COUNT( * ) DIV - 32 + 39 + + + 61 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT COUNT ( * ) / - 32 + 39 + + + 61 AS col2
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-8678
SELECT ALL + 43 DIV 34 + 68 AS col1, - 8
----
69
-8

skipif mysql # not compatible
query II rowsort label-8678
SELECT ALL + 43 / 34 + 68 AS col1, - 8
----
69
-8

query I rowsort
SELECT DISTINCT 61 * + 86 * + 26 AS col2
----
136396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8680
SELECT ALL 37 DIV - 37 + - MIN( ALL - 36 ) * - + 9 * + 20 * - + CAST( + 36 AS SIGNED ) + + + 45 DIV - - 94 * - - COALESCE ( 49, - COUNT( * ) DIV + COUNT( + 61 ) DIV - + CAST( NULL AS SIGNED ) + - 26 ) + - 80 * + 43 + + + 44
----
229883

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL 37 / - 37 + - MIN ( ALL - 36 ) * - + 9 * + 20 * - + CAST ( + 36 AS INTEGER ) + + + 45 / - - 94 * - - COALESCE ( 49, - COUNT ( * ) / + COUNT ( + 61 ) / - + CAST ( NULL AS INTEGER ) + - 26 ) + - 80 * + 43 + + + 44
----
229883

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + COALESCE ( - 88, + COUNT( * ) ) * 46 - - 80 AS col0
----
-3968

skipif mysql # not compatible
query I rowsort label-8681
SELECT + COALESCE ( - 88, + COUNT ( * ) ) * 46 - - 80 AS col0
----
-3968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( + + 67 ) - + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( + + 67 ) - + - 86 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - COALESCE ( 70, + - 81 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT - + COUNT( * ) * - + 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8684
SELECT - + COUNT ( * ) * - + 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - COUNT( * ) + + 74 * - + 60 * + 48
----
-213121

skipif mysql # not compatible
query I rowsort label-8685
SELECT - COUNT ( * ) + + 74 * - + 60 * + 48
----
-213121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8686
SELECT 25 * - 84 * ( - + COUNT( - CASE + - 97 WHEN - 81 THEN NULL WHEN + - 65 * - + 78 THEN 92 * 42 END ) ) DIV - + 2 + - COUNT( * ) - - 96 * - + 29
----
-2785

skipif mysql # not compatible
query I rowsort label-8686
SELECT 25 * - 84 * ( - + COUNT ( - CASE + - 97 WHEN - 81 THEN NULL WHEN + - 65 * - + 78 THEN 92 * 42 END ) ) / - + 2 + - COUNT ( * ) - - 96 * - + 29
----
-2785

onlyif mysql # aggregate syntax: 
query II rowsort label-8687
SELECT ALL + - 22, - 2 * - MAX( DISTINCT 36 ) + - + 66 * - - 4 AS col2
----
-22
-192

skipif mysql # not compatible
query II rowsort label-8687
SELECT ALL + - 22, - 2 * - MAX ( DISTINCT 36 ) + - + 66 * - - 4 AS col2
----
-22
-192

query I rowsort
SELECT ALL + - ( - + 13 )
----
13

query I rowsort
SELECT DISTINCT - 81 * + 85
----
-6885

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - MIN( ALL 92 ) * 97 + COALESCE ( ( 21 ), 14, MAX( DISTINCT + 34 ) + + 37 )
----
-8903

skipif mysql # not compatible
query I rowsort label-8690
SELECT - MIN ( ALL 92 ) * 97 + COALESCE ( ( 21 ), 14, MAX ( DISTINCT + 34 ) + + 37 )
----
-8903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8691
SELECT ALL - - 53 * 96 * - - CAST( + 71 AS SIGNED ) col0, - COUNT( DISTINCT - - 14 ) AS col0
----
361248
-1

skipif mysql # not compatible
query II rowsort label-8691
SELECT ALL - - 53 * 96 * - - CAST ( + 71 AS INTEGER ) col0, - COUNT ( DISTINCT - - 14 ) AS col0
----
361248
-1

query I rowsort
SELECT ALL + + 63 col0
----
63

query I rowsort
SELECT DISTINCT - NULLIF ( + 76, - 7 ) * - 86 + - 78
----
6458

query II rowsort
SELECT - + 99 * - 95 - 95 col2, ( - - 86 ) AS col2
----
9310
86

query I rowsort
SELECT + + 93 + + + 58 * + 98
----
5777

onlyif mysql # aggregate syntax: 
query II rowsort label-8696
SELECT ALL 91, + CASE - COUNT( * ) WHEN + 14 THEN - - 10 * + 40 - - + 93 + - 76 END AS col1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-8696
SELECT ALL 91, + CASE - COUNT ( * ) WHEN + 14 THEN - - 10 * + 40 - - + 93 + - 76 END AS col1
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL - 77 * + 22 * - COUNT( * ) AS col2
----
1694

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - 77 * + 22 * - COUNT ( * ) AS col2
----
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL + 6 + SUM( - + 14 )
----
-8

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL + 6 + SUM ( - + 14 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT MIN( ALL ( + 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-8699
SELECT MIN ( ALL ( + 64 ) )
----
64

query I rowsort
SELECT - ( - - 79 ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT ALL - 43 + + SUM( ALL CAST( + ( - 86 ) AS SIGNED ) ) + - + CASE - 78 WHEN + 86 THEN + COALESCE ( CASE + 61 WHEN 14 * + 21 + - 64 THEN - + 46 + 30 * - 34 * 86 + 58 ELSE NULL END, - SUM( DISTINCT 4 ) ) WHEN - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 7 / 32 + SUM( 87 ) THEN NULL WHEN - NULLIF ( + + 64, + + 54 * 17 * 3 * + 83 ) + + 19 - 11 THEN - 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL - 43 + + SUM ( ALL CAST ( + ( - 86 ) AS INTEGER ) ) + - + CASE - 78 WHEN + 86 THEN + COALESCE ( CASE + 61 WHEN 14 * + 21 + - 64 THEN - + 46 + 30 * - 34 * 86 + 58 ELSE NULL END, - SUM ( DISTINCT 4 ) ) WHEN - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 7 / 32 + SUM ( 87 ) THEN NULL WHEN - NULLIF ( + + 64, + + 54 * 17 * 3 * + 83 ) + + 19 - 11 THEN - 0 ELSE NULL END
----
NULL

query I rowsort
SELECT - 75 - - 26
----
-49

query I rowsort
SELECT - ( - 27 ) AS col1
----
27

query I rowsort
SELECT + 57 * + 6 AS col0
----
342

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8705
SELECT ALL 63 * + 80 * - CASE - 92 WHEN - ( ( - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) ) ) THEN + COUNT( * ) * 89 WHEN + COUNT( * ) - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL 63 * + 80 * - CASE - 92 WHEN - ( ( - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) ) ) THEN + COUNT ( * ) * 89 WHEN + COUNT ( * ) - COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT SUM( + - 90 ) + - 57 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT SUM ( + - 90 ) + - 57 AS col0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT DISTINCT 56 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT 56 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT ALL COUNT( * ) + + COUNT( * ) * - - 63
----
64

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL COUNT ( * ) + + COUNT ( * ) * - - 63
----
64

query I rowsort
SELECT ALL + 71 * - 49 col2
----
-3479

query I rowsort
SELECT DISTINCT 85 * 33
----
2805

query I rowsort
SELECT 3 - 38 * - 22 * 69 AS col0
----
57687

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT 20 + - 32 + 40 * 43 * 92 + + 99 + + - 5 + 6 * ( - COUNT( * ) ) AS col1
----
158316

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT 20 + - 32 + 40 * 43 * 92 + + 99 + + - 5 + 6 * ( - COUNT ( * ) ) AS col1
----
158316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT ALL MIN( 25 ) + - COALESCE ( - - 33, + 96 DIV 46 * 98 - 16 + - 40 DIV + 31 * COUNT( * ) )
----
-8

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL MIN ( 25 ) + - COALESCE ( - - 33, + 96 / 46 * 98 - 16 + - 40 / + 31 * COUNT ( * ) )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8714
SELECT DISTINCT + 99 + + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT + 99 + + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT 92 + - - 97 + - - COALESCE ( - NULLIF ( + 56, CASE + 97 WHEN - 14 THEN - 86 WHEN COUNT( ALL 45 ) + - SUM( DISTINCT 66 ) + + 85 + - 74 THEN - 93 * + 2 ELSE - 3 / COUNT( * ) END ), + 43 + + COUNT( * ) ) + + COUNT( * ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-8715
SELECT 92 + - - 97 + - - COALESCE ( - NULLIF ( + 56, CASE + 97 WHEN - 14 THEN - 86 WHEN COUNT ( ALL 45 ) + - SUM ( DISTINCT 66 ) + + 85 + - 74 THEN - 93 * + 2 ELSE - 3 / COUNT ( * ) END ), + 43 + + COUNT ( * ) ) + + COUNT ( * ) AS col2
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-8716
SELECT - COUNT( - 77 ) * - 64 * - ( + - 53 ) * - 29 - - 96 + 49 + + ( + - ( - 25 ) ) + 67 * + - COUNT( - 24 ) AS col1, + 45 col2
----
-98265
45

skipif mysql # not compatible
query II rowsort label-8716
SELECT - COUNT ( - 77 ) * - 64 * - ( + - 53 ) * - 29 - - 96 + 49 + + ( + - ( - 25 ) ) + 67 * + - COUNT ( - 24 ) AS col1, + 45 col2
----
-98265
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8717
SELECT ALL - MIN( - 73 ), + 20 * - 25 AS col0
----
73
-500

skipif mysql # not compatible
query II rowsort label-8717
SELECT ALL - MIN ( - 73 ), + 20 * - 25 AS col0
----
73
-500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8718
SELECT - 8 / COUNT( * ) + - CAST( NULL AS SIGNED ) / 44 + - + COUNT( * ) + + 72 + - 59 + + 19 * + - 26 * 35 * + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT - 8 / COUNT ( * ) + - CAST ( NULL AS INTEGER ) / 44 + - + COUNT ( * ) + + 72 + - 59 + + 19 * + - 26 * 35 * + 84 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT COUNT( * ) * 76 AS col1, + 0 * + + 55 AS col0
----
76
0

skipif mysql # not compatible
query II rowsort label-8719
SELECT COUNT ( * ) * 76 AS col1, + 0 * + + 55 AS col0
----
76
0

query II rowsort
SELECT ALL 40 * - - 41 AS col1, 49
----
1640
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL - 35 - - SUM( - 69 ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL - 35 - - SUM ( - 69 ) AS col0
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT DISTINCT - 66 / + CAST( NULL AS SIGNED ) - + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT - 66 / + CAST ( NULL AS INTEGER ) - + - 55
----
NULL

query I rowsort
SELECT - 28 + + 64
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8724
SELECT ALL - 33 * 4 DIV 26
----
-5

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL - 33 * 4 / 26
----
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8725
SELECT + CAST( + 12 AS DECIMAL ) / + CAST( NULL AS SIGNED ) * - + ( - - CASE - 32 WHEN + 24 THEN - 10 * - 12 * - - 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT + CAST ( + 12 AS REAL ) / + CAST ( NULL AS INTEGER ) * - + ( - - CASE - 32 WHEN + 24 THEN - 10 * - 12 * - - 12 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT 37 / + - CASE + 59 WHEN + 5 THEN - 12 * + 13 + 63 END + + - 71 - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT 37 / + - CASE + 59 WHEN + 5 THEN - 12 * + 13 + 63 END + + - 71 - + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT 16 DIV + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT 16 / + 72 AS col0
----
0

query II rowsort
SELECT 60 * ( + COALESCE ( 28, 88 ) ), 68 AS col2
----
1680
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL + 17 + - + COUNT( DISTINCT + - 50 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + 17 + - + COUNT ( DISTINCT + - 50 ) AS col1
----
16

query I rowsort
SELECT 47 - 75 + + 10
----
-18

query I rowsort
SELECT DISTINCT - 89 + + 59 * 95 + 29 * + 22 + - 9
----
6145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8732
SELECT ALL + + 46 + COUNT( * ) + - + 78 + + 47 DIV + COALESCE ( + 20, + 38 )
----
-29

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + + 46 + COUNT ( * ) + - + 78 + + 47 / + COALESCE ( + 20, + 38 )
----
-29

query I rowsort
SELECT 85 * + 40 + + 57 col0
----
3457

query I rowsort
SELECT ALL + 2 * 30 * - + 47 AS col2
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL - 47 + - COUNT( + 5 ) + + + 73 * - - 65 * + COUNT( * )
----
4697

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - 47 + - COUNT ( + 5 ) + + + 73 * - - 65 * + COUNT ( * )
----
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT COUNT( * ) * + 48 + 19 + - 28
----
39

skipif mysql # not compatible
query I rowsort label-8736
SELECT COUNT ( * ) * + 48 + 19 + - 28
----
39

query I rowsort
SELECT ALL + 84 * - + 33 AS col0
----
-2772

query I rowsort
SELECT 77 + - 34
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT COUNT( * ) - + CASE 44 WHEN - 30 - 59 THEN NULL WHEN - + MIN( DISTINCT 65 ) THEN + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT COUNT ( * ) - + CASE 44 WHEN - 30 - 59 THEN NULL WHEN - + MIN ( DISTINCT 65 ) THEN + 8 END
----
NULL

query I rowsort
SELECT ALL + 75 + + + 42
----
117

query I rowsort
SELECT ALL - 12 + + + 2 AS col1
----
-10

query I rowsort
SELECT 93 + - 9 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT - 30 + 24 * - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - 30 + 24 * - COUNT ( * ) AS col1
----
-54

query II rowsort
SELECT ALL 74 AS col2, - 23 AS col1
----
74
-23

query I rowsort
SELECT 12 + + 69 - + 25 * ( + 15 ) + - 87 * - 23 AS col1
----
1707

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL - COUNT( * ) - + + ( + - 75 ) + + 81 * + 96 AS col0
----
7850

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - COUNT ( * ) - + + ( + - 75 ) + + 81 * + 96 AS col0
----
7850

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT 93 DIV - + 73
----
-1

skipif mysql # not compatible
query I rowsort label-8747
SELECT 93 / - + 73
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT COALESCE ( + ( + 88 ), + 72, - CAST( NULL AS SIGNED ) + - - COUNT( - 64 ) - + - 29 * - 40 * + + 54 ) * - 8 AS col0
----
-704

skipif mysql # not compatible
query I rowsort label-8748
SELECT COALESCE ( + ( + 88 ), + 72, - CAST ( NULL AS INTEGER ) + - - COUNT ( - 64 ) - + - 29 * - 40 * + + 54 ) * - 8 AS col0
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT 99 + - ( COALESCE ( 26, + - ( SUM( ALL - 32 ) ) + - ( + CASE + - 11 WHEN 29 + 94 THEN NULL WHEN AVG ( + 40 ) * + 48 + + + ( - 7 ) THEN NULL ELSE + + 48 END ) ) ) col2
----
73

skipif mysql # not compatible
query I rowsort label-8749
SELECT 99 + - ( COALESCE ( 26, + - ( SUM ( ALL - 32 ) ) + - ( + CASE + - 11 WHEN 29 + 94 THEN NULL WHEN AVG ( + 40 ) * + 48 + + + ( - 7 ) THEN NULL ELSE + + 48 END ) ) ) col2
----
73

query I rowsort
SELECT 38 + + 40
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT CAST( NULL AS SIGNED ) + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT CAST ( NULL AS INTEGER ) + 53
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT ALL CAST( NULL AS SIGNED ) - + 45 + - 81 + - ( - 4 ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL CAST ( NULL AS INTEGER ) - + 45 + - 81 + - ( - 4 ) * 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT NULLIF ( + 7, CASE - 27 WHEN - 97 THEN NULL WHEN - 35 * + COUNT( * ) * ( 5 ) * 0 THEN NULL ELSE + 92 END ) * + 70
----
490

skipif mysql # not compatible
query I rowsort label-8753
SELECT NULLIF ( + 7, CASE - 27 WHEN - 97 THEN NULL WHEN - 35 * + COUNT ( * ) * ( 5 ) * 0 THEN NULL ELSE + 92 END ) * + 70
----
490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT CAST( - 72 AS SIGNED ) * 35 AS col2
----
-2520

skipif mysql # not compatible
query I rowsort label-8754
SELECT CAST ( - 72 AS INTEGER ) * 35 AS col2
----
-2520

query I rowsort
SELECT 27 * + 85 AS col0
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL - + SUM( DISTINCT 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - + SUM ( DISTINCT 39 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8757
SELECT - 82 * - 66 * 24 / + SUM( 13 ) + COUNT( * ) + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 95 + + 75 AS col2, CASE - 69 WHEN COUNT( DISTINCT + 82 ) THEN + - 51 WHEN + 82 THEN NULL ELSE + 90 + 59 + + 68 + - - 56 * 3 * - + CAST( NULL AS SIGNED ) * + 68 END / 48 * 56 + 32 * + - 35 + - 48
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8757
SELECT - 82 * - 66 * 24 / + SUM ( 13 ) + COUNT ( * ) + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 95 + + 75 AS col2, CASE - 69 WHEN COUNT ( DISTINCT + 82 ) THEN + - 51 WHEN + 82 THEN NULL ELSE + 90 + 59 + + 68 + - - 56 * 3 * - + CAST ( NULL AS INTEGER ) * + 68 END / 48 * 56 + 32 * + - 35 + - 48
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL + ( - - CAST( + 48 AS SIGNED ) ) * COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + ( - - CAST ( + 48 AS INTEGER ) ) * COUNT ( * ) AS col2
----
48

query I rowsort
SELECT + 34 * + 10
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT 46 + - 44 * COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8760
SELECT 46 + - 44 * COUNT ( * ) AS col0
----
2

query I rowsort
SELECT 36 + - 70 AS col0
----
-34

query I rowsort
SELECT - 1 * - 11
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8763
SELECT + + 42 * - COUNT( * ) + - 52 col0, 56 * - 9 AS col1
----
-94
-504

skipif mysql # not compatible
query II rowsort label-8763
SELECT + + 42 * - COUNT ( * ) + - 52 col0, 56 * - 9 AS col1
----
-94
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT ALL + 60 + - + CAST( NULL AS SIGNED ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL + 60 + - + CAST ( NULL AS INTEGER ) * 54
----
NULL

query I rowsort
SELECT 91 * - 50 + + 46 * + 6 col0
----
-4274

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT - 27 * SUM( ALL - 64 ) AS col0
----
1728

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - 27 * SUM ( ALL - 64 ) AS col0
----
1728

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT 41 * 32 DIV - 85 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8767
SELECT 41 * 32 / - 85 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8768
SELECT + 38 AS col0, - CASE 13 WHEN 62 * 94 THEN + MIN( 6 ) * + 98 + + ( + + 78 ) - 57 * + 26 ELSE NULL END AS col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-8768
SELECT + 38 AS col0, - CASE 13 WHEN 62 * 94 THEN + MIN ( 6 ) * + 98 + + ( + + 78 ) - 57 * + 26 ELSE NULL END AS col1
----
38
NULL

query I rowsort
SELECT 31 + + 99 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + COALESCE ( - COUNT( DISTINCT + - 4 ), - COUNT( * ), + 32 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8770
SELECT + COALESCE ( - COUNT ( DISTINCT + - 4 ), - COUNT ( * ), + 32 ) AS col0
----
-1

query I rowsort
SELECT - 34 + + + 39 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL - 43 + - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL - 43 + - COUNT ( * )
----
-44

query I rowsort
SELECT + 45 * 55
----
2475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8774
SELECT DISTINCT 65, - CAST( + 19 AS SIGNED ) * + 50 + + 41 * + 93 AS col0
----
65
2863

skipif mysql # not compatible
query II rowsort label-8774
SELECT DISTINCT 65, - CAST ( + 19 AS INTEGER ) * + 50 + + 41 * + 93 AS col0
----
65
2863

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL 3 - - MAX( - + ( + + 46 ) ) * - - 57 + 23 AS col1
----
-2596

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL 3 - - MAX ( - + ( + + 46 ) ) * - - 57 + 23 AS col1
----
-2596

query I rowsort
SELECT - 15 * - 45 * - - 3
----
2025

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8777
SELECT DISTINCT COALESCE ( 14, - + 49 DIV CAST( NULL AS SIGNED ) - + 86 )
----
14

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT COALESCE ( 14, - + 49 / CAST ( NULL AS INTEGER ) - + 86 )
----
14

query I rowsort
SELECT + 62 - - 50 AS col0
----
112

query I rowsort
SELECT - 38 - + 2 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT - COUNT( * ) * - 23
----
23

skipif mysql # not compatible
query I rowsort label-8780
SELECT - COUNT ( * ) * - 23
----
23

query I rowsort
SELECT - 55 * 6 AS col1
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - SUM( ALL - - 63 ) + COUNT( * ) + + + 26 + - - 85 + - 5 * + 90 * + 6 - - 82
----
-2569

skipif mysql # not compatible
query I rowsort label-8782
SELECT - SUM ( ALL - - 63 ) + COUNT ( * ) + + + 26 + - - 85 + - 5 * + 90 * + 6 - - 82
----
-2569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8783
SELECT ALL - 81 - MAX( + 60 ) - + - 91 DIV - 54 AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL - 81 - MAX ( + 60 ) - + - 91 / - 54 AS col2
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8784
SELECT ALL + CASE CAST( 22 AS SIGNED ) WHEN - COUNT( ALL + + 81 ) THEN NULL WHEN - COUNT( * ) THEN - 60 ELSE NULL END * + COUNT( ALL + CASE - 72 WHEN - - 11 THEN - CAST( NULL AS SIGNED ) * + 52 WHEN - - 0 THEN NULL WHEN 44 + - 58 * + 47 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + CASE CAST ( 22 AS INTEGER ) WHEN - COUNT ( ALL + + 81 ) THEN NULL WHEN - COUNT ( * ) THEN - 60 ELSE NULL END * + COUNT ( ALL + CASE - 72 WHEN - - 11 THEN - CAST ( NULL AS INTEGER ) * + 52 WHEN - - 0 THEN NULL WHEN 44 + - 58 * + 47 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 36 * - 31 * + - 71
----
79236

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL COALESCE ( - + 21, + COUNT( * ), - 66, - 97 )
----
-21

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL COALESCE ( - + 21, + COUNT ( * ), - 66, - 97 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8787
SELECT DISTINCT - 44 DIV - + NULLIF ( + 98, - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT - 44 / - + NULLIF ( + 98, - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT ALL - COUNT( * ) AS col2, 29 AS col0
----
-1
29

skipif mysql # not compatible
query II rowsort label-8788
SELECT ALL - COUNT ( * ) AS col2, 29 AS col0
----
-1
29

query II rowsort
SELECT ALL - 71 AS col0, 72 - 70 * - 36
----
-71
2592

query I rowsort
SELECT - 58 * - 77 AS col1
----
4466

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT - 85 DIV + 42
----
-2

skipif mysql # not compatible
query I rowsort label-8791
SELECT - 85 / + 42
----
-2

query II rowsort
SELECT ALL + 10, - 40 col0
----
10
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT DISTINCT + - 82 * + + 92 / + CAST( NULL AS SIGNED ) + - - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + - 82 * + + 92 / + CAST ( NULL AS INTEGER ) + - - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT + - CASE - CASE COALESCE ( + 75, ( + 25 ), MIN( DISTINCT + - 92 ), - 53 ) WHEN - + 32 / + 52 * - - 75 + + SUM( + + 25 ) THEN NULL WHEN 25 * - 17 THEN NULL ELSE 84 + 69 END WHEN 31 THEN NULL ELSE + - 1 END
----
1

skipif mysql # not compatible
query I rowsort label-8794
SELECT + - CASE - CASE COALESCE ( + 75, ( + 25 ), MIN ( DISTINCT + - 92 ), - 53 ) WHEN - + 32 / + 52 * - - 75 + + SUM ( + + 25 ) THEN NULL WHEN 25 * - 17 THEN NULL ELSE 84 + 69 END WHEN 31 THEN NULL ELSE + - 1 END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT + - 95 DIV + 61
----
-1

skipif mysql # not compatible
query I rowsort label-8795
SELECT + - 95 / + 61
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8796
SELECT ALL + 37 * CAST( NULL AS DECIMAL ) + 72 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + 37 * CAST ( NULL AS REAL ) + 72 + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 98 * - 58 AS col1
----
5684

query I rowsort
SELECT ALL + - 31 col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + MIN( DISTINCT ( + - 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-8799
SELECT + MIN ( DISTINCT ( + - 73 ) )
----
-73

query I rowsort
SELECT + COALESCE ( - 69, + + 1 ) AS col2
----
-69

query II rowsort
SELECT DISTINCT 35 * 25 - + 20 AS col1, + 70 AS col0
----
855
70

query I rowsort
SELECT DISTINCT 33 * 50 * - 67 AS col0
----
-110550

query I rowsort
SELECT ALL 9 * + 26 * - + 47 * - 52 * 81 - + NULLIF ( + - 2, 93 )
----
46323578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT + 74 + + CASE + COUNT( * ) WHEN + ( ( 65 ) ) + - + 20 * + 19 + COUNT( - 18 ) THEN NULL WHEN - 35 THEN - 37 + - CASE - 9 WHEN - + COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) * + 43 THEN 46 * - 88 + 64 ELSE NULL END - + 1 ELSE NULL END + + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT + 74 + + CASE + COUNT ( * ) WHEN + ( ( 65 ) ) + - + 20 * + 19 + COUNT ( - 18 ) THEN NULL WHEN - 35 THEN - 37 + - CASE - 9 WHEN - + COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * + 43 THEN 46 * - 88 + 64 ELSE NULL END - + 1 ELSE NULL END + + - 91
----
NULL

query I rowsort
SELECT ALL + 51 * - 70 - - 67 AS col2
----
-3503

query I rowsort
SELECT + 92 * - + CASE - + 8 WHEN + + 69 - + 6 THEN NULL ELSE - + 50 END
----
4600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8807
SELECT + ( 44 ) + 98 + + + CAST( NULL AS SIGNED ) * - - 81, - 21 * - 43 + + 76 AS col0
----
NULL
979

skipif mysql # not compatible
query II rowsort label-8807
SELECT + ( 44 ) + 98 + + + CAST ( NULL AS INTEGER ) * - - 81, - 21 * - 43 + + 76 AS col0
----
NULL
979

query I rowsort
SELECT - 68 - - 95 + + 74 + - + ( + ( - 35 ) )
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT + 38 + 19 * - CAST( + 86 AS SIGNED )
----
-1596

skipif mysql # not compatible
query I rowsort label-8809
SELECT + 38 + 19 * - CAST ( + 86 AS INTEGER )
----
-1596

query II rowsort
SELECT - 44 - + - 80 AS col1, 44 AS col0
----
36
44

query I rowsort
SELECT + 56 * + - 81
----
-4536

query I rowsort
SELECT - 59 * 6 + + 47 col0
----
-307

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8813
SELECT + 32 * - 40 AS col1, + 91 + + COUNT( * ) - - 85 - - 60 * 78 + - 79 + - 53 DIV + ( COUNT( * ) ) + - 27 DIV - ( + 98 ) * - 92 DIV + COUNT( * ) + - + 93 AS col0
----
-1280
4632

skipif mysql # not compatible
query II rowsort label-8813
SELECT + 32 * - 40 AS col1, + 91 + + COUNT ( * ) - - 85 - - 60 * 78 + - 79 + - 53 / + ( COUNT ( * ) ) + - 27 / - ( + 98 ) * - 92 / + COUNT ( * ) + - + 93 AS col0
----
-1280
4632

query I rowsort
SELECT + 8 + - - 52 * 57 AS col1
----
2972

onlyif mysql # DIV for integer division: 
query II rowsort label-8815
SELECT ALL - 77 DIV + 12, - ( 31 ) AS col1
----
-6
-31

skipif mysql # not compatible
query II rowsort label-8815
SELECT ALL - 77 / + 12, - ( 31 ) AS col1
----
-6
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT - COUNT( ALL - 21 ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT - COUNT ( ALL - 21 ) + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL SUM( DISTINCT + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL SUM ( DISTINCT + 47 ) AS col0
----
47

query I rowsort
SELECT - 61 + + 43 + - + 19
----
-37

query I rowsort
SELECT ALL - CASE 89 WHEN 17 * + 55 / + ( 79 ) THEN - 12 END + ( - + 77 ) + + 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8820
SELECT - COUNT( + 21 ), 69 AS col1
----
-1
69

skipif mysql # not compatible
query II rowsort label-8820
SELECT - COUNT ( + 21 ), 69 AS col1
----
-1
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8821
SELECT + + 65 + + - CASE - 70 WHEN - - 14 THEN - - 91 + - MAX( + 97 ) * + 5 WHEN + COUNT( * ) THEN NULL END + 62 + + ( + + 47 ) * + + COALESCE ( - 26, - CAST( NULL AS SIGNED ) * - 36 + - - ( 94 ) + - 31 * - 99 / - 41 ) + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT + + 65 + + - CASE - 70 WHEN - - 14 THEN - - 91 + - MAX ( + 97 ) * + 5 WHEN + COUNT ( * ) THEN NULL END + 62 + + ( + + 47 ) * + + COALESCE ( - 26, - CAST ( NULL AS INTEGER ) * - 36 + - - ( 94 ) + - 31 * - 99 / - 41 ) + 14 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT DISTINCT - 54 + - 80 DIV 14 * - 15
----
21

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT - 54 + - 80 / 14 * - 15
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT - ( 33 ), + ( - - 52 ) - - 99 + + COUNT( * ) AS col1
----
-33
152

skipif mysql # not compatible
query II rowsort label-8823
SELECT - ( 33 ), + ( - - 52 ) - - 99 + + COUNT ( * ) AS col1
----
-33
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT - + 26 + + - 64 * COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-8824
SELECT - + 26 + + - 64 * COUNT ( * )
----
-90

query I rowsort
SELECT ALL - + 44 + + - 91 * - - 57 AS col0
----
-5231

onlyif mysql # aggregate syntax: 
query II rowsort label-8826
SELECT - MAX( ALL - 89 ) col0, 18 * 25 AS col1
----
89
450

skipif mysql # not compatible
query II rowsort label-8826
SELECT - MAX ( ALL - 89 ) col0, 18 * 25 AS col1
----
89
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL - COUNT( * ) * + 89 * 88
----
-7832

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - COUNT ( * ) * + 89 * 88
----
-7832

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL - 4 + - - 14 - - + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL - 4 + - - 14 - - + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT DISTINCT - ( COUNT( ( + 53 ) ) ) + - 60
----
-61

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT - ( COUNT ( ( + 53 ) ) ) + - 60
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT ALL 14 DIV 82 + + COALESCE ( - 77, - 82 DIV - 8, 80 ) - + 53 * + 88 AS col0
----
-4741

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL 14 / 82 + + COALESCE ( - 77, - 82 / - 8, 80 ) - + 53 * + 88 AS col0
----
-4741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8831
SELECT DISTINCT - 90 DIV 33 + + MAX( NULLIF ( + CAST( - 10 AS SIGNED ), - 87 + + 57 * 8 - + 19 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT - 90 / 33 + + MAX ( NULLIF ( + CAST ( - 10 AS INTEGER ), - 87 + + 57 * 8 - + 19 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL + NULLIF ( 25, MAX( - 40 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + NULLIF ( 25, MAX ( - 40 ) ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT + 22 DIV 1 + 15 DIV + 32 + 3
----
25

skipif mysql # not compatible
query I rowsort label-8833
SELECT + 22 / 1 + 15 / + 32 + 3
----
25

query I rowsort
SELECT - 46 * + - 28 + - - 15 AS col2
----
1303

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT - - NULLIF ( 34, - SUM( DISTINCT - 42 ) )
----
34

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT - - NULLIF ( 34, - SUM ( DISTINCT - 42 ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL - - 26 - + - 62 + 25 * - 28 + COUNT( * ) + - 41 + + + COUNT( * )
----
-651

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - - 26 - + - 62 + 25 * - 28 + COUNT ( * ) + - 41 + + + COUNT ( * )
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - 47 * + NULLIF ( + 80, 59 * - - 66 + + ( - ( - 18 ) ) + - COUNT( - 76 ) ) + 90 col0
----
-3670

skipif mysql # not compatible
query I rowsort label-8837
SELECT - 47 * + NULLIF ( + 80, 59 * - - 66 + + ( - ( - 18 ) ) + - COUNT ( - 76 ) ) + 90 col0
----
-3670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT + 30 * - 32 + + + 30 * 10 + + + 10 + - COUNT( * ) DIV 48 AS col0
----
-650

skipif mysql # not compatible
query I rowsort label-8838
SELECT + 30 * - 32 + + + 30 * 10 + + + 10 + - COUNT ( * ) / 48 AS col0
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + 12 * 55 / + + CASE - 84 WHEN - 83 THEN - 63 END + - SUM( ALL - 31 ) + - NULLIF ( + 97, + COUNT( * ) * - 97 ) + + CASE + + 41 WHEN - 99 THEN ( + MAX( ALL - 41 ) ) * - 43 WHEN - 39 + + 90 THEN NULL END + + 35 * 25 + 90 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT + 12 * 55 / + + CASE - 84 WHEN - 83 THEN - 63 END + - SUM ( ALL - 31 ) + - NULLIF ( + 97, + COUNT ( * ) * - 97 ) + + CASE + + 41 WHEN - 99 THEN ( + MAX ( ALL - 41 ) ) * - 43 WHEN - 39 + + 90 THEN NULL END + + 35 * 25 + 90 / - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 52 * + 78 AS col0
----
4056

query I rowsort
SELECT ALL - 43 * 30
----
-1290

query I rowsort
SELECT 3 + + 66
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8843
SELECT ALL - 80 - - CASE WHEN ( CAST( NULL AS SIGNED ) ) NOT BETWEEN + COUNT( * ) - 35 AND + - 95 + + - 60 THEN NULL WHEN 26 + MIN( DISTINCT + 57 ) > + + 9 THEN CASE - - 98 WHEN + + 71 * - 7 THEN + + COUNT( - ( + 17 ) ) END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL - 80 - - CASE WHEN ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN + COUNT ( * ) - 35 AND + - 95 + + - 60 THEN NULL WHEN 26 + MIN ( DISTINCT + 57 ) > + + 9 THEN CASE - - 98 WHEN + + 71 * - 7 THEN + + COUNT ( - ( + 17 ) ) END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 26 * + 91
----
2366

query I rowsort
SELECT DISTINCT - 71 * + 86 AS col1
----
-6106

query II rowsort
SELECT 72 AS col0, - 39
----
72
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8847
SELECT DISTINCT - 70 AS col0, - COUNT( * )
----
-70
-1

skipif mysql # not compatible
query II rowsort label-8847
SELECT DISTINCT - 70 AS col0, - COUNT ( * )
----
-70
-1

query I rowsort
SELECT 12 * - 67 * + 60 * - - ( 31 ) AS col1
----
-1495440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8849
SELECT 47 + + + CAST( - 14 AS SIGNED ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8849
SELECT 47 + + + CAST ( - 14 AS INTEGER ) AS col0
----
33

query II rowsort
SELECT DISTINCT 76 col2, + 82 * - 61
----
76
-5002

onlyif mysql # aggregate syntax: 
query II rowsort label-8851
SELECT ALL 81 AS col0, - 7 + - SUM( DISTINCT - 8 ) + + COUNT( * ) AS col1
----
81
2

skipif mysql # not compatible
query II rowsort label-8851
SELECT ALL 81 AS col0, - 7 + - SUM ( DISTINCT - 8 ) + + COUNT ( * ) AS col1
----
81
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8852
SELECT ALL 79 + - + 47 - + - CAST( - + 76 AS SIGNED ) + + 95 + - 83 + - - 20 - - 97 * - 56 * MIN( DISTINCT 9 ) * - - 50 + - MAX( + + 79 ) - COUNT( * ) * - 84 * + 0 AS col0
----
-2444491

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL 79 + - + 47 - + - CAST ( - + 76 AS INTEGER ) + + 95 + - 83 + - - 20 - - 97 * - 56 * MIN ( DISTINCT 9 ) * - - 50 + - MAX ( + + 79 ) - COUNT ( * ) * - 84 * + 0 AS col0
----
-2444491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8853
SELECT ALL 90 DIV + MIN( DISTINCT - + 10 )
----
-9

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL 90 / + MIN ( DISTINCT - + 10 )
----
-9

query I rowsort
SELECT ALL 96 * - - 88 AS col0
----
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT COUNT( * ) * + NULLIF ( + + SUM( - - 25 ), + - 12 * 35 * + ( + - 82 ) * + 13 * - 35 ) col2
----
25

skipif mysql # not compatible
query I rowsort label-8855
SELECT COUNT ( * ) * + NULLIF ( + + SUM ( - - 25 ), + - 12 * 35 * + ( + - 82 ) * + 13 * - 35 ) col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT DISTINCT COUNT( * ) + 48 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT COUNT ( * ) + 48 AS col1
----
49

query I rowsort
SELECT 27 - - 58 AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8858
SELECT COUNT( * ) DIV - 48 * - + 14 col0, + 80 + + - 23 * + + 58 * 60 AS col0
----
0
-79960

skipif mysql # not compatible
query II rowsort label-8858
SELECT COUNT ( * ) / - 48 * - + 14 col0, + 80 + + - 23 * + + 58 * 60 AS col0
----
0
-79960

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT + 45 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-8859
SELECT + 45 + COUNT ( * )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT - CASE - 12 WHEN + 79 THEN CAST( + 10 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT - CASE - 12 WHEN + 79 THEN CAST ( + 10 AS INTEGER ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 28 * - + 18 AS col2
----
-504

query I rowsort
SELECT ALL - + 16 + - 36
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-8863
SELECT ALL 10 AS col0, 43 DIV - 27 AS col0
----
10
-1

skipif mysql # not compatible
query II rowsort label-8863
SELECT ALL 10 AS col0, 43 / - 27 AS col0
----
10
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8864
SELECT 67 * + 44 + + 6 + 16 * + CAST( NULL AS DECIMAL ) * - 22 + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT 67 * + 44 + + 6 + 16 * + CAST ( NULL AS REAL ) * - 22 + - 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8865
SELECT + CASE + + COUNT( * ) WHEN + COUNT( * ) - - - MAX( + 95 ) THEN + COUNT( * ) + 66 * 44 WHEN + + CAST( - 70 AS SIGNED ) * ( - 80 ) * + + NULLIF ( - 46, - 99 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT + CASE + + COUNT ( * ) WHEN + COUNT ( * ) - - - MAX ( + 95 ) THEN + COUNT ( * ) + 66 * 44 WHEN + + CAST ( - 70 AS INTEGER ) * ( - 80 ) * + + NULLIF ( - 46, - 99 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8866
SELECT ALL + COUNT( DISTINCT - 95 ) + COUNT( * ) DIV + ( - 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL + COUNT ( DISTINCT - 95 ) + COUNT ( * ) / + ( - 4 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT ALL + COUNT( * ) col2, - 27 + + - 26 AS col1
----
1
-53

skipif mysql # not compatible
query II rowsort label-8867
SELECT ALL + COUNT ( * ) col2, - 27 + + - 26 AS col1
----
1
-53

query I rowsort
SELECT + CASE 25 WHEN 76 THEN 36 ELSE - 94 END + + 3 * + 40 AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL - 48 * ( + CAST( NULL AS SIGNED ) ) + ( 93 ) + + + ( - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - 48 * ( + CAST ( NULL AS INTEGER ) ) + ( 93 ) + + + ( - 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT - 15 * - - COALESCE ( + 9, - + 52, - MIN( - - 81 ) * - 40 ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT - 15 * - - COALESCE ( + 9, - + 52, - MIN ( - - 81 ) * - 40 ) AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT - COUNT( * ) * - + 94 col0
----
94

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT - COUNT ( * ) * - + 94 col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT DISTINCT - MIN( + 30 ) - - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT - MIN ( + 30 ) - - COUNT ( * )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8873
SELECT ALL CASE + 97 WHEN - 57 * 6 THEN - 58 - + 91 + 32 WHEN 46 * ( + - MAX( ALL - 62 ) ) THEN NULL ELSE - 87 + - + CAST( NULL AS SIGNED ) + - 6 + - 1 + COALESCE ( - MIN( 23 ), - 91 * - 51 + + 0 + - 6 + 86, + - 95 + + 11 / - 73 * + 55 * + 82 ) * COUNT( * ) END * - - 37 / + COUNT( + - 56 ) * - MAX( - - 42 ) - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL CASE + 97 WHEN - 57 * 6 THEN - 58 - + 91 + 32 WHEN 46 * ( + - MAX ( ALL - 62 ) ) THEN NULL ELSE - 87 + - + CAST ( NULL AS INTEGER ) + - 6 + - 1 + COALESCE ( - MIN ( 23 ), - 91 * - 51 + + 0 + - 6 + 86, + - 95 + + 11 / - 73 * + 55 * + 82 ) * COUNT ( * ) END * - - 37 / + COUNT ( + - 56 ) * - MAX ( - - 42 ) - + 94
----
NULL

query II rowsort
SELECT ALL - COALESCE ( - 55, ( - - 4 ) ) AS col2, - 92
----
55
-92

query I rowsort
SELECT 22 * + 27 AS col1
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL - MIN( - ( + + 14 ) )
----
14

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - MIN ( - ( + + 14 ) )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT 2 + + + 46 - 97 DIV + 30 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8877
SELECT 2 + + + 46 - 97 / + 30 AS col2
----
45

query I rowsort
SELECT ALL + 94 * - 60 * + + 1 * + - 66
----
372240

onlyif mysql # DIV for integer division: 
query II rowsort label-8879
SELECT 12 + 95 AS col0, 40 - 73 DIV - 31 AS col2
----
107
42

skipif mysql # not compatible
query II rowsort label-8879
SELECT 12 + 95 AS col0, 40 - 73 / - 31 AS col2
----
107
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT COUNT( * ) * + 97 col2
----
97

skipif mysql # not compatible
query I rowsort label-8880
SELECT COUNT ( * ) * + 97 col2
----
97

query I rowsort
SELECT 18 - 97
----
-79

query I rowsort
SELECT ALL - 22 + + 95 + 34 * 99 col0
----
3439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8883
SELECT 86 * CAST( NULL AS SIGNED ) - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT 86 * CAST ( NULL AS INTEGER ) - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT - 50 * + 70 + COUNT( * ) - - 49 + COUNT( * ) + + 74 * + 57 * + 81 * + COUNT( - 58 ) * 25 + - - 80 * - - ( - ( + 16 ) )
----
8536721

skipif mysql # not compatible
query I rowsort label-8884
SELECT - 50 * + 70 + COUNT ( * ) - - 49 + COUNT ( * ) + + 74 * + 57 * + 81 * + COUNT ( - 58 ) * 25 + - - 80 * - - ( - ( + 16 ) )
----
8536721

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT DISTINCT - COUNT( * ) * + 43
----
-43

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT - COUNT ( * ) * + 43
----
-43

query I rowsort
SELECT ALL 55 + - - 60 * - 64
----
-3785

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL COUNT( DISTINCT - 77 )
----
1

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL COUNT ( DISTINCT - 77 )
----
1

query I rowsort
SELECT 37 + - + 29 AS col0
----
8

query I rowsort
SELECT DISTINCT + 37 + 13 - - 74
----
124

query I rowsort
SELECT 5 + 71 + 45 * - NULLIF ( + 5, 59 )
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - 78 + - 58 + COUNT( * ) col0
----
-135

skipif mysql # not compatible
query I rowsort label-8891
SELECT - 78 + - 58 + COUNT ( * ) col0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT 53 * - - COUNT( * ) + COALESCE ( + + 67, - + 22 - + ( + 45 ), + COUNT( * ) * - 4 ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT 53 * - - COUNT ( * ) + COALESCE ( + + 67, - + 22 - + ( + 45 ), + COUNT ( * ) * - 4 ) AS col0
----
120

query I rowsort
SELECT DISTINCT 22 * - 46 AS col1
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT + 1 * - 99 + 24 + - 28 - - + CASE + COUNT( * ) WHEN + 47 THEN + - 73 + - 28 END * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT + 1 * - 99 + 24 + - 28 - - + CASE + COUNT ( * ) WHEN + 47 THEN + - 73 + - 28 END * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT - 40 + + + COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8895
SELECT - 40 + + + COUNT ( * ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT - NULLIF ( - COUNT( * ), 48 * - 7 + - ( - - 79 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8896
SELECT - NULLIF ( - COUNT ( * ), 48 * - 7 + - ( - - 79 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8897
SELECT + 67 * + - 17 + + 53 * 68 * + ( 34 ) / - 21 + - ( + CASE + COALESCE ( - 63, - 13 ) WHEN - 50 THEN + 79 * 12 * 50 + - 45 WHEN 44 THEN NULL END ) + CAST( COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT + 67 * + - 17 + + 53 * 68 * + ( 34 ) / - 21 + - ( + CASE + COALESCE ( - 63, - 13 ) WHEN - 50 THEN + 79 * 12 * 50 + - 45 WHEN 44 THEN NULL END ) + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 42 + - + 10
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-8899
SELECT ALL MIN( + 21 ) AS col1, COUNT( * ) AS col1
----
21
1

skipif mysql # not compatible
query II rowsort label-8899
SELECT ALL MIN ( + 21 ) AS col1, COUNT ( * ) AS col1
----
21
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8900
SELECT + + CAST( + 99 AS SIGNED ) + COUNT( + ( - 70 ) ) col0
----
100

skipif mysql # not compatible
query I rowsort label-8900
SELECT + + CAST ( + 99 AS INTEGER ) + COUNT ( + ( - 70 ) ) col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT DISTINCT ( - 57 ) AS col0, + COUNT( * ) AS col1
----
-57
1

skipif mysql # not compatible
query II rowsort label-8901
SELECT DISTINCT ( - 57 ) AS col0, + COUNT ( * ) AS col1
----
-57
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8902
SELECT DISTINCT COALESCE ( - 88, + 83 * 6 - - SUM( + 80 ) + - NULLIF ( 40, + 92 DIV - COUNT( * ) * - 49 + - ( CAST( - 7 AS DECIMAL ) ) ), 86 * + + 74 DIV - 34 * 73 * + 9 + - SUM( + + 35 ) * + + 41 + - ( + + 0 ) * - - 58 )
----
-88

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT COALESCE ( - 88, + 83 * 6 - - SUM ( + 80 ) + - NULLIF ( 40, + 92 / - COUNT ( * ) * - 49 + - ( CAST ( - 7 AS REAL ) ) ), 86 * + + 74 / - 34 * 73 * + 9 + - SUM ( + + 35 ) * + + 41 + - ( + + 0 ) * - - 58 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT - 76 * - + 76 * + - 25 + 49 + + CASE - + COUNT( * ) WHEN - CAST( + COALESCE ( 79, CASE + 22 WHEN - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN - COUNT( * ) END ) AS SIGNED ) * - + 27 * + + 61 THEN + + 95 ELSE - 37 END + - NULLIF ( 36, - 33 ) * - NULLIF ( + CAST( + 5 AS SIGNED ), 91 ) * + 40
----
-137188

skipif mysql # not compatible
query I rowsort label-8903
SELECT - 76 * - + 76 * + - 25 + 49 + + CASE - + COUNT ( * ) WHEN - CAST ( + COALESCE ( 79, CASE + 22 WHEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - COUNT ( * ) END ) AS INTEGER ) * - + 27 * + + 61 THEN + + 95 ELSE - 37 END + - NULLIF ( 36, - 33 ) * - NULLIF ( + CAST ( + 5 AS INTEGER ), 91 ) * + 40
----
-137188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8904
SELECT DISTINCT 82 / - - CAST( NULL AS SIGNED ) * 97 * - 45 col0, + 35 AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-8904
SELECT DISTINCT 82 / - - CAST ( NULL AS INTEGER ) * 97 * - 45 col0, + 35 AS col0
----
NULL
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT - 51 DIV - 31
----
1

skipif mysql # not compatible
query I rowsort label-8905
SELECT - 51 / - 31
----
1

query I rowsort
SELECT + 63 * - - 77 AS col1
----
4851

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8907
SELECT 17 / + 7 + 44 + + 86 * + 78 + + CAST( + + 50 AS SIGNED ) * + + ( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT 17 / + 7 + 44 + + 86 * + 78 + + CAST ( + + 50 AS INTEGER ) * + + ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8908
SELECT - 27 * + - 88 * + - COALESCE ( - ( - 73 ), COUNT( * ), + 29 - + + CASE - - 35 WHEN + ( + - CAST( - 82 AS SIGNED ) ) THEN + 29 DIV 29 * - MAX( DISTINCT - 93 ) DIV + 59 + - + 75 + ( - 17 ) * + 80 * + ( - 82 ) ELSE NULL END + - - 47 * - - 72 * - - 13 ) AS col2
----
-173448

skipif mysql # not compatible
query I rowsort label-8908
SELECT - 27 * + - 88 * + - COALESCE ( - ( - 73 ), COUNT ( * ), + 29 - + + CASE - - 35 WHEN + ( + - CAST ( - 82 AS INTEGER ) ) THEN + 29 / 29 * - MAX ( DISTINCT - 93 ) / + 59 + - + 75 + ( - 17 ) * + 80 * + ( - 82 ) ELSE NULL END + - - 47 * - - 72 * - - 13 ) AS col2
----
-173448

query I rowsort
SELECT + CASE + 24 WHEN - 26 THEN + - 28 / - 89 * - 20 WHEN - 30 THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT - 45 + - COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-8910
SELECT - 45 + - COUNT ( * ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + NULLIF ( + CASE - 83 WHEN - - 8 + + + 97 + - - 45 THEN NULL WHEN + 68 + - 70 * - + MAX( ALL + - 68 ) THEN + 29 END, + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT + NULLIF ( + CASE - 83 WHEN - - 8 + + + 97 + - - 45 THEN NULL WHEN + 68 + - 70 * - + MAX ( ALL + - 68 ) THEN + 29 END, + 90 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8912
SELECT 90 * MIN( ALL + ( - + CAST( 39 AS SIGNED ) ) ) * - + CAST( NULL AS SIGNED ) * + 84 * + + 0 * - - 26 + - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT 90 * MIN ( ALL + ( - + CAST ( 39 AS INTEGER ) ) ) * - + CAST ( NULL AS INTEGER ) * + 84 * + + 0 * - - 26 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 9 + - 97 * - 77
----
7460

query I rowsort
SELECT DISTINCT - 48 * + 60 + COALESCE ( + 67, - + ( + 90 ) - 18 + + 66 + 10 )
----
-2813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT + 73 * - - 13 * - - SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT + 73 * - - 13 * - - SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL + ( + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL + ( + COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8917
SELECT - COUNT( * ) DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-8917
SELECT - COUNT ( * ) / - 30
----
0

query I rowsort
SELECT - ( + - 29 ) + 17
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT DISTINCT 83 * + 7 * - 54 + + 45 + - COUNT( * ) * + 8 AS col2
----
-31337

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT 83 * + 7 * - 54 + + 45 + - COUNT ( * ) * + 8 AS col2
----
-31337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8920
SELECT ALL COUNT( * ) AS col2, ( CAST( - - 74 AS SIGNED ) ) AS col2
----
1
74

skipif mysql # not compatible
query II rowsort label-8920
SELECT ALL COUNT ( * ) AS col2, ( CAST ( - - 74 AS INTEGER ) ) AS col2
----
1
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL + - 37 + CAST( NULL AS SIGNED ) * + NULLIF ( - - 21, - 99 ) * 41 * 62 + + 69 * + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + - 37 + CAST ( NULL AS INTEGER ) * + NULLIF ( - - 21, - 99 ) * 41 * 62 + + 69 * + 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT - - COUNT( * ) * - 41 * + + 97 AS col0
----
-3977

skipif mysql # not compatible
query I rowsort label-8922
SELECT - - COUNT ( * ) * - 41 * + + 97 AS col0
----
-3977

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT - - 95 * - - MAX( DISTINCT - 93 ) AS col2
----
-8835

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - - 95 * - - MAX ( DISTINCT - 93 ) AS col2
----
-8835

query I rowsort
SELECT ALL - 73 - 64
----
-137

query I rowsort
SELECT - 16 - - 49 AS col1
----
33

query I rowsort
SELECT - 43 + - 62 - - 47 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT - SUM( ALL + + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8927
SELECT - SUM ( ALL + + 44 ) AS col0
----
-44

query I rowsort
SELECT + + 96 + + - 94
----
2

query I rowsort
SELECT DISTINCT ( + + 66 )
----
66

query II rowsort
SELECT ALL COALESCE ( + 81, + 30 ), - 17 AS col1
----
81
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8931
SELECT ALL 32 * + - 85 + AVG ( ALL - - 62 ) + COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL 32 * + - 85 + AVG ( ALL - - 62 ) + COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 1 * - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL + + COUNT( * ) * + ( + 35 ) + SUM( DISTINCT + 88 ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + + COUNT ( * ) * + ( + 35 ) + SUM ( DISTINCT + 88 ) AS col0
----
123

query I rowsort
SELECT ALL 41 * - 91 AS col2
----
-3731

query I rowsort
SELECT DISTINCT + 38 * COALESCE ( + 67, - - 59 * - 64, - 83, - 69 )
----
2546

query I rowsort
SELECT ALL ( - 37 ) * - 67
----
2479

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8937
SELECT + 4 - COALESCE ( + 92, - CASE + 81 WHEN - 35 * + - 41 * - 35 + 59 + ( + 52 ) * - COUNT( * ) * 93 DIV - 82 * - 61 DIV 31 * - - 76 THEN + COUNT( ALL 74 ) DIV 72 WHEN + 16 THEN + 8 + 51 ELSE NULL END * - + 65 * + 94, - - 74, - + ( + ( 36 ) ) DIV 11 * + 69 + - SUM( + 31 ) ) + - - 50, COUNT( * ) AS col0
----
-38
1

skipif mysql # not compatible
query II rowsort label-8937
SELECT + 4 - COALESCE ( + 92, - CASE + 81 WHEN - 35 * + - 41 * - 35 + 59 + ( + 52 ) * - COUNT ( * ) * 93 / - 82 * - 61 / 31 * - - 76 THEN + COUNT ( ALL 74 ) / 72 WHEN + 16 THEN + 8 + 51 ELSE NULL END * - + 65 * + 94, - - 74, - + ( + ( 36 ) ) / 11 * + 69 + - SUM ( + 31 ) ) + - - 50, COUNT ( * ) AS col0
----
-38
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT DISTINCT + 31 / + 79 + - + COUNT( + + 76 ) + CAST( - 92 AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT + 31 / + 79 + - + COUNT ( + + 76 ) + CAST ( - 92 AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - + 23 ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8940
SELECT CAST( + 74 AS SIGNED ), - 82 AS col0
----
74
-82

skipif mysql # not compatible
query II rowsort label-8940
SELECT CAST ( + 74 AS INTEGER ), - 82 AS col0
----
74
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT + CAST( - + ( 85 ) AS SIGNED ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-8941
SELECT + CAST ( - + ( 85 ) AS INTEGER ) col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT ALL + 70 DIV 77 + - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + 70 / 77 + - - COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8943
SELECT + 62 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-8943
SELECT + 62 / - + 84
----
0

query I rowsort
SELECT 23 * 30 * - 89 * + 27 + 96 col1
----
-1657974

query I rowsort
SELECT + 79 * - - ( - 87 ) AS col1
----
-6873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8946
SELECT ( + + CASE + 83 WHEN + 34 * ( 83 ) - 6 - + - 93 + + COUNT( * ) + COUNT( 69 ) + + 98 / COUNT( * ) * COUNT( * ) + - CAST( + NULLIF ( - CASE 20 WHEN - 67 + CAST( NULL AS SIGNED ) + AVG ( DISTINCT + - 26 ) * - 14 + + NULLIF ( 19, + 39 + + CAST( NULL AS SIGNED ) ) * + - CASE + 82 WHEN - 30 THEN NULL ELSE MIN( ALL + 66 ) / + 53 * + 45 + + 3 * + 58 END THEN NULL ELSE 64 END, 83 ) AS DECIMAL ) THEN 83 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT ( + + CASE + 83 WHEN + 34 * ( 83 ) - 6 - + - 93 + + COUNT ( * ) + COUNT ( 69 ) + + 98 / COUNT ( * ) * COUNT ( * ) + - CAST ( + NULLIF ( - CASE 20 WHEN - 67 + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + - 26 ) * - 14 + + NULLIF ( 19, + 39 + + CAST ( NULL AS INTEGER ) ) * + - CASE + 82 WHEN - 30 THEN NULL ELSE MIN ( ALL + 66 ) / + 53 * + 45 + + 3 * + 58 END THEN NULL ELSE 64 END, 83 ) AS REAL ) THEN 83 ELSE NULL END )
----
NULL

query I rowsort
SELECT + 26 + - 83 + - ( + 53 ) * + 83 AS col1
----
-4456

query II rowsort
SELECT + 32 AS col1, + 13 - + 82 + + ( + 13 ) AS col1
----
32
-56

query I rowsort
SELECT ( + + 36 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT ( + + 88 ) AS col2, COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-8950
SELECT ( + + 88 ) AS col2, COUNT ( * )
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL 93 * + 19 - + COUNT( * ) + + 31 * + - MIN( + - 28 ) - + COUNT( * ) + - 75
----
2558

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL 93 * + 19 - + COUNT ( * ) + + 31 * + - MIN ( + - 28 ) - + COUNT ( * ) + - 75
----
2558

query I rowsort
SELECT ALL + - ( + COALESCE ( + 16, - - 21 ) ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT - 0 + - + 43 DIV - 12 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8953
SELECT - 0 + - + 43 / - 12 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8954
SELECT 21 * - 9 * 99 + CASE + 25 WHEN + 2 / 35 - - 81 THEN - 14 ELSE ( - 56 ) - COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( * ) * - 59 + - - 47 * - 68 * - 2 * + - 84 ) END * + 56 + - ( + - 9 ) + - 56 col1
----
30049378

skipif mysql # not compatible
query I rowsort label-8954
SELECT 21 * - 9 * 99 + CASE + 25 WHEN + 2 / 35 - - 81 THEN - 14 ELSE ( - 56 ) - COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) * - 59 + - - 47 * - 68 * - 2 * + - 84 ) END * + 56 + - ( + - 9 ) + - 56 col1
----
30049378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT + CAST( NULL AS SIGNED ) * - 26 + - - 68 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT + CAST ( NULL AS INTEGER ) * - 26 + - - 68 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL - - COALESCE ( - 28, + COALESCE ( 51, - 9 ) ) * + MIN( - 4 )
----
112

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - - COALESCE ( - 28, + COALESCE ( 51, - 9 ) ) * + MIN ( - 4 )
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT + ( + + 9 ) DIV - 8 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8957
SELECT + ( + + 9 ) / - 8 AS col0
----
-1

query II rowsort
SELECT DISTINCT + 50, 70 + - - 53 * - 87 * + 30 * - 91 + + 60 AS col0
----
50
12588160

onlyif mysql # aggregate syntax: 
query II rowsort label-8959
SELECT + 63 + 59 col2, COUNT( - + 26 )
----
122
1

skipif mysql # not compatible
query II rowsort label-8959
SELECT + 63 + 59 col2, COUNT ( - + 26 )
----
122
1

query I rowsort
SELECT ALL + 70 * - NULLIF ( + ( + 32 ), - 24 ) col1
----
-2240

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT - + 68 col1, 37 - + - ( 57 ) - SUM( DISTINCT - 51 ) + + - 22 * 74 AS col0
----
-68
-1483

skipif mysql # not compatible
query II rowsort label-8961
SELECT - + 68 col1, 37 - + - ( 57 ) - SUM ( DISTINCT - 51 ) + + - 22 * 74 AS col0
----
-68
-1483

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL - - 25 * - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL - - 25 * - COUNT ( * ) AS col1
----
-25

query I rowsort
SELECT DISTINCT + CASE 80 WHEN 53 THEN NULL ELSE - 55 * + 87 END
----
-4785

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT ALL + - 13 * + MAX( DISTINCT + 44 )
----
-572

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + - 13 * + MAX ( DISTINCT + 44 )
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT + COUNT( * ) + + 60 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8965
SELECT + COUNT ( * ) + + 60 AS col1
----
61

query I rowsort
SELECT 93 + 86
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT MIN( + - ( + COALESCE ( 83, 43 * - 97 - 68 + 89 ) ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-8967
SELECT MIN ( + - ( + COALESCE ( 83, 43 * - 97 - 68 + 89 ) ) ) AS col0
----
-83

query I rowsort
SELECT DISTINCT - + 0 + - 5
----
-5

query I rowsort
SELECT ALL + 90 + + ( + 84 )
----
174

query I rowsort
SELECT ALL - ( - - 3 ) + + + ( + 73 ) + - 16 + + 24 + 79 * + 83
----
6635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT - COUNT( * ) / - COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT - COUNT ( * ) / - COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - ( + MAX( 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - ( + MAX ( 49 ) )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8973
SELECT 27 * - COUNT( * ) AS col0, COUNT( ALL + 42 ) AS col1
----
-27
1

skipif mysql # not compatible
query II rowsort label-8973
SELECT 27 * - COUNT ( * ) AS col0, COUNT ( ALL + 42 ) AS col1
----
-27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT 63 + - + ( + + 52 ) * - 96 * - - ( + 18 ) + - 64 - - COUNT( * ) * - ( + 22 ) + 95 * + - 47 * 59
----
-173602

skipif mysql # not compatible
query I rowsort label-8974
SELECT 63 + - + ( + + 52 ) * - 96 * - - ( + 18 ) + - 64 - - COUNT ( * ) * - ( + 22 ) + 95 * + - 47 * 59
----
-173602

query II rowsort
SELECT DISTINCT 79 * + 20 AS col1, 98 AS col0
----
1580
98

query I rowsort
SELECT ALL 38 - - 39
----
77

query I rowsort
SELECT ALL 14 - - 91 AS col0
----
105

query I rowsort
SELECT 53 * 93 * + 4
----
19716

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT - COUNT( * ) * - + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT - COUNT ( * ) * - + 94 AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8980
SELECT ALL 66 DIV COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL 66 / COUNT ( * )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8981
SELECT ALL 78 - - + CAST( + CASE 89 WHEN - CAST( COUNT( * ) AS DECIMAL ) THEN - + 41 + 56 * 8 - + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) + 65 * - 22 * - 55 WHEN 69 + 32 + - ( + + AVG ( + ( 51 ) ) ) THEN - 4 ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL 78 - - + CAST ( + CASE 89 WHEN - CAST ( COUNT ( * ) AS REAL ) THEN - + 41 + 56 * 8 - + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + 65 * - 22 * - 55 WHEN 69 + 32 + - ( + + AVG ( + ( 51 ) ) ) THEN - 4 ELSE NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT COUNT( * ) - - 94 + + + 22 + 0 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT COUNT ( * ) - - 94 + + + 22 + 0 AS col2
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT ALL + 56 DIV - + 19 - + 28 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + 56 / - + 19 - + 28 AS col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT + 81 + - 37 + + 24 * 10 DIV + 90 + 76 * + 59 * + ( - 69 ) * + 90 AS col1
----
-27845594

skipif mysql # not compatible
query I rowsort label-8984
SELECT + 81 + - 37 + + 24 * 10 / + 90 + 76 * + 59 * + ( - 69 ) * + 90 AS col1
----
-27845594

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - 20 * + - COUNT( * ) + - 63 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8985
SELECT - 20 * + - COUNT ( * ) + - 63 AS col0
----
-43

query I rowsort
SELECT DISTINCT - 32 * - 34 AS col1
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL + 21 * + COUNT( * ) * - + COUNT( + 0 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL + 21 * + COUNT ( * ) * - + COUNT ( + 0 ) AS col2
----
-21

query I rowsort
SELECT DISTINCT ( - ( + 32 ) )
----
-32

query II rowsort
SELECT DISTINCT 35 * - 0 + + 20, 32 AS col2
----
20
32

query I rowsort
SELECT + 14 - + - 20 * 80
----
1614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT 77 + - 73 * - NULLIF ( 77, + CAST( - 93 AS SIGNED ) )
----
5698

skipif mysql # not compatible
query I rowsort label-8991
SELECT 77 + - 73 * - NULLIF ( 77, + CAST ( - 93 AS INTEGER ) )
----
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT 21 * + SUM( DISTINCT 16 ) AS col1
----
336

skipif mysql # not compatible
query I rowsort label-8992
SELECT 21 * + SUM ( DISTINCT 16 ) AS col1
----
336

query I rowsort
SELECT ALL + 95 + - 72
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT DISTINCT ( - MIN( - 4 ) ) + - 90 DIV COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT ( - MIN ( - 4 ) ) + - 90 / COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL + 31 * - COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL + 31 * - COUNT ( * ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8996
SELECT 19 AS col2, - 66 * - COUNT( * ) AS col2
----
19
66

skipif mysql # not compatible
query II rowsort label-8996
SELECT 19 AS col2, - 66 * - COUNT ( * ) AS col2
----
19
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT 41 + 33 + 43, ( - ( SUM( DISTINCT - + 67 ) ) ) * - 56 * - 67 AS col2
----
117
251384

skipif mysql # not compatible
query II rowsort label-8997
SELECT 41 + 33 + 43, ( - ( SUM ( DISTINCT - + 67 ) ) ) * - 56 * - 67 AS col2
----
117
251384

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL - COUNT( * ) + - ( 45 ) - 36 * + 54 * - 89 + + 58 + + ( - + COUNT( * ) )
----
173027

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - COUNT ( * ) + - ( 45 ) - 36 * + 54 * - 89 + + 58 + + ( - + COUNT ( * ) )
----
173027

query I rowsort
SELECT DISTINCT + 50 * 84 * - ( 22 )
----
-92400

query I rowsort
SELECT 56 * 60 AS col2
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL COUNT( - - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL COUNT ( - - 56 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT NULLIF ( + + 58, - 43 + - 54 * COALESCE ( + 49, - + 3 ) * + + CAST( - - CASE COUNT( * ) WHEN + 20 THEN - 1 + 48 * - - ( + 82 ) - 58 - + 39 ELSE + 2 END AS SIGNED ) + - 44 + 99 + + 45 * - + AVG ( - 62 ) * + - 1 + - + 36 * - ( - 89 ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9002
SELECT NULLIF ( + + 58, - 43 + - 54 * COALESCE ( + 49, - + 3 ) * + + CAST ( - - CASE COUNT ( * ) WHEN + 20 THEN - 1 + 48 * - - ( + 82 ) - 58 - + 39 ELSE + 2 END AS INTEGER ) + - 44 + 99 + + 45 * - + AVG ( - 62 ) * + - 1 + - + 36 * - ( - 89 ) ) AS col1
----
58

query I rowsort
SELECT ALL 28 * - 42 - - COALESCE ( + - 6, + + 88, + - 86 * + + 17 )
----
-1182

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT 56 * - MIN( - 29 ) * - - 21
----
34104

skipif mysql # not compatible
query I rowsort label-9004
SELECT 56 * - MIN ( - 29 ) * - - 21
----
34104

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL - MAX( ALL 96 ) * + 18 - - 16 AS col1
----
-1712

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL - MAX ( ALL 96 ) * + 18 - - 16 AS col1
----
-1712

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9006
SELECT ALL - 36 AS col0, + CAST( + 21 AS SIGNED )
----
-36
21

skipif mysql # not compatible
query II rowsort label-9006
SELECT ALL - 36 AS col0, + CAST ( + 21 AS INTEGER )
----
-36
21

query I rowsort
SELECT DISTINCT 25 * + 50 * + 14
----
17500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9008
SELECT COUNT( 54 ) * + + CAST( + COUNT( * ) AS SIGNED ) + - + 28 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9008
SELECT COUNT ( 54 ) * + + CAST ( + COUNT ( * ) AS INTEGER ) + - + 28 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT + 95 DIV - 6 + + 14 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9009
SELECT + 95 / - 6 + + 14 AS col1
----
-1

query II rowsort
SELECT + 63, 34 - 53 * + 22 AS col1
----
63
-1132

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - 95 + MAX( ALL - 11 ) AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-9011
SELECT - 95 + MAX ( ALL - 11 ) AS col0
----
-106

query II rowsort
SELECT + 13 col1, 23 + 52
----
13
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9013
SELECT - COUNT( * ) DIV - + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT - COUNT ( * ) / - + 80 AS col0
----
0

query I rowsort
SELECT + 18 + + 57 AS col0
----
75

query I rowsort
SELECT + - 22 * - 67 + + + 30 AS col2
----
1504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT ALL ( + - 17 ) + - + CAST( + 65 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL ( + - 17 ) + - + CAST ( + 65 AS INTEGER )
----
-82

query I rowsort
SELECT + + 64 + - - 26
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT COUNT( * ) + - + 2 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT COUNT ( * ) + - + 2 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL + 9 + - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + 9 + - - COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT 3 * + - 55 * + 93 * + 95 * 85 + - 14 + - - 2 + - 28 * 24 * - COUNT( * ) AS col2
----
-123910215

skipif mysql # not compatible
query I rowsort label-9020
SELECT 3 * + - 55 * + 93 * + 95 * 85 + - 14 + - - 2 + - 28 * 24 * - COUNT ( * ) AS col2
----
-123910215

onlyif mysql # DIV for integer division: 
query I rowsort label-9021
SELECT + 25 DIV - 41 + - 85 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9021
SELECT + 25 / - 41 + - 85 AS col1
----
-85

query I rowsort
SELECT ALL 64 + - - 21
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT + COUNT( - + 18 ) * 62 * - - 69
----
4278

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT + COUNT ( - + 18 ) * 62 * - - 69
----
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL 8 + - 99 * 39 * + 1 - + MAX( ALL + + 13 ) * + + NULLIF ( + NULLIF ( - COUNT( * ), + 73 + - + MIN( 33 ) * + SUM( - - 25 ) * + 9 + - + 29 + - COUNT( * ) ), - 94 ) AS col0
----
-3840

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL 8 + - 99 * 39 * + 1 - + MAX ( ALL + + 13 ) * + + NULLIF ( + NULLIF ( - COUNT ( * ), + 73 + - + MIN ( 33 ) * + SUM ( - - 25 ) * + 9 + - + 29 + - COUNT ( * ) ), - 94 ) AS col0
----
-3840

query I rowsort
SELECT ALL + 26 * 50
----
1300

query I rowsort
SELECT + 50 + + - 42 AS col1
----
8

query I rowsort
SELECT - 56 - - - 3 AS col1
----
-59

query I rowsort
SELECT DISTINCT 62 - + + 88 * + 24
----
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + 27 + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9029
SELECT + 27 + + COUNT ( * )
----
28

query I rowsort
SELECT ALL + 28 - 65 - - 86 AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9031
SELECT DISTINCT + 19 DIV + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + 19 / + - COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + SUM( + 99 ) * - 28 + - 86 + 15
----
-2843

skipif mysql # not compatible
query I rowsort label-9032
SELECT + SUM ( + 99 ) * - 28 + - 86 + 15
----
-2843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT ALL CAST( NULL AS SIGNED ) / 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL CAST ( NULL AS INTEGER ) / 76 AS col2
----
NULL

query I rowsort
SELECT ALL + ( - + 4 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT ALL + 1 * 56 DIV + + 90
----
0

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL + 1 * 56 / + + 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT + 29 DIV + 57 + + 60 + - + 42 * + + 85
----
-3510

skipif mysql # not compatible
query I rowsort label-9036
SELECT + 29 / + 57 + + 60 + - + 42 * + + 85
----
-3510

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT ( + 62 ), COUNT( * ) AS col0
----
62
1

skipif mysql # not compatible
query II rowsort label-9037
SELECT ( + 62 ), COUNT ( * ) AS col0
----
62
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9038
SELECT - 1 DIV 46 col1, + 4 DIV - CASE 14 WHEN - 8 * + CAST( + 64 AS SIGNED ) + + - ( - 86 ) * - 72 THEN + 84 * + 86 + + 72 + - 66 ELSE NULL END DIV - COUNT( * ) + - 87 + - 61
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9038
SELECT - 1 / 46 col1, + 4 / - CASE 14 WHEN - 8 * + CAST ( + 64 AS INTEGER ) + + - ( - 86 ) * - 72 THEN + 84 * + 86 + + 72 + - 66 ELSE NULL END / - COUNT ( * ) + - 87 + - 61
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT - ( - MAX( DISTINCT + + 47 ) ) * CASE + 11 WHEN + COALESCE ( 60, 27 * COUNT( DISTINCT 34 ) / 77 + - 89 ) THEN - 62 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT - ( - MAX ( DISTINCT + + 47 ) ) * CASE + 11 WHEN + COALESCE ( 60, 27 * COUNT ( DISTINCT 34 ) / 77 + - 89 ) THEN - 62 END AS col2
----
NULL

query I rowsort
SELECT - 93 * - 3 AS col1
----
279

query I rowsort
SELECT DISTINCT + - 67 AS col1
----
-67

query I rowsort
SELECT DISTINCT + + NULLIF ( - 15, 53 ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9043
SELECT DISTINCT - - NULLIF ( - 86, 68 ) * + + COUNT( * ) + ( - - 31 ) + - - 60 + + 67 - 80 + CAST( NULL AS SIGNED ) + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT - - NULLIF ( - 86, 68 ) * + + COUNT ( * ) + ( - - 31 ) + - - 60 + + 67 - 80 + CAST ( NULL AS INTEGER ) + - 95 AS col0
----
NULL

query I rowsort
SELECT - - 93 * - 8 + + 86
----
-658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT DISTINCT - ( 53 ) * - + 53 + 62 + CASE + 11 WHEN - 37 THEN NULL WHEN CASE 88 WHEN + + 37 THEN ( + - 16 ) * + ( - COALESCE ( ( - 69 ), 39 ) ) / + - 67 - - + 6 + + CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) + CAST( NULL AS SIGNED ) / + COUNT( * ) * - 54 THEN NULL ELSE - + CASE - COUNT( * ) WHEN 95 THEN NULL WHEN + + 55 * - COUNT( * ) + CASE WHEN NOT COUNT( * ) <> - CAST( - 80 AS SIGNED ) THEN NULL ELSE ( - + CAST( NULL AS SIGNED ) ) END * + NULLIF ( + 25, 37 / + 59 / - ( + - COUNT( * ) ) ) * 31 + - + ( 64 ) * - 74 THEN + 55 WHEN - 78 THEN COUNT( * ) WHEN 14 * - 41 THEN 73 / - ( 21 ) ELSE NULL END * CAST( ( COALESCE ( + 74, 1 ) ) AS SIGNED ) END + - 53 THEN - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT - ( 53 ) * - + 53 + 62 + CASE + 11 WHEN - 37 THEN NULL WHEN CASE 88 WHEN + + 37 THEN ( + - 16 ) * + ( - COALESCE ( ( - 69 ), 39 ) ) / + - 67 - - + 6 + + CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) + CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 54 THEN NULL ELSE - + CASE - COUNT ( * ) WHEN 95 THEN NULL WHEN + + 55 * - COUNT ( * ) + CASE WHEN NOT COUNT ( * ) <> - CAST ( - 80 AS INTEGER ) THEN NULL ELSE ( - + CAST ( NULL AS INTEGER ) ) END * + NULLIF ( + 25, 37 / + 59 / - ( + - COUNT ( * ) ) ) * 31 + - + ( 64 ) * - 74 THEN + 55 WHEN - 78 THEN COUNT ( * ) WHEN 14 * - 41 THEN 73 / - ( 21 ) ELSE NULL END * CAST ( ( COALESCE ( + 74, 1 ) ) AS INTEGER ) END + - 53 THEN - 2 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL - 96 * + 71 + + CASE + 55 WHEN 3 THEN - 19 END - + - 19 * 5 * COUNT( * ) * 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - 96 * + 71 + + CASE + 55 WHEN 3 THEN - 19 END - + - 19 * 5 * COUNT ( * ) * 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - CASE 41 WHEN 98 THEN + ( 57 ) + - 25 ELSE + + 0 * 14 * - 58 - 56 END * 37 + + COUNT( * )
----
2073

skipif mysql # not compatible
query I rowsort label-9047
SELECT - CASE 41 WHEN 98 THEN + ( 57 ) + - 25 ELSE + + 0 * 14 * - 58 - 56 END * 37 + + COUNT ( * )
----
2073

query I rowsort
SELECT + 65 * - 42 col1
----
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL + + 6 * - 66 * ( - COUNT( * ) ) + + 31 - + - 26 AS col0
----
453

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL + + 6 * - 66 * ( - COUNT ( * ) ) + + 31 - + - 26 AS col0
----
453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT ALL - 10 * + 3 + CAST( NULL AS SIGNED ) + - CASE - 91 WHEN + NULLIF ( 66, + - 72 * 13 ) THEN + + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL - 10 * + 3 + CAST ( NULL AS INTEGER ) + - CASE - 91 WHEN + NULLIF ( 66, + - 72 * 13 ) THEN + + 48 END
----
NULL

query I rowsort
SELECT + NULLIF ( + 55, + 85 * + 80 * - - 58 )
----
55

query I rowsort
SELECT DISTINCT - - 1 * 40 + - - 68 * 29 * + - ( - 52 ) + - - 32 AS col1
----
102616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT DISTINCT - - CASE - 85 WHEN + CAST( 69 AS SIGNED ) THEN - 90 ELSE 10 + - 9 * - + CASE - + 7 WHEN + - 43 THEN - 66 END END * + COUNT( * ) * - 13 + + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT - - CASE - 85 WHEN + CAST ( 69 AS INTEGER ) THEN - 90 ELSE 10 + - 9 * - + CASE - + 7 WHEN + - 43 THEN - 66 END END * + COUNT ( * ) * - 13 + + 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT DISTINCT COUNT( - 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT COUNT ( - 2 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT ALL 98 DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL 98 / 81
----
1

query I rowsort
SELECT + 68 * 5 AS col0
----
340

query I rowsort
SELECT - 33 + - 92
----
-125

query I rowsort
SELECT - 10 + 86
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9059
SELECT + 15 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT + 15 / - 87
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9060
SELECT ALL 21 DIV COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL 21 / COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + 27 * + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9061
SELECT + 27 * + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT + 33 + - + 41 col1
----
-8

query I rowsort
SELECT - ( 61 ) AS col1
----
-61

query I rowsort
SELECT ALL 15 * - 61
----
-915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT DISTINCT COALESCE ( COUNT( * ), - + 79 DIV - 42, - 24 + 89 + - - 78 + - ( - + 75 ) DIV 92 DIV 9 ) - + 87
----
-86

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT COALESCE ( COUNT ( * ), - + 79 / - 42, - 24 + 89 + - - 78 + - ( - + 75 ) / 92 / 9 ) - + 87
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT 50 * COALESCE ( - 70, 58 * - 30 + - 99 * - 31 + + 41, 64 * 24 + - COUNT( * ) + - - 8 )
----
-3500

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT 50 * COALESCE ( - 70, 58 * - 30 + - 99 * - 31 + + 41, 64 * 24 + - COUNT ( * ) + - - 8 )
----
-3500

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL 61 * + 4 * + MAX( 81 ) AS col0
----
19764

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL 61 * + 4 * + MAX ( 81 ) AS col0
----
19764

query I rowsort
SELECT 52 - 75 AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT CAST( 36 AS SIGNED ) * 81 * 39
----
113724

skipif mysql # not compatible
query I rowsort label-9069
SELECT CAST ( 36 AS INTEGER ) * 81 * 39
----
113724

query II rowsort
SELECT - 83 AS col1, - 87
----
-83
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL - COALESCE ( + COUNT( * ), - - 32 + + 79, 74 * - + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL - COALESCE ( + COUNT ( * ), - - 32 + + 79, 74 * - + 26 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9072
SELECT CAST( + 15 AS SIGNED ) DIV + 77 + + 44 * 60 + + 92
----
2732

skipif mysql # not compatible
query I rowsort label-9072
SELECT CAST ( + 15 AS INTEGER ) / + 77 + + 44 * 60 + + 92
----
2732

query I rowsort
SELECT ALL - 3 + + ( 60 ) * + - 24 AS col2
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT ALL MIN( ALL + COALESCE ( + 7, 94 + 28 ) ) + - 99
----
-92

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL MIN ( ALL + COALESCE ( + 7, 94 + 28 ) ) + - 99
----
-92

query I rowsort
SELECT NULLIF ( + 20, - + 58 + + + ( - 44 ) ) - - 99 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT 37 + - - 69 * - ( + + 73 ) * 96 + + 47 + + 66 + COUNT( + + ( - - 47 ) ) AS col2
----
-483401

skipif mysql # not compatible
query I rowsort label-9076
SELECT 37 + - - 69 * - ( + + 73 ) * 96 + + 47 + + 66 + COUNT ( + + ( - - 47 ) ) AS col2
----
-483401

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT COUNT( DISTINCT - + 5 ) + - 49
----
-48

skipif mysql # not compatible
query I rowsort label-9077
SELECT COUNT ( DISTINCT - + 5 ) + - 49
----
-48

query I rowsort
SELECT ALL - 1 + ( + + 51 ) * - - 67 * + 22
----
75173

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - 95 * + COUNT( * ) + - NULLIF ( - - 87, + - 67 )
----
-182

skipif mysql # not compatible
query I rowsort label-9079
SELECT - 95 * + COUNT ( * ) + - NULLIF ( - - 87, + - 67 )
----
-182

query I rowsort
SELECT 52 + - 66 + + - 62 AS col1
----
-76

query I rowsort
SELECT - 57 + + - 72
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - - NULLIF ( + COUNT( * ), - 49 * + 39 * - 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9082
SELECT - - NULLIF ( + COUNT ( * ), - 49 * + 39 * - 92 ) AS col1
----
1

query I rowsort
SELECT 66 + + - 83 + 80 * + 84 * 22
----
147823

query I rowsort
SELECT DISTINCT + 18 * ( 71 )
----
1278

query II rowsort
SELECT 24, 2 AS col0
----
24
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9086
SELECT ( - COUNT( * ) ) * - - CASE + 49 WHEN - 15 * - COALESCE ( + 35, - + 24 + + 42 ) THEN - - 37 DIV + 7 - - + SUM( + 32 ) WHEN - 14 THEN - 10 + ( 21 ) + + + ( + 39 ) WHEN - COUNT( * ) THEN NULL ELSE - 3 + - 23 * + ( + 90 ) + - + COUNT( - 83 ) + + - MAX( - ( 66 ) ) + 4 DIV + - 11 + - 99 * + CAST( - 25 AS SIGNED ) * - + 25 END DIV + 33 + + 66 + + 62
----
2063

skipif mysql # not compatible
query I rowsort label-9086
SELECT ( - COUNT ( * ) ) * - - CASE + 49 WHEN - 15 * - COALESCE ( + 35, - + 24 + + 42 ) THEN - - 37 / + 7 - - + SUM ( + 32 ) WHEN - 14 THEN - 10 + ( 21 ) + + + ( + 39 ) WHEN - COUNT ( * ) THEN NULL ELSE - 3 + - 23 * + ( + 90 ) + - + COUNT ( - 83 ) + + - MAX ( - ( 66 ) ) + 4 / + - 11 + - 99 * + CAST ( - 25 AS INTEGER ) * - + 25 END / + 33 + + 66 + + 62
----
2063

query II rowsort
SELECT ALL 57, 7 AS col1
----
57
7

query I rowsort
SELECT 72 * - 89
----
-6408

query II rowsort
SELECT - 70 AS col1, + 81
----
-70
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9090
SELECT 52 + + + MIN( ALL + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT 52 + + + MIN ( ALL + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT - 23 AS col1, - COUNT( * )
----
-23
-1

skipif mysql # not compatible
query II rowsort label-9091
SELECT - 23 AS col1, - COUNT ( * )
----
-23
-1

query I rowsort
SELECT 62 + - + 14
----
48

query I rowsort
SELECT 97 - - + 15 AS col0
----
112

query II rowsort
SELECT 80 AS col1, + 96 * 43 * - 14 AS col2
----
80
-57792

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT 10 + - 48 * - NULLIF ( - 15, + 69 * - 15 / + 9 + COUNT( + ( - 12 ) ) + + 2 + 28 / + 24 ) AS col1
----
-710

skipif mysql # not compatible
query I rowsort label-9095
SELECT 10 + - 48 * - NULLIF ( - 15, + 69 * - 15 / + 9 + COUNT ( + ( - 12 ) ) + + 2 + 28 / + 24 ) AS col1
----
-710

query I rowsort
SELECT 87 + 67
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT 61 col1, + COUNT( * )
----
61
1

skipif mysql # not compatible
query II rowsort label-9097
SELECT 61 col1, + COUNT ( * )
----
61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ( + + 6 ) + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9098
SELECT ( + + 6 ) + COUNT ( * ) AS col2
----
7

query I rowsort
SELECT DISTINCT - 15 * + 73
----
-1095

query I rowsort
SELECT ALL + 95 * - 34 + - - 98
----
-3132

query II rowsort
SELECT DISTINCT - + 90 AS col2, 50 * + - 9
----
-90
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT CAST( NULL AS SIGNED ) + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT CAST ( NULL AS INTEGER ) + - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9103
SELECT DISTINCT - - 13 AS col2, + MAX( ALL - 62 ) + CAST( 57 AS SIGNED )
----
13
-5

skipif mysql # not compatible
query II rowsort label-9103
SELECT DISTINCT - - 13 AS col2, + MAX ( ALL - 62 ) + CAST ( 57 AS INTEGER )
----
13
-5

query I rowsort
SELECT DISTINCT + 52 + 59
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT SUM( DISTINCT - 55 ), - 93 AS col0
----
-55
-93

skipif mysql # not compatible
query II rowsort label-9105
SELECT SUM ( DISTINCT - 55 ), - 93 AS col0
----
-55
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT DISTINCT - 72 - 49 * 92 * 27 + + COUNT( + 7 ) + 67 + + 91 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - 72 - 49 * 92 * 27 + + COUNT ( + 7 ) + 67 + + 91 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT ALL - + 39 * 8 + 7 DIV 15 AS col0
----
-312

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL - + 39 * 8 + 7 / 15 AS col0
----
-312

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT DISTINCT - NULLIF ( 70, - 82 * - 92 ) DIV 36 col0
----
-1

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - NULLIF ( 70, - 82 * - 92 ) / 36 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + - MAX( ALL + 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9109
SELECT + - MAX ( ALL + 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - COUNT( * ) * 5 * - 97
----
485

skipif mysql # not compatible
query I rowsort label-9110
SELECT - COUNT ( * ) * 5 * - 97
----
485

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9111
SELECT CAST( CAST( - + 79 AS SIGNED ) AS SIGNED ) DIV + 28 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9111
SELECT CAST ( CAST ( - + 79 AS INTEGER ) AS INTEGER ) / + 28 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT ALL - 78 * 88 DIV + 67 + + ( + 62 )
----
-40

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL - 78 * 88 / + 67 + + ( + 62 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9113
SELECT DISTINCT - + 38, CAST( + 46 AS SIGNED ) AS col0
----
-38
46

skipif mysql # not compatible
query II rowsort label-9113
SELECT DISTINCT - + 38, CAST ( + 46 AS INTEGER ) AS col0
----
-38
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT COUNT( * ) * + CAST( - + 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9114
SELECT COUNT ( * ) * + CAST ( - + 69 AS INTEGER ) AS col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9115
SELECT DISTINCT - 69 DIV 18
----
-3

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT - 69 / 18
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-9116
SELECT DISTINCT NULLIF ( - + 38, - 17 * + COUNT( * ) * CAST( NULL AS DECIMAL ) * - 81 - + - COUNT( * ) + 84 * - 6 - - 63 ) AS col1, 32 * ( + 51 ) + 59 * + 23 AS col1, + 84 + 41 DIV - COUNT( * )
----
-38
2989
43

skipif mysql # not compatible
query III rowsort label-9116
SELECT DISTINCT NULLIF ( - + 38, - 17 * + COUNT ( * ) * CAST ( NULL AS REAL ) * - 81 - + - COUNT ( * ) + 84 * - 6 - - 63 ) AS col1, 32 * ( + 51 ) + 59 * + 23 AS col1, + 84 + 41 / - COUNT ( * )
----
-38
2989
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9117
SELECT - NULLIF ( + + 93, - 22 * CAST( - COUNT( ALL - 51 ) AS SIGNED ) )
----
-93

skipif mysql # not compatible
query I rowsort label-9117
SELECT - NULLIF ( + + 93, - 22 * CAST ( - COUNT ( ALL - 51 ) AS INTEGER ) )
----
-93

query I rowsort
SELECT - 50 * + 97 col0
----
-4850

query I rowsort
SELECT - 96 + 77 * + 9
----
597

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT - 97 * + COUNT( * ) * + - 99 * + 72
----
691416

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT - 97 * + COUNT ( * ) * + - 99 * + 72
----
691416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9121
SELECT ALL + 6 + + COUNT( * ) + + COUNT( * ) * - 84 - 83 AS col2, CASE - 40 WHEN 17 + + + 9 THEN + 39 * CAST( + 34 AS SIGNED ) + + 32 / 90 ELSE NULL END
----
-160
NULL

skipif mysql # not compatible
query II rowsort label-9121
SELECT ALL + 6 + + COUNT ( * ) + + COUNT ( * ) * - 84 - 83 AS col2, CASE - 40 WHEN 17 + + + 9 THEN + 39 * CAST ( + 34 AS INTEGER ) + + 32 / 90 ELSE NULL END
----
-160
NULL

query I rowsort
SELECT DISTINCT CASE - 87 WHEN - - 20 THEN - 18 END
----
NULL

query I rowsort
SELECT DISTINCT + 25 + - 61
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT COUNT( * ) + 30 col0
----
31

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT COUNT ( * ) + 30 col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9125
SELECT - - 11 * COUNT( * ) * - CAST( NULL AS SIGNED ) * - 37 * COUNT( DISTINCT - 70 ) * 47 * + 80 + 54 * + 99 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9125
SELECT - - 11 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 37 * COUNT ( DISTINCT - 70 ) * 47 * + 80 + 54 * + 99 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT - + 95 - 42 + + 23 DIV - 61
----
-137

skipif mysql # not compatible
query I rowsort label-9126
SELECT - + 95 - 42 + + 23 / - 61
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-9127
SELECT + 18 * COUNT( * ), + 58 col1
----
18
58

skipif mysql # not compatible
query II rowsort label-9127
SELECT + 18 * COUNT ( * ), + 58 col1
----
18
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT + + 56 * 93 DIV + ( + 38 ) + + 62
----
199

skipif mysql # not compatible
query I rowsort label-9128
SELECT + + 56 * 93 / + ( + 38 ) + + 62
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9129
SELECT DISTINCT + + CAST( - 24 AS SIGNED ), + ( 58 ) * + + 3 AS col1
----
-24
174

skipif mysql # not compatible
query II rowsort label-9129
SELECT DISTINCT + + CAST ( - 24 AS INTEGER ), + ( 58 ) * + + 3 AS col1
----
-24
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL - COUNT( * ) * 51 - + MIN( - + 23 ) + ( 83 )
----
55

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - COUNT ( * ) * 51 - + MIN ( - + 23 ) + ( 83 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT - 71 - - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-9131
SELECT - 71 - - COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9132
SELECT DISTINCT + COUNT( * ) DIV - + 21 AS col0, 64
----
0
64

skipif mysql # not compatible
query II rowsort label-9132
SELECT DISTINCT + COUNT ( * ) / - + 21 AS col0, 64
----
0
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9133
SELECT + 89 * - + NULLIF ( COALESCE ( + ( SUM( ALL - + 54 ) ), - - 76 + COUNT( * ) * - COUNT( * ) ), + 67 - + - 89 * - CAST( - + COUNT( * ) AS DECIMAL ) ) AS col2
----
4806

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 89 * - + NULLIF ( COALESCE ( + ( SUM ( ALL - + 54 ) ), - - 76 + COUNT ( * ) * - COUNT ( * ) ), + 67 - + - 89 * - CAST ( - + COUNT ( * ) AS REAL ) ) AS col2
----
4806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT - CAST( NULL AS SIGNED ) / 31 + 61 - ( - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT - CAST ( NULL AS INTEGER ) / 31 + 61 - ( - 15 )
----
NULL

query I rowsort
SELECT ALL + + 37 col2
----
37

query I rowsort
SELECT ALL + 99 * 69 * - 74 * 62 AS col0
----
-31340628

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + COALESCE ( - + 71, + - 24, 94 ) * - - NULLIF ( - 13, - 66 ) + COUNT( * ) AS col1
----
924

skipif mysql # not compatible
query I rowsort label-9137
SELECT + COALESCE ( - + 71, + - 24, 94 ) * - - NULLIF ( - 13, - 66 ) + COUNT ( * ) AS col1
----
924

query I rowsort
SELECT + 21 * - + 5 - - - 95 AS col1
----
-200

query I rowsort
SELECT - 24 * 55 + - ( - - 24 ) * + 79 + 18 AS col0
----
-3198

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + + MIN( ALL + - 23 ) * - 0 * + ( - + 72 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9140
SELECT + + MIN ( ALL + - 23 ) * - 0 * + ( - + 72 ) AS col2
----
0

query I rowsort
SELECT + ( + 85 ) + + 38
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-9142
SELECT + 87 * - 75 * COUNT( * ) AS col2, 12
----
-6525
12

skipif mysql # not compatible
query II rowsort label-9142
SELECT + 87 * - 75 * COUNT ( * ) AS col2, 12
----
-6525
12

query II rowsort
SELECT DISTINCT + ( 15 ) AS col2, 20 * - + 49 * + - ( - 97 ) + NULLIF ( - ( 85 ), 53 ) AS col2
----
15
-95145

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT COALESCE ( + - COUNT( * ), + - 47 ) * - - 34 + - COUNT( + 94 )
----
-35

skipif mysql # not compatible
query I rowsort label-9144
SELECT COALESCE ( + - COUNT ( * ), + - 47 ) * - - 34 + - COUNT ( + 94 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT - 69 * + 65 + - COUNT( * ) * ( - 41 )
----
-4444

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT - 69 * + 65 + - COUNT ( * ) * ( - 41 )
----
-4444

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT + ( - ( - 50 ) ), SUM( ALL + 69 ) * 98 AS col1
----
50
6762

skipif mysql # not compatible
query II rowsort label-9146
SELECT + ( - ( - 50 ) ), SUM ( ALL + 69 ) * 98 AS col1
----
50
6762

query I rowsort
SELECT + 38 * - 14
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT 63 * CASE - 24 WHEN - + 38 * - MAX( ALL - 56 ) - + + 25 + + + 34 + COUNT( * ) * + 7 THEN - - 78 END + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT 63 * CASE - 24 WHEN - + 38 * - MAX ( ALL - 56 ) - + + 25 + + + 34 + COUNT ( * ) * + 7 THEN - - 78 END + 36
----
NULL

query I rowsort
SELECT ALL 96 * - 89
----
-8544

query I rowsort
SELECT - ( ( - + ( - 54 ) ) ) * + 85 AS col1
----
-4590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT ALL + COALESCE ( + COUNT( * ), + - 57, 50 + - + 74 ) DIV - 43 + COUNT( * ) + + 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + COALESCE ( + COUNT ( * ), + - 57, 50 + - + 74 ) / - 43 + COUNT ( * ) + + 5 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9152
SELECT - CAST( - + 98 AS SIGNED ) + - CAST( - COUNT( * ) AS DECIMAL ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT - CAST ( - + 98 AS INTEGER ) + - CAST ( - COUNT ( * ) AS REAL ) + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 90 + + 80
----
170

query I rowsort
SELECT ALL ( - + 69 ) AS col0
----
-69

query I rowsort
SELECT DISTINCT ( - 82 ) AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9156
SELECT ALL + 21 + + 11 + + 35 DIV ( - + COUNT( * ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + 21 + + 11 + + 35 / ( - + COUNT ( * ) ) AS col2
----
-3

query I rowsort
SELECT DISTINCT NULLIF ( 74, + ( - 34 ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT + COUNT( * ) - - + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9158
SELECT + COUNT ( * ) - - + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - 13 * - - 79 * + 7 * + + 26 AS col1
----
-186914

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - COUNT( * ) + MIN( - - NULLIF ( + 50, - 51 + - 86 ) ) + - 32 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9160
SELECT - COUNT ( * ) + MIN ( - - NULLIF ( + 50, - 51 + - 86 ) ) + - 32 AS col0
----
17

query I rowsort
SELECT - 2 + + + 29 col0
----
27

query I rowsort
SELECT ALL + + 97 * + 14 * - NULLIF ( + 58, + 20 + + - ( - - 45 ) ) AS col1
----
-78764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9163
SELECT - COUNT( ALL - ( - 44 ) ) * ( - COUNT( * ) ) * - 92 + COUNT( * ) * + + ( 59 ) * 52 DIV 12 - - 81 * + 20 * + COUNT( * ) + - + 81
----
1702

skipif mysql # not compatible
query I rowsort label-9163
SELECT - COUNT ( ALL - ( - 44 ) ) * ( - COUNT ( * ) ) * - 92 + COUNT ( * ) * + + ( 59 ) * 52 / 12 - - 81 * + 20 * + COUNT ( * ) + - + 81
----
1702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT ALL + 94 * - CAST( NULL AS SIGNED ) * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL + 94 * - CAST ( NULL AS INTEGER ) * 63
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9165
SELECT - - 81 AS col2, COALESCE ( + 67, - 11 DIV - MIN( ALL + 8 ) + 11 ) * + + 90 * - 58 + MIN( + 98 ) * - SUM( - 93 ) - - 41 AS col2
----
81
-340585

skipif mysql # not compatible
query II rowsort label-9165
SELECT - - 81 AS col2, COALESCE ( + 67, - 11 / - MIN ( ALL + 8 ) + 11 ) * + + 90 * - 58 + MIN ( + 98 ) * - SUM ( - 93 ) - - 41 AS col2
----
81
-340585

query I rowsort
SELECT ALL - CASE - 79 WHEN + - 20 THEN 59 + 92 END AS col0
----
NULL

query I rowsort
SELECT - + 8 + 37 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT ALL + CAST( + - 59 AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + CAST ( + - 59 AS INTEGER ) AS col0
----
-59

query I rowsort
SELECT - - COALESCE ( + 72, + 74 ) + 88 + + + 3
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT DISTINCT - + 61 DIV - + 81 * - 27 - 1
----
-1

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT - + 61 / - + 81 * - 27 - 1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT DISTINCT + COUNT( * ) AS col2, + CASE + - 68 WHEN + SUM( + 6 ) THEN + - 54 + + - 50 + + - COUNT( * ) WHEN - 23 + - 14 THEN NULL ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9171
SELECT DISTINCT + COUNT ( * ) AS col2, + CASE + - 68 WHEN + SUM ( + 6 ) THEN + - 54 + + - 50 + + - COUNT ( * ) WHEN - 23 + - 14 THEN NULL ELSE NULL END
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9172
SELECT 23 AS col1, + 29 * COUNT( * )
----
23
29

skipif mysql # not compatible
query II rowsort label-9172
SELECT 23 AS col1, + 29 * COUNT ( * )
----
23
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT 42 / - ( 91 ) + - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT 42 / - ( 91 ) + - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9174
SELECT + 23 / - + ( CASE - 88 WHEN - 63 THEN + 24 END ) + - + 67 + - CAST( NULL AS DECIMAL ) / + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT + 23 / - + ( CASE - 88 WHEN - 63 THEN + 24 END ) + - + 67 + - CAST ( NULL AS REAL ) / + 22
----
NULL

query I rowsort
SELECT - 62 * + + 26 AS col1
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT + + SUM( ALL 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9176
SELECT + + SUM ( ALL 42 ) AS col0
----
42

query II rowsort
SELECT ALL + 71, - 89 - - 85 col2
----
71
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL + MIN( DISTINCT + ( - ( + 65 ) ) )
----
-65

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL + MIN ( DISTINCT + ( - ( + 65 ) ) )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9179
SELECT + 80 AS col2, COUNT( * ) * - CASE - 29 WHEN 13 + - - 48 THEN + + 72 END + + COUNT( * ) AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9179
SELECT + 80 AS col2, COUNT ( * ) * - CASE - 29 WHEN 13 + - - 48 THEN + + 72 END + + COUNT ( * ) AS col2
----
80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9180
SELECT ALL 38 * + + 93 + + 14 + - + ( 10 ) + + CAST( 81 AS SIGNED ) + - ( + 86 ) - + COUNT( DISTINCT - 70 ) * + 3 col1
----
3530

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL 38 * + + 93 + + 14 + - + ( 10 ) + + CAST ( 81 AS INTEGER ) + - ( + 86 ) - + COUNT ( DISTINCT - 70 ) * + 3 col1
----
3530

query I rowsort
SELECT ALL - 37 + 89 + - + 0
----
52

query II rowsort
SELECT 72 * - 57 AS col1, 36
----
-4104
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT 56 - + 30 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT 56 - + 30 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 91 + + - ( + + 48 ) col2
----
43

query I rowsort
SELECT DISTINCT 50 + 35 * - + 64 AS col1
----
-2190

query I rowsort
SELECT 7 + - 30 AS col2
----
-23

query I rowsort
SELECT ALL - ( + - 71 ) col1
----
71

query I rowsort
SELECT ALL - 25 + + - 57
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9189
SELECT 91 - - ( 49 ) * - CASE 76 WHEN - 92 + - CAST( NULL AS SIGNED ) THEN + 71 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9189
SELECT 91 - - ( 49 ) * - CASE 76 WHEN - 92 + - CAST ( NULL AS INTEGER ) THEN + 71 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9190
SELECT ALL NULLIF ( 4, - - 56 * - 87 * 1 * + - 38 * + 5 + + 60 ) + COUNT( * ) DIV - 72, - 87 col0
----
4
-87

skipif mysql # not compatible
query II rowsort label-9190
SELECT ALL NULLIF ( 4, - - 56 * - 87 * 1 * + - 38 * + 5 + + 60 ) + COUNT ( * ) / - 72, - 87 col0
----
4
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT MAX( DISTINCT + + 17 ) * + 77 AS col1
----
1309

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT MAX ( DISTINCT + + 17 ) * + 77 AS col1
----
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT DISTINCT 78 * - + COUNT( * ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT 78 * - + COUNT ( * ) col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9193
SELECT COUNT( * ) + - 71 col0, - 55 AS col2
----
-70
-55

skipif mysql # not compatible
query II rowsort label-9193
SELECT COUNT ( * ) + - 71 col0, - 55 AS col2
----
-70
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-9194
SELECT 35 - + 17 DIV 54 DIV + 52 col2, + 46 AS col1
----
35
46

skipif mysql # not compatible
query II rowsort label-9194
SELECT 35 - + 17 / 54 / + 52 col2, + 46 AS col1
----
35
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL + COALESCE ( - CASE - 10 WHEN 9 THEN - 42 END, + 46 * - MIN( - 48 ) * + + 59 + + + MAX( + 26 ) + + - 28 + - 47 + - 0 ) - - COUNT( * ) AS col1
----
130224

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + COALESCE ( - CASE - 10 WHEN 9 THEN - 42 END, + 46 * - MIN ( - 48 ) * + + 59 + + + MAX ( + 26 ) + + - 28 + - 47 + - 0 ) - - COUNT ( * ) AS col1
----
130224

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT + 44 * 50 * ( COUNT( * ) ) * + - 59 * 92 col0
----
-11941600

skipif mysql # not compatible
query I rowsort label-9196
SELECT + 44 * 50 * ( COUNT ( * ) ) * + - 59 * 92 col0
----
-11941600

query I rowsort
SELECT 14 - + 56
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - 24 * + COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9198
SELECT - 24 * + COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + COUNT( * ) + - 51 * - 45
----
2296

skipif mysql # not compatible
query I rowsort label-9199
SELECT + COUNT ( * ) + - 51 * - 45
----
2296

query I rowsort
SELECT DISTINCT + ( - 74 ) * - 47
----
3478

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT + 60 * 49, 80 * + - COUNT( * ) AS col2
----
2940
-80

skipif mysql # not compatible
query II rowsort label-9201
SELECT + 60 * 49, 80 * + - COUNT ( * ) AS col2
----
2940
-80

query I rowsort
SELECT 83 - 2 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT DISTINCT + 99 * - COUNT( * ) + + + SUM( ALL + + 15 ), - 10 AS col0
----
-84
-10

skipif mysql # not compatible
query II rowsort label-9203
SELECT DISTINCT + 99 * - COUNT ( * ) + + + SUM ( ALL + + 15 ), - 10 AS col0
----
-84
-10

query I rowsort
SELECT DISTINCT - 88 + + - 82 AS col1
----
-170

query I rowsort
SELECT ALL + - 77 + + 15 col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9206
SELECT ALL + - COUNT( + - 68 ) + - - 38 * + 75 AS col2, 46 + - CAST( COUNT( * ) AS SIGNED )
----
2849
45

skipif mysql # not compatible
query II rowsort label-9206
SELECT ALL + - COUNT ( + - 68 ) + - - 38 * + 75 AS col2, 46 + - CAST ( COUNT ( * ) AS INTEGER )
----
2849
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT DISTINCT - COUNT( * ) AS col2, - 42
----
-1
-42

skipif mysql # not compatible
query II rowsort label-9207
SELECT DISTINCT - COUNT ( * ) AS col2, - 42
----
-1
-42

query I rowsort
SELECT + 49 * ( - - 10 ) + 84 AS col1
----
574

query I rowsort
SELECT + 62 * 55 * 61 - 75
----
207935

onlyif mysql # aggregate syntax: 
query II rowsort label-9210
SELECT 65 + + 68 * + COUNT( * ), - 23 + + 47 + - 82 AS col1
----
133
-58

skipif mysql # not compatible
query II rowsort label-9210
SELECT 65 + + 68 * + COUNT ( * ), - 23 + + 47 + - 82 AS col1
----
133
-58

query I rowsort
SELECT ALL - NULLIF ( + 87, + + 69 + + + 21 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9212
SELECT 22 AS col1, + COUNT( * )
----
22
1

skipif mysql # not compatible
query II rowsort label-9212
SELECT 22 AS col1, + COUNT ( * )
----
22
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT 75 + - 33 + + + 45 DIV - 78 * + + 22 * 45 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9213
SELECT 75 + - 33 + + + 45 / - 78 * + + 22 * 45 AS col1
----
42

query I rowsort
SELECT DISTINCT 3 * 40
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT DISTINCT - 38 + - 89 + 76 * + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT - 38 + - 89 + 76 * + + COUNT ( * )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL - 20 - - 71 - COUNT( * ) - + COALESCE ( - - 47, NULLIF ( + SUM( + 54 ), CAST( - - COUNT( * ) AS SIGNED ) ), + 22, - COUNT( * ) ) * + - ( - 51 ) AS col2
----
-2347

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL - 20 - - 71 - COUNT ( * ) - + COALESCE ( - - 47, NULLIF ( + SUM ( + 54 ), CAST ( - - COUNT ( * ) AS INTEGER ) ), + 22, - COUNT ( * ) ) * + - ( - 51 ) AS col2
----
-2347

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT DISTINCT - ( + ( + MIN( + 47 ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT - ( + ( + MIN ( + 47 ) ) )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT 81 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT 81 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 48 * - 66 + - + 23
----
-3191

query I rowsort
SELECT ALL + 49 * - 82 AS col0
----
-4018

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - MAX( 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-9221
SELECT - MAX ( 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - MIN( - 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9222
SELECT - MIN ( - 48 ) AS col2
----
48

query I rowsort
SELECT 12 + + 81 col2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT 50 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-9224
SELECT 50 / 86
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT ALL 29 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL 29 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 21 + - 6
----
15

query I rowsort
SELECT 57 - - ( - 31 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT - MAX( 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9228
SELECT - MAX ( 64 ) AS col2
----
-64

query I rowsort
SELECT ( 9 ) + + 71
----
80

query I rowsort
SELECT ALL 23 * 62 AS col1
----
1426

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT 40 DIV - 21
----
-1

skipif mysql # not compatible
query I rowsort label-9231
SELECT 40 / - 21
----
-1

query I rowsort
SELECT ALL 93 + 51
----
144

query I rowsort
SELECT 47 + 53
----
100

query I rowsort
SELECT ALL 75 + + ( + 28 ) col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9235
SELECT ALL ( 33 ) + CASE - 78 WHEN COALESCE ( - 9, + ( 95 ), COUNT( * ) ) THEN COALESCE ( - COUNT( * ), 96, CAST( NULL AS SIGNED ) ) ELSE 9 DIV - 14 END
----
33

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL ( 33 ) + CASE - 78 WHEN COALESCE ( - 9, + ( 95 ), COUNT ( * ) ) THEN COALESCE ( - COUNT ( * ), 96, CAST ( NULL AS INTEGER ) ) ELSE 9 / - 14 END
----
33

query I rowsort
SELECT + 57 + + 35 * 86
----
3067

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT ALL - 14 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - 14 / + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - ( - COUNT( * ) ) + + NULLIF ( - 98, 16 + 70 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-9238
SELECT - ( - COUNT ( * ) ) + + NULLIF ( - 98, 16 + 70 ) col1
----
-97

query I rowsort
SELECT NULLIF ( 54, 98 ) AS col0
----
54

query I rowsort
SELECT ALL 64 * + 46 + + 44 AS col0
----
2988

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT 51 DIV + 24 + 28
----
30

skipif mysql # not compatible
query I rowsort label-9241
SELECT 51 / + 24 + 28
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT COALESCE ( - CASE + 71 WHEN CAST( NULL AS SIGNED ) THEN + 89 * 48 WHEN - 46 THEN 67 WHEN + 62 + 84 THEN 0 WHEN - 49 THEN NULL END, - 83, 92 + - ( - COUNT( * ) ) )
----
-83

skipif mysql # not compatible
query I rowsort label-9242
SELECT COALESCE ( - CASE + 71 WHEN CAST ( NULL AS INTEGER ) THEN + 89 * 48 WHEN - 46 THEN 67 WHEN + 62 + 84 THEN 0 WHEN - 49 THEN NULL END, - 83, 92 + - ( - COUNT ( * ) ) )
----
-83

query I rowsort
SELECT + ( + 16 ) * + 28 AS col2
----
448

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT - 4 + 90 DIV 80 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9244
SELECT - 4 + 90 / 80 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL 8 * 44 + + SUM( - 6 )
----
346

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL 8 * 44 + + SUM ( - 6 )
----
346

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + CASE 84 WHEN COUNT( * ) THEN - 33 ELSE + 83 + 80 END
----
163

skipif mysql # not compatible
query I rowsort label-9246
SELECT + CASE 84 WHEN COUNT ( * ) THEN - 33 ELSE + 83 + 80 END
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9247
SELECT NULLIF ( + 32, - 82 + + NULLIF ( + 47 + - 85, + 34 * + CASE - 15 WHEN + COUNT( * ) * 27 THEN CAST( 77 AS SIGNED ) END ) / 92 )
----
32

skipif mysql # not compatible
query I rowsort label-9247
SELECT NULLIF ( + 32, - 82 + + NULLIF ( + 47 + - 85, + 34 * + CASE - 15 WHEN + COUNT ( * ) * 27 THEN CAST ( 77 AS INTEGER ) END ) / 92 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL - COUNT( * ) * 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL - COUNT ( * ) * 27 AS col2
----
-27

query I rowsort
SELECT ALL 73 * - 66 AS col2
----
-4818

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT COALESCE ( 62, + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-9250
SELECT COALESCE ( 62, + COUNT ( * ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT COALESCE ( - MIN( ALL 98 ), 2 * NULLIF ( 6, + 13 * - 67 ), - 99 * 23 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9251
SELECT COALESCE ( - MIN ( ALL 98 ), 2 * NULLIF ( 6, + 13 * - 67 ), - 99 * 23 ) AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT + 32 - - 66 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT + 32 - - 66 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 37 * + 33
----
-1221

query I rowsort
SELECT - ( + 67 ) - 85 AS col0
----
-152

query I rowsort
SELECT 62 * + ( + 68 ) + + 12 * - 92 AS col2
----
3112

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT ALL - ( + 46 ) DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - ( + 46 ) / 59
----
0

query I rowsort
SELECT - 1 * - 99 AS col1
----
99

query I rowsort
SELECT - 78 * - 13 AS col1
----
1014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT ALL + CAST( + 15 AS SIGNED ) col1
----
15

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL + CAST ( + 15 AS INTEGER ) col1
----
15

query I rowsort
SELECT - 54 - 12 AS col0
----
-66

query I rowsort
SELECT - - 95 * + 3
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT - 40 - CASE + 71 WHEN 8 - AVG ( DISTINCT + 85 ) THEN - 98 - 83 END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT - 40 - CASE + 71 WHEN 8 - AVG ( DISTINCT + 85 ) THEN - 98 - 83 END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 26 * - 58 AS col0
----
-1508

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT - + COUNT( * ) * + 88 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9264
SELECT - + COUNT ( * ) * + 88 AS col0
----
-88

query I rowsort
SELECT ALL + 15 + 61 * 29
----
1784

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT - + COUNT( * ) + + 7 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT - + COUNT ( * ) + + 7 AS col2
----
6

query I rowsort
SELECT - + 77 + 63 AS col0
----
-14

query I rowsort
SELECT - 15 * + 69
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT + 85 + COUNT( * ) * 45 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-9269
SELECT + 85 + COUNT ( * ) * 45 AS col1
----
130

query I rowsort
SELECT + - 96 - 16 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + COUNT( * ) + 67
----
68

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + COUNT ( * ) + 67
----
68

query I rowsort
SELECT DISTINCT - - 19 + 71 AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9273
SELECT ALL 82 + COUNT( * ) DIV - 25 col2
----
82

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL 82 + COUNT ( * ) / - 25 col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT - - 69 + - 77 * - NULLIF ( ( + 1 ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - - 69 + - 77 * - NULLIF ( ( + 1 ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - 8 + 25 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT - ( CASE + 7 WHEN - COUNT( ALL 55 ) THEN + 90 / 80 + - 44 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT - ( CASE + 7 WHEN - COUNT ( ALL 55 ) THEN + 90 / 80 + - 44 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL + 39 + + COUNT( * ) * 71 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + 39 + + COUNT ( * ) * 71 AS col1
----
110

query I rowsort
SELECT - + 33 - 78
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT - 31 + COUNT( * ) * 98
----
67

skipif mysql # not compatible
query I rowsort label-9279
SELECT - 31 + COUNT ( * ) * 98
----
67

query I rowsort
SELECT + - 95 * 94
----
-8930

query I rowsort
SELECT + 45 + - 83 AS col0
----
-38

query I rowsort
SELECT ALL 32 * - 8 AS col2
----
-256

query I rowsort
SELECT + 44 + - 39 * NULLIF ( 18 * + 70, - 60 * + 29 ) AS col2
----
-49096

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT + COALESCE ( - ( - COALESCE ( + 57, + 79 + + 0, 82 DIV 42 ) ), - 42, - 17 ) * + 47 AS col2
----
2679

skipif mysql # not compatible
query I rowsort label-9284
SELECT + COALESCE ( - ( - COALESCE ( + 57, + 79 + + 0, 82 / 42 ) ), - 42, - 17 ) * + 47 AS col2
----
2679

query I rowsort
SELECT + 20 * - 47
----
-940

query I rowsort
SELECT + 97 * + ( 5 ) + - 30
----
455

query I rowsort
SELECT 57 * 53 - 95 * 16
----
1501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9288
SELECT + 26 * - + 56 * + COALESCE ( + CASE + ( + AVG ( 14 ) ) WHEN ( 95 ) * 28 + - ( - CASE 81 WHEN + COUNT( * ) THEN MIN( DISTINCT 34 ) ELSE 23 END ) THEN CASE 79 WHEN - 83 THEN NULL WHEN 45 THEN COUNT( * ) DIV 56 END * 62 WHEN 76 THEN COUNT( * ) ELSE NULL END, 13, + 79 + 8 )
----
-18928

skipif mysql # not compatible
query I rowsort label-9288
SELECT + 26 * - + 56 * + COALESCE ( + CASE + ( + AVG ( 14 ) ) WHEN ( 95 ) * 28 + - ( - CASE 81 WHEN + COUNT ( * ) THEN MIN ( DISTINCT 34 ) ELSE 23 END ) THEN CASE 79 WHEN - 83 THEN NULL WHEN 45 THEN COUNT ( * ) / 56 END * 62 WHEN 76 THEN COUNT ( * ) ELSE NULL END, 13, + 79 + 8 )
----
-18928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT - CAST( NULL AS SIGNED ) * + 92 - - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT - CAST ( NULL AS INTEGER ) * + 92 - - 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ( CASE 83 WHEN 54 THEN 79 / ( 55 ) - - NULLIF ( 67 + + 97, 39 ) WHEN COUNT( * ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT ( CASE 83 WHEN 54 THEN 79 / ( 55 ) - - NULLIF ( 67 + + 97, 39 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 19 * + ( - 86 )
----
-1634

query I rowsort
SELECT - 30 + + 60 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT CASE + CASE - COUNT( * ) WHEN 40 THEN NULL ELSE + 4 END WHEN - 35 - 22 THEN NULL ELSE - 59 END AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9293
SELECT CASE + CASE - COUNT ( * ) WHEN 40 THEN NULL ELSE + 4 END WHEN - 35 - 22 THEN NULL ELSE - 59 END AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - 48 * - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9294
SELECT - 48 * - COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL + 40 * COUNT( * ) * - 49 + - 8 col0
----
-1968

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL + 40 * COUNT ( * ) * - 49 + - 8 col0
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ALL - COALESCE ( - 31, + ( 92 ) + 55 * - 87 ) * + COALESCE ( - 43 * + 27, + 32 ) + + COUNT( * ) * + 44
----
-35947

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL - COALESCE ( - 31, + ( 92 ) + 55 * - 87 ) * + COALESCE ( - 43 * + 27, + 32 ) + + COUNT ( * ) * + 44
----
-35947

query I rowsort
SELECT + 86 + - 13
----
73

query I rowsort
SELECT + 67 * - - 25 + 26 * ( + 77 )
----
3677

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT + CASE + - 41 WHEN COUNT( * ) - - 23 THEN NULL WHEN ( SUM( ALL - 63 ) ) THEN NULL ELSE - 80 END
----
-80

skipif mysql # not compatible
query I rowsort label-9299
SELECT + CASE + - 41 WHEN COUNT ( * ) - - 23 THEN NULL WHEN ( SUM ( ALL - 63 ) ) THEN NULL ELSE - 80 END
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT ALL + COALESCE ( - 5, + 47 + + 81 DIV - 49, - MIN( ALL 60 ) + 37 * - 86 )
----
-5

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + COALESCE ( - 5, + 47 + + 81 / - 49, - MIN ( ALL 60 ) + 37 * - 86 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT + 35 + + 16 + + 21 DIV + 66
----
51

skipif mysql # not compatible
query I rowsort label-9301
SELECT + 35 + + 16 + + 21 / + 66
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT + 12 * + 73 * 71 + ( COUNT( * ) ) AS col2
----
62197

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + 12 * + 73 * 71 + ( COUNT ( * ) ) AS col2
----
62197

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT DISTINCT + 1 DIV + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT + 1 / + 55 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT + ( + 65 ) DIV COUNT( 49 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9304
SELECT + ( + 65 ) / COUNT ( 49 ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9305
SELECT + CAST( + ( 29 ) AS SIGNED ) * COALESCE ( + 19, + 5 DIV CASE - 62 WHEN - MAX( DISTINCT - 97 ) * 63 THEN NULL WHEN 91 THEN + 29 END + 64, 21 ) AS col2
----
551

skipif mysql # not compatible
query I rowsort label-9305
SELECT + CAST ( + ( 29 ) AS INTEGER ) * COALESCE ( + 19, + 5 / CASE - 62 WHEN - MAX ( DISTINCT - 97 ) * 63 THEN NULL WHEN 91 THEN + 29 END + 64, 21 ) AS col2
----
551

query I rowsort
SELECT - 63 + - 92 - - 4 * - 2 col1
----
-163

query I rowsort
SELECT ALL + 68 * - - ( 93 ) * - 84
----
-531216

query I rowsort
SELECT 61 + - + 34 col2
----
27

query I rowsort
SELECT DISTINCT - 77 * 98 AS col0
----
-7546

query I rowsort
SELECT 50 + + - 88 + 54 AS col1
----
16

query I rowsort
SELECT DISTINCT + 74 - + 71 - - 15 AS col2
----
18

query I rowsort
SELECT DISTINCT - 52 * - 76
----
3952

query II rowsort
SELECT ALL 93, + ( - 0 ) * 28 col1
----
93
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9314
SELECT DISTINCT 99, CAST( + COUNT( * ) AS SIGNED ) AS col2
----
99
1

skipif mysql # not compatible
query II rowsort label-9314
SELECT DISTINCT 99, CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
99
1

query I rowsort
SELECT 71 * + + 56 AS col1
----
3976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9316
SELECT DISTINCT 85 DIV NULLIF ( 3, 37 * + 33 ) * + COALESCE ( COUNT( * ), MIN( ALL 34 ) ) col2
----
28

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT 85 / NULLIF ( 3, 37 * + 33 ) * + COALESCE ( COUNT ( * ), MIN ( ALL 34 ) ) col2
----
28

query II rowsort
SELECT ALL - 64 AS col2, 11
----
-64
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT DISTINCT + 7 DIV 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT + 7 / 36 AS col1
----
0

query II rowsort
SELECT DISTINCT - 64, 61 AS col0
----
-64
61

query I rowsort
SELECT DISTINCT 78 + + 16 + + - 91 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT COUNT( * ) * 8 col0
----
8

skipif mysql # not compatible
query I rowsort label-9321
SELECT COUNT ( * ) * 8 col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL COUNT( * ) + + 63 + 86 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL COUNT ( * ) + + 63 + 86 AS col1
----
150

query I rowsort
SELECT 15 - ( - 93 ) AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT 50 - COUNT( - ( 97 ) ) + 17 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9324
SELECT 50 - COUNT ( - ( 97 ) ) + 17 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9325
SELECT CAST( - 33 AS SIGNED ) * - ( 8 ) - 60 * 84 + SUM( DISTINCT 95 ) * + 7
----
-4111

skipif mysql # not compatible
query I rowsort label-9325
SELECT CAST ( - 33 AS INTEGER ) * - ( 8 ) - 60 * 84 + SUM ( DISTINCT 95 ) * + 7
----
-4111

query I rowsort
SELECT 40 * + 5 * + 92
----
18400

onlyif mysql # aggregate syntax: 
query II rowsort label-9327
SELECT DISTINCT - 55 col2, + NULLIF ( - 28, COUNT( * ) ) * 48
----
-55
-1344

skipif mysql # not compatible
query II rowsort label-9327
SELECT DISTINCT - 55 col2, + NULLIF ( - 28, COUNT ( * ) ) * 48
----
-55
-1344

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9328
SELECT DISTINCT + 32 + CAST( NULL AS DECIMAL ) / + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + 32 + CAST ( NULL AS REAL ) / + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT 76 + + - COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT 76 + + - COUNT ( * ) AS col1
----
75

query I rowsort
SELECT DISTINCT + 5 + - + 88
----
-83

query I rowsort
SELECT ( 78 ) - 54 + - 69
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9332
SELECT DISTINCT 5 AS col1, - SUM( DISTINCT + 95 ) * 29 + - 42
----
5
-2797

skipif mysql # not compatible
query II rowsort label-9332
SELECT DISTINCT 5 AS col1, - SUM ( DISTINCT + 95 ) * 29 + - 42
----
5
-2797

query I rowsort
SELECT ALL 3 + + - 14
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT - COUNT( DISTINCT + - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-9334
SELECT - COUNT ( DISTINCT + - 66 )
----
-1

query I rowsort
SELECT 98 * - - NULLIF ( + + 30, ( + AVG ( DISTINCT + 68 ) ) )
----
2940

query I rowsort
SELECT - 60 * 93 col2
----
-5580

query I rowsort
SELECT - NULLIF ( + ( ( 4 ) ), 78 ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9338
SELECT + 83 AS col0, COALESCE ( 96, COUNT( * ), - CASE - ( CASE + NULLIF ( + 49, + 99 ) WHEN + ( - 2 ) + 98 THEN + 24 ELSE NULL END ) WHEN - 56 THEN - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 48 + 8 END + 87 )
----
83
96

skipif mysql # not compatible
query II rowsort label-9338
SELECT + 83 AS col0, COALESCE ( 96, COUNT ( * ), - CASE - ( CASE + NULLIF ( + 49, + 99 ) WHEN + ( - 2 ) + 98 THEN + 24 ELSE NULL END ) WHEN - 56 THEN - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 48 + 8 END + 87 )
----
83
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT - CAST( + - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-9339
SELECT - CAST ( + - 15 AS INTEGER )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9340
SELECT ALL + - COUNT( * ) DIV + NULLIF ( - 35, - 60 + 5 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + - COUNT ( * ) / + NULLIF ( - 35, - 60 + 5 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT - COUNT( * ) DIV - 89 * - - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9341
SELECT - COUNT ( * ) / - 89 * - - 89 AS col2
----
0

query I rowsort
SELECT - - ( + 3 ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9343
SELECT DISTINCT - 29 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - 29 / + 94
----
0

query I rowsort
SELECT 94 + - + 46
----
48

query I rowsort
SELECT ALL + 66 * - 77
----
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT CASE - MIN( + 38 ) WHEN + 45 * - 6 + ( + ( 38 ) ) * 90 THEN NULL WHEN - 2 THEN 50 WHEN SUM( + 14 ) * NULLIF ( 48 * + COUNT( * ) + 63, + 18 ) THEN NULL ELSE + 82 END * 61
----
5002

skipif mysql # not compatible
query I rowsort label-9346
SELECT CASE - MIN ( + 38 ) WHEN + 45 * - 6 + ( + ( 38 ) ) * 90 THEN NULL WHEN - 2 THEN 50 WHEN SUM ( + 14 ) * NULLIF ( 48 * + COUNT ( * ) + 63, + 18 ) THEN NULL ELSE + 82 END * 61
----
5002

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT 84 DIV - + 40
----
-2

skipif mysql # not compatible
query I rowsort label-9347
SELECT 84 / - + 40
----
-2

query I rowsort
SELECT 90 + + - 54
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT ALL + COALESCE ( 10, - 27 ) * - AVG ( - CAST( NULL AS SIGNED ) ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + COALESCE ( 10, - 27 ) * - AVG ( - CAST ( NULL AS INTEGER ) ) * 61
----
NULL

query I rowsort
SELECT DISTINCT + 21 * 16
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL + COUNT( * ) * ( ( 44 ) ) + - 47
----
-3

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL + COUNT ( * ) * ( ( 44 ) ) + - 47
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ALL - 53 * 27 * ( - + COUNT( * ) ) * 2 + 67 * + NULLIF ( + 30, + 59 * - 44 ) AS col2
----
4872

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL - 53 * 27 * ( - + COUNT ( * ) ) * 2 + 67 * + NULLIF ( + 30, + 59 * - 44 ) AS col2
----
4872

query I rowsort
SELECT DISTINCT - 70 * - 76 + + 61
----
5381

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL - 14 * - - 12 + - COUNT( * ) + 92 * - 26 col1
----
-2561

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - 14 * - - 12 + - COUNT ( * ) + 92 * - 26 col1
----
-2561

query II rowsort
SELECT 35 + + 69 AS col1, + 44 * 96 AS col1
----
104
4224

query I rowsort
SELECT - 50 * + + 78 + 25 * + 83 + 35 AS col0
----
-1790

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT COUNT( ALL 69 )
----
1

skipif mysql # not compatible
query I rowsort label-9357
SELECT COUNT ( ALL 69 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9358
SELECT ALL + 58 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + 58 / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT 31 * + - 29 * - - ( - ( 3 ) ) * + 20 - - 10 * COUNT( * )
----
53950

skipif mysql # not compatible
query I rowsort label-9359
SELECT 31 * + - 29 * - - ( - ( 3 ) ) * + 20 - - 10 * COUNT ( * )
----
53950

query I rowsort
SELECT ( - ( + - 91 ) ) + - 21 + 15 col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9361
SELECT ALL + CAST( + 13 AS SIGNED ) * - - 58 + - COUNT( * ) + 3 * 39 + 43 DIV + 71 AS col2
----
870

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL + CAST ( + 13 AS INTEGER ) * - - 58 + - COUNT ( * ) + 3 * 39 + 43 / + 71 AS col2
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL + 67 * + COUNT( * ) * + + 65 + 68 * - 25 AS col1
----
2655

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + 67 * + COUNT ( * ) * + + 65 + 68 * - 25 AS col1
----
2655

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL - 3 * - - 36 + 90 + COUNT( * ) + + 77 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - 3 * - - 36 + 90 + COUNT ( * ) + + 77 AS col2
----
60

query I rowsort
SELECT DISTINCT - 34 * 44 + - 72 + 91 * 9
----
-749

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT DISTINCT + + 14 * + MAX( + 92 ) * + 16 + - 20
----
20588

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT + + 14 * + MAX ( + 92 ) * + 16 + - 20
----
20588

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT + CASE - 19 WHEN - 28 / + - COUNT( * ) THEN AVG ( ( 61 ) ) + + ( 12 ) WHEN 13 * 67 + 21 * - 33 THEN NULL WHEN + CASE + 72 WHEN + 88 THEN NULL WHEN COUNT( * ) THEN NULL WHEN + 33 / 2 THEN + 4 ELSE NULL END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + CASE - 19 WHEN - 28 / + - COUNT ( * ) THEN AVG ( ( 61 ) ) + + ( 12 ) WHEN 13 * 67 + 21 * - 33 THEN NULL WHEN + CASE + 72 WHEN + 88 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + 33 / 2 THEN + 4 ELSE NULL END THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT ALL CAST( + + 38 AS SIGNED ) - 97 + 64 * - 48
----
-3131

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL CAST ( + + 38 AS INTEGER ) - 97 + 64 * - 48
----
-3131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9368
SELECT + COALESCE ( CASE + CASE - 76 WHEN 8 * - 78 THEN + 2 * - 24 WHEN - COALESCE ( + 36, 22 ) THEN NULL END WHEN 48 DIV 54 THEN 66 DIV COUNT( * ) END, 53, MIN( + 90 ) )
----
53

skipif mysql # not compatible
query I rowsort label-9368
SELECT + COALESCE ( CASE + CASE - 76 WHEN 8 * - 78 THEN + 2 * - 24 WHEN - COALESCE ( + 36, 22 ) THEN NULL END WHEN 48 / 54 THEN 66 / COUNT ( * ) END, 53, MIN ( + 90 ) )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9369
SELECT + SUM( 7 ) DIV - 4
----
-1

skipif mysql # not compatible
query I rowsort label-9369
SELECT + SUM ( 7 ) / - 4
----
-1

query I rowsort
SELECT + + 57 * + + NULLIF ( 91, - ( - 29 ) ) AS col0
----
5187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT + + CAST( NULL AS SIGNED ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT + + CAST ( NULL AS INTEGER ) + - 36
----
NULL

query I rowsort
SELECT + - 88 * + 54 * 1 AS col2
----
-4752

query I rowsort
SELECT + ( + 1 ) * + ( - 97 ) + ( 49 ) AS col2
----
-48

query I rowsort
SELECT ALL - COALESCE ( - - 33, - 53 + 67 + + 44 * 49 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT + COUNT( + 63 ) col0, 78 AS col2
----
1
78

skipif mysql # not compatible
query II rowsort label-9375
SELECT + COUNT ( + 63 ) col0, 78 AS col2
----
1
78

query I rowsort
SELECT ALL - NULLIF ( + - 61, 22 ) * + - 42 - COALESCE ( + 67, 57 ) * - 17
----
-1423

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT + 25 * SUM( DISTINCT + 77 ) AS col0
----
1925

skipif mysql # not compatible
query I rowsort label-9377
SELECT + 25 * SUM ( DISTINCT + 77 ) AS col0
----
1925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT + NULLIF ( - 52, - + CAST( NULL AS SIGNED ) ) + + 69
----
17

skipif mysql # not compatible
query I rowsort label-9378
SELECT + NULLIF ( - 52, - + CAST ( NULL AS INTEGER ) ) + + 69
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT DISTINCT + 99 * + CAST( - 80 AS SIGNED ) * - 20 AS col2
----
158400

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT + 99 * + CAST ( - 80 AS INTEGER ) * - 20 AS col2
----
158400

query I rowsort
SELECT + 47 + 15 + + 6 - + - 61 + - 66
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL COUNT( * ) * - 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL COUNT ( * ) * - 53 AS col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT - COALESCE ( 81, - CAST( 81 AS SIGNED ) + 11 )
----
-81

skipif mysql # not compatible
query I rowsort label-9382
SELECT - COALESCE ( 81, - CAST ( 81 AS INTEGER ) + 11 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT - COALESCE ( 64, + NULLIF ( + MIN( + 29 ), + AVG ( DISTINCT - 17 ) ) )
----
-64

skipif mysql # not compatible
query I rowsort label-9383
SELECT - COALESCE ( 64, + NULLIF ( + MIN ( + 29 ), + AVG ( DISTINCT - 17 ) ) )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT - 15 + + + 27 * - SUM( ALL 62 ) * - 10 col2
----
16725

skipif mysql # not compatible
query I rowsort label-9384
SELECT - 15 + + + 27 * - SUM ( ALL 62 ) * - 10 col2
----
16725

query I rowsort
SELECT + 85 * - 25
----
-2125

query I rowsort
SELECT ALL 67 + - + 74
----
-7

query I rowsort
SELECT - 79 + - 63 AS col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT DISTINCT COUNT( * ) + + 66
----
67

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT COUNT ( * ) + + 66
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9389
SELECT ALL 61 + 32 * - CASE 80 WHEN 35 THEN - 18 + 32 * + ( 93 ) WHEN 28 * 10 + + 89 * + 32 THEN 29 * COALESCE ( 36 * 93, - 76, + 41, 82 ) + CASE - ( ( + CAST( CASE 65 WHEN 37 THEN 56 * + MAX( DISTINCT - 59 ) WHEN + 78 * COALESCE ( 98, 2 * - 46 ) + NULLIF ( 21 - 72 / 24, - 19 ) THEN + 45 * CASE - 91 * COUNT( * ) WHEN 95 THEN NULL WHEN - 71 THEN - 93 + 16 ELSE 23 END ELSE NULL END AS SIGNED ) ) ) WHEN - ( 27 ) THEN NULL WHEN 94 + + 74 THEN NULL WHEN - 8 THEN 67 + 52 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL 61 + 32 * - CASE 80 WHEN 35 THEN - 18 + 32 * + ( 93 ) WHEN 28 * 10 + + 89 * + 32 THEN 29 * COALESCE ( 36 * 93, - 76, + 41, 82 ) + CASE - ( ( + CAST ( CASE 65 WHEN 37 THEN 56 * + MAX ( DISTINCT - 59 ) WHEN + 78 * COALESCE ( 98, 2 * - 46 ) + NULLIF ( 21 - 72 / 24, - 19 ) THEN + 45 * CASE - 91 * COUNT ( * ) WHEN 95 THEN NULL WHEN - 71 THEN - 93 + 16 ELSE 23 END ELSE NULL END AS INTEGER ) ) ) WHEN - ( 27 ) THEN NULL WHEN 94 + + 74 THEN NULL WHEN - 8 THEN 67 + 52 ELSE NULL END END
----
NULL

query II rowsort
SELECT ALL + 72 + - - ( - - 52 ) col1, - 23 AS col2
----
124
-23

query I rowsort
SELECT ALL + 99 + + 12 * + 95 - + 68 * 92 + 17 * 68
----
-3861

query I rowsort
SELECT DISTINCT - ( + 39 ) * - - 73 * - ( - 19 )
----
-54093

onlyif mysql # aggregate syntax: 
query II rowsort label-9393
SELECT DISTINCT SUM( DISTINCT + ( + + 77 ) ) AS col0, + 39
----
77
39

skipif mysql # not compatible
query II rowsort label-9393
SELECT DISTINCT SUM ( DISTINCT + ( + + 77 ) ) AS col0, + 39
----
77
39

query I rowsort
SELECT + 19 * + 77
----
1463

query I rowsort
SELECT - 25 * + - 2 * - 3 AS col0
----
-150

query I rowsort
SELECT ALL - 27 * - 63 * - 31
----
-52731

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT - COALESCE ( + 7, 22, - + COUNT( * ) + + + 98 ) + 78
----
71

skipif mysql # not compatible
query I rowsort label-9397
SELECT - COALESCE ( + 7, 22, - + COUNT ( * ) + + + 98 ) + 78
----
71

query II rowsort
SELECT + 34, - ( - 22 ) AS col1
----
34
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9399
SELECT ALL 15 DIV - - 12 + - 7 - - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL 15 / - - 12 + - 7 - - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9400
SELECT ALL + 38 * - + MAX( ALL + + ( 1 ) ) DIV + - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL + 38 * - + MAX ( ALL + + ( 1 ) ) / + - 67 AS col0
----
0

query I rowsort
SELECT - 79 * 48 * - 30 + - 63 AS col0
----
113697

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9402
SELECT DISTINCT + - 37 * + - NULLIF ( - 96, - 88 * CASE - CAST( NULL AS DECIMAL ) WHEN 28 THEN + 91 * 26 WHEN + 87 THEN NULL ELSE - 59 * ( 85 ) END - MIN( - 67 ) ) - 52 - + 66 col0
----
-3670

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + - 37 * + - NULLIF ( - 96, - 88 * CASE - CAST ( NULL AS REAL ) WHEN 28 THEN + 91 * 26 WHEN + 87 THEN NULL ELSE - 59 * ( 85 ) END - MIN ( - 67 ) ) - 52 - + 66 col0
----
-3670

query I rowsort
SELECT - - 36 + + 26 col0
----
62

query I rowsort
SELECT - + 61 * + 74 AS col0
----
-4514

query II rowsort
SELECT + 23 AS col1, + 88
----
23
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9406
SELECT + 51 + 28 - + COALESCE ( ( - MIN( ALL + 41 ) ), CAST( + 29 AS SIGNED ), + 68 * + 61 ) * - 91
----
-3652

skipif mysql # not compatible
query I rowsort label-9406
SELECT + 51 + 28 - + COALESCE ( ( - MIN ( ALL + 41 ) ), CAST ( + 29 AS INTEGER ), + 68 * + 61 ) * - 91
----
-3652

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT - 9 DIV + - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9407
SELECT - 9 / + - 54 AS col1
----
0

query I rowsort
SELECT + - 34 * + - 42
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT - ( - 31 ) * + - 27 * - MIN( - 32 ) + 63
----
-26721

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - ( - 31 ) * + - 27 * - MIN ( - 32 ) + 63
----
-26721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT ALL + + ( - 69 ) * CAST( + CASE WHEN + 7 > NULL THEN 67 WHEN NOT 33 + - 85 IN ( COUNT( * ) * - 41 ) THEN NULL ELSE NULL END AS SIGNED ) - - COUNT( * ) * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + + ( - 69 ) * CAST ( + CASE WHEN + 7 > NULL THEN 67 WHEN NOT 33 + - 85 IN ( COUNT ( * ) * - 41 ) THEN NULL ELSE NULL END AS INTEGER ) - - COUNT ( * ) * 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT COUNT( ALL + 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9411
SELECT COUNT ( ALL + 2 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT - - ( - 74 ) DIV 58
----
-1

skipif mysql # not compatible
query I rowsort label-9412
SELECT - - ( - 74 ) / 58
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT + - 84 DIV + 3
----
-28

skipif mysql # not compatible
query I rowsort label-9413
SELECT + - 84 / + 3
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT - 84 * + + CASE + + 65 WHEN 42 THEN + 81 * + ( COUNT( DISTINCT 89 ) ) WHEN + 60 THEN 13 + + 11 END + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT - 84 * + + CASE + + 65 WHEN 42 THEN + 81 * + ( COUNT ( DISTINCT 89 ) ) WHEN + 60 THEN 13 + + 11 END + + 85
----
NULL

query I rowsort
SELECT - + 15 + + 5
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT DISTINCT + COUNT( * ) * 10 + 61
----
71

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT + COUNT ( * ) * 10 + 61
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT MIN( - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-9417
SELECT MIN ( - 50 ) AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9418
SELECT ALL MAX( 80 ) + + CAST( + 95 AS SIGNED )
----
175

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL MAX ( 80 ) + + CAST ( + 95 AS INTEGER )
----
175

query I rowsort
SELECT ALL 68 + - 83 - 35 AS col2
----
-50

query I rowsort
SELECT DISTINCT 26 + 14
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT - CAST( - 34 AS SIGNED ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9421
SELECT - CAST ( - 34 AS INTEGER ) AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9422
SELECT ALL MAX( DISTINCT ( - - 39 ) ) + + 38 AS col0, CAST( - 49 AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-9422
SELECT ALL MAX ( DISTINCT ( - - 39 ) ) + + 38 AS col0, CAST ( - 49 AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col2
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT + 32 * + 71 * - MAX( DISTINCT - 91 )
----
206752

skipif mysql # not compatible
query I rowsort label-9423
SELECT + 32 * + 71 * - MAX ( DISTINCT - 91 )
----
206752

query I rowsort
SELECT + 43 + + 72
----
115

query II rowsort
SELECT DISTINCT 55 * - - 70 AS col2, 96 * + 71
----
3850
6816

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT - COUNT( * ) - 66 + - - MAX( ALL - - ( 9 ) ) - + 44 * 47 * - 89 AS col1
----
183994

skipif mysql # not compatible
query I rowsort label-9426
SELECT - COUNT ( * ) - 66 + - - MAX ( ALL - - ( 9 ) ) - + 44 * 47 * - 89 AS col1
----
183994

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT + 96 + + CASE - ( + 17 ) WHEN - 89 - + + 85 + 76 * - 28 THEN NULL WHEN - 49 / COUNT( * ) - - 46 / + ( 31 ) THEN NULL ELSE 62 * + NULLIF ( 13, 5 ) END
----
902

skipif mysql # not compatible
query I rowsort label-9427
SELECT + 96 + + CASE - ( + 17 ) WHEN - 89 - + + 85 + 76 * - 28 THEN NULL WHEN - 49 / COUNT ( * ) - - 46 / + ( 31 ) THEN NULL ELSE 62 * + NULLIF ( 13, 5 ) END
----
902

query I rowsort
SELECT + 72 + 66
----
138

query I rowsort
SELECT ALL + 68 - + 45 + 95 AS col2
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-9430
SELECT ALL 33 AS col1, + ( + + COUNT( * ) ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-9430
SELECT ALL 33 AS col1, + ( + + COUNT ( * ) ) AS col0
----
33
1

query I rowsort
SELECT DISTINCT ( 81 ) - + ( + 80 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT + ( + 41 ) DIV + 87 + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9432
SELECT + ( + 41 ) / + 87 + 95 AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9433
SELECT + 30 DIV - + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9433
SELECT + 30 / - + COUNT ( * )
----
-30

query I rowsort
SELECT 2 * - 66 * - 4
----
528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9435
SELECT - 24 * - 19 + + 84 + + COALESCE ( + COUNT( * ), + - COUNT( 77 ) DIV - 89, - 61 )
----
541

skipif mysql # not compatible
query I rowsort label-9435
SELECT - 24 * - 19 + + 84 + + COALESCE ( + COUNT ( * ), + - COUNT ( 77 ) / - 89, - 61 )
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT - COUNT( * ) * COUNT( * ) * 79 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-9436
SELECT - COUNT ( * ) * COUNT ( * ) * 79 AS col2
----
-79

query I rowsort
SELECT 50 + 2 - - 81
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT + - 36 * + + ( + 22 ) - - - 46 - + 39 * - - COALESCE ( 94, + COUNT( * ) ) AS col1
----
-4504

skipif mysql # not compatible
query I rowsort label-9438
SELECT + - 36 * + + ( + 22 ) - - - 46 - + 39 * - - COALESCE ( 94, + COUNT ( * ) ) AS col1
----
-4504

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT + 80 * - COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9439
SELECT + 80 * - COUNT ( * ) AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9440
SELECT ALL - - 54 AS col2, - 64 * + - 11 + + CAST( NULL AS SIGNED ) + - 40 * - 17
----
54
NULL

skipif mysql # not compatible
query II rowsort label-9440
SELECT ALL - - 54 AS col2, - 64 * + - 11 + + CAST ( NULL AS INTEGER ) + - 40 * - 17
----
54
NULL

query I rowsort
SELECT DISTINCT - 32 * + 81 AS col0
----
-2592

query I rowsort
SELECT ALL - + ( + - 71 )
----
71

query I rowsort
SELECT 5 * - 26 + 89 col1
----
-41

query I rowsort
SELECT 50 * NULLIF ( - 24, - 91 )
----
-1200

query II rowsort
SELECT - 75 AS col1, + 10
----
-75
10

query I rowsort
SELECT ALL + - 27 + - 66 AS col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT - 69 + AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT - 69 + AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + - 99 AS col2, 74 AS col1
----
-99
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT 30 + + ( + COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-9449
SELECT 30 + + ( + COUNT ( * ) )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9450
SELECT ALL + COUNT( * ) + - 27 AS col1, + 3
----
-26
3

skipif mysql # not compatible
query II rowsort label-9450
SELECT ALL + COUNT ( * ) + - 27 AS col1, + 3
----
-26
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL - COUNT( * ) * 67 * + 45 * - + 23
----
69345

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - COUNT ( * ) * 67 * + 45 * - + 23
----
69345

query I rowsort
SELECT DISTINCT + 17 + + - 27 AS col0
----
-10

query I rowsort
SELECT 25 + - ( + + 88 ) col1
----
-63

query II rowsort
SELECT ALL + 44 * + ( - - 46 ), - 74 AS col0
----
2024
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT 6 * - MAX( - ( - 4 ) ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-9455
SELECT 6 * - MAX ( - ( - 4 ) ) col1
----
-24

query I rowsort
SELECT 15 * + 86 * 84 * - + 29
----
-3142440

query I rowsort
SELECT 51 + 2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT CASE + 3 WHEN + 44 THEN - 75 - + - CASE + + 8 WHEN - 26 THEN NULL ELSE CASE + COUNT( * ) WHEN 67 THEN NULL ELSE 97 END END - + 2 WHEN 37 THEN 61 ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT CASE + 3 WHEN + 44 THEN - 75 - + - CASE + + 8 WHEN - 26 THEN NULL ELSE CASE + COUNT ( * ) WHEN 67 THEN NULL ELSE 97 END END - + 2 WHEN 37 THEN 61 ELSE NULL END * + COUNT ( * )
----
NULL

query I rowsort
SELECT 41 * - + 44
----
-1804

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT 53 * COUNT( * ) * COUNT( DISTINCT 12 )
----
53

skipif mysql # not compatible
query I rowsort label-9460
SELECT 53 * COUNT ( * ) * COUNT ( DISTINCT 12 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9461
SELECT DISTINCT 65 * - COUNT( * ), CASE COUNT( * ) WHEN - + COUNT( * ) THEN + MIN( ALL 40 ) WHEN - 72 THEN 65 + + 50 WHEN 13 THEN + 51 ELSE NULL END AS col2
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-9461
SELECT DISTINCT 65 * - COUNT ( * ), CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN + MIN ( ALL 40 ) WHEN - 72 THEN 65 + + 50 WHEN 13 THEN + 51 ELSE NULL END AS col2
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT 27 - + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9462
SELECT 27 - + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT + COUNT( * ) * - 99 * + 23
----
-2277

skipif mysql # not compatible
query I rowsort label-9463
SELECT + COUNT ( * ) * - 99 * + 23
----
-2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT 86 * + - COALESCE ( + 38, + 39, + CASE - CASE + - 37 WHEN - 54 THEN - 40 * - 12 WHEN COUNT( * ) * 33 - - 36 * + ( + 12 * + CASE + 88 WHEN 98 THEN NULL WHEN - COUNT( * ) THEN - 11 + CASE 75 WHEN 4 THEN COUNT( * ) END END ) THEN - 71 END WHEN + COUNT( * ) THEN - CAST( 35 AS SIGNED ) * - 66 END ) AS col1
----
-3268

skipif mysql # not compatible
query I rowsort label-9464
SELECT 86 * + - COALESCE ( + 38, + 39, + CASE - CASE + - 37 WHEN - 54 THEN - 40 * - 12 WHEN COUNT ( * ) * 33 - - 36 * + ( + 12 * + CASE + 88 WHEN 98 THEN NULL WHEN - COUNT ( * ) THEN - 11 + CASE 75 WHEN 4 THEN COUNT ( * ) END END ) THEN - 71 END WHEN + COUNT ( * ) THEN - CAST ( 35 AS INTEGER ) * - 66 END ) AS col1
----
-3268

query I rowsort
SELECT ALL - 95 * NULLIF ( + 29, - + ( + - ( + + 13 ) ) ) - - 68 AS col1
----
-2687

query I rowsort
SELECT DISTINCT - - ( 48 )
----
48

query I rowsort
SELECT + ( + + 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT - ( MAX( + + 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT - ( MAX ( + + 25 ) )
----
-25

query II rowsort
SELECT DISTINCT 70 + 34 AS col2, 79 * + 47 * + 2 * - ( + NULLIF ( + 84, + 14 ) ) * + 32 AS col1
----
104
-19961088

query I rowsort
SELECT ALL 83 + 14 col0
----
97

query I rowsort
SELECT ALL 88 + + 55 - - NULLIF ( - 61, + 68 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT 99 * 58 * + - 39 + - COUNT( * ) AS col0
----
-223939

skipif mysql # not compatible
query I rowsort label-9472
SELECT 99 * 58 * + - 39 + - COUNT ( * ) AS col0
----
-223939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL - - 13 * - + 71 * + 45 + - CAST( NULL AS SIGNED ) + - SUM( - + 66 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - - 13 * - + 71 * + 45 + - CAST ( NULL AS INTEGER ) + - SUM ( - + 66 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9474
SELECT SUM( + 75 ), - 51 AS col2, + COUNT( * ) + + - 43 + + + 74 * 63 + - COUNT( * ) * 9 AS col0
----
75
-51
4611

skipif mysql # not compatible
query III rowsort label-9474
SELECT SUM ( + 75 ), - 51 AS col2, + COUNT ( * ) + + - 43 + + + 74 * 63 + - COUNT ( * ) * 9 AS col0
----
75
-51
4611

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9475
SELECT ALL + 18 + - 43, 48 * - COUNT( + 18 ) - - COUNT( * ) DIV 23 AS col2
----
-25
-48

skipif mysql # not compatible
query II rowsort label-9475
SELECT ALL + 18 + - 43, 48 * - COUNT ( + 18 ) - - COUNT ( * ) / 23 AS col2
----
-25
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9476
SELECT ALL + ( - - 43 ) + - CAST( - 27 AS SIGNED ) + 33 * 54, 27 AS col1
----
1852
27

skipif mysql # not compatible
query II rowsort label-9476
SELECT ALL + ( - - 43 ) + - CAST ( - 27 AS INTEGER ) + 33 * 54, 27 AS col1
----
1852
27

query I rowsort
SELECT ALL 44 * + 35 AS col1
----
1540

query I rowsort
SELECT 25 * - 97 AS col1
----
-2425

query I rowsort
SELECT 29 - - 40 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT + COUNT( ( - 44 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9480
SELECT + COUNT ( ( - 44 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT ALL - 3 + + CASE - + 93 WHEN - 91 + + + COALESCE ( 87, - 9 + + - CAST( NULL AS SIGNED ) + + 30 ) * 46 THEN 37 WHEN + 10 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - 3 + + CASE - + 93 WHEN - 91 + + + COALESCE ( 87, - 9 + + - CAST ( NULL AS INTEGER ) + + 30 ) * 46 THEN 37 WHEN + 10 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 15 * + 78
----
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9483
SELECT 18 + + - 65 + - - COUNT( * ) DIV COUNT( * ) * 46 * - + 37 + ( 26 )
----
-1723

skipif mysql # not compatible
query I rowsort label-9483
SELECT 18 + + - 65 + - - COUNT ( * ) / COUNT ( * ) * 46 * - + 37 + ( 26 )
----
-1723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9484
SELECT DISTINCT - 68 - - - 10 DIV + COALESCE ( + 51, COUNT( * ) + - ( - - 28 ) * - + 95 ) + - CAST( - 19 AS SIGNED ) * 83 AS col0
----
1509

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT - 68 - - - 10 / + COALESCE ( + 51, COUNT ( * ) + - ( - - 28 ) * - + 95 ) + - CAST ( - 19 AS INTEGER ) * 83 AS col0
----
1509

query I rowsort
SELECT ALL + ( 71 ) * - 67
----
-4757

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT - 86 - + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT - 86 - + + COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL NULLIF ( - + 89, - NULLIF ( - 0, 2 * + + 1 ) - - COUNT( * ) )
----
-89

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL NULLIF ( - + 89, - NULLIF ( - 0, 2 * + + 1 ) - - COUNT ( * ) )
----
-89

query I rowsort
SELECT - 66 - 22 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - COUNT( * ) * + + 17
----
-17

skipif mysql # not compatible
query I rowsort label-9489
SELECT - COUNT ( * ) * + + 17
----
-17

query I rowsort
SELECT ALL + 14 * - ( + 93 ) AS col0
----
-1302

query II rowsort
SELECT - 76 AS col0, 89 AS col1
----
-76
89

query I rowsort
SELECT DISTINCT + 96 * - - 45 col2
----
4320

query I rowsort
SELECT ALL - 41 * 1
----
-41

query II rowsort
SELECT - 30 + + 97 - + 33 AS col0, 82 - + - 59
----
34
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT + 36 * + SUM( 79 ) * - - 82 * + - 40 AS col2
----
-9328320

skipif mysql # not compatible
query I rowsort label-9495
SELECT + 36 * + SUM ( 79 ) * - - 82 * + - 40 AS col2
----
-9328320

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + ( + - 55 ) * MAX( ALL COALESCE ( - ( - 81 ), CASE 76 WHEN + 14 + - 54 THEN - 64 WHEN 81 * - 97 THEN + 99 ELSE NULL END + 7 ) )
----
-4455

skipif mysql # not compatible
query I rowsort label-9496
SELECT + ( + - 55 ) * MAX ( ALL COALESCE ( - ( - 81 ), CASE 76 WHEN + 14 + - 54 THEN - 64 WHEN 81 * - 97 THEN + 99 ELSE NULL END + 7 ) )
----
-4455

query I rowsort
SELECT ALL CASE + 73 WHEN - + AVG ( DISTINCT + 91 ) THEN + - 55 + - 94 * - 14 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT + + ( - - MAX( + 76 ) ) - - 20 + - 58
----
38

skipif mysql # not compatible
query I rowsort label-9498
SELECT + + ( - - MAX ( + 76 ) ) - - 20 + - 58
----
38

query I rowsort
SELECT + 86 * - 37
----
-3182

query I rowsort
SELECT - - 4 + + 68 * + 36
----
2452

query I rowsort
SELECT - + 29 + + 32 * + 61 + + ( + + 52 )
----
1975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL + CAST( + 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + CAST ( + 9 AS INTEGER ) AS col2
----
9

query II rowsort
SELECT DISTINCT 8 AS col2, + ( + - 48 )
----
8
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + - COUNT( ALL - COALESCE ( 77, - + NULLIF ( - 43, 32 + + - 44 ) + - 39, + 17 * 50 ) ) * 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9504
SELECT + - COUNT ( ALL - COALESCE ( 77, - + NULLIF ( - 43, 32 + + - 44 ) + - 39, + 17 * 50 ) ) * 10 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL MIN( DISTINCT + - 43 ) + - + COUNT( * ) + 46 * + 64
----
2900

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL MIN ( DISTINCT + - 43 ) + - + COUNT ( * ) + 46 * + 64
----
2900

onlyif mysql # aggregate syntax: 
query II rowsort label-9506
SELECT + 62 + - ( - + ( + - 6 ) ) - + ( - 78 ) AS col0, 44 * NULLIF ( - 44, + COUNT( * ) - - 5 * 11 ) - + 71 AS col2
----
134
-2007

skipif mysql # not compatible
query II rowsort label-9506
SELECT + 62 + - ( - + ( + - 6 ) ) - + ( - 78 ) AS col0, 44 * NULLIF ( - 44, + COUNT ( * ) - - 5 * 11 ) - + 71 AS col2
----
134
-2007

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - COUNT( * ) * + 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9507
SELECT - COUNT ( * ) * + 40 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9508
SELECT ALL + 20 * + + 59 * + - 23 + - + COUNT( * ) + - CAST( - 73 AS SIGNED ), 8 AS col2
----
-27068
8

skipif mysql # not compatible
query II rowsort label-9508
SELECT ALL + 20 * + + 59 * + - 23 + - + COUNT ( * ) + - CAST ( - 73 AS INTEGER ), 8 AS col2
----
-27068
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT - + 26 * + + COUNT( * ) + + 30 * 95 + + 90 AS col2
----
2914

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT - + 26 * + + COUNT ( * ) + + 30 * 95 + + 90 AS col2
----
2914

query II rowsort
SELECT ALL + COALESCE ( + - 77, 51 ), 10 AS col2
----
-77
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT + + COALESCE ( 8, + COUNT( * ), + 28 ) * - 60 * 25
----
-12000

skipif mysql # not compatible
query I rowsort label-9511
SELECT + + COALESCE ( 8, + COUNT ( * ), + 28 ) * - 60 * 25
----
-12000

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT - 81 * + SUM( ALL + - 44 ) + - - 91 + + 68 * - 53 + - + 38
----
13

skipif mysql # not compatible
query I rowsort label-9512
SELECT - 81 * + SUM ( ALL + - 44 ) + - - 91 + + 68 * - 53 + - + 38
----
13

query I rowsort
SELECT ALL 34 * 96
----
3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT DISTINCT + 70 * 18 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT + 70 * 18 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9515
SELECT DISTINCT + MAX( ALL - + 7 ) * + COUNT( * ) AS col2, 91 * - 66
----
-7
-6006

skipif mysql # not compatible
query II rowsort label-9515
SELECT DISTINCT + MAX ( ALL - + 7 ) * + COUNT ( * ) AS col2, 91 * - 66
----
-7
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL + - NULLIF ( + 27, - 64 * CAST( - ( 99 ) AS SIGNED ) * - 85 * - - 29 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL + - NULLIF ( + 27, - 64 * CAST ( - ( 99 ) AS INTEGER ) * - 85 * - - 29 ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT ALL - ( + - 20 ) * CASE - + MAX( ALL + 20 ) WHEN 93 - + CAST( - 11 AS SIGNED ) - 30 * - 21 THEN - COALESCE ( + COUNT( * ), 62 / 50 + - 87 ) ELSE NULL END * - 69 + 38 * + 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - ( + - 20 ) * CASE - + MAX ( ALL + 20 ) WHEN 93 - + CAST ( - 11 AS INTEGER ) - 30 * - 21 THEN - COALESCE ( + COUNT ( * ), 62 / 50 + - 87 ) ELSE NULL END * - 69 + 38 * + 71 col2
----
NULL

query II rowsort
SELECT + 91 * + + 98 + + - NULLIF ( - 22, AVG ( + 6 ) ), NULLIF ( - + 69, + 84 - + 11 ) AS col1
----
8940
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT CASE + COUNT( * ) WHEN 29 THEN NULL WHEN + 23 THEN + CAST( NULL AS SIGNED ) + - ( COUNT( * ) ) * 60 / + 31 * 57 WHEN NULLIF ( 23, - ( - 20 ) + 63 ) * - SUM( ( 79 ) ) + - 38 THEN 17 + - 91 ELSE 26 + - 43 END AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9519
SELECT CASE + COUNT ( * ) WHEN 29 THEN NULL WHEN + 23 THEN + CAST ( NULL AS INTEGER ) + - ( COUNT ( * ) ) * 60 / + 31 * 57 WHEN NULLIF ( 23, - ( - 20 ) + 63 ) * - SUM ( ( 79 ) ) + - 38 THEN 17 + - 91 ELSE 26 + - 43 END AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9520
SELECT + MIN( + 79 ) + - 91 + + - 86, 49 * + 33 AS col1
----
-98
1617

skipif mysql # not compatible
query II rowsort label-9520
SELECT + MIN ( + 79 ) + - 91 + + - 86, 49 * + 33 AS col1
----
-98
1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9521
SELECT ALL + 33 * 31 - - 44 + 17 - - COUNT( * ) DIV 42 AS col0
----
1084

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + 33 * 31 - - 44 + 17 - - COUNT ( * ) / 42 AS col0
----
1084

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT - NULLIF ( + + 34, - + 26 ) * - - 38 + + 39 * + COUNT( * )
----
-1253

skipif mysql # not compatible
query I rowsort label-9522
SELECT - NULLIF ( + + 34, - + 26 ) * - - 38 + + 39 * + COUNT ( * )
----
-1253

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT + 20 + + - 4 + - + 20 DIV + - 26 * 20 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9523
SELECT + 20 + + - 4 + - + 20 / + - 26 * 20 AS col1
----
16

query I rowsort
SELECT + 79 * 34 col2
----
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL - ( COUNT( * ) ) * + + ( + ( + - ( + 95 ) ) ) + + NULLIF ( 53, - CASE 4 WHEN + 9 + 38 THEN 97 * 45 WHEN COUNT( * ) / 39 + + 97 THEN NULL WHEN + ( - 11 ) THEN + 2 * - 29 + 70 * COUNT( * ) END + 46 ) col1
----
148

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - ( COUNT ( * ) ) * + + ( + ( + - ( + 95 ) ) ) + + NULLIF ( 53, - CASE 4 WHEN + 9 + 38 THEN 97 * 45 WHEN COUNT ( * ) / 39 + + 97 THEN NULL WHEN + ( - 11 ) THEN + 2 * - 29 + 70 * COUNT ( * ) END + 46 ) col1
----
148

query I rowsort
SELECT + 73 * COALESCE ( 29, 99 )
----
2117

query I rowsort
SELECT + 49 * - 2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT ALL CASE + 20 WHEN COUNT( * ) * - 74 + - 89 * - + 41 * - 80 THEN COALESCE ( - + 92, 79 ) WHEN + CAST( NULL AS SIGNED ) + - NULLIF ( 91, + 80 ) THEN NULL WHEN 1 + + 81 * 1 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL CASE + 20 WHEN COUNT ( * ) * - 74 + - 89 * - + 41 * - 80 THEN COALESCE ( - + 92, 79 ) WHEN + CAST ( NULL AS INTEGER ) + - NULLIF ( 91, + 80 ) THEN NULL WHEN 1 + + 81 * 1 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 46 ) col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT - NULLIF ( + 52, - + 2 * + SUM( DISTINCT 49 ) + + 6 * SUM( ALL + 17 ) - 70 ) + - ( 71 )
----
-123

skipif mysql # not compatible
query I rowsort label-9530
SELECT - NULLIF ( + 52, - + 2 * + SUM ( DISTINCT 49 ) + + 6 * SUM ( ALL + 17 ) - 70 ) + - ( 71 )
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT NULLIF ( - 17, + + 20 * + 6 - - + 38 + + - MAX( - 78 ) * - + 99 + + 75 )
----
-17

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT NULLIF ( - 17, + + 20 * + 6 - - + 38 + + - MAX ( - 78 ) * - + 99 + + 75 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT DISTINCT NULLIF ( + MIN( + 89 ), CASE - 6 WHEN NULLIF ( + ( + 49 ), 72 + 5 ) THEN 31 WHEN + 78 * + 26 THEN NULL WHEN 0 - COALESCE ( CAST( 26 AS SIGNED ), + COUNT( * ) * + COUNT( * ) ) * 39 THEN NULL END ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT NULLIF ( + MIN ( + 89 ), CASE - 6 WHEN NULLIF ( + ( + 49 ), 72 + 5 ) THEN 31 WHEN + 78 * + 26 THEN NULL WHEN 0 - COALESCE ( CAST ( 26 AS INTEGER ), + COUNT ( * ) * + COUNT ( * ) ) * 39 THEN NULL END ) AS col0
----
89

query I rowsort
SELECT ALL ( - + 62 ) AS col0
----
-62

query I rowsort
SELECT - CASE 71 WHEN + 84 THEN 22 WHEN + 77 THEN NULL END * + 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9535
SELECT DISTINCT CAST( - 24 AS SIGNED ) col0, 54 * + 99 * MAX( DISTINCT - 40 ) - 34 col1
----
-24
-213874

skipif mysql # not compatible
query II rowsort label-9535
SELECT DISTINCT CAST ( - 24 AS INTEGER ) col0, 54 * + 99 * MAX ( DISTINCT - 40 ) - 34 col1
----
-24
-213874

query I rowsort
SELECT ALL + 73 + - 16 + + 6 + 60 AS col0
----
123

query I rowsort
SELECT ALL + 62 * 43
----
2666

query I rowsort
SELECT DISTINCT - + 84 + - 72 AS col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - CASE + 55 WHEN + - 39 * 28 + - - 14 * ( + - 43 ) * + COUNT( * ) * + + 93 * 18 THEN NULL WHEN 64 THEN MIN( DISTINCT - 26 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT - CASE + 55 WHEN + - 39 * 28 + - - 14 * ( + - 43 ) * + COUNT ( * ) * + + 93 * 18 THEN NULL WHEN 64 THEN MIN ( DISTINCT - 26 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 6 - 63
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - ( + - MAX( + 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-9541
SELECT - ( + - MAX ( + 42 ) )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT - - 57 DIV - + 28
----
-2

skipif mysql # not compatible
query I rowsort label-9542
SELECT - - 57 / - + 28
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT + COALESCE ( 38, - - 94 * CAST( + + 53 AS SIGNED ) + - 51 + + + 78 + - 59 + - 25 ) * - 20
----
-760

skipif mysql # not compatible
query I rowsort label-9543
SELECT + COALESCE ( 38, - - 94 * CAST ( + + 53 AS INTEGER ) + - 51 + + + 78 + - 59 + - 25 ) * - 20
----
-760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9544
SELECT DISTINCT + - 51 DIV - 57 * COUNT( 23 ) + + 66 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT + - 51 / - 57 * COUNT ( 23 ) + + 66 / + 55
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9545
SELECT ALL + + MIN( + 9 ) DIV + 70 + + 71 + + - 72 * + - 70 + - 96 AS col2
----
5015

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + + MIN ( + 9 ) / + 70 + + 71 + + - 72 * + - 70 + - 96 AS col2
----
5015

onlyif mysql # aggregate syntax: 
query II rowsort label-9546
SELECT + ( 32 ) - COUNT( * ) - - COUNT( * ), - 48 AS col1
----
32
-48

skipif mysql # not compatible
query II rowsort label-9546
SELECT + ( 32 ) - COUNT ( * ) - - COUNT ( * ), - 48 AS col1
----
32
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ALL + NULLIF ( - 41, + + COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + NULLIF ( - 41, + + COUNT ( * ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT + 40 * + - MAX( + - 52 ) AS col0
----
2080

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT + 40 * + - MAX ( + - 52 ) AS col0
----
2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT + 33 * + COUNT( DISTINCT - CAST( 39 AS SIGNED ) ) + + - ( NULLIF ( - + 94, 34 * - + COUNT( * ) + - - 32 - - 47 ) ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-9549
SELECT + 33 * + COUNT ( DISTINCT - CAST ( 39 AS INTEGER ) ) + + - ( NULLIF ( - + 94, 34 * - + COUNT ( * ) + - - 32 - - 47 ) ) AS col2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9550
SELECT DISTINCT - 2, - CAST( NULL AS SIGNED ) AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-9550
SELECT DISTINCT - 2, - CAST ( NULL AS INTEGER ) AS col1
----
-2
NULL

query I rowsort
SELECT ALL - 22 * - 52 AS col2
----
1144

query I rowsort
SELECT ALL 43 - + 93
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT 44 * + ( - CAST( 33 AS SIGNED ) )
----
-1452

skipif mysql # not compatible
query I rowsort label-9553
SELECT 44 * + ( - CAST ( 33 AS INTEGER ) )
----
-1452

query I rowsort
SELECT ALL 55 * 43 * - 2 AS col1
----
-4730

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT DISTINCT 78 DIV + 18 col2
----
4

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT 78 / + 18 col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9556
SELECT 80 AS col2, COUNT( * ) / + 36 + CAST( NULL AS DECIMAL ) + + 35 / - 17 + - 48 * 80 * 52 / - 16 * 86 col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9556
SELECT 80 AS col2, COUNT ( * ) / + 36 + CAST ( NULL AS REAL ) + + 35 / - 17 + - 48 * 80 * 52 / - 16 * 86 col0
----
80
NULL

query I rowsort
SELECT 63 + + 83 AS col2
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT 34 DIV - NULLIF ( 89, 86 )
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT 34 / - NULLIF ( 89, 86 )
----
0

query I rowsort
SELECT 69 * 6 col0
----
414

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT ALL 25 DIV + - NULLIF ( + + 86, - 35 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL 25 / + - NULLIF ( + + 86, - 35 ) AS col0
----
0

query I rowsort
SELECT 40 - + 33
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT DISTINCT 42 DIV - COUNT( - + ( + 47 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT 42 / - COUNT ( - + ( + 47 ) ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9563
SELECT - 75 AS col0, SUM( DISTINCT - 89 ) + + 32 AS col2
----
-75
-57

skipif mysql # not compatible
query II rowsort label-9563
SELECT - 75 AS col0, SUM ( DISTINCT - 89 ) + + 32 AS col2
----
-75
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT 53 + - 3 - - + ( ( 6 ) ) * - 34 - - - CAST( - 60 AS SIGNED ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-9564
SELECT 53 + - 3 - - + ( ( 6 ) ) * - 34 - - - CAST ( - 60 AS INTEGER ) col0
----
-94

query I rowsort
SELECT ALL 77 * - - ( - ( - + 93 ) ) AS col1
----
7161

query I rowsort
SELECT 59 * - + ( 0 ) AS col0
----
0

query II rowsort
SELECT ALL 81 AS col0, 44 AS col1
----
81
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT 2 - + COALESCE ( 57, - 32 * 6 + + NULLIF ( - CASE + - 70 WHEN + - 68 THEN - 78 DIV 78 END, + COUNT( * ) ) * + 60, ( 14 ) * 71 + - 87 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9568
SELECT 2 - + COALESCE ( 57, - 32 * 6 + + NULLIF ( - CASE + - 70 WHEN + - 68 THEN - 78 / 78 END, + COUNT ( * ) ) * + 60, ( 14 ) * 71 + - 87 ) AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9569
SELECT + COUNT( * ) - - 65 DIV - COUNT( * ), + COUNT( * ) AS col2
----
-64
1

skipif mysql # not compatible
query II rowsort label-9569
SELECT + COUNT ( * ) - - 65 / - COUNT ( * ), + COUNT ( * ) AS col2
----
-64
1

query I rowsort
SELECT DISTINCT 9 + - 3 AS col2
----
6

query I rowsort
SELECT ALL - 16 + 31
----
15

query I rowsort
SELECT ALL + 41 + - 13
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - 97 + - ( 26 ) - - SUM( ALL + - 97 ) + - + COUNT( * ) AS col2
----
-221

skipif mysql # not compatible
query I rowsort label-9573
SELECT - 97 + - ( 26 ) - - SUM ( ALL + - 97 ) + - + COUNT ( * ) AS col2
----
-221

query I rowsort
SELECT 73 + + + 81 AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT - 80 - - 51 * COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-9575
SELECT - 80 - - 51 * COUNT ( * )
----
-29

query I rowsort
SELECT - 24 + 91 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9577
SELECT 63 - 38 + + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / SUM( - 18 ) * + + COUNT( + + 21 ) * + CAST( NULL AS SIGNED ) + - 63 * 64 / + CASE WHEN + CASE 19 WHEN ( CASE 40 WHEN 69 * - 69 THEN NULL WHEN + 7 THEN 12 ELSE ( COUNT( * ) ) * 82 END ) THEN + 63 / + CAST( + 30 AS DECIMAL ) ELSE NULL END = COUNT( * ) * 14 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT 63 - 38 + + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / SUM ( - 18 ) * + + COUNT ( + + 21 ) * + CAST ( NULL AS INTEGER ) + - 63 * 64 / + CASE WHEN + CASE 19 WHEN ( CASE 40 WHEN 69 * - 69 THEN NULL WHEN + 7 THEN 12 ELSE ( COUNT ( * ) ) * 82 END ) THEN + 63 / + CAST ( + 30 AS REAL ) ELSE NULL END = COUNT ( * ) * 14 THEN COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - COUNT( * ) + 72
----
71

skipif mysql # not compatible
query I rowsort label-9579
SELECT - COUNT ( * ) + 72
----
71

query I rowsort
SELECT ALL - + 6 - 3
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9581
SELECT + CAST( NULL AS DECIMAL ) * + - 21 + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT + CAST ( NULL AS REAL ) * + - 21 + 29 AS col2
----
NULL

query I rowsort
SELECT ALL - ( + + 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9583
SELECT 42 + 84 + - COALESCE ( + COUNT( * ), + + 63, 58 DIV - 30 * 59 - + 44, 47 DIV + 55 )
----
125

skipif mysql # not compatible
query I rowsort label-9583
SELECT 42 + 84 + - COALESCE ( + COUNT ( * ), + + 63, 58 / - 30 * 59 - + 44, 47 / + 55 )
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT + COUNT( * ) DIV + NULLIF ( + 56, - 13 ) * 74 + + 28 + + - ( - 47 )
----
75

skipif mysql # not compatible
query I rowsort label-9584
SELECT + COUNT ( * ) / + NULLIF ( + 56, - 13 ) * 74 + + 28 + + - ( - 47 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL - - 14 - - SUM( ALL - CASE - - ( + 94 ) WHEN + + 21 THEN 5 WHEN - 31 THEN NULL ELSE NULL END ) + 95 - - 17 / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL - - 14 - - SUM ( ALL - CASE - - ( + 94 ) WHEN + + 21 THEN 5 WHEN - 31 THEN NULL ELSE NULL END ) + 95 - - 17 / 2
----
NULL

query I rowsort
SELECT + 13 * + 61 AS col0
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT 19 * - COUNT( * ) - + 58 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9587
SELECT 19 * - COUNT ( * ) - + 58 AS col1
----
-77

query I rowsort
SELECT + 87 + 0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL - + SUM( + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - + SUM ( + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9590
SELECT + 38, COUNT( * ) AS col0
----
38
1

skipif mysql # not compatible
query II rowsort label-9590
SELECT + 38, COUNT ( * ) AS col0
----
38
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT 54 DIV - - COALESCE ( + + 74, - 15 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9591
SELECT 54 / - - COALESCE ( + + 74, - 15 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT 25 * - - 92 * - - COALESCE ( + 71, + COUNT( - 31 ) ) * - 63 AS col0
----
-10287900

skipif mysql # not compatible
query I rowsort label-9592
SELECT 25 * - - 92 * - - COALESCE ( + 71, + COUNT ( - 31 ) ) * - 63 AS col0
----
-10287900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9593
SELECT ALL + CASE + 40 WHEN + + 15 * - CASE - + 0 WHEN + 38 THEN - - SUM( ALL - ( - 58 ) ) END + - + 22 + - 63 / 62 THEN NULL WHEN CAST( - 56 AS SIGNED ) * + 76 THEN - 3 ELSE 1 / + 59 END / CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL + CASE + 40 WHEN + + 15 * - CASE - + 0 WHEN + 38 THEN - - SUM ( ALL - ( - 58 ) ) END + - + 22 + - 63 / 62 THEN NULL WHEN CAST ( - 56 AS INTEGER ) * + 76 THEN - 3 ELSE 1 / + 59 END / CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT + 4 AS col1, - 28 AS col2
----
4
-28

query I rowsort
SELECT ALL 37 * + 98
----
3626

query II rowsort
SELECT + 59 AS col2, - 87 * + - 61
----
59
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL - CASE COUNT( * ) WHEN + ( 72 ) - - + 64 THEN NULL WHEN - 59 THEN - + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - CASE COUNT ( * ) WHEN + ( 72 ) - - + 64 THEN NULL WHEN - 59 THEN - + 20 END
----
NULL

query II rowsort
SELECT 22 AS col0, 18 AS col1
----
22
18

query I rowsort
SELECT 79 * - - 73
----
5767

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT + 70 col0, - 23 + + ( + COUNT( * ) )
----
70
-22

skipif mysql # not compatible
query II rowsort label-9600
SELECT + 70 col0, - 23 + + ( + COUNT ( * ) )
----
70
-22

query I rowsort
SELECT ( + 11 ) + + + 66
----
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9602
SELECT DISTINCT 95 + AVG ( ALL + + CASE CASE - 29 WHEN 78 THEN NULL ELSE + - 62 END WHEN ( - + CAST( NULL AS DECIMAL ) ) + - 43 * - 26 + 79 * - 31 THEN NULL WHEN - 77 - 30 * + 69 THEN NULL WHEN 13 * CAST( NULL AS SIGNED ) + + 82 THEN 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT 95 + AVG ( ALL + + CASE CASE - 29 WHEN 78 THEN NULL ELSE + - 62 END WHEN ( - + CAST ( NULL AS REAL ) ) + - 43 * - 26 + 79 * - 31 THEN NULL WHEN - 77 - 30 * + 69 THEN NULL WHEN 13 * CAST ( NULL AS INTEGER ) + + 82 THEN 44 END )
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL 71 + - COUNT( ALL COALESCE ( - 8, - 61 ) ) * + - 17 * 59 * 73
----
73290

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL 71 + - COUNT ( ALL COALESCE ( - 8, - 61 ) ) * + - 17 * 59 * 73
----
73290

query II rowsort
SELECT 59 AS col1, 99
----
59
99

query I rowsort
SELECT DISTINCT - 65 + + 77 + - - 98 AS col2
----
110

query II rowsort
SELECT DISTINCT + 4 AS col0, + 39 AS col2
----
4
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT ALL + 56 DIV + + 70 + + 90
----
90

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL + 56 / + + 70 + + 90
----
90

query I rowsort
SELECT ALL 98 + + 87 + - - 15
----
200

query I rowsort
SELECT 9 + - 63 col0
----
-54

query I rowsort
SELECT 86 + 1 * + 56 AS col0
----
142

query I rowsort
SELECT NULLIF ( - 3, + 19 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT COUNT( * ) + 47
----
48

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT COUNT ( * ) + 47
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL + COUNT( * ) - 72 * + 37 AS col0
----
-2663

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL + COUNT ( * ) - 72 * + 37 AS col0
----
-2663

query I rowsort
SELECT ALL 0 * + 8 AS col2
----
0

query I rowsort
SELECT + 44 * 65 AS col0
----
2860

query I rowsort
SELECT ALL NULLIF ( 50, - 82 + - 22 ) AS col2
----
50

query I rowsort
SELECT - + 3 col2
----
-3

query II rowsort
SELECT ALL 34 AS col1, 61
----
34
61

query I rowsort
SELECT + 24 - - + 34
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT 75 AS col2, - COUNT( * ) * + 30 AS col0
----
75
-30

skipif mysql # not compatible
query II rowsort label-9621
SELECT 75 AS col2, - COUNT ( * ) * + 30 AS col0
----
75
-30

query I rowsort
SELECT + NULLIF ( 54, - 87 ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT + 74 * CAST( + 48 AS SIGNED ) AS col2
----
3552

skipif mysql # not compatible
query I rowsort label-9623
SELECT + 74 * CAST ( + 48 AS INTEGER ) AS col2
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT CASE + 13 WHEN 33 THEN NULL WHEN - ( - 91 ) * - NULLIF ( 83, + 33 * - - ( + 0 ) * - - 62 ) THEN 77 * + 9 + - SUM( DISTINCT - 44 ) * 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT CASE + 13 WHEN 33 THEN NULL WHEN - ( - 91 ) * - NULLIF ( 83, + 33 * - - ( + 0 ) * - - 62 ) THEN 77 * + 9 + - SUM ( DISTINCT - 44 ) * 5 END
----
NULL

query I rowsort
SELECT ALL + ( + ( - 51 ) ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL + 50 * + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + 50 * + COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT - COUNT( * ) * + 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9627
SELECT - COUNT ( * ) * + 44 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT DISTINCT - COUNT( DISTINCT - + 76 ) * + 88 + - 52
----
-140

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT - COUNT ( DISTINCT - + 76 ) * + 88 + - 52
----
-140

query I rowsort
SELECT + NULLIF ( - 55, - - ( ( 16 ) ) - - 11 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT - COUNT( + - 37 ) * + 82
----
-82

skipif mysql # not compatible
query I rowsort label-9630
SELECT - COUNT ( + - 37 ) * + 82
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT ALL 55 * + 60 + 19 * - - 57 + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL 55 * + 60 + 19 * - - 57 + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT - COUNT( * ) * + 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9632
SELECT - COUNT ( * ) * + 87 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - 66 + CASE - 76 WHEN + - 88 + - SUM( - 18 ) THEN - 79 + + 38 WHEN - - MIN( ALL + 76 ) * + 47 + - COUNT( * ) * 68 + 25 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT - 66 + CASE - 76 WHEN + - 88 + - SUM ( - 18 ) THEN - 79 + + 38 WHEN - - MIN ( ALL + 76 ) * + 47 + - COUNT ( * ) * 68 + 25 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 84 * + + 85
----
-7140

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT + COUNT( * ) * + + NULLIF ( + 68, - - AVG ( + ( - + 54 ) ) ) + - + 31 * - SUM( ALL - 2 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9635
SELECT + COUNT ( * ) * + + NULLIF ( + 68, - - AVG ( + ( - + 54 ) ) ) + - + 31 * - SUM ( ALL - 2 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT ALL + 24 DIV + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + 24 / + 40 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9637
SELECT DISTINCT + COUNT( * ) DIV + 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT + COUNT ( * ) / + 20 AS col2
----
0

query I rowsort
SELECT ALL 11 * - 19 + + - ( 96 ) AS col2
----
-305

query I rowsort
SELECT ALL 42 * ( - 3 ) + + 85 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-9640
SELECT ALL + - ( + - 59 ) AS col0, - 70 * 40 + + COUNT( * ) + + COUNT( * ) AS col2
----
59
-2798

skipif mysql # not compatible
query II rowsort label-9640
SELECT ALL + - ( + - 59 ) AS col0, - 70 * 40 + + COUNT ( * ) + + COUNT ( * ) AS col2
----
59
-2798

query I rowsort
SELECT + ( 38 ) * + 83
----
3154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT + ( - ( + CAST( + - 37 AS SIGNED ) ) ) col1
----
37

skipif mysql # not compatible
query I rowsort label-9642
SELECT + ( - ( + CAST ( + - 37 AS INTEGER ) ) ) col1
----
37

query I rowsort
SELECT ALL - 33 - + 65 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-9644
SELECT + COUNT( * ) - - - COUNT( * ) AS col2, MIN( 56 ) AS col0
----
0
56

skipif mysql # not compatible
query II rowsort label-9644
SELECT + COUNT ( * ) - - - COUNT ( * ) AS col2, MIN ( 56 ) AS col0
----
0
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT + - 95 * - MIN( DISTINCT - 98 ) + + + 58 + - ( + 19 ) * - 28 + - 58 + + - 5 col0
----
-8783

skipif mysql # not compatible
query I rowsort label-9645
SELECT + - 95 * - MIN ( DISTINCT - 98 ) + + + 58 + - ( + 19 ) * - 28 + - 58 + + - 5 col0
----
-8783

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT - 86 * - 34 + + COUNT( * ) * - - 48 * + 43 col0
----
4988

skipif mysql # not compatible
query I rowsort label-9646
SELECT - 86 * - 34 + + COUNT ( * ) * - - 48 * + 43 col0
----
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT + MAX( ALL + 64 ) * - + 46
----
-2944

skipif mysql # not compatible
query I rowsort label-9647
SELECT + MAX ( ALL + 64 ) * - + 46
----
-2944

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - + NULLIF ( + + COUNT( * ), + + 77 * + 56 / ( - + 72 ) * + + 71 ) + + 59
----
58

skipif mysql # not compatible
query I rowsort label-9648
SELECT - + NULLIF ( + + COUNT ( * ), + + 77 * + 56 / ( - + 72 ) * + + 71 ) + + 59
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT + + 12 DIV 75 * 58 * - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9649
SELECT + + 12 / 75 * 58 * - 84 AS col2
----
0

query I rowsort
SELECT + - 43 + + 68 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9651
SELECT + - COUNT( * ) - + 24 + + + CAST( NULL AS SIGNED ) - ( - COUNT( - 93 ) ) + + 85 * 60 + - - 53 + - 34 * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT + - COUNT ( * ) - + 24 + + + CAST ( NULL AS INTEGER ) - ( - COUNT ( - 93 ) ) + + 85 * 60 + - - 53 + - 34 * + 33
----
NULL

query I rowsort
SELECT + + 68 + 55 AS col1
----
123

query II rowsort
SELECT ALL + 57 * - 60, + 93 col1
----
-3420
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT DISTINCT 0 DIV - 95 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT 0 / - 95 / - 91 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9655
SELECT ALL CAST( NULL AS DECIMAL ) + - AVG ( 48 ) / - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL CAST ( NULL AS REAL ) + - AVG ( 48 ) / - 75
----
NULL

query I rowsort
SELECT ALL 21 + - 55 col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT + COALESCE ( - 50, - COUNT( * ) ) + COALESCE ( 23, + + 58 ) + + 15
----
-12

skipif mysql # not compatible
query I rowsort label-9657
SELECT + COALESCE ( - 50, - COUNT ( * ) ) + COALESCE ( 23, + + 58 ) + + 15
----
-12

query I rowsort
SELECT + 97 * - + 24
----
-2328

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT + COUNT( * ) + - - 24 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9659
SELECT + COUNT ( * ) + - - 24 AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT CAST( - + 46 AS SIGNED ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9660
SELECT CAST ( - + 46 AS INTEGER ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9661
SELECT CAST( NULL AS SIGNED ) AS col1, + 98 AS col0
----
NULL
98

skipif mysql # not compatible
query II rowsort label-9661
SELECT CAST ( NULL AS INTEGER ) AS col1, + 98 AS col0
----
NULL
98

query II rowsort
SELECT + 58 col2, 57 col1
----
58
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT ( - SUM( DISTINCT + 83 ) ) col1, + 13
----
-83
13

skipif mysql # not compatible
query II rowsort label-9663
SELECT ( - SUM ( DISTINCT + 83 ) ) col1, + 13
----
-83
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT ALL 88 DIV - - 5 + - + 15 * - 30 AS col0
----
467

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL 88 / - - 5 + - + 15 * - 30 AS col0
----
467

query I rowsort
SELECT ALL + 19 * + 6
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9666
SELECT - ( + 99 ) + 45 + - COUNT( * ) * - + COUNT( * ) DIV 10 * + 45 * 6 * COALESCE ( 48, - 88 * - + MIN( - COALESCE ( - NULLIF ( - 56, 9 ), + 82 ) ) - + COUNT( * ) + 81 ) * - 10 - 26
----
-80

skipif mysql # not compatible
query I rowsort label-9666
SELECT - ( + 99 ) + 45 + - COUNT ( * ) * - + COUNT ( * ) / 10 * + 45 * 6 * COALESCE ( 48, - 88 * - + MIN ( - COALESCE ( - NULLIF ( - 56, 9 ), + 82 ) ) - + COUNT ( * ) + 81 ) * - 10 - 26
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9667
SELECT DISTINCT 63 * + - 66 * + CAST( NULL AS SIGNED ) + - - 86 + + + COUNT( - 12 ) + 58 * + + 6, + 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-9667
SELECT DISTINCT 63 * + - 66 * + CAST ( NULL AS INTEGER ) + - - 86 + + + COUNT ( - 12 ) + 58 * + + 6, + 76 AS col2
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT COUNT( * ) * + 21 + + + 1 * + 46
----
67

skipif mysql # not compatible
query I rowsort label-9668
SELECT COUNT ( * ) * + 21 + + + 1 * + 46
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT - CAST( - MIN( DISTINCT - - 42 ) AS SIGNED ) * - 98
----
-4116

skipif mysql # not compatible
query I rowsort label-9669
SELECT - CAST ( - MIN ( DISTINCT - - 42 ) AS INTEGER ) * - 98
----
-4116

query I rowsort
SELECT ALL 38 * 46 + + + 59 + + 40 AS col2
----
1847

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT + COALESCE ( + + 49, - 8 + - COUNT( * ), - ( + 47 ) ) * 34
----
1666

skipif mysql # not compatible
query I rowsort label-9671
SELECT + COALESCE ( + + 49, - 8 + - COUNT ( * ), - ( + 47 ) ) * 34
----
1666

query I rowsort
SELECT ALL + 20 * + - 28
----
-560

query I rowsort
SELECT + ( 81 ) + - ( 64 ) * + 87
----
-5487

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + - COALESCE ( - 75, + COUNT( * ) ) + + + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9674
SELECT + - COALESCE ( - 75, + COUNT ( * ) ) + + + COUNT ( * ) AS col1
----
76

query I rowsort
SELECT - 33 - - 30 - - 2 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT - 78 * + + 5 * - COUNT( * ) - - COUNT( * )
----
391

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT - 78 * + + 5 * - COUNT ( * ) - - COUNT ( * )
----
391

query I rowsort
SELECT ALL - - 99 * + - 1 + - + 60 * - + 4 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - 13 + + ( + COUNT( * ) ) + - - ( + 75 )
----
63

skipif mysql # not compatible
query I rowsort label-9678
SELECT - 13 + + ( + COUNT ( * ) ) + - - ( + 75 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9679
SELECT ALL 29, CAST( NULL AS SIGNED ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-9679
SELECT ALL 29, CAST ( NULL AS INTEGER ) AS col1
----
29
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9680
SELECT - COUNT( * ) AS col0, - 87 * - 6 - + + ( - 11 )
----
-1
533

skipif mysql # not compatible
query II rowsort label-9680
SELECT - COUNT ( * ) AS col0, - 87 * - 6 - + + ( - 11 )
----
-1
533

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT - + 32 + - + NULLIF ( - 98, - ( + + COUNT( * ) ) + - + 71 ) - MAX( + 88 ) - - + 37 AS col1, 80 * + 33 AS col1
----
15
2640

skipif mysql # not compatible
query II rowsort label-9681
SELECT - + 32 + - + NULLIF ( - 98, - ( + + COUNT ( * ) ) + - + 71 ) - MAX ( + 88 ) - - + 37 AS col1, 80 * + 33 AS col1
----
15
2640

query I rowsort
SELECT - ( - + 90 )
----
90

query I rowsort
SELECT + 83 * - - 26 AS col2
----
2158

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT MIN( ALL + + NULLIF ( 64, + + 47 ) ) * COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9684
SELECT MIN ( ALL + + NULLIF ( 64, + + 47 ) ) * COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT 17 + 92 * + COUNT( * ) + + 92 - 49 + - 13 * 93 AS col2
----
-1057

skipif mysql # not compatible
query I rowsort label-9685
SELECT 17 + 92 * + COUNT ( * ) + + 92 - 49 + - 13 * 93 AS col2
----
-1057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9686
SELECT - + 51, - CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) * + - 8 / ( COUNT( * ) ) * + 88 + + 89 * 18 - COALESCE ( + - 95, - - MAX( ALL - 96 ), + 48 / - 80 ) + - CAST( COUNT( DISTINCT + 22 ) AS SIGNED ) AS col2
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-9686
SELECT - + 51, - CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) * + - 8 / ( COUNT ( * ) ) * + 88 + + 89 * 18 - COALESCE ( + - 95, - - MAX ( ALL - 96 ), + 48 / - 80 ) + - CAST ( COUNT ( DISTINCT + 22 ) AS INTEGER ) AS col2
----
-51
NULL

query I rowsort
SELECT 66 * + 29 col0
----
1914

query I rowsort
SELECT ALL + - 28 + + ( - + 77 ) * + 8
----
-644

query II rowsort
SELECT DISTINCT - 25 AS col1, - 26
----
-25
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL 21 + - COUNT( * ) * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL 21 + - COUNT ( * ) * COUNT ( * )
----
20

query I rowsort
SELECT DISTINCT 26 + + + 32
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT ALL 85 + + 6 DIV - 9 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL 85 + + 6 / - 9 AS col0
----
85

query I rowsort
SELECT 44 - - ( + ( + 94 ) ) * + 41
----
3898

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL 61 + - COUNT( * ) col0
----
60

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL 61 + - COUNT ( * ) col0
----
60

query I rowsort
SELECT 89 * + - ( 9 ) AS col1
----
-801

query I rowsort
SELECT DISTINCT 14 * + 85
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT DISTINCT 72 + COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT 72 + COUNT ( * ) AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT DISTINCT 84 + + 25 - - - 12 DIV - 42 * + 47 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT 84 + + 25 - - - 12 / - 42 * + 47 AS col0
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9699
SELECT ALL COUNT( * ) + + CAST( - + 12 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL COUNT ( * ) + + CAST ( - + 12 AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT DISTINCT 54 * MAX( - 81 ) AS col1
----
-4374

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT 54 * MAX ( - 81 ) AS col1
----
-4374

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9701
SELECT CAST( NULL AS DECIMAL ) * + + CAST( NULL AS SIGNED ) * - ( ( + 95 ) ) * - - COALESCE ( + - CASE - 56 WHEN + - CAST( NULL AS SIGNED ) THEN + - CASE 71 WHEN 80 THEN NULL WHEN - 28 THEN + - 16 / 0 END WHEN - 35 THEN NULL ELSE NULL END, 51, + 61 + - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT CAST ( NULL AS REAL ) * + + CAST ( NULL AS INTEGER ) * - ( ( + 95 ) ) * - - COALESCE ( + - CASE - 56 WHEN + - CAST ( NULL AS INTEGER ) THEN + - CASE 71 WHEN 80 THEN NULL WHEN - 28 THEN + - 16 / 0 END WHEN - 35 THEN NULL ELSE NULL END, 51, + 61 + - 90 )
----
NULL

query II rowsort
SELECT ALL - - ( 70 ), - 54 col0
----
70
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9703
SELECT - MAX( ALL CAST( NULL AS DECIMAL ) ) * - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT - MAX ( ALL CAST ( NULL AS REAL ) ) * - 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL + - 47 * - COUNT( * ) * - + 25 + - 6 * - COUNT( * ) AS col1
----
-1169

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + - 47 * - COUNT ( * ) * - + 25 + - 6 * - COUNT ( * ) AS col1
----
-1169

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL - MAX( 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - MAX ( 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9706
SELECT DISTINCT + + 97 * - + CAST( NULL AS DECIMAL ) * 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + + 97 * - + CAST ( NULL AS REAL ) * 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9707
SELECT COUNT( * ) + - 98 AS col0, - 48
----
-97
-48

skipif mysql # not compatible
query II rowsort label-9707
SELECT COUNT ( * ) + - 98 AS col0, - 48
----
-97
-48

query I rowsort
SELECT + 41 * + - 56
----
-2296

query I rowsort
SELECT ( - + 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT - + COALESCE ( - 7, - - 85 * + 54 ) * + 89 * 93 - - + 44 + - + MAX( ALL - ( - + 38 ) )
----
57945

skipif mysql # not compatible
query I rowsort label-9710
SELECT - + COALESCE ( - 7, - - 85 * + 54 ) * + 89 * 93 - - + 44 + - + MAX ( ALL - ( - + 38 ) )
----
57945

onlyif mysql # DIV for integer division: 
query II rowsort label-9711
SELECT + 37 DIV 18, 48 * - + 16 AS col0
----
2
-768

skipif mysql # not compatible
query II rowsort label-9711
SELECT + 37 / 18, 48 * - + 16 AS col0
----
2
-768

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT 42 + - 37 + - ( + 77 ), - ( - 18 ) * - 49 + - NULLIF ( + 1, - COUNT( * ) + + - 31 + + NULLIF ( - 67, + 14 + 80 * 71 ) ) AS col2
----
-72
-883

skipif mysql # not compatible
query II rowsort label-9712
SELECT 42 + - 37 + - ( + 77 ), - ( - 18 ) * - 49 + - NULLIF ( + 1, - COUNT ( * ) + + - 31 + + NULLIF ( - 67, + 14 + 80 * 71 ) ) AS col2
----
-72
-883

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT - 4 DIV + - 50 - + 40 + + 62 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9713
SELECT - 4 / + - 50 - + 40 + + 62 AS col1
----
22

query I rowsort
SELECT ALL - - 79 + + 6 * - - 92 + + - 58 AS col1
----
573

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + COUNT( * ) - SUM( + 29 )
----
-28

skipif mysql # not compatible
query I rowsort label-9715
SELECT + COUNT ( * ) - SUM ( + 29 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL + COUNT( DISTINCT + 9 ) + 52 + CASE - COALESCE ( + SUM( + + COALESCE ( - 14, 58 ) ), + ( 84 ) + - 49 + + ( + 91 ) * 46 ) WHEN + 85 THEN 4 ELSE COUNT( * ) END + 43 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + COUNT ( DISTINCT + 9 ) + 52 + CASE - COALESCE ( + SUM ( + + COALESCE ( - 14, 58 ) ), + ( 84 ) + - 49 + + ( + 91 ) * 46 ) WHEN + 85 THEN 4 ELSE COUNT ( * ) END + 43 AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT 12 - - - 45, + MIN( + + 45 ) + + 74 * + - COUNT( * ) col1
----
-33
-29

skipif mysql # not compatible
query II rowsort label-9717
SELECT 12 - - - 45, + MIN ( + + 45 ) + + 74 * + - COUNT ( * ) col1
----
-33
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT ALL - 96 / CASE 13 WHEN - 99 * - - 90 THEN + ( + 73 ) * 31 + 4 ELSE + CAST( NULL AS SIGNED ) * - CASE 2 WHEN + + 39 + - CAST( NULL AS SIGNED ) + - NULLIF ( - ( 92 ), 40 * + COUNT( * ) + + COUNT( * ) ) * 48 THEN 70 / + COUNT( ALL 25 ) END END * + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL - 96 / CASE 13 WHEN - 99 * - - 90 THEN + ( + 73 ) * 31 + 4 ELSE + CAST ( NULL AS INTEGER ) * - CASE 2 WHEN + + 39 + - CAST ( NULL AS INTEGER ) + - NULLIF ( - ( 92 ), 40 * + COUNT ( * ) + + COUNT ( * ) ) * 48 THEN 70 / + COUNT ( ALL 25 ) END END * + 69 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9719
SELECT COUNT( * ) DIV + 55, - ( - ( - - CAST( - 38 AS SIGNED ) ) ) col2
----
0
-38

skipif mysql # not compatible
query II rowsort label-9719
SELECT COUNT ( * ) / + 55, - ( - ( - - CAST ( - 38 AS INTEGER ) ) ) col2
----
0
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT + COUNT( * ) + - 83 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9720
SELECT + COUNT ( * ) + - 83 / 78 AS col0
----
0

query I rowsort
SELECT ALL + 64 + 66 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT 53 + 20 * + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9722
SELECT 53 + 20 * + COUNT ( * )
----
73

query I rowsort
SELECT ALL + 37 * 60
----
2220

query I rowsort
SELECT 63 + 27 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT MAX( - 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT MAX ( - 82 ) AS col1
----
-82

query I rowsort
SELECT 79 + - + 26 AS col2
----
53

query I rowsort
SELECT 88 + + + 79
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT COUNT( 20 ) + - + 9 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9728
SELECT COUNT ( 20 ) + - + 9 AS col1
----
-8

query I rowsort
SELECT ALL - ( - 47 ) col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT 78 DIV + 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9730
SELECT 78 / + 74 AS col0
----
1

query I rowsort
SELECT 14 * - 63
----
-882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT CAST( + - ( + ( + + 48 ) ) AS SIGNED ) * + 52 + + 1 AS col1
----
-2495

skipif mysql # not compatible
query I rowsort label-9732
SELECT CAST ( + - ( + ( + + 48 ) ) AS INTEGER ) * + 52 + + 1 AS col1
----
-2495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT DISTINCT - ( - - 62 ) * + 82 - + 99 + COALESCE ( + COUNT( + + 41 ), - COUNT( * ), - 31 + + 86 * - + 21 ) DIV - - 39
----
-5183

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT - ( - - 62 ) * + 82 - + 99 + COALESCE ( + COUNT ( + + 41 ), - COUNT ( * ), - 31 + + 86 * - + 21 ) / - - 39
----
-5183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT ALL - 2 / CASE + CAST( NULL AS SIGNED ) WHEN + - 97 * + COUNT( * ) / - 92 * 83 + - + COUNT( * ) * + 55 + 96 THEN + 90 WHEN - 28 THEN NULL WHEN 82 THEN + 83 + + 34 WHEN + 43 THEN NULLIF ( CAST( - 86 AS SIGNED ), + 66 + - 22 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - 2 / CASE + CAST ( NULL AS INTEGER ) WHEN + - 97 * + COUNT ( * ) / - 92 * 83 + - + COUNT ( * ) * + 55 + 96 THEN + 90 WHEN - 28 THEN NULL WHEN 82 THEN + 83 + + 34 WHEN + 43 THEN NULLIF ( CAST ( - 86 AS INTEGER ), + 66 + - 22 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT 9 * + COUNT( * ) * 71
----
639

skipif mysql # not compatible
query I rowsort label-9735
SELECT 9 * + COUNT ( * ) * 71
----
639

query I rowsort
SELECT ALL + 88 * COALESCE ( 72, + 99 * + NULLIF ( 79, + 7 * 28 + 29 ) )
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT + CASE - 84 WHEN - + 92 THEN NULL WHEN - 3 * + 69 * + 51 THEN 0 ELSE NULL END * + NULLIF ( MAX( ALL - 79 ), - + ( - 34 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT + CASE - 84 WHEN - + 92 THEN NULL WHEN - 3 * + 69 * + 51 THEN 0 ELSE NULL END * + NULLIF ( MAX ( ALL - 79 ), - + ( - 34 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9738
SELECT ALL - CAST( - 44 AS SIGNED ) col1
----
44

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - CAST ( - 44 AS INTEGER ) col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9739
SELECT - 81 + - + 65 - + COALESCE ( - - CAST( + COUNT( * ) AS SIGNED ), + - 45 * + - 72 + - 88 )
----
-147

skipif mysql # not compatible
query I rowsort label-9739
SELECT - 81 + - + 65 - + COALESCE ( - - CAST ( + COUNT ( * ) AS INTEGER ), + - 45 * + - 72 + - 88 )
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT CASE - - 27 WHEN + COUNT( * ) * CASE + - 35 WHEN MAX( DISTINCT ( + ( - 64 ) ) ) * ( - + 43 ) THEN - 53 END * - - 3 THEN - + NULLIF ( - SUM( 34 ), 3 * + 95 - + CASE 37 WHEN + COUNT( * ) THEN NULL ELSE 15 END ) / - 3 + - 37 ELSE NULL END / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT CASE - - 27 WHEN + COUNT ( * ) * CASE + - 35 WHEN MAX ( DISTINCT ( + ( - 64 ) ) ) * ( - + 43 ) THEN - 53 END * - - 3 THEN - + NULLIF ( - SUM ( 34 ), 3 * + 95 - + CASE 37 WHEN + COUNT ( * ) THEN NULL ELSE 15 END ) / - 3 + - 37 ELSE NULL END / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9741
SELECT ALL - - CASE 28 WHEN - 32 THEN NULL WHEN 50 THEN + + 50 ELSE NULL END col0, ( - - ( + 61 ) ) - + - COUNT( * )
----
NULL
62

skipif mysql # not compatible
query II rowsort label-9741
SELECT ALL - - CASE 28 WHEN - 32 THEN NULL WHEN 50 THEN + + 50 ELSE NULL END col0, ( - - ( + 61 ) ) - + - COUNT ( * )
----
NULL
62

query I rowsort
SELECT + 8 * 16 AS col1
----
128

query I rowsort
SELECT ALL 78 + - ( - 37 )
----
115

query I rowsort
SELECT + 47 + + + 65 col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT + + COUNT( - + 99 )
----
1

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT + + COUNT ( - + 99 )
----
1

query I rowsort
SELECT + + 25 + - - 46
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT + - CASE + 95 WHEN 50 THEN + COUNT( * ) + - 36 END * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT + - CASE + 95 WHEN 50 THEN + COUNT ( * ) + - 36 END * + 51
----
NULL

query I rowsort
SELECT ALL - 50 + - - 33 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT DISTINCT ( - CASE + 52 WHEN 86 THEN + 37 END ) + + SUM( + 75 ) + + + 81 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT ( - CASE + 52 WHEN 86 THEN + 37 END ) + + SUM ( + 75 ) + + + 81 * - 11
----
NULL

query I rowsort
SELECT ALL - 69 + + - 28 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT + - MAX( DISTINCT 4 ) + - 46
----
-50

skipif mysql # not compatible
query I rowsort label-9751
SELECT + - MAX ( DISTINCT 4 ) + - 46
----
-50

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9752
SELECT + COALESCE ( - - 7, - - 51, 0 * + 63 * 69 + 53 DIV 20 - - + CASE + - 94 WHEN ( - 52 ) + - 29 THEN 68 DIV + CASE CAST( NULL AS DECIMAL ) WHEN - COALESCE ( 45, 20 * 78 ) THEN NULL WHEN - 33 + + AVG ( + 93 + 13 ) THEN - 40 * - 29 END END ) + + 25 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9752
SELECT + COALESCE ( - - 7, - - 51, 0 * + 63 * 69 + 53 / 20 - - + CASE + - 94 WHEN ( - 52 ) + - 29 THEN 68 / + CASE CAST ( NULL AS REAL ) WHEN - COALESCE ( 45, 20 * 78 ) THEN NULL WHEN - 33 + + AVG ( + 93 + 13 ) THEN - 40 * - 29 END END ) + + 25 AS col0
----
32

query I rowsort
SELECT + 24 + + 63 AS col0
----
87

query I rowsort
SELECT ALL 94 + + + 25
----
119

query I rowsort
SELECT ALL 7 + + 31
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT + 91 * - - CASE - 50 WHEN 17 * 74 + + COUNT( * ) THEN SUM( + COALESCE ( 14, - + 87 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT + 91 * - - CASE - 50 WHEN 17 * 74 + + COUNT ( * ) THEN SUM ( + COALESCE ( 14, - + 87 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT - CASE + 66 WHEN - 59 THEN 83 * + 52 * 24 + COUNT( * ) + - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT - CASE + 66 WHEN - 59 THEN 83 * + 52 * 24 + COUNT ( * ) + - 0 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT - CAST( - 84 AS SIGNED ) + + - 16 - ( - NULLIF ( + - 13, - 39 ) ) - - 87 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-9758
SELECT - CAST ( - 84 AS INTEGER ) + + - 16 - ( - NULLIF ( + - 13, - 39 ) ) - - 87 AS col0
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-9759
SELECT ALL MAX( DISTINCT 3 ) AS col0, - 79 * + 76 * - 34 * - - 70 AS col2
----
3
14289520

skipif mysql # not compatible
query II rowsort label-9759
SELECT ALL MAX ( DISTINCT 3 ) AS col0, - 79 * + 76 * - 34 * - - 70 AS col2
----
3
14289520

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT MAX( DISTINCT 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT MAX ( DISTINCT 58 ) AS col1
----
58

query I rowsort
SELECT DISTINCT 8 * - 74 AS col2
----
-592

query II rowsort
SELECT 1 AS col0, 35
----
1
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9763
SELECT - NULLIF ( - + COUNT( * ), - 76 + 47 ) DIV - - 36
----
0

skipif mysql # not compatible
query I rowsort label-9763
SELECT - NULLIF ( - + COUNT ( * ), - 76 + 47 ) / - - 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL - COUNT( * ) - - - 43 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL - COUNT ( * ) - - - 43 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + 2 * - - NULLIF ( ( - 35 ), + COUNT( * ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9765
SELECT + 2 * - - NULLIF ( ( - 35 ), + COUNT ( * ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9766
SELECT - CASE - NULLIF ( + COUNT( * ), 98 DIV + 3 * - + COALESCE ( + NULLIF ( CASE + + 74 WHEN + 53 * - AVG ( ALL - + 95 ) + - 38 - + 65 * + COUNT( * ) * 39 THEN - 90 DIV CASE AVG ( + 49 ) * - 36 WHEN MIN( DISTINCT - 78 ) THEN 49 END ELSE NULL END, 70 + + 33 ), COUNT( * ) - - 51, 32 + + COUNT( * ) * 85, - 99 * - 98 ) ) WHEN + 49 THEN + 47 DIV - 70 ELSE 38 END - - 83
----
45

skipif mysql # not compatible
query I rowsort label-9766
SELECT - CASE - NULLIF ( + COUNT ( * ), 98 / + 3 * - + COALESCE ( + NULLIF ( CASE + + 74 WHEN + 53 * - AVG ( ALL - + 95 ) + - 38 - + 65 * + COUNT ( * ) * 39 THEN - 90 / CASE AVG ( + 49 ) * - 36 WHEN MIN ( DISTINCT - 78 ) THEN 49 END ELSE NULL END, 70 + + 33 ), COUNT ( * ) - - 51, 32 + + COUNT ( * ) * 85, - 99 * - 98 ) ) WHEN + 49 THEN + 47 / - 70 ELSE 38 END - - 83
----
45

query II rowsort
SELECT - 66, - NULLIF ( + 88, + 94 ) * - 59 + + ( + 83 ) - + + 54 - 55 col0
----
-66
5166

query I rowsort
SELECT - 54 - + 40
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - 71 * + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9769
SELECT - 71 * + - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT - CASE NULLIF ( - + COUNT( * ), 62 ) WHEN 50 * - 62 * - 50 / 44 THEN - 17 ELSE + MAX( DISTINCT + 28 ) / + 30 / 92 * + NULLIF ( + CASE WHEN NOT + 4 = COUNT( * ) THEN NULL ELSE MAX( - 46 ) - + 92 END, 11 ) END * ( 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT - CASE NULLIF ( - + COUNT ( * ), 62 ) WHEN 50 * - 62 * - 50 / 44 THEN - 17 ELSE + MAX ( DISTINCT + 28 ) / + 30 / 92 * + NULLIF ( + CASE WHEN NOT + 4 = COUNT ( * ) THEN NULL ELSE MAX ( - 46 ) - + 92 END, 11 ) END * ( 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT DISTINCT - COUNT( * ) * 34
----
-34

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT - COUNT ( * ) * 34
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT ALL + CAST( + + 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + CAST ( + + 26 AS INTEGER )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9773
SELECT ( - CASE - - 88 WHEN + 31 THEN NULL WHEN - 28 THEN - + SUM( DISTINCT + NULLIF ( + CAST( + 67 AS SIGNED ), - 90 * + 64 * + 91 ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT ( - CASE - - 88 WHEN + 31 THEN NULL WHEN - 28 THEN - + SUM ( DISTINCT + NULLIF ( + CAST ( + 67 AS INTEGER ), - 90 * + 64 * + 91 ) ) ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 98 * + 9
----
-882

query I rowsort
SELECT DISTINCT + CASE - - 84 WHEN 9 - + 21 THEN NULL WHEN + AVG ( 83 ) THEN 66 / 67 + 12 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9776
SELECT ALL + - 53 AS col1, 72 DIV 46 AS col0
----
-53
1

skipif mysql # not compatible
query II rowsort label-9776
SELECT ALL + - 53 AS col1, 72 / 46 AS col0
----
-53
1

query I rowsort
SELECT - 36 + - 58
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT ALL + + 76 AS col0, - COUNT( * ) + + 93 * - NULLIF ( - + NULLIF ( + + 67, + COUNT( * ) * - 76 ), - 65 ) + + 59
----
76
6289

skipif mysql # not compatible
query II rowsort label-9778
SELECT ALL + + 76 AS col0, - COUNT ( * ) + + 93 * - NULLIF ( - + NULLIF ( + + 67, + COUNT ( * ) * - 76 ), - 65 ) + + 59
----
76
6289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9779
SELECT - 84 * - 98 + 98 * 38 - 74 - + 57 - + MIN( - 39 ) DIV - + COUNT( * )
----
11786

skipif mysql # not compatible
query I rowsort label-9779
SELECT - 84 * - 98 + 98 * 38 - 74 - + 57 - + MIN ( - 39 ) / - + COUNT ( * )
----
11786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9780
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) * - - 52
----
52

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) * - - 52
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9781
SELECT - + 84 DIV + COUNT( 90 )
----
-84

skipif mysql # not compatible
query I rowsort label-9781
SELECT - + 84 / + COUNT ( 90 )
----
-84

query I rowsort
SELECT ALL + + ( - 92 ) * + 85 + - 23 + - 11 AS col1
----
-7854

query I rowsort
SELECT ALL - 71 * + 87 * - + 22 + - 18
----
135876

query I rowsort
SELECT + - ( 12 ) + 46
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT - + COUNT( * ) - + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9785
SELECT - + COUNT ( * ) - + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT - COUNT( * ) * + 40 + - 34 * + 51 + + 38 + + + SUM( + - 46 ) + - 15 * - - MIN( - 81 ) AS col2
----
-567

skipif mysql # not compatible
query I rowsort label-9786
SELECT - COUNT ( * ) * + 40 + - 34 * + 51 + + 38 + + + SUM ( + - 46 ) + - 15 * - - MIN ( - 81 ) AS col2
----
-567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT CAST( + 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT CAST ( + 36 AS INTEGER )
----
36

query II rowsort
SELECT ALL - NULLIF ( - 26, - ( + - 81 ) ), + 16 * 95 col2
----
26
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + SUM( ALL - 86 ) * - 47
----
4042

skipif mysql # not compatible
query I rowsort label-9789
SELECT + SUM ( ALL - 86 ) * - 47
----
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL COUNT( * ) * - 79 - - + 11 * - 27
----
-376

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL COUNT ( * ) * - 79 - - + 11 * - 27
----
-376

onlyif mysql # aggregate syntax: 
query II rowsort label-9791
SELECT - ( + 30 ) col2, + COUNT( * )
----
-30
1

skipif mysql # not compatible
query II rowsort label-9791
SELECT - ( + 30 ) col2, + COUNT ( * )
----
-30
1

query I rowsort
SELECT ALL 32 * 48
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT + COUNT( * ) - - 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9793
SELECT + COUNT ( * ) - - 32 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT COUNT( DISTINCT + + 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9794
SELECT COUNT ( DISTINCT + + 56 ) AS col0
----
1

query I rowsort
SELECT + 8 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT ALL COUNT( * ) * + + 78
----
78

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL COUNT ( * ) * + + 78
----
78

query I rowsort
SELECT + ( CASE - - 23 WHEN - + CASE + + 79 WHEN - - 79 THEN 58 WHEN - 99 THEN 57 END * + + 6 THEN - NULLIF ( 54, + 68 * - - 39 ) END ) * - CASE - 74 WHEN - + 56 / 19 - 55 THEN NULL WHEN 91 THEN NULL ELSE - 67 + 8 END AS col0
----
NULL

query I rowsort
SELECT + 48 * - COALESCE ( - 34, + + 84 )
----
1632

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT ALL + 39 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL + 39 / - 39
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT + 24 + + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-9800
SELECT + 24 + + + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9801
SELECT ALL + COUNT( * ) DIV 85, 90 AS col1
----
0
90

skipif mysql # not compatible
query II rowsort label-9801
SELECT ALL + COUNT ( * ) / 85, 90 AS col1
----
0
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT COALESCE ( + 7, + 59 ) + NULLIF ( + NULLIF ( + - 11, - CAST( 73 AS SIGNED ) ), 8 ) / NULLIF ( COUNT( * ), + COUNT( * ) ) * + 54 * + COUNT( * ) / + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT COALESCE ( + 7, + 59 ) + NULLIF ( + NULLIF ( + - 11, - CAST ( 73 AS INTEGER ) ), 8 ) / NULLIF ( COUNT ( * ), + COUNT ( * ) ) * + 54 * + COUNT ( * ) / + 16 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9803
SELECT - CAST( - AVG ( + 12 ) AS SIGNED ) + - 51 * + 19 * - COALESCE ( - 81, + COUNT( * ) ) AS col0
----
-78477

skipif mysql # not compatible
query I rowsort label-9803
SELECT - CAST ( - AVG ( + 12 ) AS INTEGER ) + - 51 * + 19 * - COALESCE ( - 81, + COUNT ( * ) ) AS col0
----
-78477

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - 52 * COUNT( * ) + 85 + - 81
----
-48

skipif mysql # not compatible
query I rowsort label-9804
SELECT - 52 * COUNT ( * ) + 85 + - 81
----
-48

query II rowsort
SELECT ALL - 25 + 61 * + - 69 AS col2, - 85 + + CASE + 29 WHEN - 40 THEN - 61 WHEN 73 * - 12 THEN NULL END + + + 17 + + + 44 + - 77 + + AVG ( 28 )
----
-4234
NULL

query I rowsort
SELECT DISTINCT - + 48 + - 94 AS col0
----
-142

query I rowsort
SELECT ALL + 33 * + + 98
----
3234

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT ALL - 69 + - 11 DIV + 98
----
-69

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL - 69 + - 11 / + 98
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL - - COALESCE ( - + 5, 39 * + MAX( + - 50 ) + - 69, + ( 4 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL - - COALESCE ( - + 5, 39 * + MAX ( + - 50 ) + - 69, + ( 4 ) ) AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9810
SELECT DISTINCT - + 56 + - + MIN( 71 ) DIV + + ( + - 14 ), 62 * 5 col2
----
-51
310

skipif mysql # not compatible
query II rowsort label-9810
SELECT DISTINCT - + 56 + - + MIN ( 71 ) / + + ( + - 14 ), 62 * 5 col2
----
-51
310

query I rowsort
SELECT ALL - - 6 + - 20 - + 54 col0
----
-68

query I rowsort
SELECT 97 + + + ( + 11 ) + + 83 * 24 * ( - 83 )
----
-165228

query I rowsort
SELECT + 50 * 48 AS col2
----
2400

query I rowsort
SELECT 56 * 92 AS col2
----
5152

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL - COUNT( - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - COUNT ( - 14 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT DISTINCT + 84 * 94 DIV - 70
----
-112

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT + 84 * 94 / - 70
----
-112

query I rowsort
SELECT ALL 12 - + 56 - - 3
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL COUNT( * ) * - 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL COUNT ( * ) * - 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT MAX( 93 ) * - MIN( + - ( + - 2 ) ) AS col1
----
-186

skipif mysql # not compatible
query I rowsort label-9819
SELECT MAX ( 93 ) * - MIN ( + - ( + - 2 ) ) AS col1
----
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9820
SELECT ALL + 5 DIV COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + 5 / COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT MAX( - 54 ) + + 51 - + 2 + - 94 * - + 40 * - 18 + - 2 * - + 24 + + 83 * + MAX( - 38 )
----
-70791

skipif mysql # not compatible
query I rowsort label-9821
SELECT MAX ( - 54 ) + + 51 - + 2 + - 94 * - + 40 * - 18 + - 2 * - + 24 + + 83 * + MAX ( - 38 )
----
-70791

query I rowsort
SELECT ALL 8 * - ( 79 ) AS col2
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT 59 * - 43 * - 62 * - COALESCE ( 81, + 94 + - CASE - 31 WHEN + 48 / + + 17 THEN - 51 + NULLIF ( - 52, - - 57 * - 48 ) * - COUNT( * ) WHEN - + 61 THEN NULL ELSE 63 END + 27 * + COUNT( DISTINCT 33 ), - 78 ) * - 91 AS col1
----
1159414074

skipif mysql # not compatible
query I rowsort label-9823
SELECT 59 * - 43 * - 62 * - COALESCE ( 81, + 94 + - CASE - 31 WHEN + 48 / + + 17 THEN - 51 + NULLIF ( - 52, - - 57 * - 48 ) * - COUNT ( * ) WHEN - + 61 THEN NULL ELSE 63 END + 27 * + COUNT ( DISTINCT 33 ), - 78 ) * - 91 AS col1
----
1159414074

query I rowsort
SELECT 62 * - 73
----
-4526

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ( - + COUNT( * ) ) + + SUM( 78 )
----
77

skipif mysql # not compatible
query I rowsort label-9825
SELECT ( - + COUNT ( * ) ) + + SUM ( 78 )
----
77

query I rowsort
SELECT DISTINCT - 15 * 45 AS col1
----
-675

query I rowsort
SELECT 72 * + + 92 * - 88 * 18
----
-10492416

query II rowsort
SELECT 39 col2, + 54 * - CASE + ( + 90 ) WHEN - - 0 THEN NULL WHEN + 8 THEN NULL WHEN - 57 THEN + 55 END col0
----
39
NULL

query II rowsort
SELECT ALL 8, - 27 + - + 0 col2
----
8
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT DISTINCT + 16 * - - 14 * + 84 * CAST( + 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT + 16 * - - 14 * + 84 * CAST ( + 0 AS INTEGER ) AS col0
----
0

query II rowsort
SELECT ALL 63 AS col0, 11
----
63
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL - 43 + + + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL - 43 + + + COUNT ( * ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9833
SELECT ALL 21 AS col2, COUNT( * ) * + 72
----
21
72

skipif mysql # not compatible
query II rowsort label-9833
SELECT ALL 21 AS col2, COUNT ( * ) * + 72
----
21
72

query II rowsort
SELECT 77 AS col0, 72 AS col2
----
77
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT ( - 55 ) * + ( - 32 ) + - - 38 + CAST( + 75 AS SIGNED )
----
1873

skipif mysql # not compatible
query I rowsort label-9835
SELECT ( - 55 ) * + ( - 32 ) + - - 38 + CAST ( + 75 AS INTEGER )
----
1873

query I rowsort
SELECT ALL 31 + + NULLIF ( - - 91, 81 + + - 28 )
----
122

query I rowsort
SELECT 86 - 28 + + - 21 AS col1
----
37

query II rowsort
SELECT - + 30 AS col0, 65 AS col2
----
-30
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL COUNT( * ) * 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL COUNT ( * ) * 73 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9840
SELECT - 14 DIV CAST( + 5 AS SIGNED ) * 27 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9840
SELECT - 14 / CAST ( + 5 AS INTEGER ) * 27 AS col2
----
-54

query I rowsort
SELECT ( + 10 ) + 27 AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9842
SELECT DISTINCT + CAST( 16 AS SIGNED ) * 76 AS col2, + 48 AS col2
----
1216
48

skipif mysql # not compatible
query II rowsort label-9842
SELECT DISTINCT + CAST ( 16 AS INTEGER ) * 76 AS col2, + 48 AS col2
----
1216
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL SUM( ( 51 ) ) + - 29
----
22

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL SUM ( ( 51 ) ) + - 29
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL + 62 * COUNT( * ) * - 47 AS col2
----
-2914

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + 62 * COUNT ( * ) * - 47 AS col2
----
-2914

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT DISTINCT - 40 DIV + - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT - 40 / + - 74 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT ( - 11 ) / CAST( NULL AS SIGNED ) + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT ( - 11 ) / CAST ( NULL AS INTEGER ) + + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT - 62 * + 14 - MAX( ALL - + 25 )
----
-843

skipif mysql # not compatible
query I rowsort label-9847
SELECT - 62 * + 14 - MAX ( ALL - + 25 )
----
-843

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + ( COUNT( * ) ) * + 87 + CASE - - 31 WHEN + 9 THEN NULL WHEN - + 48 THEN 29 * + NULLIF ( + - COUNT( * ), + COUNT( * ) + - 32 ) END + - 94 * + - 88 - + 47 + - + 89 + + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT + ( COUNT ( * ) ) * + 87 + CASE - - 31 WHEN + 9 THEN NULL WHEN - + 48 THEN 29 * + NULLIF ( + - COUNT ( * ), + COUNT ( * ) + - 32 ) END + - 94 * + - 88 - + 47 + - + 89 + + + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9849
SELECT - MAX( ALL + ( - 35 ) ) col2, NULLIF ( - + 45, 46 * - - 72 )
----
35
-45

skipif mysql # not compatible
query II rowsort label-9849
SELECT - MAX ( ALL + ( - 35 ) ) col2, NULLIF ( - + 45, 46 * - - 72 )
----
35
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9850
SELECT DISTINCT 56 DIV - COUNT( * ) + + COUNT( * ), - 97 * - - 44 AS col0
----
-55
-4268

skipif mysql # not compatible
query II rowsort label-9850
SELECT DISTINCT 56 / - COUNT ( * ) + + COUNT ( * ), - 97 * - - 44 AS col0
----
-55
-4268

query I rowsort
SELECT ( 49 ) + + 90
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT + ( + 86 ) * + ( - + COUNT( * ) ) * + - 67 col2
----
5762

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + ( + 86 ) * + ( - + COUNT ( * ) ) * + - 67 col2
----
5762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9853
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 55 + - - 37 * + + 30 * + + 49 / + 88 * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 55 + - - 37 * + + 30 * + + 49 / + 88 * + 47
----
NULL

query II rowsort
SELECT DISTINCT - + NULLIF ( 57, - + 22 ), 95 AS col0
----
-57
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL + - NULLIF ( + 68, + COUNT( * ) ) * + 4 AS col0
----
-272

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + - NULLIF ( + 68, + COUNT ( * ) ) * + 4 AS col0
----
-272

query II rowsort
SELECT ALL - 60, NULLIF ( 59, COALESCE ( + CASE + + 50 WHEN - 99 THEN NULL ELSE + 36 - ( 25 ) END, - 9 - - 54 ) ) + - - 1 col2
----
-60
60

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT + 12, COUNT( * ) * - 13 AS col2
----
12
-13

skipif mysql # not compatible
query II rowsort label-9857
SELECT + 12, COUNT ( * ) * - 13 AS col2
----
12
-13

query I rowsort
SELECT ALL - + 40 col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT ALL - CAST( - 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - CAST ( - 8 AS INTEGER )
----
8

query I rowsort
SELECT ALL + 1 * - 45 * + 75
----
-3375

query I rowsort
SELECT 69 + - ( + - 62 ) col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT COUNT( * ) * - + CASE + 46 WHEN 53 * + - 45 - + COUNT( * ) THEN - - 84 * + 6 * - CAST( NULL AS SIGNED ) WHEN - COALESCE ( + ( - 79 ), + + 47 ) THEN NULL ELSE + - NULLIF ( + + 4, + - 71 ) END
----
4

skipif mysql # not compatible
query I rowsort label-9862
SELECT COUNT ( * ) * - + CASE + 46 WHEN 53 * + - 45 - + COUNT ( * ) THEN - - 84 * + 6 * - CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + ( - 79 ), + + 47 ) THEN NULL ELSE + - NULLIF ( + + 4, + - 71 ) END
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT ALL - ( - CAST( 65 AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL - ( - CAST ( 65 AS INTEGER ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + COUNT( * ) * ( + COUNT( * ) ) + COUNT( * ) + - COUNT( - + 20 ) * 46 + - 70 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-9864
SELECT + COUNT ( * ) * ( + COUNT ( * ) ) + COUNT ( * ) + - COUNT ( - + 20 ) * 46 + - 70 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL MIN( ALL - - ( 17 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL MIN ( ALL - - ( 17 ) ) AS col1
----
17

query I rowsort
SELECT 97 + - 74
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL - COUNT( * ) * - 26 * + + CASE - MAX( - 53 ) WHEN - + COALESCE ( - ( SUM( + 28 ) ), - + 7 * - + NULLIF ( - + 21, ( + 59 ) + + NULLIF ( + 70, + - 70 + 22 ) ) - - 92 * COALESCE ( + 97 + 97 * + COUNT( * ), 33 ), 58 ) / 85 THEN NULL ELSE 99 END
----
2574

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - COUNT ( * ) * - 26 * + + CASE - MAX ( - 53 ) WHEN - + COALESCE ( - ( SUM ( + 28 ) ), - + 7 * - + NULLIF ( - + 21, ( + 59 ) + + NULLIF ( + 70, + - 70 + 22 ) ) - - 92 * COALESCE ( + 97 + 97 * + COUNT ( * ), 33 ), 58 ) / 85 THEN NULL ELSE 99 END
----
2574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT DISTINCT CASE 56 WHEN 34 THEN CAST( + 94 AS SIGNED ) - + 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT CASE 56 WHEN 34 THEN CAST ( + 94 AS INTEGER ) - + 56 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 60 + + 4
----
64

query I rowsort
SELECT ALL 95 + - 8 AS col0
----
87

query I rowsort
SELECT 23 + + 35
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT SUM( DISTINCT + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT SUM ( DISTINCT + 77 )
----
77

query I rowsort
SELECT - ( + + 11 ) * - 95 AS col0
----
1045

query I rowsort
SELECT + 77 + 20 AS col0
----
97

query II rowsort
SELECT - 89 + 80 AS col1, + 8 AS col0
----
-9
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT DISTINCT + 67 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + 67 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 3 + - 46
----
-49

query I rowsort
SELECT ALL + 2 + + + ( 0 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT - + 64 - + CASE - NULLIF ( 21, + 63 ) WHEN + - COUNT( * ) - + 90 THEN NULL WHEN + - 77 THEN + + 72 WHEN - 56 THEN + COUNT( * ) + 85 / + 37 END + - 25 + - 4 + - ( - 50 ) * + + MIN( - - 92 ) + 48 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT - + 64 - + CASE - NULLIF ( 21, + 63 ) WHEN + - COUNT ( * ) - + 90 THEN NULL WHEN + - 77 THEN + + 72 WHEN - 56 THEN + COUNT ( * ) + 85 / + 37 END + - 25 + - 4 + - ( - 50 ) * + + MIN ( - - 92 ) + 48 * 83
----
NULL

query I rowsort
SELECT ALL + 11 * - + 20 * + 6
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT + - COUNT( * ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9881
SELECT + - COUNT ( * ) + + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT + + 73 + + COUNT( * ) + COALESCE ( + - 49, + 69 - - 52 + - - COALESCE ( - NULLIF ( COALESCE ( + ( - 78 ), 25 * - + 86 + 62 * - COUNT( * ), + + 84 ), 57 * - + 86 ), 40 * + CAST( NULL AS SIGNED ) ) * COUNT( * ), 71 * - NULLIF ( NULLIF ( + COUNT( * ), 76 ), - 13 + 73 ) ) + 40 * + 6 AS col1
----
265

skipif mysql # not compatible
query I rowsort label-9882
SELECT + + 73 + + COUNT ( * ) + COALESCE ( + - 49, + 69 - - 52 + - - COALESCE ( - NULLIF ( COALESCE ( + ( - 78 ), 25 * - + 86 + 62 * - COUNT ( * ), + + 84 ), 57 * - + 86 ), 40 * + CAST ( NULL AS INTEGER ) ) * COUNT ( * ), 71 * - NULLIF ( NULLIF ( + COUNT ( * ), 76 ), - 13 + 73 ) ) + 40 * + 6 AS col1
----
265

query II rowsort
SELECT 45 * - + 57 + - + ( + 61 ) AS col2, 71 AS col1
----
-2626
71

query I rowsort
SELECT + - 95 * - ( - 1 )
----
-95

query I rowsort
SELECT ALL - 90 * + 98
----
-8820

query I rowsort
SELECT + 64 + - 60
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9887
SELECT + - 46 DIV CASE 50 WHEN - 94 THEN NULL WHEN 89 THEN - 26 * + + 87 * + 70 + - + 49 WHEN + SUM( ALL - 13 ) THEN NULL ELSE + + 48 END * 73 * - MAX( ALL - 85 ) + + + 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9887
SELECT + - 46 / CASE 50 WHEN - 94 THEN NULL WHEN 89 THEN - 26 * + + 87 * + 70 + - + 49 WHEN + SUM ( ALL - 13 ) THEN NULL ELSE + + 48 END * 73 * - MAX ( ALL - 85 ) + + + 7 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9888
SELECT ALL - 35 / + CASE - 32 WHEN + 63 * + + CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN + 18 THEN NULL WHEN + AVG ( ALL + CAST( NULL AS SIGNED ) ) THEN + 93 * - 43 / 59 * - - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - 35 / + CASE - 32 WHEN + 63 * + + CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN + 18 THEN NULL WHEN + AVG ( ALL + CAST ( NULL AS INTEGER ) ) THEN + 93 * - 43 / 59 * - - 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT + COUNT( * ) * 49 + + + 8 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9889
SELECT + COUNT ( * ) * 49 + + + 8 AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT + 61 DIV - 98 * + 11
----
0

skipif mysql # not compatible
query I rowsort label-9890
SELECT + 61 / - 98 * + 11
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT - 67 DIV - 37
----
1

skipif mysql # not compatible
query I rowsort label-9891
SELECT - 67 / - 37
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9892
SELECT ALL 73 DIV 64 * + + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL 73 / 64 * + + 78 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT - 85 + 79 * - SUM( DISTINCT + 22 ) * + + CAST( NULL AS SIGNED ) + + 29 + - CASE - 76 WHEN - 81 THEN + 66 ELSE NULL END * ( 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT - 85 + 79 * - SUM ( DISTINCT + 22 ) * + + CAST ( NULL AS INTEGER ) + + 29 + - CASE - 76 WHEN - 81 THEN + 66 ELSE NULL END * ( 30 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9894
SELECT COALESCE ( - 71, 62 * + CASE + - AVG ( + 93 ) WHEN 49 THEN + 99 * 13 + + - 99 DIV - - 57 + COUNT( * ) - + MAX( DISTINCT - + 90 ) END + + + 39 - - 61 + + 37 * - 7 + + 92 )
----
-71

skipif mysql # not compatible
query I rowsort label-9894
SELECT COALESCE ( - 71, 62 * + CASE + - AVG ( + 93 ) WHEN 49 THEN + 99 * 13 + + - 99 / - - 57 + COUNT ( * ) - + MAX ( DISTINCT - + 90 ) END + + + 39 - - 61 + + 37 * - 7 + + 92 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT + CAST( - + 17 AS SIGNED ) * + - 39 + + - 43
----
620

skipif mysql # not compatible
query I rowsort label-9895
SELECT + CAST ( - + 17 AS INTEGER ) * + - 39 + + - 43
----
620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT + CAST( + + 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9896
SELECT + CAST ( + + 51 AS INTEGER ) AS col0
----
51

query I rowsort
SELECT DISTINCT + 31 * 7 + - 38 AS col1
----
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9898
SELECT ALL - COUNT( * ) * - + ( + MAX( - COALESCE ( + - 64, 11 * - 67 ) ) ) * + 60 * + 71 + - 47 * CASE + 83 WHEN + MAX( ALL - 38 ) THEN NULL ELSE COUNT( * ) + + 77 DIV COUNT( * ) END
----
268974

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - COUNT ( * ) * - + ( + MAX ( - COALESCE ( + - 64, 11 * - 67 ) ) ) * + 60 * + 71 + - 47 * CASE + 83 WHEN + MAX ( ALL - 38 ) THEN NULL ELSE COUNT ( * ) + + 77 / COUNT ( * ) END
----
268974

query I rowsort
SELECT - 25 + + + 25
----
0

query I rowsort
SELECT ALL 31 * - 53 col1
----
-1643

query I rowsort
SELECT - 1 + + 11 col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9902
SELECT - 77 * - + COALESCE ( - - 35, COUNT( * ) * - - 94 DIV - 94 - + 35, 47 * + 32 DIV + - 54 + + COUNT( * ) * + 92, - 72 * - 8 + + - 82 + - - COALESCE ( - - COUNT( * ), + 11 * + 28 - - - 67 ) ) col1
----
2695

skipif mysql # not compatible
query I rowsort label-9902
SELECT - 77 * - + COALESCE ( - - 35, COUNT ( * ) * - - 94 / - 94 - + 35, 47 * + 32 / + - 54 + + COUNT ( * ) * + 92, - 72 * - 8 + + - 82 + - - COALESCE ( - - COUNT ( * ), + 11 * + 28 - - - 67 ) ) col1
----
2695

query II rowsort
SELECT - 18, 1 AS col0
----
-18
1

query I rowsort
SELECT DISTINCT - 26 + - - 2 AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT - 41 DIV + - 41 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9905
SELECT - 41 / + - 41 AS col1
----
1

query I rowsort
SELECT DISTINCT ( + ( - 27 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT DISTINCT - - COUNT( * ) * + + COUNT( * ) + + 89 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT - - COUNT ( * ) * + + COUNT ( * ) + + 89 AS col2
----
90

query I rowsort
SELECT ALL - 57 - - 20 + 8 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9909
SELECT - 23 DIV + + CAST( + 25 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9909
SELECT - 23 / + + CAST ( + 25 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT ALL - COUNT( * ) DIV - 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - COUNT ( * ) / - 22 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9911
SELECT - + ( - - 95 ) + - 68 + + 61 + NULLIF ( 6, - 62 ) DIV 65 col2
----
-102

skipif mysql # not compatible
query I rowsort label-9911
SELECT - + ( - - 95 ) + - 68 + + 61 + NULLIF ( 6, - 62 ) / 65 col2
----
-102

query I rowsort
SELECT - 36 * + + ( + - 34 ) * + - 70
----
-85680

onlyif mysql # aggregate syntax: 
query II rowsort label-9913
SELECT - - COUNT( * ) AS col1, + 33 AS col1
----
1
33

skipif mysql # not compatible
query II rowsort label-9913
SELECT - - COUNT ( * ) AS col1, + 33 AS col1
----
1
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9914
SELECT - COUNT( * ) AS col1, - 51
----
-1
-51

skipif mysql # not compatible
query II rowsort label-9914
SELECT - COUNT ( * ) AS col1, - 51
----
-1
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9915
SELECT - COUNT( ALL + 59 ) DIV 46 col0
----
0

skipif mysql # not compatible
query I rowsort label-9915
SELECT - COUNT ( ALL + 59 ) / 46 col0
----
0

query II rowsort
SELECT + + 85 * + 46 + 25 AS col2, + 37
----
3935
37

query I rowsort
SELECT ALL - + 99 * - - 38 AS col0
----
-3762

query I rowsort
SELECT - 3 - + 8 - - 22 * + 54 + 74 + - + 2
----
1249

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT + ( + - ( + + COALESCE ( - + 82, - 81 ) ) ) AS col0, + CASE + - 13 WHEN + + COUNT( * ) + CASE 31 WHEN - 0 THEN NULL ELSE 79 END / - NULLIF ( + COUNT( ALL 89 ), - - COUNT( * ) + + COUNT( * ) ) * + 22 * - 41 + - ( + 44 ) + AVG ( DISTINCT 92 ) THEN - 91 END - - 86
----
82
NULL

skipif mysql # not compatible
query II rowsort label-9919
SELECT + ( + - ( + + COALESCE ( - + 82, - 81 ) ) ) AS col0, + CASE + - 13 WHEN + + COUNT ( * ) + CASE 31 WHEN - 0 THEN NULL ELSE 79 END / - NULLIF ( + COUNT ( ALL 89 ), - - COUNT ( * ) + + COUNT ( * ) ) * + 22 * - 41 + - ( + 44 ) + AVG ( DISTINCT 92 ) THEN - 91 END - - 86
----
82
NULL

query I rowsort
SELECT - - 41 + + 2 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT ALL MIN( ALL - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL MIN ( ALL - 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL - 61 * - ( - + ( - 52 ) ) + + COUNT( * ) * 92
----
3264

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL - 61 * - ( - + ( - 52 ) ) + + COUNT ( * ) * 92
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - - 50 * - - COUNT( * ) * + 8 AS col1
----
400

skipif mysql # not compatible
query I rowsort label-9923
SELECT - - 50 * - - COUNT ( * ) * + 8 AS col1
----
400

query I rowsort
SELECT + ( - 93 ) - - 98
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9925
SELECT ALL + 31, 65 DIV + - 4 - + 14 + - + 55 AS col1
----
31
-85

skipif mysql # not compatible
query II rowsort label-9925
SELECT ALL + 31, 65 / + - 4 - + 14 + - + 55 AS col1
----
31
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT 0 * 50 - + - ( + + SUM( DISTINCT + + 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-9926
SELECT 0 * 50 - + - ( + + SUM ( DISTINCT + + 91 ) )
----
91

query I rowsort
SELECT - 5 * + 87 AS col2
----
-435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9928
SELECT ALL COUNT( + CAST( CAST( 3 AS SIGNED ) AS SIGNED ) ) DIV + 35 + - 76 + - 5 - 95 + + 41 + + 78 + - + 33
----
-90

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL COUNT ( + CAST ( CAST ( 3 AS INTEGER ) AS INTEGER ) ) / + 35 + - 76 + - 5 - 95 + + 41 + + 78 + - + 33
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9929
SELECT + CAST( 1 AS SIGNED ) AS col2, 33 + + + 50 AS col1
----
1
83

skipif mysql # not compatible
query II rowsort label-9929
SELECT + CAST ( 1 AS INTEGER ) AS col2, 33 + + + 50 AS col1
----
1
83

query I rowsort
SELECT + CASE WHEN 37 IS NOT NULL THEN + 19 END
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9931
SELECT + COUNT( * ) + - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT + COUNT ( * ) + - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9932
SELECT DISTINCT 25 DIV + - 26 + + COALESCE ( + - MAX( - + 99 ), 25 ), 2 + + - COALESCE ( - SUM( DISTINCT + 85 ), + 76 * - 54 * + CAST( + COUNT( ALL + + 98 ) AS SIGNED ) + + - 6 + 16 DIV CASE 69 WHEN - - AVG ( - 95 ) THEN NULL WHEN - 58 * + 17 + 61 THEN NULL ELSE - ( - 6 ) END + 53 ) - 2 * 61 col2
----
99
-35

skipif mysql # not compatible
query II rowsort label-9932
SELECT DISTINCT 25 / + - 26 + + COALESCE ( + - MAX ( - + 99 ), 25 ), 2 + + - COALESCE ( - SUM ( DISTINCT + 85 ), + 76 * - 54 * + CAST ( + COUNT ( ALL + + 98 ) AS INTEGER ) + + - 6 + 16 / CASE 69 WHEN - - AVG ( - 95 ) THEN NULL WHEN - 58 * + 17 + 61 THEN NULL ELSE - ( - 6 ) END + 53 ) - 2 * 61 col2
----
99
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9933
SELECT ALL + 62, 11 + + 85 * - + 57 DIV COUNT( * ) * 55 col0
----
62
-266464

skipif mysql # not compatible
query II rowsort label-9933
SELECT ALL + 62, 11 + + 85 * - + 57 / COUNT ( * ) * 55 col0
----
62
-266464

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL - 4 * + 28 + COUNT( * ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL - 4 * + 28 + COUNT ( * ) AS col1
----
-111

query I rowsort
SELECT 87 + - 2 * + 96 AS col1
----
-105

query II rowsort
SELECT DISTINCT - 65, 27 + - 76 * + COALESCE ( - 8, - 99, - 98 ) + - 25 * + 91 AS col1
----
-65
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - ( + 76 ) * - 66 * - COUNT( * ) + + 68
----
-4948

skipif mysql # not compatible
query I rowsort label-9937
SELECT - ( + 76 ) * - 66 * - COUNT ( * ) + + 68
----
-4948

query I rowsort
SELECT ( - + 62 ) * 18 * + 33
----
-36828

query I rowsort
SELECT 12 * + 46 + - - 36
----
588

query I rowsort
SELECT 51 * 8 col2
----
408

query I rowsort
SELECT NULLIF ( 57, - 34 ) + 28
----
85

query I rowsort
SELECT 32 + + 83 - ( - ( 65 ) )
----
180

query I rowsort
SELECT DISTINCT - 4 * 55 AS col1
----
-220

query I rowsort
SELECT 7 + 95 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL + CASE + - COUNT( * ) WHEN + COUNT( - 74 ) THEN - + 29 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL + CASE + - COUNT ( * ) WHEN + COUNT ( - 74 ) THEN - + 29 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT ( 72 ) + + CAST( - SUM( - + 60 ) AS SIGNED ) col0
----
132

skipif mysql # not compatible
query I rowsort label-9946
SELECT ( 72 ) + + CAST ( - SUM ( - + 60 ) AS INTEGER ) col0
----
132

query I rowsort
SELECT 99 + + - 84
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT COALESCE ( COUNT( * ), - - 53 ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT COALESCE ( COUNT ( * ), - - 53 ) / 46
----
0

query I rowsort
SELECT ALL + ( - 44 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT 17 * - + COUNT( * ) * 67 * 2 AS col1
----
-2278

skipif mysql # not compatible
query I rowsort label-9950
SELECT 17 * - + COUNT ( * ) * 67 * 2 AS col1
----
-2278

query II rowsort
SELECT DISTINCT - 61 AS col1, + ( - 53 )
----
-61
-53

query II rowsort
SELECT - 29 AS col1, - 13 * 93 + + 54 col1
----
-29
-1155

query I rowsort
SELECT ALL + ( - 9 ) * 43 * + 17
----
-6579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT - 37 + + 20 + + 20 + + CAST( - + 66 AS SIGNED ) - + 1 - - 7 * + COUNT( * ) * + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-9954
SELECT - 37 + + 20 + + 20 + + CAST ( - + 66 AS INTEGER ) - + 1 - - 7 * + COUNT ( * ) * + COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT - MIN( DISTINCT - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9955
SELECT - MIN ( DISTINCT - 64 )
----
64

query II rowsort
SELECT 58 * - 67 AS col2, ( + 10 )
----
-3886
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - 50 + + - 53 + 97 * - + MIN( ALL 17 )
----
-1752

skipif mysql # not compatible
query I rowsort label-9957
SELECT - 50 + + - 53 + 97 * - + MIN ( ALL 17 )
----
-1752

query II rowsort
SELECT + 3 AS col1, 20 + - 49 AS col2
----
3
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL - COUNT( * ) + + - 2
----
-3

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - COUNT ( * ) + + - 2
----
-3

query I rowsort
SELECT + 46 * - + 17 + - 51 + - + 78
----
-911

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9961
SELECT + 17 * + - COALESCE ( + COUNT( * ), + 30 DIV + - ( 82 ) * 99 DIV + MAX( - 26 ) ) AS col1, 38
----
-17
38

skipif mysql # not compatible
query II rowsort label-9961
SELECT + 17 * + - COALESCE ( + COUNT ( * ), + 30 / + - ( 82 ) * 99 / + MAX ( - 26 ) ) AS col1, 38
----
-17
38

query I rowsort
SELECT + NULLIF ( - 5, + + 24 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT DISTINCT - 97 + + 90 AS col2, + 80 - + + COALESCE ( + COUNT( * ), + 0 )
----
-7
79

skipif mysql # not compatible
query II rowsort label-9963
SELECT DISTINCT - 97 + + 90 AS col2, + 80 - + + COALESCE ( + COUNT ( * ), + 0 )
----
-7
79

query I rowsort
SELECT DISTINCT CASE WHEN 36 IS NULL THEN - 53 ELSE NULL END + + + 39 AS col1
----
NULL

query II rowsort
SELECT ALL 44 + - 42 + - + 56 AS col1, 37 AS col0
----
-54
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9966
SELECT NULLIF ( + + 48, - 33 ) + + 49 + + CASE 57 WHEN - 35 THEN NULL WHEN 43 THEN + 0 - SUM( + 61 ) ELSE NULL END / COUNT( * ) col1, + 33 / - - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9966
SELECT NULLIF ( + + 48, - 33 ) + + 49 + + CASE 57 WHEN - 35 THEN NULL WHEN 43 THEN + 0 - SUM ( + 61 ) ELSE NULL END / COUNT ( * ) col1, + 33 / - - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL - COUNT( ALL - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL - COUNT ( ALL - 63 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT DISTINCT - CAST( 96 AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT - CAST ( 96 AS INTEGER ) AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT 16 * + - CASE - - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * + 7 * NULLIF ( - + 32, + - 84 ) THEN + MAX( - 52 ) * - 16 END + - + 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT 16 * + - CASE - - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * + 7 * NULLIF ( - + 32, + - 84 ) THEN + MAX ( - 52 ) * - 16 END + - + 86 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT DISTINCT COUNT( * ) + + 58 + + 20 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT COUNT ( * ) + + 58 + + 20 AS col2
----
79

onlyif mysql # aggregate syntax: 
query III rowsort label-9971
SELECT 6 * 19, + COUNT( * ) * + + 31 - - + 84 AS col2, 34 AS col2
----
114
115
34

skipif mysql # not compatible
query III rowsort label-9971
SELECT 6 * 19, + COUNT ( * ) * + + 31 - - + 84 AS col2, 34 AS col2
----
114
115
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9972
SELECT 13 DIV + + MAX( - 53 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT 13 / + + MAX ( - 53 ) col0
----
0

query I rowsort
SELECT ALL - 81 - - - 57 + + - 8 + + 13 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT + COUNT( * ) * + - 73 * - - 56 col2
----
-4088

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT + COUNT ( * ) * + - 73 * - - 56 col2
----
-4088

onlyif mysql # aggregate syntax: 
query II rowsort label-9975
SELECT DISTINCT 65 - - 33, COUNT( * ) col1
----
98
1

skipif mysql # not compatible
query II rowsort label-9975
SELECT DISTINCT 65 - - 33, COUNT ( * ) col1
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT COUNT( * ) * + 68
----
68

skipif mysql # not compatible
query I rowsort label-9976
SELECT COUNT ( * ) * + 68
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT 63 DIV 1
----
63

skipif mysql # not compatible
query I rowsort label-9977
SELECT 63 / 1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT CASE - NULLIF ( - - 17, - 95 ) WHEN + 43 THEN NULL ELSE + COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9978
SELECT CASE - NULLIF ( - - 17, - 95 ) WHEN + 43 THEN NULL ELSE + COUNT ( * ) END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL - COUNT( ALL 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - COUNT ( ALL 48 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT ( - + COALESCE ( + 4, - 90 * + COALESCE ( - 15, 46 * 25, - - 43 ), NULLIF ( - 52, SUM( + 94 ) ) ) ), COUNT( - + 23 ) + 43 + - - 93 AS col0
----
-4
137

skipif mysql # not compatible
query II rowsort label-9980
SELECT ( - + COALESCE ( + 4, - 90 * + COALESCE ( - 15, 46 * 25, - - 43 ), NULLIF ( - 52, SUM ( + 94 ) ) ) ), COUNT ( - + 23 ) + 43 + - - 93 AS col0
----
-4
137

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT ALL 11 DIV + + 78 * - - ( + 96 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL 11 / + + 78 * - - ( + 96 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9982
SELECT COUNT( * ) * + - 72 DIV - 29 + 84 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9982
SELECT COUNT ( * ) * + - 72 / - 29 + 84 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL + + 32 + - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL + + 32 + - - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT - + CASE + - 9 WHEN + 21 THEN 21 WHEN + 18 + + 26 - + - COUNT( * ) * 99 THEN + 85 WHEN 64 + + + 58 + + 56 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT - + CASE + - 9 WHEN + 21 THEN 21 WHEN + 18 + + 26 - + - COUNT ( * ) * 99 THEN + 85 WHEN 64 + + + 58 + + 56 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 48 * - 94 AS col0
----
-4512

query I rowsort
SELECT 4 - - 81 * 79
----
6403

onlyif mysql # aggregate syntax: 
query II rowsort label-9987
SELECT 35 * + - 86, COUNT( * ) AS col1
----
-3010
1

skipif mysql # not compatible
query II rowsort label-9987
SELECT 35 * + - 86, COUNT ( * ) AS col1
----
-3010
1

query II rowsort
SELECT DISTINCT + + 65 + + 2 AS col1, 32 AS col2
----
67
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT - 15 + + + CAST( - MIN( 59 ) AS SIGNED ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9989
SELECT - 15 + + + CAST ( - MIN ( 59 ) AS INTEGER ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL 84 + 51 + - + MIN( - NULLIF ( + 1, + 84 ) )
----
136

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL 84 + 51 + - + MIN ( - NULLIF ( + 1, + 84 ) )
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9991
SELECT ALL - 65 * COALESCE ( - - COUNT( * ), CASE - 48 WHEN - 17 + - - 29 THEN NULL WHEN ( - - 35 ) THEN NULL ELSE + 13 * - - ( + + 96 ) * - 14 DIV - 5 - ( + 0 ) + - CAST( - 62 AS SIGNED ) + - 40 * + 97 - - 60 - + NULLIF ( + + 16, 82 DIV + 55 - - 56 * COUNT( * ) ) END DIV - 59, 77 - - 38 ) + - NULLIF ( - 79, - AVG ( - 39 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - 65 * COALESCE ( - - COUNT ( * ), CASE - 48 WHEN - 17 + - - 29 THEN NULL WHEN ( - - 35 ) THEN NULL ELSE + 13 * - - ( + + 96 ) * - 14 / - 5 - ( + 0 ) + - CAST ( - 62 AS INTEGER ) + - 40 * + 97 - - 60 - + NULLIF ( + + 16, 82 / + 55 - - 56 * COUNT ( * ) ) END / - 59, 77 - - 38 ) + - NULLIF ( - 79, - AVG ( - 39 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL - 82 * + ( + COUNT( + + 79 ) ) + - - 50 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - 82 * + ( + COUNT ( + + 79 ) ) + - - 50 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT ALL + COUNT( * ) * + 97 * NULLIF ( 70, - 9 * + - COUNT( * ) * - 36 ) + 47, 35 AS col2
----
6837
35

skipif mysql # not compatible
query II rowsort label-9993
SELECT ALL + COUNT ( * ) * + 97 * NULLIF ( 70, - 9 * + - COUNT ( * ) * - 36 ) + 47, 35 AS col2
----
6837
35

query I rowsort
SELECT - 85 - + 18
----
-103

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9995
SELECT + CASE WHEN NOT + 88 IS NULL THEN + 15 * - CAST( NULL AS DECIMAL ) * + 49 / - CASE + - CAST( + 34 AS SIGNED ) WHEN 68 THEN NULL ELSE - 64 + + 32 END + - 64 ELSE - - 40 + + 89 + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT + CASE WHEN NOT + 88 IS NULL THEN + 15 * - CAST ( NULL AS REAL ) * + 49 / - CASE + - CAST ( + 34 AS INTEGER ) WHEN 68 THEN NULL ELSE - 64 + + 32 END + - 64 ELSE - - 40 + + 89 + 90 END
----
NULL

query II rowsort
SELECT + COALESCE ( + 80, - + 55 ) AS col0, 21 + + 56 - - 24
----
80
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9997
SELECT NULLIF ( + ( - + 73 ), 86 + - CAST( - + 0 AS SIGNED ) ) AS col0, + 0
----
-73
0

skipif mysql # not compatible
query II rowsort label-9997
SELECT NULLIF ( + ( - + 73 ), 86 + - CAST ( - + 0 AS INTEGER ) ) AS col0, + 0
----
-73
0

query I rowsort
SELECT 12 * 64 - + 2 + - - 1 col2
----
767

query I rowsort
SELECT - 49 * + + 37
----
-1813

